Lines Matching full:resize
27 * marshal_virt_to_resize() - translate uvirtual to resize structure
29 * @resize: Destination structure for the translate/copy.
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()
719 * @resize: Resize ioctl data structure.
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()
762 dev_dbg(dev, "%s: LUN mode does not support resize mode=%d\n", in _cxlflash_vlun_resize()
798 * a resize operation. Accordingly, perform the heavyweight in _cxlflash_vlun_resize()
800 * resize failed previously. 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
1042 /* Resize even if requested size is 0 */ in cxlflash_disk_virtual_open()
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()
1047 dev_err(dev, "%s: resize failed rc=%d\n", __func__, rc); in cxlflash_disk_virtual_open()
1050 last_lba = resize.last_lba; in cxlflash_disk_virtual_open()