Home
last modified time | relevance | path

Searched refs:nbp (Results 1 – 25 of 30) sorted by relevance

12

/titanic_50/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_trantcp.c83 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_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_nbp.c57 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_50/usr/src/uts/common/os/
H A Dbio.c575 struct buf *nbp = NULL; in getblk_common() local
644 if (nbp == NULL) { in getblk_common()
659 kmem_free(nbp->b_un.b_addr, nbp->b_bufsize); in getblk_common()
660 nbp->b_un.b_addr = NULL; in getblk_common()
666 bfreelist.b_bufsize += nbp->b_bufsize; in getblk_common()
672 nbp->b_dev = (o_dev_t)NODEV; in getblk_common()
673 nbp->b_edev = NODEV; in getblk_common()
674 nbp->b_flags = 0; in getblk_common()
675 nbp->b_file = NULL; in getblk_common()
676 nbp->b_offset = -1; in getblk_common()
[all …]
H A Dstreamio.c1091 mblk_t *nbp; in struiocopyout() local
1109 nbp = bp; in struiocopyout()
1111 freeb(nbp); in struiocopyout()
1151 mblk_t *bp, *nbp; in strread() local
1406 for (nbp = bp; nbp; nbp = nbp->b_next) { in strread()
1407 if ((nbp->b_datap->db_type == in strread()
1409 (nbp->b_datap->db_type == in strread()
1411 nbp->b_datap->db_type = M_DATA; in strread()
1433 nbp = unlinkb(bp); in strread()
1435 bp = nbp; in strread()
[all …]
/titanic_50/usr/src/cmd/syslogd/
H A Dsyslogd.h243 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 Dsyslogd.c1069 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_50/usr/src/head/
H A Dxti.h449 #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_50/usr/src/uts/common/ktli/
H A Dt_krcvudat.c79 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 Dt_kconnect.c76 mblk_t *nbp; in t_kconnect() local
204 nbp = bp; in t_kconnect()
210 freemsg(nbp); in t_kconnect()
/titanic_50/usr/src/uts/common/io/
H A Dwscons.c1099 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 Dstream.c1359 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 Dtimod.c687 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 Dtty_pty.c325 mblk_t *bp, *nbp; in ptcread() local
411 nbp = bp->b_cont; in ptcread()
413 if ((bp = nbp) == NULL) { in ptcread()
437 nbp = bp->b_cont; in ptcread()
439 if ((bp = nbp) == NULL) in ptcread()
/titanic_50/usr/src/cmd/sgs/prof/common/
H A Dprofv.c63 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_50/usr/src/stand/lib/sock/
H A Dsocket.c1352 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_50/usr/src/uts/common/fs/ufs/
H A Dufs_bmap.c314 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 Dlufs_map.c1814 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_50/usr/src/uts/common/xen/io/
H A Dxencons.c768 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_50/usr/src/cmd/fs.d/udfs/fsck/
H A Dutilities.c357 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_50/usr/src/cmd/sendmail/src/
H A Dutil.c1431 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_50/usr/src/uts/sun4v/io/
H A Dvsw_switching.c1895 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_50/usr/src/uts/sun/io/eri/
H A Deri.c3651 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_50/usr/src/lib/libdtrace/common/
H A Ddt_proc.c123 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_50/usr/src/cmd/fs.d/ufs/fsck/
H A Dutilities.c245 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_50/usr/src/uts/common/inet/tcp/
H A Dtcp.c3213 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()

12