/netbsd-6-1-5-RELEASE/external/cddl/osnet/dist/lib/libuutil/common/ |
H A D | uu_list.c | 35 #define ELEM_TO_NODE(lp, e) \ 36 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset)) 38 #define NODE_TO_ELEM(lp, n) \ 39 ((void *)((uintptr_t)(n) - (lp)->ul_offset)) 182 uu_list_t *lp, *next, *prev; local 198 lp = uu_zalloc(sizeof (*lp)); 199 if (lp == NULL) { 204 lp->ul_pool = pp; 205 lp 231 uu_list_destroy(uu_list_t *lp) argument 263 list_insert(uu_list_t *lp, uu_list_node_impl_t *np, uu_list_node_impl_t *prev, uu_list_node_impl_t *next) argument 292 uu_list_insert(uu_list_t *lp, void *elem, uu_list_index_t idx) argument 315 uu_list_find(uu_list_t *lp, void *elem, void *private, uu_list_index_t *out) argument 348 uu_list_nearest_next(uu_list_t *lp, uu_list_index_t idx) argument 373 uu_list_nearest_prev(uu_list_t *lp, uu_list_index_t idx) argument 397 list_walk_init(uu_list_walk_t *wp, uu_list_t *lp, uint32_t flags) argument 427 list_walk_advance(uu_list_walk_t *wp, uu_list_t *lp) argument 456 uu_list_walk_start(uu_list_t *lp, uint32_t flags) argument 478 uu_list_t *lp = wp->ulw_list; local 495 uu_list_walk(uu_list_t *lp, uu_walk_fn_t *func, void *private, uint32_t flags) argument 540 uu_list_remove(uu_list_t *lp, void *elem) argument 580 uu_list_teardown(uu_list_t *lp, void **cookie) argument 598 uu_list_insert_before(uu_list_t *lp, void *target, void *elem) argument 624 uu_list_insert_after(uu_list_t *lp, void *target, void *elem) argument 650 uu_list_numnodes(uu_list_t *lp) argument 656 uu_list_first(uu_list_t *lp) argument 665 uu_list_last(uu_list_t *lp) argument 674 uu_list_next(uu_list_t *lp, void *elem) argument 685 uu_list_prev(uu_list_t *lp, void *elem) argument [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.dg/ |
H A D | Wno-pointer-sign.c | 9 long *lp; local 15 ulp = lp; /* { dg-bogus " pointer targets in assignment differ in signedness" } */ 16 lp = ulp; /* { dg-bogus " pointer targets in assignment differ in signedness" } */ 18 f2(lp); /* { dg-bogus " differ in signedness" } */
|
H A D | conv-2.c | 9 long *lp; local 15 ulp = lp; /* { dg-warning " pointer targets in assignment differ in signedness" } */ 16 lp = ulp; /* { dg-warning " pointer targets in assignment differ in signedness" } */ 18 f2(lp); /* { dg-warning " differ in signedness" } */
|
H A D | 20000906-1.c | 30 foo (struct ucharp cp, struct ucharp lp, struct list **nextp) argument 35 while (AREF (lp, 0) && AREF (cp, AREF (lp, 0))) 36 ++lp.v; 38 while (AREF (cp, AREF (lp, 0))) 39 ++lp.v; 40 if (AREF (lp, 0) == one) 42 ++lp.v; 43 while (AREF (lp, 0) && AREF (cp, AREF (lp, 70 struct ucharp lp = { lp0, lp0, lp0 + sizeof (lp0) }; local [all...] |
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.dg/ |
H A D | Wno-pointer-sign.c | 9 long *lp; local 15 ulp = lp; /* { dg-bogus " pointer targets in assignment differ in signedness" } */ 16 lp = ulp; /* { dg-bogus " pointer targets in assignment differ in signedness" } */ 18 f2(lp); /* { dg-bogus " differ in signedness" } */
|
H A D | conv-2.c | 9 long *lp; local 15 ulp = lp; /* { dg-warning " pointer targets in assignment differ in signedness" } */ 16 lp = ulp; /* { dg-warning " pointer targets in assignment differ in signedness" } */ 18 f2(lp); /* { dg-warning " differ in signedness" } */
|
H A D | 20000906-1.c | 30 foo (struct ucharp cp, struct ucharp lp, struct list **nextp) argument 35 while (AREF (lp, 0) && AREF (cp, AREF (lp, 0))) 36 ++lp.v; 38 while (AREF (cp, AREF (lp, 0))) 39 ++lp.v; 40 if (AREF (lp, 0) == one) 42 ++lp.v; 43 while (AREF (lp, 0) && AREF (cp, AREF (lp, 70 struct ucharp lp = { lp0, lp0, lp0 + sizeof (lp0) }; local [all...] |
/netbsd-6-1-5-RELEASE/lib/libukfs/ |
H A D | ukfs_disklabel.c | 53 ukfs__disklabel_scan(struct ukfs__disklabel *lp, int *isswapped, argument 62 for (i=0; i <= buflen - sizeof(*lp); i += SCAN_INCR) { 63 memcpy(lp, buf + i, sizeof(*lp)); 64 if (lp->d_magic == UKFS_DISKMAGIC && 65 lp->d_magic2 == UKFS_DISKMAGIC) { 69 if (lp->d_magic == bswap32(UKFS_DISKMAGIC) && 70 lp->d_magic2 == bswap32(UKFS_DISKMAGIC)) { 80 npart = bswap16(lp->d_npartitions); 82 npart = lp 128 ukfs__disklabel_dkcksum(struct ukfs__disklabel *lp, int imswapped) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/lib/libsa/ |
H A D | dkcksum.c | 42 dkcksum(const struct disklabel *lp) argument 47 start = (const void *)lp; 48 end = (const void *)&lp->d_partitions[lp->d_npartitions];
|
/netbsd-6-1-5-RELEASE/sys/net/agr/ |
H A D | ieee8023ad_lacp_sm_ptx.c | 50 lacp_sm_ptx_update_timeout(struct lacp_port *lp, uint8_t oldpstate) argument 53 if (LACP_STATE_EQ(oldpstate, lp->lp_partner.lip_state, 58 LACP_DPRINTF((lp, "partner timeout changed\n")); 68 LACP_TIMER_DISARM(lp, LACP_TIMER_PERIODIC); 74 if ((lp->lp_partner.lip_state & LACP_STATE_TIMEOUT)) { 75 lacp_sm_assert_ntt(lp); 80 lacp_sm_ptx_tx_schedule(struct lacp_port *lp) argument 84 if (!(lp->lp_state & LACP_STATE_ACTIVITY) && 85 !(lp->lp_partner.lip_state & LACP_STATE_ACTIVITY)) { 91 LACP_TIMER_DISARM(lp, LACP_TIMER_PERIODI 106 lacp_sm_ptx_timer(struct lacp_port *lp) argument [all...] |
H A D | ieee8023ad_lacp_sm_tx.c | 51 lacp_sm_tx(struct lacp_port *lp) argument 56 if (!(lp->lp_state & LACP_STATE_AGGREGATION) 58 || (!(lp->lp_state & LACP_STATE_ACTIVITY) 59 && !(lp->lp_partner.lip_state & LACP_STATE_ACTIVITY)) 62 lp->lp_flags &= ~LACPPORT_NTT; 65 if (!(lp->lp_flags & LACPPORT_NTT)) { 71 if ((unsigned int)(now - lp->lp_last_lacpdu_sent) <= 75 lp->lp_last_lacpdu_sent = now; 77 error = lacp_xmit_lacpdu(lp); 80 lp 88 lacp_sm_assert_ntt(struct lacp_port *lp) argument [all...] |
H A D | ieee8023ad_lacp_sm_mux.c | 50 lacp_sm_mux(struct lacp_port *lp) argument 54 (lp->lp_partner.lip_state & LACP_STATE_SYNC) != 0; 56 (lp->lp_partner.lip_state & LACP_STATE_COLLECTING) != 0; 57 enum lacp_selected selected = lp->lp_selected; 60 /* LACP_DPRINTF((lp, "%s: state %d\n", __func__, lp->lp_mux_state)); */ 63 la = lp->lp_aggregator; 64 KASSERT(lp->lp_mux_state == LACP_MUX_DETACHED || la != NULL); 65 new_state = lp->lp_mux_state; 66 switch (lp 152 lacp_sm_mux_timer(struct lacp_port *lp) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/mvme68k/mvme68k/ |
H A D | disksubr.c | 51 static void bsdtocpulabel(struct disklabel *lp, struct cpu_disklabel *clp); 52 static void cputobsdlabel(struct disklabel *lp, struct cpu_disklabel *clp); 55 static void printlp(struct disklabel *lp, const char *str); 69 readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, argument 76 bp = geteblk((int)lp->d_secsize); 81 bp->b_bcount = lp->d_secsize; 98 cputobsdlabel(lp, clp); 101 printlp(lp, "readdisklabel: bsd label"); 179 writedisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, argument 187 printlp(lp, "writedisklabe 249 bsdtocpulabel(struct disklabel *lp, struct cpu_disklabel *clp) argument 324 cputobsdlabel(struct disklabel *lp, struct cpu_disklabel *clp) argument 397 printlp(struct disklabel *lp, const char *str) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/ia64/stand/common/ |
H A D | gets.c | 51 char *lp; local 53 for (lp = buf;;) 57 *lp = '\0'; 62 if (lp > buf) { 63 lp--; 73 for (p = buf; p < lp; ++p) 79 lp = buf; 83 if ((n < 1) || ((lp - buf) < n)) { 84 *lp++ = c;
|
/netbsd-6-1-5-RELEASE/sys/arch/hp700/stand/boot/ |
H A D | tgets.c | 44 char *p, *lp = buf; local 55 *lp = '\0'; 61 if (lp > buf) { 62 lp--; 70 if (lp > buf) 71 --lp; 76 for (p = buf; p < lp; ++p) 83 lp = buf; 88 *lp++ = c;
|
/netbsd-6-1-5-RELEASE/sbin/disklabel/ |
H A D | dkcksum.c | 54 dkcksum(struct disklabel *lp) argument 57 return dkcksum_sized(lp, lp->d_npartitions); 61 dkcksum_sized(struct disklabel *lp, size_t npartitions) argument 67 start = (uint16_t *)lp; 68 end = (uint16_t *)&lp->d_partitions[npartitions];
|
H A D | printlabel.c | 60 showinfo(FILE *f, struct disklabel *lp, const char *specialname) argument 65 if ((unsigned) lp->d_type < DKMAXTYPES) 66 (void)fprintf(f, "type: %s\n", dktypenames[lp->d_type]); 68 (void)fprintf(f, "type: %" PRIu16 "\n", lp->d_type); 69 (void)fprintf(f, "disk: %.*s\n", (int) sizeof(lp->d_typename), 70 lp->d_typename); 71 (void)fprintf(f, "label: %.*s\n", (int) sizeof(lp->d_packname), 72 lp->d_packname); 74 if (lp->d_flags & D_REMOVABLE) 76 if (lp 108 showpartition(FILE *f, struct disklabel *lp, int i, int ctsformat) argument 200 showpartitions(FILE *f, struct disklabel *lp, int ctsformat) argument [all...] |
/netbsd-6-1-5-RELEASE/lib/libcurses/PSD.doc/ |
H A D | twinkle1.c | 104 LOCS *lp; local 107 lp = Layout; 111 lp->y = y; 112 lp->x = x; 113 lp++; 115 Numstars = lp - Layout; 144 LOCS *lp; local 150 for (lp = Layout; lp < end; lp [all...] |
H A D | twinkle2.c | 133 LOCS *lp; local 140 for (lp = Layout; lp < end; lp++) { 142 temp = *lp; 143 *lp = Layout[r]; 147 for (lp = Layout; lp < end; lp++) 149 if (!AM || (lp 172 LOCS *lp; local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/ofppc/stand/ofwboot/ |
H A D | rdb.c | 118 search_rdb_label(struct of_dev *devp, char *buf, struct disklabel *lp) argument 145 *lp = *dlp; 153 lp->d_npartitions = RAW_PART + 1; 155 lp->d_partitions[i].p_size = 0; 156 lp->d_partitions[i].p_offset = 0; 157 lp->d_partitions[i].p_fstype = 0; 163 lp->d_secsize = rbp->nbytes; 164 lp->d_nsectors = rbp->nsectors; 165 lp->d_ntracks = rbp->nheads; 168 lp [all...] |
H A D | mbr.c | 51 struct disklabel *lp, u_long off0) 62 poff = find_mbr_part(devp, off, buf, lp, 0, MBR_PTYPE_NETBSD, 0); 65 poff = find_mbr_part(devp, off, buf, lp, 0, 74 if (getdisklabel(buf, lp) == NULL) 83 poff = find_mbr_part(devp, off, buf, lp, 0, fat_types[i], 0); 85 make_dos_label(lp, poff); 95 struct disklabel *lp, uint32_t off0, uint8_t ptype, int recursion) 120 buf, lp, off0, ptype, recursion); 138 make_dos_label(struct disklabel *lp, uint32_t poff) argument 143 lp 50 search_mbr_label(struct of_dev *devp, u_long off, char *buf, struct disklabel *lp, u_long off0) argument 94 find_mbr_part(struct of_dev *devp, uint32_t off, char *buf, struct disklabel *lp, uint32_t off0, uint8_t ptype, int recursion) argument [all...] |
/netbsd-6-1-5-RELEASE/lib/libutil/ |
H A D | disklabel_dkcksum.c | 47 disklabel_dkcksum(struct disklabel *lp) argument 53 start = (uint16_t *)(void *)lp; 54 end = (uint16_t *)(void *)&lp->d_partitions[lp->d_npartitions];
|
/netbsd-6-1-5-RELEASE/sys/arch/mips/include/ |
H A D | lock.h | 71 __cpu_simple_lock_try(__cpu_simple_lock_t *lp) argument 95 : "=r" (t0), "=r" (v0), "+m" (*lp) 96 : "i" (__SIMPLELOCK_LOCKED), "m" (*lp)); 155 __cpu_simple_lock_try(__cpu_simple_lock_t *lp) argument 158 return _atomic_cas_uint(lp, 166 __cpu_simple_lock_init(__cpu_simple_lock_t *lp) argument 169 *lp = __SIMPLELOCK_UNLOCKED; 174 __cpu_simple_lock(__cpu_simple_lock_t *lp) argument 177 while (!__cpu_simple_lock_try(lp)) { 178 while (*lp 184 __cpu_simple_unlock(__cpu_simple_lock_t *lp) argument [all...] |
/netbsd-6-1-5-RELEASE/sbin/fsck/ |
H A D | partutil.c | 59 label2geom(struct disk_geom *geo, const struct disklabel *lp) argument 61 geo->dg_secperunit = lp->d_secperunit; 62 geo->dg_secsize = lp->d_secsize; 63 geo->dg_nsectors = lp->d_nsectors; 64 geo->dg_ntracks = lp->d_ntracks; 65 geo->dg_ncylinders = lp->d_ncylinders; 66 geo->dg_secpercyl = lp->d_secpercyl; 67 geo->dg_pcylinders = lp->d_ncylinders; 68 geo->dg_sparespertrack = lp->d_sparespertrack; 69 geo->dg_sparespercyl = lp 93 part2wedge(struct dkwedge_info *dkw, const struct disklabel *lp, const char *s) argument 121 struct disklabel *lp = &lab; local [all...] |
/netbsd-6-1-5-RELEASE/external/lgpl3/gmp/dist/mpz/ |
H A D | lucnum_ui.c | 50 mp_ptr lp, xp; local 70 lp = PTR (ln); 115 c = mpn_mul (lp, xp, xsize, yp, ysize); 119 /* lp = 5*lp */ 121 c = mpn_addlshift (lp, lp, lsize, 2); 123 c = mpn_lshift (xp, lp, lsize, 2); 124 c += mpn_add_n (lp, lp, x [all...] |