Lines Matching refs:blocksize
370 lbas = ctl_kern_data_len(io) / cbe_lun->blocksize; in ctl_backend_ramdisk_cmp()
377 page += lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_cmp()
379 cbe_lun->blocksize); in ctl_backend_ramdisk_cmp()
381 if (res < cbe_lun->blocksize) in ctl_backend_ramdisk_cmp()
433 lbas = MIN(lbas, 131072 / cbe_lun->blocksize); in ctl_backend_ramdisk_compare()
434 len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_compare()
461 off = lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
467 len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
493 ctl_set_kern_data_len(io, lbas * cbe_lun->blocksize); in ctl_backend_ramdisk_rw()
622 nsdata->ncap = htole64(be_lun->cap_bytes / cbe_lun->blocksize); in ramdisk_namespace_data()
623 nsdata->nuse = htole64(be_lun->cap_used / cbe_lun->blocksize); in ramdisk_namespace_data()
631 ffs(cbe_lun->blocksize) - 1); in ramdisk_namespace_data()
707 memset(page + lbaoff * cbe_lun->blocksize, 0, in ctl_backend_ramdisk_delete()
709 cbe_lun->blocksize); in ctl_backend_ramdisk_delete()
720 memset(page, 0, lbaoff * cbe_lun->blocksize); in ctl_backend_ramdisk_delete()
772 page += lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_ws()
774 memset(page, 0, cbe_lun->blocksize); in ctl_backend_ramdisk_ws()
777 cbe_lun->blocksize); in ctl_backend_ramdisk_ws()
920 page += lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_wz()
921 memset(page, 0, cbe_lun->blocksize); in ctl_backend_ramdisk_wz()
1001 val = be_lun->cap_used / be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_lun_attr()
1004 be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_lun_attr()
1172 cbe_lun->blocksize = params->blocksize_bytes; in ctl_backend_ramdisk_create()
1174 cbe_lun->blocksize = 2048; in ctl_backend_ramdisk_create()
1176 cbe_lun->blocksize = 512; in ctl_backend_ramdisk_create()
1177 be_lun->pblockmul = be_lun->pblocksize / cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1182 be_lun->pblocksize, cbe_lun->blocksize); in ctl_backend_ramdisk_create()
1185 if (params->lun_size_bytes < cbe_lun->blocksize) { in ctl_backend_ramdisk_create()
1188 params->lun_size_bytes, cbe_lun->blocksize); in ctl_backend_ramdisk_create()
1191 be_lun->size_blocks = params->lun_size_bytes / cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1192 be_lun->size_bytes = be_lun->size_blocks * cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1215 params->blocksize_bytes = cbe_lun->blocksize; in ctl_backend_ramdisk_create()
1344 uint32_t blocksize; in ctl_backend_ramdisk_modify() local
1389 blocksize = be_lun->cbe_lun.blocksize; in ctl_backend_ramdisk_modify()
1390 if (be_lun->params.lun_size_bytes < blocksize) { in ctl_backend_ramdisk_modify()
1393 be_lun->params.lun_size_bytes, blocksize); in ctl_backend_ramdisk_modify()
1396 be_lun->size_blocks = be_lun->params.lun_size_bytes / blocksize; in ctl_backend_ramdisk_modify()
1397 be_lun->size_bytes = be_lun->size_blocks * blocksize; in ctl_backend_ramdisk_modify()