Searched refs:SD_BYTES2TGTBLOCKS (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/uts/common/sys/scsi/targets/ |
H A D | sddef.h | 611 #define SD_BYTES2TGTBLOCKS(un, bytecount) \ macro 635 (SD_BYTES2TGTBLOCKS(un, bytecount) * (un)->un_tgt_blocksize)
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | sd.c | 11940 requested_nblocks = SD_BYTES2TGTBLOCKS(un, bp->b_bcount); in sd_mapblockaddr_iostart() 12938 blockcount = SD_BYTES2TGTBLOCKS(un, bp->b_bcount); in sd_initpkt_for_buf() 13136 SD_BYTES2TGTBLOCKS(un, in sd_setup_rw_pkt() 13247 SD_BYTES2TGTBLOCKS(un, pktp->pkt_resid); in sd_setup_next_rw_pkt() 20708 ubd->ubd_lba = BE_64(SD_BYTES2TGTBLOCKS(un, 20710 ubd->ubd_lba_cnt = BE_32(SD_BYTES2TGTBLOCKS(un, len)); 21252 block_count = SD_BYTES2TGTBLOCKS(un, buflen); 25556 nblk -= SD_BYTES2TGTBLOCKS(un, dma_resid); 29415 num_blks_not_xfered = SD_BYTES2TGTBLOCKS(un, bytes_not_xfered); 29421 SD_BYTES2TGTBLOCKS(un, bp->b_bcount - bytes_not_xfered);
|