Home
last modified time | relevance | path

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

123456789

/linux/drivers/scsi/
A Dhosts.c235 shost->cmd_per_lun = min_t(int, shost->cmd_per_lun, in scsi_add_host_with_dma()
286 shost->shost_data = kzalloc(shost->transportt->host_size, in scsi_add_host_with_dma()
371 kfree(shost); in scsi_host_dev_release()
398 if (!shost) in scsi_host_alloc()
401 shost->host_lock = &shost->default_lock; in scsi_host_alloc()
505 shost->shost_dev.parent = &shost->shost_gendev; in scsi_host_alloc()
507 dev_set_name(&shost->shost_dev, "host%d", shost->host_no); in scsi_host_alloc()
510 shost->ehandler = kthread_run(scsi_error_handler, shost, in scsi_host_alloc()
530 return shost; in scsi_host_alloc()
574 return shost; in scsi_host_lookup()
[all …]
A Dscsi_error.c91 scsi_eh_wakeup(shost, scsi_host_busy(shost)); in scsi_schedule_eh()
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()
251 if (shost->eh_deadline != -1 && !shost->last_reset) in scsi_abort_command()
312 if (shost->eh_deadline != -1 && !shost->last_reset) in scsi_eh_scmd_add()
1176 rtn = shost->hostt->queuecommand(shost, scmd); in scsi_send_eh_cmnd()
2306 if ((shost->host_failed == 0 && shost->host_eh_scheduled == 0) || in scsi_error_handler()
2307 shost->host_failed != scsi_host_busy(shost)) { in scsi_error_handler()
2320 shost->host_no, shost->host_eh_scheduled, in scsi_error_handler()
2329 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()
296 sdev->host = shost; in scsi_alloc_sdev()
1621 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { in __scsi_add_device()
1813 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { in scsi_scan_target()
1928 data->shost = scsi_host_get(shost); in scsi_prep_async_scan()
1929 if (!data->shost) in scsi_prep_async_scan()
1968 shost = data->shost; in scsi_finish_async_scan()
2008 shost->hostt->scan_start(shost); in do_scsi_scan_host()
2010 while (!shost->hostt->scan_finished(shost, jiffies - start)) in do_scsi_scan_host()
[all …]
A Dscsi_transport_fc.c450 shost->host_no); in fc_host_setup()
2339 stat = fc_vport_setup(shost, 0, &shost->shost_gendev, &vid, &vport); in store_fc_host_vport_create()
2415 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_host_match()
2434 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_target_match()
2466 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_rport_match()
2500 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_vport_match()
3183 fc_flush_work(shost); in fc_remote_port_add()
3528 fc_flush_work(shost); in fc_remote_port_rolechg()
3854 vport->shost = shost; in fc_vport_setup()
3953 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 Dqlogicfas.c110 priv->shost = hreg; in __qlogicfas_detect()
151 struct Scsi_Host *shost; in qlogicfas_detect() local
157 if (shost == NULL) { in qlogicfas_detect()
161 priv = get_priv_by_host(shost); in qlogicfas_detect()
173 scsi_remove_host(shost); in qlogicfas_release()
174 if (shost->irq) { in qlogicfas_release()
176 free_irq(shost->irq, shost); in qlogicfas_release()
178 if (shost->io_port && shost->n_io_port) in qlogicfas_release()
179 release_region(shost->io_port, shost->n_io_port); in qlogicfas_release()
180 scsi_host_put(shost); in qlogicfas_release()
[all …]
A Dscsi_lib.c376 if (shost->host_failed || shost->host_eh_scheduled) in scsi_dec_host_busy()
1486 shost = sdev->host; in scsi_mq_lld_busy()
1911 ret = shost->hostt->init_cmd_priv(shost, cmd); in scsi_mq_init_request()
1926 shost->hostt->exit_cmd_priv(shost, cmd); in scsi_mq_exit_request()
1936 return shost->hostt->mq_poll(shost, hctx->queue_num); in scsi_mq_poll()
1955 return shost->hostt->map_queues(shost); in scsi_map_queues()
1971 BUG_ON(shost->sg_prot_tablesize < shost->sg_tablesize); in scsi_init_limits()
1982 if (shost->no_highmem) in scsi_init_limits()
2022 shost->hostt->commit_rqs(shost, hctx->queue_num); in scsi_commit_rqs()
2074 if (shost->host_tagset) in scsi_mq_setup_tags()
[all …]
A Dscsi_transport_srp.c387 shost_printk(KERN_ERR, shost, in srp_reconnect_work()
483 scsi_block_targets(shost, &shost->shost_gendev); in __srp_start_tl_fail_timers()
551 scsi_block_targets(shost, &shost->shost_gendev); in srp_reconnect_rport()
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()
652 struct Scsi_Host *shost; in srp_host_match() local
658 shost = dev_to_shost(dev); in srp_host_match()
[all …]
A Dscsi_proc.c74 if (!shost->hostt->write_info) in proc_scsi_host_write()
82 ret = shost->hostt->write_info(shost, page, count); in proc_scsi_host_write()
92 return shost->hostt->show_info(m, shost); in proc_scsi_show()
240 shost_printk(KERN_ERR, shost, in scsi_proc_host_add()
340 struct Scsi_Host *shost; in scsi_add_single_device() local
344 if (!shost) in scsi_add_single_device()
348 error = shost->transportt->user_scan(shost, channel, id, lun); in scsi_add_single_device()
352 scsi_host_put(shost); in scsi_add_single_device()
369 struct Scsi_Host *shost; in scsi_remove_single_device() local
373 if (!shost) in scsi_remove_single_device()
[all …]
A Dscsi_transport_sas.c186 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); in sas_smp_dispatch()
238 shost->host_no); in sas_host_setup()
241 shost->opt_sectors = min_t(unsigned int, shost->max_sectors, in sas_host_setup()
264 struct Scsi_Host *shost; in sas_host_match() local
271 if (!shost->transportt) in sas_host_match()
318 scsi_remove_host(shost); in sas_remove_host()
674 if (!shost->transportt) in sas_phy_match()
845 if (!shost->transportt) in sas_port_match()
1365 if (!shost->transportt) in sas_rphy_match()
1387 if (!shost->transportt) in sas_end_dev_match()
[all …]
A Dvirtio_scsi.c907 struct Scsi_Host *shost; in virtscsi_probe() local
928 if (!shost) in virtscsi_probe()
933 shost->nr_maps = 1; in virtscsi_probe()
934 vscsi = shost_priv(shost); in virtscsi_probe()
937 vdev->priv = shost; in virtscsi_probe()
949 shost->cmd_per_lun = min_t(u32, cmd_per_lun, shost->can_queue); in virtscsi_probe()
957 shost->max_channel = 0; in virtscsi_probe()
983 scsi_scan_host(shost); in virtscsi_probe()
989 scsi_host_put(shost); in virtscsi_probe()
1001 scsi_remove_host(shost); in virtscsi_remove()
[all …]
/linux/include/scsi/
A Dscsi_host.h298 void (* map_queues)(struct Scsi_Host *shost);
741 return (void *)shost->hostdata; in shost_priv()
760 shost->shost_state == SHOST_DEL_RECOVERY || in scsi_host_in_recovery()
761 shost->tmf_in_progress; in scsi_host_in_recovery()
797 return shost->shost_gendev.parent; in scsi_get_device()
806 return shost->shost_state == SHOST_RUNNING || in scsi_host_scan_allowed()
807 shost->shost_state == SHOST_RECOVERY; in scsi_host_scan_allowed()
845 shost->prot_capabilities = mask; in scsi_host_set_prot()
850 return shost->prot_capabilities; in scsi_host_get_prot()
903 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,
481 iscsi_find_flashnode(struct Scsi_Host *shost, void *data,
489 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.c295 SNIC_HOST_ERR(shost, in snic_add_host()
304 shost->host_no); in snic_add_host()
305 if (!shost->work_q) { in snic_add_host()
317 if (!shost->work_q) in snic_del_host()
321 shost->work_q = NULL; in snic_del_host()
367 if (!shost) { in snic_probe()
374 snic->shost = shost; in snic_probe()
377 shost->host_no); in snic_probe()
379 SNIC_HOST_INFO(shost, in snic_probe()
381 shost->host_no, snic, shost, pdev->bus->number, in snic_probe()
[all …]
A Dsnic_disc.c83 ntgts = snic->shost->max_id; in snic_queue_report_tgt_req()
102 SNIC_HOST_ERR(snic->shost, in snic_queue_report_tgt_req()
142 SNIC_HOST_ERR(snic->shost, in snic_queue_report_tgt_req()
214 scsi_flush_work(shost); in snic_tgt_del()
217 scsi_block_targets(shost, &tgt->dev); in snic_tgt_del()
296 SNIC_HOST_INFO(snic->shost, in snic_tgt_create()
302 SNIC_HOST_ERR(snic->shost, in snic_tgt_create()
306 put_device(&snic->shost->shost_gendev); in snic_tgt_create()
412 SNIC_HOST_INFO(snic->shost, in snic_report_tgt_cmpl_handler()
521 SNIC_HOST_ERR(snic->shost, in snic_handle_disc()
[all …]
A Dsnic_scsi.c128 SNIC_SCSI_DBG(snic->shost, in snic_release_req_buf()
179 SNIC_HOST_ERR(snic->shost, in snic_queue_icmnd_req()
213 SNIC_HOST_ERR(snic->shost, in snic_queue_icmnd_req()
272 SNIC_HOST_ERR(snic->shost, in snic_issue_scsi_req()
299 SNIC_SCSI_DBG(snic->shost, in snic_issue_scsi_req()
454 SNIC_SCSI_DBG(snic->shost, in snic_process_io_failed_state()
543 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler()
577 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler()
714 SNIC_SCSI_DBG(snic->shost, in snic_proc_dr_cmpl_locked()
2328 SNIC_HOST_ERR(shost, in snic_reset()
[all …]
A Dsnic_ctl.c33 SNIC_HOST_INFO(snic->shost, "Link Event: Link %s.\n", in snic_handle_link()
122 SNIC_HOST_ERR(snic->shost, in snic_queue_exch_ver_req()
153 SNIC_HOST_ERR(snic->shost, in snic_io_exch_ver_cmpl_handler()
169 SNIC_HOST_INFO(snic->shost, in snic_io_exch_ver_cmpl_handler()
179 SNIC_HOST_INFO(snic->shost, in snic_io_exch_ver_cmpl_handler()
186 snic->shost->sg_tablesize = max_sgs; in snic_io_exch_ver_cmpl_handler()
188 snic->shost->sg_tablesize); in snic_io_exch_ver_cmpl_handler()
189 } else if (max_sgs > snic->shost->sg_tablesize) { in snic_io_exch_ver_cmpl_handler()
190 SNIC_HOST_INFO(snic->shost, in snic_io_exch_ver_cmpl_handler()
193 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/mvsas/
A Dmv_init.c124 if (mvi->shost) in mvs_free()
350 mvi->shost = shost; in mvs_pci_alloc()
402 sha->shost = shost; in mvs_prep_sas_ha_init()
412 shost->max_lun = ~0; in mvs_prep_sas_ha_init()
413 shost->max_channel = 1; in mvs_prep_sas_ha_init()
414 shost->max_cmd_len = 16; in mvs_prep_sas_ha_init()
458 sha->shost = mvi->shost; in mvs_post_sas_ha_init()
498 if (!shost) { in mvs_pci_init()
504 SHOST_TO_SAS_HA(shost) = in mvs_pci_init()
507 scsi_host_put(shost); in mvs_pci_init()
[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
238 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_max_sg_list_show() local
282 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_sas_spec_support_show() local
311 struct Scsi_Host *shost = class_to_shost(cdev); in pm8001_ctl_host_sas_address_show() local
[all …]
/linux/drivers/scsi/sym53c8xx_2/
A Dsym_glue.c1303 if (!shost) in sym_attach()
1319 np->s.host = shost; in sym_attach()
1362 shost)) { in sym_attach()
1380 sym_start_up(shost, 1); in sym_attach()
1393 shost->max_channel = 0; in sym_attach()
1411 return shost; in sym_attach()
1423 if (shost) in sym_attach()
1424 scsi_host_put(shost); in sym_attach()
1673 scsi_host_put(shost); in sym_detach()
1749 if (!shost) in sym2_probe()
[all …]
/linux/drivers/scsi/pcmcia/
A Dqlogic_stub.c110 if (!shost) in qlogic_detect()
112 shost->io_port = qbase; in qlogic_detect()
113 shost->n_io_port = 16; in qlogic_detect()
114 shost->dma_channel = -1; in qlogic_detect()
116 shost->irq = qlirq; in qlogic_detect()
118 priv = get_priv_by_host(shost); in qlogic_detect()
122 priv->shost = shost; in qlogic_detect()
135 scsi_scan_host(shost); in qlogic_detect()
137 return shost; in qlogic_detect()
140 free_irq(qlirq, shost); in qlogic_detect()
[all …]

Completed in 86 milliseconds

123456789