Lines Matching refs:resize

32 				   struct dk_cxlflash_resize *resize)  in marshal_virt_to_resize()  argument
34 resize->hdr = virt->hdr; in marshal_virt_to_resize()
35 resize->context_id = virt->context_id; in marshal_virt_to_resize()
36 resize->rsrc_handle = virt->rsrc_handle; in marshal_virt_to_resize()
37 resize->req_size = virt->lun_size; in marshal_virt_to_resize()
38 resize->last_lba = virt->last_lba; in marshal_virt_to_resize()
731 struct dk_cxlflash_resize *resize) in _cxlflash_vlun_resize() argument
740 res_hndl_t rhndl = resize->rsrc_handle; in _cxlflash_vlun_resize()
743 u64 ctxid = DECODE_CTXID(resize->context_id), in _cxlflash_vlun_resize()
744 rctxid = resize->context_id; in _cxlflash_vlun_resize()
754 nsectors = (resize->req_size * CXLFLASH_BLOCK_SIZE) / gli->blk_len; in _cxlflash_vlun_resize()
758 __func__, ctxid, resize->rsrc_handle, resize->req_size, in _cxlflash_vlun_resize()
809 resize->hdr.return_flags = 0; in _cxlflash_vlun_resize()
810 resize->last_lba = (new_size * MC_CHUNK_SIZE * gli->blk_len); in _cxlflash_vlun_resize()
811 resize->last_lba /= CXLFLASH_BLOCK_SIZE; in _cxlflash_vlun_resize()
812 resize->last_lba--; in _cxlflash_vlun_resize()
818 __func__, resize->last_lba, rc); in _cxlflash_vlun_resize()
823 struct dk_cxlflash_resize *resize) in cxlflash_vlun_resize() argument
825 return _cxlflash_vlun_resize(sdev, NULL, resize); in cxlflash_vlun_resize()
981 struct dk_cxlflash_resize resize; in cxlflash_disk_virtual_open() local
1043 marshal_virt_to_resize(virt, &resize); in cxlflash_disk_virtual_open()
1044 resize.rsrc_handle = rsrc_handle; in cxlflash_disk_virtual_open()
1045 rc = _cxlflash_vlun_resize(sdev, ctxi, &resize); in cxlflash_disk_virtual_open()
1050 last_lba = resize.last_lba; in cxlflash_disk_virtual_open()