Lines Matching refs:sdev

423 static int write_same16(struct scsi_device *sdev,  in write_same16()  argument
435 u32 to = sdev->request_queue->rq_timeout; in write_same16()
436 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in write_same16()
456 result = scsi_execute(sdev, scsi_cmd, DMA_TO_DEVICE, cmd_buf, in write_same16()
505 struct scsi_device *sdev, in grow_lxt() argument
512 struct llun_info *lli = sdev->hostdata; in grow_lxt()
618 struct scsi_device *sdev, in shrink_lxt() argument
625 struct llun_info *lli = sdev->hostdata; in shrink_lxt()
693 write_same16(sdev, aun, MC_CHUNK_SIZE); in shrink_lxt()
727 int _cxlflash_vlun_resize(struct scsi_device *sdev, in _cxlflash_vlun_resize() argument
731 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in _cxlflash_vlun_resize()
732 struct llun_info *lli = sdev->hostdata; in _cxlflash_vlun_resize()
785 rc = grow_lxt(afu, sdev, ctxid, rhndl, rhte, &new_size); in _cxlflash_vlun_resize()
787 rc = shrink_lxt(afu, sdev, rhndl, rhte, ctxi, &new_size); in _cxlflash_vlun_resize()
802 int cxlflash_vlun_resize(struct scsi_device *sdev, in cxlflash_vlun_resize() argument
805 return _cxlflash_vlun_resize(sdev, NULL, resize); in cxlflash_vlun_resize()
924 int cxlflash_disk_virtual_open(struct scsi_device *sdev, void *arg) in cxlflash_disk_virtual_open() argument
926 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in cxlflash_disk_virtual_open()
928 struct llun_info *lli = sdev->hostdata; in cxlflash_disk_virtual_open()
997 rc = _cxlflash_vlun_resize(sdev, ctxi, &resize); in cxlflash_disk_virtual_open()
1118 int cxlflash_disk_clone(struct scsi_device *sdev, in cxlflash_disk_clone() argument
1121 struct cxlflash_cfg *cfg = (struct cxlflash_cfg *)sdev->host->hostdata; in cxlflash_disk_clone()
1122 struct llun_info *lli = sdev->hostdata; in cxlflash_disk_clone()
1185 if (lun_access_dst->sdev == lun_access_src->sdev) { in cxlflash_disk_clone()
1244 _cxlflash_disk_release(sdev, ctxi_dst, in cxlflash_disk_clone()