Lines Matching defs:sdev
26 * @sdev: SCSI device associated with LUN.
31 static struct llun_info *create_local(struct scsi_device *sdev, u8 *wwid)
33 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
43 lli->sdev = sdev;
44 lli->host_no = sdev->host->host_no;
54 * @sdev: SCSI device associated with LUN.
59 static struct glun_info *create_global(struct scsi_device *sdev, u8 *wwid)
61 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
114 * @sdev: SCSI device associated with LUN.
132 static struct llun_info *find_and_create_lun(struct scsi_device *sdev, u8 *wwid)
134 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
146 lli = create_local(sdev, wwid);
157 gli = create_global(sdev, wwid);
218 * @sdev: SCSI device associated with LUN.
222 * SCSI devices (sdev) with a global LUN instance. Additionally it serves to
227 int cxlflash_manage_lun(struct scsi_device *sdev,
230 struct cxlflash_cfg *cfg = shost_priv(sdev->host);
235 u32 chan = sdev->channel;
238 lli = find_and_create_lun(sdev, manage->wwid);
251 * the sdev.
254 lli->lun_id[chan] = lun_to_lunid(sdev->lun);
255 sdev->hostdata = lli;
264 sdev->hostdata = NULL;