Lines Matching refs:blocksize
376 lbas = io->scsiio.kern_data_len / cbe_lun->blocksize; in ctl_backend_ramdisk_cmp()
383 page += lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_cmp()
385 cbe_lun->blocksize); in ctl_backend_ramdisk_cmp()
387 if (res < cbe_lun->blocksize) in ctl_backend_ramdisk_cmp()
465 lbas = MIN(lbas, 131072 / cbe_lun->blocksize); in ctl_backend_ramdisk_compare()
466 len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_compare()
496 off = lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
502 len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
528 io->scsiio.kern_data_len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
662 memset(page + lbaoff * cbe_lun->blocksize, 0, in ctl_backend_ramdisk_delete()
664 cbe_lun->blocksize); in ctl_backend_ramdisk_delete()
675 memset(page, 0, lbaoff * cbe_lun->blocksize); in ctl_backend_ramdisk_delete()
725 page += lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_ws()
727 memset(page, 0, cbe_lun->blocksize); in ctl_backend_ramdisk_ws()
730 cbe_lun->blocksize); in ctl_backend_ramdisk_ws()
836 val = be_lun->cap_used / be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_lun_attr()
839 be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_lun_attr()
1029 cbe_lun->blocksize = params->blocksize_bytes; in ctl_backend_ramdisk_create()
1031 cbe_lun->blocksize = 2048; in ctl_backend_ramdisk_create()
1033 cbe_lun->blocksize = 512; in ctl_backend_ramdisk_create()
1034 be_lun->pblockmul = be_lun->pblocksize / cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1039 be_lun->pblocksize, cbe_lun->blocksize); in ctl_backend_ramdisk_create()
1042 if (params->lun_size_bytes < cbe_lun->blocksize) { in ctl_backend_ramdisk_create()
1045 params->lun_size_bytes, cbe_lun->blocksize); in ctl_backend_ramdisk_create()
1048 be_lun->size_blocks = params->lun_size_bytes / cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1049 be_lun->size_bytes = be_lun->size_blocks * cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1072 params->blocksize_bytes = cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1232 uint32_t blocksize; in ctl_backend_ramdisk_modify() local
1275 blocksize = be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_modify()
1276 if (be_lun->params.lun_size_bytes < blocksize) { in ctl_backend_ramdisk_modify()
1279 be_lun->params.lun_size_bytes, blocksize); in ctl_backend_ramdisk_modify()
1282 be_lun->size_blocks = be_lun->params.lun_size_bytes / blocksize; in ctl_backend_ramdisk_modify()
1283 be_lun->size_bytes = be_lun->size_blocks * blocksize; in ctl_backend_ramdisk_modify()