/linux-4.1.27/drivers/scsi/ |
H A D | hosts.c | 60 * @shost: scsi host to change the state of. 66 int scsi_host_set_state(struct Scsi_Host *shost, enum scsi_host_state state) scsi_host_set_state() argument 68 enum scsi_host_state oldstate = shost->shost_state; scsi_host_set_state() 139 shost->shost_state = state; scsi_host_set_state() 144 shost_printk(KERN_ERR, shost, scsi_host_set_state() 155 * @shost: a pointer to a scsi host to remove 157 void scsi_remove_host(struct Scsi_Host *shost) scsi_remove_host() argument 161 mutex_lock(&shost->scan_mutex); scsi_remove_host() 162 spin_lock_irqsave(shost->host_lock, flags); scsi_remove_host() 163 if (scsi_host_set_state(shost, SHOST_CANCEL)) scsi_remove_host() 164 if (scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY)) { scsi_remove_host() 165 spin_unlock_irqrestore(shost->host_lock, flags); scsi_remove_host() 166 mutex_unlock(&shost->scan_mutex); scsi_remove_host() 169 spin_unlock_irqrestore(shost->host_lock, flags); scsi_remove_host() 171 scsi_autopm_get_host(shost); scsi_remove_host() 172 flush_workqueue(shost->tmf_work_q); scsi_remove_host() 173 scsi_forget_host(shost); scsi_remove_host() 174 mutex_unlock(&shost->scan_mutex); scsi_remove_host() 175 scsi_proc_host_rm(shost); scsi_remove_host() 177 spin_lock_irqsave(shost->host_lock, flags); scsi_remove_host() 178 if (scsi_host_set_state(shost, SHOST_DEL)) scsi_remove_host() 179 BUG_ON(scsi_host_set_state(shost, SHOST_DEL_RECOVERY)); scsi_remove_host() 180 spin_unlock_irqrestore(shost->host_lock, flags); scsi_remove_host() 182 transport_unregister_device(&shost->shost_gendev); scsi_remove_host() 183 device_unregister(&shost->shost_dev); scsi_remove_host() 184 device_del(&shost->shost_gendev); scsi_remove_host() 190 * @shost: scsi host pointer to add 201 int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, scsi_add_host_with_dma() argument 204 struct scsi_host_template *sht = shost->hostt; scsi_add_host_with_dma() 207 shost_printk(KERN_INFO, shost, "%s\n", scsi_add_host_with_dma() 208 sht->info ? sht->info(shost) : sht->name); scsi_add_host_with_dma() 210 if (!shost->can_queue) { scsi_add_host_with_dma() 211 shost_printk(KERN_ERR, shost, scsi_add_host_with_dma() 216 if (shost_use_blk_mq(shost)) { scsi_add_host_with_dma() 217 error = scsi_mq_setup_tags(shost); scsi_add_host_with_dma() 230 error = scsi_setup_command_freelist(shost); scsi_add_host_with_dma() 235 if (!shost->shost_gendev.parent) scsi_add_host_with_dma() 236 shost->shost_gendev.parent = dev ? dev : &platform_bus; scsi_add_host_with_dma() 238 dma_dev = shost->shost_gendev.parent; scsi_add_host_with_dma() 240 shost->dma_dev = dma_dev; scsi_add_host_with_dma() 242 error = device_add(&shost->shost_gendev); scsi_add_host_with_dma() 246 pm_runtime_set_active(&shost->shost_gendev); scsi_add_host_with_dma() 247 pm_runtime_enable(&shost->shost_gendev); scsi_add_host_with_dma() 248 device_enable_async_suspend(&shost->shost_gendev); scsi_add_host_with_dma() 250 scsi_host_set_state(shost, SHOST_RUNNING); scsi_add_host_with_dma() 251 get_device(shost->shost_gendev.parent); scsi_add_host_with_dma() 253 device_enable_async_suspend(&shost->shost_dev); scsi_add_host_with_dma() 255 error = device_add(&shost->shost_dev); scsi_add_host_with_dma() 259 get_device(&shost->shost_gendev); scsi_add_host_with_dma() 261 if (shost->transportt->host_size) { scsi_add_host_with_dma() 262 shost->shost_data = kzalloc(shost->transportt->host_size, scsi_add_host_with_dma() 264 if (shost->shost_data == NULL) { scsi_add_host_with_dma() 270 if (shost->transportt->create_work_queue) { scsi_add_host_with_dma() 271 snprintf(shost->work_q_name, sizeof(shost->work_q_name), scsi_add_host_with_dma() 272 "scsi_wq_%d", shost->host_no); scsi_add_host_with_dma() 273 shost->work_q = create_singlethread_workqueue( scsi_add_host_with_dma() 274 shost->work_q_name); scsi_add_host_with_dma() 275 if (!shost->work_q) { scsi_add_host_with_dma() 281 error = scsi_sysfs_add_host(shost); scsi_add_host_with_dma() 285 scsi_proc_host_add(shost); scsi_add_host_with_dma() 289 if (shost->work_q) scsi_add_host_with_dma() 290 destroy_workqueue(shost->work_q); scsi_add_host_with_dma() 292 kfree(shost->shost_data); scsi_add_host_with_dma() 294 device_del(&shost->shost_dev); scsi_add_host_with_dma() 296 device_del(&shost->shost_gendev); scsi_add_host_with_dma() 298 scsi_destroy_command_freelist(shost); scsi_add_host_with_dma() 300 if (shost_use_blk_mq(shost)) scsi_add_host_with_dma() 301 scsi_mq_destroy_tags(shost); scsi_add_host_with_dma() 309 struct Scsi_Host *shost = dev_to_shost(dev); scsi_host_dev_release() local 314 scsi_proc_hostdir_rm(shost->hostt); scsi_host_dev_release() 316 if (shost->tmf_work_q) scsi_host_dev_release() 317 destroy_workqueue(shost->tmf_work_q); scsi_host_dev_release() 318 if (shost->ehandler) scsi_host_dev_release() 319 kthread_stop(shost->ehandler); scsi_host_dev_release() 320 if (shost->work_q) scsi_host_dev_release() 321 destroy_workqueue(shost->work_q); scsi_host_dev_release() 322 q = shost->uspace_req_q; scsi_host_dev_release() 329 scsi_destroy_command_freelist(shost); scsi_host_dev_release() 330 if (shost_use_blk_mq(shost)) { scsi_host_dev_release() 331 if (shost->tag_set.tags) scsi_host_dev_release() 332 scsi_mq_destroy_tags(shost); scsi_host_dev_release() 334 if (shost->bqt) scsi_host_dev_release() 335 blk_free_tags(shost->bqt); scsi_host_dev_release() 338 kfree(shost->shost_data); scsi_host_dev_release() 342 kfree(shost); scsi_host_dev_release() 371 struct Scsi_Host *shost; scsi_host_alloc() local 377 shost = kzalloc(sizeof(struct Scsi_Host) + privsize, gfp_mask); scsi_host_alloc() 378 if (!shost) scsi_host_alloc() 381 shost->host_lock = &shost->default_lock; scsi_host_alloc() 382 spin_lock_init(shost->host_lock); scsi_host_alloc() 383 shost->shost_state = SHOST_CREATED; scsi_host_alloc() 384 INIT_LIST_HEAD(&shost->__devices); scsi_host_alloc() 385 INIT_LIST_HEAD(&shost->__targets); scsi_host_alloc() 386 INIT_LIST_HEAD(&shost->eh_cmd_q); scsi_host_alloc() 387 INIT_LIST_HEAD(&shost->starved_list); scsi_host_alloc() 388 init_waitqueue_head(&shost->host_wait); scsi_host_alloc() 389 mutex_init(&shost->scan_mutex); scsi_host_alloc() 395 shost->host_no = atomic_inc_return(&scsi_host_next_hn) - 1; scsi_host_alloc() 396 shost->dma_channel = 0xff; scsi_host_alloc() 399 shost->max_channel = 0; scsi_host_alloc() 400 shost->max_id = 8; scsi_host_alloc() 401 shost->max_lun = 8; scsi_host_alloc() 403 /* Give each shost a default transportt */ scsi_host_alloc() 404 shost->transportt = &blank_transport_template; scsi_host_alloc() 412 shost->max_cmd_len = 12; scsi_host_alloc() 413 shost->hostt = sht; scsi_host_alloc() 414 shost->this_id = sht->this_id; scsi_host_alloc() 415 shost->can_queue = sht->can_queue; scsi_host_alloc() 416 shost->sg_tablesize = sht->sg_tablesize; scsi_host_alloc() 417 shost->sg_prot_tablesize = sht->sg_prot_tablesize; scsi_host_alloc() 418 shost->cmd_per_lun = sht->cmd_per_lun; scsi_host_alloc() 419 shost->unchecked_isa_dma = sht->unchecked_isa_dma; scsi_host_alloc() 420 shost->use_clustering = sht->use_clustering; scsi_host_alloc() 421 shost->no_write_same = sht->no_write_same; scsi_host_alloc() 424 shost->eh_deadline = -1; scsi_host_alloc() 426 shost_printk(KERN_WARNING, shost, scsi_host_alloc() 429 shost->eh_deadline = INT_MAX; scsi_host_alloc() 431 shost->eh_deadline = shost_eh_deadline * HZ; scsi_host_alloc() 435 shost->active_mode = MODE_INITIATOR; scsi_host_alloc() 437 shost->active_mode = sht->supported_mode; scsi_host_alloc() 440 shost->max_host_blocked = sht->max_host_blocked; scsi_host_alloc() 442 shost->max_host_blocked = SCSI_DEFAULT_HOST_BLOCKED; scsi_host_alloc() 449 shost->max_sectors = sht->max_sectors; scsi_host_alloc() 451 shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; scsi_host_alloc() 457 shost->dma_boundary = sht->dma_boundary; scsi_host_alloc() 459 shost->dma_boundary = 0xffffffff; scsi_host_alloc() 461 shost->use_blk_mq = scsi_use_blk_mq && !shost->hostt->disable_blk_mq; scsi_host_alloc() 463 device_initialize(&shost->shost_gendev); scsi_host_alloc() 464 dev_set_name(&shost->shost_gendev, "host%d", shost->host_no); scsi_host_alloc() 465 shost->shost_gendev.bus = &scsi_bus_type; scsi_host_alloc() 466 shost->shost_gendev.type = &scsi_host_type; scsi_host_alloc() 468 device_initialize(&shost->shost_dev); scsi_host_alloc() 469 shost->shost_dev.parent = &shost->shost_gendev; scsi_host_alloc() 470 shost->shost_dev.class = &shost_class; scsi_host_alloc() 471 dev_set_name(&shost->shost_dev, "host%d", shost->host_no); scsi_host_alloc() 472 shost->shost_dev.groups = scsi_sysfs_shost_attr_groups; scsi_host_alloc() 474 shost->ehandler = kthread_run(scsi_error_handler, shost, scsi_host_alloc() 475 "scsi_eh_%d", shost->host_no); scsi_host_alloc() 476 if (IS_ERR(shost->ehandler)) { scsi_host_alloc() 477 shost_printk(KERN_WARNING, shost, scsi_host_alloc() 479 PTR_ERR(shost->ehandler)); scsi_host_alloc() 483 shost->tmf_work_q = alloc_workqueue("scsi_tmf_%d", scsi_host_alloc() 485 1, shost->host_no); scsi_host_alloc() 486 if (!shost->tmf_work_q) { scsi_host_alloc() 487 shost_printk(KERN_WARNING, shost, scsi_host_alloc() 491 scsi_proc_hostdir_add(shost->hostt); scsi_host_alloc() 492 return shost; scsi_host_alloc() 495 kthread_stop(shost->ehandler); scsi_host_alloc() 497 kfree(shost); scsi_host_alloc() 504 struct Scsi_Host *shost = scsi_host_alloc(sht, privsize); scsi_register() local 512 if (shost) scsi_register() 513 list_add_tail(&shost->sht_legacy_list, &sht->legacy_hosts); scsi_register() 514 return shost; scsi_register() 518 void scsi_unregister(struct Scsi_Host *shost) scsi_unregister() argument 520 list_del(&shost->sht_legacy_list); scsi_unregister() 521 scsi_host_put(shost); scsi_unregister() 548 struct Scsi_Host *shost = NULL; scsi_host_lookup() local 553 shost = scsi_host_get(class_to_shost(cdev)); scsi_host_lookup() 556 return shost; scsi_host_lookup() 562 * @shost: Pointer to Scsi_Host to inc. 564 struct Scsi_Host *scsi_host_get(struct Scsi_Host *shost) scsi_host_get() argument 566 if ((shost->shost_state == SHOST_DEL) || scsi_host_get() 567 !get_device(&shost->shost_gendev)) scsi_host_get() 569 return shost; scsi_host_get() 575 * @shost: Pointer to Scsi_Host to dec. 577 void scsi_host_put(struct Scsi_Host *shost) scsi_host_put() argument 579 put_device(&shost->shost_gendev); scsi_host_put() 601 * @shost: Pointer to Scsi_Host. 609 int scsi_queue_work(struct Scsi_Host *shost, struct work_struct *work) scsi_queue_work() argument 611 if (unlikely(!shost->work_q)) { scsi_queue_work() 612 shost_printk(KERN_ERR, shost, scsi_queue_work() 614 "when no workqueue created.\n", shost->hostt->name); scsi_queue_work() 620 return queue_work(shost->work_q, work); scsi_queue_work() 626 * @shost: Pointer to Scsi_Host. 628 void scsi_flush_work(struct Scsi_Host *shost) scsi_flush_work() argument 630 if (!shost->work_q) { scsi_flush_work() 631 shost_printk(KERN_ERR, shost, scsi_flush_work() 633 "when no workqueue created.\n", shost->hostt->name); scsi_flush_work() 638 flush_workqueue(shost->work_q); scsi_flush_work()
|
H A D | scsi_module.c | 20 struct Scsi_Host *shost; init_this_scsi_driver() local 38 list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) { init_this_scsi_driver() 39 error = scsi_add_host(shost, NULL); init_this_scsi_driver() 42 scsi_scan_host(shost); init_this_scsi_driver() 46 l = &shost->sht_legacy_list; init_this_scsi_driver() 55 struct Scsi_Host *shost, *s; exit_this_scsi_driver() local 57 list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) exit_this_scsi_driver() 58 scsi_remove_host(shost); exit_this_scsi_driver() 59 list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list) exit_this_scsi_driver() 60 sht->release(shost); exit_this_scsi_driver() 68 list_for_each_entry_safe(shost, s, &sht->legacy_hosts, sht_legacy_list) exit_this_scsi_driver() 69 scsi_unregister(shost); exit_this_scsi_driver()
|
H A D | scsi_transport_api.h | 4 void scsi_schedule_eh(struct Scsi_Host *shost);
|
H A D | dmx3191d.c | 75 struct Scsi_Host *shost; dmx3191d_probe_one() local 89 shost = scsi_host_alloc(&dmx3191d_driver_template, dmx3191d_probe_one() 91 if (!shost) dmx3191d_probe_one() 93 shost->io_port = io; dmx3191d_probe_one() 98 shost->irq = NO_IRQ; dmx3191d_probe_one() 100 NCR5380_init(shost, FLAG_NO_PSEUDO_DMA | FLAG_DTC3181E); dmx3191d_probe_one() 102 pci_set_drvdata(pdev, shost); dmx3191d_probe_one() 104 error = scsi_add_host(shost, &pdev->dev); dmx3191d_probe_one() 108 scsi_scan_host(shost); dmx3191d_probe_one() 121 struct Scsi_Host *shost = pci_get_drvdata(pdev); dmx3191d_remove_one() local 123 scsi_remove_host(shost); dmx3191d_remove_one() 125 NCR5380_exit(shost); dmx3191d_remove_one() 127 release_region(shost->io_port, DMX3191D_REGION_LEN); dmx3191d_remove_one() 130 scsi_host_put(shost); dmx3191d_remove_one()
|
H A D | qlogicfas.c | 106 priv->shost = hreg; __qlogicfas_detect() 147 struct Scsi_Host *shost; qlogicfas_detect() local 152 shost = __qlogicfas_detect(sht, iobase[num], irq[num]); qlogicfas_detect() 153 if (shost == NULL) { qlogicfas_detect() 157 priv = get_priv_by_host(shost); qlogicfas_detect() 165 static int qlogicfas_release(struct Scsi_Host *shost) qlogicfas_release() argument 167 struct qlogicfas408_priv *priv = get_priv_by_host(shost); qlogicfas_release() 169 scsi_remove_host(shost); qlogicfas_release() 170 if (shost->irq) { qlogicfas_release() 172 free_irq(shost->irq, shost); qlogicfas_release() 174 if (shost->io_port && shost->n_io_port) qlogicfas_release() 175 release_region(shost->io_port, shost->n_io_port); qlogicfas_release() 176 scsi_host_put(shost); qlogicfas_release() 218 qlogicfas_release(priv->shost); qlogicfas_exit()
|
H A D | scsi_transport_srp.c | 100 struct Scsi_Host *shost = dev_to_shost(dev); srp_host_setup() local 101 struct srp_host_attrs *srp_host = to_srp_host_attrs(shost); srp_host_setup() 163 struct Scsi_Host *shost = dev_to_shost(dev); store_srp_rport_delete() local 164 struct srp_internal *i = to_srp_internal(shost->transportt); store_srp_rport_delete() 383 struct Scsi_Host *shost = rport_to_shost(rport); srp_reconnect_work() local 388 shost_printk(KERN_ERR, shost, srp_reconnect_work() 401 * @shost: SCSI host for which to count the number of scsi_request_fn() callers. 405 static int scsi_request_fn_active(struct Scsi_Host *shost) scsi_request_fn_active() argument 411 shost_for_each_device(sdev, shost) { shost_for_each_device() 422 /* Wait until ongoing shost->hostt->queuecommand() calls have finished. */ srp_wait_for_queuecommand() 423 static void srp_wait_for_queuecommand(struct Scsi_Host *shost) srp_wait_for_queuecommand() argument 425 while (scsi_request_fn_active(shost)) srp_wait_for_queuecommand() 431 struct Scsi_Host *shost = rport_to_shost(rport); __rport_fail_io_fast() local 441 i = to_srp_internal(shost->transportt); __rport_fail_io_fast() 443 srp_wait_for_queuecommand(shost); __rport_fail_io_fast() 456 struct Scsi_Host *shost = rport_to_shost(rport); rport_fast_io_fail_timedout() local 459 dev_name(&rport->dev), dev_name(&shost->shost_gendev)); rport_fast_io_fail_timedout() 475 struct Scsi_Host *shost = rport_to_shost(rport); rport_dev_loss_timedout() local 476 struct srp_internal *i = to_srp_internal(shost->transportt); rport_dev_loss_timedout() 479 dev_name(&rport->dev), dev_name(&shost->shost_gendev)); rport_dev_loss_timedout() 491 struct Scsi_Host *shost = rport_to_shost(rport); __srp_start_tl_fail_timers() local 499 pr_debug("%s current state: %d\n", dev_name(&shost->shost_gendev), __srp_start_tl_fail_timers() 509 pr_debug("%s new state: %d\n", dev_name(&shost->shost_gendev), __srp_start_tl_fail_timers() 511 scsi_target_block(&shost->shost_gendev); __srp_start_tl_fail_timers() 562 struct Scsi_Host *shost = rport_to_shost(rport); srp_reconnect_rport() local 563 struct srp_internal *i = to_srp_internal(shost->transportt); srp_reconnect_rport() 567 pr_debug("SCSI host %s\n", dev_name(&shost->shost_gendev)); srp_reconnect_rport() 572 scsi_target_block(&shost->shost_gendev); srp_reconnect_rport() 573 srp_wait_for_queuecommand(shost); srp_reconnect_rport() 576 dev_name(&shost->shost_gendev), rport->state, res); srp_reconnect_rport() 583 scsi_target_unblock(&shost->shost_gendev, SDEV_RUNNING); srp_reconnect_rport() 589 spin_lock_irq(shost->host_lock); srp_reconnect_rport() 590 __shost_for_each_device(sdev, shost) srp_reconnect_rport() 593 spin_unlock_irq(shost->host_lock); srp_reconnect_rport() 601 scsi_target_unblock(&shost->shost_gendev, srp_reconnect_rport() 605 scsi_target_unblock(&shost->shost_gendev, srp_reconnect_rport() 629 struct Scsi_Host *shost = sdev->host; srp_timed_out() local 630 struct srp_internal *i = to_srp_internal(shost->transportt); srp_timed_out() 653 struct Scsi_Host *shost; srp_rport_match() local 659 shost = dev_to_shost(dev->parent); srp_rport_match() 660 if (!shost->transportt) srp_rport_match() 662 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) srp_rport_match() 665 i = to_srp_internal(shost->transportt); srp_rport_match() 671 struct Scsi_Host *shost; srp_host_match() local 677 shost = dev_to_shost(dev); srp_host_match() 678 if (!shost->transportt) srp_host_match() 680 if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) srp_host_match() 683 i = to_srp_internal(shost->transportt); srp_host_match() 709 * @shost: scsi host the remote port is connected to. 714 struct srp_rport *srp_rport_add(struct Scsi_Host *shost, srp_rport_add() argument 718 struct device *parent = &shost->shost_gendev; srp_rport_add() 719 struct srp_internal *i = to_srp_internal(shost->transportt); srp_rport_add() 747 id = atomic_inc_return(&to_srp_host_attrs(shost)->next_port_id); srp_rport_add() 748 dev_set_name(&rport->dev, "port-%d:%d", shost->host_no, id); srp_rport_add() 793 * @shost: Scsi Host that is torn down 798 void srp_remove_host(struct Scsi_Host *shost) srp_remove_host() argument 800 device_for_each_child(&shost->shost_gendev, NULL, do_srp_rport_del); srp_remove_host() 826 static int srp_tsk_mgmt_response(struct Scsi_Host *shost, u64 nexus, u64 tm_id, srp_tsk_mgmt_response() argument 829 struct srp_internal *i = to_srp_internal(shost->transportt); srp_tsk_mgmt_response() 830 return i->f->tsk_mgmt_response(shost, nexus, tm_id, result); srp_tsk_mgmt_response() 833 static int srp_it_nexus_response(struct Scsi_Host *shost, u64 nexus, int result) srp_it_nexus_response() argument 835 struct srp_internal *i = to_srp_internal(shost->transportt); srp_it_nexus_response() 836 return i->f->it_nexus_response(shost, nexus, result); srp_it_nexus_response()
|
H A D | scsi_proc.c | 51 struct Scsi_Host *shost = PDE_DATA(file_inode(file)); proc_scsi_host_write() local 58 if (!shost->hostt->write_info) proc_scsi_host_write() 66 ret = shost->hostt->write_info(shost, page, count); proc_scsi_host_write() 75 struct Scsi_Host *shost = m->private; proc_scsi_show() local 76 return shost->hostt->show_info(m, shost); proc_scsi_show() 135 * @shost: host to add 137 void scsi_proc_host_add(struct Scsi_Host *shost) scsi_proc_host_add() argument 139 struct scsi_host_template *sht = shost->hostt; scsi_proc_host_add() 146 sprintf(name,"%d", shost->host_no); scsi_proc_host_add() 148 sht->proc_dir, &proc_scsi_fops, shost); scsi_proc_host_add() 151 "%s\n", __func__, shost->host_no, scsi_proc_host_add() 157 * @shost: which host 159 void scsi_proc_host_rm(struct Scsi_Host *shost) scsi_proc_host_rm() argument 163 if (!shost->hostt->proc_dir) scsi_proc_host_rm() 166 sprintf(name,"%d", shost->host_no); scsi_proc_host_rm() 167 remove_proc_entry(name, shost->hostt->proc_dir); scsi_proc_host_rm() 244 struct Scsi_Host *shost; scsi_add_single_device() local 247 shost = scsi_host_lookup(host); scsi_add_single_device() 248 if (!shost) scsi_add_single_device() 251 if (shost->transportt->user_scan) scsi_add_single_device() 252 error = shost->transportt->user_scan(shost, channel, id, lun); scsi_add_single_device() 254 error = scsi_scan_host_selected(shost, channel, id, lun, 1); scsi_add_single_device() 255 scsi_host_put(shost); scsi_add_single_device() 272 struct Scsi_Host *shost; scsi_remove_single_device() local 275 shost = scsi_host_lookup(host); scsi_remove_single_device() 276 if (!shost) scsi_remove_single_device() 278 sdev = scsi_device_lookup(shost, channel, id, lun); scsi_remove_single_device() 285 scsi_host_put(shost); scsi_remove_single_device()
|
H A D | scsi_transport_fc.c | 45 static int fc_vport_setup(struct Scsi_Host *shost, int channel, 387 struct Scsi_Host *shost = dev_to_shost(dev); fc_host_setup() local 388 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_host_setup() 442 "fc_wq_%d", shost->host_no); fc_host_setup() 450 "fc_dl_%d", shost->host_no); fc_host_setup() 459 fc_bsg_hostadd(shost, fc_host); fc_host_setup() 468 struct Scsi_Host *shost = dev_to_shost(dev); fc_host_remove() local 469 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_host_remove() 525 * @shost: host the event occurred on 534 fc_host_post_event(struct Scsi_Host *shost, u32 event_number, fc_host_post_event() argument 568 event->host_no = shost->host_no; fc_host_post_event() 584 __func__, shost->host_no, fc_host_post_event() 593 * @shost: host the event occurred on 603 fc_host_post_vendor_event(struct Scsi_Host *shost, u32 event_number, fc_host_post_vendor_event() argument 636 event->host_no = shost->host_no; fc_host_post_vendor_event() 651 __func__, shost->host_no, err); fc_host_post_vendor_event() 705 struct Scsi_Host *shost = rport_to_shost(rport); \ 706 struct fc_internal *i = to_fc_internal(shost->transportt); \ 723 struct Scsi_Host *shost = rport_to_shost(rport); \ 724 struct fc_internal *i = to_fc_internal(shost->transportt); \ 866 struct Scsi_Host *shost = rport_to_shost(rport); fc_rport_set_dev_loss_tmo() local 867 struct fc_internal *i = to_fc_internal(shost->transportt); fc_rport_set_dev_loss_tmo() 1020 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \ 1021 struct fc_internal *i = to_fc_internal(shost->transportt); \ 1075 struct Scsi_Host *shost = vport_to_shost(vport); \ 1076 struct fc_internal *i = to_fc_internal(shost->transportt); \ 1091 struct Scsi_Host *shost = vport_to_shost(vport); \ 1092 struct fc_internal *i = to_fc_internal(shost->transportt); \ 1110 struct Scsi_Host *shost = vport_to_shost(vport); \ 1111 struct fc_internal *i = to_fc_internal(shost->transportt); \ 1283 struct Scsi_Host *shost = vport_to_shost(vport); store_fc_vport_delete() local 1286 spin_lock_irqsave(shost->host_lock, flags); store_fc_vport_delete() 1288 spin_unlock_irqrestore(shost->host_lock, flags); store_fc_vport_delete() 1292 spin_unlock_irqrestore(shost->host_lock, flags); store_fc_vport_delete() 1294 fc_queue_work(shost, &vport->vport_delete_work); store_fc_vport_delete() 1311 struct Scsi_Host *shost = vport_to_shost(vport); store_fc_vport_disable() local 1312 struct fc_internal *i = to_fc_internal(shost->transportt); store_fc_vport_disable() 1343 struct Scsi_Host *shost = transport_class_to_shost(dev); \ 1344 struct fc_internal *i = to_fc_internal(shost->transportt); \ 1346 i->f->get_host_##field(shost); \ 1347 return snprintf(buf, sz, format_string, cast fc_host_##field(shost)); \ 1357 struct Scsi_Host *shost = transport_class_to_shost(dev); \ 1358 struct fc_internal *i = to_fc_internal(shost->transportt); \ 1364 i->f->set_host_##field(shost, val); \ 1374 struct Scsi_Host *shost = transport_class_to_shost(dev); \ 1375 struct fc_internal *i = to_fc_internal(shost->transportt); \ 1383 memcpy(fc_host_##field(shost), buf, cnt); \ 1384 i->f->set_host_##field(shost); \ 1410 struct Scsi_Host *shost = transport_class_to_shost(dev); \ 1411 struct fc_internal *i = to_fc_internal(shost->transportt); \ 1414 i->f->get_host_##title(shost); \ 1415 name = get_fc_##title##_name(fc_host_##title(shost)); \ 1453 struct Scsi_Host *shost = transport_class_to_shost(dev); \ 1454 return snprintf(buf, sz, format_string, cast fc_host_##field(shost)); \ 1488 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_supported_classes() local 1490 if (fc_host_supported_classes(shost) == FC_COS_UNSPECIFIED) show_fc_host_supported_classes() 1493 return get_fc_cos_names(fc_host_supported_classes(shost), buf); show_fc_host_supported_classes() 1502 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_supported_fc4s() local 1503 return (ssize_t)show_fc_fc4s(buf, fc_host_supported_fc4s(shost)); show_fc_host_supported_fc4s() 1512 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_supported_speeds() local 1514 if (fc_host_supported_speeds(shost) == FC_PORTSPEED_UNKNOWN) show_fc_host_supported_speeds() 1517 return get_fc_port_speed_names(fc_host_supported_speeds(shost), buf); show_fc_host_supported_speeds() 1545 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_active_fc4s() local 1546 struct fc_internal *i = to_fc_internal(shost->transportt); show_fc_host_active_fc4s() 1549 i->f->get_host_active_fc4s(shost); show_fc_host_active_fc4s() 1551 return (ssize_t)show_fc_fc4s(buf, fc_host_active_fc4s(shost)); show_fc_host_active_fc4s() 1560 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_host_speed() local 1561 struct fc_internal *i = to_fc_internal(shost->transportt); show_fc_host_speed() 1564 i->f->get_host_speed(shost); show_fc_host_speed() 1566 if (fc_host_speed(shost) == FC_PORTSPEED_UNKNOWN) show_fc_host_speed() 1569 return get_fc_port_speed_names(fc_host_speed(shost), buf); show_fc_host_speed() 1594 struct Scsi_Host *shost = transport_class_to_shost(dev); show_fc_private_host_tgtid_bind_type() local 1597 name = get_fc_tgtid_bind_type_name(fc_host_tgtid_bind_type(shost)); show_fc_private_host_tgtid_bind_type() 1610 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_private_host_tgtid_bind_type() local 1619 if (val != fc_host_tgtid_bind_type(shost)) { store_fc_private_host_tgtid_bind_type() 1620 spin_lock_irqsave(shost->host_lock, flags); store_fc_private_host_tgtid_bind_type() 1621 while (!list_empty(&fc_host_rport_bindings(shost))) { store_fc_private_host_tgtid_bind_type() 1623 &fc_host_rport_bindings(shost), peers); store_fc_private_host_tgtid_bind_type() 1626 fc_queue_work(shost, &rport->rport_delete_work); store_fc_private_host_tgtid_bind_type() 1628 spin_unlock_irqrestore(shost->host_lock, flags); store_fc_private_host_tgtid_bind_type() 1631 fc_host_tgtid_bind_type(shost) = val; store_fc_private_host_tgtid_bind_type() 1643 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_private_host_issue_lip() local 1644 struct fc_internal *i = to_fc_internal(shost->transportt); store_fc_private_host_issue_lip() 1649 ret = i->f->issue_fc_host_lip(shost); store_fc_private_host_issue_lip() 1664 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_private_host_dev_loss_tmo() local 1665 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); store_fc_private_host_dev_loss_tmo() 1674 fc_host_dev_loss_tmo(shost) = val; store_fc_private_host_dev_loss_tmo() 1675 spin_lock_irqsave(shost->host_lock, flags); store_fc_private_host_dev_loss_tmo() 1678 spin_unlock_irqrestore(shost->host_lock, flags); store_fc_private_host_dev_loss_tmo() 1697 struct Scsi_Host *shost = transport_class_to_shost(dev); fc_stat_show() local 1698 struct fc_internal *i = to_fc_internal(shost->transportt); fc_stat_show() 1707 stats = (i->f->get_fc_host_stats)(shost); fc_stat_show() 1761 struct Scsi_Host *shost = transport_class_to_shost(dev); fc_reset_statistics() local 1762 struct fc_internal *i = to_fc_internal(shost->transportt); fc_reset_statistics() 1766 i->f->reset_fc_host_stats(shost); fc_reset_statistics() 1856 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_host_vport_create() local 1886 stat = fc_vport_setup(shost, 0, &shost->shost_gendev, &vid, &vport); store_fc_host_vport_create() 1903 struct Scsi_Host *shost = transport_class_to_shost(dev); store_fc_host_vport_delete() local 1904 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); store_fc_host_vport_delete() 1927 spin_lock_irqsave(shost->host_lock, flags); store_fc_host_vport_delete() 1940 spin_unlock_irqrestore(shost->host_lock, flags); store_fc_host_vport_delete() 1955 struct Scsi_Host *shost; fc_host_match() local 1961 shost = dev_to_shost(dev); fc_host_match() 1962 if (!shost->transportt || shost->transportt->host_attrs.ac.class fc_host_match() 1966 i = to_fc_internal(shost->transportt); fc_host_match() 1974 struct Scsi_Host *shost; fc_target_match() local 1980 shost = dev_to_shost(dev->parent); fc_target_match() 1981 if (!shost->transportt || shost->transportt->host_attrs.ac.class fc_target_match() 1985 i = to_fc_internal(shost->transportt); fc_target_match() 2006 struct Scsi_Host *shost; fc_rport_match() local 2012 shost = dev_to_shost(dev->parent); fc_rport_match() 2013 if (!shost->transportt || shost->transportt->host_attrs.ac.class fc_rport_match() 2017 i = to_fc_internal(shost->transportt); fc_rport_match() 2040 struct Scsi_Host *shost; fc_vport_match() local 2047 shost = vport_to_shost(vport); fc_vport_match() 2048 if (!shost->transportt || shost->transportt->host_attrs.ac.class fc_vport_match() 2052 i = to_fc_internal(shost->transportt); fc_vport_match() 2091 * Called by fc_user_scan to locate an rport on the shost that 2096 fc_user_scan_tgt(struct Scsi_Host *shost, uint channel, uint id, u64 lun) fc_user_scan_tgt() argument 2101 spin_lock_irqsave(shost->host_lock, flags); fc_user_scan_tgt() 2103 list_for_each_entry(rport, &fc_host_rports(shost), peers) { fc_user_scan_tgt() 2112 spin_unlock_irqrestore(shost->host_lock, flags); fc_user_scan_tgt() 2118 spin_unlock_irqrestore(shost->host_lock, flags); fc_user_scan_tgt() 2128 fc_user_scan(struct Scsi_Host *shost, uint channel, uint id, u64 lun) fc_user_scan() argument 2133 if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || fc_user_scan() 2134 ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || fc_user_scan() 2135 ((lun != SCAN_WILD_CARD) && (lun > shost->max_lun))) fc_user_scan() 2140 chhi = shost->max_channel + 1; fc_user_scan() 2148 tgthi = shost->max_id; fc_user_scan() 2156 fc_user_scan_tgt(shost, chlo, tgtlo, lun); fc_user_scan() 2161 static int fc_tsk_mgmt_response(struct Scsi_Host *shost, u64 nexus, u64 tm_id, fc_tsk_mgmt_response() argument 2164 struct fc_internal *i = to_fc_internal(shost->transportt); fc_tsk_mgmt_response() 2165 return i->f->tsk_mgmt_response(shost, nexus, tm_id, result); fc_tsk_mgmt_response() 2168 static int fc_it_nexus_response(struct Scsi_Host *shost, u64 nexus, int result) fc_it_nexus_response() argument 2170 struct fc_internal *i = to_fc_internal(shost->transportt); fc_it_nexus_response() 2171 return i->f->it_nexus_response(shost, nexus, result); fc_it_nexus_response() 2210 /* Transport uses the shost workq for scsi scanning */ fc_attach_transport() 2337 * @shost: Pointer to Scsi_Host bound to fc_host. 2346 fc_queue_work(struct Scsi_Host *shost, struct work_struct *work) fc_queue_work() argument 2348 if (unlikely(!fc_host_work_q(shost))) { fc_queue_work() 2351 "when no workqueue created.\n", shost->hostt->name); fc_queue_work() 2357 return queue_work(fc_host_work_q(shost), work); fc_queue_work() 2362 * @shost: Pointer to Scsi_Host bound to fc_host. 2365 fc_flush_work(struct Scsi_Host *shost) fc_flush_work() argument 2367 if (!fc_host_work_q(shost)) { fc_flush_work() 2370 "when no workqueue created.\n", shost->hostt->name); fc_flush_work() 2375 flush_workqueue(fc_host_work_q(shost)); fc_flush_work() 2380 * @shost: Pointer to Scsi_Host bound to fc_host. 2388 fc_queue_devloss_work(struct Scsi_Host *shost, struct delayed_work *work, fc_queue_devloss_work() argument 2391 if (unlikely(!fc_host_devloss_work_q(shost))) { fc_queue_devloss_work() 2394 "when no workqueue created.\n", shost->hostt->name); fc_queue_devloss_work() 2400 return queue_delayed_work(fc_host_devloss_work_q(shost), work, delay); fc_queue_devloss_work() 2405 * @shost: Pointer to Scsi_Host bound to fc_host. 2408 fc_flush_devloss(struct Scsi_Host *shost) fc_flush_devloss() argument 2410 if (!fc_host_devloss_work_q(shost)) { fc_flush_devloss() 2413 "when no workqueue created.\n", shost->hostt->name); fc_flush_devloss() 2418 flush_workqueue(fc_host_devloss_work_q(shost)); fc_flush_devloss() 2424 * @shost: Which &Scsi_Host 2438 fc_remove_host(struct Scsi_Host *shost) fc_remove_host() argument 2443 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_remove_host() 2446 spin_lock_irqsave(shost->host_lock, flags); fc_remove_host() 2450 fc_queue_work(shost, &vport->vport_delete_work); fc_remove_host() 2457 fc_queue_work(shost, &rport->rport_delete_work); fc_remove_host() 2464 fc_queue_work(shost, &rport->rport_delete_work); fc_remove_host() 2467 spin_unlock_irqrestore(shost->host_lock, flags); fc_remove_host() 2470 scsi_flush_work(shost); fc_remove_host() 2490 struct Scsi_Host *shost = rport_to_shost(rport); fc_terminate_rport_io() local 2491 struct fc_internal *i = to_fc_internal(shost->transportt); fc_terminate_rport_io() 2530 struct Scsi_Host *shost = rport_to_shost(rport); fc_rport_final_delete() local 2531 struct fc_internal *i = to_fc_internal(shost->transportt); fc_rport_final_delete() 2542 scsi_flush_work(shost); fc_rport_final_delete() 2549 spin_lock_irqsave(shost->host_lock, flags); fc_rport_final_delete() 2551 spin_unlock_irqrestore(shost->host_lock, flags); fc_rport_final_delete() 2553 fc_flush_devloss(shost); fc_rport_final_delete() 2555 fc_flush_devloss(shost); fc_rport_final_delete() 2557 spin_lock_irqsave(shost->host_lock, flags); fc_rport_final_delete() 2560 spin_unlock_irqrestore(shost->host_lock, flags); fc_rport_final_delete() 2573 spin_lock_irqsave(shost->host_lock, flags); fc_rport_final_delete() 2579 spin_unlock_irqrestore(shost->host_lock, flags); fc_rport_final_delete() 2589 put_device(&shost->shost_gendev); /* for fc_host->rport list */ fc_rport_final_delete() 2596 * @shost: scsi host the remote port is connected to. 2597 * @channel: Channel on shost port connected to. 2608 fc_rport_create(struct Scsi_Host *shost, int channel, fc_rport_create() argument 2611 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_rport_create() 2612 struct fc_internal *fci = to_fc_internal(shost->transportt); fc_rport_create() 2645 spin_lock_irqsave(shost->host_lock, flags); fc_rport_create() 2653 get_device(&shost->shost_gendev); /* for fc_host->rport list */ fc_rport_create() 2655 spin_unlock_irqrestore(shost->host_lock, flags); fc_rport_create() 2659 dev->parent = get_device(&shost->shost_gendev); /* parent reference */ fc_rport_create() 2662 shost->host_no, channel, rport->number); fc_rport_create() 2673 fc_bsg_rportadd(shost, rport); fc_rport_create() 2679 scsi_queue_work(shost, &rport->scan_work); fc_rport_create() 2686 spin_lock_irqsave(shost->host_lock, flags); fc_rport_create() 2688 put_device(&shost->shost_gendev); /* for fc_host->rport list */ fc_rport_create() 2689 spin_unlock_irqrestore(shost->host_lock, flags); fc_rport_create() 2697 * @shost: scsi host the remote port is connected to. 2698 * @channel: Channel on shost port connected to. 2734 fc_remote_port_add(struct Scsi_Host *shost, int channel, fc_remote_port_add() argument 2737 struct fc_internal *fci = to_fc_internal(shost->transportt); fc_remote_port_add() 2738 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_remote_port_add() 2744 fc_flush_work(shost); fc_remote_port_add() 2751 spin_lock_irqsave(shost->host_lock, flags); fc_remote_port_add() 2785 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_add() 2818 fc_flush_devloss(shost); fc_remote_port_add() 2820 fc_flush_devloss(shost); fc_remote_port_add() 2822 spin_lock_irqsave(shost->host_lock, flags); fc_remote_port_add() 2828 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_add() 2834 spin_lock_irqsave(shost->host_lock, fc_remote_port_add() 2837 scsi_queue_work(shost, fc_remote_port_add() 2839 spin_unlock_irqrestore(shost->host_lock, fc_remote_port_add() 2899 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_add() 2905 spin_lock_irqsave(shost->host_lock, flags); fc_remote_port_add() 2907 scsi_queue_work(shost, &rport->scan_work); fc_remote_port_add() 2908 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_add() 2914 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_add() 2917 rport = fc_rport_create(shost, channel, ids); fc_remote_port_add() 2977 struct Scsi_Host *shost = rport_to_shost(rport); fc_remote_port_delete() local 2989 spin_lock_irqsave(shost->host_lock, flags); fc_remote_port_delete() 2992 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_delete() 3013 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_delete() 3020 fc_queue_devloss_work(shost, &rport->fail_io_work, fc_remote_port_delete() 3024 fc_queue_devloss_work(shost, &rport->dev_loss_work, timeout * HZ); fc_remote_port_delete() 3051 struct Scsi_Host *shost = rport_to_shost(rport); fc_remote_port_rolechg() local 3052 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_remote_port_rolechg() 3056 spin_lock_irqsave(shost->host_lock, flags); fc_remote_port_rolechg() 3067 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_rolechg() 3083 fc_flush_devloss(shost); fc_remote_port_rolechg() 3085 fc_flush_devloss(shost); fc_remote_port_rolechg() 3087 spin_lock_irqsave(shost->host_lock, flags); fc_remote_port_rolechg() 3091 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_rolechg() 3094 fc_flush_work(shost); fc_remote_port_rolechg() 3098 spin_lock_irqsave(shost->host_lock, flags); fc_remote_port_rolechg() 3100 scsi_queue_work(shost, &rport->scan_work); fc_remote_port_rolechg() 3101 spin_unlock_irqrestore(shost->host_lock, flags); fc_remote_port_rolechg() 3118 struct Scsi_Host *shost = rport_to_shost(rport); fc_timeout_deleted_rport() local 3119 struct fc_internal *i = to_fc_internal(shost->transportt); fc_timeout_deleted_rport() 3120 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_timeout_deleted_rport() 3124 spin_lock_irqsave(shost->host_lock, flags); fc_timeout_deleted_rport() 3139 spin_unlock_irqrestore(shost->host_lock, flags); fc_timeout_deleted_rport() 3141 fc_queue_work(shost, &rport->stgt_delete_work); fc_timeout_deleted_rport() 3147 spin_unlock_irqrestore(shost->host_lock, flags); fc_timeout_deleted_rport() 3163 fc_queue_work(shost, &rport->rport_delete_work); fc_timeout_deleted_rport() 3164 spin_unlock_irqrestore(shost->host_lock, flags); fc_timeout_deleted_rport() 3194 spin_unlock_irqrestore(shost->host_lock, flags); fc_timeout_deleted_rport() 3197 spin_lock_irqsave(shost->host_lock, flags); fc_timeout_deleted_rport() 3225 fc_queue_work(shost, &rport->stgt_delete_work); fc_timeout_deleted_rport() 3230 spin_unlock_irqrestore(shost->host_lock, flags); fc_timeout_deleted_rport() 3272 struct Scsi_Host *shost = rport_to_shost(rport); fc_scsi_scan_rport() local 3273 struct fc_internal *i = to_fc_internal(shost->transportt); fc_scsi_scan_rport() 3283 spin_lock_irqsave(shost->host_lock, flags); fc_scsi_scan_rport() 3285 spin_unlock_irqrestore(shost->host_lock, flags); fc_scsi_scan_rport() 3304 struct Scsi_Host *shost = cmnd->device->host; fc_block_scsi_eh() local 3308 spin_lock_irqsave(shost->host_lock, flags); fc_block_scsi_eh() 3311 spin_unlock_irqrestore(shost->host_lock, flags); fc_block_scsi_eh() 3313 spin_lock_irqsave(shost->host_lock, flags); fc_block_scsi_eh() 3315 spin_unlock_irqrestore(shost->host_lock, flags); fc_block_scsi_eh() 3326 * @shost: scsi host the virtual port is connected to. 3327 * @channel: Channel on shost port connected to. 3340 fc_vport_setup(struct Scsi_Host *shost, int channel, struct device *pdev, fc_vport_setup() argument 3343 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_vport_setup() 3344 struct fc_internal *fci = to_fc_internal(shost->transportt); fc_vport_setup() 3371 vport->shost = shost; fc_vport_setup() 3376 spin_lock_irqsave(shost->host_lock, flags); fc_vport_setup() 3379 spin_unlock_irqrestore(shost->host_lock, flags); fc_vport_setup() 3386 get_device(&shost->shost_gendev); /* for fc_host->vport list */ fc_vport_setup() 3388 spin_unlock_irqrestore(shost->host_lock, flags); fc_vport_setup() 3395 shost->host_no, channel, vport->number); fc_vport_setup() 3416 if (pdev != &shost->shost_gendev) { fc_vport_setup() 3417 error = sysfs_create_link(&shost->shost_gendev.kobj, fc_vport_setup() 3425 spin_lock_irqsave(shost->host_lock, flags); fc_vport_setup() 3427 spin_unlock_irqrestore(shost->host_lock, flags); fc_vport_setup() 3430 "%s created via shost%d channel %d\n", dev_name(dev), fc_vport_setup() 3431 shost->host_no, channel); fc_vport_setup() 3442 spin_lock_irqsave(shost->host_lock, flags); fc_vport_setup() 3444 put_device(&shost->shost_gendev); /* for fc_host->vport list */ fc_vport_setup() 3446 spin_unlock_irqrestore(shost->host_lock, flags); fc_vport_setup() 3455 * @shost: scsi host the virtual port is connected to. 3456 * @channel: channel on shost port connected to. 3464 fc_vport_create(struct Scsi_Host *shost, int channel, fc_vport_create() argument 3470 stat = fc_vport_setup(shost, channel, &shost->shost_gendev, fc_vport_create() 3481 * the vport from the shost and object tree. 3489 struct Scsi_Host *shost = vport_to_shost(vport); fc_vport_terminate() local 3490 struct fc_host_attrs *fc_host = shost_to_fc_host(shost); fc_vport_terminate() 3491 struct fc_internal *i = to_fc_internal(shost->transportt); fc_vport_terminate() 3501 spin_lock_irqsave(shost->host_lock, flags); fc_vport_terminate() 3507 put_device(&shost->shost_gendev); /* for fc_host->vport list */ fc_vport_terminate() 3509 spin_unlock_irqrestore(shost->host_lock, flags); fc_vport_terminate() 3514 if (dev->parent != &shost->shost_gendev) fc_vport_terminate() 3515 sysfs_remove_link(&shost->shost_gendev.kobj, dev_name(dev)); fc_vport_terminate() 3546 "shost%d channel %d - error %d\n", __func__, fc_vport_sched_delete() 3547 dev_name(&vport->dev), vport->shost->host_no, fc_vport_sched_delete() 3639 struct Scsi_Host *shost = job->shost; fc_bsg_job_timeout() local 3640 struct fc_internal *i = to_fc_internal(shost->transportt); fc_bsg_job_timeout() 3692 * @shost: SCSI Host corresponding to the bsg object 3697 fc_req_to_bsgjob(struct Scsi_Host *shost, struct fc_rport *rport, fc_req_to_bsgjob() argument 3700 struct fc_internal *i = to_fc_internal(shost->transportt); fc_req_to_bsgjob() 3722 job->shost = shost; fc_req_to_bsgjob() 3747 job->dev = &shost->shost_gendev; fc_req_to_bsgjob() 3773 * @shost: scsi host rport attached to 3777 fc_bsg_host_dispatch(struct request_queue *q, struct Scsi_Host *shost, fc_bsg_host_dispatch() argument 3780 struct fc_internal *i = to_fc_internal(shost->transportt); fc_bsg_host_dispatch() 3816 if ((shost->hostt->vendor_id == 0L) || fc_bsg_host_dispatch() 3818 shost->hostt->vendor_id)) { fc_bsg_host_dispatch() 3871 * @shost: scsi host rport attached to 3876 fc_bsg_rport_dispatch(struct request_queue *q, struct Scsi_Host *shost, fc_bsg_rport_dispatch() argument 3879 struct fc_internal *i = to_fc_internal(shost->transportt); fc_bsg_rport_dispatch() 3928 * @shost: Scsi_Host related to the bsg object 3933 fc_bsg_request_handler(struct request_queue *q, struct Scsi_Host *shost, fc_bsg_request_handler() argument 3962 ret = fc_req_to_bsgjob(shost, rport, req); fc_bsg_request_handler() 3985 ret = fc_bsg_rport_dispatch(q, shost, rport, job); fc_bsg_request_handler() 3987 ret = fc_bsg_host_dispatch(q, shost, job); fc_bsg_request_handler() 4011 struct Scsi_Host *shost = q->queuedata; fc_bsg_host_handler() local 4013 fc_bsg_request_handler(q, shost, NULL, &shost->shost_gendev); fc_bsg_host_handler() 4025 struct Scsi_Host *shost = rport_to_shost(rport); fc_bsg_rport_handler() local 4027 fc_bsg_request_handler(q, shost, rport, &rport->dev); fc_bsg_rport_handler() 4033 * @shost: shost for fc_host 4037 fc_bsg_hostadd(struct Scsi_Host *shost, struct fc_host_attrs *fc_host) fc_bsg_hostadd() argument 4039 struct device *dev = &shost->shost_gendev; fc_bsg_hostadd() 4040 struct fc_internal *i = to_fc_internal(shost->transportt); fc_bsg_hostadd() 4051 "fc_host%d", shost->host_no); fc_bsg_hostadd() 4053 q = __scsi_alloc_queue(shost, fc_bsg_host_handler); fc_bsg_hostadd() 4057 shost->host_no); fc_bsg_hostadd() 4061 q->queuedata = shost; fc_bsg_hostadd() 4071 shost->host_no); fc_bsg_hostadd() 4083 * @shost: shost that rport is attached to 4087 fc_bsg_rportadd(struct Scsi_Host *shost, struct fc_rport *rport) fc_bsg_rportadd() argument 4090 struct fc_internal *i = to_fc_internal(shost->transportt); fc_bsg_rportadd() 4099 q = __scsi_alloc_queue(shost, fc_bsg_rport_handler); fc_bsg_rportadd()
|
H A D | scsi.c | 174 * @shost: host to free the command for 181 scsi_host_free_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) scsi_host_free_command() argument 183 struct scsi_host_cmd_pool *pool = shost->cmd_pool; scsi_host_free_command() 193 * @shost: SCSI host whose pool to allocate from 200 scsi_host_alloc_command(struct Scsi_Host *shost, gfp_t gfp_mask) scsi_host_alloc_command() argument 202 struct scsi_host_cmd_pool *pool = shost->cmd_pool; scsi_host_alloc_command() 214 if (scsi_host_get_prot(shost) >= SHOST_DIX_TYPE0_PROTECTION) { scsi_host_alloc_command() 232 * @shost: host to transmit command 239 __scsi_get_command(struct Scsi_Host *shost, gfp_t gfp_mask) __scsi_get_command() argument 241 struct scsi_cmnd *cmd = scsi_host_alloc_command(shost, gfp_mask); __scsi_get_command() 246 spin_lock_irqsave(&shost->free_list_lock, flags); __scsi_get_command() 247 if (likely(!list_empty(&shost->free_list))) { __scsi_get_command() 248 cmd = list_entry(shost->free_list.next, __scsi_get_command() 252 spin_unlock_irqrestore(&shost->free_list_lock, flags); __scsi_get_command() 297 * @shost: dev->host 300 static void __scsi_put_command(struct Scsi_Host *shost, struct scsi_cmnd *cmd) __scsi_put_command() argument 304 if (unlikely(list_empty(&shost->free_list))) { __scsi_put_command() 305 spin_lock_irqsave(&shost->free_list_lock, flags); __scsi_put_command() 306 if (list_empty(&shost->free_list)) { __scsi_put_command() 307 list_add(&cmd->list, &shost->free_list); __scsi_put_command() 310 spin_unlock_irqrestore(&shost->free_list_lock, flags); __scsi_put_command() 314 scsi_host_free_command(shost, cmd); __scsi_put_command() 341 scsi_find_host_cmd_pool(struct Scsi_Host *shost) scsi_find_host_cmd_pool() argument 343 if (shost->hostt->cmd_size) scsi_find_host_cmd_pool() 344 return shost->hostt->cmd_pool; scsi_find_host_cmd_pool() 345 if (shost->unchecked_isa_dma) scsi_find_host_cmd_pool() 359 scsi_alloc_host_cmd_pool(struct Scsi_Host *shost) scsi_alloc_host_cmd_pool() argument 361 struct scsi_host_template *hostt = shost->hostt; scsi_alloc_host_cmd_pool() 376 if (shost->unchecked_isa_dma) { scsi_alloc_host_cmd_pool() 388 scsi_get_host_cmd_pool(struct Scsi_Host *shost) scsi_get_host_cmd_pool() argument 390 struct scsi_host_template *hostt = shost->hostt; scsi_get_host_cmd_pool() 399 pool = scsi_find_host_cmd_pool(shost); scsi_get_host_cmd_pool() 401 pool = scsi_alloc_host_cmd_pool(shost); scsi_get_host_cmd_pool() 435 static void scsi_put_host_cmd_pool(struct Scsi_Host *shost) scsi_put_host_cmd_pool() argument 437 struct scsi_host_template *hostt = shost->hostt; scsi_put_host_cmd_pool() 441 pool = scsi_find_host_cmd_pool(shost); scsi_put_host_cmd_pool() 463 * @shost: host to allocate the freelist for. 471 int scsi_setup_command_freelist(struct Scsi_Host *shost) scsi_setup_command_freelist() argument 473 const gfp_t gfp_mask = shost->unchecked_isa_dma ? GFP_DMA : GFP_KERNEL; scsi_setup_command_freelist() 476 spin_lock_init(&shost->free_list_lock); scsi_setup_command_freelist() 477 INIT_LIST_HEAD(&shost->free_list); scsi_setup_command_freelist() 479 shost->cmd_pool = scsi_get_host_cmd_pool(shost); scsi_setup_command_freelist() 480 if (!shost->cmd_pool) scsi_setup_command_freelist() 486 cmd = scsi_host_alloc_command(shost, gfp_mask); scsi_setup_command_freelist() 488 scsi_put_host_cmd_pool(shost); scsi_setup_command_freelist() 489 shost->cmd_pool = NULL; scsi_setup_command_freelist() 492 list_add(&cmd->list, &shost->free_list); scsi_setup_command_freelist() 498 * @shost: host whose freelist is going to be destroyed 500 void scsi_destroy_command_freelist(struct Scsi_Host *shost) scsi_destroy_command_freelist() argument 506 if (!shost->cmd_pool) scsi_destroy_command_freelist() 509 while (!list_empty(&shost->free_list)) { scsi_destroy_command_freelist() 512 cmd = list_entry(shost->free_list.next, struct scsi_cmnd, list); scsi_destroy_command_freelist() 514 scsi_host_free_command(shost, cmd); scsi_destroy_command_freelist() 516 shost->cmd_pool = NULL; scsi_destroy_command_freelist() 517 scsi_put_host_cmd_pool(shost); scsi_destroy_command_freelist() 610 struct Scsi_Host *shost = sdev->host; scsi_finish_command() local 620 if (atomic_read(&shost->host_blocked)) scsi_finish_command() 621 atomic_set(&shost->host_blocked, 0); scsi_finish_command() 1012 struct scsi_device *__scsi_iterate_devices(struct Scsi_Host *shost, __scsi_iterate_devices() argument 1015 struct list_head *list = (prev ? &prev->siblings : &shost->__devices); __scsi_iterate_devices() 1019 spin_lock_irqsave(shost->host_lock, flags); __scsi_iterate_devices() 1020 while (list->next != &shost->__devices) { __scsi_iterate_devices() 1028 spin_unlock_irqrestore(shost->host_lock, flags); __scsi_iterate_devices() 1049 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); starget_for_each_device() local 1052 shost_for_each_device(sdev, shost) { shost_for_each_device() 1068 * protected by shost->host_lock. 1077 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); __starget_for_each_device() local 1080 __shost_for_each_device(sdev, shost) { __shost_for_each_device() 1132 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); scsi_device_lookup_by_target() local 1135 spin_lock_irqsave(shost->host_lock, flags); scsi_device_lookup_by_target() 1139 spin_unlock_irqrestore(shost->host_lock, flags); scsi_device_lookup_by_target() 1147 * @shost: SCSI host pointer 1161 struct scsi_device *__scsi_device_lookup(struct Scsi_Host *shost, __scsi_device_lookup() argument 1166 list_for_each_entry(sdev, &shost->__devices, siblings) { __scsi_device_lookup() 1178 * @shost: SCSI host pointer 1187 struct scsi_device *scsi_device_lookup(struct Scsi_Host *shost, scsi_device_lookup() argument 1193 spin_lock_irqsave(shost->host_lock, flags); scsi_device_lookup() 1194 sdev = __scsi_device_lookup(shost, channel, id, lun); scsi_device_lookup() 1197 spin_unlock_irqrestore(shost->host_lock, flags); scsi_device_lookup()
|
H A D | scsi_scan.c | 115 struct Scsi_Host *shost; member in struct:async_scan_data 143 data->shost = NULL; scsi_complete_async_scans() 203 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and 214 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); scsi_alloc_sdev() local 218 sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, scsi_alloc_sdev() 226 sdev->host = shost; scsi_alloc_sdev() 263 if (shost_use_blk_mq(shost)) scsi_alloc_sdev() 278 (shost->bqt || shost->hostt->use_blk_tags)) { scsi_alloc_sdev() 280 sdev->host->cmd_per_lun, shost->bqt, scsi_alloc_sdev() 281 shost->hostt->tag_alloc_policy); scsi_alloc_sdev() 287 if (shost->hostt->slave_alloc) { scsi_alloc_sdev() 288 ret = shost->hostt->slave_alloc(sdev); scsi_alloc_sdev() 313 struct Scsi_Host *shost = dev_to_shost(dev->parent); scsi_target_destroy() local 318 spin_lock_irqsave(shost->host_lock, flags); scsi_target_destroy() 319 if (shost->hostt->target_destroy) scsi_target_destroy() 320 shost->hostt->target_destroy(starget); scsi_target_destroy() 322 spin_unlock_irqrestore(shost->host_lock, flags); scsi_target_destroy() 350 struct Scsi_Host *shost = dev_to_shost(parent); __scsi_find_target() local 354 list_for_each_entry(starget, &shost->__targets, siblings) { __scsi_find_target() 413 struct Scsi_Host *shost = dev_to_shost(parent); scsi_alloc_target() local 417 + shost->transportt->target_size; scsi_alloc_target() 431 dev_set_name(dev, "target%d:%d:%d", shost->host_no, channel, id); scsi_alloc_target() 443 spin_lock_irqsave(shost->host_lock, flags); scsi_alloc_target() 449 list_add_tail(&starget->siblings, &shost->__targets); scsi_alloc_target() 450 spin_unlock_irqrestore(shost->host_lock, flags); scsi_alloc_target() 453 if (shost->hostt->target_alloc) { scsi_alloc_target() 454 error = shost->hostt->target_alloc(starget); scsi_alloc_target() 476 spin_unlock_irqrestore(shost->host_lock, flags); scsi_alloc_target() 1053 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); scsi_probe_and_add_lun() local 1083 ((shost->unchecked_isa_dma) ? __GFP_DMA : 0)); scsi_probe_and_add_lun() 1156 res = scsi_add_lun(sdev, result, &bflags, shost->async_scan); scsi_probe_and_add_lun() 1201 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); scsi_sequential_lun_scan() local 1206 max_dev_lun = min(max_scsi_luns, shost->max_lun); scsi_sequential_lun_scan() 1213 max_dev_lun = shost->max_lun; scsi_sequential_lun_scan() 1240 max_dev_lun = shost->max_lun; scsi_sequential_lun_scan() 1366 struct Scsi_Host *shost = dev_to_shost(&starget->dev); scsi_report_lun_scan() local 1381 (!(bflags & BLIST_REPORTLUN2) || shost->max_lun <= 8)) scsi_report_lun_scan() 1399 shost->host_no, sdev->channel, sdev->id); scsi_report_lun_scan() 1528 struct scsi_device *__scsi_add_device(struct Scsi_Host *shost, uint channel, __scsi_add_device() argument 1532 struct device *parent = &shost->shost_gendev; __scsi_add_device() 1543 mutex_lock(&shost->scan_mutex); __scsi_add_device() 1544 if (!shost->async_scan) __scsi_add_device() 1547 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { __scsi_add_device() 1549 scsi_autopm_put_host(shost); __scsi_add_device() 1551 mutex_unlock(&shost->scan_mutex); __scsi_add_device() 1594 struct Scsi_Host *shost = dev_to_shost(parent); __scsi_scan_target() local 1599 if (shost->this_id == id) __scsi_scan_target() 1662 struct Scsi_Host *shost = dev_to_shost(parent); scsi_scan_target() local 1667 mutex_lock(&shost->scan_mutex); scsi_scan_target() 1668 if (!shost->async_scan) scsi_scan_target() 1671 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { scsi_scan_target() 1673 scsi_autopm_put_host(shost); scsi_scan_target() 1675 mutex_unlock(&shost->scan_mutex); scsi_scan_target() 1679 static void scsi_scan_channel(struct Scsi_Host *shost, unsigned int channel, scsi_scan_channel() argument 1685 for (id = 0; id < shost->max_id; ++id) { scsi_scan_channel() 1691 * XXX add a shost id iterator, so for example, scsi_scan_channel() 1695 if (shost->reverse_ordering) scsi_scan_channel() 1699 order_id = shost->max_id - id - 1; scsi_scan_channel() 1702 __scsi_scan_target(&shost->shost_gendev, channel, scsi_scan_channel() 1706 __scsi_scan_target(&shost->shost_gendev, channel, scsi_scan_channel() 1710 int scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, scsi_scan_host_selected() argument 1713 SCSI_LOG_SCAN_BUS(3, shost_printk (KERN_INFO, shost, scsi_scan_host_selected() 1717 if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || scsi_scan_host_selected() 1718 ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || scsi_scan_host_selected() 1719 ((lun != SCAN_WILD_CARD) && (lun >= shost->max_lun))) scsi_scan_host_selected() 1722 mutex_lock(&shost->scan_mutex); scsi_scan_host_selected() 1723 if (!shost->async_scan) scsi_scan_host_selected() 1726 if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { scsi_scan_host_selected() 1728 for (channel = 0; channel <= shost->max_channel; scsi_scan_host_selected() 1730 scsi_scan_channel(shost, channel, id, lun, scsi_scan_host_selected() 1733 scsi_scan_channel(shost, channel, id, lun, rescan); scsi_scan_host_selected() 1734 scsi_autopm_put_host(shost); scsi_scan_host_selected() 1736 mutex_unlock(&shost->scan_mutex); scsi_scan_host_selected() 1741 static void scsi_sysfs_add_devices(struct Scsi_Host *shost) scsi_sysfs_add_devices() argument 1744 shost_for_each_device(sdev, shost) { shost_for_each_device() 1751 if (!scsi_host_scan_allowed(shost) || shost_for_each_device() 1759 * @shost: the host which will be scanned 1767 static struct async_scan_data *scsi_prep_async_scan(struct Scsi_Host *shost) scsi_prep_async_scan() argument 1775 if (shost->async_scan) { scsi_prep_async_scan() 1776 shost_printk(KERN_INFO, shost, "%s called twice\n", __func__); scsi_prep_async_scan() 1784 data->shost = scsi_host_get(shost); scsi_prep_async_scan() 1785 if (!data->shost) scsi_prep_async_scan() 1789 mutex_lock(&shost->scan_mutex); scsi_prep_async_scan() 1790 spin_lock_irqsave(shost->host_lock, flags); scsi_prep_async_scan() 1791 shost->async_scan = 1; scsi_prep_async_scan() 1792 spin_unlock_irqrestore(shost->host_lock, flags); scsi_prep_async_scan() 1793 mutex_unlock(&shost->scan_mutex); scsi_prep_async_scan() 1818 struct Scsi_Host *shost; scsi_finish_async_scan() local 1824 shost = data->shost; scsi_finish_async_scan() 1826 mutex_lock(&shost->scan_mutex); scsi_finish_async_scan() 1828 if (!shost->async_scan) { scsi_finish_async_scan() 1829 shost_printk(KERN_INFO, shost, "%s called twice\n", __func__); scsi_finish_async_scan() 1831 mutex_unlock(&shost->scan_mutex); scsi_finish_async_scan() 1837 scsi_sysfs_add_devices(shost); scsi_finish_async_scan() 1839 spin_lock_irqsave(shost->host_lock, flags); scsi_finish_async_scan() 1840 shost->async_scan = 0; scsi_finish_async_scan() 1841 spin_unlock_irqrestore(shost->host_lock, flags); scsi_finish_async_scan() 1843 mutex_unlock(&shost->scan_mutex); scsi_finish_async_scan() 1854 scsi_autopm_put_host(shost); scsi_finish_async_scan() 1855 scsi_host_put(shost); scsi_finish_async_scan() 1859 static void do_scsi_scan_host(struct Scsi_Host *shost) do_scsi_scan_host() argument 1861 if (shost->hostt->scan_finished) { do_scsi_scan_host() 1863 if (shost->hostt->scan_start) do_scsi_scan_host() 1864 shost->hostt->scan_start(shost); do_scsi_scan_host() 1866 while (!shost->hostt->scan_finished(shost, jiffies - start)) do_scsi_scan_host() 1869 scsi_scan_host_selected(shost, SCAN_WILD_CARD, SCAN_WILD_CARD, do_scsi_scan_host() 1877 struct Scsi_Host *shost = data->shost; do_scan_async() local 1879 do_scsi_scan_host(shost); do_scan_async() 1885 * @shost: adapter to scan 1887 void scsi_scan_host(struct Scsi_Host *shost) scsi_scan_host() argument 1893 if (scsi_autopm_get_host(shost) < 0) scsi_scan_host() 1896 data = scsi_prep_async_scan(shost); scsi_scan_host() 1898 do_scsi_scan_host(shost); scsi_scan_host() 1899 scsi_autopm_put_host(shost); scsi_scan_host() 1908 /* scsi_autopm_put_host(shost) is called in scsi_finish_async_scan() */ scsi_scan_host() 1912 void scsi_forget_host(struct Scsi_Host *shost) scsi_forget_host() argument 1918 spin_lock_irqsave(shost->host_lock, flags); scsi_forget_host() 1919 list_for_each_entry(sdev, &shost->__devices, siblings) { scsi_forget_host() 1922 spin_unlock_irqrestore(shost->host_lock, flags); scsi_forget_host() 1926 spin_unlock_irqrestore(shost->host_lock, flags); scsi_forget_host() 1931 * @shost: Host that needs a scsi_device 1946 struct scsi_device *scsi_get_host_dev(struct Scsi_Host *shost) scsi_get_host_dev() argument 1951 mutex_lock(&shost->scan_mutex); scsi_get_host_dev() 1952 if (!scsi_host_scan_allowed(shost)) scsi_get_host_dev() 1954 starget = scsi_alloc_target(&shost->shost_gendev, 0, shost->this_id); scsi_get_host_dev() 1965 mutex_unlock(&shost->scan_mutex); scsi_get_host_dev()
|
H A D | scsi_transport_sas.c | 170 static void sas_smp_request(struct request_queue *q, struct Scsi_Host *shost, sas_smp_request() argument 180 handler = to_sas_internal(shost->transportt)->f->smp_handler; sas_smp_request() 181 ret = handler(shost, rphy, req); sas_smp_request() 203 struct Scsi_Host *shost = dev_to_shost(dev); sas_host_release() local 204 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); sas_host_release() 211 static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) sas_bsg_initialize() argument 220 if (!to_sas_internal(shost->transportt)->f->smp_handler) { sas_bsg_initialize() 221 printk("%s can't handle SMP requests\n", shost->hostt->name); sas_bsg_initialize() 232 dev = &shost->shost_gendev; sas_bsg_initialize() 234 "sas_host%d", shost->host_no); sas_bsg_initialize() 250 to_sas_host_attrs(shost)->q = q; sas_bsg_initialize() 255 q->queuedata = shost; sas_bsg_initialize() 261 static void sas_bsg_remove(struct Scsi_Host *shost, struct sas_rphy *rphy) sas_bsg_remove() argument 268 q = to_sas_host_attrs(shost)->q; sas_bsg_remove() 283 struct Scsi_Host *shost = dev_to_shost(dev); sas_host_setup() local 284 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); sas_host_setup() 292 if (sas_bsg_initialize(shost, NULL)) sas_host_setup() 294 shost->host_no); sas_host_setup() 302 struct Scsi_Host *shost = dev_to_shost(dev); sas_host_remove() local 304 sas_bsg_remove(shost, NULL); sas_host_remove() 315 struct Scsi_Host *shost; sas_host_match() local 320 shost = dev_to_shost(dev); sas_host_match() 322 if (!shost->transportt) sas_host_match() 324 if (shost->transportt->host_attrs.ac.class != sas_host_match() 328 i = to_sas_internal(shost->transportt); sas_host_match() 358 * @shost: Scsi Host that is torn down 363 void sas_remove_host(struct Scsi_Host *shost) sas_remove_host() argument 365 sas_remove_children(&shost->shost_gendev); sas_remove_host() 501 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \ 502 struct sas_internal *i = to_sas_internal(shost->transportt); \ 533 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \ 534 struct sas_internal *i = to_sas_internal(shost->transportt); \ 564 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); do_sas_phy_enable() local 565 struct sas_internal *i = to_sas_internal(shost->transportt); do_sas_phy_enable() 612 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); do_sas_phy_reset() local 613 struct sas_internal *i = to_sas_internal(shost->transportt); do_sas_phy_reset() 661 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_phy_setup() local 662 struct sas_internal *i = to_sas_internal(shost->transportt); sas_phy_setup() 675 struct Scsi_Host *shost; sas_phy_match() local 680 shost = dev_to_shost(dev->parent); sas_phy_match() 682 if (!shost->transportt) sas_phy_match() 684 if (shost->transportt->host_attrs.ac.class != sas_phy_match() 688 i = to_sas_internal(shost->transportt); sas_phy_match() 695 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_phy_release() local 696 struct sas_internal *i = to_sas_internal(shost->transportt); sas_phy_release() 718 struct Scsi_Host *shost = dev_to_shost(parent); sas_phy_alloc() local 734 dev_set_name(&phy->dev, "phy-%d:%d:%d", shost->host_no, sas_phy_alloc() 737 dev_set_name(&phy->dev, "phy-%d:%d", shost->host_no, number); sas_phy_alloc() 841 struct Scsi_Host *shost; sas_port_match() local 846 shost = dev_to_shost(dev->parent); sas_port_match() 848 if (!shost->transportt) sas_port_match() 850 if (shost->transportt->host_attrs.ac.class != sas_port_match() 854 i = to_sas_internal(shost->transportt); sas_port_match() 907 struct Scsi_Host *shost = dev_to_shost(parent); sas_port_alloc() local 926 dev_set_name(&port->dev, "port-%d:%d:%d", shost->host_no, sas_port_alloc() 929 dev_set_name(&port->dev, "port-%d:%d", shost->host_no, sas_port_alloc() 953 struct Scsi_Host *shost = dev_to_shost(parent); sas_port_alloc_num() local 954 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); sas_port_alloc_num() 1220 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); show_sas_rphy_enclosure_identifier() local 1221 struct sas_internal *i = to_sas_internal(shost->transportt); show_sas_rphy_enclosure_identifier() 1247 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); show_sas_rphy_bay_identifier() local 1248 struct sas_internal *i = to_sas_internal(shost->transportt); show_sas_rphy_bay_identifier() 1371 struct Scsi_Host *shost; sas_rphy_match() local 1376 shost = dev_to_shost(dev->parent->parent); sas_rphy_match() 1378 if (!shost->transportt) sas_rphy_match() 1380 if (shost->transportt->host_attrs.ac.class != sas_rphy_match() 1384 i = to_sas_internal(shost->transportt); sas_rphy_match() 1391 struct Scsi_Host *shost; sas_end_dev_match() local 1397 shost = dev_to_shost(dev->parent->parent); sas_end_dev_match() 1400 if (!shost->transportt) sas_end_dev_match() 1402 if (shost->transportt->host_attrs.ac.class != sas_end_dev_match() 1406 i = to_sas_internal(shost->transportt); sas_end_dev_match() 1414 struct Scsi_Host *shost; sas_expander_match() local 1420 shost = dev_to_shost(dev->parent->parent); sas_expander_match() 1423 if (!shost->transportt) sas_expander_match() 1425 if (shost->transportt->host_attrs.ac.class != sas_expander_match() 1429 i = to_sas_internal(shost->transportt); sas_expander_match() 1482 struct Scsi_Host *shost = dev_to_shost(&parent->dev); sas_end_device_alloc() local 1496 shost->host_no, rphy->scsi_target_id, sas_end_device_alloc() 1500 shost->host_no, parent->port_identifier); sas_end_device_alloc() 1522 struct Scsi_Host *shost = dev_to_shost(&parent->dev); sas_expander_alloc() local 1524 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); sas_expander_alloc() 1541 shost->host_no, rdev->rphy.scsi_target_id); sas_expander_alloc() 1559 struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); sas_rphy_add() local 1560 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); sas_rphy_add() 1573 if (sas_bsg_initialize(shost, rphy)) sas_rphy_add() 1617 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); sas_rphy_free() local 1618 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); sas_rphy_free() 1707 static int sas_user_scan(struct Scsi_Host *shost, uint channel, sas_user_scan() argument 1710 struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); sas_user_scan()
|
H A D | scsi_error.c | 60 /* called with shost->host_lock held */ scsi_eh_wakeup() 61 void scsi_eh_wakeup(struct Scsi_Host *shost) scsi_eh_wakeup() argument 63 if (atomic_read(&shost->host_busy) == shost->host_failed) { scsi_eh_wakeup() 64 trace_scsi_eh_wakeup(shost); scsi_eh_wakeup() 65 wake_up_process(shost->ehandler); scsi_eh_wakeup() 66 SCSI_LOG_ERROR_RECOVERY(5, shost_printk(KERN_INFO, shost, scsi_eh_wakeup() 73 * @shost: SCSI host to invoke error handling on. 77 void scsi_schedule_eh(struct Scsi_Host *shost) scsi_schedule_eh() argument 81 spin_lock_irqsave(shost->host_lock, flags); scsi_schedule_eh() 83 if (scsi_host_set_state(shost, SHOST_RECOVERY) == 0 || scsi_schedule_eh() 84 scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY) == 0) { scsi_schedule_eh() 85 shost->host_eh_scheduled++; scsi_schedule_eh() 86 scsi_eh_wakeup(shost); scsi_schedule_eh() 89 spin_unlock_irqrestore(shost->host_lock, flags); scsi_schedule_eh() 93 static int scsi_host_eh_past_deadline(struct Scsi_Host *shost) scsi_host_eh_past_deadline() argument 95 if (!shost->last_reset || shost->eh_deadline == -1) scsi_host_eh_past_deadline() 105 if (time_before(jiffies, shost->last_reset + shost->eh_deadline) && scsi_host_eh_past_deadline() 106 shost->eh_deadline > -1) scsi_host_eh_past_deadline() 182 struct Scsi_Host *shost = sdev->host; scsi_abort_command() local 201 spin_lock_irqsave(shost->host_lock, flags); scsi_abort_command() 202 if (scsi_host_in_recovery(shost)) { scsi_abort_command() 203 spin_unlock_irqrestore(shost->host_lock, flags); scsi_abort_command() 210 if (shost->eh_deadline != -1 && !shost->last_reset) scsi_abort_command() 211 shost->last_reset = jiffies; scsi_abort_command() 212 spin_unlock_irqrestore(shost->host_lock, flags); scsi_abort_command() 217 queue_delayed_work(shost->tmf_work_q, &scmd->abort_work, HZ / 100); scsi_abort_command() 231 struct Scsi_Host *shost = scmd->device->host; scsi_eh_scmd_add() local 235 if (!shost->ehandler) scsi_eh_scmd_add() 238 spin_lock_irqsave(shost->host_lock, flags); scsi_eh_scmd_add() 239 if (scsi_host_set_state(shost, SHOST_RECOVERY)) scsi_eh_scmd_add() 240 if (scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY)) scsi_eh_scmd_add() 243 if (shost->eh_deadline != -1 && !shost->last_reset) scsi_eh_scmd_add() 244 shost->last_reset = jiffies; scsi_eh_scmd_add() 250 list_add_tail(&scmd->eh_entry, &shost->eh_cmd_q); scsi_eh_scmd_add() 251 shost->host_failed++; scsi_eh_scmd_add() 252 scsi_eh_wakeup(shost); scsi_eh_scmd_add() 254 spin_unlock_irqrestore(shost->host_lock, flags); scsi_eh_scmd_add() 327 * @shost: scsi host being recovered. 330 static inline void scsi_eh_prt_fail_stats(struct Scsi_Host *shost, scsi_eh_prt_fail_stats() argument 340 shost_for_each_device(sdev, shost) { list_for_each_entry() 353 shost_printk(KERN_INFO, shost, 363 SCSI_LOG_ERROR_RECOVERY(2, shost_printk(KERN_INFO, shost, 1014 struct Scsi_Host *shost = sdev->host; scsi_send_eh_cmnd() local 1023 shost->eh_action = &done; scsi_send_eh_cmnd() 1027 rtn = shost->hostt->queuecommand(shost, scmd); scsi_send_eh_cmnd() 1043 shost->eh_action = NULL; scsi_send_eh_cmnd() 1141 * This has the unfortunate side effect that if a shost adapter does 1155 struct Scsi_Host *shost; scsi_eh_get_sense() local 1163 shost = scmd->device->host; list_for_each_entry_safe() 1164 if (scsi_host_eh_past_deadline(shost)) { list_for_each_entry_safe() 1309 * no sense to try and abort the command, since as far as the shost 1318 struct Scsi_Host *shost; scsi_eh_abort_cmds() local 1323 shost = scmd->device->host; list_for_each_entry_safe() 1324 if (scsi_host_eh_past_deadline(shost)) { list_for_each_entry_safe() 1335 rtn = scsi_try_to_abort_cmd(shost->hostt, scmd); list_for_each_entry_safe() 1380 * @shost: &scsi host being recovered. 1388 static int scsi_eh_stu(struct Scsi_Host *shost, scsi_eh_stu() argument 1395 shost_for_each_device(sdev, shost) { shost_for_each_device() 1396 if (scsi_host_eh_past_deadline(shost)) { shost_for_each_device() 1443 * @shost: scsi host being recovered. 1453 static int scsi_eh_bus_device_reset(struct Scsi_Host *shost, scsi_eh_bus_device_reset() argument 1461 shost_for_each_device(sdev, shost) { shost_for_each_device() 1462 if (scsi_host_eh_past_deadline(shost)) { shost_for_each_device() 1507 * @shost: scsi host being recovered. 1514 static int scsi_eh_target_reset(struct Scsi_Host *shost, scsi_eh_target_reset() argument 1528 if (scsi_host_eh_past_deadline(shost)) { scsi_eh_target_reset() 1533 shost_printk(KERN_INFO, shost, scsi_eh_target_reset() 1543 shost_printk(KERN_INFO, shost, scsi_eh_target_reset() 1549 shost_printk(KERN_INFO, shost, scsi_eh_target_reset() 1572 * @shost: &scsi host being recovered. 1576 static int scsi_eh_bus_reset(struct Scsi_Host *shost, scsi_eh_bus_reset() argument 1592 for (channel = 0; channel <= shost->max_channel; channel++) { scsi_eh_bus_reset() 1593 if (scsi_host_eh_past_deadline(shost)) { scsi_eh_bus_reset() 1596 shost_printk(KERN_INFO, shost, scsi_eh_bus_reset() 1617 shost_printk(KERN_INFO, shost, 1634 shost_printk(KERN_INFO, shost, 1644 * @shost: host to be reset. 1648 static int scsi_eh_host_reset(struct Scsi_Host *shost, scsi_eh_host_reset() argument 1661 shost_printk(KERN_INFO, shost, scsi_eh_host_reset() 1674 shost_printk(KERN_INFO, shost, 1990 * @shost: Host we are restarting. 1996 static void scsi_restart_operations(struct Scsi_Host *shost) scsi_restart_operations() argument 2006 shost_for_each_device(sdev, shost) { shost_for_each_device() 2019 shost_printk(KERN_INFO, shost, "waking up host to restart\n")); 2021 spin_lock_irqsave(shost->host_lock, flags); 2022 if (scsi_host_set_state(shost, SHOST_RUNNING)) 2023 if (scsi_host_set_state(shost, SHOST_CANCEL)) 2024 BUG_ON(scsi_host_set_state(shost, SHOST_DEL)); 2025 spin_unlock_irqrestore(shost->host_lock, flags); 2027 wake_up(&shost->host_wait); 2035 scsi_run_host_queues(shost); 2045 spin_lock_irqsave(shost->host_lock, flags); 2046 if (shost->host_eh_scheduled) 2047 if (scsi_host_set_state(shost, SHOST_RECOVERY)) 2048 WARN_ON(scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY)); 2049 spin_unlock_irqrestore(shost->host_lock, flags); 2054 * @shost: host to be recovered. 2058 void scsi_eh_ready_devs(struct Scsi_Host *shost, scsi_eh_ready_devs() argument 2062 if (!scsi_eh_stu(shost, work_q, done_q)) scsi_eh_ready_devs() 2063 if (!scsi_eh_bus_device_reset(shost, work_q, done_q)) scsi_eh_ready_devs() 2064 if (!scsi_eh_target_reset(shost, work_q, done_q)) scsi_eh_ready_devs() 2065 if (!scsi_eh_bus_reset(shost, work_q, done_q)) scsi_eh_ready_devs() 2066 if (!scsi_eh_host_reset(shost, work_q, done_q)) scsi_eh_ready_devs() 2110 * @shost: Host to unjam. 2131 static void scsi_unjam_host(struct Scsi_Host *shost) scsi_unjam_host() argument 2137 spin_lock_irqsave(shost->host_lock, flags); scsi_unjam_host() 2138 list_splice_init(&shost->eh_cmd_q, &eh_work_q); scsi_unjam_host() 2139 spin_unlock_irqrestore(shost->host_lock, flags); scsi_unjam_host() 2141 SCSI_LOG_ERROR_RECOVERY(1, scsi_eh_prt_fail_stats(shost, &eh_work_q)); scsi_unjam_host() 2145 scsi_eh_ready_devs(shost, &eh_work_q, &eh_done_q); scsi_unjam_host() 2147 spin_lock_irqsave(shost->host_lock, flags); scsi_unjam_host() 2148 if (shost->eh_deadline != -1) scsi_unjam_host() 2149 shost->last_reset = 0; scsi_unjam_host() 2150 spin_unlock_irqrestore(shost->host_lock, flags); scsi_unjam_host() 2164 struct Scsi_Host *shost = data; scsi_error_handler() local 2183 if ((shost->host_failed == 0 && shost->host_eh_scheduled == 0) || scsi_error_handler() 2184 shost->host_failed != atomic_read(&shost->host_busy)) { scsi_error_handler() 2186 shost_printk(KERN_INFO, shost, scsi_error_handler() 2188 shost->host_no)); scsi_error_handler() 2195 shost_printk(KERN_INFO, shost, scsi_error_handler() 2197 shost->host_no, shost->host_eh_scheduled, scsi_error_handler() 2198 shost->host_failed, scsi_error_handler() 2199 atomic_read(&shost->host_busy))); scsi_error_handler() 2206 if (!shost->eh_noresume && scsi_autopm_get_host(shost) != 0) { scsi_error_handler() 2208 shost_printk(KERN_ERR, shost, scsi_error_handler() 2210 shost->host_no)); scsi_error_handler() 2214 if (shost->transportt->eh_strategy_handler) scsi_error_handler() 2215 shost->transportt->eh_strategy_handler(shost); scsi_error_handler() 2217 scsi_unjam_host(shost); scsi_error_handler() 2226 scsi_restart_operations(shost); scsi_error_handler() 2227 if (!shost->eh_noresume) scsi_error_handler() 2228 scsi_autopm_put_host(shost); scsi_error_handler() 2233 shost_printk(KERN_INFO, shost, scsi_error_handler() 2235 shost->host_no)); scsi_error_handler() 2236 shost->ehandler = NULL; scsi_error_handler() 2246 * Arguments: shost - Host in question 2261 void scsi_report_bus_reset(struct Scsi_Host *shost, int channel) scsi_report_bus_reset() argument 2265 __shost_for_each_device(sdev, shost) { __shost_for_each_device() 2278 * Arguments: shost - Host in question 2294 void scsi_report_device_reset(struct Scsi_Host *shost, int channel, int target) scsi_report_device_reset() argument 2298 __shost_for_each_device(sdev, shost) { __shost_for_each_device() 2320 struct Scsi_Host *shost = dev->host; scsi_ioctl_reset() local 2332 if (scsi_autopm_get_host(shost) < 0) scsi_ioctl_reset() 2352 spin_lock_irqsave(shost->host_lock, flags); scsi_ioctl_reset() 2353 shost->tmf_in_progress = 1; scsi_ioctl_reset() 2354 spin_unlock_irqrestore(shost->host_lock, flags); scsi_ioctl_reset() 2387 spin_lock_irqsave(shost->host_lock, flags); scsi_ioctl_reset() 2388 shost->tmf_in_progress = 0; scsi_ioctl_reset() 2389 spin_unlock_irqrestore(shost->host_lock, flags); scsi_ioctl_reset() 2396 shost_printk(KERN_INFO, shost, scsi_ioctl_reset() 2399 wake_up(&shost->host_wait); scsi_ioctl_reset() 2400 scsi_run_host_queues(shost); scsi_ioctl_reset() 2405 scsi_autopm_put_host(shost); scsi_ioctl_reset()
|
H A D | scsi_sysfs.c | 100 static int scsi_scan(struct Scsi_Host *shost, const char *str) scsi_scan() argument 115 if (shost->transportt->user_scan) scsi_scan() 116 res = shost->transportt->user_scan(shost, channel, id, lun); scsi_scan() 118 res = scsi_scan_host_selected(shost, channel, id, lun, 1); 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); store_scan() local 157 res = scsi_scan(shost, buf); store_scan() 169 struct Scsi_Host *shost = class_to_shost(dev); store_shost_state() local 183 if (scsi_host_set_state(shost, state)) store_shost_state() 191 struct Scsi_Host *shost = class_to_shost(dev); show_shost_state() local 192 const char *name = scsi_host_state_name(shost->shost_state); show_shost_state() 224 struct Scsi_Host *shost = class_to_shost(dev); show_shost_supported_mode() local 225 unsigned int supported_mode = shost->hostt->supported_mode; show_shost_supported_mode() 240 struct Scsi_Host *shost = class_to_shost(dev); show_shost_active_mode() local 242 if (shost->active_mode == MODE_UNKNOWN) show_shost_active_mode() 245 return show_shost_mode(shost->active_mode, buf); show_shost_active_mode() 264 struct Scsi_Host *shost = class_to_shost(dev); store_host_reset() local 265 struct scsi_host_template *sht = shost->hostt; store_host_reset() 274 ret = sht->host_reset(shost, type); store_host_reset() 288 struct Scsi_Host *shost = class_to_shost(dev); show_shost_eh_deadline() local 290 if (shost->eh_deadline == -1) show_shost_eh_deadline() 292 return sprintf(buf, "%u\n", shost->eh_deadline / HZ); show_shost_eh_deadline() 299 struct Scsi_Host *shost = class_to_shost(dev); store_shost_eh_deadline() local 303 if (shost->transportt && store_shost_eh_deadline() 304 (shost->transportt->eh_strategy_handler || store_shost_eh_deadline() 305 !shost->hostt->eh_host_reset_handler)) store_shost_eh_deadline() 318 spin_lock_irqsave(shost->host_lock, flags); store_shost_eh_deadline() 319 if (scsi_host_in_recovery(shost)) store_shost_eh_deadline() 323 shost->eh_deadline = -1; store_shost_eh_deadline() 325 shost->eh_deadline = deadline * HZ; store_shost_eh_deadline() 329 spin_unlock_irqrestore(shost->host_lock, flags); store_shost_eh_deadline() 350 struct Scsi_Host *shost = class_to_shost(dev); show_host_busy() local 351 return snprintf(buf, 20, "%d\n", atomic_read(&shost->host_busy)); show_host_busy() 1110 struct Scsi_Host *shost = sdev->host; scsi_remove_device() local 1112 mutex_lock(&shost->scan_mutex); scsi_remove_device() 1114 mutex_unlock(&shost->scan_mutex); scsi_remove_device() 1120 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); __scsi_remove_target() local 1124 spin_lock_irqsave(shost->host_lock, flags); __scsi_remove_target() 1126 list_for_each_entry(sdev, &shost->__devices, siblings) { __scsi_remove_target() 1131 spin_unlock_irqrestore(shost->host_lock, flags); __scsi_remove_target() 1134 spin_lock_irqsave(shost->host_lock, flags); __scsi_remove_target() 1137 spin_unlock_irqrestore(shost->host_lock, flags); __scsi_remove_target() 1150 struct Scsi_Host *shost = dev_to_shost(dev->parent); scsi_remove_target() local 1157 spin_lock_irqsave(shost->host_lock, flags); scsi_remove_target() 1158 list_for_each_entry(starget, &shost->__targets, siblings) { scsi_remove_target() 1164 spin_unlock_irqrestore(shost->host_lock, flags); scsi_remove_target() 1169 spin_lock_irqsave(shost->host_lock, flags); scsi_remove_target() 1172 spin_unlock_irqrestore(shost->host_lock, flags); scsi_remove_target() 1197 * @shost: scsi host struct to add to subsystem 1199 int scsi_sysfs_add_host(struct Scsi_Host *shost) scsi_sysfs_add_host() argument 1204 if (shost->hostt->shost_attrs) { scsi_sysfs_add_host() 1205 for (i = 0; shost->hostt->shost_attrs[i]; i++) { scsi_sysfs_add_host() 1206 error = device_create_file(&shost->shost_dev, scsi_sysfs_add_host() 1207 shost->hostt->shost_attrs[i]); scsi_sysfs_add_host() 1213 transport_register_device(&shost->shost_gendev); scsi_sysfs_add_host() 1214 transport_configure_device(&shost->shost_gendev); scsi_sysfs_add_host() 1227 struct Scsi_Host *shost = sdev->host; scsi_sysfs_device_initialize() local 1251 !shost->no_scsi2_lun_in_cdb) scsi_sysfs_device_initialize() 1255 spin_lock_irqsave(shost->host_lock, flags); scsi_sysfs_device_initialize() 1257 list_add_tail(&sdev->siblings, &shost->__devices); scsi_sysfs_device_initialize() 1258 spin_unlock_irqrestore(shost->host_lock, flags); scsi_sysfs_device_initialize()
|
H A D | scsi_priv.h | 32 extern int scsi_setup_command_freelist(struct Scsi_Host *shost); 33 extern void scsi_destroy_command_freelist(struct Scsi_Host *shost); 73 extern void scsi_eh_wakeup(struct Scsi_Host *shost); 75 void scsi_eh_ready_devs(struct Scsi_Host *shost, 87 extern void scsi_run_host_queues(struct Scsi_Host *shost); 90 extern int scsi_mq_setup_tags(struct Scsi_Host *shost); 91 extern void scsi_mq_destroy_tags(struct Scsi_Host *shost); 109 # define scsi_proc_host_add(shost) do { } while (0) 110 # define scsi_proc_host_rm(shost) do { } while (0)
|
H A D | scsi_lib.c | 310 struct Scsi_Host *shost = sdev->host; scsi_device_unbusy() local 314 atomic_dec(&shost->host_busy); scsi_device_unbusy() 318 if (unlikely(scsi_host_in_recovery(shost) && scsi_device_unbusy() 319 (shost->host_failed || shost->host_eh_scheduled))) { scsi_device_unbusy() 320 spin_lock_irqsave(shost->host_lock, flags); scsi_device_unbusy() 321 scsi_eh_wakeup(shost); scsi_device_unbusy() 322 spin_unlock_irqrestore(shost->host_lock, flags); scsi_device_unbusy() 345 struct Scsi_Host *shost = current_sdev->host; scsi_single_lun_run() local 350 spin_lock_irqsave(shost->host_lock, flags); scsi_single_lun_run() 352 spin_unlock_irqrestore(shost->host_lock, flags); scsi_single_lun_run() 362 spin_lock_irqsave(shost->host_lock, flags); scsi_single_lun_run() 372 spin_unlock_irqrestore(shost->host_lock, flags); scsi_single_lun_run() 374 spin_lock_irqsave(shost->host_lock, flags); scsi_single_lun_run() 379 spin_unlock_irqrestore(shost->host_lock, flags); scsi_single_lun_run() 402 static inline bool scsi_host_is_busy(struct Scsi_Host *shost) scsi_host_is_busy() argument 404 if (shost->can_queue > 0 && scsi_host_is_busy() 405 atomic_read(&shost->host_busy) >= shost->can_queue) scsi_host_is_busy() 407 if (atomic_read(&shost->host_blocked) > 0) scsi_host_is_busy() 409 if (shost->host_self_blocked) scsi_host_is_busy() 414 static void scsi_starved_list_run(struct Scsi_Host *shost) scsi_starved_list_run() argument 420 spin_lock_irqsave(shost->host_lock, flags); scsi_starved_list_run() 421 list_splice_init(&shost->starved_list, &starved_list); scsi_starved_list_run() 427 * As long as shost is accepting commands and we have scsi_starved_list_run() 436 if (scsi_host_is_busy(shost)) scsi_starved_list_run() 444 &shost->starved_list); scsi_starved_list_run() 461 spin_unlock_irqrestore(shost->host_lock, flags); scsi_starved_list_run() 466 spin_lock_irqsave(shost->host_lock, flags); scsi_starved_list_run() 469 list_splice(&starved_list, &shost->starved_list); scsi_starved_list_run() 470 spin_unlock_irqrestore(shost->host_lock, flags); scsi_starved_list_run() 546 void scsi_run_host_queues(struct Scsi_Host *shost) scsi_run_host_queues() argument 550 shost_for_each_device(sdev, shost) scsi_run_host_queues() 637 struct Scsi_Host *shost = sdev->host; scsi_mq_uninit_cmd() local 643 if (shost->use_cmd_list) { scsi_mq_uninit_cmd() 1445 static inline int scsi_target_queue_ready(struct Scsi_Host *shost, scsi_target_queue_ready() argument 1452 spin_lock_irq(shost->host_lock); scsi_target_queue_ready() 1455 spin_unlock_irq(shost->host_lock); scsi_target_queue_ready() 1459 spin_unlock_irq(shost->host_lock); scsi_target_queue_ready() 1486 spin_lock_irq(shost->host_lock); scsi_target_queue_ready() 1487 list_move_tail(&sdev->starved_entry, &shost->starved_list); scsi_target_queue_ready() 1488 spin_unlock_irq(shost->host_lock); scsi_target_queue_ready() 1496 * scsi_host_queue_ready: if we can send requests to shost, return 1 else 1501 struct Scsi_Host *shost, scsi_host_queue_ready() 1506 if (scsi_host_in_recovery(shost)) scsi_host_queue_ready() 1509 busy = atomic_inc_return(&shost->host_busy) - 1; scsi_host_queue_ready() 1510 if (atomic_read(&shost->host_blocked) > 0) { scsi_host_queue_ready() 1517 if (atomic_dec_return(&shost->host_blocked) > 0) scsi_host_queue_ready() 1521 shost_printk(KERN_INFO, shost, scsi_host_queue_ready() 1525 if (shost->can_queue > 0 && busy >= shost->can_queue) scsi_host_queue_ready() 1527 if (shost->host_self_blocked) scsi_host_queue_ready() 1532 spin_lock_irq(shost->host_lock); scsi_host_queue_ready() 1535 spin_unlock_irq(shost->host_lock); scsi_host_queue_ready() 1541 spin_lock_irq(shost->host_lock); scsi_host_queue_ready() 1543 list_add_tail(&sdev->starved_entry, &shost->starved_list); scsi_host_queue_ready() 1544 spin_unlock_irq(shost->host_lock); scsi_host_queue_ready() 1546 atomic_dec(&shost->host_busy); scsi_host_queue_ready() 1554 * shost/starget/sdev, since the returned value is not guaranteed and 1565 struct Scsi_Host *shost; scsi_lld_busy() local 1570 shost = sdev->host; scsi_lld_busy() 1578 if (scsi_host_in_recovery(shost) || scsi_device_is_busy(sdev)) scsi_lld_busy() 1592 struct Scsi_Host *shost; scsi_kill_request() local 1600 shost = sdev->host; scsi_kill_request() 1611 atomic_inc(&shost->host_busy); scsi_kill_request() 1771 struct Scsi_Host *shost; variable in typeref:struct:Scsi_Host 1779 shost = sdev->host; 1827 spin_lock_irq(shost->host_lock); 1830 &shost->starved_list); 1831 spin_unlock_irq(shost->host_lock); 1835 if (!scsi_target_queue_ready(shost, sdev)) 1838 if (!scsi_host_queue_ready(q, shost, sdev)) 1903 struct Scsi_Host *shost = sdev->host; scsi_mq_prep_fn() local 1924 if (shost->use_cmd_list) { scsi_mq_prep_fn() 1930 sg = (void *)cmd + sizeof(struct scsi_cmnd) + shost->hostt->cmd_size; scsi_mq_prep_fn() 1933 if (scsi_host_get_prot(shost)) { scsi_mq_prep_fn() 1936 shost->sg_tablesize, SCSI_MAX_SG_SEGMENTS) * scsi_mq_prep_fn() 1972 struct Scsi_Host *shost = sdev->host; scsi_queue_rq() local 1987 if (!scsi_target_queue_ready(shost, sdev)) scsi_queue_rq() 1989 if (!scsi_host_queue_ready(q, shost, sdev)) scsi_queue_rq() 2020 atomic_dec(&shost->host_busy); scsi_queue_rq() 2080 static u64 scsi_calculate_bounce_limit(struct Scsi_Host *shost) scsi_calculate_bounce_limit() argument 2085 if (shost->unchecked_isa_dma) scsi_calculate_bounce_limit() 2094 host_dev = scsi_get_device(shost); scsi_calculate_bounce_limit() 2101 static void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q) __scsi_init_queue() argument 2103 struct device *dev = shost->dma_dev; __scsi_init_queue() 2108 blk_queue_max_segments(q, min_t(unsigned short, shost->sg_tablesize, __scsi_init_queue() 2111 if (scsi_host_prot_dma(shost)) { __scsi_init_queue() 2112 shost->sg_prot_tablesize = __scsi_init_queue() 2113 min_not_zero(shost->sg_prot_tablesize, __scsi_init_queue() 2115 BUG_ON(shost->sg_prot_tablesize < shost->sg_tablesize); __scsi_init_queue() 2116 blk_queue_max_integrity_segments(q, shost->sg_prot_tablesize); __scsi_init_queue() 2119 blk_queue_max_hw_sectors(q, shost->max_sectors); __scsi_init_queue() 2120 blk_queue_bounce_limit(q, scsi_calculate_bounce_limit(shost)); __scsi_init_queue() 2121 blk_queue_segment_boundary(q, shost->dma_boundary); __scsi_init_queue() 2122 dma_set_seg_boundary(dev, shost->dma_boundary); __scsi_init_queue() 2126 if (!shost->use_clustering) __scsi_init_queue() 2137 struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost, __scsi_alloc_queue() argument 2145 __scsi_init_queue(shost, q); __scsi_alloc_queue() 2186 int scsi_mq_setup_tags(struct Scsi_Host *shost) scsi_mq_setup_tags() argument 2190 tbl_size = shost->sg_tablesize; scsi_mq_setup_tags() 2194 cmd_size = sizeof(struct scsi_cmnd) + shost->hostt->cmd_size + sgl_size; scsi_mq_setup_tags() 2195 if (scsi_host_get_prot(shost)) scsi_mq_setup_tags() 2198 memset(&shost->tag_set, 0, sizeof(shost->tag_set)); scsi_mq_setup_tags() 2199 shost->tag_set.ops = &scsi_mq_ops; scsi_mq_setup_tags() 2200 shost->tag_set.nr_hw_queues = shost->nr_hw_queues ? : 1; scsi_mq_setup_tags() 2201 shost->tag_set.queue_depth = shost->can_queue; scsi_mq_setup_tags() 2202 shost->tag_set.cmd_size = cmd_size; scsi_mq_setup_tags() 2203 shost->tag_set.numa_node = NUMA_NO_NODE; scsi_mq_setup_tags() 2204 shost->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_SG_MERGE; scsi_mq_setup_tags() 2205 shost->tag_set.flags |= scsi_mq_setup_tags() 2206 BLK_ALLOC_POLICY_TO_MQ_FLAG(shost->hostt->tag_alloc_policy); scsi_mq_setup_tags() 2207 shost->tag_set.driver_data = shost; scsi_mq_setup_tags() 2209 return blk_mq_alloc_tag_set(&shost->tag_set); scsi_mq_setup_tags() 2212 void scsi_mq_destroy_tags(struct Scsi_Host *shost) scsi_mq_destroy_tags() argument 2214 blk_mq_free_tag_set(&shost->tag_set); scsi_mq_destroy_tags() 2223 * Arguments: shost - Host in question 2233 void scsi_block_requests(struct Scsi_Host *shost) scsi_block_requests() argument 2235 shost->host_self_blocked = 1; scsi_block_requests() 2245 * Arguments: shost - Host in question 2259 void scsi_unblock_requests(struct Scsi_Host *shost) scsi_unblock_requests() argument 2261 shost->host_self_blocked = 0; scsi_unblock_requests() 2262 scsi_run_host_queues(shost); scsi_unblock_requests() 1500 scsi_host_queue_ready(struct request_queue *q, struct Scsi_Host *shost, struct scsi_device *sdev) scsi_host_queue_ready() argument
|
H A D | gdth_proc.h | 8 int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd,
|
H A D | scsi_transport_iscsi.c | 742 iscsi_create_iface(struct Scsi_Host *shost, struct iscsi_transport *transport, iscsi_create_iface() argument 758 iface->dev.parent = get_device(&shost->shost_gendev); iscsi_create_iface() 760 dev_set_name(&iface->dev, "ipv4-iface-%u-%u", shost->host_no, iscsi_create_iface() 763 dev_set_name(&iface->dev, "ipv6-iface-%u-%u", shost->host_no, iscsi_create_iface() 1220 * @shost: pointer to host data 1232 iscsi_create_flashnode_sess(struct Scsi_Host *shost, int index, iscsi_create_flashnode_sess() argument 1247 fnode_sess->dev.parent = &shost->shost_gendev; iscsi_create_flashnode_sess() 1249 shost->host_no, index); iscsi_create_flashnode_sess() 1268 * @shost: pointer to host data 1280 iscsi_create_flashnode_conn(struct Scsi_Host *shost, iscsi_create_flashnode_conn() argument 1297 shost->host_no, fnode_sess->target_id); iscsi_create_flashnode_conn() 1354 * @shost: pointer to host data 1364 iscsi_get_flashnode_by_index(struct Scsi_Host *shost, uint32_t idx) iscsi_get_flashnode_by_index() argument 1369 dev = device_find_child(&shost->shost_gendev, &idx, iscsi_get_flashnode_by_index() 1379 * @shost: pointer to host data 1391 iscsi_find_flashnode_sess(struct Scsi_Host *shost, void *data, iscsi_find_flashnode_sess() argument 1394 return device_find_child(&shost->shost_gendev, data, fn); iscsi_find_flashnode_sess() 1457 * @shost: pointer to host data 1462 void iscsi_destroy_all_flashnode(struct Scsi_Host *shost) iscsi_destroy_all_flashnode() argument 1464 device_for_each_child(&shost->shost_gendev, NULL, iscsi_destroy_all_flashnode() 1478 struct Scsi_Host *shost = iscsi_job_to_shost(job); iscsi_bsg_host_dispatch() local 1481 struct iscsi_internal *i = to_iscsi_internal(shost->transportt); iscsi_bsg_host_dispatch() 1495 if ((shost->hostt->vendor_id == 0L) || iscsi_bsg_host_dispatch() 1497 shost->hostt->vendor_id)) { iscsi_bsg_host_dispatch() 1529 * @shost: shost for iscsi_host 1533 iscsi_bsg_host_add(struct Scsi_Host *shost, struct iscsi_cls_host *ihost) iscsi_bsg_host_add() argument 1535 struct device *dev = &shost->shost_gendev; iscsi_bsg_host_add() 1536 struct iscsi_internal *i = to_iscsi_internal(shost->transportt); iscsi_bsg_host_add() 1544 snprintf(bsg_name, sizeof(bsg_name), "iscsi_host%d", shost->host_no); iscsi_bsg_host_add() 1546 q = __scsi_alloc_queue(shost, bsg_request_fn); iscsi_bsg_host_add() 1552 shost_printk(KERN_ERR, shost, "bsg interface failed to " iscsi_bsg_host_add() 1565 struct Scsi_Host *shost = dev_to_shost(dev); iscsi_setup_host() local 1566 struct iscsi_cls_host *ihost = shost->shost_data; iscsi_setup_host() 1572 iscsi_bsg_host_add(shost, ihost); iscsi_setup_host() 1581 struct Scsi_Host *shost = dev_to_shost(dev); iscsi_remove_host() local 1582 struct iscsi_cls_host *ihost = shost->shost_data; iscsi_remove_host() 1729 struct Scsi_Host *shost; iscsi_session_release() local 1731 shost = iscsi_session_to_shost(session); iscsi_session_release() 1732 scsi_host_put(shost); iscsi_session_release() 1753 void iscsi_host_for_each_session(struct Scsi_Host *shost, iscsi_host_for_each_session() argument 1756 device_for_each_child(&shost->shost_gendev, fn, iscsi_host_for_each_session() 1763 * @shost: scsi host 1769 int iscsi_scan_finished(struct Scsi_Host *shost, unsigned long time) iscsi_scan_finished() argument 1771 struct iscsi_cls_host *ihost = shost->shost_data; iscsi_scan_finished() 1790 struct Scsi_Host *shost; iscsi_user_scan_session() local 1802 shost = iscsi_session_to_shost(session); iscsi_user_scan_session() 1803 ihost = shost->shost_data; iscsi_user_scan_session() 1829 static int iscsi_user_scan(struct Scsi_Host *shost, uint channel, iscsi_user_scan() argument 1838 return device_for_each_child(&shost->shost_gendev, &scan_data, iscsi_user_scan() 1846 struct Scsi_Host *shost = iscsi_session_to_shost(session); iscsi_scan_session() local 1847 struct iscsi_cls_host *ihost = shost->shost_data; iscsi_scan_session() 1926 struct Scsi_Host *shost = iscsi_session_to_shost(session); __iscsi_unblock_session() local 1927 struct iscsi_cls_host *ihost = shost->shost_data; __iscsi_unblock_session() 1946 if (shost->hostt->scan_finished) { __iscsi_unblock_session() 1947 if (scsi_queue_work(shost, &session->scan_work)) __iscsi_unblock_session() 2000 struct Scsi_Host *shost = iscsi_session_to_shost(session); __iscsi_unbind_session() local 2001 struct iscsi_cls_host *ihost = shost->shost_data; __iscsi_unbind_session() 2030 iscsi_alloc_session(struct Scsi_Host *shost, struct iscsi_transport *transport, iscsi_alloc_session() argument 2053 scsi_host_get(shost); iscsi_alloc_session() 2054 session->dev.parent = &shost->shost_gendev; iscsi_alloc_session() 2067 struct Scsi_Host *shost = iscsi_session_to_shost(session); iscsi_add_session() local 2073 ihost = shost->shost_data; iscsi_add_session() 2116 * @shost: scsi host 2124 iscsi_create_session(struct Scsi_Host *shost, struct iscsi_transport *transport, iscsi_create_session() argument 2129 session = iscsi_alloc_session(shost, transport, dd_size); iscsi_create_session() 2165 struct Scsi_Host *shost = iscsi_session_to_shost(session); iscsi_remove_session() local 2192 scsi_flush_work(shost); iscsi_remove_session() 2384 int iscsi_offload_mesg(struct Scsi_Host *shost, iscsi_offload_mesg() argument 2406 ev->r.req_path.host_no = shost->host_no; iscsi_offload_mesg() 2409 ev->r.notify_if_down.host_no = shost->host_no; iscsi_offload_mesg() 2643 struct Scsi_Host *shost; iscsi_session_event() local 2652 shost = iscsi_session_to_shost(session); iscsi_session_event() 2669 ev->r.d_session.host_no = shost->host_no; iscsi_session_event() 2673 ev->r.c_session_ret.host_no = shost->host_no; iscsi_session_event() 2677 ev->r.unbind_session.host_no = shost->host_no; iscsi_session_event() 2712 struct Scsi_Host *shost; iscsi_if_create_session() local 2720 shost = iscsi_session_to_shost(session); iscsi_if_create_session() 2721 ev->r.c_session_ret.host_no = shost->host_no; iscsi_if_create_session() 2802 struct Scsi_Host *shost = NULL; iscsi_if_ep_connect() local 2809 shost = scsi_host_lookup(ev->u.ep_connect_through_host.host_no); iscsi_if_ep_connect() 2810 if (!shost) { iscsi_if_ep_connect() 2821 ep = transport->ep_connect(shost, dst_addr, non_blocking); iscsi_if_ep_connect() 2829 if (shost) iscsi_if_ep_connect() 2830 scsi_host_put(shost); iscsi_if_ep_connect() 2892 struct Scsi_Host *shost; iscsi_tgt_dscvr() local 2899 shost = scsi_host_lookup(ev->u.tgt_dscvr.host_no); iscsi_tgt_dscvr() 2900 if (!shost) { iscsi_tgt_dscvr() 2908 err = transport->tgt_dscvr(shost, ev->u.tgt_dscvr.type, iscsi_tgt_dscvr() 2910 scsi_host_put(shost); iscsi_tgt_dscvr() 2919 struct Scsi_Host *shost; iscsi_set_host_param() local 2925 shost = scsi_host_lookup(ev->u.set_host_param.host_no); iscsi_set_host_param() 2926 if (!shost) { iscsi_set_host_param() 2932 err = transport->set_host_param(shost, ev->u.set_host_param.param, iscsi_set_host_param() 2934 scsi_host_put(shost); iscsi_set_host_param() 2941 struct Scsi_Host *shost; iscsi_set_path() local 2948 shost = scsi_host_lookup(ev->u.set_path.host_no); iscsi_set_path() 2949 if (!shost) { iscsi_set_path() 2956 err = transport->set_path(shost, params); iscsi_set_path() 2958 scsi_host_put(shost); iscsi_set_path() 2967 struct Scsi_Host *shost; iscsi_set_iface_params() local 2973 shost = scsi_host_lookup(ev->u.set_iface_params.host_no); iscsi_set_iface_params() 2974 if (!shost) { iscsi_set_iface_params() 2980 err = transport->set_iface_param(shost, data, len); iscsi_set_iface_params() 2981 scsi_host_put(shost); iscsi_set_iface_params() 2988 struct Scsi_Host *shost; iscsi_send_ping() local 2995 shost = scsi_host_lookup(ev->u.iscsi_ping.host_no); iscsi_send_ping() 2996 if (!shost) { iscsi_send_ping() 3003 err = transport->send_ping(shost, ev->u.iscsi_ping.iface_num, iscsi_send_ping() 3008 scsi_host_put(shost); iscsi_send_ping() 3016 struct Scsi_Host *shost = NULL; iscsi_get_chap() local 3036 shost = scsi_host_lookup(ev->u.get_chap.host_no); iscsi_get_chap() 3037 if (!shost) { iscsi_get_chap() 3065 err = transport->get_chap(shost, ev->u.get_chap.chap_tbl_idx, iscsi_get_chap() 3077 scsi_host_put(shost); iscsi_get_chap() 3085 struct Scsi_Host *shost; iscsi_set_chap() local 3091 shost = scsi_host_lookup(ev->u.set_path.host_no); iscsi_set_chap() 3092 if (!shost) { iscsi_set_chap() 3098 err = transport->set_chap(shost, data, len); iscsi_set_chap() 3099 scsi_host_put(shost); iscsi_set_chap() 3106 struct Scsi_Host *shost; iscsi_delete_chap() local 3112 shost = scsi_host_lookup(ev->u.delete_chap.host_no); iscsi_delete_chap() 3113 if (!shost) { iscsi_delete_chap() 3119 err = transport->delete_chap(shost, ev->u.delete_chap.chap_tbl_idx); iscsi_delete_chap() 3120 scsi_host_put(shost); iscsi_delete_chap() 3152 struct Scsi_Host *shost; iscsi_set_flashnode_param() local 3164 shost = scsi_host_lookup(ev->u.set_flashnode.host_no); iscsi_set_flashnode_param() 3165 if (!shost) { iscsi_set_flashnode_param() 3173 fnode_sess = iscsi_get_flashnode_by_index(shost, idx); iscsi_set_flashnode_param() 3195 scsi_host_put(shost); iscsi_set_flashnode_param() 3205 struct Scsi_Host *shost; iscsi_new_flashnode() local 3214 shost = scsi_host_lookup(ev->u.new_flashnode.host_no); iscsi_new_flashnode() 3215 if (!shost) { iscsi_new_flashnode() 3222 index = transport->new_flashnode(shost, data, len); iscsi_new_flashnode() 3230 scsi_host_put(shost); iscsi_new_flashnode() 3239 struct Scsi_Host *shost; iscsi_del_flashnode() local 3249 shost = scsi_host_lookup(ev->u.del_flashnode.host_no); iscsi_del_flashnode() 3250 if (!shost) { iscsi_del_flashnode() 3258 fnode_sess = iscsi_get_flashnode_by_index(shost, idx); iscsi_del_flashnode() 3270 scsi_host_put(shost); iscsi_del_flashnode() 3279 struct Scsi_Host *shost; iscsi_login_flashnode() local 3291 shost = scsi_host_lookup(ev->u.login_flashnode.host_no); iscsi_login_flashnode() 3292 if (!shost) { iscsi_login_flashnode() 3300 fnode_sess = iscsi_get_flashnode_by_index(shost, idx); iscsi_login_flashnode() 3322 scsi_host_put(shost); iscsi_login_flashnode() 3331 struct Scsi_Host *shost; iscsi_logout_flashnode() local 3343 shost = scsi_host_lookup(ev->u.logout_flashnode.host_no); iscsi_logout_flashnode() 3344 if (!shost) { iscsi_logout_flashnode() 3352 fnode_sess = iscsi_get_flashnode_by_index(shost, idx); iscsi_logout_flashnode() 3375 scsi_host_put(shost); iscsi_logout_flashnode() 3384 struct Scsi_Host *shost; iscsi_logout_flashnode_sid() local 3393 shost = scsi_host_lookup(ev->u.logout_flashnode_sid.host_no); iscsi_logout_flashnode_sid() 3394 if (!shost) { iscsi_logout_flashnode_sid() 3412 scsi_host_put(shost); iscsi_logout_flashnode_sid() 3422 struct Scsi_Host *shost = NULL; iscsi_get_host_stats() local 3441 shost = scsi_host_lookup(ev->u.get_host_stats.host_no); iscsi_get_host_stats() 3442 if (!shost) { iscsi_get_host_stats() 3469 err = transport->get_host_stats(shost, buf, host_stats_size); iscsi_get_host_stats() 3484 scsi_host_put(shost); iscsi_get_host_stats() 4234 struct Scsi_Host *shost = transport_class_to_shost(dev); \ 4235 struct iscsi_internal *priv = to_iscsi_internal(shost->transportt); \ 4236 return priv->iscsi_transport->get_host_param(shost, param, buf); \ 4265 struct Scsi_Host *shost = transport_class_to_shost(cdev); iscsi_host_attr_is_visible() local 4266 struct iscsi_internal *priv = to_iscsi_internal(shost->transportt); iscsi_host_attr_is_visible() 4306 char *iscsi_get_port_speed_name(struct Scsi_Host *shost) iscsi_get_port_speed_name() argument 4310 struct iscsi_cls_host *ihost = shost->shost_data; iscsi_get_port_speed_name() 4332 char *iscsi_get_port_state_name(struct Scsi_Host *shost) iscsi_get_port_state_name() argument 4336 struct iscsi_cls_host *ihost = shost->shost_data; iscsi_get_port_state_name() 4353 struct Scsi_Host *shost; iscsi_session_match() local 4360 shost = iscsi_session_to_shost(session); iscsi_session_match() 4361 if (!shost->transportt) iscsi_session_match() 4364 priv = to_iscsi_internal(shost->transportt); iscsi_session_match() 4376 struct Scsi_Host *shost; iscsi_conn_match() local 4384 shost = iscsi_session_to_shost(session); iscsi_conn_match() 4386 if (!shost->transportt) iscsi_conn_match() 4389 priv = to_iscsi_internal(shost->transportt); iscsi_conn_match() 4399 struct Scsi_Host *shost; iscsi_host_match() local 4405 shost = dev_to_shost(dev); iscsi_host_match() 4406 if (!shost->transportt || iscsi_host_match() 4407 shost->transportt->host_attrs.ac.class != &iscsi_host_class.class) iscsi_host_match() 4410 priv = to_iscsi_internal(shost->transportt); iscsi_host_match()
|
H A D | scsi_transport_spi.c | 185 struct Scsi_Host *shost = dev_to_shost(dev); spi_host_setup() local 187 spi_signalling(shost) = SPI_SIGNAL_UNKNOWN; spi_host_setup() 205 struct Scsi_Host *shost; spi_host_match() local 210 shost = dev_to_shost(dev); spi_host_match() 211 if (!shost->transportt || shost->transportt->host_attrs.ac.class spi_host_match() 215 return &shost->transportt->host_attrs.ac == cont; spi_host_match() 316 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \ 318 struct spi_internal *i = to_spi_internal(shost->transportt); \ 333 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \ 334 struct spi_internal *i = to_spi_internal(shost->transportt); \ 351 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \ 352 struct spi_internal *i = to_spi_internal(shost->transportt); \ 495 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); show_spi_transport_period() local 496 struct spi_internal *i = to_spi_internal(shost->transportt); show_spi_transport_period() 511 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); store_spi_transport_period() local 512 struct spi_internal *i = to_spi_internal(shost->transportt); store_spi_transport_period() 539 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); show_spi_transport_min_period() local 540 struct spi_internal *i = to_spi_internal(shost->transportt); show_spi_transport_min_period() 573 struct Scsi_Host *shost = transport_class_to_shost(cdev); show_spi_host_signalling() local 574 struct spi_internal *i = to_spi_internal(shost->transportt); show_spi_host_signalling() 577 i->f->get_signalling(shost); show_spi_host_signalling() 579 return sprintf(buf, "%s\n", spi_signal_to_string(spi_signalling(shost))); show_spi_host_signalling() 585 struct Scsi_Host *shost = transport_class_to_shost(dev); store_spi_host_signalling() local 586 struct spi_internal *i = to_spi_internal(shost->transportt); store_spi_host_signalling() 593 i->f->set_signalling(shost, type); store_spi_host_signalling() 605 struct Scsi_Host *shost = transport_class_to_shost(cdev); show_spi_host_width() local 607 return sprintf(buf, "%s\n", shost->max_id == 16 ? "wide" : "narrow"); show_spi_host_width() 616 struct Scsi_Host *shost = transport_class_to_shost(cdev); show_spi_host_hba_id() local 618 return sprintf(buf, "%d\n", shost->this_id); show_spi_host_hba_id() 868 struct Scsi_Host *shost = sdev->host; spi_dv_device_internal() local 950 i->f->get_signalling(shost); spi_dv_device_internal() 951 if (spi_signalling(shost) == SPI_SIGNAL_SE || spi_dv_device_internal() 952 spi_signalling(shost) == SPI_SIGNAL_HVD || spi_dv_device_internal() 1372 struct Scsi_Host *shost; spi_device_match() local 1379 shost = sdev->host; spi_device_match() 1380 if (!shost->transportt || shost->transportt->host_attrs.ac.class spi_device_match() 1386 i = to_spi_internal(shost->transportt); spi_device_match() 1395 struct Scsi_Host *shost; spi_target_match() local 1402 shost = dev_to_shost(dev->parent); spi_target_match() 1403 if (!shost->transportt || shost->transportt->host_attrs.ac.class spi_target_match() 1407 i = to_spi_internal(shost->transportt); spi_target_match() 1442 struct Scsi_Host *shost = transport_class_to_shost(cdev); spi_host_configure() local 1443 struct spi_internal *si = to_spi_internal(shost->transportt); spi_host_configure() 1465 struct Scsi_Host *shost = transport_class_to_shost(cdev); target_attribute_is_visible() local 1466 struct spi_internal *si = to_spi_internal(shost->transportt); target_attribute_is_visible()
|
H A D | eata.c | 1083 struct Scsi_Host *shost; port_detect() local 1262 sh[j] = shost = scsi_register(tpnt, sizeof(struct hostdata)); port_detect() 1263 if (shost == NULL) { port_detect() 1268 shost->io_port = port_base; port_detect() 1269 shost->unique_id = port_base; port_detect() 1270 shost->n_io_port = REGION_SIZE; port_detect() 1271 shost->dma_channel = dma_channel; port_detect() 1272 shost->irq = irq; port_detect() 1273 shost->sg_tablesize = (ushort) info.scatt_size; port_detect() 1274 shost->this_id = (ushort) info.host_addr[3]; port_detect() 1275 shost->can_queue = (ushort) info.queue_size; port_detect() 1276 shost->cmd_per_lun = MAX_CMD_PER_LUN; port_detect() 1278 ha = (struct hostdata *)shost->hostdata; port_detect() 1288 shost->unchecked_isa_dma = 0; port_detect() 1291 shost->unchecked_isa_dma = 1; port_detect() 1305 if (shost->sg_tablesize > MAX_SGLIST || shost->sg_tablesize < 2) { port_detect() 1307 ha->board_name, shost->sg_tablesize); port_detect() 1308 shost->sg_tablesize = MAX_SGLIST; port_detect() 1312 if (shost->can_queue > MAX_MAILBOXES || shost->can_queue < 2) { port_detect() 1314 ha->board_name, shost->can_queue); port_detect() 1315 shost->can_queue = MAX_MAILBOXES; port_detect() 1320 shost->max_channel = info.max_chan; port_detect() 1323 shost->max_id = info.max_id + 1; port_detect() 1325 if (info.large_sg && shost->sg_tablesize == MAX_SGLIST) port_detect() 1326 shost->sg_tablesize = MAX_LARGE_SGLIST; port_detect() 1331 shost->max_lun = info.max_lun + 1; port_detect() 1339 for (i = 0; i < shost->can_queue; i++) port_detect() 1345 for (i = 0; i < shost->can_queue; i++) { port_detect() 1346 size_t sz = shost->sg_tablesize *sizeof(struct sg_list); port_detect() 1347 gfp_t gfp_mask = (shost->unchecked_isa_dma ? GFP_DMA : 0) | GFP_ATOMIC; port_detect() 1386 (unsigned long)shost->io_port, shost->irq, dma_name, port_detect() 1387 shost->sg_tablesize, shost->can_queue); port_detect() 1389 if (shost->max_id > 8 || shost->max_lun > 8) port_detect() 1392 ha->board_name, shost->max_id, shost->max_lun); port_detect() 1394 for (i = 0; i <= shost->max_channel; i++) port_detect() 1436 eata2x_release(shost); port_detect() 1751 struct Scsi_Host *shost = SCpnt->device->host; eata2x_queuecommand_lck() local 1752 struct hostdata *ha = (struct hostdata *)shost->hostdata; eata2x_queuecommand_lck() 1764 for (k = 0; k < shost->can_queue; k++, i++) { eata2x_queuecommand_lck() 1765 if (i >= shost->can_queue) eata2x_queuecommand_lck() 1773 if (k == shost->can_queue) { eata2x_queuecommand_lck() 1821 if (do_dma(shost->io_port, cpp->cp_dma_addr, SEND_CP_DMA)) { eata2x_queuecommand_lck() 1836 struct Scsi_Host *shost = SCarg->device->host; eata2x_eh_abort() local 1837 struct hostdata *ha = (struct hostdata *)shost->hostdata; eata2x_eh_abort() 1848 if (i >= shost->can_queue) eata2x_eh_abort() 1851 if (wait_on_busy(shost->io_port, MAXLOOP)) { eata2x_eh_abort() 1868 if (inb(shost->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) eata2x_eh_abort() 1904 struct Scsi_Host *shost = SCarg->device->host; eata2x_eh_host_reset() local 1905 struct hostdata *ha = (struct hostdata *)shost->hostdata; eata2x_eh_host_reset() 1909 spin_lock_irq(shost->host_lock); eata2x_eh_host_reset() 1916 spin_unlock_irq(shost->host_lock); eata2x_eh_host_reset() 1920 if (wait_on_busy(shost->io_port, MAXLOOP)) { eata2x_eh_host_reset() 1922 spin_unlock_irq(shost->host_lock); eata2x_eh_host_reset() 1928 for (c = 0; c <= shost->max_channel; c++) eata2x_eh_host_reset() 1929 for (k = 0; k < shost->max_id; k++) { eata2x_eh_host_reset() 1934 for (i = 0; i < shost->can_queue; i++) { eata2x_eh_host_reset() 1975 if (do_dma(shost->io_port, 0, RESET_PIO)) { eata2x_eh_host_reset() 1977 spin_unlock_irq(shost->host_lock); eata2x_eh_host_reset() 1989 spin_unlock_irq(shost->host_lock); eata2x_eh_host_reset() 1996 spin_lock_irq(shost->host_lock); eata2x_eh_host_reset() 2000 for (i = 0; i < shost->can_queue; i++) { eata2x_eh_host_reset() 2045 spin_unlock_irq(shost->host_lock); eata2x_eh_host_reset() 2284 static irqreturn_t ihdlr(struct Scsi_Host *shost) ihdlr() argument 2290 struct hostdata *ha = (struct hostdata *)shost->hostdata; ihdlr() 2291 int irq = shost->irq; ihdlr() 2294 if (!(inb(shost->io_port + REG_AUX_STATUS) & IRQ_ASSERTED)) ihdlr() 2304 if (wait_on_busy(shost->io_port, 20 * MAXLOOP)) { ihdlr() 2305 reg = inb(shost->io_port + REG_STATUS); ihdlr() 2321 reg = inb(shost->io_port + REG_STATUS); ihdlr() 2342 if (spp->cpp_index < 0 || spp->cpp_index >= shost->can_queue) ihdlr() 2347 || spp->cpp_index >= shost->can_queue) ihdlr() 2466 for (c = 0; c <= shost->max_channel; c++) ihdlr() 2467 for (k = 0; k < shost->max_id; k++) ihdlr() 2532 struct Scsi_Host *shost; do_interrupt_handler() local 2540 shost = sh[j]; do_interrupt_handler() 2542 spin_lock_irqsave(shost->host_lock, spin_flags); do_interrupt_handler() 2543 ret = ihdlr(shost); do_interrupt_handler() 2544 spin_unlock_irqrestore(shost->host_lock, spin_flags); do_interrupt_handler() 2548 static int eata2x_release(struct Scsi_Host *shost) eata2x_release() argument 2550 struct hostdata *ha = (struct hostdata *)shost->hostdata; eata2x_release() 2553 for (i = 0; i < shost->can_queue; i++) eata2x_release() 2556 for (i = 0; i < shost->can_queue; i++) eata2x_release() 2564 free_irq(shost->irq, &sha[ha->board_number]); eata2x_release() 2566 if (shost->dma_channel != NO_DMA) eata2x_release() 2567 free_dma(shost->dma_channel); eata2x_release() 2569 release_region(shost->io_port, shost->n_io_port); eata2x_release() 2570 scsi_unregister(shost); eata2x_release()
|
H A D | virtio_scsi.c | 325 struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); virtscsi_handle_transport_reset() local 331 scsi_add_device(shost, 0, target, lun); virtscsi_handle_transport_reset() 334 sdev = scsi_device_lookup(shost, 0, target, lun); virtscsi_handle_transport_reset() 340 shost->host_no, target, lun); virtscsi_handle_transport_reset() 352 struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); virtscsi_handle_param_change() local 358 sdev = scsi_device_lookup(shost, 0, target, lun); virtscsi_handle_param_change() 361 shost->host_no, target, lun); virtscsi_handle_param_change() 532 struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); virtscsi_queuecommand() local 536 BUG_ON(scsi_sg_count(sc) > shost->sg_tablesize); virtscsi_queuecommand() 700 struct Scsi_Host *shost = sdev->host; virtscsi_change_queue_depth() local 701 int max_depth = shost->cmd_per_lun; virtscsi_change_queue_depth() 945 struct Scsi_Host *shost; virtscsi_probe() local 969 shost = scsi_host_alloc(hostt, virtscsi_probe() 971 if (!shost) virtscsi_probe() 975 shost->sg_tablesize = sg_elems; virtscsi_probe() 976 vscsi = shost_priv(shost); virtscsi_probe() 979 vdev->priv = shost; virtscsi_probe() 993 shost->cmd_per_lun = min_t(u32, cmd_per_lun, shost->can_queue); virtscsi_probe() 994 shost->max_sectors = virtscsi_config_get(vdev, max_sectors) ?: 0xFFFF; virtscsi_probe() 999 shost->max_lun = virtscsi_config_get(vdev, max_lun) + 1 + 0x4000; virtscsi_probe() 1000 shost->max_id = num_targets; virtscsi_probe() 1001 shost->max_channel = 0; virtscsi_probe() 1002 shost->max_cmd_len = VIRTIO_SCSI_CDB_SIZE; virtscsi_probe() 1003 shost->nr_hw_queues = num_queues; virtscsi_probe() 1010 scsi_host_set_prot(shost, host_prot); virtscsi_probe() 1011 scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC); virtscsi_probe() 1014 err = scsi_add_host(shost, &vdev->dev); virtscsi_probe() 1023 scsi_scan_host(shost); virtscsi_probe() 1029 scsi_host_put(shost); virtscsi_probe() 1035 struct Scsi_Host *shost = virtio_scsi_host(vdev); virtscsi_remove() local 1036 struct virtio_scsi *vscsi = shost_priv(shost); virtscsi_remove() 1041 scsi_remove_host(shost); virtscsi_remove() 1046 scsi_host_put(shost); virtscsi_remove()
|
H A D | dtc.c | 427 static int dtc_release(struct Scsi_Host *shost) dtc_release() argument 430 NCR5380_setup(shost); dtc_release() 431 if (shost->irq != NO_IRQ) dtc_release() 432 free_irq(shost->irq, shost); dtc_release() 433 NCR5380_exit(shost); dtc_release() 434 if (shost->io_port && shost->n_io_port) dtc_release() 435 release_region(shost->io_port, shost->n_io_port); dtc_release() 436 scsi_unregister(shost); dtc_release()
|
H A D | t128.c | 255 static int t128_release(struct Scsi_Host *shost) t128_release() argument 258 NCR5380_setup(shost); t128_release() 259 if (shost->irq != NO_IRQ) t128_release() 260 free_irq(shost->irq, shost); t128_release() 261 NCR5380_exit(shost); t128_release() 262 if (shost->io_port && shost->n_io_port) t128_release() 263 release_region(shost->io_port, shost->n_io_port); t128_release() 264 scsi_unregister(shost); t128_release()
|
H A D | a100u2w.c | 1059 struct Scsi_Host *shost = (struct Scsi_Host *)devid; inia100_intr() local 1060 struct orc_host *host = (struct orc_host *)shost->hostdata; inia100_intr() 1064 spin_lock_irqsave(shost->host_lock, flags); inia100_intr() 1066 spin_unlock_irqrestore(shost->host_lock, flags); inia100_intr() 1088 struct Scsi_Host *shost; inia100_probe_one() local 1116 shost = scsi_host_alloc(&inia100_template, sizeof(struct orc_host)); inia100_probe_one() 1117 if (!shost) inia100_probe_one() 1120 host = (struct orc_host *)shost->hostdata; inia100_probe_one() 1150 shost->io_port = host->base; inia100_probe_one() 1151 shost->n_io_port = 0xff; inia100_probe_one() 1152 shost->can_queue = ORC_MAXQUEUE; inia100_probe_one() 1153 shost->unique_id = shost->io_port; inia100_probe_one() 1154 shost->max_id = host->max_targets; inia100_probe_one() 1155 shost->max_lun = 16; inia100_probe_one() 1156 shost->irq = pdev->irq; inia100_probe_one() 1157 shost->this_id = host->scsi_id; /* Assign HCS index */ inia100_probe_one() 1158 shost->sg_tablesize = TOTAL_SG_ENTRY; inia100_probe_one() 1162 "inia100", shost); inia100_probe_one() 1169 pci_set_drvdata(pdev, shost); inia100_probe_one() 1171 error = scsi_add_host(shost, &pdev->dev); inia100_probe_one() 1175 scsi_scan_host(shost); inia100_probe_one() 1179 free_irq(shost->irq, shost); inia100_probe_one() 1187 scsi_host_put(shost); inia100_probe_one() 1198 struct Scsi_Host *shost = pci_get_drvdata(pdev); inia100_remove_one() local 1199 struct orc_host *host = (struct orc_host *)shost->hostdata; inia100_remove_one() 1201 scsi_remove_host(shost); inia100_remove_one() 1203 free_irq(shost->irq, shost); inia100_remove_one() 1208 release_region(shost->io_port, 256); inia100_remove_one() 1210 scsi_host_put(shost); inia100_remove_one()
|
H A D | am53c974.c | 405 struct Scsi_Host *shost; pci_esp_probe_one() local 420 shost = scsi_host_alloc(hostt, sizeof(struct esp)); pci_esp_probe_one() 421 if (!shost) { pci_esp_probe_one() 436 esp = shost_priv(shost); pci_esp_probe_one() 437 esp->host = shost; pci_esp_probe_one() 491 shost->this_id = esp->scsi_id; pci_esp_probe_one() 492 shost->max_id = 8; pci_esp_probe_one() 493 shost->irq = pdev->irq; pci_esp_probe_one() 494 shost->io_port = pci_resource_start(pdev, 0); pci_esp_probe_one() 495 shost->n_io_port = pci_resource_len(pdev, 0); pci_esp_probe_one() 496 shost->unique_id = shost->io_port; pci_esp_probe_one() 520 scsi_host_put(shost); pci_esp_probe_one()
|
H A D | pas16.c | 559 static int pas16_release(struct Scsi_Host *shost) pas16_release() argument 561 if (shost->irq != NO_IRQ) pas16_release() 562 free_irq(shost->irq, shost); pas16_release() 563 NCR5380_exit(shost); pas16_release() 564 if (shost->io_port && shost->n_io_port) pas16_release() 565 release_region(shost->io_port, shost->n_io_port); pas16_release() 566 scsi_unregister(shost); pas16_release()
|
H A D | iscsi_tcp.c | 754 static int iscsi_sw_tcp_host_get_param(struct Scsi_Host *shost, iscsi_sw_tcp_host_get_param() argument 757 struct iscsi_sw_tcp_host *tcp_sw_host = iscsi_host_priv(shost); iscsi_sw_tcp_host_get_param() 793 return iscsi_host_get_param(shost, param, buf); iscsi_sw_tcp_host_get_param() 825 struct Scsi_Host *shost; iscsi_sw_tcp_session_create() local 832 shost = iscsi_host_alloc(&iscsi_sw_tcp_sht, iscsi_sw_tcp_session_create() 834 if (!shost) iscsi_sw_tcp_session_create() 836 shost->transportt = iscsi_sw_tcp_scsi_transport; iscsi_sw_tcp_session_create() 837 shost->cmd_per_lun = qdepth; iscsi_sw_tcp_session_create() 838 shost->max_lun = iscsi_max_lun; iscsi_sw_tcp_session_create() 839 shost->max_id = 0; iscsi_sw_tcp_session_create() 840 shost->max_channel = 0; iscsi_sw_tcp_session_create() 841 shost->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE; iscsi_sw_tcp_session_create() 843 if (iscsi_host_add(shost, NULL)) iscsi_sw_tcp_session_create() 846 cls_session = iscsi_session_setup(&iscsi_sw_tcp_transport, shost, iscsi_sw_tcp_session_create() 854 tcp_sw_host = iscsi_host_priv(shost); iscsi_sw_tcp_session_create() 857 shost->can_queue = session->scsi_cmds_max; iscsi_sw_tcp_session_create() 865 iscsi_host_remove(shost); iscsi_sw_tcp_session_create() 867 iscsi_host_free(shost); iscsi_sw_tcp_session_create() 873 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); iscsi_sw_tcp_session_destroy() local 878 iscsi_host_remove(shost); iscsi_sw_tcp_session_destroy() 879 iscsi_host_free(shost); iscsi_sw_tcp_session_destroy()
|
H A D | advansys.c | 2194 #define ASC_STATS(shost, counter) ASC_STATS_ADD(shost, counter, 1) 2196 #define ASC_STATS_ADD(shost, counter, count) 2198 #define ASC_STATS_ADD(shost, counter, count) \ 2199 (((struct asc_board *) shost_priv(shost))->asc_stats.counter += (count)) 2786 static const char *advansys_info(struct Scsi_Host *shost) advansys_info() argument 2789 struct asc_board *boardp = shost_priv(shost); advansys_info() 2808 (ulong)shost->io_port, advansys_info() 2809 (ulong)shost->io_port + ASC_IOADR_GAP - 1, advansys_info() 2810 boardp->irq, shost->dma_channel); advansys_info() 2825 shost_printk(KERN_ERR, shost, "unknown bus " advansys_info() 2830 ASC_VERSION, busname, (ulong)shost->io_port, advansys_info() 2831 (ulong)shost->io_port + ASC_IOADR_GAP - 1, advansys_info() 2867 static void asc_prt_board_devices(struct seq_file *m, struct Scsi_Host *shost) asc_prt_board_devices() argument 2869 struct asc_board *boardp = shost_priv(shost); asc_prt_board_devices() 2875 shost->host_no); asc_prt_board_devices() 2894 static void asc_prt_adv_bios(struct seq_file *m, struct Scsi_Host *shost) asc_prt_adv_bios() argument 2896 struct asc_board *boardp = shost_priv(shost); asc_prt_adv_bios() 3033 static void asc_prt_asc_board_eeprom(struct seq_file *m, struct Scsi_Host *shost) asc_prt_asc_board_eeprom() argument 3035 struct asc_board *boardp = shost_priv(shost); asc_prt_asc_board_eeprom() 3049 shost->host_no); asc_prt_asc_board_eeprom() 3107 static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost) asc_prt_adv_board_eeprom() argument 3109 struct asc_board *boardp = shost_priv(shost); asc_prt_adv_board_eeprom() 3132 shost->host_no); asc_prt_adv_board_eeprom() 3328 static void asc_prt_driver_conf(struct seq_file *m, struct Scsi_Host *shost) asc_prt_driver_conf() argument 3330 struct asc_board *boardp = shost_priv(shost); asc_prt_driver_conf() 3335 shost->host_no); asc_prt_driver_conf() 3339 atomic_read(&shost->host_busy), shost->max_id, asc_prt_driver_conf() 3340 shost->max_lun, shost->max_channel); asc_prt_driver_conf() 3344 shost->unique_id, shost->can_queue, shost->this_id, asc_prt_driver_conf() 3345 shost->sg_tablesize, shost->cmd_per_lun); asc_prt_driver_conf() 3349 shost->unchecked_isa_dma, shost->use_clustering); asc_prt_driver_conf() 3356 seq_printf(m, " io_port 0x%lx\n", shost->io_port); asc_prt_driver_conf() 3370 static void asc_prt_asc_board_info(struct seq_file *m, struct Scsi_Host *shost) asc_prt_asc_board_info() argument 3372 struct asc_board *boardp = shost_priv(shost); asc_prt_asc_board_info() 3385 shost->host_no); asc_prt_asc_board_info() 3500 static void asc_prt_adv_board_info(struct seq_file *m, struct Scsi_Host *shost) asc_prt_adv_board_info() argument 3502 struct asc_board *boardp = shost_priv(shost); asc_prt_adv_board_info() 3523 shost->host_no); asc_prt_adv_board_info() 3686 static void asc_prt_board_stats(struct seq_file *m, struct Scsi_Host *shost) asc_prt_board_stats() argument 3688 struct asc_board *boardp = shost_priv(shost); asc_prt_board_stats() 3693 shost->host_no); asc_prt_board_stats() 3740 * shost: Scsi_Host 3746 advansys_show_info(struct seq_file *m, struct Scsi_Host *shost) advansys_show_info() argument 3748 struct asc_board *boardp = shost_priv(shost); advansys_show_info() 3762 seq_printf(m, "%s\n", (char *)advansys_info(shost)); advansys_show_info() 3767 asc_prt_adv_bios(m, shost); advansys_show_info() 3772 asc_prt_board_devices(m, shost); advansys_show_info() 3778 asc_prt_asc_board_eeprom(m, shost); advansys_show_info() 3780 asc_prt_adv_board_eeprom(m, shost); advansys_show_info() 3785 asc_prt_driver_conf(m, shost); advansys_show_info() 3791 asc_prt_board_stats(m, shost); advansys_show_info() 3799 asc_prt_asc_board_info(m, shost); advansys_show_info() 3801 asc_prt_adv_board_info(m, shost); advansys_show_info() 6141 struct Scsi_Host *shost; adv_isr_callback() local 6177 shost = scp->device->host; adv_isr_callback() 6178 ASC_STATS(shost, callback); adv_isr_callback() 6179 ASC_DBG(1, "shost 0x%p\n", shost); adv_isr_callback() 6181 boardp = shost_priv(shost); adv_isr_callback() 7098 struct Scsi_Host *shost; asc_isr_callback() local 7109 shost = scp->device->host; asc_isr_callback() 7110 ASC_STATS(shost, callback); asc_isr_callback() 7111 ASC_DBG(1, "shost 0x%p\n", shost); asc_isr_callback() 7113 boardp = shost_priv(shost); asc_isr_callback() 7464 struct Scsi_Host *shost = scp->device->host; advansys_reset() local 7465 struct asc_board *boardp = shost_priv(shost); advansys_reset() 7472 ASC_STATS(shost, reset); advansys_reset() 7498 spin_lock_irqsave(shost->host_lock, flags); advansys_reset() 7521 spin_lock_irqsave(shost->host_lock, flags); advansys_reset() 7527 spin_unlock_irqrestore(shost->host_lock, flags); advansys_reset() 7584 struct Scsi_Host *shost = dev_id; advansys_interrupt() local 7585 struct asc_board *boardp = shost_priv(shost); advansys_interrupt() 7589 spin_lock(shost->host_lock); advansys_interrupt() 7591 if (AscIsIntPending(shost->io_port)) { advansys_interrupt() 7593 ASC_STATS(shost, interrupt); advansys_interrupt() 7601 ASC_STATS(shost, interrupt); advansys_interrupt() 7604 spin_unlock(shost->host_lock); advansys_interrupt() 8988 struct Scsi_Host *shost = scp->device->host; advansys_queuecommand_lck() local 8991 ASC_STATS(shost, queuecommand); advansys_queuecommand_lck() 9701 static int AscInitGetConfig(struct Scsi_Host *shost) AscInitGetConfig() argument 9703 struct asc_board *board = shost_priv(shost); AscInitGetConfig() 9725 shost_printk(KERN_WARNING, shost, "I/O port address " AscInitGetConfig() 9729 shost_printk(KERN_WARNING, shost, "I/O port increment switch " AscInitGetConfig() 9733 shost_printk(KERN_WARNING, shost, "EEPROM checksum error\n"); AscInitGetConfig() 9736 shost_printk(KERN_WARNING, shost, "IRQ modified\n"); AscInitGetConfig() 9739 shost_printk(KERN_WARNING, shost, "tag queuing enabled w/o " AscInitGetConfig() 9743 shost_printk(KERN_WARNING, shost, "unknown warning: 0x%x\n", AscInitGetConfig() 9749 shost_printk(KERN_ERR, shost, "error 0x%x at init_state " AscInitGetConfig() 9755 static int AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) AscInitSetConfig() argument 9757 struct asc_board *board = shost_priv(shost); AscInitSetConfig() 9823 shost_printk(KERN_WARNING, shost, "I/O port address " AscInitSetConfig() 9827 shost_printk(KERN_WARNING, shost, "I/O port increment switch " AscInitSetConfig() 9831 shost_printk(KERN_WARNING, shost, "EEPROM checksum error\n"); AscInitSetConfig() 9834 shost_printk(KERN_WARNING, shost, "IRQ modified\n"); AscInitSetConfig() 9837 shost_printk(KERN_WARNING, shost, "tag queuing w/o " AscInitSetConfig() 9841 shost_printk(KERN_WARNING, shost, "unknown warning: 0x%x\n", AscInitSetConfig() 9847 shost_printk(KERN_ERR, shost, "error 0x%x at init_state " AscInitSetConfig() 11147 static int AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) AdvInitGetConfig() argument 11149 struct asc_board *board = shost_priv(shost); AdvInitGetConfig() 11217 shost_printk(KERN_WARNING, shost, "warning: 0x%x\n", warn_code); AdvInitGetConfig() 11220 shost_printk(KERN_ERR, shost, "error code 0x%x\n", AdvInitGetConfig() 11254 static int advansys_wide_init_chip(struct Scsi_Host *shost) advansys_wide_init_chip() argument 11256 struct asc_board *board = shost_priv(shost); advansys_wide_init_chip() 11340 shost_printk(KERN_WARNING, shost, "error: warn 0x%x, error " advansys_wide_init_chip() 11347 shost_printk(KERN_ERR, shost, "error: kmalloc() failed\n"); advansys_wide_init_chip() 11367 static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop, advansys_board_found() argument 11371 struct asc_board *boardp = shost_priv(shost); advansys_board_found() 11404 shost_printk(KERN_ERR, shost, "ioremap(%lx, %d) " advansys_board_found() 11434 shost->unchecked_isa_dma = TRUE; advansys_board_found() 11438 shost->unchecked_isa_dma = FALSE; advansys_board_found() 11442 shost->unchecked_isa_dma = FALSE; advansys_board_found() 11448 shost->unchecked_isa_dma = FALSE; advansys_board_found() 11453 shost_printk(KERN_ERR, shost, "unknown adapter type: " advansys_board_found() 11455 shost->unchecked_isa_dma = TRUE; advansys_board_found() 11467 ret = AscInitGetConfig(shost) ? -ENODEV : 0; advansys_board_found() 11474 shost->unchecked_isa_dma = FALSE; advansys_board_found() 11478 ret = AdvInitGetConfig(pdev, shost) ? -ENODEV : 0; advansys_board_found() 11526 ret = AscInitSetConfig(pdev, shost) ? -ENODEV : 0; advansys_board_found() 11629 shost->max_channel = 0; advansys_board_found() 11631 shost->max_id = ASC_MAX_TID + 1; advansys_board_found() 11632 shost->max_lun = ASC_MAX_LUN + 1; advansys_board_found() 11633 shost->max_cmd_len = ASC_MAX_CDB_LEN; advansys_board_found() 11635 shost->io_port = asc_dvc_varp->iop_base; advansys_board_found() 11637 shost->this_id = asc_dvc_varp->cfg->chip_scsi_id; advansys_board_found() 11640 shost->can_queue = asc_dvc_varp->max_total_qng; advansys_board_found() 11642 shost->max_id = ADV_MAX_TID + 1; advansys_board_found() 11643 shost->max_lun = ADV_MAX_LUN + 1; advansys_board_found() 11644 shost->max_cmd_len = ADV_MAX_CDB_LEN; advansys_board_found() 11652 shost->io_port = iop; advansys_board_found() 11654 shost->this_id = adv_dvc_varp->chip_scsi_id; advansys_board_found() 11657 shost->can_queue = adv_dvc_varp->max_host_qng; advansys_board_found() 11673 shost->cmd_per_lun = 1; advansys_board_found() 11675 shost->cmd_per_lun = 0; advansys_board_found() 11689 shost->sg_tablesize = advansys_board_found() 11693 shost->sg_tablesize = ADV_MAX_SG_LIST; advansys_board_found() 11702 if (shost->sg_tablesize > SG_ALL) { advansys_board_found() 11703 shost->sg_tablesize = SG_ALL; advansys_board_found() 11706 ASC_DBG(1, "sg_tablesize: %d\n", shost->sg_tablesize); advansys_board_found() 11710 shost->base = AscGetChipBiosAddress(asc_dvc_varp->iop_base, advansys_board_found() 11741 shost->base = ((ulong)boardp->bios_codeseg << 4); advansys_board_found() 11743 shost->base = 0; advansys_board_found() 11752 shost->dma_channel = NO_ISA_DMA; /* Default to no ISA DMA. */ advansys_board_found() 11757 shost->dma_channel = asc_dvc_varp->cfg->isa_dma_channel; advansys_board_found() 11758 ret = request_dma(shost->dma_channel, DRV_NAME); advansys_board_found() 11760 shost_printk(KERN_ERR, shost, "request_dma() " advansys_board_found() 11762 shost->dma_channel, ret); advansys_board_found() 11765 AscEnableIsaDma(shost->dma_channel); advansys_board_found() 11771 ASC_DBG(2, "request_irq(%d, %p)\n", boardp->irq, shost); advansys_board_found() 11774 DRV_NAME, shost); advansys_board_found() 11778 shost_printk(KERN_ERR, shost, "request_irq(): IRQ 0x%x " advansys_board_found() 11781 shost_printk(KERN_ERR, shost, "request_irq(): IRQ 0x%x " advansys_board_found() 11784 shost_printk(KERN_ERR, shost, "request_irq(): IRQ 0x%x " advansys_board_found() 11804 shost_printk(KERN_ERR, shost, "error: init_state 0x%x, " advansys_board_found() 11814 if (advansys_wide_init_chip(shost)) { advansys_board_found() 11820 ASC_DBG_PRT_SCSI_HOST(2, shost); advansys_board_found() 11822 ret = scsi_add_host(shost, boardp->dev); advansys_board_found() 11826 scsi_scan_host(shost); advansys_board_found() 11838 free_irq(boardp->irq, shost); advansys_board_found() 11841 if (shost->dma_channel != NO_ISA_DMA) advansys_board_found() 11842 free_dma(shost->dma_channel); advansys_board_found() 11856 static int advansys_release(struct Scsi_Host *shost) advansys_release() argument 11858 struct asc_board *board = shost_priv(shost); advansys_release() 11860 scsi_remove_host(shost); advansys_release() 11861 free_irq(board->irq, shost); advansys_release() 11863 if (shost->dma_channel != NO_ISA_DMA) { advansys_release() 11865 free_dma(shost->dma_channel); advansys_release() 11877 scsi_host_put(shost); advansys_release() 11909 struct Scsi_Host *shost; advansys_isa_probe() local 11923 shost = scsi_host_alloc(&advansys_template, sizeof(*board)); advansys_isa_probe() 11924 if (!shost) advansys_isa_probe() 11927 board = shost_priv(shost); advansys_isa_probe() 11931 err = advansys_board_found(shost, iop_base, ASC_IS_ISA); advansys_isa_probe() 11935 dev_set_drvdata(dev, shost); advansys_isa_probe() 11939 scsi_host_put(shost); advansys_isa_probe() 11986 struct Scsi_Host *shost; advansys_vlb_probe() local 12005 shost = scsi_host_alloc(&advansys_template, sizeof(*board)); advansys_vlb_probe() 12006 if (!shost) advansys_vlb_probe() 12009 board = shost_priv(shost); advansys_vlb_probe() 12013 err = advansys_board_found(shost, iop_base, ASC_IS_VL); advansys_vlb_probe() 12017 dev_set_drvdata(dev, shost); advansys_vlb_probe() 12021 scsi_host_put(shost); advansys_vlb_probe() 12088 struct Scsi_Host *shost; advansys_eisa_probe() local 12112 shost = scsi_host_alloc(&advansys_template, sizeof(*board)); advansys_eisa_probe() 12113 if (!shost) advansys_eisa_probe() 12116 board = shost_priv(shost); advansys_eisa_probe() 12120 err = advansys_board_found(shost, ioport, ASC_IS_EISA); advansys_eisa_probe() 12122 data->host[i] = shost; advansys_eisa_probe() 12126 scsi_host_put(shost); advansys_eisa_probe() 12152 struct Scsi_Host *shost = data->host[i]; advansys_eisa_remove() local 12153 if (!shost) advansys_eisa_remove() 12155 ioport = shost->io_port; advansys_eisa_remove() 12156 advansys_release(shost); advansys_eisa_remove() 12209 struct Scsi_Host *shost; advansys_pci_probe() local 12228 shost = scsi_host_alloc(&advansys_template, sizeof(*board)); advansys_pci_probe() 12229 if (!shost) advansys_pci_probe() 12232 board = shost_priv(shost); advansys_pci_probe() 12242 err = advansys_board_found(shost, ioport, ASC_IS_PCI); advansys_pci_probe() 12246 pci_set_drvdata(pdev, shost); advansys_pci_probe() 12250 scsi_host_put(shost); advansys_pci_probe()
|
H A D | scsi_pm.c | 316 int scsi_autopm_get_host(struct Scsi_Host *shost) scsi_autopm_get_host() argument 320 err = pm_runtime_get_sync(&shost->shost_gendev); scsi_autopm_get_host() 322 pm_runtime_put_sync(&shost->shost_gendev); scsi_autopm_get_host() 328 void scsi_autopm_put_host(struct Scsi_Host *shost) scsi_autopm_put_host() argument 330 pm_runtime_put_sync(&shost->shost_gendev); scsi_autopm_put_host()
|
H A D | libiscsi.c | 90 struct Scsi_Host *shost = conn->session->host; iscsi_conn_queue_work() local 91 struct iscsi_host *ihost = shost_priv(shost); iscsi_conn_queue_work() 1902 struct Scsi_Host *shost = conn->session->host; iscsi_suspend_tx() local 1903 struct iscsi_host *ihost = shost_priv(shost); iscsi_suspend_tx() 2575 * @shost: scsi host 2581 int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev) iscsi_host_add() argument 2583 if (!shost->can_queue) iscsi_host_add() 2584 shost->can_queue = ISCSI_DEF_XMIT_CMDS_MAX; iscsi_host_add() 2586 if (!shost->cmd_per_lun) iscsi_host_add() 2587 shost->cmd_per_lun = ISCSI_DEF_CMD_PER_LUN; iscsi_host_add() 2589 if (!shost->transportt->eh_timed_out) iscsi_host_add() 2590 shost->transportt->eh_timed_out = iscsi_eh_cmd_timed_out; iscsi_host_add() 2591 return scsi_add_host(shost, pdev); iscsi_host_add() 2607 struct Scsi_Host *shost; iscsi_host_alloc() local 2610 shost = scsi_host_alloc(sht, sizeof(struct iscsi_host) + dd_data_size); iscsi_host_alloc() 2611 if (!shost) iscsi_host_alloc() 2613 ihost = shost_priv(shost); iscsi_host_alloc() 2617 "iscsi_q_%d", shost->host_no); iscsi_host_alloc() 2627 return shost; iscsi_host_alloc() 2630 scsi_host_put(shost); iscsi_host_alloc() 2642 * @shost: scsi host 2647 void iscsi_host_remove(struct Scsi_Host *shost) iscsi_host_remove() argument 2649 struct iscsi_host *ihost = shost_priv(shost); iscsi_host_remove() 2656 iscsi_host_for_each_session(shost, iscsi_notify_host_removed); iscsi_host_remove() 2662 scsi_remove_host(shost); iscsi_host_remove() 2668 void iscsi_host_free(struct Scsi_Host *shost) iscsi_host_free() argument 2670 struct iscsi_host *ihost = shost_priv(shost); iscsi_host_free() 2675 scsi_host_put(shost); iscsi_host_free() 2679 static void iscsi_host_dec_session_cnt(struct Scsi_Host *shost) iscsi_host_dec_session_cnt() argument 2681 struct iscsi_host *ihost = shost_priv(shost); iscsi_host_dec_session_cnt() 2684 shost = scsi_host_get(shost); iscsi_host_dec_session_cnt() 2685 if (!shost) { iscsi_host_dec_session_cnt() 2697 scsi_host_put(shost); iscsi_host_dec_session_cnt() 2703 * @shost: scsi host 2716 iscsi_session_setup(struct iscsi_transport *iscsit, struct Scsi_Host *shost, iscsi_session_setup() argument 2720 struct iscsi_host *ihost = shost_priv(shost); iscsi_session_setup() 2766 cls_session = iscsi_alloc_session(shost, iscsit, iscsi_session_setup() 2773 session->host = shost; iscsi_session_setup() 2824 iscsi_host_dec_session_cnt(shost); iscsi_session_setup() 2840 struct Scsi_Host *shost = session->host; iscsi_session_teardown() local 2859 iscsi_host_dec_session_cnt(shost); iscsi_session_teardown() 3582 int iscsi_host_get_param(struct Scsi_Host *shost, enum iscsi_host_param param, iscsi_host_get_param() argument 3585 struct iscsi_host *ihost = shost_priv(shost); iscsi_host_get_param() 3606 int iscsi_host_set_param(struct Scsi_Host *shost, enum iscsi_host_param param, iscsi_host_set_param() argument 3609 struct iscsi_host *ihost = shost_priv(shost); iscsi_host_set_param()
|
H A D | mvumi.c | 750 spin_lock_irqsave(mhba->shost->host_lock, flags); mvumi_issue_blocked_cmd() 752 spin_unlock_irqrestore(mhba->shost->host_lock, flags); mvumi_issue_blocked_cmd() 760 spin_lock_irqsave(mhba->shost->host_lock, flags); mvumi_issue_blocked_cmd() 775 spin_unlock_irqrestore(mhba->shost->host_lock, flags); mvumi_issue_blocked_cmd() 1422 sdev = scsi_device_lookup(mhba->shost, 0, devid, 0); mvumi_handle_hotplug() 1433 sdev = scsi_device_lookup(mhba->shost, 0, devid, 0); mvumi_handle_hotplug() 1435 scsi_add_device(mhba->shost, 0, devid, 0); mvumi_handle_hotplug() 1523 sdev = scsi_device_lookup(mhba->shost, 0, mvumi_detach_devices() 1538 sdev = scsi_device_lookup(mhba->shost, 0, id, 0); mvumi_rescan_devices() 1832 spin_lock_irqsave(mhba->shost->host_lock, flags); mvumi_isr_handler() 1834 spin_unlock_irqrestore(mhba->shost->host_lock, flags); mvumi_isr_handler() 1855 spin_unlock_irqrestore(mhba->shost->host_lock, flags); mvumi_isr_handler() 2119 static int mvumi_queue_command(struct Scsi_Host *shost, mvumi_queue_command() argument 2126 spin_lock_irqsave(shost->host_lock, irq_flags); mvumi_queue_command() 2127 scsi_cmd_get_serial(shost, scmd); mvumi_queue_command() 2129 mhba = (struct mvumi_hba *) shost->hostdata; mvumi_queue_command() 2133 spin_unlock_irqrestore(shost->host_lock, irq_flags); mvumi_queue_command() 2143 spin_unlock_irqrestore(shost->host_lock, irq_flags); mvumi_queue_command() 2149 spin_unlock_irqrestore(shost->host_lock, irq_flags); mvumi_queue_command() 2160 spin_lock_irqsave(mhba->shost->host_lock, flags); mvumi_timed_out() 2189 spin_unlock_irqrestore(mhba->shost->host_lock, flags); mvumi_timed_out() 2440 struct Scsi_Host *host = mhba->shost; mvumi_io_attach() 2490 sdev = scsi_device_lookup(mhba->shost, 0, mvumi_io_attach() 2497 scsi_remove_host(mhba->shost); mvumi_io_attach() 2556 mhba->shost = host; mvumi_probe_one() 2609 host = mhba->shost; mvumi_detach_one() 2610 scsi_remove_host(mhba->shost); mvumi_detach_one()
|
H A D | sym53c416.c | 789 static int sym53c416_release(struct Scsi_Host *shost) sym53c416_release() argument 791 if (shost->irq) sym53c416_release() 792 free_irq(shost->irq, shost); sym53c416_release() 793 if (shost->io_port && shost->n_io_port) sym53c416_release() 794 release_region(shost->io_port, shost->n_io_port); sym53c416_release()
|
H A D | ultrastor.c | 653 static int ultrastor_release(struct Scsi_Host *shost) 655 if (shost->irq) 656 free_irq(shost->irq, NULL); 657 if (shost->dma_channel != 0xff) 658 free_dma(shost->dma_channel); 659 if (shost->io_port && shost->n_io_port) 660 release_region(shost->io_port, shost->n_io_port); 661 scsi_unregister(shost);
|
H A D | NCR53c406a.c | 594 static int NCR53c406a_release(struct Scsi_Host *shost) NCR53c406a_release() argument 596 if (shost->irq) NCR53c406a_release() 597 free_irq(shost->irq, NULL); NCR53c406a_release() 599 if (shost->dma_channel != 0xff) NCR53c406a_release() 600 free_dma(shost->dma_channel); NCR53c406a_release() 602 if (shost->io_port && shost->n_io_port) NCR53c406a_release() 603 release_region(shost->io_port, shost->n_io_port); NCR53c406a_release() 605 scsi_unregister(shost); NCR53c406a_release()
|
H A D | initio.c | 2843 struct Scsi_Host *shost; initio_probe_one() local 2865 shost = scsi_host_alloc(&initio_template, sizeof(struct initio_host)); initio_probe_one() 2866 if (!shost) { initio_probe_one() 2871 host = (struct initio_host *)shost->hostdata; initio_probe_one() 2923 shost->io_port = host->addr; initio_probe_one() 2924 shost->n_io_port = 0xff; initio_probe_one() 2925 shost->can_queue = num_scb; /* 03/05/98 */ initio_probe_one() 2926 shost->unique_id = host->addr; initio_probe_one() 2927 shost->max_id = host->max_tar; initio_probe_one() 2928 shost->max_lun = 32; /* 10/21/97 */ initio_probe_one() 2929 shost->irq = pdev->irq; initio_probe_one() 2930 shost->this_id = host->scsi_id; /* Assign HCS index */ initio_probe_one() 2931 shost->base = host->addr; initio_probe_one() 2932 shost->sg_tablesize = TOTAL_SG_ENTRY; initio_probe_one() 2934 error = request_irq(pdev->irq, i91u_intr, IRQF_SHARED, "i91u", shost); initio_probe_one() 2940 pci_set_drvdata(pdev, shost); initio_probe_one() 2942 error = scsi_add_host(shost, &pdev->dev); initio_probe_one() 2945 scsi_scan_host(shost); initio_probe_one() 2948 free_irq(pdev->irq, shost); initio_probe_one() 2954 scsi_host_put(shost); initio_probe_one()
|
H A D | eata_pio.c | 95 static int eata_pio_show_info(struct seq_file *m, struct Scsi_Host *shost) eata_pio_show_info() argument 102 shost->host_no, SD(shost)->name); eata_pio_show_info() 104 SD(shost)->revision); eata_pio_show_info() 106 seq_printf(m, "Base IO : %#.4x\n", (u32) shost->base); eata_pio_show_info() 108 (SD(shost)->bustype == 'P')?"PCI ": eata_pio_show_info() 109 (SD(shost)->bustype == 'E')?"EISA":"ISA "); eata_pio_show_info()
|
H A D | xen-scsifront.c | 535 static int scsifront_queuecommand(struct Scsi_Host *shost, scsifront_queuecommand() argument 538 struct vscsifrnt_info *info = shost_priv(shost); scsifront_queuecommand() 545 spin_lock_irqsave(shost->host_lock, flags); scsifront_queuecommand() 547 spin_unlock_irqrestore(shost->host_lock, flags); scsifront_queuecommand() 570 spin_unlock_irqrestore(shost->host_lock, flags); scsifront_queuecommand() 580 spin_unlock_irqrestore(shost->host_lock, flags); scsifront_queuecommand() 586 spin_unlock_irqrestore(shost->host_lock, flags); scsifront_queuecommand()
|
H A D | ipr.c | 3353 struct Scsi_Host *shost = class_to_shost(dev); ipr_read_trace() local 3354 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_read_trace() 3387 struct Scsi_Host *shost = class_to_shost(dev); ipr_show_fw_version() local 3388 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_show_fw_version() 3421 struct Scsi_Host *shost = class_to_shost(dev); ipr_show_log_level() local 3422 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_show_log_level() 3444 struct Scsi_Host *shost = class_to_shost(dev); ipr_store_log_level() local 3445 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_store_log_level() 3479 struct Scsi_Host *shost = class_to_shost(dev); ipr_store_diagnostics() local 3480 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_store_diagnostics() 3535 struct Scsi_Host *shost = class_to_shost(dev); ipr_show_adapter_state() local 3536 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_show_adapter_state() 3564 struct Scsi_Host *shost = class_to_shost(dev); ipr_store_adapter_state() local 3565 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_store_adapter_state() 3615 struct Scsi_Host *shost = class_to_shost(dev); ipr_store_reset_adapter() local 3616 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_store_reset_adapter() 3652 struct Scsi_Host *shost = class_to_shost(dev); ipr_show_iopoll_weight() local 3653 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_show_iopoll_weight() 3657 spin_lock_irqsave(shost->host_lock, lock_flags); ipr_show_iopoll_weight() 3659 spin_unlock_irqrestore(shost->host_lock, lock_flags); ipr_show_iopoll_weight() 3676 struct Scsi_Host *shost = class_to_shost(dev); ipr_store_iopoll_weight() local 3677 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_store_iopoll_weight() 3704 spin_lock_irqsave(shost->host_lock, lock_flags); ipr_store_iopoll_weight() 3713 spin_unlock_irqrestore(shost->host_lock, lock_flags); ipr_store_iopoll_weight() 3998 struct Scsi_Host *shost = class_to_shost(dev); ipr_store_update_fw() local 3999 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_store_update_fw() 4069 struct Scsi_Host *shost = class_to_shost(dev); ipr_show_fw_type() local 4070 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_show_fw_type() 4118 struct Scsi_Host *shost = class_to_shost(cdev); ipr_read_dump() local 4119 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_read_dump() 4305 struct Scsi_Host *shost = class_to_shost(cdev); ipr_write_dump() local 4306 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_write_dump() 4633 struct Scsi_Host *shost = dev_to_shost(&starget->dev); ipr_find_starget() local 4634 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; ipr_find_starget() 4661 struct Scsi_Host *shost = dev_to_shost(&starget->dev); ipr_target_alloc() local 4662 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; ipr_target_alloc() 4678 ap = ata_sas_port_alloc(&ioa_cfg->ata_host, &sata_port_info, shost); ipr_target_alloc() 4709 struct Scsi_Host *shost = dev_to_shost(&starget->dev); ipr_target_destroy() local 4710 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; ipr_target_destroy() 5385 static int ipr_scan_finished(struct Scsi_Host *shost, unsigned long elapsed_time) ipr_scan_finished() argument 5388 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; ipr_scan_finished() 5391 spin_lock_irqsave(shost->host_lock, lock_flags); ipr_scan_finished() 5396 spin_unlock_irqrestore(shost->host_lock, lock_flags); ipr_scan_finished() 6294 * @shost: scsi host struct 6304 static int ipr_queuecommand(struct Scsi_Host *shost, ipr_queuecommand() argument 6316 ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; ipr_queuecommand()
|
H A D | qlogicfas408.h | 85 struct Scsi_Host *shost; /* pointer back to host */ member in struct:qlogicfas408_priv
|
H A D | wd7000.c | 1537 static int wd7000_release(struct Scsi_Host *shost) wd7000_release() argument 1539 if (shost->irq) wd7000_release() 1540 free_irq(shost->irq, NULL); wd7000_release() 1541 if (shost->io_port && shost->n_io_port) wd7000_release() 1542 release_region(shost->io_port, shost->n_io_port); wd7000_release() 1543 scsi_unregister(shost); wd7000_release()
|
H A D | ses.c | 358 struct Scsi_Host *shost; member in struct:ses_host_edev 373 if (sdev->host != sed->shost)
|
H A D | in2000.c | 2123 static int in2000_release(struct Scsi_Host *shost) in2000_release() argument 2125 if (shost->irq) in2000_release() 2126 free_irq(shost->irq, shost); in2000_release() 2127 if (shost->io_port && shost->n_io_port) in2000_release() 2128 release_region(shost->io_port, shost->n_io_port); in2000_release()
|
H A D | mvumi.h | 495 struct Scsi_Host *shost; member in struct:mvumi_hba
|
H A D | scsi_debug.c | 598 struct Scsi_Host *shost; member in struct:sdebug_host_info 694 hpnt = sdbg_host->shost; sdebug_max_tgts_luns() 1306 int host_no = devip->sdbg_host->shost->host_no; resp_inquiry() 1587 int host_no = devip->sdbg_host->shost->host_no; resp_report_tgtpgs() 2028 target_dev_id = ((devip->sdbg_host->shost->host_no + 1) * 2000) + resp_mode_sense() 5288 sdebug_queuecommand_lock_or_not(struct Scsi_Host *shost, struct scsi_cmnd *cmd) sdebug_queuecommand_lock_or_not() argument 5294 spin_lock_irqsave(shost->host_lock, iflags); sdebug_queuecommand_lock_or_not() 5296 spin_unlock_irqrestore(shost->host_lock, iflags); sdebug_queuecommand_lock_or_not() 5350 sdbg_host->shost = hpnt; sdebug_driver_probe() 5438 scsi_remove_host(sdbg_host->shost); sdebug_driver_remove() 5446 scsi_host_put(sdbg_host->shost); sdebug_driver_remove()
|
H A D | hpsa.c | 323 struct Scsi_Host *shost = class_to_shost(dev); host_store_hp_ssd_smart_path_status() local 333 h = shost_to_hba(shost); host_store_hp_ssd_smart_path_status() 347 struct Scsi_Host *shost = class_to_shost(dev); host_store_raid_offload_debug() local 359 h = shost_to_hba(shost); host_store_raid_offload_debug() 371 struct Scsi_Host *shost = class_to_shost(dev); host_store_rescan() local 372 h = shost_to_hba(shost); host_store_rescan() 381 struct Scsi_Host *shost = class_to_shost(dev); host_show_firmware_revision() local 384 h = shost_to_hba(shost); host_show_firmware_revision() 395 struct Scsi_Host *shost = class_to_shost(dev); host_show_commands_outstanding() local 396 struct ctlr_info *h = shost_to_hba(shost); host_show_commands_outstanding() 406 struct Scsi_Host *shost = class_to_shost(dev); host_show_transport_mode() local 408 h = shost_to_hba(shost); host_show_transport_mode() 418 struct Scsi_Host *shost = class_to_shost(dev); host_show_hp_ssd_smart_path_status() local 420 h = shost_to_hba(shost); host_show_hp_ssd_smart_path_status() 500 struct Scsi_Host *shost = class_to_shost(dev); host_show_resettable() local 502 h = shost_to_hba(shost); host_show_resettable()
|
H A D | 3w-sas.c | 106 struct Scsi_Host *shost = class_to_shost(dev); twl_sysfs_aen_read() local 107 TW_Device_Extension *tw_dev = (TW_Device_Extension *)shost->hostdata; twl_sysfs_aen_read() 137 struct Scsi_Host *shost = class_to_shost(dev); twl_sysfs_compat_info() local 138 TW_Device_Extension *tw_dev = (TW_Device_Extension *)shost->hostdata; twl_sysfs_compat_info()
|
H A D | gdth.c | 488 int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd, gdth_execute() argument 491 struct scsi_device *sdev = scsi_get_host_dev(shost); gdth_execute() 4043 ha->sdev = scsi_get_host_dev(ha->shost); gdth_open() 4656 gdth_execute(ha->shost, &gdtcmd, cmnd, 30, NULL); gdth_flush() 4732 ha->shost = shp; gdth_isa_probe_one() 4856 ha->shost = shp; gdth_eisa_probe_one() 4992 ha->shost = shp; gdth_pci_probe_one() 5101 struct Scsi_Host *shp = ha->shost; gdth_remove_one()
|
H A D | aha152x.c | 1315 struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata); run() local 1317 is_complete(shost); run() 3355 struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata); aha152x_exit() local 3357 aha152x_release(shost); aha152x_exit()
|
H A D | ncr53c8xx.c | 8072 struct Scsi_Host *shost = (struct Scsi_Host *)dev_id; DEF_SCSI_QCMD() local 8073 struct host_data *host_data = (struct host_data *)shost->hostdata; DEF_SCSI_QCMD() 8540 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ncr53c8xx_set_period() local 8541 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; ncr53c8xx_set_period() 8556 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ncr53c8xx_set_offset() local 8557 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; ncr53c8xx_set_offset() 8572 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ncr53c8xx_set_width() local 8573 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; ncr53c8xx_set_width() 8586 static void ncr53c8xx_get_signalling(struct Scsi_Host *shost) ncr53c8xx_get_signalling() argument 8588 struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; ncr53c8xx_get_signalling() 8602 spi_signalling(shost) = type; ncr53c8xx_get_signalling()
|
H A D | pmcraid.c | 4117 struct Scsi_Host *shost = class_to_shost(dev); pmcraid_show_log_level() local 4119 (struct pmcraid_instance *)shost->hostdata; pmcraid_show_log_level() 4139 struct Scsi_Host *shost; pmcraid_store_log_level() local 4149 shost = class_to_shost(dev); pmcraid_store_log_level() 4150 pinstance = (struct pmcraid_instance *)shost->hostdata; pmcraid_store_log_level() 4205 struct Scsi_Host *shost = class_to_shost(dev); pmcraid_show_adapter_id() local 4207 (struct pmcraid_instance *)shost->hostdata; pmcraid_show_adapter_id()
|
H A D | gdth.h | 838 struct Scsi_Host *shost; member in struct:__anon8901
|
H A D | BusLogic.c | 3463 static int blogic_write_info(struct Scsi_Host *shost, char *procbuf, blogic_write_info() argument 3467 (struct blogic_adapter *) shost->hostdata; blogic_write_info() 3477 static int blogic_show_info(struct seq_file *m, struct Scsi_Host *shost) blogic_show_info() argument 3479 struct blogic_adapter *adapter = (struct blogic_adapter *) shost->hostdata; blogic_show_info()
|
H A D | sg.c | 1688 * requests equal in number to shost->can_queue. If all of the sg_start_req()
|
/linux-4.1.27/include/scsi/ |
H A D | scsi_tcq.h | 13 static inline struct scsi_cmnd *scsi_mq_find_tag(struct Scsi_Host *shost, scsi_mq_find_tag() argument 19 if (hwq < shost->tag_set.nr_hw_queues) scsi_mq_find_tag() 20 req = blk_mq_tag_to_rq(shost->tag_set.tags[hwq], scsi_mq_find_tag() 52 * @shost: the host to share the tag map among all devices 55 static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth) scsi_init_shared_tag_map() argument 60 if (shost_use_blk_mq(shost)) scsi_init_shared_tag_map() 68 if (!shost->bqt) { scsi_init_shared_tag_map() 69 shost->bqt = blk_init_tags(depth, scsi_init_shared_tag_map() 70 shost->hostt->tag_alloc_policy); scsi_init_shared_tag_map() 71 if (!shost->bqt) scsi_init_shared_tag_map() 80 * @shost: pointer to scsi_host 86 static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost, scsi_host_find_tag() argument 92 if (shost_use_blk_mq(shost)) scsi_host_find_tag() 93 return scsi_mq_find_tag(shost, tag); scsi_host_find_tag() 94 req = blk_map_queue_find_tag(shost->bqt, tag); scsi_host_find_tag()
|
H A D | scsi_transport_iscsi.h | 112 int (*get_host_param) (struct Scsi_Host *shost, 114 int (*set_host_param) (struct Scsi_Host *shost, 134 struct iscsi_endpoint *(*ep_connect) (struct Scsi_Host *shost, 139 int (*tgt_dscvr) (struct Scsi_Host *shost, enum iscsi_tgt_dscvr type, 141 int (*set_path) (struct Scsi_Host *shost, struct iscsi_path *params); 142 int (*set_iface_param) (struct Scsi_Host *shost, void *data, 149 int (*send_ping) (struct Scsi_Host *shost, uint32_t iface_num, 152 int (*get_chap) (struct Scsi_Host *shost, uint16_t chap_tbl_idx, 154 int (*delete_chap) (struct Scsi_Host *shost, uint16_t chap_tbl_idx); 155 int (*set_chap) (struct Scsi_Host *shost, void *data, int len); 161 int (*new_flashnode) (struct Scsi_Host *shost, const char *buf, 169 int (*get_host_stats) (struct Scsi_Host *shost, char *buf, int len); 189 extern int iscsi_offload_mesg(struct Scsi_Host *shost, 283 extern void iscsi_host_for_each_session(struct Scsi_Host *shost, 424 extern struct iscsi_cls_session *iscsi_alloc_session(struct Scsi_Host *shost, 430 extern struct iscsi_cls_session *iscsi_create_session(struct Scsi_Host *shost, 442 extern int iscsi_scan_finished(struct Scsi_Host *shost, unsigned long time); 447 extern struct iscsi_iface *iscsi_create_iface(struct Scsi_Host *shost, 453 extern char *iscsi_get_port_speed_name(struct Scsi_Host *shost); 454 extern char *iscsi_get_port_state_name(struct Scsi_Host *shost); 459 iscsi_find_flashnode(struct Scsi_Host *shost, void *data, 463 iscsi_create_flashnode_sess(struct Scsi_Host *shost, int index, 467 iscsi_create_flashnode_conn(struct Scsi_Host *shost, 474 extern void iscsi_destroy_all_flashnode(struct Scsi_Host *shost); 478 iscsi_find_flashnode_sess(struct Scsi_Host *shost, void *data,
|
H A D | sas_ata.h | 42 void sas_ata_strategy_handler(struct Scsi_Host *shost); 43 void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, 66 static inline void sas_ata_strategy_handler(struct Scsi_Host *shost) sas_ata_strategy_handler() argument 70 static inline void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, sas_ata_eh() argument
|
H A D | scsi_host.h | 330 int (*host_reset)(struct Scsi_Host *shost, int reset_type); 515 int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd) \ 519 spin_lock_irqsave(shost->host_lock, irq_flags); \ 520 scsi_cmd_get_serial(shost, cmd); \ 522 spin_unlock_irqrestore(shost->host_lock, irq_flags); \ 528 * shost state: If you alter this, you also need to alter scsi_sysfs.c 751 #define shost_printk(prefix, shost, fmt, a...) \ 752 dev_printk(prefix, &(shost)->shost_gendev, fmt, ##a) 754 static inline void *shost_priv(struct Scsi_Host *shost) shost_priv() argument 756 return (void *)shost->hostdata; shost_priv() 771 static inline int scsi_host_in_recovery(struct Scsi_Host *shost) scsi_host_in_recovery() argument 773 return shost->shost_state == SHOST_RECOVERY || scsi_host_in_recovery() 774 shost->shost_state == SHOST_CANCEL_RECOVERY || scsi_host_in_recovery() 775 shost->shost_state == SHOST_DEL_RECOVERY || scsi_host_in_recovery() 776 shost->tmf_in_progress; scsi_host_in_recovery() 781 static inline bool shost_use_blk_mq(struct Scsi_Host *shost) shost_use_blk_mq() argument 783 return shost->use_blk_mq; shost_use_blk_mq() 808 static inline struct device *scsi_get_device(struct Scsi_Host *shost) scsi_get_device() argument 810 return shost->shost_gendev.parent; scsi_get_device() 815 * @shost: Pointer to Scsi_Host. 817 static inline int scsi_host_scan_allowed(struct Scsi_Host *shost) scsi_host_scan_allowed() argument 819 return shost->shost_state == SHOST_RUNNING || scsi_host_scan_allowed() 820 shost->shost_state == SHOST_RECOVERY; scsi_host_scan_allowed() 828 extern struct request_queue *__scsi_alloc_queue(struct Scsi_Host *shost, 863 static inline void scsi_host_set_prot(struct Scsi_Host *shost, unsigned int mask) scsi_host_set_prot() argument 865 shost->prot_capabilities = mask; scsi_host_set_prot() 868 static inline unsigned int scsi_host_get_prot(struct Scsi_Host *shost) scsi_host_get_prot() argument 870 return shost->prot_capabilities; scsi_host_get_prot() 873 static inline int scsi_host_prot_dma(struct Scsi_Host *shost) scsi_host_prot_dma() argument 875 return shost->prot_capabilities >= SHOST_DIX_TYPE0_PROTECTION; scsi_host_prot_dma() 878 static inline unsigned int scsi_host_dif_capable(struct Scsi_Host *shost, unsigned int target_type) scsi_host_dif_capable() argument 888 return shost->prot_capabilities & cap[target_type] ? target_type : 0; scsi_host_dif_capable() 891 static inline unsigned int scsi_host_dix_capable(struct Scsi_Host *shost, unsigned int target_type) scsi_host_dix_capable() argument 902 return shost->prot_capabilities & cap[target_type]; scsi_host_dix_capable() 921 static inline void scsi_host_set_guard(struct Scsi_Host *shost, unsigned char type) scsi_host_set_guard() argument 923 shost->prot_guard_type = type; scsi_host_set_guard() 926 static inline unsigned char scsi_host_get_guard(struct Scsi_Host *shost) scsi_host_get_guard() argument 928 return shost->prot_guard_type; scsi_host_get_guard()
|
H A D | scsi_transport.h | 109 struct Scsi_Host *shost = dev_to_shost(&starget->dev); scsi_transport_target_data() local 111 + shost->transportt->target_private_offset; scsi_transport_target_data() 117 struct Scsi_Host *shost = sdev->host; scsi_transport_device_data() local 119 + shost->transportt->device_private_offset; scsi_transport_device_data()
|
H A D | scsi_device.h | 352 * @shost: the &struct scsi_host to iterate over 354 * Iterator that returns each device attached to @shost. This loop 358 #define shost_for_each_device(sdev, shost) \ 359 for ((sdev) = __scsi_iterate_devices((shost), NULL); \ 361 (sdev) = __scsi_iterate_devices((shost), (sdev))) 366 * @shost: the &struct scsi_host to iterate over 368 * Iterator that returns each device attached to @shost. It does _not_ 370 * protected by shost->host_lock. 376 #define __shost_for_each_device(sdev, shost) \ 377 list_for_each_entry((sdev), &((shost)->__devices), siblings)
|
H A D | libiscsi.h | 393 extern int iscsi_host_set_param(struct Scsi_Host *shost, 396 extern int iscsi_host_get_param(struct Scsi_Host *shost, 398 extern int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev); 402 extern void iscsi_host_remove(struct Scsi_Host *shost); 403 extern void iscsi_host_free(struct Scsi_Host *shost); 410 iscsi_session_setup(struct iscsi_transport *, struct Scsi_Host *shost,
|
H A D | scsi_transport_fc.h | 244 struct Scsi_Host *shost; /* Physical Port Parent */ member in struct:fc_vport 264 (v->shost) 638 struct Scsi_Host *shost; member in struct:fc_bsg_job 842 struct fc_rport *fc_remote_port_add(struct Scsi_Host *shost, 848 void fc_host_post_event(struct Scsi_Host *shost, u32 event_number, 850 void fc_host_post_vendor_event(struct Scsi_Host *shost, u32 event_number, 856 struct fc_vport *fc_vport_create(struct Scsi_Host *shost, int channel,
|
H A D | libfc.h | 1033 struct Scsi_Host *shost; libfc_host_alloc() local 1035 shost = scsi_host_alloc(sht, sizeof(*lport) + priv_size); libfc_host_alloc() 1036 if (!shost) libfc_host_alloc() 1038 lport = shost_priv(shost); libfc_host_alloc() 1039 lport->host = shost; libfc_host_alloc()
|
H A D | libsas.h | 361 struct Scsi_Host *shost; member in struct:scsi_core 725 extern int sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, 732 int sas_request_addr(struct Scsi_Host *shost, u8 *addr);
|
H A D | scsi.h | 48 * possible channels, (target) ids, or luns on a given shost.
|
/linux-4.1.27/drivers/scsi/csiostor/ |
H A D | csio_attr.c | 62 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_reg_rnode() local 78 rn->rport = fc_remote_port_add(shost, 0, &ids); csio_reg_rnode() 87 spin_lock_irq(shost->host_lock); csio_reg_rnode() 89 spin_unlock_irq(shost->host_lock); csio_reg_rnode() 148 * fc_host_post_event(shost, csio_lnode_async_event() 184 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_fchost_attr_init() local 186 fc_host_node_name(shost) = wwn_to_u64(csio_ln_wwnn(ln)); csio_fchost_attr_init() 187 fc_host_port_name(shost) = wwn_to_u64(csio_ln_wwpn(ln)); csio_fchost_attr_init() 189 fc_host_supported_classes(shost) = FC_COS_CLASS3; csio_fchost_attr_init() 190 fc_host_max_npiv_vports(shost) = csio_fchost_attr_init() 192 fc_host_supported_speeds(shost) = FC_PORTSPEED_10GBIT | csio_fchost_attr_init() 195 fc_host_maxframe_size(shost) = ntohs(ln->ln_sparm.csp.sp_bb_data); csio_fchost_attr_init() 196 memset(fc_host_supported_fc4s(shost), 0, csio_fchost_attr_init() 197 sizeof(fc_host_supported_fc4s(shost))); csio_fchost_attr_init() 198 fc_host_supported_fc4s(shost)[7] = 1; csio_fchost_attr_init() 200 memset(fc_host_active_fc4s(shost), 0, csio_fchost_attr_init() 201 sizeof(fc_host_active_fc4s(shost))); csio_fchost_attr_init() 202 fc_host_active_fc4s(shost)[7] = 1; csio_fchost_attr_init() 210 csio_get_host_port_id(struct Scsi_Host *shost) csio_get_host_port_id() argument 212 struct csio_lnode *ln = shost_priv(shost); csio_get_host_port_id() 216 fc_host_port_id(shost) = ln->nport_id; csio_get_host_port_id() 222 * @shost: scsi host. 226 csio_get_host_port_type(struct Scsi_Host *shost) csio_get_host_port_type() argument 228 struct csio_lnode *ln = shost_priv(shost); csio_get_host_port_type() 233 fc_host_port_type(shost) = FC_PORTTYPE_NPIV; csio_get_host_port_type() 235 fc_host_port_type(shost) = FC_PORTTYPE_NPORT; csio_get_host_port_type() 241 * @shost: scsi host. 245 csio_get_host_port_state(struct Scsi_Host *shost) csio_get_host_port_state() argument 247 struct csio_lnode *ln = shost_priv(shost); csio_get_host_port_state() 255 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; csio_get_host_port_state() 257 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; csio_get_host_port_state() 259 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; csio_get_host_port_state() 266 * @shost: scsi host. 270 csio_get_host_speed(struct Scsi_Host *shost) csio_get_host_speed() argument 272 struct csio_lnode *ln = shost_priv(shost); csio_get_host_speed() 278 fc_host_speed(shost) = FC_PORTSPEED_1GBIT; csio_get_host_speed() 281 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; csio_get_host_speed() 284 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; csio_get_host_speed() 292 * @shost: scsi host. 296 csio_get_host_fabric_name(struct Scsi_Host *shost) csio_get_host_fabric_name() argument 298 struct csio_lnode *ln = shost_priv(shost); csio_get_host_fabric_name() 305 fc_host_fabric_name(shost) = wwn_to_u64(csio_rn_wwnn(rn)); csio_get_host_fabric_name() 307 fc_host_fabric_name(shost) = 0; csio_get_host_fabric_name() 317 csio_get_stats(struct Scsi_Host *shost) csio_get_stats() argument 319 struct csio_lnode *ln = shost_priv(shost); csio_get_stats() 545 struct Scsi_Host *shost = fc_vport->shost; csio_vport_create() local 546 struct csio_lnode *pln = shost_priv(shost); csio_vport_create() 608 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_vport_delete() local 622 scsi_block_requests(shost); csio_vport_delete() 627 scsi_unblock_requests(shost); csio_vport_delete() 641 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_vport_disable() local 647 scsi_block_requests(shost); csio_vport_disable() 652 scsi_unblock_requests(shost); csio_vport_disable()
|
H A D | csio_init.c | 595 * shost, initializes lnode module and registers with SCSI ML 603 struct Scsi_Host *shost = NULL; csio_shost_init() local 614 shost = scsi_host_alloc( csio_shost_init() 618 shost = scsi_host_alloc( csio_shost_init() 622 if (!shost) csio_shost_init() 625 ln = shost_priv(shost); csio_shost_init() 629 ln->dev_num = (shost->host_no << 16); csio_shost_init() 631 shost->can_queue = CSIO_MAX_QUEUE; csio_shost_init() 632 shost->this_id = -1; csio_shost_init() 633 shost->unique_id = shost->host_no; csio_shost_init() 634 shost->max_cmd_len = 16; /* Max CDB length supported */ csio_shost_init() 635 shost->max_id = min_t(uint32_t, csio_fcoe_rnodes, csio_shost_init() 637 shost->max_lun = CSIO_MAX_LUN; csio_shost_init() 639 shost->transportt = csio_fcoe_transport; csio_shost_init() 641 shost->transportt = csio_fcoe_transport_vport; csio_shost_init() 651 if (scsi_add_host(shost, dev)) csio_shost_init() 659 scsi_host_put(shost); csio_shost_init() 665 * csio_shost_exit - De-instantiate the shost. 666 * @ln: The lnode module corresponding to the shost. 672 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_shost_exit() local 676 fc_remove_host(shost); csio_shost_exit() 679 scsi_remove_host(shost); csio_shost_exit() 689 scsi_host_put(shost); csio_shost_exit() 701 struct Scsi_Host *shost; csio_lnodes_block_request() local 730 shost = csio_ln_to_shost(ln); csio_lnodes_block_request() 731 scsi_block_requests(shost); csio_lnodes_block_request() 741 struct Scsi_Host *shost; csio_lnodes_unblock_request() local 769 shost = csio_ln_to_shost(ln); csio_lnodes_unblock_request() 770 scsi_unblock_requests(shost); csio_lnodes_unblock_request() 779 struct Scsi_Host *shost; csio_lnodes_block_by_port() local 810 shost = csio_ln_to_shost(ln); csio_lnodes_block_by_port() 811 scsi_block_requests(shost); csio_lnodes_block_by_port() 820 struct Scsi_Host *shost; csio_lnodes_unblock_by_port() local 850 shost = csio_ln_to_shost(ln); csio_lnodes_unblock_by_port() 851 scsi_unblock_requests(shost); csio_lnodes_unblock_by_port() 922 struct Scsi_Host *shost = csio_ln_to_shost(ln); csio_lnode_init_post() local 926 scsi_scan_host(shost); csio_lnode_init_post() 940 * shost, initialized lnode module and registers with SCSI ML
|
H A D | csio_scsi.c | 2252 csio_scan_finished(struct Scsi_Host *shost, unsigned long time) csio_scan_finished() argument 2254 struct csio_lnode *ln = shost_priv(shost); csio_scan_finished() 2257 spin_lock_irq(shost->host_lock); csio_scan_finished() 2264 spin_unlock_irq(shost->host_lock); csio_scan_finished()
|
/linux-4.1.27/drivers/scsi/bfa/ |
H A D | bfad_attr.c | 31 struct Scsi_Host *shost; bfad_im_get_starget_port_id() local 38 shost = dev_to_shost(starget->dev.parent); bfad_im_get_starget_port_id() 39 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_starget_port_id() 57 struct Scsi_Host *shost; bfad_im_get_starget_node_name() local 64 shost = dev_to_shost(starget->dev.parent); bfad_im_get_starget_node_name() 65 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_starget_node_name() 83 struct Scsi_Host *shost; bfad_im_get_starget_port_name() local 90 shost = dev_to_shost(starget->dev.parent); bfad_im_get_starget_port_name() 91 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_starget_port_name() 107 bfad_im_get_host_port_id(struct Scsi_Host *shost) bfad_im_get_host_port_id() argument 110 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_host_port_id() 113 fc_host_port_id(shost) = bfad_im_get_host_port_id() 121 bfad_im_get_host_port_type(struct Scsi_Host *shost) bfad_im_get_host_port_type() argument 124 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_host_port_type() 132 fc_host_port_type(shost) = FC_PORTTYPE_NPORT; bfad_im_get_host_port_type() 135 fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; bfad_im_get_host_port_type() 138 fc_host_port_type(shost) = FC_PORTTYPE_PTP; bfad_im_get_host_port_type() 141 fc_host_port_type(shost) = FC_PORTTYPE_LPORT; bfad_im_get_host_port_type() 144 fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN; bfad_im_get_host_port_type() 153 bfad_im_get_host_port_state(struct Scsi_Host *shost) bfad_im_get_host_port_state() argument 156 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_host_port_state() 164 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; bfad_im_get_host_port_state() 167 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; bfad_im_get_host_port_state() 173 fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; bfad_im_get_host_port_state() 181 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; bfad_im_get_host_port_state() 190 bfad_im_get_host_active_fc4s(struct Scsi_Host *shost) bfad_im_get_host_active_fc4s() argument 193 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_host_active_fc4s() 196 memset(fc_host_active_fc4s(shost), 0, bfad_im_get_host_active_fc4s() 197 sizeof(fc_host_active_fc4s(shost))); bfad_im_get_host_active_fc4s() 200 fc_host_active_fc4s(shost)[2] = 1; bfad_im_get_host_active_fc4s() 202 fc_host_active_fc4s(shost)[7] = 1; bfad_im_get_host_active_fc4s() 209 bfad_im_get_host_speed(struct Scsi_Host *shost) bfad_im_get_host_speed() argument 212 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_host_speed() 219 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; bfad_im_get_host_speed() 222 fc_host_speed(shost) = FC_PORTSPEED_16GBIT; bfad_im_get_host_speed() 225 fc_host_speed(shost) = FC_PORTSPEED_8GBIT; bfad_im_get_host_speed() 228 fc_host_speed(shost) = FC_PORTSPEED_4GBIT; bfad_im_get_host_speed() 231 fc_host_speed(shost) = FC_PORTSPEED_2GBIT; bfad_im_get_host_speed() 234 fc_host_speed(shost) = FC_PORTSPEED_1GBIT; bfad_im_get_host_speed() 237 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; bfad_im_get_host_speed() 246 bfad_im_get_host_fabric_name(struct Scsi_Host *shost) bfad_im_get_host_fabric_name() argument 249 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_host_fabric_name() 255 fc_host_fabric_name(shost) = cpu_to_be64(fabric_nwwn); bfad_im_get_host_fabric_name() 263 bfad_im_get_stats(struct Scsi_Host *shost) bfad_im_get_stats() argument 266 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_get_stats() 314 bfad_im_reset_stats(struct Scsi_Host *shost) bfad_im_reset_stats() argument 317 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_reset_stats() 360 struct Scsi_Host *shost = fc_vport->shost; bfad_im_vport_create() local 362 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_vport_create() 409 vshost = vport->drv_port.im_port->shost; bfad_im_vport_create() 446 bfad_im_issue_fc_host_lip(struct Scsi_Host *shost) bfad_im_issue_fc_host_lip() argument 449 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_issue_fc_host_lip() 506 vshost = vport->drv_port.im_port->shost; bfad_im_vport_delete() 552 vshost = vport->drv_port.im_port->shost; bfad_im_vport_disable() 580 struct Scsi_Host *vshost = vport->drv_port.im_port->shost; bfad_im_vport_set_symbolic_name() 715 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_serial_num_show() local 717 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_serial_num_show() 729 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_model_show() local 731 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_model_show() 743 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_model_desc_show() local 745 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_model_desc_show() 823 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_node_name_show() local 825 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_node_name_show() 837 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_symbolic_name_show() local 839 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_symbolic_name_show() 854 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_hw_version_show() local 856 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_hw_version_show() 875 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_optionrom_version_show() local 877 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_optionrom_version_show() 889 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_fw_version_show() local 891 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_fw_version_show() 903 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_num_of_ports_show() local 905 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_num_of_ports_show() 923 struct Scsi_Host *shost = class_to_shost(dev); bfad_im_num_of_discovered_ports_show() local 925 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_num_of_discovered_ports_show()
|
H A D | bfad_im.c | 179 bfad_im_info(struct Scsi_Host *shost) bfad_im_info() argument 183 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_info() 202 struct Scsi_Host *shost = cmnd->device->host; bfad_im_abort_handler() local 204 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_abort_handler() 226 im_port->shost->host_no, cmnd, hal_io->iotag); bfad_im_abort_handler() 243 im_port->shost->host_no, cmnd, hal_io->iotag); bfad_im_abort_handler() 290 struct Scsi_Host *shost = cmnd->device->host; bfad_im_reset_lun_handler() local 292 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_reset_lun_handler() 354 struct Scsi_Host *shost = cmnd->device->host; bfad_im_reset_bus_handler() local 356 (struct bfad_im_port_s *) shost->hostdata[0]; bfad_im_reset_bus_handler() 465 port->im_port->shost->host_no, bfa_fcb_itnim_free() 540 im_port->shost = bfad_scsi_host_alloc(im_port, bfad); bfad_im_scsi_host_alloc() 541 if (!im_port->shost) { bfad_im_scsi_host_alloc() 546 im_port->shost->hostdata[0] = (unsigned long)im_port; bfad_im_scsi_host_alloc() 547 im_port->shost->unique_id = im_port->idr_id; bfad_im_scsi_host_alloc() 548 im_port->shost->this_id = -1; bfad_im_scsi_host_alloc() 549 im_port->shost->max_id = MAX_FCP_TARGET; bfad_im_scsi_host_alloc() 550 im_port->shost->max_lun = MAX_FCP_LUN; bfad_im_scsi_host_alloc() 551 im_port->shost->max_cmd_len = 16; bfad_im_scsi_host_alloc() 552 im_port->shost->can_queue = bfad->cfg_data.ioc_queue_depth; bfad_im_scsi_host_alloc() 554 im_port->shost->transportt = bfad_im_scsi_transport_template; bfad_im_scsi_host_alloc() 556 im_port->shost->transportt = bfad_im_scsi_host_alloc() 559 error = scsi_add_host_with_dma(im_port->shost, dev, &bfad->pcidev->dev); bfad_im_scsi_host_alloc() 568 scsi_host_put(im_port->shost); bfad_im_scsi_host_alloc() 569 im_port->shost = NULL; bfad_im_scsi_host_alloc() 583 im_port->shost->host_no); bfad_im_scsi_host_free() 585 fc_remove_host(im_port->shost); bfad_im_scsi_host_free() 587 scsi_remove_host(im_port->shost); bfad_im_scsi_host_free() 588 scsi_host_put(im_port->shost); bfad_im_scsi_host_free() 665 struct Scsi_Host *shost = bfad->pport.im_port->shost; bfad_aen_im_notify_handler() local 674 fc_host_post_vendor_event(shost, fc_get_event_number(), bfad_aen_im_notify_handler() 1015 struct Scsi_Host *host = im_port->shost; bfad_fc_host_init() 1061 fc_remote_port_add(im_port->shost, 0, &rport_ids); bfad_im_fc_rport_add() 1123 im_port->shost->host_no, bfad_im_itnim_work_handler() 1156 im_port->shost->host_no, bfad_im_itnim_work_handler()
|
H A D | bfad_im.h | 66 struct Scsi_Host *shost; member in struct:bfad_im_port_s 184 __sdev = scsi_device_lookup((__im_port)->shost, \
|
H A D | bfad_bsg.c | 99 iocmd->host = im_port->shost->host_no; bfad_iocmd_ioc_get_info() 668 iocmd->host = drv_itnim->im_port->shost->host_no; bfad_iocmd_rport_get_addr() 3136 (struct bfad_im_port_s *) job->shost->hostdata[0]; bfad_im_bsg_vendor_request() 3358 (struct bfad_im_port_s *) job->shost->hostdata[0]; bfad_im_bsg_els_ct_request()
|
H A D | bfad.c | 1052 fc_vport = fc_vport_create(bfad->pport.im_port->shost, 0, &vid); bfad_start_ops()
|
/linux-4.1.27/drivers/scsi/mvsas/ |
H A D | mv_init.c | 111 sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata; mvs_phy_init() 155 if (mvi->shost) mvs_free() 156 scsi_host_put(mvi->shost); mvs_free() 230 static int mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost) mvs_alloc() argument 370 struct Scsi_Host *shost, unsigned int id) mvs_pci_alloc() 373 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); mvs_pci_alloc() 392 mvi->shost = shost; mvs_pci_alloc() 400 if (!mvs_alloc(mvi, shost)) mvs_pci_alloc() 439 static int mvs_prep_sas_ha_init(struct Scsi_Host *shost, mvs_prep_sas_ha_init() argument 445 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); mvs_prep_sas_ha_init() 459 sha->core.shost = shost; mvs_prep_sas_ha_init() 467 shost->transportt = mvs_stt; mvs_prep_sas_ha_init() 468 shost->max_id = MVS_MAX_DEVICES; mvs_prep_sas_ha_init() 469 shost->max_lun = ~0; mvs_prep_sas_ha_init() 470 shost->max_channel = 1; mvs_prep_sas_ha_init() 471 shost->max_cmd_len = 16; mvs_prep_sas_ha_init() 481 static void mvs_post_sas_ha_init(struct Scsi_Host *shost, mvs_post_sas_ha_init() argument 486 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); mvs_post_sas_ha_init() 511 shost->sg_tablesize = min_t(u16, SG_ALL, MVS_MAX_SG); mvs_post_sas_ha_init() 512 shost->can_queue = can_queue; mvs_post_sas_ha_init() 513 mvi->shost->cmd_per_lun = MVS_QUEUE_SIZE; mvs_post_sas_ha_init() 514 sha->core.shost = mvi->shost; mvs_post_sas_ha_init() 535 struct Scsi_Host *shost = NULL; mvs_pci_init() local 554 shost = scsi_host_alloc(&mvs_sht, sizeof(void *)); mvs_pci_init() 555 if (!shost) { mvs_pci_init() 561 SHOST_TO_SAS_HA(shost) = mvs_pci_init() 563 if (!SHOST_TO_SAS_HA(shost)) { mvs_pci_init() 564 kfree(shost); mvs_pci_init() 569 rc = mvs_prep_sas_ha_init(shost, chip); mvs_pci_init() 571 kfree(shost); mvs_pci_init() 576 pci_set_drvdata(pdev, SHOST_TO_SAS_HA(shost)); mvs_pci_init() 579 mvi = mvs_pci_alloc(pdev, ent, shost, nhost); mvs_pci_init() 598 mpi = (struct mvs_prv_info *)(SHOST_TO_SAS_HA(shost)->lldd_ha); mvs_pci_init() 601 (unsigned long)SHOST_TO_SAS_HA(shost)); mvs_pci_init() 604 mvs_post_sas_ha_init(shost, chip); mvs_pci_init() 606 rc = scsi_add_host(shost, &pdev->dev); mvs_pci_init() 610 rc = sas_register_ha(SHOST_TO_SAS_HA(shost)); mvs_pci_init() 614 DRV_NAME, SHOST_TO_SAS_HA(shost)); mvs_pci_init() 620 scsi_scan_host(mvi->shost); mvs_pci_init() 625 sas_unregister_ha(SHOST_TO_SAS_HA(shost)); mvs_pci_init() 627 scsi_remove_host(mvi->shost); mvs_pci_init() 650 sas_remove_host(mvi->shost); mvs_pci_remove() 651 scsi_remove_host(mvi->shost); mvs_pci_remove() 769 struct Scsi_Host *shost = class_to_shost(cdev); mvs_store_interrupt_coalescing() local 770 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); mvs_store_interrupt_coalescing() 368 mvs_pci_alloc(struct pci_dev *pdev, const struct pci_device_id *ent, struct Scsi_Host *shost, unsigned int id) mvs_pci_alloc() argument
|
H A D | mv_sas.h | 363 struct Scsi_Host *shost; member in struct:mvs_info 456 void mvs_scan_start(struct Scsi_Host *shost); 457 int mvs_scan_finished(struct Scsi_Host *shost, unsigned long time);
|
H A D | mv_sas.c | 285 void mvs_scan_start(struct Scsi_Host *shost) mvs_scan_start() argument 290 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); mvs_scan_start() 303 int mvs_scan_finished(struct Scsi_Host *shost, unsigned long time) mvs_scan_finished() argument 305 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); mvs_scan_finished()
|
/linux-4.1.27/drivers/scsi/pm8001/ |
H A D | pm8001_ctl.c | 52 * A sysfs 'read-only' shost attribute. 57 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_mpi_interface_rev_show() local 58 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_mpi_interface_rev_show() 77 * A sysfs 'read-only' shost attribute. 82 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_fw_version_show() local 83 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_fw_version_show() 106 * A sysfs 'read-only' shost attribute. 111 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_max_out_io_show() local 112 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_max_out_io_show() 129 * A sysfs 'read-only' shost attribute. 134 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_max_devices_show() local 135 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_max_devices_show() 155 * A sysfs 'read-only' shost attribute. 160 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_max_sg_list_show() local 161 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_max_sg_list_show() 199 * A sysfs 'read-only' shost attribute. 205 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_sas_spec_support_show() local 206 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_sas_spec_support_show() 228 * A sysfs 'read-only' shost attribute. 233 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_host_sas_address_show() local 234 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_host_sas_address_show() 247 * A sysfs 'read/write' shost attribute. 252 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_logging_level_show() local 253 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_logging_level_show() 261 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_logging_level_store() local 262 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_logging_level_store() 280 * A sysfs 'read-only' shost attribute. 285 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_aap_log_show() local 286 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_aap_log_show() 315 * A sysfs 'read-only' shost attribute. 320 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_ib_queue_log_show() local 321 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_ib_queue_log_show() 347 * A sysfs 'read-only' shost attribute. 353 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_ob_queue_log_show() local 354 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_ob_queue_log_show() 379 * A sysfs 'read-only' shost attribute. 384 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_bios_version_show() local 385 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_bios_version_show() 417 * A sysfs 'read-only' shost attribute. 422 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_ctl_iop_log_show() local 423 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_ctl_iop_log_show() 453 ** A sysfs 'read-only' shost attribute. 472 **A sysfs 'read-only' shost attribute. 639 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_store_update_fw() local 640 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_store_update_fw() 716 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_show_update_fw() local 717 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_show_update_fw()
|
H A D | pm8001_init.c | 136 sas_phy->ha = (struct sas_ha_struct *)pm8001_ha->shost->hostdata; pm8001_phy_init() 162 if (pm8001_ha->shost) pm8001_free() 163 scsi_host_put(pm8001_ha->shost); pm8001_free() 450 * @shost: scsi host struct which has been initialized before. 454 struct Scsi_Host *shost) pm8001_pci_alloc() 458 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_pci_alloc() 471 pm8001_ha->shost = shost; pm8001_pci_alloc() 536 * @shost: scsi host which has been allocated outside. 539 static int pm8001_prep_sas_ha_init(struct Scsi_Host *shost, pm8001_prep_sas_ha_init() argument 545 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_prep_sas_ha_init() 563 shost->transportt = pm8001_stt; pm8001_prep_sas_ha_init() 564 shost->max_id = PM8001_MAX_DEVICES; pm8001_prep_sas_ha_init() 565 shost->max_lun = 8; pm8001_prep_sas_ha_init() 566 shost->max_channel = 0; pm8001_prep_sas_ha_init() 567 shost->unique_id = pm8001_id; pm8001_prep_sas_ha_init() 568 shost->max_cmd_len = 16; pm8001_prep_sas_ha_init() 569 shost->can_queue = PM8001_CAN_QUEUE; pm8001_prep_sas_ha_init() 570 shost->cmd_per_lun = 32; pm8001_prep_sas_ha_init() 582 * @shost: scsi host which has been allocated outside 585 static void pm8001_post_sas_ha_init(struct Scsi_Host *shost, pm8001_post_sas_ha_init() argument 590 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_post_sas_ha_init() 603 sha->core.shost = shost; pm8001_post_sas_ha_init() 807 DRV_NAME, SHOST_TO_SAS_HA(pm8001_ha->shost)); pm8001_request_irq() 827 struct Scsi_Host *shost = NULL; pm8001_pci_probe() local 851 shost = scsi_host_alloc(&pm8001_sht, sizeof(void *)); pm8001_pci_probe() 852 if (!shost) { pm8001_pci_probe() 857 SHOST_TO_SAS_HA(shost) = pm8001_pci_probe() 859 if (!SHOST_TO_SAS_HA(shost)) { pm8001_pci_probe() 864 rc = pm8001_prep_sas_ha_init(shost, chip); pm8001_pci_probe() 869 pci_set_drvdata(pdev, SHOST_TO_SAS_HA(shost)); pm8001_pci_probe() 871 pm8001_ha = pm8001_pci_alloc(pdev, ent, shost); pm8001_pci_probe() 885 rc = scsi_add_host(shost, &pdev->dev); pm8001_pci_probe() 911 pm8001_post_sas_ha_init(shost, chip); pm8001_pci_probe() 912 rc = sas_register_ha(SHOST_TO_SAS_HA(shost)); pm8001_pci_probe() 915 scsi_scan_host(pm8001_ha->shost); pm8001_pci_probe() 919 scsi_remove_host(pm8001_ha->shost); pm8001_pci_probe() 923 kfree(SHOST_TO_SAS_HA(shost)); pm8001_pci_probe() 925 kfree(shost); pm8001_pci_probe() 941 sas_remove_host(pm8001_ha->shost); pm8001_pci_remove() 943 scsi_remove_host(pm8001_ha->shost); pm8001_pci_remove() 989 scsi_block_requests(pm8001_ha->shost); pm8001_pci_suspend() 1100 scsi_remove_host(pm8001_ha->shost); pm8001_pci_resume() 452 pm8001_pci_alloc(struct pci_dev *pdev, const struct pci_device_id *ent, struct Scsi_Host *shost) pm8001_pci_alloc() argument
|
H A D | pm8001_sas.c | 239 * @shost: the scsi host data. 241 void pm8001_scan_start(struct Scsi_Host *shost) pm8001_scan_start() argument 245 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_scan_start() 254 int pm8001_scan_finished(struct Scsi_Host *shost, unsigned long time) pm8001_scan_finished() argument 256 struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); pm8001_scan_finished()
|
H A D | pm8001_sas.h | 508 struct Scsi_Host *shost; member in struct:pm8001_hba_info 624 void pm8001_scan_start(struct Scsi_Host *shost); 625 int pm8001_scan_finished(struct Scsi_Host *shost, unsigned long time);
|
H A D | pm8001_hwi.c | 4974 struct Scsi_Host *shost = class_to_shost(cdev); pm8001_get_gsm_dump() local 4975 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm8001_get_gsm_dump()
|
H A D | pm80xx_hwi.c | 90 struct Scsi_Host *shost = class_to_shost(cdev); pm80xx_get_fatal_dump() local 91 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); pm80xx_get_fatal_dump()
|
/linux-4.1.27/drivers/scsi/pcmcia/ |
H A D | qlogic_stub.c | 96 struct Scsi_Host *shost; /* registered host structure */ qlogic_detect() local 107 shost = scsi_host_alloc(host, sizeof(struct qlogicfas408_priv)); qlogic_detect() 108 if (!shost) qlogic_detect() 110 shost->io_port = qbase; qlogic_detect() 111 shost->n_io_port = 16; qlogic_detect() 112 shost->dma_channel = -1; qlogic_detect() 114 shost->irq = qlirq; qlogic_detect() 116 priv = get_priv_by_host(shost); qlogic_detect() 120 priv->shost = shost; qlogic_detect() 123 if (request_irq(qlirq, qlogicfas408_ihandl, 0, qlogic_name, shost)) qlogic_detect() 130 if (scsi_add_host(shost, NULL)) qlogic_detect() 133 scsi_scan_host(shost); qlogic_detect() 135 return shost; qlogic_detect() 138 free_irq(qlirq, shost); qlogic_detect() 141 scsi_host_put(shost); qlogic_detect()
|
H A D | sym53c500_cs.c | 512 struct Scsi_Host *shost = info->host; SYM53C500_release() local 519 scsi_remove_host(shost); SYM53C500_release() 525 if (shost->irq) SYM53C500_release() 526 free_irq(shost->irq, shost); SYM53C500_release() 527 if (shost->io_port && shost->n_io_port) SYM53C500_release() 528 release_region(shost->io_port, shost->n_io_port); SYM53C500_release() 532 scsi_host_put(shost); SYM53C500_release()
|
/linux-4.1.27/drivers/scsi/be2iscsi/ |
H A D | be_iscsi.c | 45 struct Scsi_Host *shost; beiscsi_session_create() local 82 shost = phba->shost; beiscsi_session_create() 84 shost, cmds_max, beiscsi_session_create() 131 struct Scsi_Host *shost; beiscsi_conn_create() local 138 shost = iscsi_session_to_shost(cls_session); beiscsi_conn_create() 139 phba = iscsi_host_priv(shost); beiscsi_conn_create() 201 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); beiscsi_conn_bind() local 202 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_conn_bind() 245 phba->ipv4_iface = iscsi_create_iface(phba->shost, beiscsi_create_ipv4_iface() 264 phba->ipv6_iface = iscsi_create_iface(phba->shost, beiscsi_create_ipv6_iface() 302 beiscsi_set_static_ip(struct Scsi_Host *shost, beiscsi_set_static_ip() argument 306 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_set_static_ip() 355 * @shost: Scsi Host for the driver instance 366 beiscsi_set_vlan_tag(struct Scsi_Host *shost, beiscsi_set_vlan_tag() argument 369 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_set_vlan_tag() 399 beiscsi_set_ipv4(struct Scsi_Host *shost, beiscsi_set_ipv4() argument 403 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_set_ipv4() 416 ret = beiscsi_set_static_ip(shost, iface_param, beiscsi_set_ipv4() 431 ret = beiscsi_set_static_ip(shost, iface_param, beiscsi_set_ipv4() 436 ret = beiscsi_set_vlan_tag(shost, iface_param); beiscsi_set_ipv4() 448 beiscsi_set_ipv6(struct Scsi_Host *shost, beiscsi_set_ipv6() argument 452 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_set_ipv6() 477 int be2iscsi_iface_set_param(struct Scsi_Host *shost, be2iscsi_iface_set_param() argument 481 struct beiscsi_hba *phba = iscsi_host_priv(shost); be2iscsi_iface_set_param() 512 ret = beiscsi_set_ipv4(shost, iface_param, nla_for_each_attr() 516 ret = beiscsi_set_ipv6(shost, iface_param, nla_for_each_attr() 596 struct Scsi_Host *shost = iscsi_iface_to_shost(iface); be2iscsi_iface_get_param() local 597 struct beiscsi_hba *phba = iscsi_host_priv(shost); be2iscsi_iface_get_param() 748 * @shost : pointer to scsi_host structure 751 static void beiscsi_get_port_state(struct Scsi_Host *shost) beiscsi_get_port_state() argument 753 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_get_port_state() 754 struct iscsi_cls_host *ihost = shost->shost_data; beiscsi_get_port_state() 762 * @shost : pointer to scsi_host structure 766 static int beiscsi_get_port_speed(struct Scsi_Host *shost) beiscsi_get_port_speed() argument 772 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_get_port_speed() 773 struct iscsi_cls_host *ihost = shost->shost_data; beiscsi_get_port_speed() 812 * @shost: pointer to scsi_host structure 818 int beiscsi_get_host_param(struct Scsi_Host *shost, beiscsi_get_host_param() argument 821 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_get_host_param() 853 beiscsi_get_port_state(shost); beiscsi_get_host_param() 854 status = sprintf(buf, "%s\n", iscsi_get_port_state_name(shost)); beiscsi_get_host_param() 857 status = beiscsi_get_port_speed(shost); beiscsi_get_host_param() 863 status = sprintf(buf, "%s\n", iscsi_get_port_speed_name(shost)); beiscsi_get_host_param() 866 return iscsi_host_get_param(shost, param, buf); beiscsi_get_host_param() 1197 beiscsi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, beiscsi_ep_connect() argument 1205 if (shost) beiscsi_ep_connect() 1206 phba = iscsi_host_priv(shost); beiscsi_ep_connect() 1210 "beiscsi_ep_connect shost is NULL\n"); beiscsi_ep_connect()
|
H A D | be_iscsi.h | 41 int be2iscsi_iface_set_param(struct Scsi_Host *shost, 70 int beiscsi_get_host_param(struct Scsi_Host *shost, 80 struct iscsi_endpoint *beiscsi_ep_connect(struct Scsi_Host *shost,
|
H A D | be_main.c | 67 struct Scsi_Host *shost = class_to_shost(dev);\ 68 struct beiscsi_hba *phba = iscsi_host_priv(shost); \ 100 struct Scsi_Host *shost = class_to_shost(dev);\ 101 struct beiscsi_hba *phba = iscsi_host_priv(shost);\ 580 struct Scsi_Host *shost; beiscsi_hba_alloc() local 582 shost = iscsi_host_alloc(&beiscsi_sht, sizeof(*phba), 0); beiscsi_hba_alloc() 583 if (!shost) { beiscsi_hba_alloc() 588 shost->max_id = BE2_MAX_SESSIONS; beiscsi_hba_alloc() 589 shost->max_channel = 0; beiscsi_hba_alloc() 590 shost->max_cmd_len = BEISCSI_MAX_CMD_LEN; beiscsi_hba_alloc() 591 shost->max_lun = BEISCSI_NUM_MAX_LUN; beiscsi_hba_alloc() 592 shost->transportt = beiscsi_scsi_transport; beiscsi_hba_alloc() 593 phba = iscsi_host_priv(shost); beiscsi_hba_alloc() 595 phba->shost = shost; beiscsi_hba_alloc() 1009 phba->shost->host_no, i); beiscsi_init_irqs() 1029 phba->shost->host_no); beiscsi_init_irqs() 4384 scsi_host_put(phba->shost); beiscsi_boot_release() 4400 phba->boot_kset = iscsi_boot_create_host_kset(phba->shost->host_no); beiscsi_setup_boot_info() 4405 if (!scsi_host_get(phba->shost)) beiscsi_setup_boot_info() 4414 if (!scsi_host_get(phba->shost)) beiscsi_setup_boot_info() 4423 if (!scsi_host_get(phba->shost)) beiscsi_setup_boot_info() 4434 scsi_host_put(phba->shost); beiscsi_setup_boot_info() 5112 struct Scsi_Host *shost; beiscsi_bsg_request() local 5122 shost = iscsi_job_to_shost(job); beiscsi_bsg_request() 5123 phba = iscsi_host_priv(shost); beiscsi_bsg_request() 5263 iscsi_host_remove(phba->shost); beiscsi_remove() 5265 iscsi_host_free(phba->shost); beiscsi_remove() 5283 iscsi_host_for_each_session(phba->shost, be2iscsi_fail_session); beiscsi_shutdown() 5492 phba->shost->max_id = phba->params.cxns_per_ctrl; beiscsi_eeh_resume() 5493 phba->shost->can_queue = phba->params.ios_per_ctrl; beiscsi_eeh_resume() 5641 phba->shost->max_id = phba->params.cxns_per_ctrl; beiscsi_dev_probe() 5643 phba->shost->can_queue = phba->params.ios_per_ctrl; beiscsi_dev_probe() 5664 phba->shost->host_no); beiscsi_dev_probe() 5700 if (iscsi_host_add(phba->shost, &phba->pcidev->dev)) beiscsi_dev_probe() 5739 iscsi_host_free(phba->shost); beiscsi_dev_probe()
|
H A D | be_mgmt.c | 1448 struct Scsi_Host *shost = class_to_shost(dev); beiscsi_fw_ver_disp() local 1449 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_fw_ver_disp() 1467 struct Scsi_Host *shost = class_to_shost(dev); beiscsi_active_session_disp() local 1468 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_active_session_disp() 1499 struct Scsi_Host *shost = class_to_shost(dev); beiscsi_free_session_disp() local 1500 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_free_session_disp() 1530 struct Scsi_Host *shost = class_to_shost(dev); beiscsi_adap_family_disp() local 1531 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_adap_family_disp() 1567 struct Scsi_Host *shost = class_to_shost(dev); beiscsi_phys_port_disp() local 1568 struct beiscsi_hba *phba = iscsi_host_priv(shost); beiscsi_phys_port_disp()
|
H A D | be_cmds.c | 424 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); be2iscsi_fail_session() local 425 struct beiscsi_hba *phba = iscsi_host_priv(shost); be2iscsi_fail_session() 449 iscsi_host_for_each_session(phba->shost, beiscsi_async_link_state_process()
|
H A D | be_main.h | 390 struct Scsi_Host *shost; member in struct:beiscsi_hba 1076 shost_printk(level, phba->shost, \
|
/linux-4.1.27/drivers/scsi/sym53c8xx_2/ |
H A D | sym_glue.c | 491 void sym_log_bus_error(struct Scsi_Host *shost) sym_log_bus_error() argument 493 struct sym_data *sym_data = shost_priv(shost); sym_log_bus_error() 499 shost_printk(KERN_WARNING, shost, sym_log_bus_error() 546 struct Scsi_Host *shost = dev_id; sym53c8xx_intr() local 547 struct sym_data *sym_data = shost_priv(shost); sym53c8xx_intr() 556 spin_lock(shost->host_lock); sym53c8xx_intr() 557 result = sym_interrupt(shost); sym53c8xx_intr() 558 spin_unlock(shost->host_lock); sym53c8xx_intr() 594 struct Scsi_Host *shost = cmd->device->host; sym_eh_handler() local 595 struct sym_data *sym_data = shost_priv(shost); sym_eh_handler() 615 spin_lock_irq(shost->host_lock); sym_eh_handler() 623 spin_unlock_irq(shost->host_lock); sym_eh_handler() 628 spin_lock_irq(shost->host_lock); sym_eh_handler() 630 spin_unlock_irq(shost->host_lock); sym_eh_handler() 635 spin_lock_irq(shost->host_lock); sym_eh_handler() 660 sym_start_up(shost, 1); sym_eh_handler() 674 spin_unlock_irq(shost->host_lock); sym_eh_handler() 680 spin_unlock_irq(shost->host_lock); sym_eh_handler() 1033 static int sym_user_command(struct Scsi_Host *shost, char *buffer, int length) sym_user_command() argument 1035 struct sym_hcb *np = sym_get_hcb(shost); sym_user_command() 1162 spin_lock_irqsave(shost->host_lock, flags); sym_user_command() 1164 spin_unlock_irqrestore(shost->host_lock, flags); sym_user_command() 1175 static int sym_show_info(struct seq_file *m, struct Scsi_Host *shost) sym_show_info() argument 1178 struct sym_data *sym_data = shost_priv(shost); sym_show_info() 1254 struct Scsi_Host *shost = NULL; sym_attach() local 1271 shost = scsi_host_alloc(tpnt, sizeof(*sym_data)); sym_attach() 1272 if (!shost) sym_attach() 1274 sym_data = shost_priv(shost); sym_attach() 1288 np->s.host = shost; sym_attach() 1290 pci_set_drvdata(pdev, shost); sym_attach() 1322 if (sym_hcb_attach(shost, fw, dev->nvram)) sym_attach() 1331 shost)) { sym_attach() 1342 spin_lock_irqsave(shost->host_lock, flags); sym_attach() 1349 sym_start_up(shost, 1); sym_attach() 1364 shost->max_channel = 0; sym_attach() 1365 shost->this_id = np->myaddr; sym_attach() 1366 shost->max_id = np->maxwide ? 16 : 8; sym_attach() 1367 shost->max_lun = SYM_CONF_MAX_LUN; sym_attach() 1368 shost->unique_id = pci_resource_start(pdev, 0); sym_attach() 1369 shost->cmd_per_lun = SYM_CONF_MAX_TAG; sym_attach() 1370 shost->can_queue = (SYM_CONF_MAX_START-2); sym_attach() 1371 shost->sg_tablesize = SYM_CONF_MAX_SG; sym_attach() 1372 shost->max_cmd_len = 16; sym_attach() 1374 shost->transportt = sym2_transport_template; sym_attach() 1378 shost->dma_boundary = 0xFFFFFF; sym_attach() 1380 spin_unlock_irqrestore(shost->host_lock, flags); sym_attach() 1382 return shost; sym_attach() 1387 spin_unlock_irqrestore(shost->host_lock, flags); sym_attach() 1394 if (shost) sym_attach() 1395 scsi_host_put(shost); sym_attach() 1625 static int sym_detach(struct Scsi_Host *shost, struct pci_dev *pdev) sym_detach() argument 1627 struct sym_hcb *np = sym_get_hcb(shost); sym_detach() 1644 scsi_host_put(shost); sym_detach() 1682 struct Scsi_Host *shost; sym2_probe() local 1719 shost = sym_attach(&sym2_template, attach_count, &sym_dev); sym2_probe() 1720 if (!shost) sym2_probe() 1723 if (scsi_add_host(shost, &pdev->dev)) sym2_probe() 1725 scsi_scan_host(shost); sym2_probe() 1746 struct Scsi_Host *shost = pci_get_drvdata(pdev); sym2_remove() local 1748 scsi_remove_host(shost); sym2_remove() 1749 sym_detach(shost, pdev); sym2_remove() 1783 struct Scsi_Host *shost = pci_get_drvdata(pdev); sym2_io_slot_dump() local 1785 sym_dump_registers(shost); sym2_io_slot_dump() 1825 struct Scsi_Host *shost = pci_get_drvdata(pdev); sym2_io_slot_reset() local 1826 struct sym_hcb *np = sym_get_hcb(shost); sym2_io_slot_reset() 1856 sym_start_up(shost, 1); sym2_io_slot_reset() 1872 struct Scsi_Host *shost = pci_get_drvdata(pdev); sym2_io_resume() local 1873 struct sym_data *sym_data = shost_priv(shost); sym2_io_resume() 1875 spin_lock_irq(shost->host_lock); sym2_io_resume() 1878 spin_unlock_irq(shost->host_lock); sym2_io_resume() 1881 static void sym2_get_signalling(struct Scsi_Host *shost) sym2_get_signalling() argument 1883 struct sym_hcb *np = sym_get_hcb(shost); sym2_get_signalling() 1900 spi_signalling(shost) = type; sym2_get_signalling() 1905 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); sym2_set_offset() local 1906 struct sym_hcb *np = sym_get_hcb(shost); sym2_set_offset() 1915 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); sym2_set_period() local 1916 struct sym_hcb *np = sym_get_hcb(shost); sym2_set_period() 1930 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); sym2_set_width() local 1931 struct sym_hcb *np = sym_get_hcb(shost); sym2_set_width() 1945 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); sym2_set_dt() local 1946 struct sym_hcb *np = sym_get_hcb(shost); sym2_set_dt() 1960 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 1961 struct sym_hcb *np = sym_get_hcb(shost); 1973 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 1974 struct sym_hcb *np = sym_get_hcb(shost);
|
H A D | sym_nvram.h | 196 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram); 201 static inline void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) { } sym_nvram_setup_target() argument
|
H A D | sym_fw.c | 107 sym_fw1_patch(struct Scsi_Host *shost) sym_fw1_patch() argument 109 struct sym_hcb *np = sym_get_hcb(shost); sym_fw1_patch() 149 sym_fw2_patch(struct Scsi_Host *shost) sym_fw2_patch() argument 151 struct sym_data *sym_data = shost_priv(shost); sym_fw2_patch()
|
H A D | sym_hipd.c | 682 static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) sym_prepare_setting() argument 684 struct sym_data *sym_data = shost_priv(shost); sym_prepare_setting() 865 sym_nvram_setup_host(shost, np, nvram); sym_prepare_setting() 1130 static void sym_log_hard_error(struct Scsi_Host *shost, u_short sist, u_char dstat) sym_log_hard_error() argument 1132 struct sym_hcb *np = sym_get_hcb(shost); sym_log_hard_error() 1185 sym_log_bus_error(shost); sym_log_hard_error() 1188 void sym_dump_registers(struct Scsi_Host *shost) sym_dump_registers() argument 1190 struct sym_hcb *np = sym_get_hcb(shost); sym_dump_registers() 1196 sym_log_hard_error(shost, sist, dstat); sym_dump_registers() 1703 void sym_start_up(struct Scsi_Host *shost, int reason) sym_start_up() argument 1705 struct sym_data *sym_data = shost_priv(shost); sym_start_up() 1756 np->fw_patch(shost); sym_start_up() 2268 static void sym_int_sbmc(struct Scsi_Host *shost) sym_int_sbmc() argument 2270 struct sym_hcb *np = sym_get_hcb(shost); sym_int_sbmc() 2283 sym_start_up(shost, 2); sym_int_sbmc() 2812 irqreturn_t sym_interrupt(struct Scsi_Host *shost) sym_interrupt() argument 2814 struct sym_data *sym_data = shost_priv(shost); sym_interrupt() 2927 sym_start_up(shost, 1); sym_interrupt() 2936 if (sist & SBMC) sym_int_sbmc(shost); sym_interrupt() 2950 sym_log_hard_error(shost, sist, dstat); sym_interrupt() 5580 int sym_hcb_attach(struct Scsi_Host *shost, struct sym_fw *fw, struct sym_nvram *nvram) sym_hcb_attach() argument 5582 struct sym_hcb *np = sym_get_hcb(shost); sym_hcb_attach() 5612 sym_prepare_setting(shost, np, nvram); sym_hcb_attach()
|
H A D | sym_nvram.c | 50 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) sym_nvram_setup_host() argument 64 shost->reverse_ordering = 1; sym_nvram_setup_host()
|
H A D | sym_hipd.h | 1074 int sym_hcb_attach(struct Scsi_Host *shost, struct sym_fw *fw, struct sym_nvram *nvram);
|
/linux-4.1.27/drivers/scsi/libsas/ |
H A D | sas_init.c | 194 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_get_linkerrors() local 195 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); sas_get_linkerrors() 198 to_sas_internal(sas_ha->core.shost->transportt); sas_get_linkerrors() 243 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); transport_sas_phy_reset() local 244 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); transport_sas_phy_reset() 247 to_sas_internal(sas_ha->core.shost->transportt); transport_sas_phy_reset() 277 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_phy_enable() local 278 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); sas_phy_enable() 281 to_sas_internal(sas_ha->core.shost->transportt); sas_phy_enable() 313 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_phy_reset() local 314 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); sas_phy_reset() 317 to_sas_internal(sas_ha->core.shost->transportt); sas_phy_reset() 348 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); sas_set_phy_speed() local 349 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); sas_set_phy_speed() 352 to_sas_internal(sas_ha->core.shost->transportt); sas_set_phy_speed() 427 scsi_unblock_requests(ha->core.shost); sas_resume_ha() 437 scsi_block_requests(ha->core.shost); sas_suspend_ha() 489 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); queue_phy_reset() local 490 struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); queue_phy_reset() 516 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); queue_phy_enable() local 517 struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); queue_phy_enable()
|
H A D | sas_scsi_host.c | 307 to_sas_internal(task->dev->port->ha->core.shost->transportt); sas_scsi_find_task() 355 to_sas_internal(dev->port->ha->core.shost->transportt); sas_recover_lu() 383 to_sas_internal(dev->port->ha->core.shost->transportt); sas_recover_I_T() 438 if (scsi_host_in_recovery(ha->core.shost)) { sas_wait_eh() 469 scsi_schedule_eh(ha->core.shost); sas_queue_reset() 557 struct Scsi_Host *shost = cmd->device->host; try_to_reset_cmd_device() local 559 if (!shost->hostt->eh_device_reset_handler) try_to_reset_cmd_device() 562 res = shost->hostt->eh_device_reset_handler(cmd); try_to_reset_cmd_device() 567 if (shost->hostt->eh_bus_reset_handler) try_to_reset_cmd_device() 568 return shost->hostt->eh_bus_reset_handler(cmd); try_to_reset_cmd_device() 573 static void sas_eh_handle_sas_errors(struct Scsi_Host *shost, struct list_head *work_q) sas_eh_handle_sas_errors() argument 578 struct sas_internal *i = to_sas_internal(shost->transportt); sas_eh_handle_sas_errors() 580 struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); sas_eh_handle_sas_errors() 711 static void sas_eh_handle_resets(struct Scsi_Host *shost) sas_eh_handle_resets() argument 713 struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); sas_eh_handle_resets() 714 struct sas_internal *i = to_sas_internal(shost->transportt); sas_eh_handle_resets() 745 void sas_scsi_recover_host(struct Scsi_Host *shost) sas_scsi_recover_host() argument 747 struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); sas_scsi_recover_host() 755 spin_lock_irq(shost->host_lock); sas_scsi_recover_host() 756 list_splice_init(&shost->eh_cmd_q, &eh_work_q); sas_scsi_recover_host() 757 spin_unlock_irq(shost->host_lock); sas_scsi_recover_host() 760 __func__, atomic_read(&shost->host_busy), shost->host_failed); sas_scsi_recover_host() 767 sas_eh_handle_sas_errors(shost, &eh_work_q); sas_scsi_recover_host() 778 sas_ata_eh(shost, &eh_work_q, &ha->eh_done_q); sas_scsi_recover_host() 780 scsi_eh_ready_devs(shost, &eh_work_q, &ha->eh_done_q); sas_scsi_recover_host() 783 sas_eh_handle_resets(shost); sas_scsi_recover_host() 786 sas_ata_strategy_handler(shost); sas_scsi_recover_host() 793 shost->host_eh_scheduled = 0; sas_scsi_recover_host() 802 __func__, atomic_read(&shost->host_busy), sas_scsi_recover_host() 803 shost->host_failed, tries); sas_scsi_recover_host() 825 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent); sas_find_dev_by_rphy() local 826 struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); sas_find_dev_by_rphy() 981 int sas_request_addr(struct Scsi_Host *shost, u8 *addr) sas_request_addr() argument 986 res = request_firmware(&fw, "sas_addr", &shost->shost_gendev); sas_request_addr()
|
H A D | sas_host_smp.c | 120 struct sas_internal *i = to_sas_internal(sas_ha->core.shost->transportt); sas_host_smp_write_gpio() 188 to_sas_internal(sas_ha->core.shost->transportt); sas_phy_control() 228 int sas_smp_host_handler(struct Scsi_Host *shost, struct request *req, sas_smp_host_handler() argument 232 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); sas_smp_host_handler() 241 shost_printk(KERN_ERR, shost, sas_smp_host_handler() 287 memcpy(resp_data + 12, shost->hostt->name, sas_smp_host_handler()
|
H A D | sas_discover.c | 181 struct Scsi_Host *shost = sas_ha->core.shost; sas_notify_lldd_dev_found() local 182 struct sas_internal *i = to_sas_internal(shost->transportt); sas_notify_lldd_dev_found() 203 struct Scsi_Host *shost = sas_ha->core.shost; sas_notify_lldd_dev_gone() local 204 struct sas_internal *i = to_sas_internal(shost->transportt); sas_notify_lldd_dev_gone() 249 struct Scsi_Host *shost = port->ha->core.shost; sas_suspend_devices() local 250 struct sas_internal *si = to_sas_internal(shost->transportt); sas_suspend_devices() 537 scsi_queue_work(ha->core.shost, &sw->work); sas_chain_work()
|
H A D | sas_phy.c | 59 to_sas_internal(sas_ha->core.shost->transportt); sas_phye_oob_error() 89 to_sas_internal(sas_ha->core.shost->transportt); sas_phye_spinup_hold() 162 phy->phy = sas_phy_alloc(&sas_ha->core.shost->shost_gendev, i); sas_register_phys()
|
H A D | sas_ata.c | 187 struct Scsi_Host *host = sas_ha->core.shost; sas_ata_qc_issue() 272 return to_sas_internal(dev->port->ha->core.shost->transportt); dev_to_sas_internal() 561 struct Scsi_Host *shost = ha->core.shost; sas_ata_init() local 568 shost); sas_ata_init() 576 ap->scsi_host = shost; sas_ata_init() 746 ata_scsi_port_error_handler(ha->core.shost, ap); async_sas_ata_eh() 750 void sas_ata_strategy_handler(struct Scsi_Host *shost) sas_ata_strategy_handler() argument 752 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); sas_ata_strategy_handler() 793 void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, sas_ata_eh() argument 818 ata_scsi_cmd_error_handler(shost, ap, &sata_q);
|
H A D | sas_internal.h | 54 void sas_scsi_recover_host(struct Scsi_Host *shost); 103 extern int sas_smp_host_handler(struct Scsi_Host *shost, struct request *req, 106 static inline int sas_smp_host_handler(struct Scsi_Host *shost, sas_smp_host_handler() argument 110 shost_printk(KERN_ERR, shost, sas_smp_host_handler()
|
H A D | sas_event.c | 40 scsi_queue_work(ha->core.shost, &sw->work); sas_queue_work() 59 struct workqueue_struct *wq = ha->core.shost->work_q; __sas_drain_work()
|
H A D | sas_port.c | 47 struct sas_internal *si = to_sas_internal(sas_ha->core.shost->transportt); sas_resume_port() 98 to_sas_internal(sas_ha->core.shost->transportt); sas_form_port() 209 to_sas_internal(sas_ha->core.shost->transportt); sas_deform_port()
|
H A D | sas_expander.c | 73 to_sas_internal(dev->port->ha->core.shost->transportt); smp_execute_task() 2133 int sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, sas_smp_handler() argument 2148 return sas_smp_host_handler(shost, req, rsp); sas_smp_handler()
|
/linux-4.1.27/drivers/usb/storage/ |
H A D | uas.c | 252 struct Scsi_Host *shost = urb->context; uas_stat_cmplt() local 253 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; uas_stat_cmplt() 911 struct Scsi_Host *shost = NULL; uas_probe() local 922 shost = scsi_host_alloc(&uas_host_template, uas_probe() 924 if (!shost) uas_probe() 927 shost->max_cmd_len = 16 + 252; uas_probe() 928 shost->max_id = 1; uas_probe() 929 shost->max_lun = 256; uas_probe() 930 shost->max_channel = 0; uas_probe() 931 shost->sg_tablesize = udev->bus->sg_tablesize; uas_probe() 933 devinfo = (struct uas_dev_info *)shost->hostdata; uas_probe() 949 result = scsi_init_shared_tag_map(shost, devinfo->qdepth - 2); uas_probe() 953 usb_set_intfdata(intf, shost); uas_probe() 954 result = scsi_add_host(shost, &intf->dev); uas_probe() 958 scsi_scan_host(shost); uas_probe() 966 if (shost) uas_probe() 967 scsi_host_put(shost); uas_probe() 1021 struct Scsi_Host *shost = usb_get_intfdata(intf); uas_pre_reset() local 1022 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; uas_pre_reset() 1029 spin_lock_irqsave(shost->host_lock, flags); uas_pre_reset() 1030 scsi_block_requests(shost); uas_pre_reset() 1031 spin_unlock_irqrestore(shost->host_lock, flags); uas_pre_reset() 1034 shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__); uas_pre_reset() 1035 scsi_unblock_requests(shost); uas_pre_reset() 1046 struct Scsi_Host *shost = usb_get_intfdata(intf); uas_post_reset() local 1047 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; uas_post_reset() 1056 shost_printk(KERN_ERR, shost, uas_post_reset() 1062 spin_lock_irqsave(shost->host_lock, flags); uas_post_reset() 1063 scsi_report_bus_reset(shost, 0); uas_post_reset() 1064 spin_unlock_irqrestore(shost->host_lock, flags); uas_post_reset() 1066 scsi_unblock_requests(shost); uas_post_reset() 1073 struct Scsi_Host *shost = usb_get_intfdata(intf); uas_suspend() local 1074 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; uas_suspend() 1077 shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__); uas_suspend() 1091 struct Scsi_Host *shost = usb_get_intfdata(intf); uas_reset_resume() local 1092 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; uas_reset_resume() 1098 shost_printk(KERN_ERR, shost, uas_reset_resume() 1104 spin_lock_irqsave(shost->host_lock, flags); uas_reset_resume() 1105 scsi_report_bus_reset(shost, 0); uas_reset_resume() 1106 spin_unlock_irqrestore(shost->host_lock, flags); uas_reset_resume() 1113 struct Scsi_Host *shost = usb_get_intfdata(intf); uas_disconnect() local 1114 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; uas_disconnect() 1127 scsi_remove_host(shost); uas_disconnect() 1129 scsi_host_put(shost); uas_disconnect() 1141 struct Scsi_Host *shost = usb_get_intfdata(intf); uas_shutdown() local 1142 struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; uas_shutdown()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_attr.c | 121 struct Scsi_Host *shost = class_to_shost(dev); lpfc_enable_fip_show() local 122 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_enable_fip_show() 135 struct Scsi_Host *shost = class_to_shost(dev); lpfc_bg_info_show() local 136 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_bg_info_show() 154 struct Scsi_Host *shost = class_to_shost(dev); lpfc_bg_guard_err_show() local 155 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_bg_guard_err_show() 166 struct Scsi_Host *shost = class_to_shost(dev); lpfc_bg_apptag_err_show() local 167 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_bg_apptag_err_show() 178 struct Scsi_Host *shost = class_to_shost(dev); lpfc_bg_reftag_err_show() local 179 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_bg_reftag_err_show() 215 struct Scsi_Host *shost = class_to_shost(dev); lpfc_serialnum_show() local 216 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_serialnum_show() 238 struct Scsi_Host *shost = class_to_shost(dev); lpfc_temp_sensor_show() local 239 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_temp_sensor_show() 256 struct Scsi_Host *shost = class_to_shost(dev); lpfc_modeldesc_show() local 257 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_modeldesc_show() 275 struct Scsi_Host *shost = class_to_shost(dev); lpfc_modelname_show() local 276 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_modelname_show() 294 struct Scsi_Host *shost = class_to_shost(dev); lpfc_programtype_show() local 295 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_programtype_show() 312 struct Scsi_Host *shost = class_to_shost(dev); lpfc_mlomgmt_show() local 313 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; lpfc_mlomgmt_show() 332 struct Scsi_Host *shost = class_to_shost(dev); lpfc_vportnum_show() local 333 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_vportnum_show() 351 struct Scsi_Host *shost = class_to_shost(dev); lpfc_fwrev_show() local 352 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_fwrev_show() 385 struct Scsi_Host *shost = class_to_shost(dev); lpfc_hdw_show() local 386 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_hdw_show() 406 struct Scsi_Host *shost = class_to_shost(dev); lpfc_option_rom_version_show() local 407 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_option_rom_version_show() 433 struct Scsi_Host *shost = class_to_shost(dev); lpfc_link_state_show() local 434 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_link_state_show() 520 struct Scsi_Host *shost = class_to_shost(dev); lpfc_sli4_protocol_show() local 521 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_sli4_protocol_show() 549 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_supported_show() local 550 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; lpfc_oas_supported_show() 573 struct Scsi_Host *shost = class_to_shost(dev); lpfc_link_state_store() local 574 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_link_state_store() 608 struct Scsi_Host *shost = class_to_shost(dev); lpfc_num_discovered_ports_show() local 609 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_num_discovered_ports_show() 617 * @shost: Scsi_Host pointer. 630 lpfc_issue_lip(struct Scsi_Host *shost) lpfc_issue_lip() argument 632 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_issue_lip() 819 struct Scsi_Host *shost = class_to_shost(dev); lpfc_issue_reset() local 820 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_issue_reset() 1014 struct Scsi_Host *shost = class_to_shost(dev); lpfc_nport_evt_cnt_show() local 1015 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_nport_evt_cnt_show() 1033 struct Scsi_Host *shost = class_to_shost(dev); lpfc_board_mode_show() local 1034 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_board_mode_show() 1067 struct Scsi_Host *shost = class_to_shost(dev); lpfc_board_mode_store() local 1068 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_board_mode_store() 1252 struct Scsi_Host *shost = class_to_shost(dev); lpfc_max_rpi_show() local 1253 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_max_rpi_show() 1280 struct Scsi_Host *shost = class_to_shost(dev); lpfc_used_rpi_show() local 1281 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_used_rpi_show() 1308 struct Scsi_Host *shost = class_to_shost(dev); lpfc_max_xri_show() local 1309 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_max_xri_show() 1336 struct Scsi_Host *shost = class_to_shost(dev); lpfc_used_xri_show() local 1337 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_used_xri_show() 1364 struct Scsi_Host *shost = class_to_shost(dev); lpfc_max_vpi_show() local 1365 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_max_vpi_show() 1392 struct Scsi_Host *shost = class_to_shost(dev); lpfc_used_vpi_show() local 1393 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_used_vpi_show() 1419 struct Scsi_Host *shost = class_to_shost(dev); lpfc_npiv_info_show() local 1420 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_npiv_info_show() 1445 struct Scsi_Host *shost = class_to_shost(dev); lpfc_poll_show() local 1446 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_poll_show() 1470 struct Scsi_Host *shost = class_to_shost(dev); lpfc_poll_store() local 1471 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_poll_store() 1549 struct Scsi_Host *shost = class_to_shost(dev); lpfc_fips_level_show() local 1550 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_fips_level_show() 1568 struct Scsi_Host *shost = class_to_shost(dev); lpfc_fips_rev_show() local 1569 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_fips_rev_show() 1587 struct Scsi_Host *shost = class_to_shost(dev); lpfc_dss_show() local 1588 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_dss_show() 1614 struct Scsi_Host *shost = class_to_shost(dev); lpfc_sriov_hw_max_virtfn_show() local 1615 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_sriov_hw_max_virtfn_show() 1642 struct Scsi_Host *shost = class_to_shost(dev);\ 1643 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ 1670 struct Scsi_Host *shost = class_to_shost(dev);\ 1671 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ 1776 struct Scsi_Host *shost = class_to_shost(dev);\ 1777 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ 1809 struct Scsi_Host *shost = class_to_shost(dev);\ 1810 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ 1836 struct Scsi_Host *shost = class_to_shost(dev);\ 1837 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ 1934 struct Scsi_Host *shost = class_to_shost(dev);\ 1935 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ 2145 struct Scsi_Host *shost = class_to_shost(dev); lpfc_soft_wwn_enable_store() local 2146 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_soft_wwn_enable_store() 2189 struct Scsi_Host *shost = class_to_shost(dev); lpfc_soft_wwpn_show() local 2190 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_soft_wwpn_show() 2214 struct Scsi_Host *shost = class_to_shost(dev); lpfc_soft_wwpn_store() local 2215 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_soft_wwpn_store() 2249 fc_host_port_name(shost) = phba->cfg_soft_wwpn; lpfc_soft_wwpn_store() 2251 fc_host_node_name(shost) = phba->cfg_soft_wwnn; lpfc_soft_wwpn_store() 2289 struct Scsi_Host *shost = class_to_shost(dev); lpfc_soft_wwnn_show() local 2290 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_soft_wwnn_show() 2309 struct Scsi_Host *shost = class_to_shost(dev); lpfc_soft_wwnn_store() local 2310 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_soft_wwnn_store() 2355 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_tgt_show() local 2356 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_tgt_show() 2379 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_tgt_store() local 2380 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_tgt_store() 2423 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_vpt_show() local 2424 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_vpt_show() 2447 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_vpt_store() local 2448 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_vpt_store() 2492 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_lun_state_show() local 2493 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_lun_state_show() 2516 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_lun_state_store() local 2517 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_lun_state_store() 2554 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_lun_status_show() local 2555 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_lun_status_show() 2685 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_lun_show() local 2686 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_lun_show() 2732 struct Scsi_Host *shost = class_to_shost(dev); lpfc_oas_lun_store() local 2733 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_oas_lun_store() 2832 struct Scsi_Host *shost = class_to_shost(dev); lpfc_iocb_hw_show() local 2833 struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; lpfc_iocb_hw_show() 2843 struct Scsi_Host *shost = class_to_shost(dev); lpfc_txq_hw_show() local 2844 struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; lpfc_txq_hw_show() 2856 struct Scsi_Host *shost = class_to_shost(dev); lpfc_txcmplq_hw_show() local 2857 struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; lpfc_txcmplq_hw_show() 2898 struct Scsi_Host *shost = class_to_shost(dev); lpfc_nodev_tmo_show() local 2899 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_nodev_tmo_show() 2955 struct Scsi_Host *shost; lpfc_update_rport_devloss_tmo() local 2958 shost = lpfc_shost_from_vport(vport); lpfc_update_rport_devloss_tmo() 2959 spin_lock_irq(shost->host_lock); lpfc_update_rport_devloss_tmo() 2963 spin_unlock_irq(shost->host_lock); lpfc_update_rport_devloss_tmo() 3264 struct Scsi_Host *shost = class_to_shost(dev); lpfc_topology_store() local 3265 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_topology_store() 3338 struct Scsi_Host *shost = class_to_shost(dev); lpfc_static_vport_show() local 3339 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_static_vport_show() 3377 struct Scsi_Host *shost = class_to_shost(dev); lpfc_stat_data_ctrl_store() local 3378 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_stat_data_ctrl_store() 3462 spin_lock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3467 spin_unlock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3480 spin_lock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3482 spin_unlock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3487 spin_unlock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3492 spin_lock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3494 spin_unlock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3499 spin_unlock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3507 spin_lock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3511 spin_unlock_irq(shost->host_lock); lpfc_stat_data_ctrl_store() 3531 struct Scsi_Host *shost = class_to_shost(dev); lpfc_stat_data_ctrl_show() local 3532 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_stat_data_ctrl_show() 3615 struct Scsi_Host *shost = class_to_shost(dev); sysfs_drvr_stat_data_read() local 3616 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; sysfs_drvr_stat_data_read() 3628 spin_lock_irq(shost->host_lock); sysfs_drvr_stat_data_read() 3666 spin_unlock_irq(shost->host_lock); sysfs_drvr_stat_data_read() 3706 struct Scsi_Host *shost = class_to_shost(dev); lpfc_link_speed_store() local 3707 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_link_speed_store() 3854 struct Scsi_Host *shost = class_to_shost(dev); lpfc_aer_support_store() local 3855 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; lpfc_aer_support_store() 3970 struct Scsi_Host *shost = class_to_shost(dev); lpfc_aer_cleanup_state() local 3971 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_aer_cleanup_state() 4037 struct Scsi_Host *shost = class_to_shost(dev); lpfc_sriov_nr_virtfn_store() local 4038 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; lpfc_sriov_nr_virtfn_store() 4144 struct Scsi_Host *shost = class_to_shost(dev); lpfc_request_firmware_upgrade_store() local 4145 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; lpfc_request_firmware_upgrade_store() 4216 struct Scsi_Host *shost = class_to_shost(dev); lpfc_fcp_imax_store() local 4217 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; lpfc_fcp_imax_store() 4305 struct Scsi_Host *shost = class_to_shost(dev); lpfc_fcp_cpu_map_show() local 4306 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; lpfc_fcp_cpu_map_show() 4483 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_max_scsicmpl_time_set() local 4492 spin_lock_irq(shost->host_lock); lpfc_max_scsicmpl_time_set() 4500 spin_unlock_irq(shost->host_lock); lpfc_max_scsicmpl_time_set() 4929 struct Scsi_Host *shost = class_to_shost(dev); sysfs_ctlreg_write() local 4930 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; sysfs_ctlreg_write() 4989 struct Scsi_Host *shost = class_to_shost(dev); sysfs_ctlreg_read() local 4990 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; sysfs_ctlreg_read() 5098 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_alloc_sysfs_attr() local 5101 error = sysfs_create_bin_file(&shost->shost_dev.kobj, lpfc_alloc_sysfs_attr() 5108 error = sysfs_create_bin_file(&shost->shost_dev.kobj, lpfc_alloc_sysfs_attr() 5113 error = sysfs_create_bin_file(&shost->shost_dev.kobj, lpfc_alloc_sysfs_attr() 5120 sysfs_remove_bin_file(&shost->shost_dev.kobj, &sysfs_ctlreg_attr); lpfc_alloc_sysfs_attr() 5122 sysfs_remove_bin_file(&shost->shost_dev.kobj, lpfc_alloc_sysfs_attr() 5135 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_free_sysfs_attr() local 5136 sysfs_remove_bin_file(&shost->shost_dev.kobj, lpfc_free_sysfs_attr() 5141 sysfs_remove_bin_file(&shost->shost_dev.kobj, &sysfs_mbox_attr); lpfc_free_sysfs_attr() 5142 sysfs_remove_bin_file(&shost->shost_dev.kobj, &sysfs_ctlreg_attr); lpfc_free_sysfs_attr() 5152 * @shost: kernel scsi host pointer. 5155 lpfc_get_host_port_id(struct Scsi_Host *shost) lpfc_get_host_port_id() argument 5157 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_get_host_port_id() 5160 fc_host_port_id(shost) = vport->fc_myDID; lpfc_get_host_port_id() 5165 * @shost: kernel scsi host pointer. 5168 lpfc_get_host_port_type(struct Scsi_Host *shost) lpfc_get_host_port_type() argument 5170 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_get_host_port_type() 5173 spin_lock_irq(shost->host_lock); lpfc_get_host_port_type() 5176 fc_host_port_type(shost) = FC_PORTTYPE_NPIV; lpfc_get_host_port_type() 5180 fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; lpfc_get_host_port_type() 5182 fc_host_port_type(shost) = FC_PORTTYPE_LPORT; lpfc_get_host_port_type() 5185 fc_host_port_type(shost) = FC_PORTTYPE_NPORT; lpfc_get_host_port_type() 5187 fc_host_port_type(shost) = FC_PORTTYPE_PTP; lpfc_get_host_port_type() 5190 fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN; lpfc_get_host_port_type() 5192 spin_unlock_irq(shost->host_lock); lpfc_get_host_port_type() 5197 * @shost: kernel scsi host pointer. 5200 lpfc_get_host_port_state(struct Scsi_Host *shost) lpfc_get_host_port_state() argument 5202 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_get_host_port_state() 5205 spin_lock_irq(shost->host_lock); lpfc_get_host_port_state() 5208 fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; lpfc_get_host_port_state() 5213 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; lpfc_get_host_port_state() 5220 fc_host_port_state(shost) = lpfc_get_host_port_state() 5223 fc_host_port_state(shost) = lpfc_get_host_port_state() 5227 fc_host_port_state(shost) = FC_PORTSTATE_ERROR; lpfc_get_host_port_state() 5230 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; lpfc_get_host_port_state() 5235 spin_unlock_irq(shost->host_lock); lpfc_get_host_port_state() 5240 * @shost: kernel scsi host pointer. 5243 lpfc_get_host_speed(struct Scsi_Host *shost) lpfc_get_host_speed() argument 5245 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_get_host_speed() 5248 spin_lock_irq(shost->host_lock); lpfc_get_host_speed() 5253 fc_host_speed(shost) = FC_PORTSPEED_1GBIT; lpfc_get_host_speed() 5256 fc_host_speed(shost) = FC_PORTSPEED_2GBIT; lpfc_get_host_speed() 5259 fc_host_speed(shost) = FC_PORTSPEED_4GBIT; lpfc_get_host_speed() 5262 fc_host_speed(shost) = FC_PORTSPEED_8GBIT; lpfc_get_host_speed() 5265 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; lpfc_get_host_speed() 5268 fc_host_speed(shost) = FC_PORTSPEED_16GBIT; lpfc_get_host_speed() 5271 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; lpfc_get_host_speed() 5275 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; lpfc_get_host_speed() 5277 spin_unlock_irq(shost->host_lock); lpfc_get_host_speed() 5282 * @shost: kernel scsi host pointer. 5285 lpfc_get_host_fabric_name (struct Scsi_Host *shost) lpfc_get_host_fabric_name() argument 5287 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_get_host_fabric_name() 5291 spin_lock_irq(shost->host_lock); lpfc_get_host_fabric_name() 5302 spin_unlock_irq(shost->host_lock); lpfc_get_host_fabric_name() 5304 fc_host_fabric_name(shost) = node_name; lpfc_get_host_fabric_name() 5309 * @shost: kernel scsi host pointer. 5320 lpfc_get_stats(struct Scsi_Host *shost) lpfc_get_stats() argument 5322 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_get_stats() 5444 * @shost: kernel scsi host pointer. 5447 lpfc_reset_stats(struct Scsi_Host *shost) lpfc_reset_stats() argument 5449 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_reset_stats() 5537 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); lpfc_get_node_by_target() local 5538 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_get_node_by_target() 5541 spin_lock_irq(shost->host_lock); lpfc_get_node_by_target() 5547 spin_unlock_irq(shost->host_lock); lpfc_get_node_by_target() 5551 spin_unlock_irq(shost->host_lock); lpfc_get_node_by_target()
|
H A D | lpfc_nportdisc.c | 276 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_plogi() local 455 spin_lock_irq(shost->host_lock); lpfc_rcv_plogi() 457 spin_unlock_irq(shost->host_lock); lpfc_rcv_plogi() 481 spin_lock_irq(shost->host_lock); lpfc_rcv_plogi() 483 spin_unlock_irq(shost->host_lock); lpfc_rcv_plogi() 538 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_padisc() local 614 spin_lock_irq(shost->host_lock); lpfc_rcv_padisc() 616 spin_unlock_irq(shost->host_lock); lpfc_rcv_padisc() 627 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_logo() local 636 spin_lock_irq(shost->host_lock); lpfc_rcv_logo() 638 spin_unlock_irq(shost->host_lock); lpfc_rcv_logo() 647 spin_lock_irq(shost->host_lock); lpfc_rcv_logo() 649 spin_unlock_irq(shost->host_lock); lpfc_rcv_logo() 671 spin_lock_irq(shost->host_lock); lpfc_rcv_logo() 673 spin_unlock_irq(shost->host_lock); lpfc_rcv_logo() 677 spin_lock_irq(shost->host_lock); lpfc_rcv_logo() 679 spin_unlock_irq(shost->host_lock); lpfc_rcv_logo() 689 spin_lock_irq(shost->host_lock); lpfc_rcv_logo() 691 spin_unlock_irq(shost->host_lock); lpfc_rcv_logo() 699 spin_lock_irq(shost->host_lock); lpfc_rcv_logo() 701 spin_unlock_irq(shost->host_lock); lpfc_rcv_logo() 757 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_disc_set_adisc() local 769 spin_lock_irq(shost->host_lock); lpfc_disc_set_adisc() 771 spin_unlock_irq(shost->host_lock); lpfc_disc_set_adisc() 884 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_logo_unused_node() local 887 spin_lock_irq(shost->host_lock); lpfc_rcv_logo_unused_node() 889 spin_unlock_irq(shost->host_lock); lpfc_rcv_logo_unused_node() 921 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_plogi_plogi_issue() local 950 spin_lock_irq(shost->host_lock); lpfc_rcv_plogi_plogi_issue() 952 spin_unlock_irq(shost->host_lock); lpfc_rcv_plogi_plogi_issue() 956 spin_lock_irq(shost->host_lock); lpfc_rcv_plogi_plogi_issue() 958 spin_unlock_irq(shost->host_lock); lpfc_rcv_plogi_plogi_issue() 999 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_els_plogi_issue() local 1014 spin_lock_irq(shost->host_lock); lpfc_rcv_els_plogi_issue() 1016 spin_unlock_irq(shost->host_lock); lpfc_rcv_els_plogi_issue() 1031 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_plogi_plogi_issue() local 1167 spin_lock_irq(shost->host_lock); lpfc_cmpl_plogi_plogi_issue() 1169 spin_unlock_irq(shost->host_lock); lpfc_cmpl_plogi_plogi_issue() 1203 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_rm_plogi_issue() local 1206 spin_lock_irq(shost->host_lock); lpfc_device_rm_plogi_issue() 1208 spin_unlock_irq(shost->host_lock); lpfc_device_rm_plogi_issue() 1225 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_recov_plogi_issue() local 1239 spin_lock_irq(shost->host_lock); lpfc_device_recov_plogi_issue() 1241 spin_unlock_irq(shost->host_lock); lpfc_device_recov_plogi_issue() 1250 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_plogi_adisc_issue() local 1261 spin_lock_irq(shost->host_lock); lpfc_rcv_plogi_adisc_issue() 1263 spin_unlock_irq(shost->host_lock); lpfc_rcv_plogi_adisc_issue() 1333 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_adisc_adisc_issue() local 1351 spin_lock_irq(shost->host_lock); lpfc_cmpl_adisc_adisc_issue() 1353 spin_unlock_irq(shost->host_lock); lpfc_cmpl_adisc_adisc_issue() 1389 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_rm_adisc_issue() local 1392 spin_lock_irq(shost->host_lock); lpfc_device_rm_adisc_issue() 1394 spin_unlock_irq(shost->host_lock); lpfc_device_rm_adisc_issue() 1411 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_recov_adisc_issue() local 1425 spin_lock_irq(shost->host_lock); lpfc_device_recov_adisc_issue() 1427 spin_unlock_irq(shost->host_lock); lpfc_device_recov_adisc_issue() 1532 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_reglogin_reglogin_issue() local 1558 spin_lock_irq(shost->host_lock); lpfc_cmpl_reglogin_reglogin_issue() 1560 spin_unlock_irq(shost->host_lock); lpfc_cmpl_reglogin_reglogin_issue() 1593 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_rm_reglogin_issue() local 1596 spin_lock_irq(shost->host_lock); lpfc_device_rm_reglogin_issue() 1598 spin_unlock_irq(shost->host_lock); lpfc_device_rm_reglogin_issue() 1612 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_recov_reglogin_issue() local 1622 spin_lock_irq(shost->host_lock); lpfc_device_recov_reglogin_issue() 1625 spin_unlock_irq(shost->host_lock); lpfc_device_recov_reglogin_issue() 1694 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_prli_prli_issue() local 1735 spin_lock_irq(shost->host_lock); lpfc_cmpl_prli_prli_issue() 1737 spin_unlock_irq(shost->host_lock); lpfc_cmpl_prli_prli_issue() 1775 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_rm_prli_issue() local 1778 spin_lock_irq(shost->host_lock); lpfc_device_rm_prli_issue() 1780 spin_unlock_irq(shost->host_lock); lpfc_device_rm_prli_issue() 1814 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_recov_prli_issue() local 1828 spin_lock_irq(shost->host_lock); lpfc_device_recov_prli_issue() 1830 spin_unlock_irq(shost->host_lock); lpfc_device_recov_prli_issue() 1867 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_logo_logo_issue() local 1870 spin_lock_irq(shost->host_lock); lpfc_rcv_logo_logo_issue() 1872 spin_unlock_irq(shost->host_lock); lpfc_rcv_logo_logo_issue() 1909 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_logo_logo_issue() local 1913 spin_lock_irq(shost->host_lock); lpfc_cmpl_logo_logo_issue() 1915 spin_unlock_irq(shost->host_lock); lpfc_cmpl_logo_logo_issue() 2003 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_recov_unmap_node() local 2007 spin_lock_irq(shost->host_lock); lpfc_device_recov_unmap_node() 2009 spin_unlock_irq(shost->host_lock); lpfc_device_recov_unmap_node() 2078 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_recov_mapped_node() local 2082 spin_lock_irq(shost->host_lock); lpfc_device_recov_mapped_node() 2084 spin_unlock_irq(shost->host_lock); lpfc_device_recov_mapped_node() 2093 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_plogi_npr_node() local 2101 spin_lock_irq(shost->host_lock); lpfc_rcv_plogi_npr_node() 2103 spin_unlock_irq(shost->host_lock); lpfc_rcv_plogi_npr_node() 2119 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_prli_npr_node() local 2130 spin_lock_irq(shost->host_lock); lpfc_rcv_prli_npr_node() 2133 spin_unlock_irq(shost->host_lock); lpfc_rcv_prli_npr_node() 2187 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rcv_prlo_npr_node() local 2190 spin_lock_irq(shost->host_lock); lpfc_rcv_prlo_npr_node() 2192 spin_unlock_irq(shost->host_lock); lpfc_rcv_prlo_npr_node() 2199 spin_lock_irq(shost->host_lock); lpfc_rcv_prlo_npr_node() 2202 spin_unlock_irq(shost->host_lock); lpfc_rcv_prlo_npr_node() 2205 spin_lock_irq(shost->host_lock); lpfc_rcv_prlo_npr_node() 2207 spin_unlock_irq(shost->host_lock); lpfc_rcv_prlo_npr_node() 2218 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_plogi_npr_node() local 2225 spin_lock_irq(shost->host_lock); lpfc_cmpl_plogi_npr_node() 2227 spin_unlock_irq(shost->host_lock); lpfc_cmpl_plogi_npr_node() 2255 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_logo_npr_node() local 2259 spin_lock_irq(shost->host_lock); lpfc_cmpl_logo_npr_node() 2261 spin_unlock_irq(shost->host_lock); lpfc_cmpl_logo_npr_node() 2311 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_rm_npr_node() local 2314 spin_lock_irq(shost->host_lock); lpfc_device_rm_npr_node() 2316 spin_unlock_irq(shost->host_lock); lpfc_device_rm_npr_node() 2327 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_device_recov_npr_node() local 2336 spin_lock_irq(shost->host_lock); lpfc_device_recov_npr_node() 2338 spin_unlock_irq(shost->host_lock); lpfc_device_recov_npr_node()
|
H A D | lpfc_vport.c | 294 struct Scsi_Host *shost = fc_vport->shost; lpfc_vport_create() local 295 struct lpfc_vport *pport = (struct lpfc_vport *) shost->hostdata; lpfc_vport_create() 470 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); disable_vport() local 505 spin_lock_irq(shost->host_lock); disable_vport() 507 spin_unlock_irq(shost->host_lock); disable_vport() 521 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); enable_vport() local 529 spin_lock_irq(shost->host_lock); enable_vport() 532 spin_unlock_irq(shost->host_lock); enable_vport() 570 struct Scsi_Host *shost = (struct Scsi_Host *) fc_vport->shost; lpfc_vport_delete() local 611 * This is a bit of a mess. We want to ensure the shost doesn't get lpfc_vport_delete() 625 if (!scsi_host_get(shost)) lpfc_vport_delete() 627 if (!scsi_host_get(shost)) { lpfc_vport_delete() 628 scsi_host_put(shost); lpfc_vport_delete() 776 scsi_host_put(shost); lpfc_vport_delete() 778 scsi_host_put(shost); lpfc_vport_delete() 787 scsi_host_put(shost); lpfc_vport_delete()
|
H A D | lpfc_hbadisc.c | 474 struct Scsi_Host *shost; lpfc_send_fastpath_evt() local 482 shost = lpfc_shost_from_vport(fast_evt_data->vport); lpfc_send_fastpath_evt() 522 fc_host_post_vendor_event(shost, lpfc_send_fastpath_evt() 825 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cleanup_rpis() local 853 spin_lock_irq(shost->host_lock); lpfc_cleanup_rpis() 855 spin_unlock_irq(shost->host_lock); lpfc_cleanup_rpis() 882 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_linkdown_port() local 884 fc_host_post_event(shost, fc_get_event_number(), FCH_EVT_LINKDOWN, 0); lpfc_linkdown_port() 893 spin_lock_irq(shost->host_lock); lpfc_linkdown_port() 895 spin_unlock_irq(shost->host_lock); lpfc_linkdown_port() 903 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_linkdown() local 919 spin_lock_irq(shost->host_lock); lpfc_linkdown() 921 spin_unlock_irq(shost->host_lock); lpfc_linkdown() 955 spin_lock_irq(shost->host_lock); lpfc_linkdown() 957 spin_unlock_irq(shost->host_lock); lpfc_linkdown() 992 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_linkup_port() local 1007 fc_host_post_event(shost, fc_get_event_number(), FCH_EVT_LINKUP, 0); lpfc_linkup_port() 1009 spin_lock_irq(shost->host_lock); lpfc_linkup_port() 1014 spin_unlock_irq(shost->host_lock); lpfc_linkup_port() 1052 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_mbx_cmpl_clear_la() local 1092 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_clear_la() 1094 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_clear_la() 2776 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_init_vpi_cmpl() local 2787 spin_lock_irq(shost->host_lock); lpfc_init_vpi_cmpl() 2789 spin_unlock_irq(shost->host_lock); lpfc_init_vpi_cmpl() 2912 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_mbx_cmpl_reg_vfi() local 2947 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_vfi() 2952 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_vfi() 3043 struct Scsi_Host *shost; lpfc_mbx_process_link_up() local 3077 shost = lpfc_shost_from_vport(vport); lpfc_mbx_process_link_up() 3144 spin_lock_irq(shost->host_lock); lpfc_mbx_process_link_up() 3146 spin_unlock_irq(shost->host_lock); lpfc_mbx_process_link_up() 3288 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_mbx_cmpl_read_topology() local 3309 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_read_topology() 3314 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_read_topology() 3437 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_mbx_cmpl_reg_login() local 3460 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_login() 3462 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_login() 3484 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_mbx_cmpl_unreg_vpi() local 3502 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_unreg_vpi() 3505 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_unreg_vpi() 3510 * This shost reference might have been taken at the beginning of lpfc_mbx_cmpl_unreg_vpi() 3514 scsi_host_put(shost); lpfc_mbx_cmpl_unreg_vpi() 3546 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_mbx_cmpl_reg_vpi() local 3557 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_vpi() 3559 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_vpi() 3564 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_vpi() 3567 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_vpi() 3574 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_vpi() 3576 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_reg_vpi() 3603 struct Scsi_Host *shost; lpfc_create_static_vport() local 3692 shost = lpfc_shost_from_vport(phba->pport); lpfc_create_static_vport() 3704 new_fc_vport = fc_vport_create(shost, 0, &vport_id); lpfc_create_static_vport() 3744 struct Scsi_Host *shost; lpfc_mbx_cmpl_fabric_reg_login() local 3791 shost = lpfc_shost_from_vport(vport); lpfc_mbx_cmpl_fabric_reg_login() 3792 spin_lock_irq(shost->host_lock); lpfc_mbx_cmpl_fabric_reg_login() 3794 spin_unlock_irq(shost->host_lock); lpfc_mbx_cmpl_fabric_reg_login() 3902 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_register_remote_port() local 3933 ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids); lpfc_register_remote_port() 3986 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_nlp_counters() local 3988 spin_lock_irq(shost->host_lock); lpfc_nlp_counters() 4018 spin_unlock_irq(shost->host_lock); lpfc_nlp_counters() 4025 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_nlp_state_cleanup() local 4079 spin_lock_irq(shost->host_lock); lpfc_nlp_state_cleanup() 4081 spin_unlock_irq(shost->host_lock); lpfc_nlp_state_cleanup() 4112 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_nlp_set_state() local 4135 spin_lock_irq(shost->host_lock); lpfc_nlp_set_state() 4137 spin_unlock_irq(shost->host_lock); lpfc_nlp_set_state() 4149 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_enqueue_node() local 4152 spin_lock_irq(shost->host_lock); lpfc_enqueue_node() 4154 spin_unlock_irq(shost->host_lock); lpfc_enqueue_node() 4161 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_dequeue_node() local 4166 spin_lock_irq(shost->host_lock); lpfc_dequeue_node() 4168 spin_unlock_irq(shost->host_lock); lpfc_dequeue_node() 4311 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_set_disctmo() local 4333 spin_lock_irq(shost->host_lock); lpfc_set_disctmo() 4335 spin_unlock_irq(shost->host_lock); lpfc_set_disctmo() 4354 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_can_disctmo() local 4363 spin_lock_irqsave(shost->host_lock, iflags); lpfc_can_disctmo() 4365 spin_unlock_irqrestore(shost->host_lock, iflags); lpfc_can_disctmo() 4578 struct Scsi_Host *shost; lpfc_unreg_hba_rpis() local 4588 shost = lpfc_shost_from_vport(vports[i]); lpfc_unreg_hba_rpis() 4589 spin_lock_irq(shost->host_lock); lpfc_unreg_hba_rpis() 4593 spin_unlock_irq(shost->host_lock); lpfc_unreg_hba_rpis() 4595 spin_lock_irq(shost->host_lock); lpfc_unreg_hba_rpis() 4598 spin_unlock_irq(shost->host_lock); lpfc_unreg_hba_rpis() 4666 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cleanup_node() local 4739 spin_lock_irq(shost->host_lock); lpfc_cleanup_node() 4741 spin_unlock_irq(shost->host_lock); lpfc_cleanup_node() 4889 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_findnode_did() local 4893 spin_lock_irqsave(shost->host_lock, iflags); lpfc_findnode_did() 4895 spin_unlock_irqrestore(shost->host_lock, iflags); lpfc_findnode_did() 4902 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_setup_disc_node() local 4916 spin_lock_irq(shost->host_lock); lpfc_setup_disc_node() 4918 spin_unlock_irq(shost->host_lock); lpfc_setup_disc_node() 4924 spin_lock_irq(shost->host_lock); lpfc_setup_disc_node() 4926 spin_unlock_irq(shost->host_lock); lpfc_setup_disc_node() 4943 spin_lock_irq(shost->host_lock); lpfc_setup_disc_node() 4945 spin_unlock_irq(shost->host_lock); lpfc_setup_disc_node() 4958 spin_lock_irq(shost->host_lock); lpfc_setup_disc_node() 4960 spin_unlock_irq(shost->host_lock); lpfc_setup_disc_node() 5065 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_disc_start() local 5128 spin_lock_irq(shost->host_lock); lpfc_disc_start() 5130 spin_unlock_irq(shost->host_lock); lpfc_disc_start() 5148 spin_lock_irq(shost->host_lock); lpfc_disc_start() 5150 spin_unlock_irq(shost->host_lock); lpfc_disc_start() 5276 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_disc_timeout_handler() local 5286 spin_lock_irq(shost->host_lock); lpfc_disc_timeout_handler() 5288 spin_unlock_irq(shost->host_lock); lpfc_disc_timeout_handler() 5604 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_findnode_wwpn() local 5607 spin_lock_irq(shost->host_lock); lpfc_findnode_wwpn() 5609 spin_unlock_irq(shost->host_lock); lpfc_findnode_wwpn() 5621 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_findnode_rpi() local 5624 spin_lock_irq(shost->host_lock); lpfc_findnode_rpi() 5626 spin_unlock_irq(shost->host_lock); lpfc_findnode_rpi() 5895 struct Scsi_Host *shost; lpfc_fcf_inuse() local 5904 shost = lpfc_shost_from_vport(vports[i]); lpfc_fcf_inuse() 5905 spin_lock_irq(shost->host_lock); lpfc_fcf_inuse() 5913 spin_unlock_irq(shost->host_lock); lpfc_fcf_inuse() 5921 spin_unlock_irq(shost->host_lock); lpfc_fcf_inuse() 5932 spin_unlock_irq(shost->host_lock); lpfc_fcf_inuse() 5950 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_unregister_vfi_cmpl() local 5958 spin_lock_irq(shost->host_lock); lpfc_unregister_vfi_cmpl() 5960 spin_unlock_irq(shost->host_lock); lpfc_unregister_vfi_cmpl() 6000 struct Scsi_Host *shost; lpfc_unregister_fcf_prep() local 6022 shost = lpfc_shost_from_vport(vports[i]); lpfc_unregister_fcf_prep() 6023 spin_lock_irq(shost->host_lock); lpfc_unregister_fcf_prep() 6026 spin_unlock_irq(shost->host_lock); lpfc_unregister_fcf_prep() 6037 shost = lpfc_shost_from_vport(phba->pport); lpfc_unregister_fcf_prep() 6038 spin_lock_irq(shost->host_lock); lpfc_unregister_fcf_prep() 6041 spin_unlock_irq(shost->host_lock); lpfc_unregister_fcf_prep()
|
H A D | lpfc_els.c | 83 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_chk_latt() local 111 spin_lock_irq(shost->host_lock); lpfc_els_chk_latt() 113 spin_unlock_irq(shost->host_lock); lpfc_els_chk_latt() 534 struct Scsi_Host *shost; lpfc_issue_unreg_vfi() local 560 shost = lpfc_shost_from_vport(vport); lpfc_issue_unreg_vfi() 561 spin_lock_irq(shost->host_lock); lpfc_issue_unreg_vfi() 563 spin_unlock_irq(shost->host_lock); lpfc_issue_unreg_vfi() 590 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_check_clean_addr_bit() local 611 spin_lock_irq(shost->host_lock); lpfc_check_clean_addr_bit() 613 spin_unlock_irq(shost->host_lock); lpfc_check_clean_addr_bit() 644 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_flogi_fabric() local 650 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 652 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 662 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 664 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 739 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 741 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 749 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 751 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 758 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 760 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_fabric() 822 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_flogi_nport() local 827 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 829 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 839 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 841 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 904 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 906 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 917 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 919 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 931 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 933 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi_nport() 973 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_flogi() local 1046 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi() 1048 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi() 1063 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi() 1065 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi() 1077 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_flogi() 1080 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_flogi() 1718 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_end_rscn() local 1729 spin_lock_irq(shost->host_lock); lpfc_end_rscn() 1731 spin_unlock_irq(shost->host_lock); lpfc_end_rscn() 1828 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_plogi() local 1857 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_plogi() 1860 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_plogi() 1871 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_plogi() 1873 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_plogi() 1882 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_plogi() 1884 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_plogi() 1918 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_plogi() 1920 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_plogi() 2034 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_prli() local 2045 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_prli() 2047 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_prli() 2116 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_issue_els_prli() local 2164 spin_lock_irq(shost->host_lock); lpfc_issue_els_prli() 2166 spin_unlock_irq(shost->host_lock); lpfc_issue_els_prli() 2169 spin_lock_irq(shost->host_lock); lpfc_issue_els_prli() 2171 spin_unlock_irq(shost->host_lock); lpfc_issue_els_prli() 2218 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_adisc_done() local 2253 spin_lock_irq(shost->host_lock); lpfc_adisc_done() 2255 spin_unlock_irq(shost->host_lock); lpfc_adisc_done() 2317 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_adisc() local 2336 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_adisc() 2339 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_adisc() 2348 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_adisc() 2350 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_adisc() 2359 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_adisc() 2361 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_adisc() 2412 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_issue_els_adisc() local 2446 spin_lock_irq(shost->host_lock); lpfc_issue_els_adisc() 2448 spin_unlock_irq(shost->host_lock); lpfc_issue_els_adisc() 2451 spin_lock_irq(shost->host_lock); lpfc_issue_els_adisc() 2453 spin_unlock_irq(shost->host_lock); lpfc_issue_els_adisc() 2478 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_logo() local 2490 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_logo() 2492 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_logo() 2570 spin_lock_irqsave(shost->host_lock, flags); lpfc_cmpl_els_logo() 2572 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_cmpl_els_logo() 2609 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_issue_els_logo() local 2617 spin_lock_irq(shost->host_lock); lpfc_issue_els_logo() 2619 spin_unlock_irq(shost->host_lock); lpfc_issue_els_logo() 2622 spin_unlock_irq(shost->host_lock); lpfc_issue_els_logo() 2652 spin_lock_irq(shost->host_lock); lpfc_issue_els_logo() 2654 spin_unlock_irq(shost->host_lock); lpfc_issue_els_logo() 2662 spin_lock_irq(shost->host_lock); lpfc_issue_els_logo() 2665 spin_unlock_irq(shost->host_lock); lpfc_issue_els_logo() 2669 spin_lock_irq(shost->host_lock); lpfc_issue_els_logo() 2671 spin_unlock_irq(shost->host_lock); lpfc_issue_els_logo() 2937 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cancel_retry_delay_tmo() local 2942 spin_lock_irq(shost->host_lock); lpfc_cancel_retry_delay_tmo() 2944 spin_unlock_irq(shost->host_lock); lpfc_cancel_retry_delay_tmo() 2954 spin_lock_irq(shost->host_lock); lpfc_cancel_retry_delay_tmo() 2956 spin_unlock_irq(shost->host_lock); lpfc_cancel_retry_delay_tmo() 2965 spin_lock_irq(shost->host_lock); lpfc_cancel_retry_delay_tmo() 2967 spin_unlock_irq(shost->host_lock); lpfc_cancel_retry_delay_tmo() 3032 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_retry_delay_handler() local 3035 spin_lock_irq(shost->host_lock); lpfc_els_retry_delay_handler() 3040 spin_unlock_irq(shost->host_lock); lpfc_els_retry_delay_handler() 3045 spin_unlock_irq(shost->host_lock); lpfc_els_retry_delay_handler() 3117 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_retry() local 3404 spin_lock_irq(shost->host_lock); lpfc_els_retry() 3406 spin_unlock_irq(shost->host_lock); lpfc_els_retry() 3749 struct Scsi_Host *shost = vport ? lpfc_shost_from_vport(vport) : NULL; lpfc_cmpl_els_rsp() local 3876 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_rsp() 3878 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_rsp() 3928 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_rsp_acc() local 3948 spin_lock_irq(shost->host_lock); lpfc_els_rsp_acc() 3950 spin_unlock_irq(shost->host_lock); lpfc_els_rsp_acc() 4022 spin_lock_irq(shost->host_lock); lpfc_els_rsp_acc() 4024 spin_unlock_irq(shost->host_lock); lpfc_els_rsp_acc() 4523 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_disc_adisc() local 4534 spin_lock_irq(shost->host_lock); lpfc_els_disc_adisc() 4536 spin_unlock_irq(shost->host_lock); lpfc_els_disc_adisc() 4544 spin_lock_irq(shost->host_lock); lpfc_els_disc_adisc() 4546 spin_unlock_irq(shost->host_lock); lpfc_els_disc_adisc() 4552 spin_lock_irq(shost->host_lock); lpfc_els_disc_adisc() 4554 spin_unlock_irq(shost->host_lock); lpfc_els_disc_adisc() 4581 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_disc_plogi() local 4600 spin_lock_irq(shost->host_lock); lpfc_els_disc_plogi() 4602 spin_unlock_irq(shost->host_lock); lpfc_els_disc_plogi() 4611 spin_lock_irq(shost->host_lock); lpfc_els_disc_plogi() 4613 spin_unlock_irq(shost->host_lock); lpfc_els_disc_plogi() 4630 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_flush_rscn() local 4634 spin_lock_irq(shost->host_lock); lpfc_els_flush_rscn() 4637 spin_unlock_irq(shost->host_lock); lpfc_els_flush_rscn() 4642 spin_unlock_irq(shost->host_lock); lpfc_els_flush_rscn() 4648 spin_lock_irq(shost->host_lock); lpfc_els_flush_rscn() 4651 spin_unlock_irq(shost->host_lock); lpfc_els_flush_rscn() 4676 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_rscn_payload_check() local 4688 spin_lock_irq(shost->host_lock); lpfc_rscn_payload_check() 4691 spin_unlock_irq(shost->host_lock); lpfc_rscn_payload_check() 4696 spin_unlock_irq(shost->host_lock); lpfc_rscn_payload_check() 4776 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_send_rscn_event() local 4797 fc_host_post_vendor_event(shost, lpfc_send_rscn_event() 4832 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_rcv_rscn() local 4858 fc_host_post_event(shost, fc_get_event_number(), lpfc_els_rcv_rscn() 4906 spin_lock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4910 spin_unlock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4917 spin_unlock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4928 spin_lock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4933 spin_unlock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4960 spin_unlock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4974 spin_lock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4976 spin_unlock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4983 spin_lock_irq(shost->host_lock); lpfc_els_rcv_rscn() 4985 spin_unlock_irq(shost->host_lock); lpfc_els_rcv_rscn() 5119 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_els_rcv_flogi() local 5187 spin_lock_irq(shost->host_lock); lpfc_els_rcv_flogi() 5189 spin_unlock_irq(shost->host_lock); lpfc_els_rcv_flogi() 5204 spin_lock_irq(shost->host_lock); lpfc_els_rcv_flogi() 5209 spin_unlock_irq(shost->host_lock); lpfc_els_rcv_flogi() 6485 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_send_els_failure_event() local 6509 fc_host_post_vendor_event(shost, lpfc_send_els_failure_event() 6527 fc_host_post_vendor_event(shost, lpfc_send_els_failure_event() 6553 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_send_els_event() local 6598 fc_host_post_vendor_event(shost, lpfc_send_els_event() 6605 fc_host_post_vendor_event(shost, lpfc_send_els_event() 6635 struct Scsi_Host *shost; lpfc_els_unsol_buffer() local 6754 shost = lpfc_shost_from_vport(vport); lpfc_els_unsol_buffer() 6770 spin_lock_irq(shost->host_lock); lpfc_els_unsol_buffer() 6772 spin_unlock_irq(shost->host_lock); lpfc_els_unsol_buffer() 6778 spin_lock_irq(shost->host_lock); lpfc_els_unsol_buffer() 6780 spin_unlock_irq(shost->host_lock); lpfc_els_unsol_buffer() 7126 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_do_scr_ns_plogi() local 7133 spin_lock_irq(shost->host_lock); lpfc_do_scr_ns_plogi() 7135 spin_unlock_irq(shost->host_lock); lpfc_do_scr_ns_plogi() 7143 spin_unlock_irq(shost->host_lock); lpfc_do_scr_ns_plogi() 7227 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_reg_new_vport() local 7232 spin_lock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7234 spin_unlock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7251 spin_lock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7253 spin_unlock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7258 spin_lock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7260 spin_unlock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7281 spin_lock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7283 spin_unlock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7292 spin_lock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7294 spin_unlock_irq(shost->host_lock); lpfc_cmpl_reg_new_vport() 7333 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_register_new_vport() local 7363 spin_lock_irq(shost->host_lock); lpfc_register_new_vport() 7365 spin_unlock_irq(shost->host_lock); lpfc_register_new_vport() 7413 struct Scsi_Host *shost; lpfc_retry_pport_discovery() local 7423 shost = lpfc_shost_from_vport(phba->pport); lpfc_retry_pport_discovery() 7425 spin_lock_irq(shost->host_lock); lpfc_retry_pport_discovery() 7427 spin_unlock_irq(shost->host_lock); lpfc_retry_pport_discovery() 7480 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_fdisc() local 7522 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_fdisc() 7528 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_fdisc() 7553 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_fdisc() 7555 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_fdisc() 7564 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_fdisc() 7570 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_fdisc() 7719 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_els_npiv_logo() local 7741 spin_lock_irq(shost->host_lock); lpfc_cmpl_els_npiv_logo() 7743 spin_unlock_irq(shost->host_lock); lpfc_cmpl_els_npiv_logo() 7766 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_issue_els_npiv_logo() local 7794 spin_lock_irq(shost->host_lock); lpfc_issue_els_npiv_logo() 7796 spin_unlock_irq(shost->host_lock); lpfc_issue_els_npiv_logo() 7799 spin_lock_irq(shost->host_lock); lpfc_issue_els_npiv_logo() 7801 spin_unlock_irq(shost->host_lock); lpfc_issue_els_npiv_logo() 8257 struct Scsi_Host *shost; lpfc_sli_abts_recover_port() local 8261 shost = lpfc_shost_from_vport(vport); lpfc_sli_abts_recover_port() 8270 "3094 Start rport recovery on shost id 0x%x " lpfc_sli_abts_recover_port() 8273 shost->host_no, ndlp->nlp_DID, lpfc_sli_abts_recover_port() 8280 spin_lock_irqsave(shost->host_lock, flags); lpfc_sli_abts_recover_port() 8282 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_sli_abts_recover_port()
|
H A D | lpfc_init.c | 375 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_config_port_post() local 430 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); lpfc_config_port_post() 431 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); lpfc_config_port_post() 432 fc_host_max_npiv_vports(shost) = phba->max_vpi; lpfc_config_port_post() 1426 struct Scsi_Host *shost; lpfc_board_errevt_to_mgmt() local 1430 shost = lpfc_shost_from_vport(phba->pport); lpfc_board_errevt_to_mgmt() 1431 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_board_errevt_to_mgmt() 1455 struct Scsi_Host *shost; lpfc_handle_eratt_s3() local 1530 shost = lpfc_shost_from_vport(phba->pport); lpfc_handle_eratt_s3() 1531 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_handle_eratt_s3() 1554 shost = lpfc_shost_from_vport(vport); lpfc_handle_eratt_s3() 1555 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_handle_eratt_s3() 1626 struct Scsi_Host *shost; lpfc_handle_eratt_s4() local 1680 shost = lpfc_shost_from_vport(phba->pport); lpfc_handle_eratt_s4() 1681 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_handle_eratt_s4() 1739 shost = lpfc_shost_from_vport(vport); lpfc_handle_eratt_s4() 1740 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_handle_eratt_s4() 2853 struct Scsi_Host *shost; lpfc_online() local 2854 shost = lpfc_shost_from_vport(vports[i]); lpfc_online() 2855 spin_lock_irq(shost->host_lock); lpfc_online() 2866 spin_unlock_irq(shost->host_lock); lpfc_online() 2909 struct Scsi_Host *shost; lpfc_offline_prep() local 2925 shost = lpfc_shost_from_vport(vports[i]); lpfc_offline_prep() 2926 spin_lock_irq(shost->host_lock); lpfc_offline_prep() 2930 spin_unlock_irq(shost->host_lock); lpfc_offline_prep() 2932 shost = lpfc_shost_from_vport(vports[i]); lpfc_offline_prep() 2946 spin_lock_irq(shost->host_lock); lpfc_offline_prep() 2948 spin_unlock_irq(shost->host_lock); lpfc_offline_prep() 2986 struct Scsi_Host *shost; lpfc_offline() local 3011 shost = lpfc_shost_from_vport(vports[i]); lpfc_offline() 3012 spin_lock_irq(shost->host_lock); lpfc_offline() 3015 spin_unlock_irq(shost->host_lock); lpfc_offline() 3265 * by the HBA. This routine also allocates a SCSI host data structure (shost) 3266 * and associates the FC port created before adding the shost into the SCSI 3277 struct Scsi_Host *shost; lpfc_create_port() local 3281 shost = scsi_host_alloc(&lpfc_vport_template, lpfc_create_port() 3285 shost = scsi_host_alloc(&lpfc_template, lpfc_create_port() 3288 shost = scsi_host_alloc(&lpfc_template_s3, lpfc_create_port() 3291 if (!shost) lpfc_create_port() 3294 vport = (struct lpfc_vport *) shost->hostdata; lpfc_create_port() 3301 shost->unique_id = instance; lpfc_create_port() 3302 shost->max_id = LPFC_MAX_TARGET; lpfc_create_port() 3303 shost->max_lun = vport->cfg_max_luns; lpfc_create_port() 3304 shost->this_id = -1; lpfc_create_port() 3305 shost->max_cmd_len = 16; lpfc_create_port() 3307 shost->dma_boundary = lpfc_create_port() 3309 shost->sg_tablesize = phba->cfg_sg_seg_cnt; lpfc_create_port() 3317 shost->can_queue = phba->cfg_hba_queue_depth - 10; lpfc_create_port() 3319 shost->transportt = lpfc_vport_transport_template; lpfc_create_port() 3322 shost->transportt = lpfc_transport_template; lpfc_create_port() 3347 error = scsi_add_host_with_dma(shost, dev, &phba->pcidev->dev); lpfc_create_port() 3357 scsi_host_put(shost); lpfc_create_port() 3372 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); destroy_port() local 3376 fc_remove_host(shost); destroy_port() 3377 scsi_remove_host(shost); destroy_port() 3408 * @shost: pointer to SCSI host data structure. 3421 int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time) lpfc_scan_finished() argument 3423 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_scan_finished() 3427 spin_lock_irq(shost->host_lock); lpfc_scan_finished() 3461 spin_unlock_irq(shost->host_lock); lpfc_scan_finished() 3467 * @shost: pointer to SCSI host data structure. 3472 void lpfc_host_attrib_init(struct Scsi_Host *shost) lpfc_host_attrib_init() argument 3474 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_host_attrib_init() 3480 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); lpfc_host_attrib_init() 3481 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); lpfc_host_attrib_init() 3482 fc_host_supported_classes(shost) = FC_COS_CLASS3; lpfc_host_attrib_init() 3484 memset(fc_host_supported_fc4s(shost), 0, lpfc_host_attrib_init() 3485 sizeof(fc_host_supported_fc4s(shost))); lpfc_host_attrib_init() 3486 fc_host_supported_fc4s(shost)[2] = 1; lpfc_host_attrib_init() 3487 fc_host_supported_fc4s(shost)[7] = 1; lpfc_host_attrib_init() 3489 lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost), lpfc_host_attrib_init() 3490 sizeof fc_host_symbolic_name(shost)); lpfc_host_attrib_init() 3492 fc_host_supported_speeds(shost) = 0; lpfc_host_attrib_init() 3494 fc_host_supported_speeds(shost) |= FC_PORTSPEED_16GBIT; lpfc_host_attrib_init() 3496 fc_host_supported_speeds(shost) |= FC_PORTSPEED_10GBIT; lpfc_host_attrib_init() 3498 fc_host_supported_speeds(shost) |= FC_PORTSPEED_8GBIT; lpfc_host_attrib_init() 3500 fc_host_supported_speeds(shost) |= FC_PORTSPEED_4GBIT; lpfc_host_attrib_init() 3502 fc_host_supported_speeds(shost) |= FC_PORTSPEED_2GBIT; lpfc_host_attrib_init() 3504 fc_host_supported_speeds(shost) |= FC_PORTSPEED_1GBIT; lpfc_host_attrib_init() 3506 fc_host_maxframe_size(shost) = lpfc_host_attrib_init() 3510 fc_host_dev_loss_tmo(shost) = vport->cfg_devloss_tmo; lpfc_host_attrib_init() 3513 memset(fc_host_active_fc4s(shost), 0, lpfc_host_attrib_init() 3514 sizeof(fc_host_active_fc4s(shost))); lpfc_host_attrib_init() 3515 fc_host_active_fc4s(shost)[2] = 1; lpfc_host_attrib_init() 3516 fc_host_active_fc4s(shost)[7] = 1; lpfc_host_attrib_init() 3518 fc_host_max_npiv_vports(shost) = phba->max_vpi; lpfc_host_attrib_init() 3519 spin_lock_irq(shost->host_lock); lpfc_host_attrib_init() 3521 spin_unlock_irq(shost->host_lock); lpfc_host_attrib_init() 4105 struct Scsi_Host *shost; lpfc_sli4_async_sli_evt() local 4134 shost = lpfc_shost_from_vport(phba->pport); lpfc_sli4_async_sli_evt() 4135 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_sli4_async_sli_evt() 4150 shost = lpfc_shost_from_vport(phba->pport); lpfc_sli4_async_sli_evt() 4151 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_sli4_async_sli_evt() 4241 struct Scsi_Host *shost; lpfc_sli4_perform_vport_cvl() local 4273 shost = lpfc_shost_from_vport(vport); lpfc_sli4_perform_vport_cvl() 4274 if (!shost) lpfc_sli4_perform_vport_cvl() 4278 spin_lock_irq(shost->host_lock); lpfc_sli4_perform_vport_cvl() 4280 spin_unlock_irq(shost->host_lock); lpfc_sli4_perform_vport_cvl() 4320 struct Scsi_Host *shost; lpfc_sli4_async_fip_evt() local 4493 shost = lpfc_shost_from_vport(vport); lpfc_sli4_async_fip_evt() 4494 spin_lock_irq(shost->host_lock); lpfc_sli4_async_fip_evt() 4496 spin_unlock_irq(shost->host_lock); lpfc_sli4_async_fip_evt() 6125 struct Scsi_Host *shost; lpfc_create_shost() local 6138 shost = lpfc_shost_from_vport(vport); lpfc_create_shost() 6142 pci_set_drvdata(phba->pcidev, shost); lpfc_create_shost() 6168 * @shost: the shost to be used to detect Block guard settings. 6170 * This routine sets up the local Block guard protocol settings for @shost. 6174 lpfc_setup_bg(struct lpfc_hba *phba, struct Scsi_Host *shost) lpfc_setup_bg() argument 6206 scsi_host_set_prot(shost, lpfc_prot_mask); lpfc_setup_bg() 6207 scsi_host_set_guard(shost, lpfc_prot_guard); lpfc_setup_bg() 6276 struct Scsi_Host *shost; lpfc_post_init_setup() local 6286 shost = pci_get_drvdata(phba->pcidev); lpfc_post_init_setup() 6287 shost->can_queue = phba->cfg_hba_queue_depth - 10; lpfc_post_init_setup() 6289 lpfc_setup_bg(phba, shost); lpfc_post_init_setup() 6291 lpfc_host_attrib_init(shost); lpfc_post_init_setup() 6294 spin_lock_irq(shost->host_lock); lpfc_post_init_setup() 6296 spin_unlock_irq(shost->host_lock); lpfc_post_init_setup() 6304 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_post_init_setup() 9201 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_unset_hba() local 9203 spin_lock_irq(shost->host_lock); lpfc_unset_hba() 9205 spin_unlock_irq(shost->host_lock); lpfc_unset_hba() 9510 struct Scsi_Host *shost = NULL; lpfc_pci_probe_one_s3() local 9589 shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */ lpfc_pci_probe_one_s3() 9656 if (shost) lpfc_pci_probe_one_s3() 9657 scsi_host_put(shost); lpfc_pci_probe_one_s3() 9675 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_remove_one_s3() local 9676 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_pci_remove_one_s3() 9699 fc_remove_host(shost); lpfc_pci_remove_one_s3() 9700 scsi_remove_host(shost); lpfc_pci_remove_one_s3() 9733 scsi_host_put(shost); lpfc_pci_remove_one_s3() 9783 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_suspend_one_s3() local 9784 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_pci_suspend_one_s3() 9826 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_resume_one_s3() local 9827 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_pci_resume_one_s3() 9972 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_error_detected_s3() local 9973 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_error_detected_s3() 10018 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_slot_reset_s3() local 10019 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_slot_reset_s3() 10079 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_resume_s3() local 10080 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_resume_s3() 10279 struct Scsi_Host *shost = NULL; lpfc_pci_probe_one_s4() local 10367 shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */ lpfc_pci_probe_one_s4() 10426 if (shost) lpfc_pci_probe_one_s4() 10427 scsi_host_put(shost); lpfc_pci_probe_one_s4() 10445 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_remove_one_s4() local 10446 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_pci_remove_one_s4() 10470 fc_remove_host(shost); lpfc_pci_remove_one_s4() 10471 scsi_remove_host(shost); lpfc_pci_remove_one_s4() 10499 scsi_host_put(shost); lpfc_pci_remove_one_s4() 10532 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_suspend_one_s4() local 10533 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_pci_suspend_one_s4() 10576 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_resume_one_s4() local 10577 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_pci_resume_one_s4() 10721 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_error_detected_s4() local 10722 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_error_detected_s4() 10767 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_slot_reset_s4() local 10768 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_slot_reset_s4() 10823 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_resume_s4() local 10824 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_resume_s4() 10895 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_remove_one() local 10896 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_pci_remove_one() 10931 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_suspend_one() local 10932 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_pci_suspend_one() 10967 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_pci_resume_one() local 10968 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_pci_resume_one() 11005 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_error_detected() local 11006 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_error_detected() 11042 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_slot_reset() local 11043 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_slot_reset() 11075 struct Scsi_Host *shost = pci_get_drvdata(pdev); lpfc_io_resume() local 11076 struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; lpfc_io_resume()
|
H A D | lpfc_vport.h | 53 struct Scsi_Host *shost; member in struct:vport_info
|
H A D | lpfc_bsg.c | 383 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_send_mgmt_cmd() 653 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_rport_els() 1194 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_hba_set_event() 1278 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_hba_get_event() 1610 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_send_mgmt_rsp() 1685 struct Scsi_Host *shost; lpfc_bsg_diag_mode_enter() local 1706 shost = lpfc_shost_from_vport(vports[i]); lpfc_bsg_diag_mode_enter() 1707 scsi_block_requests(shost); lpfc_bsg_diag_mode_enter() 1711 shost = lpfc_shost_from_vport(phba->pport); lpfc_bsg_diag_mode_enter() 1712 scsi_block_requests(shost); lpfc_bsg_diag_mode_enter() 1733 struct Scsi_Host *shost; lpfc_bsg_diag_mode_exit() local 1740 shost = lpfc_shost_from_vport(vports[i]); lpfc_bsg_diag_mode_exit() 1741 scsi_unblock_requests(shost); lpfc_bsg_diag_mode_exit() 1745 shost = lpfc_shost_from_vport(phba->pport); lpfc_bsg_diag_mode_exit() 1746 scsi_unblock_requests(shost); lpfc_bsg_diag_mode_exit() 2173 struct Scsi_Host *shost; lpfc_bsg_diag_loopback_mode() local 2178 shost = job->shost; lpfc_bsg_diag_loopback_mode() 2179 if (!shost) lpfc_bsg_diag_loopback_mode() 2181 vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_diag_loopback_mode() 2209 struct Scsi_Host *shost; lpfc_sli4_bsg_diag_mode_end() local 2216 shost = job->shost; lpfc_sli4_bsg_diag_mode_end() 2217 if (!shost) lpfc_sli4_bsg_diag_mode_end() 2219 vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_sli4_bsg_diag_mode_end() 2285 struct Scsi_Host *shost; lpfc_sli4_bsg_link_diag_test() local 2297 shost = job->shost; lpfc_sli4_bsg_link_diag_test() 2298 if (!shost) { lpfc_sli4_bsg_link_diag_test() 2302 vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_sli4_bsg_link_diag_test() 2989 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_diag_loopback_run() 3294 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_get_dfc_rev() 4891 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_mbox_cmd() 5045 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_menlo_cmd() 5303 struct lpfc_vport *vport = (struct lpfc_vport *)job->shost->hostdata; lpfc_bsg_timeout()
|
H A D | lpfc_scsi.c | 206 struct Scsi_Host *shost = cmd->device->host; lpfc_update_stats() local 207 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_update_stats() 216 spin_lock_irqsave(shost->host_lock, flags); lpfc_update_stats() 222 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_update_stats() 242 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_update_stats() 300 struct Scsi_Host *shost; lpfc_ramp_down_queue_handler() local 320 shost = lpfc_shost_from_vport(vports[i]); shost_for_each_device() 321 shost_for_each_device(sdev, shost) { shost_for_each_device() 350 struct Scsi_Host *shost; lpfc_scsi_dev_block() local 358 shost = lpfc_shost_from_vport(vports[i]); shost_for_each_device() 359 shost_for_each_device(sdev, shost) { shost_for_each_device() 3872 struct Scsi_Host *shost; lpfc_scsi_cmd_iocb_cmpl() local 3880 shost = cmd->device->host; lpfc_scsi_cmd_iocb_cmpl() 4059 spin_lock_irqsave(shost->host_lock, flags); lpfc_scsi_cmd_iocb_cmpl() 4072 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_scsi_cmd_iocb_cmpl() 4077 spin_lock_irqsave(shost->host_lock, flags); lpfc_scsi_cmd_iocb_cmpl() 4085 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_scsi_cmd_iocb_cmpl() 4105 spin_lock_irqsave(shost->host_lock, flags); lpfc_scsi_cmd_iocb_cmpl() 4108 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_scsi_cmd_iocb_cmpl() 4121 spin_lock_irqsave(shost->host_lock, flags); lpfc_scsi_cmd_iocb_cmpl() 4124 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_scsi_cmd_iocb_cmpl() 4497 lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) lpfc_queuecommand() argument 4499 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_queuecommand() 4651 struct Scsi_Host *shost = cmnd->device->host; lpfc_abort_handler() local 4652 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_abort_handler() 4793 spin_lock_irqsave(shost->host_lock, flags); lpfc_abort_handler() 4795 spin_unlock_irqrestore(shost->host_lock, flags); lpfc_abort_handler() 5111 struct Scsi_Host *shost = cmnd->device->host; lpfc_device_reset_handler() local 5112 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_device_reset_handler() 5145 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_device_reset_handler() 5182 struct Scsi_Host *shost = cmnd->device->host; lpfc_target_reset_handler() local 5183 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_target_reset_handler() 5207 spin_lock_irq(shost->host_lock); lpfc_target_reset_handler() 5210 spin_unlock_irq(shost->host_lock); lpfc_target_reset_handler() 5223 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_target_reset_handler() 5259 struct Scsi_Host *shost = cmnd->device->host; lpfc_bus_reset_handler() local 5260 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_bus_reset_handler() 5272 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_bus_reset_handler() 5287 spin_lock_irq(shost->host_lock); lpfc_bus_reset_handler() 5301 spin_unlock_irq(shost->host_lock); lpfc_bus_reset_handler() 5350 struct Scsi_Host *shost = cmnd->device->host; lpfc_host_reset_handler() local 5351 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; lpfc_host_reset_handler()
|
H A D | lpfc_ct.c | 576 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_ct_cmd_gid_ft() local 714 spin_lock_irq(shost->host_lock); lpfc_cmpl_ct_cmd_gid_ft() 716 spin_unlock_irq(shost->host_lock); lpfc_cmpl_ct_cmd_gid_ft() 735 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cmpl_ct_cmd_gff_id() local 840 spin_lock_irq(shost->host_lock); lpfc_cmpl_ct_cmd_gff_id() 842 spin_unlock_irq(shost->host_lock); lpfc_cmpl_ct_cmd_gff_id() 1103 struct Scsi_Host *shost; lpfc_find_map_node() local 1106 shost = lpfc_shost_from_vport(vport); lpfc_find_map_node() 1107 spin_lock_irq(shost->host_lock); lpfc_find_map_node() 1115 spin_unlock_irq(shost->host_lock); lpfc_find_map_node() 2146 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_delayed_disc_timeout_handler() local 2148 spin_lock_irq(shost->host_lock); lpfc_delayed_disc_timeout_handler() 2150 spin_unlock_irq(shost->host_lock); lpfc_delayed_disc_timeout_handler() 2154 spin_unlock_irq(shost->host_lock); lpfc_delayed_disc_timeout_handler()
|
H A D | lpfc_sli.c | 2165 struct Scsi_Host *shost; lpfc_sli_def_mbox_cmpl() local 2195 shost = lpfc_shost_from_vport(vport); lpfc_sli_def_mbox_cmpl() 2196 spin_lock_irq(shost->host_lock); lpfc_sli_def_mbox_cmpl() 2199 spin_unlock_irq(shost->host_lock); lpfc_sli_def_mbox_cmpl() 6248 struct Scsi_Host *shost = lpfc_shost_from_vport(phba->pport); lpfc_sli4_hba_setup() local 6491 fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); lpfc_sli4_hba_setup() 6492 fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); lpfc_sli4_hba_setup() 9056 struct Scsi_Host *shost; lpfc_sli_async_event_handler() local 9082 shost = lpfc_shost_from_vport(phba->pport); lpfc_sli_async_event_handler() 9083 fc_host_post_vendor_event(shost, fc_get_event_number(), lpfc_sli_async_event_handler() 16882 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_cleanup_pending_mbox() local 16936 spin_lock(shost->host_lock); lpfc_cleanup_pending_mbox() 16938 spin_unlock(shost->host_lock); lpfc_cleanup_pending_mbox() 16959 spin_lock(shost->host_lock); lpfc_cleanup_pending_mbox() 16961 spin_unlock(shost->host_lock); lpfc_cleanup_pending_mbox() 16970 spin_lock(shost->host_lock); lpfc_cleanup_pending_mbox() 16972 spin_unlock(shost->host_lock); lpfc_cleanup_pending_mbox()
|
H A D | lpfc_debugfs.c | 532 struct Scsi_Host *shost = lpfc_shost_from_vport(vport); lpfc_debugfs_nodelist_data() local 538 spin_lock_irq(shost->host_lock); lpfc_debugfs_nodelist_data() 613 spin_unlock_irq(shost->host_lock); lpfc_debugfs_nodelist_data()
|
/linux-4.1.27/drivers/s390/scsi/ |
H A D | zfcp_scsi.c | 62 int zfcp_scsi_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scpnt) zfcp_scsi_queuecommand() argument 353 struct Scsi_Host *shost; zfcp_scsi_adapter_unregister() local 356 shost = adapter->scsi_host; zfcp_scsi_adapter_unregister() 357 if (!shost) zfcp_scsi_adapter_unregister() 365 fc_remove_host(shost); zfcp_scsi_adapter_unregister() 366 scsi_remove_host(shost); zfcp_scsi_adapter_unregister() 367 scsi_host_put(shost); zfcp_scsi_adapter_unregister() 478 static void zfcp_reset_fc_host_stats(struct Scsi_Host *shost) zfcp_reset_fc_host_stats() argument 484 adapter = (struct zfcp_adapter *)shost->hostdata[0]; zfcp_reset_fc_host_stats() 500 static void zfcp_get_host_port_state(struct Scsi_Host *shost) zfcp_get_host_port_state() argument 503 (struct zfcp_adapter *)shost->hostdata[0]; zfcp_get_host_port_state() 508 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; zfcp_get_host_port_state() 510 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; zfcp_get_host_port_state() 512 fc_host_port_state(shost) = FC_PORTSTATE_ERROR; zfcp_get_host_port_state() 514 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; zfcp_get_host_port_state() 535 struct Scsi_Host *shost = rport_to_shost(rport); zfcp_scsi_terminate_rport_io() local 537 (struct zfcp_adapter *)shost->hostdata[0]; zfcp_scsi_terminate_rport_io() 644 struct Scsi_Host *shost = adapter->scsi_host; zfcp_scsi_set_prot() local 656 scsi_host_set_guard(shost, SHOST_DIX_GUARD_IP); zfcp_scsi_set_prot() 657 shost->sg_prot_tablesize = adapter->qdio->max_sbale_per_req / 2; zfcp_scsi_set_prot() 658 shost->sg_tablesize = adapter->qdio->max_sbale_per_req / 2; zfcp_scsi_set_prot() 659 shost->max_sectors = shost->sg_tablesize * 8; zfcp_scsi_set_prot() 662 scsi_host_set_prot(shost, mask); zfcp_scsi_set_prot()
|
H A D | zfcp_fsf.c | 467 struct Scsi_Host *shost = adapter->scsi_host; zfcp_fsf_exchange_config_evaluate() local 479 fc_host_port_name(shost) = nsp->fl_wwpn; zfcp_fsf_exchange_config_evaluate() 480 fc_host_node_name(shost) = nsp->fl_wwnn; zfcp_fsf_exchange_config_evaluate() 481 fc_host_supported_classes(shost) = FC_COS_CLASS2 | FC_COS_CLASS3; zfcp_fsf_exchange_config_evaluate() 487 if (fc_host_permanent_port_name(shost) == -1) zfcp_fsf_exchange_config_evaluate() 488 fc_host_permanent_port_name(shost) = fc_host_port_name(shost); zfcp_fsf_exchange_config_evaluate() 497 fc_host_port_id(shost) = ntoh24(bottom->s_id); zfcp_fsf_exchange_config_evaluate() 498 fc_host_speed(shost) = zfcp_fsf_exchange_config_evaluate() 508 fc_host_port_type(shost) = FC_PORTTYPE_PTP; zfcp_fsf_exchange_config_evaluate() 511 fc_host_port_type(shost) = FC_PORTTYPE_NPORT; zfcp_fsf_exchange_config_evaluate() 514 fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; zfcp_fsf_exchange_config_evaluate() 532 struct Scsi_Host *shost = adapter->scsi_host; zfcp_fsf_exchange_config_data_handler() local 561 fc_host_node_name(shost) = 0; zfcp_fsf_exchange_config_data_handler() 562 fc_host_port_name(shost) = 0; zfcp_fsf_exchange_config_data_handler() 563 fc_host_port_id(shost) = 0; zfcp_fsf_exchange_config_data_handler() 564 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; zfcp_fsf_exchange_config_data_handler() 565 fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN; zfcp_fsf_exchange_config_data_handler() 584 memcpy(fc_host_serial_number(shost), bottom->serial_number, zfcp_fsf_exchange_config_data_handler() 586 EBCASC(fc_host_serial_number(shost), zfcp_fsf_exchange_config_data_handler() 609 struct Scsi_Host *shost = adapter->scsi_host; zfcp_fsf_exchange_port_evaluate() local 615 fc_host_permanent_port_name(shost) = bottom->wwpn; zfcp_fsf_exchange_port_evaluate() 616 fc_host_port_type(shost) = FC_PORTTYPE_NPIV; zfcp_fsf_exchange_port_evaluate() 618 fc_host_permanent_port_name(shost) = fc_host_port_name(shost); zfcp_fsf_exchange_port_evaluate() 619 fc_host_maxframe_size(shost) = bottom->maximum_frame_size; zfcp_fsf_exchange_port_evaluate() 620 fc_host_supported_speeds(shost) = zfcp_fsf_exchange_port_evaluate() 622 memcpy(fc_host_supported_fc4s(shost), bottom->supported_fc4_types, zfcp_fsf_exchange_port_evaluate() 624 memcpy(fc_host_active_fc4s(shost), bottom->active_fc4_types, zfcp_fsf_exchange_port_evaluate()
|
H A D | zfcp_fc.c | 520 struct Scsi_Host *shost = adapter->scsi_host; zfcp_fc_adisc() local 540 fc_req->u.adisc.req.adisc_wwpn = fc_host_port_name(shost); zfcp_fc_adisc() 541 fc_req->u.adisc.req.adisc_wwnn = fc_host_node_name(shost); zfcp_fc_adisc() 543 hton24(fc_req->u.adisc.req.adisc_port_id, fc_host_port_id(shost)); zfcp_fc_adisc() 816 struct Scsi_Host *shost = adapter->scsi_host; zfcp_fc_rspn() local 824 hton24(rspn_req->rspn.fr_fid.fp_fid, fc_host_port_id(shost)); zfcp_fc_rspn() 825 len = strlcpy(rspn_req->rspn.fr_name, fc_host_symbolic_name(shost), zfcp_fc_rspn() 907 adapter = (struct zfcp_adapter *) job->shost->hostdata[0]; zfcp_fc_job_wka_port() 983 struct Scsi_Host *shost; zfcp_fc_exec_bsg_job() local 987 shost = job->rport ? rport_to_shost(job->rport) : job->shost; zfcp_fc_exec_bsg_job() 988 adapter = (struct zfcp_adapter *)shost->hostdata[0]; zfcp_fc_exec_bsg_job()
|
H A D | zfcp_unit.c | 189 struct Scsi_Host *shost; zfcp_unit_sdev() local 195 shost = port->adapter->scsi_host; zfcp_unit_sdev() 196 return scsi_device_lookup(shost, 0, port->starget_id, lun); zfcp_unit_sdev()
|
/linux-4.1.27/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_ctl.c | 2340 * A sysfs 'read-only' shost attribute. 2346 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_fw_show() local 2347 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_fw_show() 2362 * A sysfs 'read-only' shost attribute. 2368 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_bios_show() local 2369 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_bios_show() 2386 * A sysfs 'read-only' shost attribute. 2392 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_mpi_show() local 2393 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_mpi_show() 2405 * A sysfs 'read-only' shost attribute. 2411 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_product_show() local 2412 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_product_show() 2423 * A sysfs 'read-only' shost attribute. 2429 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_nvdata_persistent_show() local 2430 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_nvdata_persistent_show() 2443 * A sysfs 'read-only' shost attribute. 2449 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_nvdata_default_show() local 2450 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_nvdata_default_show() 2463 * A sysfs 'read-only' shost attribute. 2469 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_board_name_show() local 2470 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_board_name_show() 2481 * A sysfs 'read-only' shost attribute. 2487 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_board_assembly_show() local 2488 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_board_assembly_show() 2499 * A sysfs 'read-only' shost attribute. 2505 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_board_tracer_show() local 2506 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_board_tracer_show() 2520 * A sysfs 'read-only' shost attribute. 2526 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_io_delay_show() local 2527 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_io_delay_show() 2541 * A sysfs 'read-only' shost attribute. 2547 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_device_delay_show() local 2548 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_device_delay_show() 2561 * A sysfs 'read-only' shost attribute. 2567 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_fw_queue_depth_show() local 2568 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_fw_queue_depth_show() 2581 * A sysfs 'read-only' shost attribute. 2588 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_sas_address_show() local 2589 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_sas_address_show() 2602 * A sysfs 'read/write' shost attribute. 2608 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_logging_level_show() local 2609 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_logging_level_show() 2617 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_logging_level_store() local 2618 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_logging_level_store() 2638 * A sysfs 'read/write' shost attribute. 2644 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_fwfault_debug_show() local 2645 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_fwfault_debug_show() 2653 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_fwfault_debug_store() local 2654 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_fwfault_debug_store() 2675 * A sysfs 'read-only' shost attribute. 2681 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_ioc_reset_count_show() local 2682 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_ioc_reset_count_show() 2695 * A sysfs 'read-only' shost attribute. 2702 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_ioc_reply_queue_count_show() local 2703 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_ioc_reply_queue_count_show() 2731 * A sysfs 'read-only' shost attribute. 2737 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_size_show() local 2738 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_size_show() 2776 * A sysfs 'read/write' shost attribute. 2786 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_show() local 2787 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_show() 2820 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_store() local 2821 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_store() 2841 * A sysfs 'read/write' shost attribute. 2849 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_enable_show() local 2850 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_enable_show() 2867 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_enable_store() local 2868 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_enable_store() 2927 * A sysfs 'read/write' shost attribute. 2934 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_diag_trigger_master_show() local 2935 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_diag_trigger_master_show() 2951 * A sysfs 'read/write' shost attribute. 2958 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_diag_trigger_master_store() local 2959 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_diag_trigger_master_store() 2982 * A sysfs 'read/write' shost attribute. 2988 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_diag_trigger_event_show() local 2989 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_diag_trigger_event_show() 3005 * A sysfs 'read/write' shost attribute. 3012 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_diag_trigger_event_store() local 3013 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_diag_trigger_event_store() 3036 * A sysfs 'read/write' shost attribute. 3042 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_diag_trigger_scsi_show() local 3043 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_diag_trigger_scsi_show() 3059 * A sysfs 'read/write' shost attribute. 3065 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_diag_trigger_scsi_store() local 3066 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_diag_trigger_scsi_store() 3089 * A sysfs 'read/write' shost attribute. 3095 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_diag_trigger_mpi_show() local 3096 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_diag_trigger_mpi_show() 3112 * A sysfs 'read/write' shost attribute. 3118 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_diag_trigger_mpi_store() local 3119 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _ctl_diag_trigger_mpi_store() 3180 * A sysfs 'read-only' shost attribute. 3201 * A sysfs 'read-only' shost attribute.
|
H A D | mpt3sas_scsih.c | 78 static void _scsih_scan_start(struct Scsi_Host *shost); 79 static int _scsih_scan_finished(struct Scsi_Host *shost, unsigned long time); 1067 struct Scsi_Host *shost = sdev->host; _scsih_change_queue_depth() local 1069 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_change_queue_depth() 1075 max_depth = shost->can_queue; _scsih_change_queue_depth() 1113 struct Scsi_Host *shost = dev_to_shost(&starget->dev); _scsih_target_alloc() local 1114 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_target_alloc() 1177 struct Scsi_Host *shost = dev_to_shost(&starget->dev); _scsih_target_destroy() local 1178 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_target_destroy() 1227 struct Scsi_Host *shost; _scsih_slave_alloc() local 1252 shost = dev_to_shost(&starget->dev); _scsih_slave_alloc() 1253 ioc = shost_priv(shost); _scsih_slave_alloc() 1290 struct Scsi_Host *shost; _scsih_slave_destroy() local 1302 shost = dev_to_shost(&starget->dev); _scsih_slave_destroy() 1303 ioc = shost_priv(shost); _scsih_slave_destroy() 1624 struct Scsi_Host *shost = sdev->host; _scsih_slave_configure() local 1625 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_slave_configure() 1937 shost_for_each_device(sdev, ioc->shost) { mpt3sas_scsih_set_tm_flag() 1965 shost_for_each_device(sdev, ioc->shost) { mpt3sas_scsih_clear_tm_flag() 2566 shost_for_each_device(sdev, ioc->shost) { _scsih_ublock_io_all_device() 2595 shost_for_each_device(sdev, ioc->shost) { _scsih_ublock_io_device() 2622 shost_for_each_device(sdev, ioc->shost) { _scsih_block_io_all_device() 2648 shost_for_each_device(sdev, ioc->shost) { _scsih_block_io_device() 3516 _scsih_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *scmd) _scsih_qcmd() argument 3518 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_qcmd() 4383 ioc->sas_hba.parent_dev = &ioc->shost->shost_gendev; _scsih_sas_host_add() 5731 rc = scsi_add_device(ioc->shost, RAID_CHANNEL, _scsih_sas_volume_add() 6159 rc = scsi_add_device(ioc->shost, RAID_CHANNEL, _scsih_sas_ir_volume_event() 6350 shost_for_each_device(sdev, ioc->shost) { _scsih_prep_device_scan() 7080 while (scsi_host_in_recovery(ioc->shost) || ioc->shost_recovery) _mpt3sas_fw_work() 7258 /* shost template */ 7416 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_remove() local 7417 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_remove() 7472 sas_remove_host(shost); _scsih_remove() 7473 scsi_remove_host(shost); _scsih_remove() 7476 scsi_host_put(shost); _scsih_remove() 7488 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_shutdown() local 7489 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_shutdown() 7551 rc = scsi_add_device(ioc->shost, RAID_CHANNEL, _scsih_probe_boot_devices() 7594 rc = scsi_add_device(ioc->shost, RAID_CHANNEL, _scsih_probe_raid() 7679 * @shost: SCSI host pointer 7681 * The shost has the ability to discover targets on its own instead 7686 _scsih_scan_start(struct Scsi_Host *shost) _scsih_scan_start() argument 7688 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_scan_start() 7705 * @shost: SCSI host pointer 7713 _scsih_scan_finished(struct Scsi_Host *shost, unsigned long time) _scsih_scan_finished() argument 7715 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_scan_finished() 7768 struct Scsi_Host *shost; _scsih_probe() local 7771 shost = scsi_host_alloc(&scsih_driver_template, _scsih_probe() 7773 if (!shost) _scsih_probe() 7777 ioc = shost_priv(shost); _scsih_probe() 7781 ioc->shost = shost; _scsih_probe() 7818 /* init shost parameters */ _scsih_probe() 7819 shost->max_cmd_len = 32; _scsih_probe() 7820 shost->max_lun = max_lun; _scsih_probe() 7821 shost->transportt = mpt3sas_transport_template; _scsih_probe() 7822 shost->unique_id = ioc->id; _scsih_probe() 7826 shost->max_sectors = 64; _scsih_probe() 7831 shost->max_sectors = 32767; _scsih_probe() 7837 shost->max_sectors = max_sectors & 0xFFFE; _scsih_probe() 7840 ioc->name, shost->max_sectors); _scsih_probe() 7846 scsi_host_set_prot(shost, prot_mask); _scsih_probe() 7848 scsi_host_set_prot(shost, SHOST_DIF_TYPE1_PROTECTION _scsih_probe() 7852 scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC); _scsih_probe() 7873 rv = scsi_add_host(shost, &pdev->dev); _scsih_probe() 7880 scsi_scan_host(shost); _scsih_probe() 7888 scsi_host_put(shost); _scsih_probe() 7903 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_suspend() local 7904 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_suspend() 7909 scsi_block_requests(shost); _scsih_suspend() 7930 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_resume() local 7931 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_resume() 7948 scsi_unblock_requests(shost); _scsih_resume() 7967 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_pci_error_detected() local 7968 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_pci_error_detected() 7979 scsi_block_requests(ioc->shost); _scsih_pci_error_detected() 8004 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_pci_slot_reset() local 8005 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_pci_slot_reset() 8041 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_pci_resume() local 8042 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_pci_resume() 8048 scsi_unblock_requests(ioc->shost); _scsih_pci_resume() 8058 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_pci_mmio_enabled() local 8059 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _scsih_pci_mmio_enabled()
|
H A D | mpt3sas_transport.c | 1028 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); phy_to_ioc() local 1029 return shost_priv(shost); phy_to_ioc() 1035 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); rphy_to_ioc() local 1036 return shost_priv(shost); rphy_to_ioc() 1870 * @shost: shost object 1879 _transport_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, _transport_smp_handler() argument 1882 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); _transport_smp_handler()
|
H A D | mpt3sas_base.h | 593 * @shost: shost object 634 * @scsi_io_cb_idx: shost generated commands 738 struct Scsi_Host *shost; member in struct:MPT3SAS_ADAPTER
|
H A D | mpt3sas_base.c | 2696 ioc->shost->sg_tablesize = sg_tablesize; _base_allocate_memory_pools() 2736 chains_needed_per_io = ((ioc->shost->sg_tablesize - _base_allocate_memory_pools() 2741 ioc->shost->sg_tablesize = min_t(u16, _base_allocate_memory_pools() 2743 * chains_needed_per_io), ioc->shost->sg_tablesize); _base_allocate_memory_pools() 2772 ioc->max_sges_in_chain_message, ioc->shost->sg_tablesize, _base_allocate_memory_pools() 2840 ioc->shost->can_queue = ioc->scsiio_depth; _base_allocate_memory_pools() 2843 ioc->name, ioc->shost->can_queue)); _base_allocate_memory_pools() 3068 ioc->name, ioc->shost->can_queue, facts->RequestCredit); _base_allocate_memory_pools() 3070 ioc->name, ioc->shost->sg_tablesize); _base_allocate_memory_pools() 3738 ioc->shost->max_id = -1; _base_get_ioc_facts() 4629 pci_set_drvdata(ioc->pdev, ioc->shost); mpt3sas_base_attach()
|
/linux-4.1.27/drivers/scsi/aacraid/ |
H A D | linit.c | 254 static int aac_queuecommand(struct Scsi_Host *shost, aac_queuecommand() argument 265 * @shost: Scsi host to report on 270 static const char *aac_info(struct Scsi_Host *shost) aac_info() argument 272 struct aac_dev *dev = (struct aac_dev *)shost->hostdata; aac_info() 1127 struct Scsi_Host *shost; aac_probe_one() local 1165 shost = scsi_host_alloc(&aac_driver_template, sizeof(struct aac_dev)); aac_probe_one() 1166 if (!shost) aac_probe_one() 1169 shost->irq = pdev->irq; aac_probe_one() 1170 shost->unique_id = unique_id; aac_probe_one() 1171 shost->max_cmd_len = 16; aac_probe_one() 1172 shost->use_cmd_list = 1; aac_probe_one() 1174 aac = (struct aac_dev *)shost->hostdata; aac_probe_one() 1176 aac->scsi_host_ptr = shost; aac_probe_one() 1179 aac->id = shost->unique_id; aac_probe_one() 1183 aac->fibs = kzalloc(sizeof(struct fib) * (shost->can_queue + AAC_NUM_MGT_FIB), GFP_KERNEL); aac_probe_one() 1239 (shost->sg_tablesize > 34)) { aac_probe_one() 1240 shost->sg_tablesize = 34; aac_probe_one() 1241 shost->max_sectors = (shost->sg_tablesize * 8) + 112; aac_probe_one() 1245 (shost->sg_tablesize > 17)) { aac_probe_one() 1246 shost->sg_tablesize = 17; aac_probe_one() 1247 shost->max_sectors = (shost->sg_tablesize * 8) + 112; aac_probe_one() 1252 (shost->max_sectors << 9) : 65536); aac_probe_one() 1270 shost->max_channel = aac->maximum_num_channels; aac_probe_one() 1272 shost->max_channel = 0; aac_probe_one() 1278 shost->max_id = aac->maximum_num_containers; aac_probe_one() 1279 if (shost->max_id < aac->maximum_num_physicals) aac_probe_one() 1280 shost->max_id = aac->maximum_num_physicals; aac_probe_one() 1281 if (shost->max_id < MAXIMUM_NUM_CONTAINERS) aac_probe_one() 1282 shost->max_id = MAXIMUM_NUM_CONTAINERS; aac_probe_one() 1284 shost->this_id = shost->max_id; aac_probe_one() 1290 shost->max_lun = AAC_MAX_LUN; aac_probe_one() 1292 pci_set_drvdata(pdev, shost); aac_probe_one() 1294 error = scsi_add_host(shost, &pdev->dev); aac_probe_one() 1297 scsi_scan_host(shost); aac_probe_one() 1313 scsi_host_put(shost); aac_probe_one() 1322 struct Scsi_Host *shost = pci_get_drvdata(dev); aac_shutdown() local 1323 scsi_block_requests(shost); aac_shutdown() 1324 __aac_shutdown((struct aac_dev *)shost->hostdata); aac_shutdown() 1329 struct Scsi_Host *shost = pci_get_drvdata(pdev); aac_remove_one() local 1330 struct aac_dev *aac = (struct aac_dev *)shost->hostdata; aac_remove_one() 1332 scsi_remove_host(shost); aac_remove_one() 1346 scsi_host_put(shost); aac_remove_one()
|
H A D | aacraid.h | 2122 #define shost_to_class(shost) &shost->shost_dev
|
/linux-4.1.27/drivers/scsi/isci/ |
H A D | init.c | 136 struct Scsi_Host *shost = container_of(dev, typeof(*shost), shost_dev); isci_show_id() local 137 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); isci_show_id() 271 struct Scsi_Host *shost; isci_unregister() local 278 shost = to_shost(isci_host); isci_unregister() 279 sas_remove_host(shost); isci_unregister() 280 scsi_remove_host(shost); isci_unregister() 281 scsi_host_put(shost); isci_unregister() 518 struct Scsi_Host *shost; isci_host_alloc() local 576 shost = scsi_host_alloc(&isci_sht, sizeof(void *)); isci_host_alloc() 577 if (!shost) isci_host_alloc() 592 SHOST_TO_SAS_HA(shost) = &ihost->sas_ha; isci_host_alloc() 593 ihost->sas_ha.core.shost = shost; isci_host_alloc() 594 shost->transportt = isci_transport_template; isci_host_alloc() 596 shost->max_id = ~0; isci_host_alloc() 597 shost->max_lun = ~0; isci_host_alloc() 598 shost->max_cmd_len = MAX_COMMAND_SIZE; isci_host_alloc() 600 err = scsi_add_host(shost, &pdev->dev); isci_host_alloc() 611 scsi_remove_host(shost); isci_host_alloc() 613 scsi_host_put(shost); isci_host_alloc() 764 isci_host_start(ihost->sas_ha.core.shost); for_each_isci_host()
|
H A D | host.c | 654 int isci_host_scan_finished(struct Scsi_Host *shost, unsigned long time) isci_host_scan_finished() argument 656 struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); isci_host_scan_finished() 1047 void isci_host_start(struct Scsi_Host *shost) isci_host_start() argument 1049 struct isci_host *ihost = SHOST_TO_SAS_HA(shost)->lldd_ha; isci_host_start()
|
H A D | host.h | 310 return ihost->sas_ha.core.shost; to_shost()
|
/linux-4.1.27/drivers/scsi/libfc/ |
H A D | fc_npiv.c | 35 struct Scsi_Host *shost = vport_to_shost(vport); libfc_vport_create() local 36 struct fc_lport *n_port = shost_priv(shost); libfc_vport_create() 39 vn_port = libfc_host_alloc(shost->hostt, privsize); libfc_vport_create() 132 struct Scsi_Host *shost = vport_to_shost(vport); fc_vport_setlink() local 133 struct fc_lport *n_port = shost_priv(shost); fc_vport_setlink()
|
H A D | fc_lport.c | 263 * @shost: The SCSI host whose port state is to be determined 265 void fc_get_host_port_state(struct Scsi_Host *shost) fc_get_host_port_state() argument 267 struct fc_lport *lport = shost_priv(shost); fc_get_host_port_state() 271 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; fc_get_host_port_state() 275 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; fc_get_host_port_state() 278 fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; fc_get_host_port_state() 286 * @shost: The SCSI host whose port speed is to be determined 288 void fc_get_host_speed(struct Scsi_Host *shost) fc_get_host_speed() argument 290 struct fc_lport *lport = shost_priv(shost); fc_get_host_speed() 292 fc_host_speed(shost) = lport->link_speed; fc_get_host_speed() 298 * @shost: The SCSI host whose statistics are to be returned 300 struct fc_host_statistics *fc_get_host_stats(struct Scsi_Host *shost) fc_get_host_stats() argument 303 struct fc_lport *lport = shost_priv(shost); fc_get_host_stats() 2088 struct Scsi_Host *shost = job->shost; fc_lport_bsg_request() local 2089 struct fc_lport *lport = shost_priv(shost); fc_lport_bsg_request()
|
H A D | fc_fcp.c | 1800 * @shost: The Scsi_Host that the command was issued to 1805 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) fc_queuecommand() argument 1807 struct fc_lport *lport = shost_priv(shost); fc_queuecommand() 2137 struct Scsi_Host *shost = sc_cmd->device->host; fc_eh_host_reset() local 2138 struct fc_lport *lport = shost_priv(shost); fc_eh_host_reset() 2152 shost_printk(KERN_INFO, shost, "libfc: Host reset succeeded " fc_eh_host_reset() 2156 shost_printk(KERN_INFO, shost, "libfc: Host reset failed, " fc_eh_host_reset()
|
/linux-4.1.27/drivers/scsi/bnx2i/ |
H A D | bnx2i_iscsi.c | 757 * bnx2i_setup_host_queue_size - assigns shost->can_queue param 759 * @shost: scsi host pointer 766 struct Scsi_Host *shost) bnx2i_setup_host_queue_size() 769 shost->can_queue = ISCSI_MAX_CMDS_PER_HBA_5708; bnx2i_setup_host_queue_size() 771 shost->can_queue = ISCSI_MAX_CMDS_PER_HBA_5709; bnx2i_setup_host_queue_size() 773 shost->can_queue = ISCSI_MAX_CMDS_PER_HBA_57710; bnx2i_setup_host_queue_size() 775 shost->can_queue = ISCSI_MAX_CMDS_PER_HBA_5708; bnx2i_setup_host_queue_size() 788 struct Scsi_Host *shost; bnx2i_alloc_hba() local 791 shost = iscsi_host_alloc(&bnx2i_host_template, sizeof(*hba), 0); bnx2i_alloc_hba() 792 if (!shost) bnx2i_alloc_hba() 794 shost->dma_boundary = cnic->pcidev->dma_mask; bnx2i_alloc_hba() 795 shost->transportt = bnx2i_scsi_xport_template; bnx2i_alloc_hba() 796 shost->max_id = ISCSI_MAX_CONNS_PER_HBA; bnx2i_alloc_hba() 797 shost->max_channel = 0; bnx2i_alloc_hba() 798 shost->max_lun = 512; bnx2i_alloc_hba() 799 shost->max_cmd_len = 16; bnx2i_alloc_hba() 801 hba = iscsi_host_priv(shost); bnx2i_alloc_hba() 802 hba->shost = shost; bnx2i_alloc_hba() 815 bnx2i_setup_host_queue_size(hba, shost); bnx2i_alloc_hba() 885 if (iscsi_host_add(shost, &hba->pcidev->dev)) bnx2i_alloc_hba() 900 scsi_host_put(shost); bnx2i_alloc_hba() 912 struct Scsi_Host *shost = hba->shost; bnx2i_free_hba() local 914 iscsi_host_remove(shost); bnx2i_free_hba() 926 iscsi_host_free(shost); bnx2i_free_hba() 1225 struct Scsi_Host *shost = iscsi_session_to_shost(session->cls_session); bnx2i_task_xmit() local 1226 struct bnx2i_hba *hba = iscsi_host_priv(shost); bnx2i_task_xmit() 1289 struct Scsi_Host *shost; bnx2i_session_create() local 1300 shost = bnx2i_ep->hba->shost; bnx2i_session_create() 1301 hba = iscsi_host_priv(shost); bnx2i_session_create() 1314 cls_session = iscsi_session_setup(&bnx2i_iscsi_transport, shost, bnx2i_session_create() 1340 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); bnx2i_session_destroy() local 1341 struct bnx2i_hba *hba = iscsi_host_priv(shost); bnx2i_session_destroy() 1358 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); bnx2i_conn_create() local 1359 struct bnx2i_hba *hba = iscsi_host_priv(shost); bnx2i_conn_create() 1411 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); bnx2i_conn_bind() local 1412 struct bnx2i_hba *hba = iscsi_host_priv(shost); bnx2i_conn_bind() 1477 struct Scsi_Host *shost; bnx2i_conn_destroy() local 1483 shost = iscsi_session_to_shost(iscsi_conn_to_session(cls_conn)); bnx2i_conn_destroy() 1484 hba = iscsi_host_priv(shost); bnx2i_conn_destroy() 1551 * @shost: scsi host pointer 1555 static int bnx2i_host_get_param(struct Scsi_Host *shost, bnx2i_host_get_param() argument 1558 struct bnx2i_hba *hba = iscsi_host_priv(shost); bnx2i_host_get_param() 1589 return iscsi_host_get_param(shost, param, buf); bnx2i_host_get_param() 1761 * @shost: scsi host 1771 static struct iscsi_endpoint *bnx2i_ep_connect(struct Scsi_Host *shost, bnx2i_ep_connect() argument 1785 if (shost) { bnx2i_ep_connect() 1787 hba = iscsi_host_priv(shost); bnx2i_ep_connect() 2180 static int bnx2i_nl_set_path(struct Scsi_Host *shost, struct iscsi_path *params) bnx2i_nl_set_path() argument 2182 struct bnx2i_hba *hba = iscsi_host_priv(shost); bnx2i_nl_set_path() 765 bnx2i_setup_host_queue_size(struct bnx2i_hba *hba, struct Scsi_Host *shost) bnx2i_setup_host_queue_size() argument
|
H A D | bnx2i_sysfs.c | 25 struct Scsi_Host *shost = class_to_shost(dev); bnx2i_dev_to_hba() local 26 return iscsi_host_priv(shost); bnx2i_dev_to_hba()
|
H A D | bnx2i_init.c | 237 iscsi_host_for_each_session(hba->shost, bnx2i_stop()
|
H A D | bnx2i.h | 355 * @shost: scsi host pointer 428 struct Scsi_Host *shost; member in struct:bnx2i_hba
|
H A D | bnx2i_hwi.c | 2391 bnx2i_conn->hba->shost->host_no, bnx2i_process_iscsi_error() 2575 iscsi_host_for_each_session(hba->shost, bnx2i_indicate_netevent() 2689 rc = iscsi_offload_mesg(hba->shost, &bnx2i_iscsi_transport, bnx2i_send_nl_mesg()
|
/linux-4.1.27/drivers/scsi/mpt2sas/ |
H A D | mpt2sas_ctl.c | 2304 * A sysfs 'read-only' shost attribute. 2310 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_fw_show() local 2311 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_fw_show() 2326 * A sysfs 'read-only' shost attribute. 2332 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_bios_show() local 2333 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_bios_show() 2350 * A sysfs 'read-only' shost attribute. 2356 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_mpi_show() local 2357 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_mpi_show() 2369 * A sysfs 'read-only' shost attribute. 2375 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_product_show() local 2376 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_product_show() 2388 * A sysfs 'read-only' shost attribute. 2394 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_nvdata_persistent_show() local 2395 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_nvdata_persistent_show() 2408 * A sysfs 'read-only' shost attribute. 2414 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_version_nvdata_default_show() local 2415 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_version_nvdata_default_show() 2428 * A sysfs 'read-only' shost attribute. 2434 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_board_name_show() local 2435 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_board_name_show() 2446 * A sysfs 'read-only' shost attribute. 2452 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_board_assembly_show() local 2453 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_board_assembly_show() 2465 * A sysfs 'read-only' shost attribute. 2471 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_board_tracer_show() local 2472 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_board_tracer_show() 2487 * A sysfs 'read-only' shost attribute. 2493 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_io_delay_show() local 2494 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_io_delay_show() 2509 * A sysfs 'read-only' shost attribute. 2515 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_device_delay_show() local 2516 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_device_delay_show() 2530 * A sysfs 'read-only' shost attribute. 2536 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_fw_queue_depth_show() local 2537 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_fw_queue_depth_show() 2551 * A sysfs 'read-only' shost attribute. 2557 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_sas_address_show() local 2558 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_sas_address_show() 2571 * A sysfs 'read/write' shost attribute. 2577 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_logging_level_show() local 2578 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_logging_level_show() 2586 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_logging_level_store() local 2587 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_logging_level_store() 2608 * A sysfs 'read/write' shost attribute. 2614 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_fwfault_debug_show() local 2615 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_fwfault_debug_show() 2623 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_fwfault_debug_store() local 2624 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_fwfault_debug_store() 2646 * A sysfs 'read-only' shost attribute. 2652 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_ioc_reset_count_show() local 2653 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_ioc_reset_count_show() 2667 * A sysfs 'read-only' shost attribute. 2674 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_ioc_reply_queue_count_show() local 2675 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_ioc_reply_queue_count_show() 2694 * A sysfs 'read-only' shost attribute. 2700 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_BRM_status_show() local 2701 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_BRM_status_show() 2770 * A sysfs 'read-only' shost attribute. 2776 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_size_show() local 2777 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_size_show() 2812 * A sysfs 'read/write' shost attribute. 2822 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_show() local 2823 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_show() 2854 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_store() local 2855 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_store() 2874 * A sysfs 'read/write' shost attribute. 2882 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_enable_show() local 2883 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_enable_show() 2900 struct Scsi_Host *shost = class_to_shost(cdev); _ctl_host_trace_buffer_enable_store() local 2901 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _ctl_host_trace_buffer_enable_store() 2978 * A sysfs 'read-only' shost attribute. 2999 * A sysfs 'read-only' shost attribute.
|
H A D | mpt2sas_scsih.c | 77 static void _scsih_scan_start(struct Scsi_Host *shost); 78 static int _scsih_scan_finished(struct Scsi_Host *shost, unsigned long time); 1192 struct Scsi_Host *shost = sdev->host; _scsih_change_queue_depth() local 1194 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_change_queue_depth() 1200 max_depth = shost->can_queue; _scsih_change_queue_depth() 1237 struct Scsi_Host *shost = dev_to_shost(&starget->dev); _scsih_target_alloc() local 1238 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_target_alloc() 1301 struct Scsi_Host *shost = dev_to_shost(&starget->dev); _scsih_target_destroy() local 1302 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_target_destroy() 1351 struct Scsi_Host *shost; _scsih_slave_alloc() local 1376 shost = dev_to_shost(&starget->dev); _scsih_slave_alloc() 1377 ioc = shost_priv(shost); _scsih_slave_alloc() 1414 struct Scsi_Host *shost; _scsih_slave_destroy() local 1426 shost = dev_to_shost(&starget->dev); _scsih_slave_destroy() 1427 ioc = shost_priv(shost); _scsih_slave_destroy() 1957 struct Scsi_Host *shost = sdev->host; _scsih_slave_configure() local 1958 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_slave_configure() 2270 shost_for_each_device(sdev, ioc->shost) { mpt2sas_scsih_set_tm_flag() 2298 shost_for_each_device(sdev, ioc->shost) { mpt2sas_scsih_clear_tm_flag() 2881 shost_for_each_device(sdev, ioc->shost) { _scsih_ublock_io_all_device() 2907 shost_for_each_device(sdev, ioc->shost) { _scsih_ublock_io_device() 2938 shost_for_each_device(sdev, ioc->shost) { _scsih_block_io_all_device() 2966 shost_for_each_device(sdev, ioc->shost) { _scsih_block_io_device() 3899 _scsih_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *scmd) _scsih_qcmd() argument 3901 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_qcmd() 4781 ioc->sas_hba.parent_dev = &ioc->shost->shost_gendev; _scsih_sas_host_add() 6061 rc = scsi_add_device(ioc->shost, RAID_CHANNEL, _scsih_sas_volume_add() 6485 rc = scsi_add_device(ioc->shost, RAID_CHANNEL, _scsih_sas_ir_volume_event() 6681 shost_for_each_device(sdev, ioc->shost) { _scsih_prep_device_scan() 7422 while (scsi_host_in_recovery(ioc->shost) || ioc->shost_recovery) _firmware_event_work() 7626 /* shost template */ 7782 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_shutdown() local 7783 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_shutdown() 7811 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_remove() local 7812 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_remove() 7867 sas_remove_host(shost); _scsih_remove() 7868 scsi_remove_host(shost); _scsih_remove() 7871 scsi_host_put(shost); _scsih_remove() 7917 rc = scsi_add_device(ioc->shost, RAID_CHANNEL, _scsih_probe_boot_devices() 7962 rc = scsi_add_device(ioc->shost, RAID_CHANNEL, _scsih_probe_raid() 8044 * @shost: SCSI host pointer 8046 * The shost has the ability to discover targets on its own instead 8051 _scsih_scan_start(struct Scsi_Host *shost) _scsih_scan_start() argument 8053 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_scan_start() 8071 * @shost: SCSI host pointer 8079 _scsih_scan_finished(struct Scsi_Host *shost, unsigned long time) _scsih_scan_finished() argument 8081 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_scan_finished() 8133 struct Scsi_Host *shost; _scsih_probe() local 8136 shost = scsi_host_alloc(&scsih_driver_template, _scsih_probe() 8138 if (!shost) _scsih_probe() 8142 ioc = shost_priv(shost); _scsih_probe() 8146 ioc->shost = shost; _scsih_probe() 8187 /* init shost parameters */ _scsih_probe() 8188 shost->max_cmd_len = 32; _scsih_probe() 8189 shost->max_lun = max_lun; _scsih_probe() 8190 shost->transportt = mpt2sas_transport_template; _scsih_probe() 8191 shost->unique_id = ioc->id; _scsih_probe() 8195 shost->max_sectors = 64; _scsih_probe() 8200 shost->max_sectors = 32767; _scsih_probe() 8206 shost->max_sectors = max_sectors & 0xFFFE; _scsih_probe() 8208 "set to %d\n", ioc->name, shost->max_sectors); _scsih_probe() 8214 scsi_host_set_prot(shost, prot_mask); _scsih_probe() 8216 scsi_host_set_prot(shost, SHOST_DIF_TYPE1_PROTECTION _scsih_probe() 8220 scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC); _scsih_probe() 8256 rv = scsi_add_host(shost, &pdev->dev); _scsih_probe() 8263 scsi_scan_host(shost); _scsih_probe() 8273 scsi_host_put(shost); _scsih_probe() 8288 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_suspend() local 8289 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_suspend() 8293 scsi_block_requests(shost); _scsih_suspend() 8315 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_resume() local 8316 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_resume() 8333 scsi_unblock_requests(shost); _scsih_resume() 8352 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_pci_error_detected() local 8353 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_pci_error_detected() 8364 scsi_block_requests(ioc->shost); _scsih_pci_error_detected() 8389 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_pci_slot_reset() local 8390 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_pci_slot_reset() 8427 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_pci_resume() local 8428 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_pci_resume() 8434 scsi_unblock_requests(ioc->shost); _scsih_pci_resume() 8444 struct Scsi_Host *shost = pci_get_drvdata(pdev); _scsih_pci_mmio_enabled() local 8445 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _scsih_pci_mmio_enabled()
|
H A D | mpt2sas_transport.c | 1031 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); phy_to_ioc() local 1032 return shost_priv(shost); phy_to_ioc() 1038 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); rphy_to_ioc() local 1039 return shost_priv(shost); rphy_to_ioc() 1887 * @shost: shost object 1896 _transport_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, _transport_smp_handler() argument 1899 struct MPT2SAS_ADAPTER *ioc = shost_priv(shost); _transport_smp_handler()
|
H A D | mpt2sas_base.h | 660 * @shost: shost object 701 * @scsi_io_cb_idx: shost generated commands 805 struct Scsi_Host *shost; member in struct:MPT2SAS_ADAPTER
|
H A D | mpt2sas_base.c | 2514 ioc->shost->sg_tablesize = min_t(unsigned short, _base_allocate_memory_pools() 2516 if (ioc->shost->sg_tablesize > MPT2SAS_SG_DEPTH) _base_allocate_memory_pools() 2520 ioc->shost->sg_tablesize, MPT2SAS_SG_DEPTH); _base_allocate_memory_pools() 2522 ioc->shost->sg_tablesize = MPT2SAS_SG_DEPTH; _base_allocate_memory_pools() 2564 chains_needed_per_io = ((ioc->shost->sg_tablesize - _base_allocate_memory_pools() 2569 ioc->shost->sg_tablesize = min_t(u16, _base_allocate_memory_pools() 2571 * chains_needed_per_io), ioc->shost->sg_tablesize); _base_allocate_memory_pools() 2600 ioc->max_sges_in_chain_message, ioc->shost->sg_tablesize, _base_allocate_memory_pools() 2668 ioc->shost->can_queue = ioc->scsiio_depth; _base_allocate_memory_pools() 2670 "can_queue depth (%d)\n", ioc->name, ioc->shost->can_queue)); _base_allocate_memory_pools() 2891 ioc->name, ioc->shost->can_queue, facts->RequestCredit); _base_allocate_memory_pools() 2893 ioc->name, ioc->shost->sg_tablesize); _base_allocate_memory_pools() 3617 ioc->shost->max_id = -1; _base_get_ioc_facts() 4517 pci_set_drvdata(ioc->pdev, ioc->shost); mpt2sas_base_attach()
|
/linux-4.1.27/drivers/scsi/ibmvscsi/ |
H A D | ibmvfc.c | 913 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); __ibmvfc_get_target() local 914 struct ibmvfc_host *vhost = shost_priv(shost); __ibmvfc_get_target() 934 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ibmvfc_get_target() local 938 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_get_target() 940 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_get_target() 946 * @shost: scsi host struct 951 static void ibmvfc_get_host_speed(struct Scsi_Host *shost) ibmvfc_get_host_speed() argument 953 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_get_host_speed() 956 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_get_host_speed() 960 fc_host_speed(shost) = FC_PORTSPEED_1GBIT; ibmvfc_get_host_speed() 963 fc_host_speed(shost) = FC_PORTSPEED_2GBIT; ibmvfc_get_host_speed() 966 fc_host_speed(shost) = FC_PORTSPEED_4GBIT; ibmvfc_get_host_speed() 969 fc_host_speed(shost) = FC_PORTSPEED_8GBIT; ibmvfc_get_host_speed() 972 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; ibmvfc_get_host_speed() 975 fc_host_speed(shost) = FC_PORTSPEED_16GBIT; ibmvfc_get_host_speed() 980 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; ibmvfc_get_host_speed() 984 fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; ibmvfc_get_host_speed() 985 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_get_host_speed() 990 * @shost: scsi host struct 995 static void ibmvfc_get_host_port_state(struct Scsi_Host *shost) ibmvfc_get_host_port_state() argument 997 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_get_host_port_state() 1000 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_get_host_port_state() 1004 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; ibmvfc_get_host_port_state() 1007 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; ibmvfc_get_host_port_state() 1011 fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; ibmvfc_get_host_port_state() 1014 fc_host_port_state(shost) = FC_PORTSTATE_BLOCKED; ibmvfc_get_host_port_state() 1017 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; ibmvfc_get_host_port_state() 1021 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; ibmvfc_get_host_port_state() 1024 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_get_host_port_state() 1120 * @shost: scsi host struct 1125 static int ibmvfc_issue_fc_host_lip(struct Scsi_Host *shost) ibmvfc_issue_fc_host_lip() argument 1127 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_issue_fc_host_lip() 1705 struct ibmvfc_host *vhost = shost_priv(job->shost); ibmvfc_bsg_timeout() 1818 struct ibmvfc_host *vhost = shost_priv(job->shost); ibmvfc_bsg_request() 2543 struct Scsi_Host *shost = rport_to_shost(rport); ibmvfc_terminate_rport_io() local 2544 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_terminate_rport_io() 2550 shost_for_each_device(sdev, shost) { shost_for_each_device() 2560 ibmvfc_issue_fc_host_lip(shost); 2798 * @shost: scsi host struct 2804 static int ibmvfc_scan_finished(struct Scsi_Host *shost, unsigned long time) ibmvfc_scan_finished() argument 2807 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_scan_finished() 2810 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_scan_finished() 2819 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_scan_finished() 2835 struct Scsi_Host *shost = sdev->host; ibmvfc_slave_alloc() local 2837 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_slave_alloc() 2843 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_slave_alloc() 2845 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_slave_alloc() 2861 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ibmvfc_target_alloc() local 2862 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_target_alloc() 2865 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_target_alloc() 2867 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_target_alloc() 2883 struct Scsi_Host *shost = sdev->host; ibmvfc_slave_configure() local 2886 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_slave_configure() 2889 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_slave_configure() 2913 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_show_host_partition_name() local 2914 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_show_host_partition_name() 2923 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_show_host_device_name() local 2924 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_show_host_device_name() 2933 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_show_host_loc_code() local 2934 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_show_host_loc_code() 2943 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_show_host_drc_name() local 2944 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_show_host_drc_name() 2953 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_show_host_npiv_version() local 2954 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_show_host_npiv_version() 2961 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_show_host_capabilities() local 2962 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_show_host_capabilities() 2977 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_show_log_level() local 2978 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_show_log_level() 2982 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_show_log_level() 2984 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_show_log_level() 3000 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_store_log_level() local 3001 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_store_log_level() 3004 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_store_log_level() 3006 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_store_log_level() 3037 struct Scsi_Host *shost = class_to_shost(dev); ibmvfc_read_trace() local 3038 struct ibmvfc_host *vhost = shost_priv(shost); ibmvfc_read_trace() 3050 spin_lock_irqsave(shost->host_lock, flags); ibmvfc_read_trace() 3052 spin_unlock_irqrestore(shost->host_lock, flags); ibmvfc_read_trace() 4751 struct Scsi_Host *shost; ibmvfc_probe() local 4756 shost = scsi_host_alloc(&driver_template, sizeof(*vhost)); ibmvfc_probe() 4757 if (!shost) { ibmvfc_probe() 4762 shost->transportt = ibmvfc_transport_template; ibmvfc_probe() 4763 shost->can_queue = max_requests; ibmvfc_probe() 4764 shost->max_lun = max_lun; ibmvfc_probe() 4765 shost->max_id = max_targets; ibmvfc_probe() 4766 shost->max_sectors = IBMVFC_MAX_SECTORS; ibmvfc_probe() 4767 shost->max_cmd_len = IBMVFC_MAX_CDB_LEN; ibmvfc_probe() 4768 shost->unique_id = shost->host_no; ibmvfc_probe() 4770 vhost = shost_priv(shost); ibmvfc_probe() 4775 vhost->host = shost; ibmvfc_probe() 4790 shost->host_no); ibmvfc_probe() 4808 if ((rc = scsi_add_host(shost, dev))) ibmvfc_probe() 4811 fc_host_dev_loss_tmo(shost) = IBMVFC_DEV_LOSS_TMO; ibmvfc_probe() 4813 if ((rc = ibmvfc_create_trace_file(&shost->shost_dev.kobj, ibmvfc_probe() 4819 if (shost_to_fc_host(shost)->rqst_q) ibmvfc_probe() 4820 blk_queue_max_segments(shost_to_fc_host(shost)->rqst_q, 1); ibmvfc_probe() 4827 scsi_scan_host(shost); ibmvfc_probe() 4831 scsi_remove_host(shost); ibmvfc_probe() 4841 scsi_host_put(shost); ibmvfc_probe()
|
H A D | ibmvscsi.c | 1923 struct Scsi_Host *shost = sdev->host; ibmvscsi_slave_configure() local 1926 spin_lock_irqsave(shost->host_lock, lock_flags); ibmvscsi_slave_configure() 1931 spin_unlock_irqrestore(shost->host_lock, lock_flags); ibmvscsi_slave_configure() 1957 struct Scsi_Host *shost = class_to_shost(dev); show_host_vhost_loc() local 1958 struct ibmvscsi_host_data *hostdata = shost_priv(shost); show_host_vhost_loc() 1977 struct Scsi_Host *shost = class_to_shost(dev); show_host_vhost_name() local 1978 struct ibmvscsi_host_data *hostdata = shost_priv(shost); show_host_vhost_name() 1997 struct Scsi_Host *shost = class_to_shost(dev); show_host_srp_version() local 1998 struct ibmvscsi_host_data *hostdata = shost_priv(shost); show_host_srp_version() 2018 struct Scsi_Host *shost = class_to_shost(dev); show_host_partition_name() local 2019 struct ibmvscsi_host_data *hostdata = shost_priv(shost); show_host_partition_name() 2039 struct Scsi_Host *shost = class_to_shost(dev); show_host_partition_number() local 2040 struct ibmvscsi_host_data *hostdata = shost_priv(shost); show_host_partition_number() 2059 struct Scsi_Host *shost = class_to_shost(dev); show_host_mad_version() local 2060 struct ibmvscsi_host_data *hostdata = shost_priv(shost); show_host_mad_version() 2079 struct Scsi_Host *shost = class_to_shost(dev); show_host_os_type() local 2080 struct ibmvscsi_host_data *hostdata = shost_priv(shost); show_host_os_type() 2098 struct Scsi_Host *shost = class_to_shost(dev); show_host_config() local 2099 struct ibmvscsi_host_data *hostdata = shost_priv(shost); show_host_config()
|
/linux-4.1.27/drivers/scsi/aic94xx/ |
H A D | aic94xx_init.c | 714 sas_remove_host(asd_ha->sas_ha.core.shost); asd_unregister_sas_ha() 715 scsi_remove_host(asd_ha->sas_ha.core.shost); asd_unregister_sas_ha() 716 scsi_host_put(asd_ha->sas_ha.core.shost); asd_unregister_sas_ha() 729 struct Scsi_Host *shost; asd_pci_probe() local 746 shost = scsi_host_alloc(&aic94xx_sht, sizeof(void *)); asd_pci_probe() 747 if (!shost) asd_pci_probe() 765 SHOST_TO_SAS_HA(shost) = &asd_ha->sas_ha; asd_pci_probe() 766 asd_ha->sas_ha.core.shost = shost; asd_pci_probe() 767 shost->transportt = aic94xx_transport_template; asd_pci_probe() 768 shost->max_id = ~0; asd_pci_probe() 769 shost->max_lun = ~0; asd_pci_probe() 770 shost->max_cmd_len = 16; asd_pci_probe() 772 err = scsi_add_host(shost, &dev->dev); asd_pci_probe() 815 shost->can_queue = asd_ha->seq.can_queue; asd_pci_probe() 845 scsi_scan_host(shost); asd_pci_probe() 864 scsi_remove_host(shost); asd_pci_probe() 868 scsi_host_put(shost); asd_pci_probe() 944 static void asd_scan_start(struct Scsi_Host *shost) asd_scan_start() argument 949 asd_ha = SHOST_TO_SAS_HA(shost)->lldd_ha; asd_scan_start() 955 static int asd_scan_finished(struct Scsi_Host *shost, unsigned long time) asd_scan_finished() argument 962 sas_drain_work(SHOST_TO_SAS_HA(shost)); asd_scan_finished()
|
H A D | aic94xx_hwi.c | 49 return sas_request_addr(asd_ha->sas_ha.core.shost, asd_get_user_sas_addr()
|
/linux-4.1.27/drivers/infiniband/ulp/iser/ |
H A D | iscsi_iser.c | 571 struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); iscsi_iser_session_destroy() local 574 iscsi_host_remove(shost); iscsi_iser_session_destroy() 575 iscsi_host_free(shost); iscsi_iser_session_destroy() 607 struct Scsi_Host *shost; iscsi_iser_session_create() local 612 shost = iscsi_host_alloc(&iscsi_iser_sht, 0, 0); iscsi_iser_session_create() 613 if (!shost) iscsi_iser_session_create() 615 shost->transportt = iscsi_iser_scsi_transport; iscsi_iser_session_create() 616 shost->cmd_per_lun = qdepth; iscsi_iser_session_create() 617 shost->max_lun = iscsi_max_lun; iscsi_iser_session_create() 618 shost->max_id = 0; iscsi_iser_session_create() 619 shost->max_channel = 0; iscsi_iser_session_create() 620 shost->max_cmd_len = 16; iscsi_iser_session_create() 642 scsi_host_set_prot(shost, iser_dif_prot_caps(sig_caps)); iscsi_iser_session_create() 643 scsi_host_set_guard(shost, SHOST_DIX_GUARD_IP | iscsi_iser_session_create() 647 if (iscsi_host_add(shost, iscsi_iser_session_create() 655 if (iscsi_host_add(shost, NULL)) iscsi_iser_session_create() 665 cls_session = iscsi_session_setup(&iscsi_iser_transport, shost, iscsi_iser_session_create() 673 shost->can_queue = session->scsi_cmds_max; iscsi_iser_session_create() 677 iscsi_host_remove(shost); iscsi_iser_session_create() 679 iscsi_host_free(shost); iscsi_iser_session_create() 785 * @shost: scsi_host 799 iscsi_iser_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, iscsi_iser_ep_connect() argument
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_attr.c | 1623 qla2x00_get_host_port_id(struct Scsi_Host *shost) qla2x00_get_host_port_id() argument 1625 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_get_host_port_id() 1627 fc_host_port_id(shost) = vha->d_id.b.domain << 16 | qla2x00_get_host_port_id() 1632 qla2x00_get_host_speed(struct Scsi_Host *shost) qla2x00_get_host_speed() argument 1635 (shost_priv(shost)))->hw; qla2x00_get_host_speed() 1639 qlafx00_get_host_speed(shost); qla2x00_get_host_speed() 1666 fc_host_speed(shost) = speed; qla2x00_get_host_speed() 1670 qla2x00_get_host_port_type(struct Scsi_Host *shost) qla2x00_get_host_port_type() argument 1672 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_get_host_port_type() 1676 fc_host_port_type(shost) = FC_PORTTYPE_NPIV; qla2x00_get_host_port_type() 1693 fc_host_port_type(shost) = port_type; qla2x00_get_host_port_type() 1825 qla2x00_issue_lip(struct Scsi_Host *shost) qla2x00_issue_lip() argument 1827 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_issue_lip() 1837 qla2x00_get_fc_host_stats(struct Scsi_Host *shost) qla2x00_get_fc_host_stats() argument 1839 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_get_fc_host_stats() 1916 qla2x00_reset_host_stats(struct Scsi_Host *shost) qla2x00_reset_host_stats() argument 1918 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_reset_host_stats() 1926 qla2x00_get_host_symbolic_name(struct Scsi_Host *shost) qla2x00_get_host_symbolic_name() argument 1928 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_get_host_symbolic_name() 1930 qla2x00_get_sym_node_name(vha, fc_host_symbolic_name(shost), qla2x00_get_host_symbolic_name() 1931 sizeof(fc_host_symbolic_name(shost))); qla2x00_get_host_symbolic_name() 1935 qla2x00_set_host_system_hostname(struct Scsi_Host *shost) qla2x00_set_host_system_hostname() argument 1937 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_set_host_system_hostname() 1943 qla2x00_get_host_fabric_name(struct Scsi_Host *shost) qla2x00_get_host_fabric_name() argument 1945 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_get_host_fabric_name() 1953 fc_host_fabric_name(shost) = fabric_name; qla2x00_get_host_fabric_name() 1957 qla2x00_get_host_port_state(struct Scsi_Host *shost) qla2x00_get_host_port_state() argument 1959 scsi_qla_host_t *vha = shost_priv(shost); qla2x00_get_host_port_state() 1963 fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; qla2x00_get_host_port_state() 1969 fc_host_port_state(shost) = FC_PORTSTATE_DIAGNOSTICS; qla2x00_get_host_port_state() 1973 fc_host_port_state(shost) = FC_PORTSTATE_DIAGNOSTICS; qla2x00_get_host_port_state() 1975 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; qla2x00_get_host_port_state() 1978 fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; qla2x00_get_host_port_state() 1981 fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; qla2x00_get_host_port_state() 1984 fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; qla2x00_get_host_port_state() 1994 scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); qla24xx_vport_create()
|
H A D | qla_bsg.c | 121 struct Scsi_Host *host = bsg_job->shost; qla24xx_proc_fcp_prio_cfg_cmd() 266 host = bsg_job->shost; qla2x00_process_els() 426 struct Scsi_Host *host = bsg_job->shost; qla2x00_process_ct() 702 struct Scsi_Host *host = bsg_job->shost; qla2x00_process_loopback() 940 struct Scsi_Host *host = bsg_job->shost; qla84xx_reset() 973 struct Scsi_Host *host = bsg_job->shost; qla84xx_updatefw() 1082 struct Scsi_Host *host = bsg_job->shost; qla84xx_mgmt_cmd() 1277 struct Scsi_Host *host = bsg_job->shost; qla24xx_iidma() 1432 struct Scsi_Host *host = bsg_job->shost; qla2x00_read_optrom() 1467 struct Scsi_Host *host = bsg_job->shost; qla2x00_update_optrom() 1501 struct Scsi_Host *host = bsg_job->shost; qla2x00_update_fru_versions() 1551 struct Scsi_Host *host = bsg_job->shost; qla2x00_read_fru_status() 1599 struct Scsi_Host *host = bsg_job->shost; qla2x00_write_fru_status() 1643 struct Scsi_Host *host = bsg_job->shost; qla2x00_write_i2c() 1686 struct Scsi_Host *host = bsg_job->shost; qla2x00_read_i2c() 1733 struct Scsi_Host *host = bsg_job->shost; qla24xx_process_bidir_cmd() 1913 struct Scsi_Host *host = bsg_job->shost; qlafx00_mgmt_cmd() 2035 struct Scsi_Host *host = bsg_job->shost; qla26xx_serdes_op() 2075 struct Scsi_Host *host = bsg_job->shost; qla8044_serdes_op() 2190 host = bsg_job->shost; qla24xx_bsg_request() 2228 scsi_qla_host_t *vha = shost_priv(bsg_job->shost); qla24xx_bsg_timeout()
|
H A D | qla_mid.c | 407 scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); qla24xx_vport_create_req_sanity_check() 445 scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); qla24xx_create_vhost()
|
H A D | qla_mr.c | 2101 qlafx00_get_host_speed(struct Scsi_Host *shost) qlafx00_get_host_speed() argument 2104 (shost_priv(shost)))->hw; qlafx00_get_host_speed() 2121 fc_host_speed(shost) = speed; qlafx00_get_host_speed()
|
H A D | qla_os.c | 2247 qla2xxx_scan_start(struct Scsi_Host *shost) qla2xxx_scan_start() argument 2249 scsi_qla_host_t *vha = shost_priv(shost); qla2xxx_scan_start() 2261 qla2xxx_scan_finished(struct Scsi_Host *shost, unsigned long time) qla2xxx_scan_finished() argument 2263 scsi_qla_host_t *vha = shost_priv(shost); qla2xxx_scan_finished()
|
/linux-4.1.27/drivers/scsi/aic7xxx/ |
H A D | aic79xx_osm.c | 2390 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_width() local 2391 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_width() 2395 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_width() 2404 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_period() local 2405 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_period() 2410 shost->this_id, starget->id, &tstate); ahd_linux_set_period() 2437 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_period() 2457 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_offset() local 2458 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_offset() 2463 shost->this_id, starget->id, &tstate); ahd_linux_set_offset() 2475 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_offset() 2492 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_dt() local 2493 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_dt() 2498 shost->this_id, starget->id, &tstate); ahd_linux_set_dt() 2521 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_dt() 2534 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_qas() local 2535 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_qas() 2540 shost->this_id, starget->id, &tstate); ahd_linux_set_qas() 2560 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_qas() 2573 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_iu() local 2574 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_iu() 2579 shost->this_id, starget->id, &tstate); ahd_linux_set_iu() 2600 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_iu() 2613 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_rd_strm() local 2614 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_rd_strm() 2619 shost->this_id, starget->id, &tstate); ahd_linux_set_rd_strm() 2636 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_rd_strm() 2649 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_wr_flow() local 2650 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_wr_flow() 2655 shost->this_id, starget->id, &tstate); ahd_linux_set_wr_flow() 2672 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_wr_flow() 2685 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_rti() local 2686 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_rti() 2691 shost->this_id, starget->id, &tstate); ahd_linux_set_rti() 2716 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_rti() 2729 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_pcomp_en() local 2730 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_pcomp_en() 2735 shost->this_id, starget->id, &tstate); ahd_linux_set_pcomp_en() 2766 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_pcomp_en() 2779 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahd_linux_set_hold_mcs() local 2780 struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); ahd_linux_set_hold_mcs() 2785 shost->this_id, starget->id, &tstate); ahd_linux_set_hold_mcs() 2796 ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahd_linux_set_hold_mcs() 2807 static void ahd_linux_get_signalling(struct Scsi_Host *shost) ahd_linux_get_signalling() argument 2809 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; ahd_linux_get_signalling() 2820 spi_signalling(shost) = SPI_SIGNAL_LVD; ahd_linux_get_signalling() 2822 spi_signalling(shost) = SPI_SIGNAL_SE; ahd_linux_get_signalling() 2824 spi_signalling(shost) = SPI_SIGNAL_UNKNOWN; ahd_linux_get_signalling()
|
H A D | aic7xxx_proc.c | 188 ahc_proc_write_seeprom(struct Scsi_Host *shost, char *buffer, int length) ahc_proc_write_seeprom() argument 190 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; ahc_proc_write_seeprom() 289 ahc_linux_show_info(struct seq_file *m, struct Scsi_Host *shost) ahc_linux_show_info() argument 291 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; ahc_linux_show_info()
|
H A D | aic79xx_proc.c | 208 ahd_proc_write_seeprom(struct Scsi_Host *shost, char *buffer, int length) ahd_proc_write_seeprom() argument 210 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; ahd_proc_write_seeprom() 274 ahd_linux_show_info(struct seq_file *m, struct Scsi_Host *shost) ahd_linux_show_info() argument 276 struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; ahd_linux_show_info()
|
H A D | aic7xxx_osm.c | 2340 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahc_linux_set_width() local 2341 struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); ahc_linux_set_width() 2345 ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahc_linux_set_width() 2354 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahc_linux_set_period() local 2355 struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); ahc_linux_set_period() 2360 shost->this_id, starget->id, &tstate); ahc_linux_set_period() 2380 ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahc_linux_set_period() 2398 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahc_linux_set_offset() local 2399 struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); ahc_linux_set_offset() 2404 shost->this_id, starget->id, &tstate); ahc_linux_set_offset() 2411 ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahc_linux_set_offset() 2426 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); ahc_linux_set_dt() local 2427 struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); ahc_linux_set_dt() 2432 shost->this_id, starget->id, &tstate); ahc_linux_set_dt() 2448 ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, ahc_linux_set_dt() 2464 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 2465 struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); 2470 shost->this_id, starget->id, &tstate); 2481 ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, 2492 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); 2493 struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); 2498 shost->this_id, starget->id, &tstate); 2509 ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, 2519 static void ahc_linux_get_signalling(struct Scsi_Host *shost) ahc_linux_get_signalling() argument 2521 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; ahc_linux_get_signalling() 2527 spi_signalling(shost) = ahc_linux_get_signalling() 2541 spi_signalling(shost) = SPI_SIGNAL_LVD; ahc_linux_get_signalling() 2543 spi_signalling(shost) = SPI_SIGNAL_SE; ahc_linux_get_signalling() 2545 spi_signalling(shost) = SPI_SIGNAL_UNKNOWN; ahc_linux_get_signalling()
|
/linux-4.1.27/drivers/firewire/ |
H A D | sbp2.c | 712 struct Scsi_Host *shost = sbp2_conditionally_block() local 721 scsi_block_requests(shost); sbp2_conditionally_block() 730 * the section might clash with shost->host_lock. 736 struct Scsi_Host *shost = sbp2_conditionally_unblock() local 748 scsi_unblock_requests(shost); sbp2_conditionally_unblock() 755 * the section might clash with shost->host_lock. 759 struct Scsi_Host *shost = sbp2_unblock() local 766 scsi_unblock_requests(shost); sbp2_unblock() 814 struct Scsi_Host *shost; sbp2_login() local 875 shost = container_of((void *)tgt, struct Scsi_Host, hostdata[0]); sbp2_login() 876 sdev = __scsi_add_device(shost, 0, 0, sbp2_lun2int(lu->lun), lu); sbp2_login() 1140 struct Scsi_Host *shost; sbp2_probe() local 1151 shost = scsi_host_alloc(&scsi_driver_template, sizeof(*tgt)); sbp2_probe() 1152 if (shost == NULL) sbp2_probe() 1155 tgt = (struct sbp2_target *)shost->hostdata; sbp2_probe() 1165 shost->max_cmd_len = SBP2_MAX_CDB_SIZE; sbp2_probe() 1167 if (scsi_add_host_with_dma(shost, &unit->device, sbp2_probe() 1205 scsi_host_put(shost); sbp2_probe() 1232 struct Scsi_Host *shost = sbp2_remove() local 1241 sdev = scsi_device_lookup(shost, 0, 0, sbp2_lun2int(lu->lun)); sbp2_remove() 1264 scsi_remove_host(shost); sbp2_remove() 1265 dev_notice(&unit->device, "released target %d:0:0\n", shost->host_no); sbp2_remove() 1267 scsi_host_put(shost); sbp2_remove() 1458 static int sbp2_scsi_queuecommand(struct Scsi_Host *shost, sbp2_scsi_queuecommand() argument
|
/linux-4.1.27/drivers/scsi/cxgbi/ |
H A D | libcxgbi.c | 325 iscsi_host_remove(chba->shost); cxgbi_hbas_remove() 327 iscsi_host_free(chba->shost); cxgbi_hbas_remove() 338 struct Scsi_Host *shost; cxgbi_hbas_add() local 344 shost = iscsi_host_alloc(sht, sizeof(*chba), 1); cxgbi_hbas_add() 345 if (!shost) { cxgbi_hbas_add() 352 shost->transportt = stt; cxgbi_hbas_add() 353 shost->max_lun = max_lun; cxgbi_hbas_add() 354 shost->max_id = max_id; cxgbi_hbas_add() 355 shost->max_channel = 0; cxgbi_hbas_add() 356 shost->max_cmd_len = 16; cxgbi_hbas_add() 358 chba = iscsi_host_priv(shost); cxgbi_hbas_add() 361 chba->shost = shost; cxgbi_hbas_add() 368 err = iscsi_host_add(shost, &cdev->pdev->dev); cxgbi_hbas_add() 373 scsi_host_put(shost); cxgbi_hbas_add() 2575 struct Scsi_Host *shost; cxgbi_create_session() local 2586 shost = chba->shost; cxgbi_create_session() 2588 BUG_ON(chba != iscsi_host_priv(shost)); cxgbi_create_session() 2590 cls_session = iscsi_session_setup(chba->cdev->itp, shost, cxgbi_create_session() 2622 int cxgbi_set_host_param(struct Scsi_Host *shost, enum iscsi_host_param param, cxgbi_set_host_param() argument 2625 struct cxgbi_hba *chba = iscsi_host_priv(shost); cxgbi_set_host_param() 2628 shost_printk(KERN_ERR, shost, "Could not get host param. " cxgbi_set_host_param() 2634 "shost 0x%p, hba 0x%p,%s, param %d, buf(%d) %s.\n", cxgbi_set_host_param() 2635 shost, chba, chba->ndev->name, param, buflen, buf); cxgbi_set_host_param() 2650 return iscsi_host_set_param(shost, param, buf, buflen); cxgbi_set_host_param() 2655 int cxgbi_get_host_param(struct Scsi_Host *shost, enum iscsi_host_param param, cxgbi_get_host_param() argument 2658 struct cxgbi_hba *chba = iscsi_host_priv(shost); cxgbi_get_host_param() 2662 shost_printk(KERN_ERR, shost, "Could not get host param. " cxgbi_get_host_param() 2668 "shost 0x%p, hba 0x%p,%s, param %d.\n", cxgbi_get_host_param() 2669 shost, chba, chba->ndev->name, param); cxgbi_get_host_param() 2691 return iscsi_host_get_param(shost, param, buf); cxgbi_get_host_param() 2698 struct iscsi_endpoint *cxgbi_ep_connect(struct Scsi_Host *shost, cxgbi_ep_connect() argument 2709 "shost 0x%p, non_blocking %d, dst_addr 0x%p.\n", cxgbi_ep_connect() 2710 shost, non_blocking, dst_addr); cxgbi_ep_connect() 2712 if (shost) { cxgbi_ep_connect() 2713 hba = iscsi_host_priv(shost); cxgbi_ep_connect() 2715 pr_info("shost 0x%p, priv NULL.\n", shost); cxgbi_ep_connect() 2742 shost->host_no, hba, cxgbi_ep_connect()
|
H A D | libcxgbi.h | 509 struct Scsi_Host *shost; member in struct:cxgbi_hba
|
/linux-4.1.27/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_fcoe.c | 630 static struct fc_host_statistics *bnx2fc_get_host_stats(struct Scsi_Host *shost) bnx2fc_get_host_stats() argument 633 struct fc_lport *lport = shost_priv(shost); bnx2fc_get_host_stats() 644 bnx2fc_stats = fc_get_host_stats(shost); bnx2fc_get_host_stats() 682 struct Scsi_Host *shost = lport->host; bnx2fc_shost_config() local 685 shost->max_cmd_len = BNX2FC_MAX_CMD_LEN; bnx2fc_shost_config() 686 shost->max_lun = BNX2FC_MAX_LUN; bnx2fc_shost_config() 687 shost->max_id = BNX2FC_MAX_FCP_TGT; bnx2fc_shost_config() 688 shost->max_channel = 0; bnx2fc_shost_config() 690 shost->transportt = bnx2fc_vport_xport_template; bnx2fc_shost_config() 692 shost->transportt = bnx2fc_transport_template; bnx2fc_shost_config() 1062 struct Scsi_Host *shost = vport_to_shost(vport); bnx2fc_vport_create() local 1063 struct fc_lport *n_port = shost_priv(shost); bnx2fc_vport_create() 1124 struct Scsi_Host *shost = vport_to_shost(vport); bnx2fc_vport_destroy() local 1125 struct fc_lport *n_port = shost_priv(shost); bnx2fc_vport_destroy() 1427 struct Scsi_Host *shost; bnx2fc_if_create() local 1450 shost = lport->host; bnx2fc_if_create() 1477 printk(KERN_ERR PFX "Couldnt configure shost for %s\n", bnx2fc_if_create() 1494 shost = vport_to_shost(vport); bnx2fc_if_create() 1495 n_port = shost_priv(shost); bnx2fc_if_create() 1514 scsi_remove_host(shost); bnx2fc_if_create() 2409 * @shost: shost the reset is from 2413 static int bnx2fc_fcoe_reset(struct Scsi_Host *shost) bnx2fc_fcoe_reset() argument 2415 struct fc_lport *lport = shost_priv(shost); bnx2fc_fcoe_reset()
|
/linux-4.1.27/include/trace/events/ |
H A D | scsi.h | 347 TP_PROTO(struct Scsi_Host *shost), 349 TP_ARGS(shost), 356 __entry->host_no = shost->host_no;
|
/linux-4.1.27/drivers/message/fusion/ |
H A D | mptspi.c | 404 struct Scsi_Host *shost = dev_to_shost(&starget->dev); mptspi_target_alloc() local 405 struct _MPT_SCSI_HOST *hd = shost_priv(shost); mptspi_target_alloc() 521 struct Scsi_Host *shost = dev_to_shost(&starget->dev); mptspi_read_spi_device_pg0() local 522 struct _MPT_SCSI_HOST *hd = shost_priv(shost); mptspi_read_spi_device_pg0() 782 mptspi_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) mptspi_qcmd() argument 784 struct _MPT_SCSI_HOST *hd = shost_priv(shost); mptspi_qcmd() 858 struct Scsi_Host *shost = dev_to_shost(&starget->dev); mptspi_write_spi_device_pg1() local 859 struct _MPT_SCSI_HOST *hd = shost_priv(shost); mptspi_write_spi_device_pg1() 1068 struct Scsi_Host *shost = dev_to_shost(&starget->dev); mptspi_write_qas() local 1069 struct _MPT_SCSI_HOST *hd = shost_priv(shost); mptspi_write_qas() 1122 struct Scsi_Host *shost = ioc->sh; mpt_work_wrapper() local 1134 shost_for_each_device(sdev,shost) { shost_for_each_device() 1151 shost_printk(KERN_INFO, shost, MYIOC_s_FMT
|
H A D | mptfc.c | 100 static int mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt); 193 struct Scsi_Host *shost = sdev->host; mptfc_block_error_handler() local 202 spin_lock_irqsave(shost->host_lock, flags); mptfc_block_error_handler() 205 spin_unlock_irqrestore(shost->host_lock, flags); mptfc_block_error_handler() 213 spin_lock_irqsave(shost->host_lock, flags); mptfc_block_error_handler() 216 spin_unlock_irqrestore(shost->host_lock, flags); mptfc_block_error_handler() 651 mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) mptfc_qcmd() argument
|
H A D | mptsas.c | 366 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); phy_to_ioc() local 367 return ((MPT_SCSI_HOST *)shost->hostdata)->ioc; phy_to_ioc() 372 struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); rphy_to_ioc() local 373 return ((MPT_SCSI_HOST *)shost->hostdata)->ioc; rphy_to_ioc() 1897 mptsas_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) mptsas_qcmd() argument 1909 hd = shost_priv(shost); mptsas_qcmd() 2213 static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, mptsas_smp_handler() argument 2216 MPT_ADAPTER *ioc = ((MPT_SCSI_HOST *) shost->hostdata)->ioc; mptsas_smp_handler()
|
/linux-4.1.27/drivers/scsi/qla4xxx/ |
H A D | ql4_os.c | 113 static int qla4xxx_host_get_param(struct Scsi_Host *shost, 115 static int qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data, 121 static struct iscsi_endpoint *qla4xxx_ep_connect(struct Scsi_Host *shost, 146 static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num, 149 static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx, 151 static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx); 152 static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data, 154 static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len); 166 static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type); 178 static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf, 266 static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num, qla4xxx_send_ping() argument 270 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_send_ping() 719 static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx, qla4xxx_get_chap_list() argument 722 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_get_chap_list() 808 static int qla4xxx_is_chap_active(struct Scsi_Host *shost, qla4xxx_is_chap_active() argument 813 ret = device_for_each_child(&shost->shost_gendev, &chap_tbl_idx, qla4xxx_is_chap_active() 819 static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx) qla4xxx_delete_chap() argument 821 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_delete_chap() 848 ret = qla4xxx_is_chap_active(shost, chap_tbl_idx); qla4xxx_delete_chap() 906 * @shost: pointer to host 912 static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data, int len) qla4xxx_set_chap_entry() argument 914 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_set_chap_entry() 983 rc = qla4xxx_is_chap_active(shost, 1013 static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len) qla4xxx_get_host_stats() argument 1015 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_get_host_stats() 1221 struct Scsi_Host *shost = iscsi_iface_to_shost(iface); qla4xxx_get_iface_param() local 1222 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_get_iface_param() 1660 qla4xxx_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, qla4xxx_ep_connect() argument 1670 if (!shost) { qla4xxx_ep_connect() 1672 pr_err("%s: shost is NULL\n", __func__); qla4xxx_ep_connect() 1676 ha = iscsi_host_priv(shost); qla4xxx_ep_connect() 1701 qla_ep->host = shost; qla4xxx_ep_connect() 1849 static void qla4xxx_set_port_speed(struct Scsi_Host *shost) qla4xxx_set_port_speed() argument 1851 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_set_port_speed() 1852 struct iscsi_cls_host *ihost = shost->shost_data; qla4xxx_set_port_speed() 1874 static void qla4xxx_set_port_state(struct Scsi_Host *shost) qla4xxx_set_port_state() argument 1876 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_set_port_state() 1877 struct iscsi_cls_host *ihost = shost->shost_data; qla4xxx_set_port_state() 1886 static int qla4xxx_host_get_param(struct Scsi_Host *shost, qla4xxx_host_get_param() argument 1889 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_host_get_param() 1903 qla4xxx_set_port_state(shost); qla4xxx_host_get_param() 1904 len = sprintf(buf, "%s\n", iscsi_get_port_state_name(shost)); qla4xxx_host_get_param() 1907 qla4xxx_set_port_speed(shost); qla4xxx_host_get_param() 1908 len = sprintf(buf, "%s\n", iscsi_get_port_speed_name(shost)); qla4xxx_host_get_param() 2681 qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data, uint32_t len) qla4xxx_iface_set_param() argument 2683 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_iface_set_param() 7249 * @shost: pointer to host 7256 static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf, qla4xxx_sysfs_ddb_add() argument 7259 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_sysfs_ddb_add() 7337 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); qla4xxx_sysfs_ddb_apply() local 7338 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_sysfs_ddb_apply() 7527 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); qla4xxx_sysfs_ddb_login() local 7528 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_sysfs_ddb_login() 7711 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); qla4xxx_sysfs_ddb_logout() local 7712 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_sysfs_ddb_logout() 7823 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); qla4xxx_sysfs_ddb_get_param() local 7824 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_sysfs_ddb_get_param() 8081 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); qla4xxx_sysfs_ddb_set_param() local 8082 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_sysfs_ddb_set_param() 8307 struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); qla4xxx_sysfs_ddb_delete() local 8308 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_sysfs_ddb_delete() 9372 * @shost: Pointer to SCSI Host struct 9377 static int qla4xxx_is_eh_active(struct Scsi_Host *shost) qla4xxx_is_eh_active() argument 9379 if (shost->shost_state == SHOST_RECOVERY) qla4xxx_is_eh_active() 9497 static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type) qla4xxx_host_reset() argument 9499 struct scsi_qla_host *ha = to_qla_host(shost); qla4xxx_host_reset()
|
H A D | ql4_def.h | 927 static inline struct scsi_qla_host* to_qla_host(struct Scsi_Host *shost) to_qla_host() argument 929 return (struct scsi_qla_host *)iscsi_host_priv(shost); to_qla_host()
|
/linux-4.1.27/drivers/staging/unisys/virthba/ |
H A D | virthba.c | 199 struct Scsi_Host *shost; /* Scsi Host for this virthba instance */ member in struct:diskaddremove 338 sdev = scsi_device_lookup(dar->shost, dar->channel, dar->id, dar->lun); send_disk_add_remove() 344 scsi_add_device(dar->shost, dar->channel, dar->id, send_disk_add_remove() 378 process_disk_notify(struct Scsi_Host *shost, struct uiscmdrsp *cmdrsp) process_disk_notify() argument 386 dar->shost = shost; process_disk_notify() 1119 struct Scsi_Host *shost = virthbainfo->scsihost; drain_queue() local 1158 process_disk_notify(shost, cmdrsp); drain_queue() 1509 struct Scsi_Host *shost = class_to_shost(cdev); virthba_acquire_lun() local 1516 return forward_vdiskmgmt_command(VDISK_MGMT_ACQUIRE, shost, &vdest); virthba_acquire_lun() 1524 struct Scsi_Host *shost = class_to_shost(cdev); virthba_release_lun() local 1531 return forward_vdiskmgmt_command(VDISK_MGMT_RELEASE, shost, &vdest); virthba_release_lun()
|
/linux-4.1.27/drivers/ata/ |
H A D | libata-scsi.c | 118 struct Scsi_Host *shost = class_to_shost(device); ata_scsi_lpm_store() local 119 struct ata_port *ap = ata_shost_to_port(shost); ata_scsi_lpm_store() 157 struct Scsi_Host *shost = class_to_shost(dev); ata_scsi_lpm_show() local 158 struct ata_port *ap = ata_shost_to_port(shost); ata_scsi_lpm_show() 284 struct Scsi_Host *shost = class_to_shost(dev); ata_scsi_em_message_store() local 285 struct ata_port *ap = ata_shost_to_port(shost); ata_scsi_em_message_store() 295 struct Scsi_Host *shost = class_to_shost(dev); ata_scsi_em_message_show() local 296 struct ata_port *ap = ata_shost_to_port(shost); ata_scsi_em_message_show() 310 struct Scsi_Host *shost = class_to_shost(dev); ata_scsi_em_message_type_show() local 311 struct ata_port *ap = ata_shost_to_port(shost); ata_scsi_em_message_type_show() 3496 * @shost: SCSI host of command to be sent 3513 int ata_scsi_queuecmd(struct Scsi_Host *shost, struct scsi_cmnd *cmd) ata_scsi_queuecmd() argument 3521 ap = ata_shost_to_port(shost); ata_scsi_queuecmd() 3665 struct Scsi_Host *shost; ata_scsi_add_hosts() local 3668 shost = scsi_host_alloc(sht, sizeof(struct ata_port *)); ata_scsi_add_hosts() 3669 if (!shost) ata_scsi_add_hosts() 3672 shost->eh_noresume = 1; ata_scsi_add_hosts() 3673 *(struct ata_port **)&shost->hostdata[0] = ap; ata_scsi_add_hosts() 3674 ap->scsi_host = shost; ata_scsi_add_hosts() 3676 shost->transportt = ata_scsi_transport_template; ata_scsi_add_hosts() 3677 shost->unique_id = ap->print_id; ata_scsi_add_hosts() 3678 shost->max_id = 16; ata_scsi_add_hosts() 3679 shost->max_lun = 1; ata_scsi_add_hosts() 3680 shost->max_channel = 1; ata_scsi_add_hosts() 3681 shost->max_cmd_len = 16; ata_scsi_add_hosts() 3682 shost->no_write_same = 1; ata_scsi_add_hosts() 3689 shost->max_host_blocked = 1; ata_scsi_add_hosts() 3691 if (scsi_init_shared_tag_map(shost, host->n_tags)) ata_scsi_add_hosts() 3706 struct Scsi_Host *shost = host->ports[i]->scsi_host; ata_scsi_add_hosts() local 3708 scsi_remove_host(shost); ata_scsi_add_hosts() 3709 scsi_host_put(shost); ata_scsi_add_hosts() 3974 * @shost: SCSI host to scan 3988 int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel, ata_scsi_user_scan() argument 3991 struct ata_port *ap = ata_shost_to_port(shost); ata_scsi_user_scan() 4087 * @shost: SCSI host that the scsi device is attached to 4098 struct Scsi_Host *shost) ata_sas_port_alloc() 4096 ata_sas_port_alloc(struct ata_host *host, struct ata_port_info *port_info, struct Scsi_Host *shost) ata_sas_port_alloc() argument
|
H A D | libahci.c | 229 struct Scsi_Host *shost = class_to_shost(dev); ahci_show_host_caps() local 230 struct ata_port *ap = ata_shost_to_port(shost); ahci_show_host_caps() 239 struct Scsi_Host *shost = class_to_shost(dev); ahci_show_host_cap2() local 240 struct ata_port *ap = ata_shost_to_port(shost); ahci_show_host_cap2() 249 struct Scsi_Host *shost = class_to_shost(dev); ahci_show_host_version() local 250 struct ata_port *ap = ata_shost_to_port(shost); ahci_show_host_version() 260 struct Scsi_Host *shost = class_to_shost(dev); ahci_show_port_cmd() local 261 struct ata_port *ap = ata_shost_to_port(shost); ahci_show_port_cmd() 270 struct Scsi_Host *shost = class_to_shost(dev); ahci_read_em_buffer() local 271 struct ata_port *ap = ata_shost_to_port(shost); ahci_read_em_buffer() 326 struct Scsi_Host *shost = class_to_shost(dev); ahci_store_em_buffer() local 327 struct ata_port *ap = ata_shost_to_port(shost); ahci_store_em_buffer() 366 struct Scsi_Host *shost = class_to_shost(dev); ahci_show_em_supported() local 367 struct ata_port *ap = ata_shost_to_port(shost); ahci_show_em_supported()
|
H A D | libata.h | 142 extern void ata_schedule_scsi_eh(struct Scsi_Host *shost); ata_acpi_bind_dev() 145 extern int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel, ata_acpi_bind_dev()
|
H A D | sata_svw.c | 319 static int k2_sata_show_info(struct seq_file *m, struct Scsi_Host *shost) k2_sata_show_info() argument 326 ap = ata_shost_to_port(shost); k2_sata_show_info()
|
H A D | libata-eh.c | 1016 * shost, so host fields can be directly manipulated under ap->lock, in
|
/linux-4.1.27/drivers/infiniband/ulp/srp/ |
H A D | ib_srp.c | 909 * @shost: SCSI host whose attributes to remove from sysfs. 914 static void srp_del_scsi_host_attr(struct Scsi_Host *shost) srp_del_scsi_host_attr() argument 918 for (attr = shost->hostt->shost_attrs; attr && *attr; ++attr) srp_del_scsi_host_attr() 919 device_remove_file(&shost->shost_dev, *attr); srp_del_scsi_host_attr() 1161 struct Scsi_Host *shost = target->scsi_host; srp_terminate_io() local 1169 shost_for_each_device(sdev, shost) shost_for_each_device() 1978 static int srp_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmnd) srp_queuecommand() argument 1980 struct srp_target_port *target = host_to_target(shost); srp_queuecommand() 1991 const bool in_scsi_eh = !in_interrupt() && current == shost->ehandler; srp_queuecommand() 2011 dev_name(&shost->shost_gendev), tag, idx, srp_queuecommand() 2258 struct Scsi_Host *shost = target->scsi_host; srp_cm_rej_handler() local 2284 shost_printk(KERN_DEBUG, shost, srp_cm_rej_handler() 2291 shost_printk(KERN_WARNING, shost, srp_cm_rej_handler() 2298 shost_printk(KERN_WARNING, shost, srp_cm_rej_handler() 2310 shost_printk(KERN_WARNING, shost, srp_cm_rej_handler() 2313 shost_printk(KERN_WARNING, shost, PFX srp_cm_rej_handler() 2318 shost_printk(KERN_WARNING, shost, srp_cm_rej_handler() 2325 shost_printk(KERN_WARNING, shost, " REJ reason: stale connection\n"); srp_cm_rej_handler() 2330 shost_printk(KERN_WARNING, shost, " REJ reason 0x%x\n", srp_cm_rej_handler() 2543 struct Scsi_Host *shost = sdev->host; srp_slave_configure() local 2544 struct srp_target_port *target = host_to_target(shost); srp_slave_configure()
|
/linux-4.1.27/drivers/scsi/fcoe/ |
H A D | fcoe.c | 1099 struct Scsi_Host *shost; fcoe_if_create() local 1160 FCOE_NETDEV_DBG(netdev, "Could not configure shost for the " fcoe_if_create() 1189 shost = vport_to_shost(vport); fcoe_if_create() 1190 n_port = shost_priv(shost); fcoe_if_create() 2211 struct Scsi_Host *shost; fcoe_destroy_work() local 2218 shost = port->lport->host; fcoe_destroy_work() 2219 fc_host = shost_to_fc_host(shost); fcoe_destroy_work() 2222 spin_lock_irqsave(shost->host_lock, flags); fcoe_destroy_work() 2228 queue_work(fc_host_work_q(shost), fcoe_destroy_work() 2232 spin_unlock_irqrestore(shost->host_lock, flags); fcoe_destroy_work() 2234 flush_workqueue(fc_host_work_q(shost)); fcoe_destroy_work() 2490 * @shost: The SCSI host associated with the local port to be reset 2494 static int fcoe_reset(struct Scsi_Host *shost) fcoe_reset() argument 2496 struct fc_lport *lport = shost_priv(shost); fcoe_reset() 2819 struct Scsi_Host *shost = vport_to_shost(vport); fcoe_vport_create() local 2820 struct fc_lport *n_port = shost_priv(shost); fcoe_vport_create() 2867 struct Scsi_Host *shost = vport_to_shost(vport); fcoe_vport_destroy() local 2868 struct fc_lport *n_port = shost_priv(shost); fcoe_vport_destroy()
|
H A D | fcoe_transport.c | 239 struct Scsi_Host *shost = vport_to_shost(vport); fcoe_validate_vport_create() local 240 struct fc_lport *n_port = shost_priv(shost); fcoe_validate_vport_create()
|
/linux-4.1.27/drivers/scsi/fnic/ |
H A D | fnic_main.c | 134 static void fnic_get_host_speed(struct Scsi_Host *shost); 171 static void fnic_get_host_speed(struct Scsi_Host *shost) fnic_get_host_speed() argument 173 struct fc_lport *lp = shost_priv(shost); fnic_get_host_speed() 180 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; fnic_get_host_speed() 183 fc_host_speed(shost) = FC_PORTSPEED_10GBIT; fnic_get_host_speed()
|
H A D | fnic_scsi.c | 2470 int fnic_reset(struct Scsi_Host *shost) fnic_reset() argument 2477 lp = shost_priv(shost); fnic_reset() 2518 struct Scsi_Host *shost = sc->device->host; fnic_host_reset() local 2519 struct fc_lport *lp = shost_priv(shost); fnic_host_reset() 2526 ret = (fnic_reset(shost) == 0) ? SUCCESS : FAILED; fnic_host_reset()
|
/linux-4.1.27/drivers/scsi/megaraid/ |
H A D | megaraid_sas_base.c | 186 int megasas_reset_fusion(struct Scsi_Host *shost, int iotimeout); 1569 megasas_queue_command(struct Scsi_Host *shost, struct scsi_cmnd *scmd) megasas_queue_command() argument 2641 struct Scsi_Host *shost = class_to_shost(cdev); megasas_fw_crash_buffer_store() local 2643 (struct megasas_instance *) shost->hostdata; megasas_fw_crash_buffer_store() 2660 struct Scsi_Host *shost = class_to_shost(cdev); megasas_fw_crash_buffer_show() local 2662 (struct megasas_instance *) shost->hostdata; megasas_fw_crash_buffer_show() 2706 struct Scsi_Host *shost = class_to_shost(cdev); megasas_fw_crash_buffer_size_show() local 2708 (struct megasas_instance *) shost->hostdata; megasas_fw_crash_buffer_size_show() 2718 struct Scsi_Host *shost = class_to_shost(cdev); megasas_fw_crash_state_store() local 2720 (struct megasas_instance *) shost->hostdata; megasas_fw_crash_state_store() 2753 struct Scsi_Host *shost = class_to_shost(cdev); megasas_fw_crash_state_show() local 2755 (struct megasas_instance *) shost->hostdata; megasas_fw_crash_state_show()
|
H A D | megaraid_sas_fusion.c | 2539 int megasas_reset_fusion(struct Scsi_Host *shost, int iotimeout) megasas_reset_fusion() argument 2550 instance = (struct megasas_instance *)shost->hostdata; megasas_reset_fusion() 2594 retval = megasas_reset_fusion(shost, 0); megasas_reset_fusion()
|
H A D | megaraid_mbox.c | 4059 struct Scsi_Host *shost = class_to_shost(dev); megaraid_sysfs_show_app_hndl() local 4060 adapter_t *adapter = (adapter_t *)SCSIHOST2ADAP(shost); megaraid_sysfs_show_app_hndl()
|
/linux-4.1.27/drivers/usb/image/ |
H A D | microtek.c | 364 mts_scsi_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *srb);
|