Home
last modified time | relevance | path

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

123456789

/linux/drivers/scsi/
A Dhosts.c224 shost->cmd_per_lun = min_t(int, shost->cmd_per_lun, in scsi_add_host_with_dma()
267 shost->shost_data = kzalloc(shost->transportt->host_size, in scsi_add_host_with_dma()
276 snprintf(shost->work_q_name, sizeof(shost->work_q_name), in scsi_add_host_with_dma()
356 kfree(shost); in scsi_host_dev_release()
383 if (!shost) in scsi_host_alloc()
386 shost->host_lock = &shost->default_lock; in scsi_host_alloc()
483 shost->shost_dev.parent = &shost->shost_gendev; in scsi_host_alloc()
486 shost->shost_dev.groups = shost->shost_dev_attr_groups; in scsi_host_alloc()
498 shost->ehandler = kthread_run(scsi_error_handler, shost, in scsi_host_alloc()
517 return shost; in scsi_host_alloc()
[all …]
A Dscsi_error.c68 if (scsi_host_busy(shost) == shost->host_failed) { in scsi_eh_wakeup()
100 if (!shost->last_reset || shost->eh_deadline == -1) in scsi_host_eh_past_deadline()
110 if (time_before(jiffies, shost->last_reset + shost->eh_deadline) && in scsi_host_eh_past_deadline()
245 if (shost->eh_deadline != -1 && !shost->last_reset) in scsi_abort_command()
304 if (shost->eh_deadline != -1 && !shost->last_reset) in scsi_eh_scmd_add()
1128 rtn = shost->hostt->queuecommand(shost, scmd); in scsi_send_eh_cmnd()
2240 if ((shost->host_failed == 0 && shost->host_eh_scheduled == 0) || in scsi_error_handler()
2241 shost->host_failed != scsi_host_busy(shost)) { in scsi_error_handler()
2254 shost->host_no, shost->host_eh_scheduled, in scsi_error_handler()
2263 if (!shost->eh_noresume && scsi_autopm_get_host(shost) != 0) { in scsi_error_handler()
[all …]
A Dscsi_scan.c121 struct Scsi_Host *shost; member
165 data->shost = NULL; in scsi_complete_async_scans()
248 sdev->host = shost; in scsi_alloc_sdev()
1521 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { in __scsi_add_device()
1660 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { in scsi_scan_target()
1775 data->shost = scsi_host_get(shost); in scsi_prep_async_scan()
1776 if (!data->shost) in scsi_prep_async_scan()
1815 shost = data->shost; in scsi_finish_async_scan()
1855 shost->hostt->scan_start(shost); in do_scsi_scan_host()
1857 while (!shost->hostt->scan_finished(shost, jiffies - start)) in do_scsi_scan_host()
[all …]
A Dscsi_transport_fc.c2346 stat = fc_vport_setup(shost, 0, &shost->shost_gendev, &vid, &vport); in store_fc_host_vport_create()
2422 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_host_match()
2441 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_target_match()
2473 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_rport_match()
2507 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_vport_match()
2610 tgthi = shost->max_id; in fc_user_scan()
3191 fc_flush_work(shost); in fc_remote_port_add()
3536 fc_flush_work(shost); in fc_remote_port_rolechg()
3862 vport->shost = shost; in fc_vport_setup()
3961 stat = fc_vport_setup(shost, channel, &shost->shost_gendev, in fc_vport_create()
[all …]
A Ddmx3191d.c61 struct Scsi_Host *shost; in dmx3191d_probe_one() local
78 if (!shost) in dmx3191d_probe_one()
81 hostdata = shost_priv(shost); in dmx3191d_probe_one()
87 shost->irq = NO_IRQ; in dmx3191d_probe_one()
95 pci_set_drvdata(pdev, shost); in dmx3191d_probe_one()
101 scsi_scan_host(shost); in dmx3191d_probe_one()
105 NCR5380_exit(shost); in dmx3191d_probe_one()
107 scsi_host_put(shost); in dmx3191d_probe_one()
122 scsi_remove_host(shost); in dmx3191d_remove_one()
124 NCR5380_exit(shost); in dmx3191d_remove_one()
[all …]
A Dscsi_proc.c59 if (!shost->hostt->write_info) in proc_scsi_host_write()
67 ret = shost->hostt->write_info(shost, page, count); in proc_scsi_host_write()
77 return shost->hostt->show_info(m, shost); in proc_scsi_show()
164 if (!shost->hostt->proc_dir) in scsi_proc_host_rm()
245 struct Scsi_Host *shost; in scsi_add_single_device() local
249 if (!shost) in scsi_add_single_device()
253 error = shost->transportt->user_scan(shost, channel, id, lun); in scsi_add_single_device()
257 scsi_host_put(shost); in scsi_add_single_device()
274 struct Scsi_Host *shost; in scsi_remove_single_device() local
278 if (!shost) in scsi_remove_single_device()
[all …]
A Dscsi_lib.c286 if (shost->host_failed || shost->host_eh_scheduled) in scsi_dec_host_busy()
287 scsi_eh_wakeup(shost); in scsi_dec_host_busy()
1404 shost = sdev->host; in scsi_mq_lld_busy()
1785 ret = shost->hostt->init_cmd_priv(shost, cmd); in scsi_mq_init_request()
1800 shost->hostt->exit_cmd_priv(shost, cmd); in scsi_mq_exit_request()
1810 return shost->hostt->mq_poll(shost, hctx->queue_num); in scsi_mq_poll()
1829 return shost->hostt->map_queues(shost); in scsi_map_queues()
1847 BUG_ON(shost->sg_prot_tablesize < shost->sg_tablesize); in __scsi_init_queue()
1852 shost->max_sectors = min_t(unsigned int, shost->max_sectors, in __scsi_init_queue()
1899 shost->hostt->commit_rqs(shost, hctx->queue_num); in scsi_commit_rqs()
[all …]
A Dqlogicfas.c106 priv->shost = hreg; in __qlogicfas_detect()
147 struct Scsi_Host *shost; in qlogicfas_detect() local
153 if (shost == NULL) { in qlogicfas_detect()
157 priv = get_priv_by_host(shost); in qlogicfas_detect()
169 scsi_remove_host(shost); in qlogicfas_release()
170 if (shost->irq) { in qlogicfas_release()
172 free_irq(shost->irq, shost); in qlogicfas_release()
174 if (shost->io_port && shost->n_io_port) in qlogicfas_release()
175 release_region(shost->io_port, shost->n_io_port); in qlogicfas_release()
176 scsi_host_put(shost); in qlogicfas_release()
[all …]
A Dscsi_transport_srp.c387 shost_printk(KERN_ERR, shost, in srp_reconnect_work()
415 i = to_srp_internal(shost->transportt); in __rport_fail_io_fast()
567 shost_for_each_device(sdev, shost) { in srp_reconnect_rport()
606 struct Scsi_Host *shost = sdev->host; in srp_timed_out() local
634 struct Scsi_Host *shost; in srp_rport_match() local
640 shost = dev_to_shost(dev->parent); in srp_rport_match()
641 if (!shost->transportt) in srp_rport_match()
646 i = to_srp_internal(shost->transportt); in srp_rport_match()
652 struct Scsi_Host *shost; in srp_host_match() local
658 shost = dev_to_shost(dev); in srp_host_match()
[all …]
A Dscsi_transport_sas.c187 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); in sas_smp_dispatch()
238 shost->host_no); in sas_host_setup()
259 struct Scsi_Host *shost; in sas_host_match() local
266 if (!shost->transportt) in sas_host_match()
313 scsi_remove_host(shost); in sas_remove_host()
639 struct Scsi_Host *shost; in sas_phy_match() local
646 if (!shost->transportt) in sas_phy_match()
812 if (!shost->transportt) in sas_port_match()
1332 if (!shost->transportt) in sas_rphy_match()
1354 if (!shost->transportt) in sas_end_dev_match()
[all …]
/linux/include/scsi/
A Dscsi_host.h280 int (* map_queues)(struct Scsi_Host *shost);
730 return (void *)shost->hostdata; in shost_priv()
749 shost->shost_state == SHOST_DEL_RECOVERY || in scsi_host_in_recovery()
750 shost->tmf_in_progress; in scsi_host_in_recovery()
779 return shost->shost_gendev.parent; in scsi_get_device()
788 return shost->shost_state == SHOST_RUNNING || in scsi_host_scan_allowed()
789 shost->shost_state == SHOST_RECOVERY; in scsi_host_scan_allowed()
827 shost->prot_capabilities = mask; in scsi_host_set_prot()
832 return shost->prot_capabilities; in scsi_host_get_prot()
885 shost->prot_guard_type = type; in scsi_host_set_guard()
[all …]
A Dscsi_transport_iscsi.h100 int (*get_host_param) (struct Scsi_Host *shost,
102 int (*set_host_param) (struct Scsi_Host *shost,
122 struct iscsi_endpoint *(*ep_connect) (struct Scsi_Host *shost,
130 int (*set_iface_param) (struct Scsi_Host *shost, void *data,
137 int (*send_ping) (struct Scsi_Host *shost, uint32_t iface_num,
143 int (*set_chap) (struct Scsi_Host *shost, void *data, int len);
149 int (*new_flashnode) (struct Scsi_Host *shost, const char *buf,
177 extern int iscsi_offload_mesg(struct Scsi_Host *shost,
469 iscsi_find_flashnode(struct Scsi_Host *shost, void *data,
477 iscsi_create_flashnode_conn(struct Scsi_Host *shost,
[all …]
/linux/drivers/scsi/elx/efct/
A Defct_xport.c382 if (!shost) { in efct_scsi_new_device()
388 efct->shost = shost; in efct_scsi_new_device()
660 fc_remove_host(shost); in efct_xport_remove_host()
666 if (!efct->shost) in efct_scsi_del_device()
674 efct->shost = NULL; in efct_scsi_del_device()
874 shost ? (struct efct_vport *)shost->hostdata : NULL; in efct_issue_lip()
906 if (!shost) { in efct_scsi_new_vport()
946 vport->shost = shost; in efct_scsi_new_vport()
953 if (shost) { in efct_scsi_del_vport()
968 struct Scsi_Host *shost = fc_vport ? fc_vport->shost : NULL; in efct_vport_create() local
[all …]
/linux/drivers/scsi/snic/
A Dsnic_main.c309 SNIC_HOST_ERR(shost, in snic_add_host()
317 snprintf(shost->work_q_name, sizeof(shost->work_q_name), "scsi_wq_%d", in snic_add_host()
318 shost->host_no); in snic_add_host()
319 shost->work_q = create_singlethread_workqueue(shost->work_q_name); in snic_add_host()
320 if (!shost->work_q) { in snic_add_host()
332 if (!shost->work_q) in snic_del_host()
336 shost->work_q = NULL; in snic_del_host()
382 if (!shost) { in snic_probe()
389 snic->shost = shost; in snic_probe()
392 shost->host_no); in snic_probe()
[all …]
A Dsnic_scsi.c142 SNIC_SCSI_DBG(snic->shost, in snic_release_req_buf()
193 SNIC_HOST_ERR(snic->shost, in snic_queue_icmnd_req()
227 SNIC_HOST_ERR(snic->shost, in snic_queue_icmnd_req()
286 SNIC_HOST_ERR(snic->shost, in snic_issue_scsi_req()
313 SNIC_SCSI_DBG(snic->shost, in snic_issue_scsi_req()
562 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler()
596 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler()
733 SNIC_SCSI_DBG(snic->shost, in snic_proc_dr_cmpl_locked()
929 SNIC_SCSI_DBG(snic->shost, in snic_itmf_cmpl_handler()
2353 SNIC_HOST_ERR(shost, in snic_reset()
[all …]
A Dsnic_disc.c97 ntgts = snic->shost->max_id; in snic_queue_report_tgt_req()
116 SNIC_HOST_ERR(snic->shost, in snic_queue_report_tgt_req()
156 SNIC_HOST_ERR(snic->shost, in snic_queue_report_tgt_req()
177 spin_lock_irqsave(shost->host_lock, flags); in snic_scsi_scan_tgt()
228 scsi_flush_work(shost); in snic_tgt_del()
310 SNIC_HOST_INFO(snic->shost, in snic_tgt_create()
316 SNIC_HOST_ERR(snic->shost, in snic_tgt_create()
320 put_device(&snic->shost->shost_gendev); in snic_tgt_create()
423 SNIC_HOST_INFO(snic->shost, in snic_report_tgt_cmpl_handler()
532 SNIC_HOST_ERR(snic->shost, in snic_handle_disc()
[all …]
A Dsnic_ctl.c47 SNIC_HOST_INFO(snic->shost, "Link Event: Link %s.\n", in snic_handle_link()
136 SNIC_HOST_ERR(snic->shost, in snic_queue_exch_ver_req()
167 SNIC_HOST_ERR(snic->shost, in snic_io_exch_ver_cmpl_handler()
183 SNIC_HOST_INFO(snic->shost, in snic_io_exch_ver_cmpl_handler()
193 SNIC_HOST_INFO(snic->shost, in snic_io_exch_ver_cmpl_handler()
200 snic->shost->sg_tablesize = max_sgs; in snic_io_exch_ver_cmpl_handler()
202 snic->shost->sg_tablesize); in snic_io_exch_ver_cmpl_handler()
203 } else if (max_sgs > snic->shost->sg_tablesize) { in snic_io_exch_ver_cmpl_handler()
204 SNIC_HOST_INFO(snic->shost, in snic_io_exch_ver_cmpl_handler()
207 snic->shost->sg_tablesize); in snic_io_exch_ver_cmpl_handler()
[all …]
/linux/drivers/scsi/csiostor/
A Dcsio_attr.c87 spin_lock_irq(shost->host_lock); in csio_reg_rnode()
89 spin_unlock_irq(shost->host_lock); in csio_reg_rnode()
190 fc_host_max_npiv_vports(shost) = in csio_fchost_attr_init()
198 fc_host_supported_fc4s(shost)[7] = 1; in csio_fchost_attr_init() local
202 fc_host_active_fc4s(shost)[7] = 1; in csio_fchost_attr_init() local
319 fc_host_fabric_name(shost) = 0; in csio_get_host_fabric_name()
554 struct Scsi_Host *shost = fc_vport->shost; in csio_vport_create() local
631 scsi_block_requests(shost); in csio_vport_delete()
636 scsi_unblock_requests(shost); in csio_vport_delete()
656 scsi_block_requests(shost); in csio_vport_disable()
[all …]
/linux/drivers/scsi/bfa/
A Dbfad_attr.c24 struct Scsi_Host *shost; in bfad_im_get_starget_port_id() local
31 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_id()
50 struct Scsi_Host *shost; in bfad_im_get_starget_node_name() local
57 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_node_name()
76 struct Scsi_Host *shost; in bfad_im_get_starget_port_name() local
83 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_name()
106 fc_host_port_id(shost) = in bfad_im_get_host_port_id()
189 memset(fc_host_active_fc4s(shost), 0, in bfad_im_get_host_active_fc4s()
193 fc_host_active_fc4s(shost)[2] = 1; in bfad_im_get_host_active_fc4s() local
195 fc_host_active_fc4s(shost)[7] = 1; in bfad_im_get_host_active_fc4s() local
[all …]
/linux/drivers/s390/scsi/
A Dzfcp_scsi.c521 struct Scsi_Host *shost; in zfcp_scsi_adapter_unregister() local
524 shost = adapter->scsi_host; in zfcp_scsi_adapter_unregister()
525 if (!shost) in zfcp_scsi_adapter_unregister()
533 fc_remove_host(shost); in zfcp_scsi_adapter_unregister()
534 scsi_remove_host(shost); in zfcp_scsi_adapter_unregister()
535 scsi_host_put(shost); in zfcp_scsi_adapter_unregister()
843 shost->max_sectors = shost->sg_tablesize * 8; in zfcp_scsi_set_prot()
846 scsi_host_set_prot(shost, mask); in zfcp_scsi_set_prot()
871 if (shost == NULL) in zfcp_scsi_shost_update_config_data()
906 fc_host_speed(shost) = in zfcp_scsi_shost_update_config_data()
[all …]
/linux/drivers/scsi/pm8001/
A Dpm8001_ctl.c59 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_mpi_interface_rev_show() local
85 struct Scsi_Host *shost = class_to_shost(cdev); in controller_fatal_error_show() local
105 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_fw_version_show() local
136 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_ila_version_show() local
162 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_inactive_fw_version_show() local
189 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_out_io_show() local
213 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_devices_show() local
240 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_sg_list_show() local
286 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_sas_spec_support_show() local
315 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_host_sas_address_show() local
[all …]
/linux/drivers/scsi/lpfc/
A Dlpfc_attr.c546 spin_lock_irq(shost->host_lock); in lpfc_nvme_info_show()
620 spin_unlock_irq(shost->host_lock); in lpfc_nvme_info_show()
684 spin_unlock_irq(shost->host_lock); in lpfc_nvme_info_show()
1482 struct Scsi_Host *shost = NULL; in lpfc_reset_pci_bus() local
1502 shost = pci_get_drvdata(ptr); in lpfc_reset_pci_bus()
1503 if (shost) { in lpfc_reset_pci_bus()
3806 struct Scsi_Host *shost; in lpfc_update_rport_devloss_tmo() local
3814 spin_lock_irq(shost->host_lock); in lpfc_update_rport_devloss_tmo()
4024 spin_lock_irq(shost->host_lock); in lpfc_tgt_queue_depth_set()
6898 fc_host_port_state(shost) = in lpfc_get_host_port_state()
[all …]
/linux/drivers/scsi/mvsas/
A Dmv_init.c142 if (mvi->shost) in mvs_free()
371 mvi->shost = shost; in mvs_pci_alloc()
423 sha->core.shost = shost; in mvs_prep_sas_ha_init()
433 shost->max_lun = ~0; in mvs_prep_sas_ha_init()
434 shost->max_channel = 1; in mvs_prep_sas_ha_init()
435 shost->max_cmd_len = 16; in mvs_prep_sas_ha_init()
478 sha->core.shost = mvi->shost; in mvs_post_sas_ha_init()
519 if (!shost) { in mvs_pci_init()
525 SHOST_TO_SAS_HA(shost) = in mvs_pci_init()
528 scsi_host_put(shost); in mvs_pci_init()
[all …]
/linux/drivers/scsi/sym53c8xx_2/
A Dsym_glue.c1251 if (!shost) in sym_attach()
1267 np->s.host = shost; in sym_attach()
1310 shost)) { in sym_attach()
1328 sym_start_up(shost, 1); in sym_attach()
1341 shost->max_channel = 0; in sym_attach()
1359 return shost; in sym_attach()
1371 if (shost) in sym_attach()
1372 scsi_host_put(shost); in sym_attach()
1621 scsi_host_put(shost); in sym_detach()
1696 if (!shost) in sym2_probe()
[all …]
/linux/drivers/scsi/pcmcia/
A Dqlogic_stub.c107 if (!shost) in qlogic_detect()
109 shost->io_port = qbase; in qlogic_detect()
110 shost->n_io_port = 16; in qlogic_detect()
111 shost->dma_channel = -1; in qlogic_detect()
113 shost->irq = qlirq; in qlogic_detect()
115 priv = get_priv_by_host(shost); in qlogic_detect()
119 priv->shost = shost; in qlogic_detect()
132 scsi_scan_host(shost); in qlogic_detect()
134 return shost; in qlogic_detect()
137 free_irq(qlirq, shost); in qlogic_detect()
[all …]

Completed in 115 milliseconds

123456789