| /netbsd/src/sbin/disklabel/ |
| D | bswap.c | 77 bswaplabel(struct disklabel *nlp, const struct disklabel *olp) in bswaplabel() argument 81 nlp->d_magic = bswap32(olp->d_magic); in bswaplabel() 82 nlp->d_type = bswap16(olp->d_type); in bswaplabel() 83 nlp->d_subtype = bswap16(olp->d_subtype); in bswaplabel() 86 memcpy(nlp->d_typename, olp->d_typename, sizeof(nlp->d_typename)); in bswaplabel() 89 memcpy(nlp->d_packname, olp->d_packname, sizeof(nlp->d_packname)); in bswaplabel() 91 nlp->d_secsize = bswap32(olp->d_secsize); in bswaplabel() 92 nlp->d_nsectors = bswap32(olp->d_nsectors); in bswaplabel() 93 nlp->d_ntracks = bswap32(olp->d_ntracks); in bswaplabel() 94 nlp->d_ncylinders = bswap32(olp->d_ncylinders); in bswaplabel() [all …]
|
| /netbsd/src/sys/lib/libkern/ |
| D | disklabel_swap.c | 57 disklabel_swap(struct disklabel *nlp, struct disklabel *olp) in disklabel_swap() argument 62 #define SWAP16(x) nlp->x = bswap16(olp->x) in disklabel_swap() 63 #define SWAP32(x) nlp->x = bswap32(olp->x) in disklabel_swap() 68 if (nlp != olp) { in disklabel_swap() 70 memcpy(nlp->d_typename, olp->d_typename, in disklabel_swap() 77 memcpy(nlp->d_packname, olp->d_packname, in disklabel_swap() 115 nlp->d_partitions[i].p_fstype = olp->d_partitions[i].p_fstype; in disklabel_swap() 116 nlp->d_partitions[i].p_frag = olp->d_partitions[i].p_frag; in disklabel_swap() 126 nlp->d_npartitions : olp->d_npartitions; in disklabel_swap()
|
| /netbsd/src/sys/arch/sh3/sh3/ |
| D | disksubr.c | 69 swap_endian_disklabel(struct disklabel *nlp, struct disklabel *olp) in swap_endian_disklabel() argument 72 #define SW16(X) nlp->X = bswap16(olp->X) in swap_endian_disklabel() 73 #define SW32(X) nlp->X = bswap32(olp->X) in swap_endian_disklabel() 80 memcpy(nlp->d_typename, olp->d_typename, sizeof(nlp->d_typename)); in swap_endian_disklabel() 83 memcpy(nlp->d_packname, olp->d_packname, sizeof(nlp->d_packname)); in swap_endian_disklabel() 124 nlp->d_partitions[i].p_fstype = olp->d_partitions[i].p_fstype; in swap_endian_disklabel() 125 nlp->d_partitions[i].p_frag = olp->d_partitions[i].p_frag; in swap_endian_disklabel() 148 swap_mmeye_disklabel(struct disklabel *nlp, struct disklabel *olp) in swap_mmeye_disklabel() argument 154 #define SW16(X) nlp->X = bswap16(olp->X) in swap_mmeye_disklabel() 155 #define SW32(X) nlp->X = bswap32(olp->X) in swap_mmeye_disklabel() [all …]
|
| /netbsd/src/sys/kern/ |
| D | subr_disklabel.c | 54 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, in setdisklabel() argument 70 *olp = *nlp; in setdisklabel() 90 opp = &olp->d_partitions[i]; in setdisklabel() 108 *olp = *nlp; in setdisklabel()
|
| /netbsd/src/external/bsd/libarchive/dist/libarchive/ |
| D | archive_read_disk_windows.c | 712 struct la_overlapped *olp; in start_next_async_read() local 718 olp = &(t->ol[t->ol_idx_doing]); in start_next_async_read() 722 if (olp->buff == NULL) { in start_next_async_read() 732 olp->buff = p; in start_next_async_read() 733 olp->buff_size = s; in start_next_async_read() 734 olp->_a = &a->archive; in start_next_async_read() 735 olp->ol.hEvent = CreateEventW(NULL, TRUE, FALSE, NULL); in start_next_async_read() 736 if (olp->ol.hEvent == NULL) { in start_next_async_read() 744 ResetEvent(olp->ol.hEvent); in start_next_async_read() 746 buffbytes = (DWORD)olp->buff_size; in start_next_async_read() [all …]
|
| /netbsd/src/usr.sbin/ypserv/revnetgroup/ |
| D | parse_netgroup.c | 142 struct linelist *lp, *olp; in rng_endnetgrent() local 147 olp = lp; in rng_endnetgrent() 149 free(olp->l_groupname); in rng_endnetgrent() 150 free(olp->l_line); in rng_endnetgrent() 151 free((char *)olp); in rng_endnetgrent()
|
| /netbsd/src/sbin/fsck_ext2fs/ |
| D | setup.c | 427 u_int32_t *nlp, *olp, *endlp; in readsb() local 431 olp = (u_int32_t *)sblk.b_un.b_fs; in readsb() 432 endlp = olp + (SBSIZE / sizeof(*olp)); in readsb() 433 for ( ; olp < endlp; olp++, nlp++) { in readsb() 434 if (*olp == *nlp) in readsb() 438 (long)(olp - (u_int32_t *)sblk.b_un.b_fs), in readsb() 439 (long)fs2h32(*olp), in readsb()
|
| /netbsd/src/external/bsd/libbind/dist/irs/ |
| D | lcl_ng.c | 240 struct linelist *lp, *olp; in freelists() local 245 olp = lp; in freelists() 247 free(olp->l_groupname); in freelists() 248 free(olp->l_line); in freelists() 249 free((char *)olp); in freelists()
|
| /netbsd/src/lib/libcurses/ |
| D | resize.c | 251 __LINE *lp, *olp, **newlines, *newlspace; in __resizewin() local 326 olp = win->orig->alines[i + win->begy - win->orig->begy]; in __resizewin() 327 lp->line = &olp->line[win->ch_off]; in __resizewin() 331 lp->firstchp = &olp->firstch; in __resizewin() 332 lp->lastchp = &olp->lastch; in __resizewin()
|
| D | newwin.c | 236 __LINE *lp, *olp; in __set_subwin() local 242 olp = orig->alines[i + win->begy - orig->begy]; in __set_subwin() 246 lp->line = &olp->line[win->ch_off]; in __set_subwin() 247 lp->firstchp = &olp->firstch; in __set_subwin() 248 lp->lastchp = &olp->lastch; in __set_subwin()
|
| /netbsd/src/sbin/fsck_ffs/ |
| D | setup.c | 887 uint32_t *nlp, *olp, *endlp; in readsb() local 891 olp = (uint32_t *)sblock; in readsb() 892 endlp = olp + (sblock->fs_sbsize / sizeof *olp); in readsb() 893 for ( ; olp < endlp; olp++, nlp++) { in readsb() 894 if (*olp == *nlp) in readsb() 898 (int)((uint8_t *)olp-(uint8_t *)sblock), in readsb() 899 *olp, *nlp); in readsb()
|
| /netbsd/src/sys/arch/macppc/macppc/ |
| D | disksubr.c | 686 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, struct cpu_disklabel *o… in setdisklabel() argument 695 *olp = *nlp; in setdisklabel() 705 *olp = *nlp; in setdisklabel()
|
| /netbsd/src/sys/arch/mac68k/mac68k/ |
| D | disksubr.c | 465 setdisklabel(struct disklabel *olp, struct disklabel *nlp, u_long openmask, in setdisklabel() argument
|