Home
last modified time | relevance | path

Searched refs:scsi_dh_data (Results 1 – 8 of 8) sorted by relevance

/linux-4.1.27/drivers/scsi/device_handler/
Dscsi_dh.c101 struct scsi_dh_data *d; in scsi_dh_handler_attach()
103 if (sdev->scsi_dh_data) { in scsi_dh_handler_attach()
104 if (sdev->scsi_dh_data->scsi_dh != scsi_dh) in scsi_dh_handler_attach()
107 kref_get(&sdev->scsi_dh_data->kref); in scsi_dh_handler_attach()
127 sdev->scsi_dh_data = d; in scsi_dh_handler_attach()
134 struct scsi_dh_data *scsi_dh_data = in __detach_handler() local
135 container_of(kref, struct scsi_dh_data, kref); in __detach_handler()
136 struct scsi_device_handler *scsi_dh = scsi_dh_data->scsi_dh; in __detach_handler()
137 struct scsi_device *sdev = scsi_dh_data->sdev; in __detach_handler()
142 sdev->scsi_dh_data = NULL; in __detach_handler()
[all …]
Dscsi_dh_hp_sw.c41 struct scsi_dh_data dh_data;
55 return container_of(sdev->scsi_dh_data, struct hp_sw_dh_data, dh_data); in get_hp_sw_data()
343 static struct scsi_dh_data *hp_sw_bus_attach(struct scsi_device *sdev) in hp_sw_bus_attach()
Dscsi_dh_emc.c75 struct scsi_dh_data dh_data;
120 return container_of(sdev->scsi_dh_data, struct clariion_dh_data, in get_clariion_data()
653 static struct scsi_dh_data *clariion_bus_attach(struct scsi_device *sdev) in clariion_bus_attach()
Dscsi_dh_alua.c65 struct scsi_dh_data dh_data;
91 return container_of(sdev->scsi_dh_data, struct alua_dh_data, dh_data); in get_alua_data()
831 static struct scsi_dh_data *alua_bus_attach(struct scsi_device *sdev) in alua_bus_attach()
Dscsi_dh_rdac.c184 struct scsi_dh_data dh_data;
265 return container_of(sdev->scsi_dh_data, struct rdac_dh_data, dh_data); in get_rdac_data()
832 static struct scsi_dh_data *rdac_bus_attach(struct scsi_device *sdev) in rdac_bus_attach()
/linux-4.1.27/include/scsi/
Dscsi_device.h198 struct scsi_dh_data *scsi_dh_data; member
212 struct scsi_dh_data *(*attach)(struct scsi_device *);
220 struct scsi_dh_data { struct
/linux-4.1.27/drivers/scsi/
Dscsi_error.c462 if (sdev->scsi_dh_data && sdev->scsi_dh_data->scsi_dh && in scsi_check_sense()
463 sdev->scsi_dh_data->scsi_dh->check_sense) { in scsi_check_sense()
466 rc = sdev->scsi_dh_data->scsi_dh->check_sense(sdev, &sshdr); in scsi_check_sense()
Dscsi_lib.c1254 if (unlikely(sdev->scsi_dh_data && sdev->scsi_dh_data->scsi_dh in scsi_setup_fs_cmnd()
1255 && sdev->scsi_dh_data->scsi_dh->prep_fn)) { in scsi_setup_fs_cmnd()
1256 int ret = sdev->scsi_dh_data->scsi_dh->prep_fn(sdev, req); in scsi_setup_fs_cmnd()