Home
last modified time | relevance | path

Searched refs:b_bcount (Results 1 – 25 of 107) sorted by relevance

12345

/titanic_50/usr/src/uts/common/fs/ufs/
H A Dlufs_log.c97 if (atomic_add_long_nv(&sv->sv_nb_left, -cb->b_bcount)) { in ldl_strategy_done()
181 nb_left = pb->b_bcount; in ldl_strategy()
203 cb->b_resid = cb->b_bcount; in ldl_strategy()
269 ASSERT(bp->b_bcount); in readlog()
303 ASSERT((bp->b_bcount & (DEV_BSIZE-1)) == 0); in push_dirty_bp()
318 if (bp->b_bcount == bp->b_bufsize) in push_dirty_bp()
333 newbp->b_bcount = 0; in push_dirty_bp()
336 newbp->b_bufsize = bp->b_bufsize - bp->b_bcount; in push_dirty_bp()
337 newbp->b_un.b_addr = bp->b_un.b_addr + bp->b_bcount; in push_dirty_bp()
338 bp->b_bufsize = bp->b_bcount; in push_dirty_bp()
[all …]
/titanic_50/usr/src/uts/common/io/usb/usba/
H A Dusba_ugen.c1214 (void *)bp, bp->b_bcount, bp->b_resid, geterror(bp), in ugen_strategy()
1251 if (bp->b_bcount > ugenp->ug_max_bulk_xfer_sz) { in ugen_minphys()
1252 bp->b_bcount = ugenp->ug_max_bulk_xfer_sz; in ugen_minphys()
2424 int len = min(bp->b_bcount, ep_len); in ugen_epx_ctrl_req()
2432 bp->b_resid = bp->b_bcount - len; in ugen_epx_ctrl_req()
2434 bp->b_resid = bp->b_bcount; in ugen_epx_ctrl_req()
2502 if (((bp->b_bcount - UGEN_SETUP_PKT_SIZE) - wLength) != 0) { in ugen_epx_ctrl_req()
2513 if (bp->b_bcount != UGEN_SETUP_PKT_SIZE) { in ugen_epx_ctrl_req()
2611 bp->b_bcount, USB_FLAGS_NOSLEEP); in ugen_epx_bulk_req()
2629 reqp->bulk_len = bp->b_bcount; in ugen_epx_bulk_req()
[all …]
/titanic_50/usr/src/uts/common/fs/hsfs/
H A Dhsfs_vnops.c993 bufs[count].b_bcount = remaining_bytes; in hsfs_getpage_ra()
996 bufs[count].b_bcount = off + len - byte_offset; in hsfs_getpage_ra()
1000 if (bufs[count].b_bcount > remainder) { in hsfs_getpage_ra()
1001 bufs[count].b_bcount = remainder; in hsfs_getpage_ra()
1004 bufs[count].b_bufsize = bufs[count].b_bcount; in hsfs_getpage_ra()
1005 if (((offset_t)byte_offset + bufs[count].b_bcount) > in hsfs_getpage_ra()
1009 byte_offset += bufs[count].b_bcount; in hsfs_getpage_ra()
1027 hsio->nblocks = howmany(hsio->bp->b_bcount, in hsfs_getpage_ra()
1039 if ((remainder - bufs[count].b_bcount) < 1) { in hsfs_getpage_ra()
1358 bufs[count].b_bcount = remaining_bytes; in hsfs_getapage()
[all …]
/titanic_50/usr/src/uts/intel/io/dktp/drvobj/
H A Dstrategy.c270 (in_bp->b_bcount - in_bp->b_resid); in dsngl_deque()
274 (in_bp->b_bcount - in_bp->b_resid); in dsngl_deque()
405 (in_bp->b_bcount - in_bp->b_resid); in dmult_deque()
409 (in_bp->b_bcount - in_bp->b_resid); in dmult_deque()
628 (in_bp->b_bcount - in_bp->b_resid); in duplx_deque()
632 (in_bp->b_bcount - in_bp->b_resid); in duplx_deque()
890 (bp1->b_bcount & PAGEOFFSET) || (bp2->b_bcount & PAGEOFFSET) ||
891 (bp1->b_bcount + bp2->b_bcount > qmerge_max_merge))
894 if ((DBLK(bp2) + bp2->b_bcount / DEV_BSIZE == DBLK(bp1)) ||
895 (DBLK(bp1) + bp1->b_bcount / DEV_BSIZE == DBLK(bp2)))
[all …]
/titanic_50/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_scsa.c223 if (bp && bp->b_bcount && sg_attrp) { in ghd_tran_init_pkt_attr()
249 bp->b_bcount - gcmdp->cmd_totxfer, in ghd_tran_init_pkt_attr()
255 pktp->pkt_resid = bp->b_bcount - gcmdp->cmd_totxfer; in ghd_tran_init_pkt_attr()
/titanic_50/usr/src/uts/common/io/blkdev/
H A Dblkdev.c760 if (bp->b_bcount == 0) { in bd_xfer_alloc()
785 (bp->b_bcount + (bd->d_maxxfer - 1)) / bd->d_maxxfer; in bd_xfer_alloc()
787 xi->i_len = min(bp->b_bcount, bd->d_maxxfer); in bd_xfer_alloc()
790 xi->i_resid = bp->b_bcount; in bd_xfer_alloc()
810 xi->i_len = bp->b_bcount; in bd_xfer_alloc()
812 xi->i_resid = bp->b_bcount; in bd_xfer_alloc()
830 xi->i_resid = bp->b_bcount; in bd_xfer_alloc()
1076 bp->b_bcount = nblk << DEV_BSHIFT; in bd_dump()
1077 bp->b_resid = bp->b_bcount; in bd_dump()
1119 if (bp->b_bcount > bd->d_maxxfer) in bd_minphys()
[all …]
/titanic_50/usr/src/uts/common/io/scsi/targets/
H A Dsd_xbuf.c223 ASSERT((bp->b_bcount & (DEV_BSIZE - 1)) == 0); in ddi_xbuf_qstrategy()
229 if (xap->xa_brksize && bp->b_bcount > xap->xa_brksize) { in ddi_xbuf_qstrategy()
341 bp0->b_resid = bp0->b_bcount; in xbuf_brk_done()
506 if (brkp->noff < bp0->b_bcount) { in xbuf_iostart()
517 bp0->b_bcount - brkp->off, bp0->b_edev, in xbuf_iostart()
666 bp->b_resid = bp->b_bcount; in ddi_xbuf_flushq()
H A Dst.c51 #define IS_RW(bp) ((bp)->b_bcount > 0)
3874 bp->b_bcount); in st_minphys()
3881 if (un->un_bsize == 0 && bp->b_bcount > un->un_maxbsize) { in st_minphys()
3882 bp->b_bcount = un->un_maxbsize; in st_minphys()
3888 if (bp->b_bcount > un->un_maxdma) { in st_minphys()
3889 bp->b_bcount = un->un_maxdma; in st_minphys()
3897 if (bp->b_bcount > ST_MAXRECSIZE_VARIABLE) { in st_minphys()
3898 bp->b_bcount = ST_MAXRECSIZE_VARIABLE_LIMIT; in st_minphys()
3901 if (bp->b_bcount > ST_MAXRECSIZE_FIXED) { in st_minphys()
3902 bp->b_bcount = ST_MAXRECSIZE_FIXED; in st_minphys()
[all …]
/titanic_50/usr/src/uts/common/os/
H A Dvm_subr.c81 if (bp->b_bcount > maxphys) in minphys()
82 bp->b_bcount = maxphys; in minphys()
230 bp->b_bcount = MIN(iov->iov_len, uio->uio_resid); in default_physio()
232 c = bp->b_bcount; in default_physio()
H A Dbio.c223 ASSERT(bp->b_bcount == bsize); in bread_common()
260 bp->b_bcount = bsize; in breada()
267 if (rablkno && bfreelist.b_bcount > 1 && in breada()
274 rabp->b_bcount = bsize; in breada()
396 if (bfreelist.b_bcount > 4) in bawrite()
479 ASSERT(bp->b_bcount > 0); in brelse()
703 nbp->b_bcount = bsize; in getblk_common()
764 bp->b_bcount = bsize; in ngeteblk()
852 bzero(bp->b_un.b_addr, bp->b_bcount); in clrbuf()
1361 bp->b_bcount = len; in pageio_setup()
[all …]
H A Dbp_map.c108 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE); in bp_mapin_common()
216 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE); in bp_mapout()
287 ASSERT((offset + size) <= bp->b_bcount); in bp_copy_common()
/titanic_50/usr/src/uts/common/io/usb/clients/usbskel/
H A Dusbskel.c707 bp->b_resid = bp->b_bcount; in usbskel_strategy()
735 usbskelp->usbskel_dip, bp->b_bcount, USB_FLAGS_SLEEP)) == in usbskel_strategy()
750 request->ctrl_wLength = bp->b_bcount; in usbskel_strategy()
799 if (bp->b_bcount > USBSKEL_REQUEST_SIZE) { in usbskel_minphys()
800 bp->b_bcount = USBSKEL_REQUEST_SIZE; in usbskel_minphys()
831 "at entry, b_bcount = %lu, b_resid = %lu, trans = %d", bp->b_bcount, in usbskel_normal_callback()
855 bp->b_resid = bp->b_bcount - amt_transferred; in usbskel_normal_callback()
858 "at exit, b_bcount = %lu, b_resid = %lu, trans = %d", bp->b_bcount, in usbskel_normal_callback()
887 bp->b_bcount, bp->b_resid, amt_transferred); in usbskel_exception_callback()
899 bp->b_resid = bp->b_bcount - amt_transferred; in usbskel_exception_callback()
[all …]
/titanic_50/usr/src/uts/common/sys/
H A Dbuf.h87 size_t b_bcount; /* transfer count */ member
113 #define b_active b_bcount
142 size_t b_bcount; /* transfer count */ member
/titanic_50/usr/src/uts/common/sys/dktp/
H A Dquetypes.h40 #define q_cnt q_tab.b_bcount
H A Dfctypes.h59 #define ds_waitcnt ds_tab.b_bcount
/titanic_50/usr/src/cmd/dtrace/demo/io/
H A Dwhoio.d31 @[args[1]->dev_statname, execname, pid] = sum(args[0]->b_bcount);
H A Diothrough.d59 quantize((args[0]->b_bcount * 976562) / this->elapsed);
/titanic_50/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_io.c314 if (bp && bp->b_bcount) { in iscsi_task_cleanup()
381 (data_transferred != icmdp->cmd_un.scsi.bp->b_bcount)) { in iscsi_cmd_rsp_chk()
390 if (icmdp->cmd_un.scsi.bp->b_bcount > in iscsi_cmd_rsp_chk()
397 icmdp->cmd_un.scsi.bp->b_bcount - in iscsi_cmd_rsp_chk()
406 icmdp->cmd_un.scsi.bp->b_bcount, in iscsi_cmd_rsp_chk()
429 icmdp->cmd_un.scsi.bp->b_bcount; in iscsi_cmd_rsp_chk()
719 (bp == NULL) ? 0 : bp->b_bcount; in iscsi_rx_process_cmd_rsp()
745 issrhp->response, icmdp->cmd_un.scsi.bp->b_bcount); in iscsi_rx_process_cmd_rsp()
749 pkt->pkt_resid = icmdp->cmd_un.scsi.bp->b_bcount; in iscsi_rx_process_cmd_rsp()
792 if (bp && (data_transferred != bp->b_bcount)) { in iscsi_data_rsp_pkt()
[all …]
/titanic_50/usr/src/uts/common/io/scsi/impl/
H A Dscsi_resource.c95 bp->b_bcount = datalen; in scsi_alloc_consistent_buf()
382 if (bp && bp->b_bcount) { in scsi_init_cache_pkt()
441 ((uintptr_t)bp->b_bcount & 0x7))) { in scsi_init_cache_pkt()
465 ASSERT(pktw->pcw_total_xfer <= bp->b_bcount); in scsi_init_cache_pkt()
466 in_pktp->pkt_resid = bp->b_bcount - in scsi_init_cache_pkt()
/titanic_50/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci_tpgs.c79 bp->b_bcount = len; in vhci_tpgs_set_target_groups()
257 bp->b_bcount = sizeof (inq); in vhci_tpgs_inquiry()
329 bp->b_bcount = buf_len; in vhci_tpgs_page83()
471 bp->b_bcount = len; in vhci_tpgs_report_target_groups()
/titanic_50/usr/src/uts/common/io/
H A Dlofi.c799 bp->b_resid = bp->b_bcount; in lofi_mapped_rdwr()
1033 len = bp->b_bcount; in lofi_strategy_task()
1088 bp->b_resid = bp->b_bcount; in lofi_strategy_task()
1103 eblkno = (offset + bp->b_bcount) >> lsp->ls_comp_seg_shift; in lofi_strategy_task()
1104 eblkoff = (offset + bp->b_bcount) & (lsp->ls_uncomp_seg_sz - 1); in lofi_strategy_task()
1127 bp->b_bcount); in lofi_strategy_task()
1149 eblkoff = (offset + bp->b_bcount) & in lofi_strategy_task()
1159 oblkcount = bp->b_bcount; in lofi_strategy_task()
1165 bp->b_bcount = comp_data_sz; in lofi_strategy_task()
1188 if (lsp->ls_comp_bufs[j].bufsize < bp->b_bcount) { in lofi_strategy_task()
[all …]
/titanic_50/usr/src/uts/intel/io/dktp/controller/ata/
H A Datapi.c631 if (bp->b_bcount == 0) { in atapi_tran_init_pkt()
660 if (bp->b_bcount & 1) { in atapi_tran_init_pkt()
733 if (bp && bp->b_bcount) { in atapi_tran_init_pkt()
774 resid = bp->b_bcount - ata_pktp->ap_boffset; in atapi_tran_init_pkt()
784 ata_pktp->ap_bcount = bp->b_bcount; in atapi_tran_init_pkt()
/titanic_50/usr/src/uts/intel/io/dktp/dcdev/
H A Ddadk.c660 if (bp->b_bcount & (dadkp->DAD_SECSIZ-1)) { in dadk_strategy()
685 if (bp->b_bcount & (dadkp->DAD_SECSIZ-1)) { in dadk_dump()
756 bp->b_bcount = NBPSCTR; in dadk_ioctl()
860 bp->b_bcount = 0; in dadk_ioctl()
1111 bp->b_bcount = iobp->b_pbytecnt; in dadk_iob_xfer()
1123 bp->b_bcount = iobp->b_xfer; in dadk_iob_xfer()
1175 pktp->cp_byteleft = bp->b_bcount; in dadk_ioprep()
1199 pktp->cp_secleft = (bp->b_bcount >> dadkp->dad_secshf); in dadk_iosetup()
1774 if (bp->b_bcount > dadk_dk_maxphys) in dadkmin()
1775 bp->b_bcount = dadk_dk_maxphys; in dadkmin()
/titanic_50/usr/src/uts/common/xen/io/
H A Dxdf.h266 (((bp)->b_bcount & XB_BMASK) == 0))
283 size_t n_done = (bp)->b_bcount - (bp)->b_resid; \
/titanic_50/usr/src/uts/common/fs/zfs/
H A Dvdev_file.c173 vp, bp->b_un.b_addr, bp->b_bcount, ldbtob(bp->b_lblkno), in vdev_file_io_strategy()
224 bp->b_bcount = zio->io_size; in vdev_file_io_start()

12345