Home
last modified time | relevance | path

Searched refs:shost (Results 1 – 25 of 172) sorted by relevance

1234567

/drivers/scsi/
Dhosts.c66 int scsi_host_set_state(struct Scsi_Host *shost, enum scsi_host_state state) in scsi_host_set_state() argument
68 enum scsi_host_state oldstate = shost->shost_state; in scsi_host_set_state()
139 shost->shost_state = state; in scsi_host_set_state()
144 shost_printk(KERN_ERR, shost, in scsi_host_set_state()
157 void scsi_remove_host(struct Scsi_Host *shost) in scsi_remove_host() argument
161 mutex_lock(&shost->scan_mutex); in scsi_remove_host()
162 spin_lock_irqsave(shost->host_lock, flags); in scsi_remove_host()
163 if (scsi_host_set_state(shost, SHOST_CANCEL)) in scsi_remove_host()
164 if (scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY)) { in scsi_remove_host()
165 spin_unlock_irqrestore(shost->host_lock, flags); in scsi_remove_host()
[all …]
Dscsi_scan.c132 struct Scsi_Host *shost; member
160 data->shost = NULL; in scsi_complete_async_scans()
231 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in scsi_alloc_sdev() local
235 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev()
243 sdev->host = shost; in scsi_alloc_sdev()
294 if (shost->hostt->slave_alloc) { in scsi_alloc_sdev()
295 ret = shost->hostt->slave_alloc(sdev); in scsi_alloc_sdev()
320 struct Scsi_Host *shost = dev_to_shost(dev->parent); in scsi_target_destroy() local
324 spin_lock_irqsave(shost->host_lock, flags); in scsi_target_destroy()
325 if (shost->hostt->target_destroy) in scsi_target_destroy()
[all …]
Dscsi_transport_fc.c46 static int fc_vport_setup(struct Scsi_Host *shost, int channel,
382 struct Scsi_Host *shost = dev_to_shost(dev); in fc_host_setup() local
383 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); in fc_host_setup()
437 "fc_wq_%d", shost->host_no); in fc_host_setup()
445 "fc_dl_%d", shost->host_no); in fc_host_setup()
454 fc_bsg_hostadd(shost, fc_host); in fc_host_setup()
463 struct Scsi_Host *shost = dev_to_shost(dev); in fc_host_remove() local
464 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); in fc_host_remove()
529 fc_host_post_event(struct Scsi_Host *shost, u32 event_number, in fc_host_post_event() argument
563 event->host_no = shost->host_no; in fc_host_post_event()
[all …]
Dscsi_tgt_lib.c59 struct Scsi_Host *shost; member
77 struct scsi_cmnd *scsi_host_get_command(struct Scsi_Host *shost, in scsi_host_get_command() argument
87 if (!get_device(&shost->shost_gendev)) in scsi_host_get_command()
99 rq = blk_get_request(shost->uspace_req_q, !write, gfp_mask); in scsi_host_get_command()
103 cmd = __scsi_get_command(shost, gfp_mask); in scsi_host_get_command()
127 put_device(&shost->shost_gendev); in scsi_host_get_command()
145 void scsi_host_put_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) in scsi_host_put_command() argument
147 struct request_queue *q = shost->uspace_req_q; in scsi_host_put_command()
158 __scsi_put_command(shost, cmd, &shost->shost_gendev); in scsi_host_put_command()
216 int scsi_tgt_alloc_queue(struct Scsi_Host *shost) in scsi_tgt_alloc_queue() argument
[all …]
Ddmx3191d.c74 struct Scsi_Host *shost; in dmx3191d_probe_one() local
88 shost = scsi_host_alloc(&dmx3191d_driver_template, in dmx3191d_probe_one()
90 if (!shost) in dmx3191d_probe_one()
92 shost->io_port = io; in dmx3191d_probe_one()
93 shost->irq = pdev->irq; in dmx3191d_probe_one()
95 NCR5380_init(shost, FLAG_NO_PSEUDO_DMA | FLAG_DTC3181E); in dmx3191d_probe_one()
98 DMX3191D_DRIVER_NAME, shost)) { in dmx3191d_probe_one()
104 shost->irq = SCSI_IRQ_NONE; in dmx3191d_probe_one()
107 pci_set_drvdata(pdev, shost); in dmx3191d_probe_one()
109 error = scsi_add_host(shost, &pdev->dev); in dmx3191d_probe_one()
[all …]
Dscsi_error.c60 void scsi_eh_wakeup(struct Scsi_Host *shost) in scsi_eh_wakeup() argument
62 if (shost->host_busy == shost->host_failed) { in scsi_eh_wakeup()
63 trace_scsi_eh_wakeup(shost); in scsi_eh_wakeup()
64 wake_up_process(shost->ehandler); in scsi_eh_wakeup()
76 void scsi_schedule_eh(struct Scsi_Host *shost) in scsi_schedule_eh() argument
80 spin_lock_irqsave(shost->host_lock, flags); in scsi_schedule_eh()
82 if (scsi_host_set_state(shost, SHOST_RECOVERY) == 0 || in scsi_schedule_eh()
83 scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY) == 0) { in scsi_schedule_eh()
84 shost->host_eh_scheduled++; in scsi_schedule_eh()
85 scsi_eh_wakeup(shost); in scsi_schedule_eh()
[all …]
Dqlogicfas.c106 priv->shost = hreg; in __qlogicfas_detect()
147 struct Scsi_Host *shost; in qlogicfas_detect() local
152 shost = __qlogicfas_detect(sht, iobase[num], irq[num]); in qlogicfas_detect()
153 if (shost == NULL) { in qlogicfas_detect()
157 priv = get_priv_by_host(shost); in qlogicfas_detect()
165 static int qlogicfas_release(struct Scsi_Host *shost) in qlogicfas_release() argument
167 struct qlogicfas408_priv *priv = get_priv_by_host(shost); in qlogicfas_release()
169 scsi_remove_host(shost); in qlogicfas_release()
170 if (shost->irq) { in qlogicfas_release()
172 free_irq(shost->irq, shost); in qlogicfas_release()
[all …]
Dscsi_proc.c51 struct Scsi_Host *shost = PDE_DATA(file_inode(file)); in proc_scsi_host_write() local
58 if (!shost->hostt->write_info) in proc_scsi_host_write()
66 ret = shost->hostt->write_info(shost, page, count); in proc_scsi_host_write()
75 struct Scsi_Host *shost = m->private; in proc_scsi_show() local
76 return shost->hostt->show_info(m, shost); in proc_scsi_show()
137 void scsi_proc_host_add(struct Scsi_Host *shost) in scsi_proc_host_add() argument
139 struct scsi_host_template *sht = shost->hostt; in scsi_proc_host_add()
146 sprintf(name,"%d", shost->host_no); in scsi_proc_host_add()
148 sht->proc_dir, &proc_scsi_fops, shost); in scsi_proc_host_add()
151 "%s\n", __func__, shost->host_no, in scsi_proc_host_add()
[all …]
Dscsi_transport_srp.c61 struct Scsi_Host *shost = dev_to_shost(dev); in srp_host_setup() local
62 struct srp_host_attrs *srp_host = to_srp_host_attrs(shost); in srp_host_setup()
124 struct Scsi_Host *shost = dev_to_shost(dev); in store_srp_rport_delete() local
125 struct srp_internal *i = to_srp_internal(shost->transportt); in store_srp_rport_delete()
153 struct Scsi_Host *shost; in srp_rport_match() local
159 shost = dev_to_shost(dev->parent); in srp_rport_match()
160 if (!shost->transportt) in srp_rport_match()
162 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) in srp_rport_match()
165 i = to_srp_internal(shost->transportt); in srp_rport_match()
171 struct Scsi_Host *shost; in srp_host_match() local
[all …]
Dscsi.c223 scsi_host_alloc_command(struct Scsi_Host *shost, gfp_t gfp_mask) in scsi_host_alloc_command() argument
227 cmd = scsi_pool_alloc_command(shost->cmd_pool, gfp_mask); in scsi_host_alloc_command()
231 if (scsi_host_get_prot(shost) >= SHOST_DIX_TYPE0_PROTECTION) { in scsi_host_alloc_command()
235 scsi_pool_free_command(shost->cmd_pool, cmd); in scsi_host_alloc_command()
251 struct scsi_cmnd *__scsi_get_command(struct Scsi_Host *shost, gfp_t gfp_mask) in __scsi_get_command() argument
253 struct scsi_cmnd *cmd = scsi_host_alloc_command(shost, gfp_mask); in __scsi_get_command()
258 spin_lock_irqsave(&shost->free_list_lock, flags); in __scsi_get_command()
259 if (likely(!list_empty(&shost->free_list))) { in __scsi_get_command()
260 cmd = list_entry(shost->free_list.next, in __scsi_get_command()
264 spin_unlock_irqrestore(&shost->free_list_lock, flags); in __scsi_get_command()
[all …]
Dscsi_module.c20 struct Scsi_Host *shost; in init_this_scsi_driver() local
38 list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) { in init_this_scsi_driver()
39 error = scsi_add_host(shost, NULL); in init_this_scsi_driver()
42 scsi_scan_host(shost); in init_this_scsi_driver()
46 l = &shost->sht_legacy_list; in init_this_scsi_driver()
55 struct Scsi_Host *shost, *s; in exit_this_scsi_driver() local
57 list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) in exit_this_scsi_driver()
58 scsi_remove_host(shost); in exit_this_scsi_driver()
59 list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list) in exit_this_scsi_driver()
60 sht->release(shost); in exit_this_scsi_driver()
[all …]
Dscsi_transport_sas.c170 static void sas_smp_request(struct request_queue *q, struct Scsi_Host *shost, in sas_smp_request() argument
180 handler = to_sas_internal(shost->transportt)->f->smp_handler; in sas_smp_request()
181 ret = handler(shost, rphy, req); in sas_smp_request()
203 struct Scsi_Host *shost = dev_to_shost(dev); in sas_host_release() local
204 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); in sas_host_release()
211 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument
220 if (!to_sas_internal(shost->transportt)->f->smp_handler) { in sas_bsg_initialize()
221 printk("%s can't handle SMP requests\n", shost->hostt->name); in sas_bsg_initialize()
232 dev = &shost->shost_gendev; in sas_bsg_initialize()
234 "sas_host%d", shost->host_no); in sas_bsg_initialize()
[all …]
Dscsi_lib.c324 struct Scsi_Host *shost = sdev->host; in scsi_device_unbusy() local
328 spin_lock_irqsave(shost->host_lock, flags); in scsi_device_unbusy()
329 shost->host_busy--; in scsi_device_unbusy()
331 if (unlikely(scsi_host_in_recovery(shost) && in scsi_device_unbusy()
332 (shost->host_failed || shost->host_eh_scheduled))) in scsi_device_unbusy()
333 scsi_eh_wakeup(shost); in scsi_device_unbusy()
334 spin_unlock(shost->host_lock); in scsi_device_unbusy()
349 struct Scsi_Host *shost = current_sdev->host; in scsi_single_lun_run() local
354 spin_lock_irqsave(shost->host_lock, flags); in scsi_single_lun_run()
356 spin_unlock_irqrestore(shost->host_lock, flags); in scsi_single_lun_run()
[all …]
Deata.c1086 struct Scsi_Host *shost; in port_detect() local
1269 sh[j] = shost = scsi_register(tpnt, sizeof(struct hostdata)); in port_detect()
1272 if (shost == NULL) { in port_detect()
1277 shost->io_port = port_base; in port_detect()
1278 shost->unique_id = port_base; in port_detect()
1279 shost->n_io_port = REGION_SIZE; in port_detect()
1280 shost->dma_channel = dma_channel; in port_detect()
1281 shost->irq = irq; in port_detect()
1282 shost->sg_tablesize = (ushort) info.scatt_size; in port_detect()
1283 shost->this_id = (ushort) info.host_addr[3]; in port_detect()
[all …]
Dscsi_transport_iscsi.c409 iscsi_create_iface(struct Scsi_Host *shost, struct iscsi_transport *transport, in iscsi_create_iface() argument
425 iface->dev.parent = get_device(&shost->shost_gendev); in iscsi_create_iface()
427 dev_set_name(&iface->dev, "ipv4-iface-%u-%u", shost->host_no, in iscsi_create_iface()
430 dev_set_name(&iface->dev, "ipv6-iface-%u-%u", shost->host_no, in iscsi_create_iface()
899 iscsi_create_flashnode_sess(struct Scsi_Host *shost, int index, in iscsi_create_flashnode_sess() argument
914 fnode_sess->dev.parent = &shost->shost_gendev; in iscsi_create_flashnode_sess()
916 shost->host_no, index); in iscsi_create_flashnode_sess()
947 iscsi_create_flashnode_conn(struct Scsi_Host *shost, in iscsi_create_flashnode_conn() argument
964 shost->host_no, fnode_sess->target_id); in iscsi_create_flashnode_conn()
1031 iscsi_get_flashnode_by_index(struct Scsi_Host *shost, uint32_t idx) in iscsi_get_flashnode_by_index() argument
[all …]
Dscsi_sysfs.c100 static int scsi_scan(struct Scsi_Host *shost, const char *str) in scsi_scan() argument
115 if (shost->transportt->user_scan) in scsi_scan()
116 res = shost->transportt->user_scan(shost, channel, id, lun); in scsi_scan()
118 res = scsi_scan_host_selected(shost, channel, id, lun, 1); in scsi_scan()
131 struct Scsi_Host *shost = class_to_shost(dev); \
132 return snprintf (buf, 20, format_string, shost->field); \
154 struct Scsi_Host *shost = class_to_shost(dev); in store_scan() local
157 res = scsi_scan(shost, buf); in store_scan()
169 struct Scsi_Host *shost = class_to_shost(dev); in store_shost_state() local
183 if (scsi_host_set_state(shost, state)) in store_shost_state()
[all …]
/drivers/scsi/bfa/
Dbfad_attr.c31 struct Scsi_Host *shost; in bfad_im_get_starget_port_id() local
38 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_id()
39 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_id()
57 struct Scsi_Host *shost; in bfad_im_get_starget_node_name() local
64 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_node_name()
65 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_node_name()
83 struct Scsi_Host *shost; in bfad_im_get_starget_port_name() local
90 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_name()
91 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_name()
107 bfad_im_get_host_port_id(struct Scsi_Host *shost) in bfad_im_get_host_port_id() argument
[all …]
/drivers/scsi/csiostor/
Dcsio_attr.c62 struct Scsi_Host *shost = csio_ln_to_shost(ln); in csio_reg_rnode() local
78 rn->rport = fc_remote_port_add(shost, 0, &ids); in csio_reg_rnode()
87 spin_lock_irq(shost->host_lock); in csio_reg_rnode()
89 spin_unlock_irq(shost->host_lock); in csio_reg_rnode()
184 struct Scsi_Host *shost = csio_ln_to_shost(ln); in csio_fchost_attr_init() local
186 fc_host_node_name(shost) = wwn_to_u64(csio_ln_wwnn(ln)); in csio_fchost_attr_init()
187 fc_host_port_name(shost) = wwn_to_u64(csio_ln_wwpn(ln)); in csio_fchost_attr_init()
189 fc_host_supported_classes(shost) = FC_COS_CLASS3; in csio_fchost_attr_init()
190 fc_host_max_npiv_vports(shost) = in csio_fchost_attr_init()
192 fc_host_supported_speeds(shost) = FC_PORTSPEED_10GBIT | in csio_fchost_attr_init()
[all …]
/drivers/scsi/lpfc/
Dlpfc_attr.c121 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_enable_fip_show() local
122 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_enable_fip_show()
135 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_bg_info_show() local
136 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_info_show()
154 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_bg_guard_err_show() local
155 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_guard_err_show()
166 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_bg_apptag_err_show() local
167 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_apptag_err_show()
178 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_bg_reftag_err_show() local
179 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_bg_reftag_err_show()
[all …]
Dlpfc_nportdisc.c264 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_rcv_plogi() local
422 spin_lock_irq(shost->host_lock); in lpfc_rcv_plogi()
424 spin_unlock_irq(shost->host_lock); in lpfc_rcv_plogi()
448 spin_lock_irq(shost->host_lock); in lpfc_rcv_plogi()
450 spin_unlock_irq(shost->host_lock); in lpfc_rcv_plogi()
505 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_rcv_padisc() local
581 spin_lock_irq(shost->host_lock); in lpfc_rcv_padisc()
583 spin_unlock_irq(shost->host_lock); in lpfc_rcv_padisc()
594 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); in lpfc_rcv_logo() local
603 spin_lock_irq(shost->host_lock); in lpfc_rcv_logo()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_glue.c491 void sym_log_bus_error(struct Scsi_Host *shost) in sym_log_bus_error() argument
493 struct sym_data *sym_data = shost_priv(shost); in sym_log_bus_error()
499 shost_printk(KERN_WARNING, shost, in sym_log_bus_error()
546 struct Scsi_Host *shost = dev_id; in DEF_SCSI_QCMD() local
547 struct sym_data *sym_data = shost_priv(shost); in DEF_SCSI_QCMD()
556 spin_lock(shost->host_lock); in DEF_SCSI_QCMD()
557 result = sym_interrupt(shost); in DEF_SCSI_QCMD()
558 spin_unlock(shost->host_lock); in DEF_SCSI_QCMD()
594 struct Scsi_Host *shost = cmd->device->host; in sym_eh_handler() local
595 struct sym_data *sym_data = shost_priv(shost); in sym_eh_handler()
[all …]
/drivers/scsi/mvsas/
Dmv_init.c119 sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata; in mvs_phy_init()
163 if (mvi->shost) in mvs_free()
164 scsi_host_put(mvi->shost); in mvs_free()
238 static int mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost) in mvs_alloc() argument
378 struct Scsi_Host *shost, unsigned int id) in mvs_pci_alloc() argument
381 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc()
400 mvi->shost = shost; in mvs_pci_alloc()
408 if (!mvs_alloc(mvi, shost)) in mvs_pci_alloc()
447 static int mvs_prep_sas_ha_init(struct Scsi_Host *shost, in mvs_prep_sas_ha_init() argument
453 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_prep_sas_ha_init()
[all …]
/drivers/scsi/pcmcia/
Dqlogic_stub.c96 struct Scsi_Host *shost; /* registered host structure */ in qlogic_detect() local
107 shost = scsi_host_alloc(host, sizeof(struct qlogicfas408_priv)); in qlogic_detect()
108 if (!shost) in qlogic_detect()
110 shost->io_port = qbase; in qlogic_detect()
111 shost->n_io_port = 16; in qlogic_detect()
112 shost->dma_channel = -1; in qlogic_detect()
114 shost->irq = qlirq; in qlogic_detect()
116 priv = get_priv_by_host(shost); in qlogic_detect()
120 priv->shost = shost; in qlogic_detect()
123 if (request_irq(qlirq, qlogicfas408_ihandl, 0, qlogic_name, shost)) in qlogic_detect()
[all …]
/drivers/scsi/pm8001/
Dpm8001_ctl.c57 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_mpi_interface_rev_show() local
58 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_mpi_interface_rev_show()
82 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_fw_version_show() local
83 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_fw_version_show()
111 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_out_io_show() local
112 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_max_out_io_show()
134 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_devices_show() local
135 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_max_devices_show()
160 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_sg_list_show() local
161 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in pm8001_ctl_max_sg_list_show()
[all …]
/drivers/scsi/be2iscsi/
Dbe_iscsi.c45 struct Scsi_Host *shost; in beiscsi_session_create() local
61 shost = phba->shost; in beiscsi_session_create()
78 shost, cmds_max, in beiscsi_session_create()
125 struct Scsi_Host *shost; in beiscsi_conn_create() local
132 shost = iscsi_session_to_shost(cls_session); in beiscsi_conn_create()
133 phba = iscsi_host_priv(shost); in beiscsi_conn_create()
195 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); in beiscsi_conn_bind() local
196 struct beiscsi_hba *phba = iscsi_host_priv(shost); in beiscsi_conn_bind()
233 phba->ipv4_iface = iscsi_create_iface(phba->shost, in beiscsi_create_ipv4_iface()
252 phba->ipv6_iface = iscsi_create_iface(phba->shost, in beiscsi_create_ipv6_iface()
[all …]

1234567