Lines Matching refs:resize

35 				   struct dk_cxlflash_resize *resize)  in marshal_virt_to_resize()  argument
37 resize->hdr = virt->hdr; in marshal_virt_to_resize()
38 resize->context_id = virt->context_id; in marshal_virt_to_resize()
39 resize->rsrc_handle = virt->rsrc_handle; in marshal_virt_to_resize()
40 resize->req_size = virt->lun_size; in marshal_virt_to_resize()
41 resize->last_lba = virt->last_lba; in marshal_virt_to_resize()
729 struct dk_cxlflash_resize *resize) in _cxlflash_vlun_resize() argument
737 res_hndl_t rhndl = resize->rsrc_handle; in _cxlflash_vlun_resize()
740 u64 ctxid = DECODE_CTXID(resize->context_id), in _cxlflash_vlun_resize()
741 rctxid = resize->context_id; in _cxlflash_vlun_resize()
751 nsectors = (resize->req_size * CXLFLASH_BLOCK_SIZE) / gli->blk_len; in _cxlflash_vlun_resize()
755 "new_size=%llx\n", __func__, ctxid, resize->rsrc_handle, in _cxlflash_vlun_resize()
756 resize->req_size, new_size); in _cxlflash_vlun_resize()
789 resize->hdr.return_flags = 0; in _cxlflash_vlun_resize()
790 resize->last_lba = (new_size * MC_CHUNK_SIZE * gli->blk_len); in _cxlflash_vlun_resize()
791 resize->last_lba /= CXLFLASH_BLOCK_SIZE; in _cxlflash_vlun_resize()
792 resize->last_lba--; in _cxlflash_vlun_resize()
798 __func__, resize->last_lba, rc); in _cxlflash_vlun_resize()
803 struct dk_cxlflash_resize *resize) in cxlflash_vlun_resize() argument
805 return _cxlflash_vlun_resize(sdev, NULL, resize); in cxlflash_vlun_resize()
932 struct dk_cxlflash_resize resize; in cxlflash_disk_virtual_open() local
995 marshal_virt_to_resize(virt, &resize); in cxlflash_disk_virtual_open()
996 resize.rsrc_handle = rsrc_handle; in cxlflash_disk_virtual_open()
997 rc = _cxlflash_vlun_resize(sdev, ctxi, &resize); in cxlflash_disk_virtual_open()
1002 last_lba = resize.last_lba; in cxlflash_disk_virtual_open()