Home
last modified time | relevance | path

Searched refs:bp (Results 201 – 225 of 748) sorted by relevance

12345678910>>...30

/illumos-gate/usr/src/uts/common/io/upf/
H A Dupf_usbgem.c505 uint8_t *bp; in upf_tx_make_packet() local
531 bp = new->b_rptr; in upf_tx_make_packet()
534 bp[0] = (uint8_t)len; in upf_tx_make_packet()
536 bp += sizeof (uint16_t); in upf_tx_make_packet()
543 bp += len; in upf_tx_make_packet()
549 while (bp < last_pos) { in upf_tx_make_packet()
550 *bp++ = 0; in upf_tx_make_packet()
563 bp[0], bp[1], bp[2], bp[3], bp[4], bp[5], bp[6], bp[7]); in upf_dump_packet()
643 uint8_t *bp; in upf_interrupt() local
646 bp = mp->b_rptr; in upf_interrupt()
[all …]
/illumos-gate/usr/src/uts/common/io/efe/
H A Defe.c1182 if (bp == NULL) { in efe_ring_alloc()
1205 if (bp != NULL) { in efe_ring_free()
1206 efe_buf_free(&bp); in efe_ring_free()
1228 efe_buf_t *bp; in efe_buf_alloc() local
1233 bp->b_len = len; in efe_buf_alloc()
1248 if (ddi_dma_addr_bind_handle(bp->b_dmah, NULL, bp->b_kaddr, in efe_buf_alloc()
1255 return (bp); in efe_buf_alloc()
1258 efe_buf_free(&bp); in efe_buf_alloc()
1268 ASSERT(bp != NULL); in efe_buf_free()
1362 efe_buf_t *bp; in efe_recv_pkt() local
[all …]
/illumos-gate/usr/src/uts/common/sys/scsi/targets/
H A Dsddef.h1151 if ((bp)->b_resid == 0) { \
1152 (bp)->b_resid = (bp)->b_bcount; \
1155 bioerror(bp, errcode); \
1157 (bp)->b_flags |= B_ERROR;
1285 ((bp)->b_resid += (pktp)->pkt_resid + (SD_GET_XBUF(bp)->xb_dma_resid))
1437 #define SD_GET_XBUF(bp) ((struct sd_xbuf *)((bp)->b_private)) argument
1438 #define SD_GET_UN(bp) ((SD_GET_XBUF(bp))->xb_un) argument
1439 #define SD_GET_PKTP(bp) ((SD_GET_XBUF(bp))->xb_pktp) argument
1440 #define SD_GET_BLKNO(bp) ((SD_GET_XBUF(bp))->xb_blkno) argument
1683 size_t n_done = (bp)->b_bcount - (bp)->b_resid; \
[all …]
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_dbg.c213 mblk_t *bp; in qede_dump_mblk_chain_bcont_ptr() local
217 for (bp = mp; bp != NULL; bp = bp->b_cont) { in qede_dump_mblk_chain_bcont_ptr()
218 len = MBLKL(bp); in qede_dump_mblk_chain_bcont_ptr()
223 qede_dump_single_mblk(qede, bp); in qede_dump_mblk_chain_bcont_ptr()
236 mblk_t *bp; in qede_dump_mblk_chain_bnext_ptr() local
240 for (bp = mp; bp != NULL; bp = bp->b_next) { in qede_dump_mblk_chain_bnext_ptr()
241 len = MBLKL(bp); in qede_dump_mblk_chain_bnext_ptr()
/illumos-gate/usr/src/cmd/bnu/
H A Dpk1.c84 char **bp; local
119 *bp = (char *) pk->p_ipool;
120 pk->p_ipool = bp;
172 char **bp, hdchk; local
257 if ((bp = pk->p_ipool) == NULL) {
261 pk->p_ipool = (char **) *bp;
316 pkdata(c, sum, pk, bp) in pkdata() argument
320 char **bp;
337 *bp = (char *)pk->p_ipool;
338 pk->p_ipool = bp;
[all …]
/illumos-gate/usr/src/uts/intel/io/dktp/disk/
H A Dcmdk.c707 struct buf *bp; in cmdkdump() local
733 bp = &local; in cmdkdump()
734 bzero(bp, sizeof (*bp)); in cmdkdump()
1279 bp->b_resid = bp->b_bcount; in cmdkstrategy()
1281 biodone(bp); in cmdkstrategy()
1308 bp->b_resid = bp->b_bcount; in cmdkstrategy()
1309 biodone(bp); in cmdkstrategy()
1316 bp->b_bcount -= bp->b_resid; in cmdkstrategy()
1319 SET_BP_SEC(bp, ((ulong_t)(p_lblksrt + dkblock(bp)))); in cmdkstrategy()
1321 bp->b_resid += bp->b_bcount; in cmdkstrategy()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_ib.c629 rds_buf_t *bp; in rds_poll_ctrl_completions() local
713 rds_buf_t *bp, *bp1; in rds_post_recv_buf() local
771 if (bp == NULL) { in rds_post_recv_buf()
792 bp1 = bp; in rds_post_recv_buf()
817 bp = bp->buf_nextp; in rds_post_recv_buf()
872 rds_buf_t *bp; in rds_poll_data_completions() local
897 bp->buf_nextp = NULL; in rds_poll_data_completions()
958 ep->ep_seglbp = bp; in rds_poll_data_completions()
1116 tailp = bp; in rds_poll_send_completions()
1118 headp = bp; in rds_poll_send_completions()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/threads/
H A Dmachdep.c184 sigjmp_struct_t *bp = (sigjmp_struct_t *)env; in __csigsetjmp() local
192 bp->sjs_flags = JB_FRAMEPTR; in __csigsetjmp()
193 bp->sjs_uclink = self->ul_siglink; in __csigsetjmp()
195 bp->sjs_stack = self->ul_ustack; in __csigsetjmp()
197 bp->sjs_stack.ss_sp = in __csigsetjmp()
199 bp->sjs_stack.ss_size = self->ul_stksiz; in __csigsetjmp()
200 bp->sjs_stack.ss_flags = 0; in __csigsetjmp()
203 bp->sjs_flags |= JB_SAVEMASK; in __csigsetjmp()
205 bp->sjs_sigmask = self->ul_sigmask; in __csigsetjmp()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dbpobj.c228 blkptr_t *bp; in bpobj_iterate_impl() local
247 bp = &bparray[blkoff]; in bpobj_iterate_impl()
248 err = func(arg, bp, tx); in bpobj_iterate_impl()
470 blkptr_t stored_bp = *bp; in bpobj_enqueue()
476 ASSERT(!BP_IS_HOLE(bp)); in bpobj_enqueue()
479 if (BP_IS_EMBEDDED(bp)) { in bpobj_enqueue()
492 stored_bp.blk_prop = bp->blk_prop; in bpobj_enqueue()
494 } else if (!BP_GET_DEDUP(bp)) { in bpobj_enqueue()
547 if (bp->blk_birth > sra->mintxg && bp->blk_birth <= sra->maxtxg) { in space_range_cb()
552 sra->comp += BP_GET_PSIZE(bp); in space_range_cb()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dcollect.c551 bp = &buf[bp - obuf];
558 *bp++ = c;
581 *bp = '\0';
594 bp = buf;
644 SM_ASSERT(*(bp - 1) != '\n' || bp > buf + 1);
647 if (*--bp != '\n' || *--bp != '\r')
648 bp++;
649 *bp = '\0';
672 bp = buf;
676 bp[0] == '\r' && bp[1] == '\n') ||
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_ktli.c312 tli_send(TIUSER *tiptr, mblk_t *bp, int fmode) in tli_send() argument
320 if (bp == NULL) in tli_send()
324 switch (bp->b_datap->db_type) { in tli_send()
326 for (m = bp; m != NULL; m = m->b_cont) { in tli_send()
343 ctlbuf.len = MBLKL(bp); in tli_send()
344 ctlbuf.maxlen = MBLKL(bp); in tli_send()
345 ctlbuf.buf = (char *)bp->b_rptr; in tli_send()
346 if (bp->b_cont == NULL) { in tli_send()
349 m = bp->b_cont; in tli_send()
368 freemsg(bp); in tli_send()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c206 bus_t *bp; in add_bus() local
231 return (bp); in add_bus()
245 if (bp == NULL) { in add_bus()
253 cache_free_bus(bp); in add_bus()
260 cache_free_bus(bp); in add_bus()
269 cache_free_bus(bp); in add_bus()
285 bp->pname = NULL; in add_bus()
293 cache_free_bus(bp); in add_bus()
308 return (bp); in add_bus()
1686 bus_t *bp; in remove_invalid_controller() local
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxdb.c239 buf_t *bp; in xdb_get_buf() local
264 bioinit(bp); in xdb_get_buf()
383 bioinit(bp); in xdb_get_buf()
393 blkst = bp->b_lblkno + bp->b_bcount / DEV_BSIZE; in xdb_get_buf()
437 bp->b_bufsize = bp->b_bcount; in xdb_get_buf()
439 return (bp); in xdb_get_buf()
539 buf_t *bp; in xdb_intr() local
604 (void *)bp, (longlong_t)bp->b_blkno, in xdb_intr()
605 (ulong_t)bp->b_bcount, (void *)bp->b_un.b_addr)); in xdb_intr()
715 biofini(bp); in xdb_biodone()
[all …]
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_scsa.c168 struct buf *bp, in ghd_tran_init_pkt_attr() argument
219 (void *)gcmdp, (void *)bp, (void *)sg_attrp)); in ghd_tran_init_pkt_attr()
221 if (bp && bp->b_bcount && sg_attrp) { in ghd_tran_init_pkt_attr()
225 if (bp->b_flags & B_READ) in ghd_tran_init_pkt_attr()
237 if (!ghd_dma_buf_bind_attr(cccp, gcmdp, bp, dma_flags, in ghd_tran_init_pkt_attr()
247 bp->b_bcount - gcmdp->cmd_totxfer, in ghd_tran_init_pkt_attr()
253 pktp->pkt_resid = bp->b_bcount - gcmdp->cmd_totxfer; in ghd_tran_init_pkt_attr()
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_vnops.c2192 struct buf *bp; in udf_pageio() local
2228 bp = NULL; in udf_pageio()
2266 bp->b_file = vp; in udf_pageio()
2503 struct buf *bp; in ud_page_fill() local
2537 brelse(bp); in ud_page_fill()
2831 brelse(bp); in ud_putapage()
2849 bwrite(bp); in ud_putapage()
2972 iodone(bp); in ud_iodone()
3487 mm->mm_bp = bp; in ud_multi_strat()
3581 bp_mapout(bp); in ud_slave_done()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvdisc.c186 #define isblocked(bp,type) ((bp)->flags & (1<<(type))) argument
187 #define block(bp,type) ((bp)->flags |= (1<<(type))) argument
188 #define unblock(bp,type) ((bp)->flags &= ~(1<<(type))) argument
200 for(bp=blist ; bp; bp=bp->next) in block_info()
202 if(bp->np==np && bp->sub==sub && bp->isub==isub) in block_info()
203 return(bp); in block_info()
219 blist = bp = bp->next; in block_done()
220 if(bp && (bp->isub>=0 || bp->sub)) in block_done()
221 nv_putsub(bp->np, bp->sub,(bp->isub<0?0:bp->isub)|ARRAY_SETSUB); in block_done()
356 if(bp== &block) in assign()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dccmapid.c140 const Ccmap_t* bp; in ccmapid() local
144 bp = 0; in ccmapid()
154 bp = mp; in ccmapid()
157 return bp ? bp->ccode : -1; in ccmapid()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_directio.c189 buf_t *bp; in directio_wait_one() local
195 bp = &dbp->buf; in directio_wait_one()
196 error = biowait(bp); in directio_wait_one()
207 if (bp->b_resid) in directio_wait_one()
208 *bytes_iop = bp->b_bcount - bp->b_resid; in directio_wait_one()
251 buf_t *bp; in directio_start() local
270 bp = &dbp->buf; in directio_start()
271 bp->b_edev = ip->i_dev; in directio_start()
273 bp->b_bcount = nbytes; in directio_start()
275 bp->b_proc = procp; in directio_start()
[all …]
H A Dufs_alloc.c660 brelse(bp); in free()
681 brelse(bp); in free()
762 bdrwrite(bp); in free()
800 brelse(bp); in ufs_ifree()
809 brelse(bp); in ufs_ifree()
918 brelse(bp); in fragextend()
1008 brelse(bp); in alloccg()
1087 brelse(bp); in alloccg()
1308 brelse(bp); in ialloccg()
1319 brelse(bp); in ialloccg()
[all …]
/illumos-gate/usr/src/lib/storage/liba5k/common/
H A Ddiag.c217 Bp_elem_st *bp; in l_bp_bypass_enable() local
303 l_element_msg_string(bp->code, msg); in l_bp_bypass_enable()
305 if (bp->byp_a_enabled || bp->en_bypass_a) { in l_bp_bypass_enable()
311 if (bp->byp_b_enabled || bp->en_bypass_b) { in l_bp_bypass_enable()
329 l_element_msg_string(bp->code, msg); in l_bp_bypass_enable()
331 if (bp->byp_a_enabled || bp->en_bypass_a) { in l_bp_bypass_enable()
337 if (bp->byp_b_enabled || bp->en_bypass_b) { in l_bp_bypass_enable()
357 bp->select = 1; in l_bp_bypass_enable()
358 bp->code = 0; in l_bp_bypass_enable()
360 bp->en_bypass_a = bypass_flag; in l_bp_bypass_enable()
[all …]
/illumos-gate/usr/src/lib/libzpool/common/
H A Dkernel.c642 bioinit(buf_t *bp) in bioinit() argument
644 bzero(bp, sizeof (buf_t)); in bioinit()
648 biodone(buf_t *bp) in biodone() argument
651 (*(bp->b_iodone))(bp); in biodone()
655 bp->b_flags |= B_DONE; in biodone()
661 ASSERT(bp != NULL); in bioerror()
665 bp->b_flags |= B_ERROR; in bioerror()
667 bp->b_flags &= ~B_ERROR; in bioerror()
669 bp->b_error = error; in bioerror()
674 geterror(struct buf *bp) in geterror() argument
[all …]
/illumos-gate/usr/src/cmd/listen/
H A Dnstoa.c255 int bp = SBUFSIZE - 1; local
272 buf[bp] = '\0';
274 while (bp > 0 && end >= s) {
275 buf[bp] |= toxdigit(*end) << shift;
278 buf[--bp] = (todigit(*end) >> (8 - shift))
282 buf[--bp] = 0;
286 buf[--bp] = 0;;
289 if (bp == 0) {
296 bp++;
297 memcp(buf, &buf[bp], (SBUFSIZE - bp));
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/dst/
H A Dhmac_link.c281 char *bp; in dst_hmac_md5_key_to_file_format() local
300 bp = buff + strlen(buff); in dst_hmac_md5_key_to_file_format()
310 if (buff_len - (bp - buff) < 6) in dst_hmac_md5_key_to_file_format()
312 strcat(bp, "Key: "); in dst_hmac_md5_key_to_file_format()
313 bp += strlen("Key: "); in dst_hmac_md5_key_to_file_format()
315 len = b64_ntop(key, key_len, bp, buff_len - (bp - buff)); in dst_hmac_md5_key_to_file_format()
318 bp += len; in dst_hmac_md5_key_to_file_format()
319 if (buff_len - (bp - buff) < 2) in dst_hmac_md5_key_to_file_format()
321 *(bp++) = '\n'; in dst_hmac_md5_key_to_file_format()
322 *bp = '\0'; in dst_hmac_md5_key_to_file_format()
[all …]
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dgeneralop.c1589 while ((bp < &cp[len]) && isspace(*bp)) in kmf_string_to_oid()
1600 while ((bp < &cp[len]) && isdigit(*bp)) in kmf_string_to_oid()
1602 while ((bp < &cp[len]) && (isspace(*bp) || *bp == '.')) in kmf_string_to_oid()
1608 while ((bp < &cp[len]) && (isspace(*bp) || *bp == '.')) in kmf_string_to_oid()
1621 while ((bp < &cp[len]) && (isspace(*bp) || *bp == '.')) in kmf_string_to_oid()
1637 while (isdigit(*bp)) bp++; in kmf_string_to_oid()
1638 while (isspace(*bp) || *bp == '.') bp++; in kmf_string_to_oid()
1646 while (isdigit(*bp)) bp++; in kmf_string_to_oid()
1647 while (isspace(*bp) || *bp == '.') bp++; in kmf_string_to_oid()
1667 while (isdigit(*bp)) bp++; in kmf_string_to_oid()
[all …]
/illumos-gate/usr/src/uts/common/sys/dktp/
H A Dcm.h56 #define SET_BP_SEC(bp, X) ((bp)->b_private = (void *) (X)) argument
57 #define GET_BP_SEC(bp) ((daddr_t)(bp)->b_private) argument

12345678910>>...30