Lines Matching refs:blocksize

823 	off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize;  in ctl_be_block_gls_file()
843 scsi_ulto4b(MIN(UINT32_MAX, off / be_lun->cbe_lun.blocksize - in ctl_be_block_gls_file()
865 val = vattr.va_bytes / be_lun->cbe_lun.blocksize; in ctl_be_block_getattr_file()
872 be_lun->cbe_lun.blocksize; in ctl_be_block_getattr_file()
908 be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_file()
910 be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_file()
1081 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize; in ctl_be_block_gls_zvol()
1101 scsi_ulto4b(MIN(UINT32_MAX, off / be_lun->cbe_lun.blocksize - in ctl_be_block_gls_zvol()
1163 maxlen = LONG_MAX - (LONG_MAX % be_lun->cbe_lun.blocksize); in ctl_be_block_unmap_dev_range()
1173 bio->bio_pblkno = off / be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_dev_range()
1218 be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_dev()
1221 scsi_8btou64(buf->lba) * be_lun->cbe_lun.blocksize, in ctl_be_block_unmap_dev()
1275 bio->bio_pblkno = cur_offset / be_lun->cbe_lun.blocksize; in ctl_be_block_dispatch_dev()
1346 ffs(cbe_lun->blocksize) - 1); in ctl_be_block_namespace_data()
1374 beio->io_len = lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_sync()
1375 beio->io_offset = lbalen->lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_sync()
1434 beio->io_offset = lbalen->lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1435 beio->io_len = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1449 pb = cbe_lun->blocksize << be_lun->cbe_lun.pblockexp; in ctl_be_block_cw_dispatch_ws()
1451 pbo = pb - cbe_lun->blocksize * be_lun->cbe_lun.pblockoff; in ctl_be_block_cw_dispatch_ws()
1454 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1460 if (pb > cbe_lun->blocksize) { in ctl_be_block_cw_dispatch_ws()
1461 adj = ((lbalen->lba + lba) * cbe_lun->blocksize + in ctl_be_block_cw_dispatch_ws()
1466 seglen -= seglen % cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1468 seglen -= seglen % cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1479 for (; buf < end; buf += cbe_lun->blocksize) { in ctl_be_block_cw_dispatch_ws()
1481 memset(buf, 0, cbe_lun->blocksize); in ctl_be_block_cw_dispatch_ws()
1484 cbe_lun->blocksize); in ctl_be_block_cw_dispatch_ws()
1492 beio->io_offset = lbalen->lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1493 beio->io_len = lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_ws()
1574 beio->io_offset = lbalen->lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wu()
1575 beio->io_len = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wu()
1603 beio->io_offset = lbalen->lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wz()
1604 beio->io_len = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wz()
1618 pb = cbe_lun->blocksize << be_lun->cbe_lun.pblockexp; in ctl_be_block_cw_dispatch_wz()
1620 pbo = pb - cbe_lun->blocksize * be_lun->cbe_lun.pblockoff; in ctl_be_block_cw_dispatch_wz()
1623 len_left = (uint64_t)lbalen->len * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wz()
1629 if (pb > cbe_lun->blocksize) { in ctl_be_block_cw_dispatch_wz()
1630 adj = ((lbalen->lba + lba) * cbe_lun->blocksize + in ctl_be_block_cw_dispatch_wz()
1635 seglen -= seglen % cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wz()
1637 seglen -= seglen % cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wz()
1647 lba += seglen / cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wz()
1650 beio->io_offset = lbalen->lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wz()
1651 beio->io_len = lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_wz()
1711 beio->io_offset = lba * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_dsm()
1712 beio->io_len = (uint64_t)num_blocks * cbe_lun->blocksize; in ctl_be_block_cw_dispatch_dsm()
2008 lbas = MIN(lbalen->len - bptrlen->len, lbas / cbe_lun->blocksize); in ctl_be_block_dispatch()
2009 beio->io_offset = (lbalen->lba + bptrlen->len) * cbe_lun->blocksize; in ctl_be_block_dispatch()
2010 beio->io_len = lbas * cbe_lun->blocksize; in ctl_be_block_dispatch()
2265 cbe_lun->blocksize = params->blocksize_bytes; in ctl_be_block_open_file()
2267 cbe_lun->blocksize = 2048; in ctl_be_block_open_file()
2269 cbe_lun->blocksize = 512; in ctl_be_block_open_file()
2270 be_lun->size_blocks = be_lun->size_bytes / cbe_lun->blocksize; in ctl_be_block_open_file()
2283 pss = ps / cbe_lun->blocksize; in ctl_be_block_open_file()
2284 pos = po / cbe_lun->blocksize; in ctl_be_block_open_file()
2285 if ((pss > 0) && (pss * cbe_lun->blocksize == ps) && (pss >= pos) && in ctl_be_block_open_file()
2286 ((pss & (pss - 1)) == 0) && (pos * cbe_lun->blocksize == po)) { in ctl_be_block_open_file()
2297 uss = us / cbe_lun->blocksize; in ctl_be_block_open_file()
2298 uos = uo / cbe_lun->blocksize; in ctl_be_block_open_file()
2299 if ((uss > 0) && (uss * cbe_lun->blocksize == us) && (uss >= uos) && in ctl_be_block_open_file()
2300 ((uss & (uss - 1)) == 0) && (uos * cbe_lun->blocksize == uo)) { in ctl_be_block_open_file()
2309 if (be_lun->size_bytes < cbe_lun->blocksize) { in ctl_be_block_open_file()
2313 (uintmax_t)be_lun->size_bytes, cbe_lun->blocksize); in ctl_be_block_open_file()
2316 cbe_lun->opttxferlen = CTLBLK_MAX_IO_SIZE / cbe_lun->blocksize; in ctl_be_block_open_file()
2381 cbe_lun->blocksize = params->blocksize_bytes; in ctl_be_block_open_dev()
2397 cbe_lun->blocksize = MAX(tmp, 2048); in ctl_be_block_open_dev()
2399 cbe_lun->blocksize = tmp; in ctl_be_block_open_dev()
2426 be_lun->size_blocks = be_lun->size_bytes / cbe_lun->blocksize; in ctl_be_block_open_dev()
2449 pss = ps / cbe_lun->blocksize; in ctl_be_block_open_dev()
2450 pos = po / cbe_lun->blocksize; in ctl_be_block_open_dev()
2451 if ((pss > 0) && (pss * cbe_lun->blocksize == ps) && (pss >= pos) && in ctl_be_block_open_dev()
2452 ((pss & (pss - 1)) == 0) && (pos * cbe_lun->blocksize == po)) { in ctl_be_block_open_dev()
2463 uss = us / cbe_lun->blocksize; in ctl_be_block_open_dev()
2464 uos = uo / cbe_lun->blocksize; in ctl_be_block_open_dev()
2465 if ((uss > 0) && (uss * cbe_lun->blocksize == us) && (uss >= uos) && in ctl_be_block_open_dev()
2466 ((uss & (uss - 1)) == 0) && (uos * cbe_lun->blocksize == uo)) { in ctl_be_block_open_dev()
2471 cbe_lun->atomicblock = atomic / cbe_lun->blocksize; in ctl_be_block_open_dev()
2472 cbe_lun->opttxferlen = maxio / cbe_lun->blocksize; in ctl_be_block_open_dev()
2672 cbe_lun->blocksize = params->blocksize_bytes; in ctl_be_block_create()
2674 cbe_lun->blocksize = 2048; in ctl_be_block_create()
2676 cbe_lun->blocksize = 512; in ctl_be_block_create()
2677 be_lun->size_blocks = be_lun->size_bytes / cbe_lun->blocksize; in ctl_be_block_create()
2716 params->blocksize_bytes = cbe_lun->blocksize; in ctl_be_block_create()
2800 cbe_lun->blocksize, in ctl_be_block_create()