Home
last modified time | relevance | path

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

/drivers/scsi/device_handler/
Dscsi_dh.c103 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()
111 kref_init(&sdev->scsi_dh_data->kref); in scsi_dh_handler_attach()
112 sdev->scsi_dh_data->sdev = sdev; in scsi_dh_handler_attach()
120 struct scsi_dh_data *scsi_dh_data = container_of(kref, struct scsi_dh_data, kref); in __detach_handler() local
121 scsi_dh_data->scsi_dh->detach(scsi_dh_data->sdev); in __detach_handler()
135 if (!sdev->scsi_dh_data) in scsi_dh_handler_detach()
138 if (scsi_dh && scsi_dh != sdev->scsi_dh_data->scsi_dh) in scsi_dh_handler_detach()
142 scsi_dh = sdev->scsi_dh_data->scsi_dh; in scsi_dh_handler_detach()
[all …]
Dscsi_dh_hp_sw.c54 struct scsi_dh_data *scsi_dh_data = sdev->scsi_dh_data; in get_hp_sw_data() local
55 BUG_ON(scsi_dh_data == NULL); in get_hp_sw_data()
56 return ((struct hp_sw_dh_data *) scsi_dh_data->buf); in get_hp_sw_data()
357 struct scsi_dh_data *scsi_dh_data; in hp_sw_bus_attach() local
362 scsi_dh_data = kzalloc(sizeof(*scsi_dh_data) in hp_sw_bus_attach()
364 if (!scsi_dh_data) { in hp_sw_bus_attach()
370 scsi_dh_data->scsi_dh = &hp_sw_dh; in hp_sw_bus_attach()
371 h = (struct hp_sw_dh_data *) scsi_dh_data->buf; in hp_sw_bus_attach()
384 sdev->scsi_dh_data = scsi_dh_data; in hp_sw_bus_attach()
394 kfree(scsi_dh_data); in hp_sw_bus_attach()
[all …]
Dscsi_dh_emc.c119 struct scsi_dh_data *scsi_dh_data = sdev->scsi_dh_data; in get_clariion_data() local
120 BUG_ON(scsi_dh_data == NULL); in get_clariion_data()
121 return ((struct clariion_dh_data *) scsi_dh_data->buf); in get_clariion_data()
668 struct scsi_dh_data *scsi_dh_data; in clariion_bus_attach() local
673 scsi_dh_data = kzalloc(sizeof(*scsi_dh_data) in clariion_bus_attach()
675 if (!scsi_dh_data) { in clariion_bus_attach()
681 scsi_dh_data->scsi_dh = &clariion_dh; in clariion_bus_attach()
682 h = (struct clariion_dh_data *) scsi_dh_data->buf; in clariion_bus_attach()
699 sdev->scsi_dh_data = scsi_dh_data; in clariion_bus_attach()
711 kfree(scsi_dh_data); in clariion_bus_attach()
[all …]
Dscsi_dh_alua.c81 struct scsi_dh_data *scsi_dh_data = sdev->scsi_dh_data; in get_alua_data() local
82 BUG_ON(scsi_dh_data == NULL); in get_alua_data()
83 return ((struct alua_dh_data *) scsi_dh_data->buf); in get_alua_data()
709 struct scsi_dh_data *scsi_dh_data; in alua_bus_attach() local
714 scsi_dh_data = kzalloc(sizeof(*scsi_dh_data) in alua_bus_attach()
716 if (!scsi_dh_data) { in alua_bus_attach()
722 scsi_dh_data->scsi_dh = &alua_dh; in alua_bus_attach()
723 h = (struct alua_dh_data *) scsi_dh_data->buf; in alua_bus_attach()
740 sdev->scsi_dh_data = scsi_dh_data; in alua_bus_attach()
747 kfree(scsi_dh_data); in alua_bus_attach()
[all …]
Dscsi_dh_rdac.c264 struct scsi_dh_data *scsi_dh_data = sdev->scsi_dh_data; in get_rdac_data() local
265 BUG_ON(scsi_dh_data == NULL); in get_rdac_data()
266 return ((struct rdac_dh_data *) scsi_dh_data->buf); in get_rdac_data()
854 struct scsi_dh_data *scsi_dh_data; in rdac_bus_attach() local
861 scsi_dh_data = kzalloc(sizeof(*scsi_dh_data) in rdac_bus_attach()
863 if (!scsi_dh_data) { in rdac_bus_attach()
869 scsi_dh_data->scsi_dh = &rdac_dh; in rdac_bus_attach()
870 h = (struct rdac_dh_data *) scsi_dh_data->buf; in rdac_bus_attach()
894 sdev->scsi_dh_data = scsi_dh_data; in rdac_bus_attach()
910 kfree(scsi_dh_data); in rdac_bus_attach()
[all …]
/drivers/scsi/
Dscsi_error.c257 if (sdev->scsi_dh_data && sdev->scsi_dh_data->scsi_dh && in scsi_check_sense()
258 sdev->scsi_dh_data->scsi_dh->check_sense) { in scsi_check_sense()
261 rc = sdev->scsi_dh_data->scsi_dh->check_sense(sdev, &sshdr); in scsi_check_sense()
Dscsi_lib.c1154 if (unlikely(sdev->scsi_dh_data && sdev->scsi_dh_data->scsi_dh in scsi_setup_fs_cmnd()
1155 && sdev->scsi_dh_data->scsi_dh->prep_fn)) { in scsi_setup_fs_cmnd()
1156 ret = sdev->scsi_dh_data->scsi_dh->prep_fn(sdev, req); in scsi_setup_fs_cmnd()