Lines Matching defs:sdev

395  * @sdev:	SCSI device associated with LUN.
419 static int write_same16(struct scsi_device *sdev,
429 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
431 const u32 s = ilog2(sdev->sector_size) - 9;
432 const u32 to = sdev->request_queue->rq_timeout;
434 sdev->request_queue->limits.max_write_zeroes_sectors >> s;
453 result = scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_OUT,
486 * @sdev: SCSI device associated with LUN.
501 struct scsi_device *sdev,
507 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
510 struct llun_info *lli = sdev->hostdata;
610 * @sdev: SCSI device associated with LUN.
619 struct scsi_device *sdev,
625 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
628 struct llun_info *lli = sdev->hostdata;
695 write_same16(sdev, aun, MC_CHUNK_SIZE);
717 * @sdev: SCSI device associated with LUN owning virtual LUN.
729 int _cxlflash_vlun_resize(struct scsi_device *sdev,
733 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
735 struct llun_info *lli = sdev->hostdata;
790 rc = grow_lxt(afu, sdev, ctxid, rhndl, rhte, &new_size);
792 rc = shrink_lxt(afu, sdev, rhndl, rhte, ctxi, &new_size);
822 int cxlflash_vlun_resize(struct scsi_device *sdev,
825 return _cxlflash_vlun_resize(sdev, NULL, resize);
963 * @sdev: SCSI device associated with LUN owning virtual LUN.
973 int cxlflash_disk_virtual_open(struct scsi_device *sdev, void *arg)
975 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
977 struct llun_info *lli = sdev->hostdata;
1045 rc = _cxlflash_vlun_resize(sdev, ctxi, &resize);
1180 * @sdev: SCSI device associated with LUN owning virtual LUN.
1190 int cxlflash_disk_clone(struct scsi_device *sdev,
1193 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
1195 struct llun_info *lli = sdev->hostdata;
1250 if (lun_access_dst->sdev == lun_access_src->sdev) {
1309 _cxlflash_disk_release(sdev, ctxi_dst,