/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | lc.c | 280 if (lp) in canonical() 312 if (lp) in canonical() 559 for (lp = lc_languages; lp->code && !streq(s, lp->code); lp++); in lcmake() 562 for (lp = lc_languages; lp->code && (!lp->alternates || !match(s, lp->alternates, n, 0)); lp++); in lcmake() 567 for (lp = lc_languages; lp->code && !streq(s, lp->code); lp++); in lcmake() 576 lp = 0; in lcmake() 577 if (!lp || !lp->code) in lcmake() 579 for (lp = lc_languages; lp->code && !match(s, lp->name, 0, 0); lp++); in lcmake() 580 if (!lp || !lp->code) in lcmake() 603 if (!lp || !lp->code) in lcmake() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_ng.c | 238 while (lp) { in freelists() 239 olp = lp; in freelists() 240 lp = lp->l_next; in freelists() 280 while (lp) { in parse_netgrp() 283 lp = lp->l_next; in parse_netgrp() 285 if (lp == NULL && in parse_netgrp() 293 pos = lp->l_line; in parse_netgrp() 374 if (!(lp = malloc(sizeof (*lp)))) { in read_for_group() 380 free(lp); in read_for_group() 406 free(lp); in read_for_group() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log_findckp.c | 57 __log_findckp(lp, lsnp) in __log_findckp() argument 58 DB_LOG *lp; in __log_findckp() 66 verbose = lp->dbenv != NULL && lp->dbenv->db_verbose != 0; 73 if (F_ISSET(lp, DB_AM_THREAD)) 85 if (F_ISSET(lp, DB_AM_THREAD)) 88 if ((ret = log_get(lp, &next_lsn, &data, DB_SET)) != 0) 91 if (F_ISSET(lp, DB_AM_THREAD)) 98 __db_err(lp->dbenv, "Checkpoint at: [%lu][%lu]", 100 __db_err(lp->dbenv, "Checkpoint LSN: [%lu][%lu]", 120 if (F_ISSET(lp, DB_AM_THREAD)) [all …]
|
H A D | log_get.c | 97 LOG *lp; local 105 lp = dblp->lp; 111 nlsn = lp->chkpt_lsn; 160 nlsn.file = lp->lsn.file; 161 nlsn.offset = lp->lsn.offset - lp->len; 170 if (nlsn.file > lp->lsn.file || 171 (nlsn.file == lp->lsn.file && nlsn.offset >= lp->lsn.offset)) 181 if (nlsn.file == lp->lsn.file && nlsn.offset >= lp->w_off) { 183 p = lp->buf + (nlsn.offset - lp->w_off); 252 if (lp->b_off < ((u_int8_t *)shortp - lp->buf) + len) [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | logsubr.c | 125 log_sendmsg(mp, lp == NULL ? GLOBAL_ZONEID : lp->log_zoneid); in log_flushq() 283 log_t *lp; in log_alloc() local 296 return (lp); in log_alloc() 310 lp = NULL; in log_alloc() 314 return (lp); in log_alloc() 319 log_free(log_t *lp) in log_free() argument 400 log_t *lp; in log_update() local 565 log_t *lp; in log_sendmsg() local 654 lp = &log_backlog; in log_sendmsg() 659 if ((lp->log_flags & flags) && lp->log_wanted(lp, lc)) { in log_sendmsg() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | log.c | 105 log_t *lp; in log_open() local 126 lp = log_alloc(minor); in log_open() 127 if (lp == NULL) in log_open() 130 q->q_ptr = lp; in log_open() 131 WR(q)->q_ptr = lp; in log_open() 132 lp->log_inuse = 1; in log_open() 146 lp->log_inuse = 0; in log_close() 148 freemsg(lp->log_data); in log_close() 149 lp->log_data = NULL; in log_close() 151 log_free(lp); in log_close() [all …]
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_util.c | 46 lp->l_prev = q; in ctf_list_append() 53 lp->l_next = q; in ctf_list_append() 66 lp->l_next = p; in ctf_list_prepend() 73 lp->l_prev = p; in ctf_list_prepend() 79 ctf_list_t *lp = item; in ctf_list_insert_before() local 81 ctf_list_t *prev = lp->l_prev; in ctf_list_insert_before() 83 lp->l_prev = new; in ctf_list_insert_before() 84 new->l_next = lp; in ctf_list_insert_before() 89 ASSERT(head->l_next == lp); in ctf_list_insert_before() 106 lp->l_next = p->l_next; in ctf_list_delete() [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | ses_safte.c | 118 lp->uscsi_cdb = cdb; in _NOTE() 131 if ((lp->uscsi_buflen - lp->uscsi_resid) < 6) { in _NOTE() 133 lp->uscsi_buflen - lp->uscsi_resid); in _NOTE() 249 lp->uscsi_cdb = cdb0; in safte_init_enc() 251 lp->uscsi_buflen = 0; in safte_init_enc() 263 lp->uscsi_cdb = cdb; in safte_init_enc() 352 lp->uscsi_cdb = cdb; in safte_rdstat() 366 hiwater = lp->uscsi_buflen - lp->uscsi_resid; in safte_rdstat() 703 hiwater = lp->uscsi_buflen - lp->uscsi_resid; in safte_rdstat() 1055 lp->uscsi_cdb = cdb; in wrbuf16() [all …]
|
/illumos-gate/usr/src/uts/common/krtld/ |
H A D | kobj_lm.c | 57 struct modctl_list **lpp, *lp; in kobj_lm_append() local 64 lp = kobj_zalloc(sizeof (struct modctl_list), KM_WAIT); in kobj_lm_append() 65 lp->modl_modp = modp; in kobj_lm_append() 68 *lpp = lp; in kobj_lm_append() 76 last->modl_next = lp; in kobj_lm_append() 83 struct modctl_list *lp; in kobj_lm_dump() local 85 for (lp = kobj_lm_lookup(lmid); lp; lp = lp->modl_next) { in kobj_lm_dump() 86 struct module *mp = lp->modl_modp->mod_mp; in kobj_lm_dump()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_list.c | 57 topo_list_append(topo_list_t *lp, void *new) in topo_list_append() argument 62 lp->l_prev = q; in topo_list_append() 70 assert(lp->l_next == NULL); in topo_list_append() 71 lp->l_next = q; in topo_list_append() 81 lp->l_next = p; in topo_list_prepend() 89 assert(lp->l_prev == NULL); in topo_list_prepend() 90 lp->l_prev = p; in topo_list_prepend() 101 topo_list_prepend(lp, new); in topo_list_insert_before() 118 topo_list_append(lp, new); in topo_list_insert_after() 136 lp->l_next = p->l_next; in topo_list_delete() [all …]
|
/illumos-gate/usr/src/boot/libsa/string/ |
H A D | strlen.c | 86 const unsigned long *lp; in strlen() local 99 lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK); in strlen() 100 va = (*lp - mask01); in strlen() 101 vb = ((~*lp) & mask80); in strlen() 102 lp++; in strlen() 105 for (p = str; p < (const char *)lp; p++) in strlen() 110 for (; ; lp++) { in strlen() 111 va = (*lp - mask01); in strlen() 112 vb = ((~*lp) & mask80); in strlen() 114 p = (const char *)(lp); in strlen()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adrf.c | 98 adrf_int32(adrf_t *adrf, int32_t *lp, int count) in adrf_int32() argument 105 for (; count--; lp++) { in adrf_int32() 106 *lp = 0; in adrf_int32() 110 *lp <<= 8; in adrf_int32() 111 *lp |= c & 0x000000ff; in adrf_int32() 119 adrf_int64(adrf_t *adrf, int64_t *lp, int count) in adrf_int64() argument 126 for (; count--; lp++) { in adrf_int64() 127 *lp = 0; in adrf_int64() 131 *lp <<= 8; in adrf_int64() 132 *lp |= c & 0x00000000000000ff; in adrf_int64() [all …]
|
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd_queue.c | 41 if (!lp->l1_tailp) { in L1_add() 43 lp->l1_headp = lep; in L1_add() 46 lp->l1_tailp->le_nextp = lep; in L1_add() 49 lp->l1_tailp = lep; in L1_add() 61 L1_delete(L1_t *lp, L1el_t *lep) in L1_delete() argument 65 if (lp->l1_headp == lep) { in L1_delete() 69 lp->l1_tailp = NULL; in L1_delete() 77 lp->l1_tailp = prevp; in L1_delete() 93 L1_remove(L1_t *lp) in L1_remove() argument 98 if ((lep = lp->l1_headp) == NULL) { in L1_remove() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | cut.c | 160 lp = cut->list; in cutinit() 177 *lp++ = n; in cutinit() 181 *lp++ = --n; in cutinit() 182 *lp++ = 1; in cutinit() 187 *lp = HUGE; in cutinit() 189 qsort(lp=cut->list,n,2*sizeof(*lp),mycomp); in cutinit() 191 for(n=0,range= -2,dp=lp; *lp!=HUGE; lp+=2) in cutinit() 200 if((c = lp[0]+lp[1]-range)>0) in cutinit() 220 for(n=0; *lp!=HUGE; lp+=2) in cutinit() 222 c = *lp; in cutinit() [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | xdr_stdio.c | 82 xdrstdio_getint32(XDR *xdrs, int32_t *lp) in xdrstdio_getint32() argument 84 if (fread((caddr_t)lp, sizeof (int32_t), 1, in xdrstdio_getint32() 88 *lp = ntohl(*lp); in xdrstdio_getint32() 93 xdrstdio_putint32(XDR *xdrs, int32_t *lp) in xdrstdio_putint32() argument 96 int32_t mycopy = htonl(*lp); in xdrstdio_putint32() 97 lp = &mycopy; in xdrstdio_putint32() 107 xdrstdio_getlong(XDR *xdrs, long *lp) in xdrstdio_getlong() argument 113 *lp = (long)i; in xdrstdio_getlong() 118 xdrstdio_putlong(XDR *xdrs, long *lp) in xdrstdio_putlong() argument 123 if ((*lp > INT32_MAX) || (*lp < INT32_MIN)) in xdrstdio_putlong() [all …]
|
/illumos-gate/usr/src/uts/common/io/axf/ |
H A D | axf_usbgem.c | 427 lp->rcr &= ~RCR_SO; in axf_init_chip() 434 lp->msr = 0; in axf_init_chip() 454 lp->rcr |= RCR_SO; in axf_init_chip() 471 lp->rcr |= RCR_SO; in axf_start_chip() 575 lp->rcr |= mode; in axf_set_rx_filter() 616 msr = lp->msr; in axf_set_media() 676 lp->msr = msr; in axf_set_media() 1016 lp->ipg[0] = 0x15; in axf_attach_chip() 1026 if (lp->chip->vid == 0x07b8 && lp->chip->pid == 0x420a) { in axf_attach_chip() 1075 dp->name, __func__, lp->ipg[0], lp->ipg[1], lp->ipg[2], in axf_attach_chip() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_parser.c | 3223 lp = dnp->dn_left = dt_node_cook(lp, 0); in dt_cook_op2() 3250 lp = dnp->dn_left = dt_node_cook(lp, DT_IDFLG_REF); in dt_cook_op2() 3263 lp = dnp->dn_left = dt_node_cook(lp, DT_IDFLG_REF); in dt_cook_op2() 3333 ctf_type_resolve(lp->dn_ctfp, lp->dn_type)); in dt_cook_op2() 3356 dt_node_type_assign(rp, lp->dn_ctfp, lp->dn_type, in dt_cook_op2() 3374 if (ctf_type_compat(lp->dn_ctfp, lp->dn_type, in dt_cook_op2() 3550 lp = dt_node_cook(lp, DT_IDFLG_MOD); in dt_cook_op2() 3598 ctf_type_resolve(lp->dn_ctfp, lp->dn_type)); in dt_cook_op2() 3824 lp = dt_node_cook(lp, 0); in dt_cook_op2() 3936 if (ctf_type_compat(lp->dn_ctfp, lp->dn_type, in dt_cook_op2() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | mount.c | 66 mount(long *lp, rval_t *rp) in mount() argument 79 uap->spec = (char *)*lp++; in mount() 80 uap->dir = (char *)*lp++; in mount() 81 uap->flags = (int)*lp++; in mount() 82 uap->fstype = (char *)*lp++; in mount() 83 uap->dataptr = (char *)*lp++; in mount() 84 uap->datalen = (int)*lp++; in mount() 85 uap->optptr = (char *)*lp++; in mount() 86 uap->optlen = (int)*lp++; in mount() 92 uap = (struct mounta *)lp; in mount()
|
H A D | lwp_sobj.c | 1082 lwp_mutex_t *lp; in upi_dead() local 1266 watch_enable_addr((caddr_t)lp, sizeof (*lp), S_WRITE); in lwp_mutex_timedlock() 1306 watched = watch_disable_addr((caddr_t)lp, sizeof (*lp), in lwp_mutex_timedlock() 1330 watched = watch_disable_addr((caddr_t)lp, sizeof (*lp), in lwp_mutex_timedlock() 1368 watch_enable_addr((caddr_t)lp, sizeof (*lp), S_WRITE); in lwp_mutex_timedlock() 1559 watch_enable_addr((caddr_t)lp, sizeof (*lp), S_WRITE); in lwp_mutex_wakeup() 2881 lwp_mutex_t *lp; in lwp_mutex_cleanup() local 2967 watch_enable_addr((caddr_t)lp, sizeof (*lp), S_WRITE); in lwp_mutex_cleanup() 3007 watch_enable_addr((caddr_t)lp, sizeof (*lp), S_WRITE); in lwp_mutex_register() 3126 watch_enable_addr((caddr_t)lp, sizeof (*lp), S_WRITE); in lwp_mutex_trylock() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | gets.c | 44 char *lp; in ngets() local 46 for (lp = buf; ; ) { in ngets() 53 *lp = '\0'; in ngets() 58 if (lp > buf) { in ngets() 59 lp--; in ngets() 69 for (p = buf; p < lp; ++p) in ngets() 75 lp = buf; in ngets() 79 if ((n < 1) || ((lp - buf) < n - 1)) { in ngets() 80 *lp++ = c; in ngets()
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | adr.c | 88 adr_int32(adr_t *adr, int32_t *lp, int count) in adr_int32() argument 93 for (; count-- > 0; lp++) { in adr_int32() 94 for (i = 0, l = *lp; i < 4; i++) { in adr_int32() 106 adr_int64(adr_t *adr, int64_t *lp, int count) in adr_int64() argument 111 for (; count-- > 0; lp++) { in adr_int64() 112 for (i = 0, l = *lp; i < 8; i++) { in adr_int64() 146 adr_getint32(adr_t *adr, int32_t *lp) in adr_getint32() argument 153 *lp <<= 8; in adr_getint32() 154 *lp += ((int32_t)*adr->adr_now++) & 0x000000ff; in adr_getint32() 161 adr_getint64(adr_t *adr, int64_t *lp) in adr_getint64() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_utils.c | 122 uint32_t *lp = (uint32_t *)structure; in ibmf_utils_unpack_data() local 128 lp = (uint32_t *) in ibmf_utils_unpack_data() 133 ((lp + 1) > (uint32_t *)structend)) in ibmf_utils_unpack_data() 140 structure = (void *)lp; in ibmf_utils_unpack_data() 271 lp = (uint32_t *) in ibmf_utils_pack_data() 280 data[0] = (uchar_t)(*lp >> 24); in ibmf_utils_pack_data() 281 data[1] = (uchar_t)(*lp >> 16); in ibmf_utils_pack_data() 282 data[2] = (uchar_t)(*lp >> 8); in ibmf_utils_pack_data() 283 data[3] = (uchar_t)(*lp); in ibmf_utils_pack_data() 285 lp++; in ibmf_utils_pack_data() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/mknetid/ |
H A D | mknetid.c | 165 char **lp; local 173 check_getname(lp, name, WHITE, WHITE, "#"); 180 check_getname(lp, name, WHITE, COLON, "#"); 212 char **lp; local 220 check_getname(lp, name, WHITE, COLON, ""); 225 check_getname(lp, name, WHITE, COLON, ""); 243 char **lp; local 267 check_getname(lp, name, WHITE, COLON, ""); 284 char **lp; local 354 check_getname(lp, name, skip, term, com) in check_getname() argument [all …]
|
/illumos-gate/usr/src/uts/common/fs/lofs/ |
H A D | lofs_subr.c | 261 lp = NULL; in makelonode() 274 tlp = lp; in makelonode() 281 lp = NULL; in makelonode() 291 lp = tlp; in makelonode() 300 lp->lo_vp = vp; in makelonode() 302 lsave(lp, li); in makelonode() 611 lp, ltablehash(lp->lo_vp, li)); in lsave() 615 lp->lo_next = TABLE_BUCKET(lp->lo_vp, li); in lsave() 616 TABLE_BUCKET(lp->lo_vp, li) = lp; in lsave() 656 lp, ltablehash(lp->lo_vp, li)); in freelonode() [all …]
|
/illumos-gate/usr/src/uts/common/io/sfe/ |
H A D | sfe.c | 455 bzero(lp->mac_addr, sizeof (lp->mac_addr)); in sfe_reset_chip_sis900() 461 lp->isr_pended |= INL(dp, ISR) & lp->our_intr_bits; in sfe_reset_chip_sis900() 509 bzero(lp->mac_addr, sizeof (lp->mac_addr)); in sfe_reset_chip_dp83815() 515 lp->isr_pended |= INL(dp, ISR) & lp->our_intr_bits; in sfe_reset_chip_dp83815() 673 lp->mac_addr[0], lp->mac_addr[1], in sfe_set_rx_filter_dp83815() 674 lp->mac_addr[2], lp->mac_addr[3], in sfe_set_rx_filter_dp83815() 675 lp->mac_addr[4], lp->mac_addr[5]); in sfe_set_rx_filter_dp83815() 871 lp->isr_pended |= val & lp->our_intr_bits; in sfe_stop_chip() 911 lp->isr_pended |= val & lp->our_intr_bits; in sfe_stop_chip_quiesce() 2209 lp = kmem_zalloc(sizeof (*lp), KM_SLEEP); in sfeattach() [all …]
|