/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_trantcp.c | 83 static int nb_disconnect(struct nbpcb *nbp); 94 nb_getmsg_mlen(struct nbpcb *nbp, mblk_t **mpp, size_t mlen) in nb_getmsg_mlen() argument 103 ASSERT(nbp->nbp_flags & NBF_RECVLOCK); in nb_getmsg_mlen() 125 error = t_kspoll(nbp->nbp_tiptr, timo, waitflg, &events); in nb_getmsg_mlen() 138 error = tli_recv(nbp->nbp_tiptr, &tm, fmode); in nb_getmsg_mlen() 202 (void) nb_disconnect(nbp); in nb_getmsg_mlen() 230 nb_snddis(struct nbpcb *nbp) in nb_snddis() argument 232 TIUSER *tiptr = nbp->nbp_tiptr; in nb_snddis() 233 cred_t *cr = nbp->nbp_cred; in nb_snddis() 238 ASSERT(MUTEX_HELD(&nbp->nbp_lock)); in nb_snddis() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_nbp.c | 57 interpret_nbp(int flags, struct nbp_hdr *nbp, int len) in interpret_nbp() argument 60 int nbp_cnt = nbp->nbp_fun_cnt & 0xf; /* lower four bits */ in interpret_nbp() 61 int nbp_op = (nbp->nbp_fun_cnt >> 4) & 0xf; /* upper four bits */ in interpret_nbp() 63 data = (uint8_t *)(nbp + 1); in interpret_nbp() 73 nbp_cnt, nbp->nbp_id); in interpret_nbp() 94 "Id = %d", nbp->nbp_id); in interpret_nbp() 95 show_nbp_tuples(data, nbp_cnt, ((uint8_t *)nbp) + len); in interpret_nbp()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | bio.c | 574 struct buf *nbp = NULL; in getblk_common() local 643 if (nbp == NULL) { in getblk_common() 658 kmem_free(nbp->b_un.b_addr, nbp->b_bufsize); in getblk_common() 659 nbp->b_un.b_addr = NULL; in getblk_common() 665 bfreelist.b_bufsize += nbp->b_bufsize; in getblk_common() 671 nbp->b_dev = (o_dev_t)NODEV; in getblk_common() 672 nbp->b_edev = NODEV; in getblk_common() 673 nbp->b_flags = 0; in getblk_common() 674 nbp->b_file = NULL; in getblk_common() 675 nbp->b_offset = -1; in getblk_common() [all …]
|
H A D | streamio.c | 1090 mblk_t *nbp; in struiocopyout() local 1108 nbp = bp; in struiocopyout() 1110 freeb(nbp); in struiocopyout() 1150 mblk_t *bp, *nbp; in strread() local 1405 for (nbp = bp; nbp; nbp = nbp->b_next) { in strread() 1406 if ((nbp->b_datap->db_type == in strread() 1408 (nbp->b_datap->db_type == in strread() 1410 nbp->b_datap->db_type = M_DATA; in strread() 1432 nbp = unlinkb(bp); in strread() 1434 bp = nbp; in strread() [all …]
|
/titanic_41/usr/src/cmd/syslogd/ |
H A D | syslogd.h | 243 static void formatnet(struct netbuf *nbp, log_message_t *mp); 247 static host_list_t *cvthname(struct netbuf *nbp, struct netconfig *ncp, char *); 255 static int ismyaddr(struct netbuf *nbp); 257 static int addnet(struct netconfig *ncp, struct netbuf *nbp); 309 static int addr_hash(struct netbuf *nbp);
|
H A D | syslogd.c | 1069 formatnet(struct netbuf *nbp, log_message_t *mp) in formatnet() argument 1087 p = nbp->buf; in formatnet() 2197 cvthname(struct netbuf *nbp, struct netconfig *ncp, char *failsafe_addr) in cvthname() argument 2212 uap = taddr2uaddr(ncp, nbp); in cvthname() 2217 if ((h = hnc_lookup(nbp, ncp, &hindex)) != NULL) { in cvthname() 2239 if (netdir_getbyaddr(ncp, &hsp, nbp) == 0) { in cvthname() 2300 hnc_register(nbp, ncp, h, hindex); in cvthname() 3594 ismyaddr(struct netbuf *nbp) in ismyaddr() argument 3598 if (nbp == NULL) in ismyaddr() 3602 if (same_addr(nbp, Myaddrs[i])) in ismyaddr() [all …]
|
/titanic_41/usr/src/head/ |
H A D | xti.h | 449 #define T_OPT_FIRSTHDR(nbp) \ argument 450 ((nbp)->len >= _T_OPTHDR_SZ ? (struct t_opthdr *)(nbp)->buf : \ 462 #define T_OPT_NEXTHDR(nbp, tohp) (_T_NEXTHDR((nbp)->buf, (nbp)->len, (tohp))) argument
|
/titanic_41/usr/src/uts/common/ktli/ |
H A D | t_krcvudat.c | 79 mblk_t *nbp; in t_krcvudata() local 157 nbp = NULL; in t_krcvudata() 165 if (nbp) in t_krcvudata() 166 nbp->b_cont = tmp; in t_krcvudata() 173 nbp = mp; in t_krcvudata()
|
H A D | t_kconnect.c | 76 mblk_t *nbp; in t_kconnect() local 204 nbp = bp; in t_kconnect() 210 freemsg(nbp); in t_kconnect()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | wscons.c | 1099 mblk_t *nbp; in wcstart() local 1161 for (nbp = bp; nbp != NULL; nbp = nbp->b_cont) { in wcstart() 1162 if (nbp->b_wptr > nbp->b_rptr) { in wcstart() 1164 nbp->b_rptr, in wcstart() 1166 nbp->b_wptr - nbp->b_rptr, in wcstart() 1237 nbp = bp; in wcstart() 1239 freeb(nbp); in wcstart() 1264 mblk_t *nbp; in wconsout() local 1308 nbp = bp; in wconsout() 1310 freeb(nbp); in wconsout()
|
H A D | stream.c | 1359 mblk_t *head, *nbp; in dupmsg() local 1361 if (!bp || !(nbp = head = dupb(bp))) in dupmsg() 1365 if (!(nbp->b_cont = dupb(bp->b_cont))) { in dupmsg() 1369 nbp = nbp->b_cont; in dupmsg() 1382 mblk_t *head, *nbp; in dupmsg_noloan() local 1385 ((nbp = head = DUPB_NOLOAN(bp)) == NULL)) in dupmsg_noloan() 1389 if ((nbp->b_cont = DUPB_NOLOAN(bp->b_cont)) == NULL) { in dupmsg_noloan() 1393 nbp = nbp->b_cont; in dupmsg_noloan() 1408 mblk_t *nbp; in copyb() local 1427 if ((nbp = mmd_copy(bp, KM_NOSLEEP)) == NULL) in copyb() [all …]
|
H A D | timod.c | 687 mblk_t *nbp; in timodrproc() local 1189 if (((nbp = dupmsg(mp)) != NULL) || in timodrproc() 1190 ((nbp = copymsg(mp)) != NULL)) { in timodrproc() 1191 nbp->b_next = tp->tim_consave; in timodrproc() 1192 tp->tim_consave = nbp; in timodrproc() 1240 for (nbp = tp->tim_consave; nbp; nbp = nbp->b_next) { in timodrproc() 1241 conp = (struct T_conn_ind *)nbp->b_rptr; in timodrproc() 1244 pbp = nbp; in timodrproc() 1246 if (nbp) { in timodrproc() 1248 pbp->b_next = nbp->b_next; in timodrproc() [all …]
|
H A D | tty_pty.c | 324 mblk_t *bp, *nbp; in ptcread() local 410 nbp = bp->b_cont; in ptcread() 412 if ((bp = nbp) == NULL) { in ptcread() 436 nbp = bp->b_cont; in ptcread() 438 if ((bp = nbp) == NULL) in ptcread()
|
/titanic_41/usr/src/cmd/sgs/prof/common/ |
H A D | profv.c | 63 char *nbp, *nbe, *namebuf; in setup_demangled_names() local 73 nbp = namebuf; in setup_demangled_names() 81 if ((nbp + namelen + 1) > nbe) { in setup_demangled_names() 91 nbp = namebuf + cur_len; in setup_demangled_names() 95 (void) strcpy(nbp, p); in setup_demangled_names() 96 profsym[i].demangled_name = nbp; in setup_demangled_names() 98 nbp += namelen + 1; in setup_demangled_names()
|
/titanic_41/usr/src/stand/lib/sock/ |
H A D | socket.c | 1352 mblk_t *nbp; in copyb() local 1357 if (!(nbp = allocb(bp->b_size, 0))) in copyb() 1359 nbp->b_cont = NULL; in copyb() 1360 ndp = nbp->b_datap; in copyb() 1362 nbp->b_rptr = ndp + (bp->b_rptr - bp->b_datap); in copyb() 1363 nbp->b_wptr = nbp->b_rptr + (bp->b_wptr - bp->b_rptr); in copyb() 1364 bcopy(bp->b_datap, nbp->b_datap, bp->b_size); in copyb() 1365 return (nbp); in copyb()
|
/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | ufs_bmap.c | 314 struct buf *nbp; in bmap_write() local 781 nbp = UFS_GETBLK( in bmap_write() 784 clrbuf(nbp); in bmap_write() 786 TRANS_BUF(ufsvfsp, 0, bsize, nbp, DT_ABZERO); in bmap_write() 787 UFS_BWRITE2(ufsvfsp, nbp); in bmap_write() 788 if (nbp->b_flags & B_ERROR) { in bmap_write() 789 err = geterror(nbp); in bmap_write() 790 brelse(nbp); in bmap_write() 800 brelse(nbp); in bmap_write()
|
H A D | lufs_map.c | 1814 logmap_logscan_add(ml_unit_t *ul, struct delta *dp, off_t lof, size_t *nbp) in logmap_logscan_add() argument 1863 *nbp = ldl_logscan_nbcommit(lof); in logmap_logscan_add() 1865 mtm->mtm_tail_nb = *nbp; in logmap_logscan_add() 1899 *nbp = 0; in logmap_logscan_add() 1901 *nbp = dp->d_nb; in logmap_logscan_add()
|
/titanic_41/usr/src/uts/common/xen/io/ |
H A D | xencons.c | 768 mblk_t *nbp; in xcasync_start() local 812 nbp = bp->b_cont; in xcasync_start() 814 bp = nbp; in xcasync_start() 839 nbp = bp->b_cont; in xcasync_start() 841 bp = nbp; in xcasync_start() 870 nbp = bp->b_cont; in xcasync_start() 872 bp = nbp; in xcasync_start()
|
/titanic_41/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | utilities.c | 357 struct bufarea *bp, *nbp; in ckfini() local 360 for (bp = bufhead.b_prev; bp && bp != &bufhead; bp = nbp) { in ckfini() 363 nbp = bp->b_prev; in ckfini()
|
/titanic_41/usr/src/cmd/sendmail/src/ |
H A D | util.c | 1431 char *nbp; local 1439 nbp = sm_malloc_x(nn); 1440 memmove(nbp, bp, p - bp); 1441 p = &nbp[p - bp]; 1444 bp = nbp; 2338 char *nbp = sm_pmalloc_x(l); local 2342 bp = nbp;
|
/titanic_41/usr/src/uts/sun4v/io/ |
H A D | vsw_switching.c | 1895 mblk_t *nbp; in vsw_get_same_dest_list() local 1904 nbp = bp->b_next; in vsw_get_same_dest_list() 1909 *mpp = nbp; in vsw_get_same_dest_list() 1911 prev->b_next = nbp; in vsw_get_same_dest_list() 1923 bp = nbp; in vsw_get_same_dest_list()
|
/titanic_41/usr/src/uts/sun/io/eri/ |
H A D | eri.c | 3651 mblk_t *bp, *nbp; in eri_read_dma() local 3739 if ((nbp = eri_allocb_sp(len + ERI_FSTBYTE_OFFSET))) { in eri_read_dma() 3742 DB_TYPE(nbp) = M_DATA; in eri_read_dma() 3743 bcopy(bp->b_rptr, nbp->b_rptr, in eri_read_dma() 3750 nbp->b_rptr += ERI_FSTBYTE_OFFSET; in eri_read_dma() 3751 nbp->b_wptr = nbp->b_rptr + len; in eri_read_dma() 3755 ERI_PROCESS_READ(erip, nbp, sum); in eri_read_dma() 3757 ERI_PROCESS_READ(erip, nbp); in eri_read_dma() 3759 retmp = nbp; in eri_read_dma() 3778 if ((nbp = eri_allocb_sp(ERI_BUFSIZE))) { in eri_read_dma() [all …]
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dt_proc.c | 123 dt_bkpt_t *dbp, *nbp; in dt_proc_bpdestroy() local 127 for (dbp = dt_list_next(&dpr->dpr_bps); dbp != NULL; dbp = nbp) { in dt_proc_bpdestroy() 133 nbp = dt_list_next(dbp); in dt_proc_bpdestroy()
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | utilities.c | 245 struct bufarea *bp, *nbp; in unbufinit() local 248 for (bp = bufhead.b_prev; bp != NULL && bp != &bufhead; bp = nbp) { in unbufinit() 251 nbp = bp->b_prev; in unbufinit() 259 nbp->b_next = bp->b_next; in unbufinit() 260 bp->b_next->b_prev = nbp; in unbufinit()
|
/titanic_41/usr/src/uts/common/inet/tcp/ |
H A D | tcp.c | 3213 mblk_t *nbp; in tcp_zcopy_backoff() local 3222 if ((nbp = copyb(bp)) == NULL) { in tcp_zcopy_backoff() 3233 nbp->b_datap->db_struioflag |= in tcp_zcopy_backoff() 3236 nbp->b_cont = bp->b_cont; in tcp_zcopy_backoff() 3243 nbp->b_prev = bp->b_prev; in tcp_zcopy_backoff() 3244 nbp->b_next = bp->b_next; in tcp_zcopy_backoff() 3247 tcp->tcp_xmit_tail = nbp; in tcp_zcopy_backoff() 3255 bp = nbp; in tcp_zcopy_backoff()
|