Lines Matching refs:blocksize

373 	lbas = io->scsiio.kern_data_len / cbe_lun->blocksize;  in ctl_backend_ramdisk_cmp()
380 page += lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_cmp()
382 cbe_lun->blocksize); in ctl_backend_ramdisk_cmp()
384 if (res < cbe_lun->blocksize) in ctl_backend_ramdisk_cmp()
442 lbas = MIN(lbas, 131072 / cbe_lun->blocksize); in ctl_backend_ramdisk_compare()
443 len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_compare()
470 off = lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
476 len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
502 io->scsiio.kern_data_len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
633 memset(page + lbaoff * cbe_lun->blocksize, 0, in ctl_backend_ramdisk_delete()
635 cbe_lun->blocksize); in ctl_backend_ramdisk_delete()
646 memset(page, 0, lbaoff * cbe_lun->blocksize); in ctl_backend_ramdisk_delete()
696 page += lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_ws()
698 memset(page, 0, cbe_lun->blocksize); in ctl_backend_ramdisk_ws()
701 cbe_lun->blocksize); in ctl_backend_ramdisk_ws()
807 val = be_lun->cap_used / be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_lun_attr()
810 be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_lun_attr()
978 cbe_lun->blocksize = params->blocksize_bytes; in ctl_backend_ramdisk_create()
980 cbe_lun->blocksize = 2048; in ctl_backend_ramdisk_create()
982 cbe_lun->blocksize = 512; in ctl_backend_ramdisk_create()
983 be_lun->pblockmul = be_lun->pblocksize / cbe_lun->blocksize; in ctl_backend_ramdisk_create()
988 be_lun->pblocksize, cbe_lun->blocksize); in ctl_backend_ramdisk_create()
991 if (params->lun_size_bytes < cbe_lun->blocksize) { in ctl_backend_ramdisk_create()
994 params->lun_size_bytes, cbe_lun->blocksize); in ctl_backend_ramdisk_create()
997 be_lun->size_blocks = params->lun_size_bytes / cbe_lun->blocksize; in ctl_backend_ramdisk_create()
998 be_lun->size_bytes = be_lun->size_blocks * cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1021 params->blocksize_bytes = cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1150 uint32_t blocksize; in ctl_backend_ramdisk_modify() local
1195 blocksize = be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_modify()
1196 if (be_lun->params.lun_size_bytes < blocksize) { in ctl_backend_ramdisk_modify()
1199 be_lun->params.lun_size_bytes, blocksize); in ctl_backend_ramdisk_modify()
1202 be_lun->size_blocks = be_lun->params.lun_size_bytes / blocksize; in ctl_backend_ramdisk_modify()
1203 be_lun->size_bytes = be_lun->size_blocks * blocksize; in ctl_backend_ramdisk_modify()