/linux-6.3-rc2/drivers/scsi/ |
A D | hosts.c | 235 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() 295 snprintf(shost->work_q_name, sizeof(shost->work_q_name), in scsi_add_host_with_dma() 374 kfree(shost); in scsi_host_dev_release() 401 if (!shost) in scsi_host_alloc() 404 shost->host_lock = &shost->default_lock; in scsi_host_alloc() 501 shost->shost_dev.parent = &shost->shost_gendev; in scsi_host_alloc() 506 shost->ehandler = kthread_run(scsi_error_handler, shost, in scsi_host_alloc() 526 return shost; in scsi_host_alloc() 570 return shost; in scsi_host_lookup() [all …]
|
A D | scsi_error.c | 68 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() 251 if (shost->eh_deadline != -1 && !shost->last_reset) in scsi_abort_command() 310 if (shost->eh_deadline != -1 && !shost->last_reset) in scsi_eh_scmd_add() 1140 rtn = shost->hostt->queuecommand(shost, scmd); in scsi_send_eh_cmnd() 2254 if ((shost->host_failed == 0 && shost->host_eh_scheduled == 0) || in scsi_error_handler() 2255 shost->host_failed != scsi_host_busy(shost)) { in scsi_error_handler() 2268 shost->host_no, shost->host_eh_scheduled, in scsi_error_handler() 2277 if (!shost->eh_noresume && scsi_autopm_get_host(shost) != 0) { in scsi_error_handler() [all …]
|
A D | scsi_scan.c | 121 struct Scsi_Host *shost; member 165 data->shost = NULL; in scsi_complete_async_scans() 295 sdev->host = shost; in scsi_alloc_sdev() 1586 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { in __scsi_add_device() 1726 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { in scsi_scan_target() 1841 data->shost = scsi_host_get(shost); in scsi_prep_async_scan() 1842 if (!data->shost) in scsi_prep_async_scan() 1881 shost = data->shost; in scsi_finish_async_scan() 1921 shost->hostt->scan_start(shost); in do_scsi_scan_host() 1923 while (!shost->hostt->scan_finished(shost, jiffies - start)) in do_scsi_scan_host() [all …]
|
A D | scsi_transport_fc.c | 2345 stat = fc_vport_setup(shost, 0, &shost->shost_gendev, &vid, &vport); in store_fc_host_vport_create() 2421 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_host_match() 2440 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_target_match() 2472 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_rport_match() 2506 if (!shost->transportt || shost->transportt->host_attrs.ac.class in fc_vport_match() 2608 tgthi = shost->max_id; in fc_user_scan() 3189 fc_flush_work(shost); in fc_remote_port_add() 3534 fc_flush_work(shost); in fc_remote_port_rolechg() 3860 vport->shost = shost; in fc_vport_setup() 3959 stat = fc_vport_setup(shost, channel, &shost->shost_gendev, in fc_vport_create() [all …]
|
A D | dmx3191d.c | 61 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 D | qlogicfas.c | 110 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 D | scsi_lib.c | 283 if (shost->host_failed || shost->host_eh_scheduled) in scsi_dec_host_busy() 284 scsi_eh_wakeup(shost); in scsi_dec_host_busy() 1403 shost = sdev->host; in scsi_mq_lld_busy() 1826 ret = shost->hostt->init_cmd_priv(shost, cmd); in scsi_mq_init_request() 1841 shost->hostt->exit_cmd_priv(shost, cmd); in scsi_mq_exit_request() 1851 return shost->hostt->mq_poll(shost, hctx->queue_num); in scsi_mq_poll() 1870 return shost->hostt->map_queues(shost); in scsi_map_queues() 1888 BUG_ON(shost->sg_prot_tablesize < shost->sg_tablesize); in __scsi_init_queue() 1936 shost->hostt->commit_rqs(shost, hctx->queue_num); in scsi_commit_rqs() 1986 if (shost->host_tagset) in scsi_mq_setup_tags() [all …]
|
A D | scsi_proc.c | 74 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 D | scsi_transport_srp.c | 387 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 D | scsi_transport_sas.c | 186 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() 644 struct Scsi_Host *shost; in sas_phy_match() local 651 if (!shost->transportt) in sas_phy_match() 822 if (!shost->transportt) in sas_port_match() 1342 if (!shost->transportt) in sas_rphy_match() [all …]
|
/linux-6.3-rc2/include/scsi/ |
A D | scsi_host.h | 291 void (* map_queues)(struct Scsi_Host *shost); 724 return (void *)shost->hostdata; in shost_priv() 743 shost->shost_state == SHOST_DEL_RECOVERY || in scsi_host_in_recovery() 744 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 D | scsi_transport_iscsi.h | 100 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, 482 iscsi_find_flashnode(struct Scsi_Host *shost, void *data, 490 iscsi_create_flashnode_conn(struct Scsi_Host *shost, [all …]
|
/linux-6.3-rc2/drivers/scsi/elx/efct/ |
A D | efct_xport.c | 382 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-6.3-rc2/drivers/scsi/snic/ |
A D | snic_main.c | 295 SNIC_HOST_ERR(shost, in snic_add_host() 303 snprintf(shost->work_q_name, sizeof(shost->work_q_name), "scsi_wq_%d", in snic_add_host() 304 shost->host_no); in snic_add_host() 305 shost->work_q = create_singlethread_workqueue(shost->work_q_name); in snic_add_host() 306 if (!shost->work_q) { in snic_add_host() 318 if (!shost->work_q) in snic_del_host() 322 shost->work_q = NULL; in snic_del_host() 368 if (!shost) { in snic_probe() 375 snic->shost = shost; in snic_probe() 378 shost->host_no); in snic_probe() [all …]
|
A D | snic_disc.c | 83 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() 163 spin_lock_irqsave(shost->host_lock, flags); in snic_scsi_scan_tgt() 214 scsi_flush_work(shost); 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 D | snic_scsi.c | 128 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() 548 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler() 582 SNIC_SCSI_DBG(snic->shost, in snic_icmnd_cmpl_handler() 719 SNIC_SCSI_DBG(snic->shost, in snic_proc_dr_cmpl_locked() 2339 SNIC_HOST_ERR(shost, in snic_reset() [all …]
|
A D | snic_ctl.c | 33 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-6.3-rc2/drivers/scsi/csiostor/ |
A D | csio_attr.c | 87 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-6.3-rc2/drivers/scsi/bfa/ |
A D | bfad_attr.c | 24 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-6.3-rc2/drivers/s390/scsi/ |
A D | zfcp_scsi.c | 521 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-6.3-rc2/drivers/scsi/pm8001/ |
A D | pm8001_ctl.c | 59 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-6.3-rc2/drivers/scsi/mvsas/ |
A D | mv_init.c | 141 if (mvi->shost) in mvs_free() 367 mvi->shost = shost; in mvs_pci_alloc() 419 sha->core.shost = shost; in mvs_prep_sas_ha_init() 429 shost->max_lun = ~0; in mvs_prep_sas_ha_init() 430 shost->max_channel = 1; in mvs_prep_sas_ha_init() 431 shost->max_cmd_len = 16; in mvs_prep_sas_ha_init() 476 sha->core.shost = mvi->shost; in mvs_post_sas_ha_init() 516 if (!shost) { in mvs_pci_init() 522 SHOST_TO_SAS_HA(shost) = in mvs_pci_init() 525 scsi_host_put(shost); in mvs_pci_init() [all …]
|
/linux-6.3-rc2/drivers/scsi/pcmcia/ |
A D | qlogic_stub.c | 110 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 …]
|
/linux-6.3-rc2/drivers/scsi/sym53c8xx_2/ |
A D | sym_glue.c | 1250 if (!shost) in sym_attach() 1266 np->s.host = shost; in sym_attach() 1309 shost)) { in sym_attach() 1327 sym_start_up(shost, 1); in sym_attach() 1340 shost->max_channel = 0; in sym_attach() 1358 return shost; in sym_attach() 1370 if (shost) in sym_attach() 1371 scsi_host_put(shost); in sym_attach() 1620 scsi_host_put(shost); in sym_detach() 1696 if (!shost) in sym2_probe() [all …]
|
/linux-6.3-rc2/drivers/scsi/lpfc/ |
A D | lpfc_attr.c | 546 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() 1473 struct Scsi_Host *shost = NULL; in lpfc_reset_pci_bus() local 1493 shost = pci_get_drvdata(ptr); in lpfc_reset_pci_bus() 1494 if (shost) { in lpfc_reset_pci_bus() 3695 struct Scsi_Host *shost; in lpfc_update_rport_devloss_tmo() local 3703 spin_lock_irq(shost->host_lock); in lpfc_update_rport_devloss_tmo() 3913 spin_lock_irq(shost->host_lock); in lpfc_tgt_queue_depth_set() 6448 fc_host_port_state(shost) = in lpfc_get_host_port_state() [all …]
|