| /linux/drivers/scsi/ |
| H A D | hosts.c | 69 * @shost: scsi host to change the state of. 75 int scsi_host_set_state(struct Scsi_Host *shost, enum scsi_host_state state) in scsi_host_set_state() argument 76 __must_hold(&shost->host_lock) in scsi_host_set_state() 78 enum scsi_host_state oldstate = READ_ONCE(shost->shost_state); in scsi_host_set_state() 149 WRITE_ONCE(shost->shost_state, state); in scsi_host_set_state() 154 shost_printk(KERN_ERR, shost, in scsi_host_set_state() 164 * @shost: a pointer to a scsi host to remove 166 void scsi_remove_host(struct Scsi_Host *shost) in scsi_remove_host() argument 170 mutex_lock(&shost->scan_mutex); in scsi_remove_host() 171 spin_lock_irqsave(&shost in scsi_remove_host() 220 scsi_add_host_with_dma(struct Scsi_Host * shost,struct device * dev,struct device * dma_dev) scsi_add_host_with_dma() argument 354 struct Scsi_Host *shost = dev_to_shost(dev); scsi_host_dev_release() local 410 struct Scsi_Host *shost; scsi_host_alloc() local 588 struct Scsi_Host *shost = NULL; scsi_host_lookup() local 604 scsi_host_get(struct Scsi_Host * shost) scsi_host_get() argument 628 scsi_host_busy(struct Scsi_Host * shost) scsi_host_busy() argument 642 scsi_host_put(struct Scsi_Host * shost) scsi_host_put() argument 675 scsi_queue_work(struct Scsi_Host * shost,struct work_struct * work) scsi_queue_work() argument 694 scsi_flush_work(struct Scsi_Host * shost) scsi_flush_work() argument 730 scsi_host_complete_all_commands(struct Scsi_Host * shost,enum scsi_host_status status) scsi_host_complete_all_commands() argument 760 scsi_host_busy_iter(struct Scsi_Host * shost,bool (* fn)(struct scsi_cmnd *,void *),void * priv) scsi_host_busy_iter() argument [all...] |
| H A D | scsi_error.c | 64 void scsi_eh_wakeup(struct Scsi_Host *shost, unsigned int busy) in scsi_eh_wakeup() argument 66 lockdep_assert_held(&shost->host_lock); in scsi_eh_wakeup() 68 if (busy == shost->host_failed) { in scsi_eh_wakeup() 69 trace_scsi_eh_wakeup(shost); in scsi_eh_wakeup() 70 wake_up_process(shost->ehandler); in scsi_eh_wakeup() 71 SCSI_LOG_ERROR_RECOVERY(5, shost_printk(KERN_INFO, shost, in scsi_eh_wakeup() 78 struct Scsi_Host *shost = container_of(work, struct Scsi_Host, eh_work); in scsi_rcu_eh_wakeup() local 89 busy = scsi_host_busy(shost); in scsi_rcu_eh_wakeup() 91 spin_lock_irqsave(&shost->host_lock, flags); in scsi_rcu_eh_wakeup() 92 scsi_eh_wakeup(shost, bus in scsi_rcu_eh_wakeup() 102 scsi_schedule_eh(struct Scsi_Host * shost) scsi_schedule_eh() argument 118 scsi_host_eh_past_deadline(struct Scsi_Host * shost) scsi_host_eh_past_deadline() argument 172 struct Scsi_Host *shost = sdev->host; scmd_eh_abort_handler() local 251 struct Scsi_Host *shost = sdev->host; scsi_abort_command() local 304 struct Scsi_Host *shost = scmd->device->host; scsi_eh_inc_host_failed() local 329 struct Scsi_Host *shost = scmd->device->host; scsi_eh_scmd_add() local 431 scsi_eh_prt_fail_stats(struct Scsi_Host * shost,struct list_head * work_q) scsi_eh_prt_fail_stats() argument 1220 struct Scsi_Host *shost = sdev->host; scsi_send_eh_cmnd() local 1384 struct Scsi_Host *shost; scsi_eh_get_sense() local 1576 scsi_eh_stu(struct Scsi_Host * shost,struct list_head * work_q,struct list_head * done_q) scsi_eh_stu() argument 1642 scsi_eh_bus_device_reset(struct Scsi_Host * shost,struct list_head * work_q,struct list_head * done_q) scsi_eh_bus_device_reset() argument 1704 scsi_eh_target_reset(struct Scsi_Host * shost,struct list_head * work_q,struct list_head * done_q) scsi_eh_target_reset() argument 1766 scsi_eh_bus_reset(struct Scsi_Host * shost,struct list_head * work_q,struct list_head * done_q) scsi_eh_bus_reset() argument 1838 scsi_eh_host_reset(struct Scsi_Host * shost,struct list_head * work_q,struct list_head * done_q) scsi_eh_host_reset() argument 2193 scsi_restart_operations(struct Scsi_Host * shost) scsi_restart_operations() argument 2255 scsi_eh_ready_devs(struct Scsi_Host * shost,struct list_head * work_q,struct list_head * done_q) scsi_eh_ready_devs() argument 2332 scsi_unjam_host(struct Scsi_Host * shost) scsi_unjam_host() argument 2364 struct Scsi_Host *shost = data; scsi_error_handler() local 2466 scsi_report_bus_reset(struct Scsi_Host * shost,int channel) scsi_report_bus_reset() argument 2499 scsi_report_device_reset(struct Scsi_Host * shost,int channel,int target) scsi_report_device_reset() argument 2520 struct Scsi_Host *shost = dev->host; scsi_ioctl_reset() local [all...] |
| H A D | scsi_scan.c | 121 struct Scsi_Host *shost; member 166 data->shost = NULL; in scsi_complete_async_scans() 274 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and 287 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in scsi_alloc_sdev() local 290 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, in scsi_alloc_sdev() 298 sdev->host = shost; in scsi_alloc_sdev() 338 scsi_init_limits(shost, &lim); in scsi_alloc_sdev() 368 if (shost->hostt->sdev_init) { in scsi_alloc_sdev() 369 ret = shost->hostt->sdev_init(sdev); in scsi_alloc_sdev() 394 struct Scsi_Host *shost in scsi_target_destroy() local 432 struct Scsi_Host *shost = dev_to_shost(parent); __scsi_find_target() local 496 struct Scsi_Host *shost = dev_to_shost(parent); scsi_alloc_target() local 1192 scsi_probe_and_add_lun(struct Scsi_Host * shost,struct scsi_target * starget,u64 lun,blist_flags_t * bflagsp,struct scsi_device ** sdevp,enum scsi_scan_mode rescan,void * hostdata) scsi_probe_and_add_lun() argument 1352 scsi_sequential_lun_scan(struct Scsi_Host * shost,struct scsi_target * starget,blist_flags_t bflags,int scsi_level,enum scsi_scan_mode rescan) scsi_sequential_lun_scan() argument 1446 scsi_report_lun_scan(struct Scsi_Host * shost,struct scsi_target * starget,blist_flags_t bflags,enum scsi_scan_mode rescan) scsi_report_lun_scan() argument 1630 __scsi_add_device(struct Scsi_Host * shost,uint channel,uint id,u64 lun,void * hostdata) __scsi_add_device() argument 1772 __scsi_scan_target(struct Scsi_Host * shost,struct device * parent,unsigned int channel,unsigned int id,u64 lun,enum scsi_scan_mode rescan) __scsi_scan_target() argument 1849 struct Scsi_Host *shost = dev_to_shost(parent); scsi_scan_target() local 1870 scsi_scan_channel(struct Scsi_Host * shost,unsigned int channel,unsigned int id,u64 lun,enum scsi_scan_mode rescan) scsi_scan_channel() argument 1903 scsi_scan_host_selected(struct Scsi_Host * shost,unsigned int channel,unsigned int id,u64 lun,enum scsi_scan_mode rescan) scsi_scan_host_selected() argument 1935 scsi_sysfs_add_devices(struct Scsi_Host * shost) scsi_sysfs_add_devices() argument 1961 scsi_prep_async_scan(struct Scsi_Host * shost) scsi_prep_async_scan() argument 2009 struct Scsi_Host *shost; scsi_finish_async_scan() local 2047 do_scsi_scan_host(struct Scsi_Host * shost) do_scsi_scan_host() argument 2065 struct Scsi_Host *shost = data->shost; do_scan_async() local 2077 scsi_scan_host(struct Scsi_Host * shost) scsi_scan_host() argument 2103 scsi_forget_host(struct Scsi_Host * shost) scsi_forget_host() argument 2144 scsi_get_pseudo_sdev(struct Scsi_Host * shost) scsi_get_pseudo_sdev() argument [all...] |
| H A D | scsi_transport_fc.c | 31 static int fc_vport_setup(struct Scsi_Host *shost, int channel, 390 struct Scsi_Host *shost = dev_to_shost(dev); in fc_host_setup() local 391 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); in fc_host_setup() 446 shost->host_no); in fc_host_setup() 452 fc_bsg_hostadd(shost, fc_host); in fc_host_setup() 461 struct Scsi_Host *shost = dev_to_shost(dev); in fc_host_remove() local 462 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); in fc_host_remove() 518 * @shost: host the event occurred on 529 fc_host_post_fc_event(struct Scsi_Host *shost, u32 event_number, in fc_host_post_fc_event() argument 567 event->host_no = shost in fc_host_post_fc_event() 604 fc_host_post_event(struct Scsi_Host * shost,u32 event_number,enum fc_host_event_code event_code,u32 event_data) fc_host_post_event() argument 626 fc_host_post_vendor_event(struct Scsi_Host * shost,u32 event_number,u32 data_len,char * data_buf,u64 vendor_id) fc_host_post_vendor_event() argument 643 fc_find_rport_by_wwpn(struct Scsi_Host * shost,u64 wwpn) fc_find_rport_by_wwpn() argument 741 fc_fpin_pname_stats_update(struct Scsi_Host * shost,struct fc_rport * attach_rport,u16 event_type,u32 desc_len,u32 fixed_len,u32 pname_count,__be64 * pname_list,void (* stats_update)(u16 event_type,struct fc_fpin_stats * stats)) fc_fpin_pname_stats_update() argument 779 fc_fpin_li_stats_update(struct Scsi_Host * shost,struct fc_tlv_desc * tlv) fc_fpin_li_stats_update() argument 814 fc_fpin_delivery_stats_update(struct Scsi_Host * shost,struct fc_tlv_desc * tlv) fc_fpin_delivery_stats_update() argument 845 fc_fpin_peer_congn_stats_update(struct Scsi_Host * shost,struct fc_tlv_desc * tlv) fc_fpin_peer_congn_stats_update() argument 878 fc_fpin_congn_stats_update(struct Scsi_Host * shost,struct fc_tlv_desc * tlv) fc_fpin_congn_stats_update() argument 898 fc_host_fpin_rcv(struct Scsi_Host * shost,u32 fpin_len,char * fpin_buf,u8 event_acknowledge) fc_host_fpin_rcv() argument 1148 struct Scsi_Host *shost = rport_to_shost(rport); fc_rport_set_dev_loss_tmo() local 1718 struct Scsi_Host *shost = vport_to_shost(vport); store_fc_vport_delete() local 1746 struct Scsi_Host *shost = vport_to_shost(vport); store_fc_vport_disable() local 1923 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_supported_classes() local 1937 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_supported_fc4s() local 1947 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_supported_speeds() local 1980 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_active_fc4s() local 1995 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_speed() local 2029 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_private_host_tgtid_bind_type() local 2045 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_private_host_tgtid_bind_type() local 2078 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_private_host_issue_lip() local 2099 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_private_host_dev_loss_tmo() local 2132 struct Scsi_Host *shost = transport_class_to_shost(dev); fc_stat_show() local 2232 struct Scsi_Host *shost = transport_class_to_shost(dev); fc_reset_statistics() local 2349 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_host_vport_create() local 2396 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_host_vport_delete() local 2448 struct Scsi_Host *shost; fc_host_match() local 2467 struct Scsi_Host *shost; fc_target_match() local 2499 struct Scsi_Host *shost; fc_rport_match() local 2532 struct Scsi_Host *shost; fc_vport_match() local 2588 fc_user_scan_tgt(struct Scsi_Host * shost,uint channel,uint id,u64 lun) fc_user_scan_tgt() argument 2622 fc_user_scan(struct Scsi_Host * shost,uint channel,uint id,u64 lun) fc_user_scan() argument 2823 fc_queue_work(struct Scsi_Host * shost,struct work_struct * work) fc_queue_work() argument 2842 fc_flush_work(struct Scsi_Host * shost) fc_flush_work() argument 2866 fc_queue_devloss_work(struct Scsi_Host * shost,struct fc_rport * rport,struct delayed_work * work,unsigned long delay) fc_queue_devloss_work() argument 2887 fc_flush_devloss(struct Scsi_Host * shost,struct fc_rport * rport) fc_flush_devloss() argument 2917 fc_remove_host(struct Scsi_Host * shost) fc_remove_host() argument 2964 struct Scsi_Host *shost = rport_to_shost(rport); fc_terminate_rport_io() local 3004 struct Scsi_Host *shost = rport_to_shost(rport); fc_rport_final_delete() local 3089 fc_remote_port_create(struct Scsi_Host * shost,int channel,struct fc_rport_identifiers * ids) fc_remote_port_create() argument 3232 fc_remote_port_add(struct Scsi_Host * shost,int channel,struct fc_rport_identifiers * ids) fc_remote_port_add() argument 3469 struct Scsi_Host *shost = rport_to_shost(rport); fc_remote_port_delete() local 3545 struct Scsi_Host *shost = rport_to_shost(rport); fc_remote_port_rolechg() local 3612 struct Scsi_Host *shost = rport_to_shost(rport); fc_timeout_deleted_rport() local 3767 struct Scsi_Host *shost = rport_to_shost(rport); fc_scsi_scan_rport() local 3801 struct Scsi_Host *shost = rport_to_shost(rport); fc_block_rport() local 3883 fc_vport_setup(struct Scsi_Host * shost,int channel,struct device * pdev,struct fc_vport_identifiers * ids,struct fc_vport ** ret_vport) fc_vport_setup() argument 4007 fc_vport_create(struct Scsi_Host * shost,int channel,struct fc_vport_identifiers * ids) fc_vport_create() argument 4032 struct Scsi_Host *shost = vport_to_shost(vport); fc_vport_terminate() local 4107 struct Scsi_Host *shost = fc_bsg_to_shost(job); fc_bsg_job_timeout() local 4139 fc_bsg_host_dispatch(struct Scsi_Host * shost,struct bsg_job * job) fc_bsg_host_dispatch() argument 4232 fc_bsg_rport_dispatch(struct Scsi_Host * shost,struct bsg_job * job) fc_bsg_rport_dispatch() argument 4284 struct Scsi_Host *shost = fc_bsg_to_shost(job); fc_bsg_dispatch() local 4330 fc_bsg_hostadd(struct Scsi_Host * shost,struct fc_host_attrs * fc_host) fc_bsg_hostadd() argument 4367 fc_bsg_rportadd(struct Scsi_Host * shost,struct fc_rport * rport) fc_bsg_rportadd() argument [all...] |
| H A D | dmx3191d.c | 61 struct Scsi_Host *shost; in dmx3191d_probe_one() local 76 shost = scsi_host_alloc(&dmx3191d_driver_template, in dmx3191d_probe_one() 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() 89 error = NCR5380_init(shost, 0); in dmx3191d_probe_one() 93 NCR5380_maybe_reset_bus(shost); in dmx3191d_probe_one() 95 pci_set_drvdata(pdev, shost); in dmx3191d_probe_one() 97 error = scsi_add_host(shost, &pdev->dev); in dmx3191d_probe_one() 101 scsi_scan_host(shost); in dmx3191d_probe_one() [all …]
|
| H A D | scsi_lib.c | 62 int scsi_init_sense_cache(struct Scsi_Host *shost) in scsi_init_sense_cache() argument 368 * shost->host_failed: use call_rcu() in scsi_eh_scmd_add() in combination 371 * host_failed counter or that it notices the shost state change made by 374 static void scsi_dec_host_busy(struct Scsi_Host *shost, struct scsi_cmnd *cmd) in scsi_dec_host_busy() argument 380 if (unlikely(scsi_host_in_recovery(shost))) { in scsi_dec_host_busy() 389 unsigned int busy = scsi_host_busy(shost); in scsi_dec_host_busy() 391 spin_lock_irqsave(&shost->host_lock, flags); in scsi_dec_host_busy() 392 if (shost->host_failed || shost->host_eh_scheduled) in scsi_dec_host_busy() 393 scsi_eh_wakeup(shost, bus in scsi_dec_host_busy() 401 struct Scsi_Host *shost = sdev->host; scsi_device_unbusy() local 435 struct Scsi_Host *shost = current_sdev->host; scsi_single_lun_run() local 479 scsi_host_is_busy(struct Scsi_Host * shost) scsi_host_is_busy() argument 488 scsi_starved_list_run(struct Scsi_Host * shost) scsi_starved_list_run() argument 576 scsi_run_host_queues(struct Scsi_Host * shost) scsi_run_host_queues() argument 1429 scsi_target_queue_ready(struct Scsi_Host * shost,struct scsi_device * sdev) scsi_target_queue_ready() argument 1485 scsi_host_queue_ready(struct request_queue * q,struct Scsi_Host * shost,struct scsi_device * sdev,struct scsi_cmnd * cmd) scsi_host_queue_ready() argument 1544 struct Scsi_Host *shost; scsi_mq_lld_busy() local 1691 scsi_mq_inline_sgl_size(struct Scsi_Host * shost) scsi_mq_inline_sgl_size() argument 1701 struct Scsi_Host *shost = sdev->host; scsi_prepare_cmd() local 1860 struct Scsi_Host *shost = sdev->host; scsi_queue_rq() local 1979 struct Scsi_Host *shost = set->driver_data; scsi_mq_init_request() local 2007 struct Scsi_Host *shost = set->driver_data; scsi_mq_exit_request() local 2018 struct Scsi_Host *shost = hctx->driver_data; scsi_mq_poll() local 2029 struct Scsi_Host *shost = data; scsi_init_hctx() local 2037 struct Scsi_Host *shost = container_of(set, struct Scsi_Host, tag_set); scsi_map_queues() local 2044 scsi_init_limits(struct Scsi_Host * shost,struct queue_limits * lim) scsi_init_limits() argument 2102 struct Scsi_Host *shost = hctx->driver_data; scsi_commit_rqs() local 2128 scsi_mq_setup_tags(struct Scsi_Host * shost) scsi_mq_setup_tags() argument 2164 struct Scsi_Host *shost = container_of(kref, typeof(*shost), scsi_mq_free_tags() local 2237 scsi_block_requests(struct Scsi_Host * shost) scsi_block_requests() argument 2253 scsi_unblock_requests(struct Scsi_Host * shost) scsi_unblock_requests() argument 3119 scsi_block_targets(struct Scsi_Host * shost,struct device * dev) scsi_block_targets() argument 3163 scsi_host_block(struct Scsi_Host * shost) scsi_host_block() argument 3190 scsi_host_unblock(struct Scsi_Host * shost,int new_state) scsi_host_unblock() argument [all...] |
| H A D | qlogicfas.c | 110 priv->shost = hreg; in __qlogicfas_detect() 151 struct Scsi_Host *shost; in qlogicfas_detect() local 156 shost = __qlogicfas_detect(sht, iobase[num], irq[num]); in qlogicfas_detect() 157 if (shost == NULL) { in qlogicfas_detect() 161 priv = get_priv_by_host(shost); in qlogicfas_detect() 169 static int qlogicfas_release(struct Scsi_Host *shost) in qlogicfas_release() argument 171 struct qlogicfas408_priv *priv = get_priv_by_host(shost); in qlogicfas_release() 173 scsi_remove_host(shost); in qlogicfas_release() 174 if (shost->irq) { in qlogicfas_release() 176 free_irq(shost->irq, shost); in qlogicfas_release() [all …]
|
| H A D | scsi_proc.c | 68 struct Scsi_Host *shost = pde_data(file_inode(file)); in proc_scsi_host_write() 75 if (!shost->hostt->write_info) in proc_scsi_host_write() 83 ret = shost->hostt->write_info(shost, page, count); in proc_scsi_host_write() 92 struct Scsi_Host *shost = m->private; in proc_scsi_show() 93 return shost->hostt->show_info(m, shost); in proc_scsi_show() 217 * @shost: host to add 219 void scsi_proc_host_add(struct Scsi_Host *shost) in scsi_proc_host_add() 221 const struct scsi_host_template *sht = shost in scsi_proc_host_add() 67 struct Scsi_Host *shost = pde_data(file_inode(file)); proc_scsi_host_write() local 91 struct Scsi_Host *shost = m->private; proc_scsi_show() local 218 scsi_proc_host_add(struct Scsi_Host * shost) scsi_proc_host_add() argument 249 scsi_proc_host_rm(struct Scsi_Host * shost) scsi_proc_host_rm() argument 340 struct Scsi_Host *shost; scsi_add_single_device() local 369 struct Scsi_Host *shost; scsi_remove_single_device() local [all...] |
| H A D | scsi_transport_sas.c | 175 struct Scsi_Host *shost = dev_to_shost(job->dev); in sas_smp_dispatch() local 187 to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); in sas_smp_dispatch() 191 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) in sas_bsg_initialize() argument 195 if (!to_sas_internal(shost->transportt)->f->smp_handler) { in sas_bsg_initialize() 196 printk("%s can't handle SMP requests\n", shost->hostt->name); in sas_bsg_initialize() 210 snprintf(name, sizeof(name), "sas_host%d", shost->host_no); in sas_bsg_initialize() 211 q = bsg_setup_queue(&shost->shost_gendev, name, NULL, in sas_bsg_initialize() 216 to_sas_host_attrs(shost)->q = q; in sas_bsg_initialize() 227 * Set shost 234 sas_dma_setup_opt_sectors(struct Scsi_Host * shost) sas_dma_setup_opt_sectors() argument 263 struct Scsi_Host *shost = dev_to_shost(dev); sas_host_setup() local 284 struct Scsi_Host *shost = dev_to_shost(dev); sas_host_remove() local 297 struct Scsi_Host *shost; sas_host_match() local 348 sas_remove_host(struct Scsi_Host * shost) sas_remove_host() argument 590 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); do_sas_phy_enable() local 638 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); do_sas_phy_reset() local 686 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_phy_setup() local 700 struct Scsi_Host *shost; sas_phy_match() local 720 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_phy_release() local 743 struct Scsi_Host *shost = dev_to_shost(parent); sas_phy_alloc() local 871 struct Scsi_Host *shost; sas_port_match() local 938 struct Scsi_Host *shost = dev_to_shost(parent); sas_port_alloc() local 985 struct Scsi_Host *shost = dev_to_shost(parent); sas_port_alloc_num() local 1252 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); show_sas_rphy_enclosure_identifier() local 1272 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); show_sas_rphy_bay_identifier() local 1393 struct Scsi_Host *shost; sas_rphy_match() local 1413 struct Scsi_Host *shost; sas_end_dev_match() local 1436 struct Scsi_Host *shost; sas_expander_match() local 1498 struct Scsi_Host *shost = dev_to_shost(&parent->dev); sas_end_device_alloc() local 1538 struct Scsi_Host *shost = dev_to_shost(&parent->dev); sas_expander_alloc() local 1575 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); sas_rphy_add() local 1634 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); sas_rphy_free() local 1724 sas_user_scan(struct Scsi_Host * shost,uint channel,uint id,u64 lun) sas_user_scan() argument [all...] |
| /linux/include/scsi/ |
| H A D | scsi_host.h | 140 int (*init_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd); 141 int (*exit_cmd_priv)(struct Scsi_Host *shost, struct scsi_cmnd *cmd); 303 void (* map_queues)(struct Scsi_Host *shost); 313 int (* mq_poll)(struct Scsi_Host *shost, unsigned int queue_num); 374 int (*host_reset)(struct Scsi_Host *shost, int reset_type); 531 enum scsi_qc_status func_name(struct Scsi_Host *shost, \ 537 spin_lock_irqsave(&shost->host_lock, irq_flags); \ 539 spin_unlock_irqrestore(&shost->host_lock, irq_flags); \ 545 * shost state: If you alter this, you also need to alter scsi_sysfs.c 771 #define shost_printk(prefix, shost, fm 772 shost_printk(prefix,shost,fmt,a...) global() argument 775 shost_priv(struct Scsi_Host * shost) shost_priv() argument 792 scsi_get_host_state(struct Scsi_Host * shost) scsi_get_host_state() argument 797 scsi_host_in_recovery(struct Scsi_Host * shost) scsi_host_in_recovery() argument 838 scsi_get_device(struct Scsi_Host * shost) scsi_get_device() argument 847 scsi_host_scan_allowed(struct Scsi_Host * shost) scsi_host_scan_allowed() argument 887 scsi_host_set_prot(struct Scsi_Host * shost,unsigned int mask) scsi_host_set_prot() argument 892 scsi_host_get_prot(struct Scsi_Host * shost) scsi_host_get_prot() argument 897 scsi_host_prot_dma(struct Scsi_Host * shost) scsi_host_prot_dma() argument 902 scsi_host_dif_capable(struct Scsi_Host * shost,unsigned int target_type) scsi_host_dif_capable() argument 915 scsi_host_dix_capable(struct Scsi_Host * shost,unsigned int target_type) scsi_host_dix_capable() argument 945 scsi_host_set_guard(struct Scsi_Host * shost,unsigned char type) scsi_host_set_guard() argument 950 scsi_host_get_guard(struct Scsi_Host * shost) scsi_host_get_guard() argument [all...] |
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_xport.c | 377 struct Scsi_Host *shost = NULL; in efct_scsi_new_device() local 381 shost = scsi_host_alloc(&efct_template, sizeof(*vport)); in efct_scsi_new_device() 382 if (!shost) { in efct_scsi_new_device() 388 efct->shost = shost; in efct_scsi_new_device() 391 vport = (struct efct_vport *)shost->hostdata; in efct_scsi_new_device() 399 shost->can_queue = efct->hw.config.n_io; in efct_scsi_new_device() 400 shost->max_cmd_len = 16; /* 16-byte CDBs */ in efct_scsi_new_device() 401 shost->max_id = 0xffff; in efct_scsi_new_device() 402 shost->max_lun = 0xffffffff; in efct_scsi_new_device() 408 shost->sg_tablesize = sli_get_max_sgl(&efct->hw.sli); in efct_scsi_new_device() [all …]
|
| /linux/drivers/scsi/snic/ |
| H A D | snic_main.c | 160 SNIC_HOST_ERR(snic->shost, in snic_notify_set() 279 SNIC_HOST_INFO(snic->shost, "VNIC_DEV_OPEN Timedout.\n"); in snic_vdev_open_done() 289 snic_add_host(struct Scsi_Host *shost, struct pci_dev *pdev) in snic_add_host() argument 293 ret = scsi_add_host(shost, &pdev->dev); in snic_add_host() 295 SNIC_HOST_ERR(shost, in snic_add_host() 302 SNIC_BUG_ON(shost->work_q != NULL); in snic_add_host() 303 shost->work_q = alloc_ordered_workqueue("scsi_wq_%d", WQ_MEM_RECLAIM, in snic_add_host() 304 shost->host_no); in snic_add_host() 305 if (!shost->work_q) { in snic_add_host() 306 SNIC_HOST_ERR(shost, "Failed to Create ScsiHost wq.\n"); in snic_add_host() [all …]
|
| H A D | snic_disc.c | 81 ntgts = min_t(u32, snic->fwinfo.max_tgts, snic->shost->max_id); in snic_queue_report_tgt_req() 83 ntgts = snic->shost->max_id; in snic_queue_report_tgt_req() 92 SNIC_HOST_ERR(snic->shost, "Resp Buf Alloc Failed.\n"); in snic_queue_report_tgt_req() 102 SNIC_HOST_ERR(snic->shost, in snic_queue_report_tgt_req() 132 SNIC_HOST_ERR(snic->shost, "Queuing Report Tgts Failed.\n"); in snic_queue_report_tgt_req() 137 SNIC_DISC_DBG(snic->shost, "Report Targets Issued.\n"); in snic_queue_report_tgt_req() 142 SNIC_HOST_ERR(snic->shost, in snic_queue_report_tgt_req() 153 struct Scsi_Host *shost = dev_to_shost(&tgt->dev); in snic_scsi_scan_tgt() local 156 SNIC_HOST_INFO(shost, "Scanning Target id 0x%x\n", tgt->id); in snic_scsi_scan_tgt() 163 spin_lock_irqsave(&shost in snic_scsi_scan_tgt() 211 struct Scsi_Host *shost = snic_tgt_to_shost(tgt); snic_tgt_del() local [all...] |
| H A D | snic_ctl.c | 33 SNIC_HOST_INFO(snic->shost, "Link Event: Link %s.\n", in snic_handle_link() 99 SNIC_HOST_INFO(snic->shost, "Exch Ver Req Preparing...\n"); in snic_queue_exch_ver_req() 103 SNIC_HOST_ERR(snic->shost, "Init Exch Ver Req failed\n"); in snic_queue_exch_ver_req() 122 SNIC_HOST_ERR(snic->shost, in snic_queue_exch_ver_req() 128 SNIC_HOST_INFO(snic->shost, "Exch Ver Req is issued. ret = %d\n", ret); in snic_queue_exch_ver_req() 147 SNIC_HOST_INFO(snic->shost, "Exch Ver Compl Received.\n"); in snic_io_exch_ver_cmpl_handler() 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() [all …]
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_attr.c | 62 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() 148 * fc_host_post_event(shost, in csio_lnode_async_event() 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() 198 fc_host_supported_fc4s(shost)[7] = 1; csio_fchost_attr_init() local 202 fc_host_active_fc4s(shost)[7] = 1; csio_fchost_attr_init() local 210 csio_get_host_port_id(struct Scsi_Host * shost) csio_get_host_port_id() argument 226 csio_get_host_port_type(struct Scsi_Host * shost) csio_get_host_port_type() argument 245 csio_get_host_port_state(struct Scsi_Host * shost) csio_get_host_port_state() argument 270 csio_get_host_speed(struct Scsi_Host * shost) csio_get_host_speed() argument 308 csio_get_host_fabric_name(struct Scsi_Host * shost) csio_get_host_fabric_name() argument 329 csio_get_stats(struct Scsi_Host * shost) csio_get_stats() argument 554 struct Scsi_Host *shost = fc_vport->shost; csio_vport_create() local 617 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_vport_delete() local 650 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_vport_disable() local [all...] |
| /linux/drivers/scsi/bfa/ |
| H 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() 32 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; 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() 58 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; 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() 84 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_name() 100 bfad_im_get_host_port_id(struct Scsi_Host *shost) in bfad_im_get_host_port_id() argument [all …]
|
| /linux/Documentation/translations/zh_CN/scsi/ |
| H A D | scsi_eh.rst | 143 1. 将scmd->eh_entry链接到shost->eh_cmd_q 145 2. 在shost->shost_state中设置SHOST_RECOVERY状态位 147 3. 递增shost->host_failed失败计数器 149 4. 当检测到shost->host_busy == shost->host_failed 153 如上所述,当任一scmd被加入到shost->eh_cmd_q队列时,系统 158 添加到shost->eh_cmd_q队列。 162 即shost->host_busy == shost->host_failed),此时将唤 165 shost->eh_cmd_q队列中。 202 3. 唤醒所有在shost->host_wait上等待的任务。如果有人调用了 274 - 将scmd添加到shost->eh_cmd_q [all …]
|
| /linux/drivers/s390/scsi/ |
| H A D | zfcp_scsi.c | 66 static enum scsi_qc_status zfcp_scsi_queuecommand(struct Scsi_Host *shost, in zfcp_scsi_queuecommand() argument 347 struct Scsi_Host *shost = rport_to_shost(rport); in zfcp_scsi_eh_target_reset_handler() local 350 (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_scsi_eh_target_reset_handler() 353 shost_for_each_device(tmp_sdev, shost) { in zfcp_scsi_eh_target_reset_handler() 396 * @shost: Pointer to Scsi_Host to perform action on. 403 static int zfcp_scsi_sysfs_host_reset(struct Scsi_Host *shost, int reset_type) in zfcp_scsi_sysfs_host_reset() argument 406 (struct zfcp_adapter *)shost->hostdata[0]; in zfcp_scsi_sysfs_host_reset() 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() 647 zfcp_scsi_reset_fc_host_stats(struct Scsi_Host * shost) zfcp_scsi_reset_fc_host_stats() argument 669 zfcp_scsi_get_host_port_state(struct Scsi_Host * shost) zfcp_scsi_get_host_port_state() argument 705 struct Scsi_Host *shost = rport_to_shost(rport); zfcp_scsi_terminate_rport_io() local 828 struct Scsi_Host *shost = adapter->scsi_host; zfcp_scsi_set_prot() local 868 struct Scsi_Host *const shost = adapter->scsi_host; zfcp_scsi_shost_update_config_data() local 937 struct Scsi_Host *const shost = adapter->scsi_host; zfcp_scsi_shost_update_port_data() local [all...] |
| /linux/drivers/scsi/mvsas/ |
| H A D | mv_init.c | 81 sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata; in mvs_phy_init() 124 if (mvi->shost) in mvs_free() 125 scsi_host_put(mvi->shost); in mvs_free() 200 static int mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost) in mvs_alloc() argument 328 struct Scsi_Host *shost, unsigned int id) in mvs_pci_alloc() argument 331 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_pci_alloc() 350 mvi->shost = shost; in mvs_pci_alloc() 358 if (!mvs_alloc(mvi, shost)) in mvs_pci_alloc() 382 static int mvs_prep_sas_ha_init(struct Scsi_Host *shost, in mvs_prep_sas_ha_init() argument 388 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); in mvs_prep_sas_ha_init() [all …]
|
| /linux/drivers/scsi/pcmcia/ |
| H A D | qlogic_stub.c | 98 struct Scsi_Host *shost; /* registered host structure */ in qlogic_detect() local 109 shost = scsi_host_alloc(host, sizeof(struct qlogicfas408_priv)); in qlogic_detect() 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() 125 if (request_irq(qlirq, qlogicfas408_ihandl, 0, qlogic_name, shost)) in qlogic_detect() [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_attr.c | 120 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_cmf_info_show() local 121 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_cmf_info_show() 279 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_vmid_info_show() local 280 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; in lpfc_vmid_info_show() 434 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_enable_fip_show() local 435 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; in lpfc_enable_fip_show() 448 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_nvme_info_show() local 449 struct lpfc_vport *vport = shost_priv(shost); in lpfc_nvme_info_show() 747 struct Scsi_Host *shost = class_to_shost(dev); in lpfc_scsi_stat_show() local 748 struct lpfc_vport *vport = shost_priv(shost); in lpfc_scsi_stat_show() [all …]
|
| /linux/drivers/scsi/leapraid/ |
| H A D | leapraid_os.c | 50 struct Scsi_Host *shost = pci_get_drvdata(pdev); in pdev_to_adapter() local 52 if (!shost) in pdev_to_adapter() 55 return shost_priv(shost); in pdev_to_adapter() 65 shost_for_each_device(sdev, adapter->shost) { in leapraid_set_tm_flg() 87 shost_for_each_device(sdev, adapter->shost) { in leapraid_clear_tm_flg() 111 if (taskid_task <= adapter->shost->can_queue) { in leapraid_tm_cmd_map_status() 591 rc = scsi_add_device(adapter->shost, RAID_CHANNEL, in leapraid_probe_raid() 711 if (scsi_add_device(adapter->shost, RAID_CHANNEL, in leapraid_probe_boot_dev() 872 enum scsi_qc_status leapraid_queuecommand(struct Scsi_Host *shost, 934 static int leapraid_init_cmd_priv(struct Scsi_Host *shost, 873 leapraid_queuecommand(struct Scsi_Host * shost,struct scsi_cmnd * scmd) leapraid_queuecommand() argument 935 leapraid_init_cmd_priv(struct Scsi_Host * shost,struct scsi_cmnd * scmd) leapraid_init_cmd_priv() argument 947 leapraid_exit_cmd_priv(struct Scsi_Host * shost,struct scsi_cmnd * scmd) leapraid_exit_cmd_priv() argument 1153 struct Scsi_Host *shost; leapraid_sdev_init() local 1209 struct Scsi_Host *shost = sdev->host; leapraid_slave_cfg_volume() local 1262 struct Scsi_Host *shost = sdev->host; leapraid_slave_configure_extra() local 1309 struct Scsi_Host *shost = sdev->host; leapraid_sdev_configure() local 1359 struct Scsi_Host *shost; leapraid_sdev_destroy() local 1392 struct Scsi_Host *shost = dev_to_shost(&tgt->dev); leapraid_target_alloc_raid() local 1415 struct Scsi_Host *shost; leapraid_target_alloc_sas() local 1469 struct Scsi_Host *shost = dev_to_shost(&tgt->dev); leapraid_target_destroy_raid() local 1490 struct Scsi_Host *shost; leapraid_target_destroy_sas() local 1574 leapraid_scan_finished(struct Scsi_Host * shost,unsigned long time) leapraid_scan_finished() argument 1606 leapraid_scan_start(struct Scsi_Host * shost) leapraid_scan_start() argument 1634 struct Scsi_Host *shost; leapraid_calc_max_queue_depth() local 1708 leapraid_map_queues(struct Scsi_Host * shost) leapraid_map_queues() argument 1752 leapraid_blk_mq_poll(struct Scsi_Host * shost,unsigned int queue_num) leapraid_blk_mq_poll() argument 1802 struct Scsi_Host *shost = class_to_shost(cdev); fw_queue_depth_show() local 1812 struct Scsi_Host *shost = class_to_shost(cdev); host_sas_address_show() local 1822 struct Scsi_Host *shost = class_to_shost(cdev); board_name_show() local 2019 struct Scsi_Host *shost; leapraid_probe() local 2177 struct Scsi_Host *shost = pci_get_drvdata(pdev); leapraid_remove() local 2220 struct Scsi_Host *shost = pci_get_drvdata(pdev); leapraid_shutdown() local 2248 struct Scsi_Host *shost = pci_get_drvdata(pdev); leapraid_pci_error_detected() local 2285 struct Scsi_Host *shost = pci_get_drvdata(pdev); leapraid_pci_mmio_enabled() local 2302 struct Scsi_Host *shost = pci_get_drvdata(pdev); leapraid_pci_slot_reset() local 2339 struct Scsi_Host *shost = pci_get_drvdata(pdev); leapraid_pci_resume() local 2367 struct Scsi_Host *shost = pci_get_drvdata(pdev); leapraid_suspend() local 2394 struct Scsi_Host *shost = pci_get_drvdata(pdev); leapraid_resume() local [all...] |
| /linux/drivers/infiniband/ulp/iser/ |
| H A D | iscsi_iser.c | 564 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); in iscsi_iser_session_destroy() local 567 iscsi_host_remove(shost, false); in iscsi_iser_session_destroy() 568 iscsi_host_free(shost); in iscsi_iser_session_destroy() 605 struct Scsi_Host *shost; in iscsi_iser_session_create() local 611 shost = iscsi_host_alloc(&iscsi_iser_sht, 0, 0); in iscsi_iser_session_create() 612 if (!shost) in iscsi_iser_session_create() 614 shost->transportt = iscsi_iser_scsi_transport; in iscsi_iser_session_create() 615 shost->cmd_per_lun = qdepth; in iscsi_iser_session_create() 616 shost->max_lun = iscsi_max_lun; in iscsi_iser_session_create() 617 shost in iscsi_iser_session_create() 793 iscsi_iser_ep_connect(struct Scsi_Host * shost,struct sockaddr * dst_addr,int non_blocking) iscsi_iser_ep_connect() argument [all...] |
| /linux/drivers/scsi/libsas/ |
| H A D | sas_init.c | 183 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_get_linkerrors() local 184 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); in sas_get_linkerrors() 187 to_sas_internal(sas_ha->shost->transportt); in sas_get_linkerrors() 232 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in transport_sas_phy_reset() local 233 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); in transport_sas_phy_reset() 236 to_sas_internal(sas_ha->shost->transportt); in transport_sas_phy_reset() 266 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_enable() local 267 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); in sas_phy_enable() 270 to_sas_internal(sas_ha->shost->transportt); in sas_phy_enable() 303 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_phy_reset() local [all …]
|
| /linux/drivers/scsi/aacraid/ |
| H A D | linit.c | 240 static enum scsi_qc_status aac_queuecommand(struct Scsi_Host *shost, in aac_queuecommand() argument 255 static const char *aac_info(struct Scsi_Host *shost) in aac_info() argument 257 struct aac_dev *dev = (struct aac_dev *)shost->hostdata; in aac_info() 664 struct Scsi_Host *shost = aac->scsi_host_ptr; in get_num_of_incomplete_fibs() local 668 scsi_host_busy_iter(shost, fib_count_iter, &fcnt); in get_num_of_incomplete_fibs() 1581 struct Scsi_Host *shost; in aac_probe_one() local 1639 shost = scsi_host_alloc(&aac_driver_template, sizeof(struct aac_dev)); in aac_probe_one() 1640 if (!shost) { in aac_probe_one() 1645 shost->irq = pdev->irq; in aac_probe_one() 1646 shost->unique_id = unique_id; in aac_probe_one() [all …]
|