shost 241 drivers/ata/libahci.c struct Scsi_Host *shost = class_to_shost(dev); shost 242 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); shost 251 drivers/ata/libahci.c struct Scsi_Host *shost = class_to_shost(dev); shost 252 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); shost 261 drivers/ata/libahci.c struct Scsi_Host *shost = class_to_shost(dev); shost 262 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); shost 271 drivers/ata/libahci.c struct Scsi_Host *shost = class_to_shost(dev); shost 272 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); shost 286 drivers/ata/libahci.c struct Scsi_Host *shost = class_to_shost(dev); shost 287 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); shost 346 drivers/ata/libahci.c struct Scsi_Host *shost = class_to_shost(dev); shost 347 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); shost 389 drivers/ata/libahci.c struct Scsi_Host *shost = class_to_shost(dev); shost 390 drivers/ata/libahci.c struct ata_port *ap = ata_shost_to_port(shost); shost 105 drivers/ata/libata-scsi.c struct Scsi_Host *shost = class_to_shost(device); shost 106 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); shost 144 drivers/ata/libata-scsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 145 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); shost 389 drivers/ata/libata-scsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 390 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); shost 400 drivers/ata/libata-scsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 401 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); shost 415 drivers/ata/libata-scsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 416 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); shost 4375 drivers/ata/libata-scsi.c int ata_scsi_queuecmd(struct Scsi_Host *shost, struct scsi_cmnd *cmd) shost 4383 drivers/ata/libata-scsi.c ap = ata_shost_to_port(shost); shost 4531 drivers/ata/libata-scsi.c struct Scsi_Host *shost; shost 4534 drivers/ata/libata-scsi.c shost = scsi_host_alloc(sht, sizeof(struct ata_port *)); shost 4535 drivers/ata/libata-scsi.c if (!shost) shost 4538 drivers/ata/libata-scsi.c shost->eh_noresume = 1; shost 4539 drivers/ata/libata-scsi.c *(struct ata_port **)&shost->hostdata[0] = ap; shost 4540 drivers/ata/libata-scsi.c ap->scsi_host = shost; shost 4542 drivers/ata/libata-scsi.c shost->transportt = ata_scsi_transport_template; shost 4543 drivers/ata/libata-scsi.c shost->unique_id = ap->print_id; shost 4544 drivers/ata/libata-scsi.c shost->max_id = 16; shost 4545 drivers/ata/libata-scsi.c shost->max_lun = 1; shost 4546 drivers/ata/libata-scsi.c shost->max_channel = 1; shost 4547 drivers/ata/libata-scsi.c shost->max_cmd_len = 32; shost 4554 drivers/ata/libata-scsi.c shost->max_host_blocked = 1; shost 4556 drivers/ata/libata-scsi.c rc = scsi_add_host_with_dma(shost, &ap->tdev, ap->host->dev); shost 4565 drivers/ata/libata-scsi.c struct Scsi_Host *shost = host->ports[i]->scsi_host; shost 4568 drivers/ata/libata-scsi.c scsi_remove_host(shost); shost 4826 drivers/ata/libata-scsi.c int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel, shost 4829 drivers/ata/libata-scsi.c struct ata_port *ap = ata_shost_to_port(shost); shost 4936 drivers/ata/libata-scsi.c struct Scsi_Host *shost) shost 126 drivers/ata/libata.h extern void ata_schedule_scsi_eh(struct Scsi_Host *shost); shost 129 drivers/ata/libata.h extern int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel, shost 303 drivers/ata/sata_svw.c static int k2_sata_show_info(struct seq_file *m, struct Scsi_Host *shost) shost 310 drivers/ata/sata_svw.c ap = ata_shost_to_port(shost); shost 699 drivers/firewire/sbp2.c struct Scsi_Host *shost = shost 708 drivers/firewire/sbp2.c scsi_block_requests(shost); shost 723 drivers/firewire/sbp2.c struct Scsi_Host *shost = shost 735 drivers/firewire/sbp2.c scsi_unblock_requests(shost); shost 746 drivers/firewire/sbp2.c struct Scsi_Host *shost = shost 753 drivers/firewire/sbp2.c scsi_unblock_requests(shost); shost 801 drivers/firewire/sbp2.c struct Scsi_Host *shost; shost 862 drivers/firewire/sbp2.c shost = container_of((void *)tgt, struct Scsi_Host, hostdata[0]); shost 863 drivers/firewire/sbp2.c sdev = __scsi_add_device(shost, 0, 0, sbp2_lun2int(lu->lun), lu); shost 1127 drivers/firewire/sbp2.c struct Scsi_Host *shost; shost 1134 drivers/firewire/sbp2.c shost = scsi_host_alloc(&scsi_driver_template, sizeof(*tgt)); shost 1135 drivers/firewire/sbp2.c if (shost == NULL) shost 1138 drivers/firewire/sbp2.c tgt = (struct sbp2_target *)shost->hostdata; shost 1148 drivers/firewire/sbp2.c shost->max_cmd_len = SBP2_MAX_CDB_SIZE; shost 1150 drivers/firewire/sbp2.c if (scsi_add_host_with_dma(shost, &unit->device, shost 1188 drivers/firewire/sbp2.c scsi_host_put(shost); shost 1215 drivers/firewire/sbp2.c struct Scsi_Host *shost = shost 1224 drivers/firewire/sbp2.c sdev = scsi_device_lookup(shost, 0, 0, sbp2_lun2int(lu->lun)); shost 1247 drivers/firewire/sbp2.c scsi_remove_host(shost); shost 1248 drivers/firewire/sbp2.c dev_notice(&unit->device, "released target %d:0:0\n", shost->host_no); shost 1250 drivers/firewire/sbp2.c scsi_host_put(shost); shost 1441 drivers/firewire/sbp2.c static int sbp2_scsi_queuecommand(struct Scsi_Host *shost, shost 576 drivers/infiniband/ulp/iser/iscsi_iser.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 579 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_host_remove(shost); shost 580 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_host_free(shost); shost 611 drivers/infiniband/ulp/iser/iscsi_iser.c struct Scsi_Host *shost; shost 617 drivers/infiniband/ulp/iser/iscsi_iser.c shost = iscsi_host_alloc(&iscsi_iser_sht, 0, 0); shost 618 drivers/infiniband/ulp/iser/iscsi_iser.c if (!shost) shost 620 drivers/infiniband/ulp/iser/iscsi_iser.c shost->transportt = iscsi_iser_scsi_transport; shost 621 drivers/infiniband/ulp/iser/iscsi_iser.c shost->cmd_per_lun = qdepth; shost 622 drivers/infiniband/ulp/iser/iscsi_iser.c shost->max_lun = iscsi_max_lun; shost 623 drivers/infiniband/ulp/iser/iscsi_iser.c shost->max_id = 0; shost 624 drivers/infiniband/ulp/iser/iscsi_iser.c shost->max_channel = 0; shost 625 drivers/infiniband/ulp/iser/iscsi_iser.c shost->max_cmd_len = 16; shost 633 drivers/infiniband/ulp/iser/iscsi_iser.c shost->sg_tablesize = iser_conn->scsi_sg_tablesize; shost 634 drivers/infiniband/ulp/iser/iscsi_iser.c shost->can_queue = min_t(u16, cmds_max, iser_conn->max_cmds); shost 649 drivers/infiniband/ulp/iser/iscsi_iser.c shost->sg_prot_tablesize = shost->sg_tablesize; shost 650 drivers/infiniband/ulp/iser/iscsi_iser.c scsi_host_set_prot(shost, iser_dif_prot_caps(sig_caps)); shost 651 drivers/infiniband/ulp/iser/iscsi_iser.c scsi_host_set_guard(shost, SHOST_DIX_GUARD_IP | shost 656 drivers/infiniband/ulp/iser/iscsi_iser.c shost->virt_boundary_mask = ~MASK_4K; shost 658 drivers/infiniband/ulp/iser/iscsi_iser.c if (iscsi_host_add(shost, ib_dev->dev.parent)) { shost 664 drivers/infiniband/ulp/iser/iscsi_iser.c shost->can_queue = min_t(u16, cmds_max, ISER_DEF_XMIT_CMDS_MAX); shost 665 drivers/infiniband/ulp/iser/iscsi_iser.c if (iscsi_host_add(shost, NULL)) shost 669 drivers/infiniband/ulp/iser/iscsi_iser.c max_fr_sectors = (shost->sg_tablesize * PAGE_SIZE) >> 9; shost 670 drivers/infiniband/ulp/iser/iscsi_iser.c shost->max_sectors = min(iser_max_sectors, max_fr_sectors); shost 673 drivers/infiniband/ulp/iser/iscsi_iser.c iser_conn, shost->sg_tablesize, shost 674 drivers/infiniband/ulp/iser/iscsi_iser.c shost->max_sectors); shost 676 drivers/infiniband/ulp/iser/iscsi_iser.c if (shost->max_sectors < iser_max_sectors) shost 678 drivers/infiniband/ulp/iser/iscsi_iser.c iser_max_sectors, shost->max_sectors); shost 680 drivers/infiniband/ulp/iser/iscsi_iser.c cls_session = iscsi_session_setup(&iscsi_iser_transport, shost, shost 681 drivers/infiniband/ulp/iser/iscsi_iser.c shost->can_queue, 0, shost 690 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_host_remove(shost); shost 692 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_host_free(shost); shost 801 drivers/infiniband/ulp/iser/iscsi_iser.c iscsi_iser_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, shost 1091 drivers/infiniband/ulp/srp/ib_srp.c static void srp_del_scsi_host_attr(struct Scsi_Host *shost) shost 1095 drivers/infiniband/ulp/srp/ib_srp.c for (attr = shost->hostt->shost_attrs; attr && *attr; ++attr) shost 1096 drivers/infiniband/ulp/srp/ib_srp.c device_remove_file(&shost->shost_dev, *attr); shost 2340 drivers/infiniband/ulp/srp/ib_srp.c static int srp_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmnd) shost 2342 drivers/infiniband/ulp/srp/ib_srp.c struct srp_target_port *target = host_to_target(shost); shost 2362 drivers/infiniband/ulp/srp/ib_srp.c dev_name(&shost->shost_gendev), tag, idx, shost 2622 drivers/infiniband/ulp/srp/ib_srp.c struct Scsi_Host *shost = target->scsi_host; shost 2650 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_DEBUG, shost, shost 2657 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2664 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2676 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2679 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, PFX shost 2685 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2692 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, " REJ reason: stale connection\n"); shost 2697 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, " REJ reason 0x%x\n", shost 2769 drivers/infiniband/ulp/srp/ib_srp.c struct Scsi_Host *shost = target->scsi_host; shost 2774 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2788 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2791 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2794 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2802 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, shost 2808 drivers/infiniband/ulp/srp/ib_srp.c shost_printk(KERN_WARNING, shost, " REJ reason 0x%x\n", shost 3042 drivers/infiniband/ulp/srp/ib_srp.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 3043 drivers/infiniband/ulp/srp/ib_srp.c struct srp_target_port *target = host_to_target(shost); shost 3052 drivers/infiniband/ulp/srp/ib_srp.c struct Scsi_Host *shost = sdev->host; shost 3053 drivers/infiniband/ulp/srp/ib_srp.c struct srp_target_port *target = host_to_target(shost); shost 100 drivers/message/fusion/mptfc.c static int mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt); shost 192 drivers/message/fusion/mptfc.c struct Scsi_Host *shost = sdev->host; shost 201 drivers/message/fusion/mptfc.c spin_lock_irqsave(shost->host_lock, flags); shost 204 drivers/message/fusion/mptfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 212 drivers/message/fusion/mptfc.c spin_lock_irqsave(shost->host_lock, flags); shost 215 drivers/message/fusion/mptfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 643 drivers/message/fusion/mptfc.c mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) shost 366 drivers/message/fusion/mptsas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 367 drivers/message/fusion/mptsas.c return ((MPT_SCSI_HOST *)shost->hostdata)->ioc; shost 372 drivers/message/fusion/mptsas.c struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); shost 373 drivers/message/fusion/mptsas.c return ((MPT_SCSI_HOST *)shost->hostdata)->ioc; shost 1896 drivers/message/fusion/mptsas.c mptsas_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) shost 1908 drivers/message/fusion/mptsas.c hd = shost_priv(shost); shost 2212 drivers/message/fusion/mptsas.c static void mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, shost 2215 drivers/message/fusion/mptsas.c MPT_ADAPTER *ioc = ((MPT_SCSI_HOST *) shost->hostdata)->ioc; shost 399 drivers/message/fusion/mptspi.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 400 drivers/message/fusion/mptspi.c struct _MPT_SCSI_HOST *hd = shost_priv(shost); shost 516 drivers/message/fusion/mptspi.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 517 drivers/message/fusion/mptspi.c struct _MPT_SCSI_HOST *hd = shost_priv(shost); shost 777 drivers/message/fusion/mptspi.c mptspi_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) shost 779 drivers/message/fusion/mptspi.c struct _MPT_SCSI_HOST *hd = shost_priv(shost); shost 852 drivers/message/fusion/mptspi.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 853 drivers/message/fusion/mptspi.c struct _MPT_SCSI_HOST *hd = shost_priv(shost); shost 1062 drivers/message/fusion/mptspi.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 1063 drivers/message/fusion/mptspi.c struct _MPT_SCSI_HOST *hd = shost_priv(shost); shost 1116 drivers/message/fusion/mptspi.c struct Scsi_Host *shost = ioc->sh; shost 1128 drivers/message/fusion/mptspi.c shost_for_each_device(sdev,shost) { shost 1145 drivers/message/fusion/mptspi.c shost_printk(KERN_INFO, shost, MYIOC_s_FMT shost 1345 drivers/s390/scsi/zfcp_erp.c struct Scsi_Host *shost = adapter->scsi_host; shost 1360 drivers/s390/scsi/zfcp_erp.c spin_lock(shost->host_lock); shost 1361 drivers/s390/scsi/zfcp_erp.c __shost_for_each_device(sdev, shost) { shost 1382 drivers/s390/scsi/zfcp_erp.c spin_unlock(shost->host_lock); shost 1391 drivers/s390/scsi/zfcp_erp.c spin_unlock(shost->host_lock); shost 536 drivers/s390/scsi/zfcp_fc.c struct Scsi_Host *shost = adapter->scsi_host; shost 556 drivers/s390/scsi/zfcp_fc.c fc_req->u.adisc.req.adisc_wwpn = cpu_to_be64(fc_host_port_name(shost)); shost 557 drivers/s390/scsi/zfcp_fc.c fc_req->u.adisc.req.adisc_wwnn = cpu_to_be64(fc_host_node_name(shost)); shost 559 drivers/s390/scsi/zfcp_fc.c hton24(fc_req->u.adisc.req.adisc_port_id, fc_host_port_id(shost)); shost 876 drivers/s390/scsi/zfcp_fc.c struct Scsi_Host *shost = adapter->scsi_host; shost 884 drivers/s390/scsi/zfcp_fc.c hton24(rspn_req->rspn.fr_fid.fp_fid, fc_host_port_id(shost)); shost 885 drivers/s390/scsi/zfcp_fc.c len = strlcpy(rspn_req->rspn.fr_name, fc_host_symbolic_name(shost), shost 965 drivers/s390/scsi/zfcp_fc.c struct Scsi_Host *shost; shost 970 drivers/s390/scsi/zfcp_fc.c shost = rport ? rport_to_shost(rport) : fc_bsg_to_shost(job); shost 971 drivers/s390/scsi/zfcp_fc.c adapter = (struct zfcp_adapter *) shost->hostdata[0]; shost 1048 drivers/s390/scsi/zfcp_fc.c struct Scsi_Host *shost; shost 1054 drivers/s390/scsi/zfcp_fc.c shost = rport ? rport_to_shost(rport) : fc_bsg_to_shost(job); shost 1055 drivers/s390/scsi/zfcp_fc.c adapter = (struct zfcp_adapter *)shost->hostdata[0]; shost 491 drivers/s390/scsi/zfcp_fsf.c struct Scsi_Host *shost = adapter->scsi_host; shost 503 drivers/s390/scsi/zfcp_fsf.c fc_host_port_name(shost) = be64_to_cpu(nsp->fl_wwpn); shost 504 drivers/s390/scsi/zfcp_fsf.c fc_host_node_name(shost) = be64_to_cpu(nsp->fl_wwnn); shost 505 drivers/s390/scsi/zfcp_fsf.c fc_host_supported_classes(shost) = FC_COS_CLASS2 | FC_COS_CLASS3; shost 511 drivers/s390/scsi/zfcp_fsf.c if (fc_host_permanent_port_name(shost) == -1) shost 512 drivers/s390/scsi/zfcp_fsf.c fc_host_permanent_port_name(shost) = fc_host_port_name(shost); shost 521 drivers/s390/scsi/zfcp_fsf.c fc_host_port_id(shost) = ntoh24(bottom->s_id); shost 522 drivers/s390/scsi/zfcp_fsf.c fc_host_speed(shost) = shost 532 drivers/s390/scsi/zfcp_fsf.c fc_host_port_type(shost) = FC_PORTTYPE_PTP; shost 536 drivers/s390/scsi/zfcp_fsf.c fc_host_port_type(shost) = FC_PORTTYPE_NPIV; shost 538 drivers/s390/scsi/zfcp_fsf.c fc_host_port_type(shost) = FC_PORTTYPE_NPORT; shost 541 drivers/s390/scsi/zfcp_fsf.c fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; shost 559 drivers/s390/scsi/zfcp_fsf.c struct Scsi_Host *shost = adapter->scsi_host; shost 588 drivers/s390/scsi/zfcp_fsf.c fc_host_node_name(shost) = 0; shost 589 drivers/s390/scsi/zfcp_fsf.c fc_host_port_name(shost) = 0; shost 590 drivers/s390/scsi/zfcp_fsf.c fc_host_port_id(shost) = 0; shost 591 drivers/s390/scsi/zfcp_fsf.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 592 drivers/s390/scsi/zfcp_fsf.c fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN; shost 611 drivers/s390/scsi/zfcp_fsf.c memcpy(fc_host_serial_number(shost), bottom->serial_number, shost 613 drivers/s390/scsi/zfcp_fsf.c EBCASC(fc_host_serial_number(shost), shost 636 drivers/s390/scsi/zfcp_fsf.c struct Scsi_Host *shost = adapter->scsi_host; shost 642 drivers/s390/scsi/zfcp_fsf.c fc_host_permanent_port_name(shost) = bottom->wwpn; shost 644 drivers/s390/scsi/zfcp_fsf.c fc_host_permanent_port_name(shost) = fc_host_port_name(shost); shost 645 drivers/s390/scsi/zfcp_fsf.c fc_host_maxframe_size(shost) = bottom->maximum_frame_size; shost 646 drivers/s390/scsi/zfcp_fsf.c fc_host_supported_speeds(shost) = shost 648 drivers/s390/scsi/zfcp_fsf.c memcpy(fc_host_supported_fc4s(shost), bottom->supported_fc4_types, shost 650 drivers/s390/scsi/zfcp_fsf.c memcpy(fc_host_active_fc4s(shost), bottom->active_fc4_types, shost 67 drivers/s390/scsi/zfcp_scsi.c int zfcp_scsi_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scpnt) shost 347 drivers/s390/scsi/zfcp_scsi.c struct Scsi_Host *shost = rport_to_shost(rport); shost 350 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *)shost->hostdata[0]; shost 353 drivers/s390/scsi/zfcp_scsi.c shost_for_each_device(tmp_sdev, shost) { shost 403 drivers/s390/scsi/zfcp_scsi.c static int zfcp_scsi_sysfs_host_reset(struct Scsi_Host *shost, int reset_type) shost 406 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *)shost->hostdata[0]; shost 499 drivers/s390/scsi/zfcp_scsi.c struct Scsi_Host *shost; shost 502 drivers/s390/scsi/zfcp_scsi.c shost = adapter->scsi_host; shost 503 drivers/s390/scsi/zfcp_scsi.c if (!shost) shost 511 drivers/s390/scsi/zfcp_scsi.c fc_remove_host(shost); shost 512 drivers/s390/scsi/zfcp_scsi.c scsi_remove_host(shost); shost 513 drivers/s390/scsi/zfcp_scsi.c scsi_host_put(shost); shost 625 drivers/s390/scsi/zfcp_scsi.c static void zfcp_scsi_reset_fc_host_stats(struct Scsi_Host *shost) shost 631 drivers/s390/scsi/zfcp_scsi.c adapter = (struct zfcp_adapter *)shost->hostdata[0]; shost 647 drivers/s390/scsi/zfcp_scsi.c static void zfcp_scsi_get_host_port_state(struct Scsi_Host *shost) shost 650 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *)shost->hostdata[0]; shost 655 drivers/s390/scsi/zfcp_scsi.c fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; shost 657 drivers/s390/scsi/zfcp_scsi.c fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; shost 659 drivers/s390/scsi/zfcp_scsi.c fc_host_port_state(shost) = FC_PORTSTATE_ERROR; shost 661 drivers/s390/scsi/zfcp_scsi.c fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; shost 683 drivers/s390/scsi/zfcp_scsi.c struct Scsi_Host *shost = rport_to_shost(rport); shost 685 drivers/s390/scsi/zfcp_scsi.c (struct zfcp_adapter *)shost->hostdata[0]; shost 806 drivers/s390/scsi/zfcp_scsi.c struct Scsi_Host *shost = adapter->scsi_host; shost 818 drivers/s390/scsi/zfcp_scsi.c scsi_host_set_guard(shost, SHOST_DIX_GUARD_IP); shost 819 drivers/s390/scsi/zfcp_scsi.c shost->sg_prot_tablesize = adapter->qdio->max_sbale_per_req / 2; shost 820 drivers/s390/scsi/zfcp_scsi.c shost->sg_tablesize = adapter->qdio->max_sbale_per_req / 2; shost 821 drivers/s390/scsi/zfcp_scsi.c shost->max_sectors = shost->sg_tablesize * 8; shost 824 drivers/s390/scsi/zfcp_scsi.c scsi_host_set_prot(shost, mask); shost 197 drivers/s390/scsi/zfcp_unit.c struct Scsi_Host *shost; shost 203 drivers/s390/scsi/zfcp_unit.c shost = port->adapter->scsi_host; shost 204 drivers/s390/scsi/zfcp_unit.c return scsi_device_lookup(shost, 0, port->starget_id, lun); shost 103 drivers/scsi/3w-sas.c struct Scsi_Host *shost = class_to_shost(dev); shost 104 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)shost->hostdata; shost 134 drivers/scsi/3w-sas.c struct Scsi_Host *shost = class_to_shost(dev); shost 135 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)shost->hostdata; shost 3459 drivers/scsi/BusLogic.c static int blogic_write_info(struct Scsi_Host *shost, char *procbuf, shost 3463 drivers/scsi/BusLogic.c (struct blogic_adapter *) shost->hostdata; shost 3473 drivers/scsi/BusLogic.c static int blogic_show_info(struct seq_file *m, struct Scsi_Host *shost) shost 3475 drivers/scsi/BusLogic.c struct blogic_adapter *adapter = (struct blogic_adapter *) shost->hostdata; shost 1059 drivers/scsi/a100u2w.c struct Scsi_Host *shost = (struct Scsi_Host *)devid; shost 1060 drivers/scsi/a100u2w.c struct orc_host *host = (struct orc_host *)shost->hostdata; shost 1064 drivers/scsi/a100u2w.c spin_lock_irqsave(shost->host_lock, flags); shost 1066 drivers/scsi/a100u2w.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1086 drivers/scsi/a100u2w.c struct Scsi_Host *shost; shost 1114 drivers/scsi/a100u2w.c shost = scsi_host_alloc(&inia100_template, sizeof(struct orc_host)); shost 1115 drivers/scsi/a100u2w.c if (!shost) shost 1118 drivers/scsi/a100u2w.c host = (struct orc_host *)shost->hostdata; shost 1150 drivers/scsi/a100u2w.c shost->io_port = host->base; shost 1151 drivers/scsi/a100u2w.c shost->n_io_port = 0xff; shost 1152 drivers/scsi/a100u2w.c shost->can_queue = ORC_MAXQUEUE; shost 1153 drivers/scsi/a100u2w.c shost->unique_id = shost->io_port; shost 1154 drivers/scsi/a100u2w.c shost->max_id = host->max_targets; shost 1155 drivers/scsi/a100u2w.c shost->max_lun = 16; shost 1156 drivers/scsi/a100u2w.c shost->irq = pdev->irq; shost 1157 drivers/scsi/a100u2w.c shost->this_id = host->scsi_id; /* Assign HCS index */ shost 1158 drivers/scsi/a100u2w.c shost->sg_tablesize = TOTAL_SG_ENTRY; shost 1162 drivers/scsi/a100u2w.c "inia100", shost); shost 1169 drivers/scsi/a100u2w.c pci_set_drvdata(pdev, shost); shost 1171 drivers/scsi/a100u2w.c error = scsi_add_host(shost, &pdev->dev); shost 1175 drivers/scsi/a100u2w.c scsi_scan_host(shost); shost 1179 drivers/scsi/a100u2w.c free_irq(shost->irq, shost); shost 1189 drivers/scsi/a100u2w.c scsi_host_put(shost); shost 1200 drivers/scsi/a100u2w.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1201 drivers/scsi/a100u2w.c struct orc_host *host = (struct orc_host *)shost->hostdata; shost 1203 drivers/scsi/a100u2w.c scsi_remove_host(shost); shost 1205 drivers/scsi/a100u2w.c free_irq(shost->irq, shost); shost 1212 drivers/scsi/a100u2w.c release_region(shost->io_port, 256); shost 1214 drivers/scsi/a100u2w.c scsi_host_put(shost); shost 2702 drivers/scsi/aacraid/aacraid.h #define shost_to_class(shost) &shost->shost_dev shost 240 drivers/scsi/aacraid/linit.c static int aac_queuecommand(struct Scsi_Host *shost, shost 256 drivers/scsi/aacraid/linit.c static const char *aac_info(struct Scsi_Host *shost) shost 258 drivers/scsi/aacraid/linit.c struct aac_dev *dev = (struct aac_dev *)shost->hostdata; shost 622 drivers/scsi/aacraid/linit.c struct Scsi_Host *shost = aac->scsi_host_ptr; shost 632 drivers/scsi/aacraid/linit.c __shost_for_each_device(sdev, shost) { shost 1591 drivers/scsi/aacraid/linit.c struct Scsi_Host *shost; shost 1650 drivers/scsi/aacraid/linit.c shost = scsi_host_alloc(&aac_driver_template, sizeof(struct aac_dev)); shost 1651 drivers/scsi/aacraid/linit.c if (!shost) shost 1654 drivers/scsi/aacraid/linit.c shost->irq = pdev->irq; shost 1655 drivers/scsi/aacraid/linit.c shost->unique_id = unique_id; shost 1656 drivers/scsi/aacraid/linit.c shost->max_cmd_len = 16; shost 1657 drivers/scsi/aacraid/linit.c shost->use_cmd_list = 1; shost 1662 drivers/scsi/aacraid/linit.c aac = (struct aac_dev *)shost->hostdata; shost 1664 drivers/scsi/aacraid/linit.c aac->scsi_host_ptr = shost; shost 1667 drivers/scsi/aacraid/linit.c aac->id = shost->unique_id; shost 1674 drivers/scsi/aacraid/linit.c aac->fibs = kcalloc(shost->can_queue + AAC_NUM_MGT_FIB, shost 1729 drivers/scsi/aacraid/linit.c (shost->sg_tablesize > 34)) { shost 1730 drivers/scsi/aacraid/linit.c shost->sg_tablesize = 34; shost 1731 drivers/scsi/aacraid/linit.c shost->max_sectors = (shost->sg_tablesize * 8) + 112; shost 1735 drivers/scsi/aacraid/linit.c (shost->sg_tablesize > 17)) { shost 1736 drivers/scsi/aacraid/linit.c shost->sg_tablesize = 17; shost 1737 drivers/scsi/aacraid/linit.c shost->max_sectors = (shost->sg_tablesize * 8) + 112; shost 1741 drivers/scsi/aacraid/linit.c shost->max_segment_size = shost->max_sectors << 9; shost 1743 drivers/scsi/aacraid/linit.c shost->max_segment_size = 65536; shost 1759 drivers/scsi/aacraid/linit.c shost->max_channel = aac->maximum_num_channels; shost 1761 drivers/scsi/aacraid/linit.c shost->max_channel = 0; shost 1767 drivers/scsi/aacraid/linit.c shost->max_id = aac->maximum_num_containers; shost 1768 drivers/scsi/aacraid/linit.c if (shost->max_id < aac->maximum_num_physicals) shost 1769 drivers/scsi/aacraid/linit.c shost->max_id = aac->maximum_num_physicals; shost 1770 drivers/scsi/aacraid/linit.c if (shost->max_id < MAXIMUM_NUM_CONTAINERS) shost 1771 drivers/scsi/aacraid/linit.c shost->max_id = MAXIMUM_NUM_CONTAINERS; shost 1773 drivers/scsi/aacraid/linit.c shost->this_id = shost->max_id; shost 1782 drivers/scsi/aacraid/linit.c shost->max_lun = AAC_MAX_LUN; shost 1784 drivers/scsi/aacraid/linit.c pci_set_drvdata(pdev, shost); shost 1786 drivers/scsi/aacraid/linit.c error = scsi_add_host(shost, &pdev->dev); shost 1809 drivers/scsi/aacraid/linit.c scsi_host_put(shost); shost 1871 drivers/scsi/aacraid/linit.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1872 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)shost->hostdata; shost 1874 drivers/scsi/aacraid/linit.c scsi_block_requests(shost); shost 1880 drivers/scsi/aacraid/linit.c pci_set_drvdata(pdev, shost); shost 1890 drivers/scsi/aacraid/linit.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1891 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)shost->hostdata; shost 1910 drivers/scsi/aacraid/linit.c scsi_unblock_requests(shost); shost 1916 drivers/scsi/aacraid/linit.c scsi_host_put(shost); shost 1924 drivers/scsi/aacraid/linit.c struct Scsi_Host *shost = pci_get_drvdata(dev); shost 1925 drivers/scsi/aacraid/linit.c scsi_block_requests(shost); shost 1926 drivers/scsi/aacraid/linit.c __aac_shutdown((struct aac_dev *)shost->hostdata); shost 1931 drivers/scsi/aacraid/linit.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1932 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)shost->hostdata; shost 1935 drivers/scsi/aacraid/linit.c scsi_remove_host(shost); shost 1949 drivers/scsi/aacraid/linit.c scsi_host_put(shost); shost 1980 drivers/scsi/aacraid/linit.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1981 drivers/scsi/aacraid/linit.c struct aac_dev *aac = shost_priv(shost); shost 2043 drivers/scsi/aacraid/linit.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 2045 drivers/scsi/aacraid/linit.c struct aac_dev *aac = (struct aac_dev *)shost_priv(shost); shost 2071 drivers/scsi/aacraid/linit.c shost_for_each_device(sdev, shost) shost 2094 drivers/scsi/advansys.c #define ASC_STATS(shost, counter) ASC_STATS_ADD(shost, counter, 1) shost 2096 drivers/scsi/advansys.c #define ASC_STATS_ADD(shost, counter, count) shost 2098 drivers/scsi/advansys.c #define ASC_STATS_ADD(shost, counter, count) \ shost 2099 drivers/scsi/advansys.c (((struct asc_board *) shost_priv(shost))->asc_stats.counter += (count)) shost 2248 drivers/scsi/advansys.c struct Scsi_Host *shost; shost 2629 drivers/scsi/advansys.c static const char *advansys_info(struct Scsi_Host *shost) shost 2632 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 2651 drivers/scsi/advansys.c (ulong)shost->io_port, shost 2652 drivers/scsi/advansys.c (ulong)shost->io_port + ASC_IOADR_GAP - 1, shost 2653 drivers/scsi/advansys.c boardp->irq, shost->dma_channel); shost 2668 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "unknown bus " shost 2673 drivers/scsi/advansys.c ASC_VERSION, busname, (ulong)shost->io_port, shost 2674 drivers/scsi/advansys.c (ulong)shost->io_port + ASC_IOADR_GAP - 1, shost 2710 drivers/scsi/advansys.c static void asc_prt_board_devices(struct seq_file *m, struct Scsi_Host *shost) shost 2712 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 2718 drivers/scsi/advansys.c shost->host_no); shost 2737 drivers/scsi/advansys.c static void asc_prt_adv_bios(struct seq_file *m, struct Scsi_Host *shost) shost 2739 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 2876 drivers/scsi/advansys.c static void asc_prt_asc_board_eeprom(struct seq_file *m, struct Scsi_Host *shost) shost 2878 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 2892 drivers/scsi/advansys.c shost->host_no); shost 2950 drivers/scsi/advansys.c static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost) shost 2952 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 2975 drivers/scsi/advansys.c shost->host_no); shost 3171 drivers/scsi/advansys.c static void asc_prt_driver_conf(struct seq_file *m, struct Scsi_Host *shost) shost 3173 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 3178 drivers/scsi/advansys.c shost->host_no); shost 3182 drivers/scsi/advansys.c scsi_host_busy(shost), shost->max_id, shost 3183 drivers/scsi/advansys.c shost->max_lun, shost->max_channel); shost 3187 drivers/scsi/advansys.c shost->unique_id, shost->can_queue, shost->this_id, shost 3188 drivers/scsi/advansys.c shost->sg_tablesize, shost->cmd_per_lun); shost 3192 drivers/scsi/advansys.c shost->unchecked_isa_dma); shost 3196 drivers/scsi/advansys.c boardp->flags, shost->last_reset, jiffies, shost 3199 drivers/scsi/advansys.c seq_printf(m, " io_port 0x%lx\n", shost->io_port); shost 3213 drivers/scsi/advansys.c static void asc_prt_asc_board_info(struct seq_file *m, struct Scsi_Host *shost) shost 3215 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 3228 drivers/scsi/advansys.c shost->host_no); shost 3343 drivers/scsi/advansys.c static void asc_prt_adv_board_info(struct seq_file *m, struct Scsi_Host *shost) shost 3345 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 3366 drivers/scsi/advansys.c shost->host_no); shost 3529 drivers/scsi/advansys.c static void asc_prt_board_stats(struct seq_file *m, struct Scsi_Host *shost) shost 3531 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 3536 drivers/scsi/advansys.c shost->host_no); shost 3589 drivers/scsi/advansys.c advansys_show_info(struct seq_file *m, struct Scsi_Host *shost) shost 3591 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 3605 drivers/scsi/advansys.c seq_printf(m, "%s\n", (char *)advansys_info(shost)); shost 3610 drivers/scsi/advansys.c asc_prt_adv_bios(m, shost); shost 3615 drivers/scsi/advansys.c asc_prt_board_devices(m, shost); shost 3621 drivers/scsi/advansys.c asc_prt_asc_board_eeprom(m, shost); shost 3623 drivers/scsi/advansys.c asc_prt_adv_board_eeprom(m, shost); shost 3628 drivers/scsi/advansys.c asc_prt_driver_conf(m, shost); shost 3634 drivers/scsi/advansys.c asc_prt_board_stats(m, shost); shost 3642 drivers/scsi/advansys.c asc_prt_asc_board_info(m, shost); shost 3644 drivers/scsi/advansys.c asc_prt_adv_board_info(m, shost); shost 5963 drivers/scsi/advansys.c scp = scsi_host_find_tag(boardp->shost, scsiqp->srb_tag); shost 5986 drivers/scsi/advansys.c ASC_STATS(boardp->shost, callback); shost 5987 drivers/scsi/advansys.c ASC_DBG(1, "shost 0x%p\n", boardp->shost); shost 6752 drivers/scsi/advansys.c scp = scsi_host_find_tag(boardp->shost, srb_tag); shost 6758 drivers/scsi/advansys.c ASC_STATS(boardp->shost, callback); shost 7107 drivers/scsi/advansys.c struct Scsi_Host *shost = scp->device->host; shost 7108 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 7115 drivers/scsi/advansys.c ASC_STATS(shost, reset); shost 7163 drivers/scsi/advansys.c spin_lock_irqsave(shost->host_lock, flags); shost 7165 drivers/scsi/advansys.c spin_unlock_irqrestore(shost->host_lock, flags); shost 7223 drivers/scsi/advansys.c struct Scsi_Host *shost = dev_id; shost 7224 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 7229 drivers/scsi/advansys.c spin_lock_irqsave(shost->host_lock, flags); shost 7231 drivers/scsi/advansys.c if (AscIsIntPending(shost->io_port)) { shost 7233 drivers/scsi/advansys.c ASC_STATS(shost, interrupt); shost 7241 drivers/scsi/advansys.c ASC_STATS(shost, interrupt); shost 7244 drivers/scsi/advansys.c spin_unlock_irqrestore(shost->host_lock, flags); shost 8554 drivers/scsi/advansys.c struct Scsi_Host *shost = scp->device->host; shost 8557 drivers/scsi/advansys.c ASC_STATS(shost, queuecommand); shost 9264 drivers/scsi/advansys.c static int AscInitGetConfig(struct Scsi_Host *shost) shost 9266 drivers/scsi/advansys.c struct asc_board *board = shost_priv(shost); shost 9288 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "I/O port address " shost 9292 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "I/O port increment switch " shost 9296 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "EEPROM checksum error\n"); shost 9299 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "IRQ modified\n"); shost 9302 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "tag queuing enabled w/o " shost 9306 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "unknown warning: 0x%x\n", shost 9312 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "error 0x%x at init_state " shost 9318 drivers/scsi/advansys.c static int AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) shost 9320 drivers/scsi/advansys.c struct asc_board *board = shost_priv(shost); shost 9386 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "I/O port address " shost 9390 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "I/O port increment switch " shost 9394 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "EEPROM checksum error\n"); shost 9397 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "IRQ modified\n"); shost 9400 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "tag queuing w/o " shost 9404 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "unknown warning: 0x%x\n", shost 9410 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "error 0x%x at init_state " shost 10710 drivers/scsi/advansys.c static int AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) shost 10712 drivers/scsi/advansys.c struct asc_board *board = shost_priv(shost); shost 10780 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "warning: 0x%x\n", warn_code); shost 10783 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "error code 0x%x\n", shost 10809 drivers/scsi/advansys.c static int advansys_wide_init_chip(struct Scsi_Host *shost) shost 10811 drivers/scsi/advansys.c struct asc_board *board = shost_priv(shost); shost 10873 drivers/scsi/advansys.c shost_printk(KERN_WARNING, shost, "error: warn 0x%x, error " shost 10880 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "error: kmalloc() failed\n"); shost 10906 drivers/scsi/advansys.c static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop, shost 10910 drivers/scsi/advansys.c struct asc_board *boardp = shost_priv(shost); shost 10943 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "ioremap(%lx, %d) " shost 10973 drivers/scsi/advansys.c shost->unchecked_isa_dma = true; shost 10977 drivers/scsi/advansys.c shost->unchecked_isa_dma = false; shost 10981 drivers/scsi/advansys.c shost->unchecked_isa_dma = false; shost 10987 drivers/scsi/advansys.c shost->unchecked_isa_dma = false; shost 10992 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "unknown adapter type: " shost 10994 drivers/scsi/advansys.c shost->unchecked_isa_dma = false; shost 11006 drivers/scsi/advansys.c ret = AscInitGetConfig(shost) ? -ENODEV : 0; shost 11013 drivers/scsi/advansys.c shost->unchecked_isa_dma = false; shost 11017 drivers/scsi/advansys.c ret = AdvInitGetConfig(pdev, shost) ? -ENODEV : 0; shost 11068 drivers/scsi/advansys.c ret = AscInitSetConfig(pdev, shost) ? -ENODEV : 0; shost 11171 drivers/scsi/advansys.c shost->max_channel = 0; shost 11173 drivers/scsi/advansys.c shost->max_id = ASC_MAX_TID + 1; shost 11174 drivers/scsi/advansys.c shost->max_lun = ASC_MAX_LUN + 1; shost 11175 drivers/scsi/advansys.c shost->max_cmd_len = ASC_MAX_CDB_LEN; shost 11177 drivers/scsi/advansys.c shost->io_port = asc_dvc_varp->iop_base; shost 11179 drivers/scsi/advansys.c shost->this_id = asc_dvc_varp->cfg->chip_scsi_id; shost 11182 drivers/scsi/advansys.c shost->can_queue = asc_dvc_varp->max_total_qng; shost 11184 drivers/scsi/advansys.c shost->max_id = ADV_MAX_TID + 1; shost 11185 drivers/scsi/advansys.c shost->max_lun = ADV_MAX_LUN + 1; shost 11186 drivers/scsi/advansys.c shost->max_cmd_len = ADV_MAX_CDB_LEN; shost 11194 drivers/scsi/advansys.c shost->io_port = iop; shost 11196 drivers/scsi/advansys.c shost->this_id = adv_dvc_varp->chip_scsi_id; shost 11199 drivers/scsi/advansys.c shost->can_queue = adv_dvc_varp->max_host_qng; shost 11213 drivers/scsi/advansys.c shost->sg_tablesize = shost 11217 drivers/scsi/advansys.c shost->sg_tablesize = ADV_MAX_SG_LIST; shost 11226 drivers/scsi/advansys.c if (shost->sg_tablesize > SG_ALL) { shost 11227 drivers/scsi/advansys.c shost->sg_tablesize = SG_ALL; shost 11230 drivers/scsi/advansys.c ASC_DBG(1, "sg_tablesize: %d\n", shost->sg_tablesize); shost 11234 drivers/scsi/advansys.c shost->base = AscGetChipBiosAddress(asc_dvc_varp->iop_base, shost 11265 drivers/scsi/advansys.c shost->base = ((ulong)boardp->bios_codeseg << 4); shost 11267 drivers/scsi/advansys.c shost->base = 0; shost 11276 drivers/scsi/advansys.c shost->dma_channel = NO_ISA_DMA; /* Default to no ISA DMA. */ shost 11281 drivers/scsi/advansys.c shost->dma_channel = asc_dvc_varp->cfg->isa_dma_channel; shost 11282 drivers/scsi/advansys.c ret = request_dma(shost->dma_channel, DRV_NAME); shost 11284 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "request_dma() " shost 11286 drivers/scsi/advansys.c shost->dma_channel, ret); shost 11289 drivers/scsi/advansys.c AscEnableIsaDma(shost->dma_channel); shost 11295 drivers/scsi/advansys.c ASC_DBG(2, "request_irq(%d, %p)\n", boardp->irq, shost); shost 11298 drivers/scsi/advansys.c DRV_NAME, shost); shost 11302 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "request_irq(): IRQ 0x%x " shost 11305 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "request_irq(): IRQ 0x%x " shost 11308 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "request_irq(): IRQ 0x%x " shost 11328 drivers/scsi/advansys.c shost_printk(KERN_ERR, shost, "error: init_state 0x%x, " shost 11338 drivers/scsi/advansys.c if (advansys_wide_init_chip(shost)) { shost 11344 drivers/scsi/advansys.c ASC_DBG_PRT_SCSI_HOST(2, shost); shost 11346 drivers/scsi/advansys.c ret = scsi_add_host(shost, boardp->dev); shost 11350 drivers/scsi/advansys.c scsi_scan_host(shost); shost 11362 drivers/scsi/advansys.c free_irq(boardp->irq, shost); shost 11365 drivers/scsi/advansys.c if (shost->dma_channel != NO_ISA_DMA) shost 11366 drivers/scsi/advansys.c free_dma(shost->dma_channel); shost 11382 drivers/scsi/advansys.c static int advansys_release(struct Scsi_Host *shost) shost 11384 drivers/scsi/advansys.c struct asc_board *board = shost_priv(shost); shost 11386 drivers/scsi/advansys.c scsi_remove_host(shost); shost 11387 drivers/scsi/advansys.c free_irq(board->irq, shost); shost 11389 drivers/scsi/advansys.c if (shost->dma_channel != NO_ISA_DMA) { shost 11391 drivers/scsi/advansys.c free_dma(shost->dma_channel); shost 11403 drivers/scsi/advansys.c scsi_host_put(shost); shost 11435 drivers/scsi/advansys.c struct Scsi_Host *shost; shost 11449 drivers/scsi/advansys.c shost = scsi_host_alloc(&advansys_template, sizeof(*board)); shost 11450 drivers/scsi/advansys.c if (!shost) shost 11453 drivers/scsi/advansys.c board = shost_priv(shost); shost 11456 drivers/scsi/advansys.c board->shost = shost; shost 11458 drivers/scsi/advansys.c err = advansys_board_found(shost, iop_base, ASC_IS_ISA); shost 11462 drivers/scsi/advansys.c dev_set_drvdata(dev, shost); shost 11466 drivers/scsi/advansys.c scsi_host_put(shost); shost 11513 drivers/scsi/advansys.c struct Scsi_Host *shost; shost 11532 drivers/scsi/advansys.c shost = scsi_host_alloc(&advansys_template, sizeof(*board)); shost 11533 drivers/scsi/advansys.c if (!shost) shost 11536 drivers/scsi/advansys.c board = shost_priv(shost); shost 11539 drivers/scsi/advansys.c board->shost = shost; shost 11541 drivers/scsi/advansys.c err = advansys_board_found(shost, iop_base, ASC_IS_VL); shost 11545 drivers/scsi/advansys.c dev_set_drvdata(dev, shost); shost 11549 drivers/scsi/advansys.c scsi_host_put(shost); shost 11616 drivers/scsi/advansys.c struct Scsi_Host *shost; shost 11640 drivers/scsi/advansys.c shost = scsi_host_alloc(&advansys_template, sizeof(*board)); shost 11641 drivers/scsi/advansys.c if (!shost) shost 11644 drivers/scsi/advansys.c board = shost_priv(shost); shost 11647 drivers/scsi/advansys.c board->shost = shost; shost 11649 drivers/scsi/advansys.c err = advansys_board_found(shost, ioport, ASC_IS_EISA); shost 11651 drivers/scsi/advansys.c data->host[i] = shost; shost 11655 drivers/scsi/advansys.c scsi_host_put(shost); shost 11681 drivers/scsi/advansys.c struct Scsi_Host *shost = data->host[i]; shost 11682 drivers/scsi/advansys.c if (!shost) shost 11684 drivers/scsi/advansys.c ioport = shost->io_port; shost 11685 drivers/scsi/advansys.c advansys_release(shost); shost 11738 drivers/scsi/advansys.c struct Scsi_Host *shost; shost 11757 drivers/scsi/advansys.c shost = scsi_host_alloc(&advansys_template, sizeof(*board)); shost 11758 drivers/scsi/advansys.c if (!shost) shost 11761 drivers/scsi/advansys.c board = shost_priv(shost); shost 11764 drivers/scsi/advansys.c board->shost = shost; shost 11772 drivers/scsi/advansys.c err = advansys_board_found(shost, ioport, ASC_IS_PCI); shost 11776 drivers/scsi/advansys.c pci_set_drvdata(pdev, shost); shost 11780 drivers/scsi/advansys.c scsi_host_put(shost); shost 1300 drivers/scsi/aha152x.c struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata); shost 1302 drivers/scsi/aha152x.c is_complete(shost); shost 3341 drivers/scsi/aha152x.c struct Scsi_Host *shost = container_of((void *)hd, struct Scsi_Host, hostdata); shost 3343 drivers/scsi/aha152x.c aha152x_release(shost); shost 2388 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2389 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2393 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2402 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2403 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2408 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2435 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2455 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2456 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2461 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2473 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2490 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2491 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2496 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2519 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2532 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2533 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2538 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2558 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2571 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2572 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2577 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2598 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2611 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2612 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2617 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2634 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2647 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2648 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2653 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2670 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2683 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2684 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2689 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2714 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2727 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2728 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2733 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2764 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2777 drivers/scsi/aic7xxx/aic79xx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2778 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *((struct ahd_softc **)shost->hostdata); shost 2783 drivers/scsi/aic7xxx/aic79xx_osm.c shost->this_id, starget->id, &tstate); shost 2794 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2805 drivers/scsi/aic7xxx/aic79xx_osm.c static void ahd_linux_get_signalling(struct Scsi_Host *shost) shost 2807 drivers/scsi/aic7xxx/aic79xx_osm.c struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; shost 2818 drivers/scsi/aic7xxx/aic79xx_osm.c spi_signalling(shost) = SPI_SIGNAL_LVD; shost 2820 drivers/scsi/aic7xxx/aic79xx_osm.c spi_signalling(shost) = SPI_SIGNAL_SE; shost 2822 drivers/scsi/aic7xxx/aic79xx_osm.c spi_signalling(shost) = SPI_SIGNAL_UNKNOWN; shost 208 drivers/scsi/aic7xxx/aic79xx_proc.c ahd_proc_write_seeprom(struct Scsi_Host *shost, char *buffer, int length) shost 210 drivers/scsi/aic7xxx/aic79xx_proc.c struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; shost 274 drivers/scsi/aic7xxx/aic79xx_proc.c ahd_linux_show_info(struct seq_file *m, struct Scsi_Host *shost) shost 276 drivers/scsi/aic7xxx/aic79xx_proc.c struct ahd_softc *ahd = *(struct ahd_softc **)shost->hostdata; shost 2331 drivers/scsi/aic7xxx/aic7xxx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2332 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); shost 2336 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2345 drivers/scsi/aic7xxx/aic7xxx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2346 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); shost 2351 drivers/scsi/aic7xxx/aic7xxx_osm.c shost->this_id, starget->id, &tstate); shost 2371 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2389 drivers/scsi/aic7xxx/aic7xxx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2390 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); shost 2395 drivers/scsi/aic7xxx/aic7xxx_osm.c shost->this_id, starget->id, &tstate); shost 2402 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2417 drivers/scsi/aic7xxx/aic7xxx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2418 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); shost 2423 drivers/scsi/aic7xxx/aic7xxx_osm.c shost->this_id, starget->id, &tstate); shost 2439 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2455 drivers/scsi/aic7xxx/aic7xxx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2456 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); shost 2461 drivers/scsi/aic7xxx/aic7xxx_osm.c shost->this_id, starget->id, &tstate); shost 2472 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2483 drivers/scsi/aic7xxx/aic7xxx_osm.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2484 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *((struct ahc_softc **)shost->hostdata); shost 2489 drivers/scsi/aic7xxx/aic7xxx_osm.c shost->this_id, starget->id, &tstate); shost 2500 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_compile_devinfo(&devinfo, shost->this_id, starget->id, 0, shost 2510 drivers/scsi/aic7xxx/aic7xxx_osm.c static void ahc_linux_get_signalling(struct Scsi_Host *shost) shost 2512 drivers/scsi/aic7xxx/aic7xxx_osm.c struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; shost 2518 drivers/scsi/aic7xxx/aic7xxx_osm.c spi_signalling(shost) = shost 2532 drivers/scsi/aic7xxx/aic7xxx_osm.c spi_signalling(shost) = SPI_SIGNAL_LVD; shost 2534 drivers/scsi/aic7xxx/aic7xxx_osm.c spi_signalling(shost) = SPI_SIGNAL_SE; shost 2536 drivers/scsi/aic7xxx/aic7xxx_osm.c spi_signalling(shost) = SPI_SIGNAL_UNKNOWN; shost 188 drivers/scsi/aic7xxx/aic7xxx_proc.c ahc_proc_write_seeprom(struct Scsi_Host *shost, char *buffer, int length) shost 190 drivers/scsi/aic7xxx/aic7xxx_proc.c struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; shost 289 drivers/scsi/aic7xxx/aic7xxx_proc.c ahc_linux_show_info(struct seq_file *m, struct Scsi_Host *shost) shost 291 drivers/scsi/aic7xxx/aic7xxx_proc.c struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; shost 31 drivers/scsi/aic94xx/aic94xx_hwi.c return sas_request_addr(asd_ha->sas_ha.core.shost, shost 686 drivers/scsi/aic94xx/aic94xx_init.c sas_remove_host(asd_ha->sas_ha.core.shost); shost 687 drivers/scsi/aic94xx/aic94xx_init.c scsi_host_put(asd_ha->sas_ha.core.shost); shost 700 drivers/scsi/aic94xx/aic94xx_init.c struct Scsi_Host *shost; shost 717 drivers/scsi/aic94xx/aic94xx_init.c shost = scsi_host_alloc(&aic94xx_sht, sizeof(void *)); shost 718 drivers/scsi/aic94xx/aic94xx_init.c if (!shost) shost 736 drivers/scsi/aic94xx/aic94xx_init.c SHOST_TO_SAS_HA(shost) = &asd_ha->sas_ha; shost 737 drivers/scsi/aic94xx/aic94xx_init.c asd_ha->sas_ha.core.shost = shost; shost 738 drivers/scsi/aic94xx/aic94xx_init.c shost->transportt = aic94xx_transport_template; shost 739 drivers/scsi/aic94xx/aic94xx_init.c shost->max_id = ~0; shost 740 drivers/scsi/aic94xx/aic94xx_init.c shost->max_lun = ~0; shost 741 drivers/scsi/aic94xx/aic94xx_init.c shost->max_cmd_len = 16; shost 743 drivers/scsi/aic94xx/aic94xx_init.c err = scsi_add_host(shost, &dev->dev); shost 783 drivers/scsi/aic94xx/aic94xx_init.c shost->can_queue = asd_ha->seq.can_queue; shost 813 drivers/scsi/aic94xx/aic94xx_init.c scsi_scan_host(shost); shost 832 drivers/scsi/aic94xx/aic94xx_init.c scsi_remove_host(shost); shost 836 drivers/scsi/aic94xx/aic94xx_init.c scsi_host_put(shost); shost 912 drivers/scsi/aic94xx/aic94xx_init.c static void asd_scan_start(struct Scsi_Host *shost) shost 917 drivers/scsi/aic94xx/aic94xx_init.c asd_ha = SHOST_TO_SAS_HA(shost)->lldd_ha; shost 923 drivers/scsi/aic94xx/aic94xx_init.c static int asd_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 930 drivers/scsi/aic94xx/aic94xx_init.c sas_drain_work(SHOST_TO_SAS_HA(shost)); shost 376 drivers/scsi/am53c974.c struct Scsi_Host *shost; shost 391 drivers/scsi/am53c974.c shost = scsi_host_alloc(hostt, sizeof(struct esp)); shost 392 drivers/scsi/am53c974.c if (!shost) { shost 407 drivers/scsi/am53c974.c esp = shost_priv(shost); shost 408 drivers/scsi/am53c974.c esp->host = shost; shost 462 drivers/scsi/am53c974.c shost->this_id = esp->scsi_id; shost 463 drivers/scsi/am53c974.c shost->max_id = 8; shost 464 drivers/scsi/am53c974.c shost->irq = pdev->irq; shost 465 drivers/scsi/am53c974.c shost->io_port = pci_resource_start(pdev, 0); shost 466 drivers/scsi/am53c974.c shost->n_io_port = pci_resource_len(pdev, 0); shost 467 drivers/scsi/am53c974.c shost->unique_id = shost->io_port; shost 491 drivers/scsi/am53c974.c scsi_host_put(shost); shost 386 drivers/scsi/be2iscsi/be_cmds.c iscsi_host_for_each_session(phba->shost, shost 39 drivers/scsi/be2iscsi/be_iscsi.c struct Scsi_Host *shost; shost 74 drivers/scsi/be2iscsi/be_iscsi.c shost = phba->shost; shost 76 drivers/scsi/be2iscsi/be_iscsi.c shost, cmds_max, shost 133 drivers/scsi/be2iscsi/be_iscsi.c struct Scsi_Host *shost; shost 140 drivers/scsi/be2iscsi/be_iscsi.c shost = iscsi_session_to_shost(cls_session); shost 141 drivers/scsi/be2iscsi/be_iscsi.c phba = iscsi_host_priv(shost); shost 176 drivers/scsi/be2iscsi/be_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 177 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 235 drivers/scsi/be2iscsi/be_iscsi.c phba->ipv4_iface = iscsi_create_iface(phba->shost, shost 254 drivers/scsi/be2iscsi/be_iscsi.c phba->ipv6_iface = iscsi_create_iface(phba->shost, shost 308 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_iface_config_vlan(struct Scsi_Host *shost, shost 311 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 330 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_iface_config_ipv4(struct Scsi_Host *shost, shost 334 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 395 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_iface_config_ipv6(struct Scsi_Host *shost, shost 399 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 420 drivers/scsi/be2iscsi/be_iscsi.c int beiscsi_iface_set_param(struct Scsi_Host *shost, shost 424 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 470 drivers/scsi/be2iscsi/be_iscsi.c ret = beiscsi_iface_config_vlan(shost, iface_param); shost 475 drivers/scsi/be2iscsi/be_iscsi.c ret = beiscsi_iface_config_ipv4(shost, shost 480 drivers/scsi/be2iscsi/be_iscsi.c ret = beiscsi_iface_config_ipv6(shost, shost 565 drivers/scsi/be2iscsi/be_iscsi.c struct Scsi_Host *shost = iscsi_iface_to_shost(iface); shost 566 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 691 drivers/scsi/be2iscsi/be_iscsi.c static void beiscsi_get_port_state(struct Scsi_Host *shost) shost 693 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 694 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 705 drivers/scsi/be2iscsi/be_iscsi.c static void beiscsi_get_port_speed(struct Scsi_Host *shost) shost 707 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 708 drivers/scsi/be2iscsi/be_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 741 drivers/scsi/be2iscsi/be_iscsi.c int beiscsi_get_host_param(struct Scsi_Host *shost, shost 744 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 777 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_get_port_state(shost); shost 778 drivers/scsi/be2iscsi/be_iscsi.c status = sprintf(buf, "%s\n", iscsi_get_port_state_name(shost)); shost 781 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_get_port_speed(shost); shost 782 drivers/scsi/be2iscsi/be_iscsi.c status = sprintf(buf, "%s\n", iscsi_get_port_speed_name(shost)); shost 785 drivers/scsi/be2iscsi/be_iscsi.c return iscsi_host_get_param(shost, param, buf); shost 1133 drivers/scsi/be2iscsi/be_iscsi.c beiscsi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, shost 1141 drivers/scsi/be2iscsi/be_iscsi.c if (!shost) { shost 1147 drivers/scsi/be2iscsi/be_iscsi.c phba = iscsi_host_priv(shost); shost 24 drivers/scsi/be2iscsi/be_iscsi.h int beiscsi_iface_set_param(struct Scsi_Host *shost, shost 55 drivers/scsi/be2iscsi/be_iscsi.h int beiscsi_get_host_param(struct Scsi_Host *shost, shost 65 drivers/scsi/be2iscsi/be_iscsi.h struct iscsi_endpoint *beiscsi_ep_connect(struct Scsi_Host *shost, shost 74 drivers/scsi/be2iscsi/be_main.c struct Scsi_Host *shost = class_to_shost(dev);\ shost 75 drivers/scsi/be2iscsi/be_main.c struct beiscsi_hba *phba = iscsi_host_priv(shost); \ shost 105 drivers/scsi/be2iscsi/be_main.c struct Scsi_Host *shost = class_to_shost(dev);\ shost 106 drivers/scsi/be2iscsi/be_main.c struct beiscsi_hba *phba = iscsi_host_priv(shost);\ shost 411 drivers/scsi/be2iscsi/be_main.c struct Scsi_Host *shost; shost 413 drivers/scsi/be2iscsi/be_main.c shost = iscsi_host_alloc(&beiscsi_sht, sizeof(*phba), 0); shost 414 drivers/scsi/be2iscsi/be_main.c if (!shost) { shost 419 drivers/scsi/be2iscsi/be_main.c shost->max_id = BE2_MAX_SESSIONS; shost 420 drivers/scsi/be2iscsi/be_main.c shost->max_channel = 0; shost 421 drivers/scsi/be2iscsi/be_main.c shost->max_cmd_len = BEISCSI_MAX_CMD_LEN; shost 422 drivers/scsi/be2iscsi/be_main.c shost->max_lun = BEISCSI_NUM_MAX_LUN; shost 423 drivers/scsi/be2iscsi/be_main.c shost->transportt = beiscsi_scsi_transport; shost 424 drivers/scsi/be2iscsi/be_main.c phba = iscsi_host_priv(shost); shost 426 drivers/scsi/be2iscsi/be_main.c phba->shost = shost; shost 817 drivers/scsi/be2iscsi/be_main.c phba->shost->host_no, i); shost 836 drivers/scsi/be2iscsi/be_main.c phba->shost->host_no); shost 4816 drivers/scsi/be2iscsi/be_main.c struct Scsi_Host *shost; shost 4826 drivers/scsi/be2iscsi/be_main.c shost = iscsi_job_to_shost(job); shost 4827 drivers/scsi/be2iscsi/be_main.c phba = iscsi_host_priv(shost); shost 5085 drivers/scsi/be2iscsi/be_main.c scsi_host_put(phba->shost); shost 5099 drivers/scsi/be2iscsi/be_main.c bs->boot_kset = iscsi_boot_create_host_kset(phba->shost->host_no); shost 5107 drivers/scsi/be2iscsi/be_main.c if (!scsi_host_get(phba->shost)) shost 5117 drivers/scsi/be2iscsi/be_main.c if (!scsi_host_get(phba->shost)) shost 5127 drivers/scsi/be2iscsi/be_main.c if (!scsi_host_get(phba->shost)) shost 5140 drivers/scsi/be2iscsi/be_main.c scsi_host_put(phba->shost); shost 5321 drivers/scsi/be2iscsi/be_main.c phba->shost->max_id = phba->params.cxns_per_ctrl; shost 5322 drivers/scsi/be2iscsi/be_main.c phba->shost->can_queue = phba->params.ios_per_ctrl; shost 5435 drivers/scsi/be2iscsi/be_main.c iscsi_host_for_each_session(phba->shost, beiscsi_session_fail); shost 5463 drivers/scsi/be2iscsi/be_main.c iscsi_host_for_each_session(phba->shost, beiscsi_session_fail); shost 5624 drivers/scsi/be2iscsi/be_main.c phba->shost->max_id = phba->params.cxns_per_ctrl; shost 5625 drivers/scsi/be2iscsi/be_main.c phba->shost->can_queue = phba->params.ios_per_ctrl; shost 5653 drivers/scsi/be2iscsi/be_main.c phba->shost->host_no); shost 5687 drivers/scsi/be2iscsi/be_main.c ret = iscsi_host_add(phba->shost, &phba->pcidev->dev); shost 5747 drivers/scsi/be2iscsi/be_main.c iscsi_host_free(phba->shost); shost 5771 drivers/scsi/be2iscsi/be_main.c iscsi_host_remove(phba->shost); shost 5789 drivers/scsi/be2iscsi/be_main.c iscsi_host_free(phba->shost); shost 306 drivers/scsi/be2iscsi/be_main.h struct Scsi_Host *shost; shost 1021 drivers/scsi/be2iscsi/be_main.h shost_printk(level, phba->shost, fmt, __LINE__, ##arg) shost 1154 drivers/scsi/be2iscsi/be_mgmt.c struct Scsi_Host *shost = class_to_shost(dev); shost 1155 drivers/scsi/be2iscsi/be_mgmt.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 1173 drivers/scsi/be2iscsi/be_mgmt.c struct Scsi_Host *shost = class_to_shost(dev); shost 1174 drivers/scsi/be2iscsi/be_mgmt.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 1205 drivers/scsi/be2iscsi/be_mgmt.c struct Scsi_Host *shost = class_to_shost(dev); shost 1206 drivers/scsi/be2iscsi/be_mgmt.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 1236 drivers/scsi/be2iscsi/be_mgmt.c struct Scsi_Host *shost = class_to_shost(dev); shost 1237 drivers/scsi/be2iscsi/be_mgmt.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 1274 drivers/scsi/be2iscsi/be_mgmt.c struct Scsi_Host *shost = class_to_shost(dev); shost 1275 drivers/scsi/be2iscsi/be_mgmt.c struct beiscsi_hba *phba = iscsi_host_priv(shost); shost 1037 drivers/scsi/bfa/bfad.c fc_vport = fc_vport_create(bfad->pport.im_port->shost, 0, &vid); shost 24 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost; shost 31 drivers/scsi/bfa/bfad_attr.c shost = dev_to_shost(starget->dev.parent); shost 32 drivers/scsi/bfa/bfad_attr.c im_port = (struct bfad_im_port_s *) shost->hostdata[0]; shost 50 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost; shost 57 drivers/scsi/bfa/bfad_attr.c shost = dev_to_shost(starget->dev.parent); shost 58 drivers/scsi/bfa/bfad_attr.c im_port = (struct bfad_im_port_s *) shost->hostdata[0]; shost 76 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost; shost 83 drivers/scsi/bfa/bfad_attr.c shost = dev_to_shost(starget->dev.parent); shost 84 drivers/scsi/bfa/bfad_attr.c im_port = (struct bfad_im_port_s *) shost->hostdata[0]; shost 100 drivers/scsi/bfa/bfad_attr.c bfad_im_get_host_port_id(struct Scsi_Host *shost) shost 103 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 106 drivers/scsi/bfa/bfad_attr.c fc_host_port_id(shost) = shost 114 drivers/scsi/bfa/bfad_attr.c bfad_im_get_host_port_type(struct Scsi_Host *shost) shost 117 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 125 drivers/scsi/bfa/bfad_attr.c fc_host_port_type(shost) = FC_PORTTYPE_NPORT; shost 128 drivers/scsi/bfa/bfad_attr.c fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; shost 131 drivers/scsi/bfa/bfad_attr.c fc_host_port_type(shost) = FC_PORTTYPE_PTP; shost 134 drivers/scsi/bfa/bfad_attr.c fc_host_port_type(shost) = FC_PORTTYPE_LPORT; shost 137 drivers/scsi/bfa/bfad_attr.c fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN; shost 146 drivers/scsi/bfa/bfad_attr.c bfad_im_get_host_port_state(struct Scsi_Host *shost) shost 149 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 157 drivers/scsi/bfa/bfad_attr.c fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; shost 160 drivers/scsi/bfa/bfad_attr.c fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; shost 166 drivers/scsi/bfa/bfad_attr.c fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; shost 174 drivers/scsi/bfa/bfad_attr.c fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; shost 183 drivers/scsi/bfa/bfad_attr.c bfad_im_get_host_active_fc4s(struct Scsi_Host *shost) shost 186 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 189 drivers/scsi/bfa/bfad_attr.c memset(fc_host_active_fc4s(shost), 0, shost 190 drivers/scsi/bfa/bfad_attr.c sizeof(fc_host_active_fc4s(shost))); shost 193 drivers/scsi/bfa/bfad_attr.c fc_host_active_fc4s(shost)[2] = 1; shost 195 drivers/scsi/bfa/bfad_attr.c fc_host_active_fc4s(shost)[7] = 1; shost 202 drivers/scsi/bfa/bfad_attr.c bfad_im_get_host_speed(struct Scsi_Host *shost) shost 205 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 212 drivers/scsi/bfa/bfad_attr.c fc_host_speed(shost) = FC_PORTSPEED_10GBIT; shost 215 drivers/scsi/bfa/bfad_attr.c fc_host_speed(shost) = FC_PORTSPEED_16GBIT; shost 218 drivers/scsi/bfa/bfad_attr.c fc_host_speed(shost) = FC_PORTSPEED_8GBIT; shost 221 drivers/scsi/bfa/bfad_attr.c fc_host_speed(shost) = FC_PORTSPEED_4GBIT; shost 224 drivers/scsi/bfa/bfad_attr.c fc_host_speed(shost) = FC_PORTSPEED_2GBIT; shost 227 drivers/scsi/bfa/bfad_attr.c fc_host_speed(shost) = FC_PORTSPEED_1GBIT; shost 230 drivers/scsi/bfa/bfad_attr.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 239 drivers/scsi/bfa/bfad_attr.c bfad_im_get_host_fabric_name(struct Scsi_Host *shost) shost 242 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 248 drivers/scsi/bfa/bfad_attr.c fc_host_fabric_name(shost) = cpu_to_be64(fabric_nwwn); shost 256 drivers/scsi/bfa/bfad_attr.c bfad_im_get_stats(struct Scsi_Host *shost) shost 259 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 309 drivers/scsi/bfa/bfad_attr.c bfad_im_reset_stats(struct Scsi_Host *shost) shost 312 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 355 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = fc_vport->shost; shost 357 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 404 drivers/scsi/bfa/bfad_attr.c vshost = vport->drv_port.im_port->shost; shost 441 drivers/scsi/bfa/bfad_attr.c bfad_im_issue_fc_host_lip(struct Scsi_Host *shost) shost 444 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 498 drivers/scsi/bfa/bfad_attr.c vshost = vport->drv_port.im_port->shost; shost 544 drivers/scsi/bfa/bfad_attr.c vshost = vport->drv_port.im_port->shost; shost 572 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *vshost = vport->drv_port.im_port->shost; shost 707 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 709 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 721 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 723 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 735 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 737 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 815 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 817 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 829 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 831 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 846 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 848 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 867 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 869 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 881 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 883 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 895 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 897 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 915 drivers/scsi/bfa/bfad_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 917 drivers/scsi/bfa/bfad_attr.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 92 drivers/scsi/bfa/bfad_bsg.c iocmd->host = im_port->shost->host_no; shost 661 drivers/scsi/bfa/bfad_bsg.c iocmd->host = drv_itnim->im_port->shost->host_no; shost 3128 drivers/scsi/bfa/bfad_bsg.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 3129 drivers/scsi/bfa/bfad_bsg.c struct bfad_im_port_s *im_port = bfad_get_im_port(shost); shost 3345 drivers/scsi/bfa/bfad_bsg.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 3346 drivers/scsi/bfa/bfad_bsg.c struct bfad_im_port_s *im_port = bfad_get_im_port(shost); shost 169 drivers/scsi/bfa/bfad_im.c bfad_im_info(struct Scsi_Host *shost) shost 173 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 192 drivers/scsi/bfa/bfad_im.c struct Scsi_Host *shost = cmnd->device->host; shost 194 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 216 drivers/scsi/bfa/bfad_im.c im_port->shost->host_no, cmnd, hal_io->iotag); shost 233 drivers/scsi/bfa/bfad_im.c im_port->shost->host_no, cmnd, hal_io->iotag); shost 293 drivers/scsi/bfa/bfad_im.c struct Scsi_Host *shost = cmnd->device->host; shost 295 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 370 drivers/scsi/bfa/bfad_im.c struct Scsi_Host *shost = cmnd->device->host; shost 373 drivers/scsi/bfa/bfad_im.c (struct bfad_im_port_s *) shost->hostdata[0]; shost 475 drivers/scsi/bfa/bfad_im.c port->im_port->shost->host_no, shost 551 drivers/scsi/bfa/bfad_im.c im_port->shost = bfad_scsi_host_alloc(im_port, bfad); shost 552 drivers/scsi/bfa/bfad_im.c if (!im_port->shost) { shost 557 drivers/scsi/bfa/bfad_im.c im_portp = shost_priv(im_port->shost); shost 559 drivers/scsi/bfa/bfad_im.c im_port->shost->unique_id = im_port->idr_id; shost 560 drivers/scsi/bfa/bfad_im.c im_port->shost->this_id = -1; shost 561 drivers/scsi/bfa/bfad_im.c im_port->shost->max_id = MAX_FCP_TARGET; shost 562 drivers/scsi/bfa/bfad_im.c im_port->shost->max_lun = MAX_FCP_LUN; shost 563 drivers/scsi/bfa/bfad_im.c im_port->shost->max_cmd_len = 16; shost 564 drivers/scsi/bfa/bfad_im.c im_port->shost->can_queue = bfad->cfg_data.ioc_queue_depth; shost 566 drivers/scsi/bfa/bfad_im.c im_port->shost->transportt = bfad_im_scsi_transport_template; shost 568 drivers/scsi/bfa/bfad_im.c im_port->shost->transportt = shost 571 drivers/scsi/bfa/bfad_im.c error = scsi_add_host_with_dma(im_port->shost, dev, &bfad->pcidev->dev); shost 580 drivers/scsi/bfa/bfad_im.c scsi_host_put(im_port->shost); shost 581 drivers/scsi/bfa/bfad_im.c im_port->shost = NULL; shost 595 drivers/scsi/bfa/bfad_im.c im_port->shost->host_no); shost 597 drivers/scsi/bfa/bfad_im.c fc_remove_host(im_port->shost); shost 599 drivers/scsi/bfa/bfad_im.c scsi_remove_host(im_port->shost); shost 600 drivers/scsi/bfa/bfad_im.c scsi_host_put(im_port->shost); shost 677 drivers/scsi/bfa/bfad_im.c struct Scsi_Host *shost = bfad->pport.im_port->shost; shost 686 drivers/scsi/bfa/bfad_im.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 1027 drivers/scsi/bfa/bfad_im.c struct Scsi_Host *host = im_port->shost; shost 1073 drivers/scsi/bfa/bfad_im.c fc_remote_port_add(im_port->shost, 0, &rport_ids); shost 1135 drivers/scsi/bfa/bfad_im.c im_port->shost->host_no, shost 1168 drivers/scsi/bfa/bfad_im.c im_port->shost->host_no, shost 58 drivers/scsi/bfa/bfad_im.h struct Scsi_Host *shost; shost 198 drivers/scsi/bfa/bfad_im.h __sdev = scsi_device_lookup((__im_port)->shost, \ shost 677 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static struct fc_host_statistics *bnx2fc_get_host_stats(struct Scsi_Host *shost) shost 680 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_lport *lport = shost_priv(shost); shost 693 drivers/scsi/bnx2fc/bnx2fc_fcoe.c bnx2fc_stats = fc_get_host_stats(shost); shost 734 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct Scsi_Host *shost = lport->host; shost 737 drivers/scsi/bnx2fc/bnx2fc_fcoe.c shost->max_cmd_len = BNX2FC_MAX_CMD_LEN; shost 738 drivers/scsi/bnx2fc/bnx2fc_fcoe.c shost->max_lun = bnx2fc_max_luns; shost 739 drivers/scsi/bnx2fc/bnx2fc_fcoe.c shost->max_id = BNX2FC_MAX_FCP_TGT; shost 740 drivers/scsi/bnx2fc/bnx2fc_fcoe.c shost->max_channel = 0; shost 742 drivers/scsi/bnx2fc/bnx2fc_fcoe.c shost->transportt = bnx2fc_vport_xport_template; shost 744 drivers/scsi/bnx2fc/bnx2fc_fcoe.c shost->transportt = bnx2fc_transport_template; shost 1126 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct Scsi_Host *shost = vport_to_shost(vport); shost 1127 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_lport *n_port = shost_priv(shost); shost 1191 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct Scsi_Host *shost = vport_to_shost(vport); shost 1192 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_lport *n_port = shost_priv(shost); shost 1496 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct Scsi_Host *shost; shost 1519 drivers/scsi/bnx2fc/bnx2fc_fcoe.c shost = lport->host; shost 1560 drivers/scsi/bnx2fc/bnx2fc_fcoe.c fc_host_dev_loss_tmo(shost) = bnx2fc_devloss_tmo; shost 1566 drivers/scsi/bnx2fc/bnx2fc_fcoe.c shost = vport_to_shost(vport); shost 1567 drivers/scsi/bnx2fc/bnx2fc_fcoe.c n_port = shost_priv(shost); shost 1586 drivers/scsi/bnx2fc/bnx2fc_fcoe.c scsi_remove_host(shost); shost 2578 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_fcoe_reset(struct Scsi_Host *shost) shost 2580 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_lport *lport = shost_priv(shost); shost 2918 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct Scsi_Host *shost = class_to_shost(dev); shost 2919 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_lport *lport = shost_priv(shost); shost 2931 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct Scsi_Host *shost = class_to_shost(dev); shost 2932 drivers/scsi/bnx2fc/bnx2fc_fcoe.c struct fc_lport *lport = shost_priv(shost); shost 428 drivers/scsi/bnx2i/bnx2i.h struct Scsi_Host *shost; shost 2367 drivers/scsi/bnx2i/bnx2i_hwi.c bnx2i_conn->hba->shost->host_no, shost 2549 drivers/scsi/bnx2i/bnx2i_hwi.c iscsi_host_for_each_session(hba->shost, shost 2663 drivers/scsi/bnx2i/bnx2i_hwi.c rc = iscsi_offload_mesg(hba->shost, &bnx2i_iscsi_transport, shost 229 drivers/scsi/bnx2i/bnx2i_init.c iscsi_host_for_each_session(hba->shost, shost 766 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost) shost 769 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->can_queue = ISCSI_MAX_CMDS_PER_HBA_5708; shost 771 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->can_queue = ISCSI_MAX_CMDS_PER_HBA_5709; shost 773 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->can_queue = ISCSI_MAX_CMDS_PER_HBA_57710; shost 775 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->can_queue = ISCSI_MAX_CMDS_PER_HBA_5708; shost 788 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost; shost 791 drivers/scsi/bnx2i/bnx2i_iscsi.c shost = iscsi_host_alloc(&bnx2i_host_template, sizeof(*hba), 0); shost 792 drivers/scsi/bnx2i/bnx2i_iscsi.c if (!shost) shost 794 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->dma_boundary = cnic->pcidev->dma_mask; shost 795 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->transportt = bnx2i_scsi_xport_template; shost 796 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->max_id = ISCSI_MAX_CONNS_PER_HBA; shost 797 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->max_channel = 0; shost 798 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->max_lun = 512; shost 799 drivers/scsi/bnx2i/bnx2i_iscsi.c shost->max_cmd_len = 16; shost 801 drivers/scsi/bnx2i/bnx2i_iscsi.c hba = iscsi_host_priv(shost); shost 802 drivers/scsi/bnx2i/bnx2i_iscsi.c hba->shost = shost; shost 815 drivers/scsi/bnx2i/bnx2i_iscsi.c bnx2i_setup_host_queue_size(hba, shost); shost 885 drivers/scsi/bnx2i/bnx2i_iscsi.c if (iscsi_host_add(shost, &hba->pcidev->dev)) shost 900 drivers/scsi/bnx2i/bnx2i_iscsi.c scsi_host_put(shost); shost 912 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost = hba->shost; shost 914 drivers/scsi/bnx2i/bnx2i_iscsi.c iscsi_host_remove(shost); shost 926 drivers/scsi/bnx2i/bnx2i_iscsi.c iscsi_host_free(shost); shost 1227 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(session->cls_session); shost 1228 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_hba *hba = iscsi_host_priv(shost); shost 1291 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost; shost 1302 drivers/scsi/bnx2i/bnx2i_iscsi.c shost = bnx2i_ep->hba->shost; shost 1303 drivers/scsi/bnx2i/bnx2i_iscsi.c hba = iscsi_host_priv(shost); shost 1316 drivers/scsi/bnx2i/bnx2i_iscsi.c cls_session = iscsi_session_setup(&bnx2i_iscsi_transport, shost, shost 1342 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 1343 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_hba *hba = iscsi_host_priv(shost); shost 1360 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 1361 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_hba *hba = iscsi_host_priv(shost); shost 1413 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 1414 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_hba *hba = iscsi_host_priv(shost); shost 1479 drivers/scsi/bnx2i/bnx2i_iscsi.c struct Scsi_Host *shost; shost 1485 drivers/scsi/bnx2i/bnx2i_iscsi.c shost = iscsi_session_to_shost(iscsi_conn_to_session(cls_conn)); shost 1486 drivers/scsi/bnx2i/bnx2i_iscsi.c hba = iscsi_host_priv(shost); shost 1557 drivers/scsi/bnx2i/bnx2i_iscsi.c static int bnx2i_host_get_param(struct Scsi_Host *shost, shost 1560 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_hba *hba = iscsi_host_priv(shost); shost 1591 drivers/scsi/bnx2i/bnx2i_iscsi.c return iscsi_host_get_param(shost, param, buf); shost 1770 drivers/scsi/bnx2i/bnx2i_iscsi.c static struct iscsi_endpoint *bnx2i_ep_connect(struct Scsi_Host *shost, shost 1784 drivers/scsi/bnx2i/bnx2i_iscsi.c if (shost) { shost 1786 drivers/scsi/bnx2i/bnx2i_iscsi.c hba = iscsi_host_priv(shost); shost 2177 drivers/scsi/bnx2i/bnx2i_iscsi.c static int bnx2i_nl_set_path(struct Scsi_Host *shost, struct iscsi_path *params) shost 2179 drivers/scsi/bnx2i/bnx2i_iscsi.c struct bnx2i_hba *hba = iscsi_host_priv(shost); shost 25 drivers/scsi/bnx2i/bnx2i_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 26 drivers/scsi/bnx2i/bnx2i_sysfs.c return iscsi_host_priv(shost); shost 62 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = csio_ln_to_shost(ln); shost 78 drivers/scsi/csiostor/csio_attr.c rn->rport = fc_remote_port_add(shost, 0, &ids); shost 87 drivers/scsi/csiostor/csio_attr.c spin_lock_irq(shost->host_lock); shost 89 drivers/scsi/csiostor/csio_attr.c spin_unlock_irq(shost->host_lock); shost 184 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = csio_ln_to_shost(ln); shost 186 drivers/scsi/csiostor/csio_attr.c fc_host_node_name(shost) = wwn_to_u64(csio_ln_wwnn(ln)); shost 187 drivers/scsi/csiostor/csio_attr.c fc_host_port_name(shost) = wwn_to_u64(csio_ln_wwpn(ln)); shost 189 drivers/scsi/csiostor/csio_attr.c fc_host_supported_classes(shost) = FC_COS_CLASS3; shost 190 drivers/scsi/csiostor/csio_attr.c fc_host_max_npiv_vports(shost) = shost 192 drivers/scsi/csiostor/csio_attr.c fc_host_supported_speeds(shost) = FC_PORTSPEED_10GBIT | shost 195 drivers/scsi/csiostor/csio_attr.c fc_host_maxframe_size(shost) = ntohs(ln->ln_sparm.csp.sp_bb_data); shost 196 drivers/scsi/csiostor/csio_attr.c memset(fc_host_supported_fc4s(shost), 0, shost 197 drivers/scsi/csiostor/csio_attr.c sizeof(fc_host_supported_fc4s(shost))); shost 198 drivers/scsi/csiostor/csio_attr.c fc_host_supported_fc4s(shost)[7] = 1; shost 200 drivers/scsi/csiostor/csio_attr.c memset(fc_host_active_fc4s(shost), 0, shost 201 drivers/scsi/csiostor/csio_attr.c sizeof(fc_host_active_fc4s(shost))); shost 202 drivers/scsi/csiostor/csio_attr.c fc_host_active_fc4s(shost)[7] = 1; shost 210 drivers/scsi/csiostor/csio_attr.c csio_get_host_port_id(struct Scsi_Host *shost) shost 212 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); shost 216 drivers/scsi/csiostor/csio_attr.c fc_host_port_id(shost) = ln->nport_id; shost 226 drivers/scsi/csiostor/csio_attr.c csio_get_host_port_type(struct Scsi_Host *shost) shost 228 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); shost 233 drivers/scsi/csiostor/csio_attr.c fc_host_port_type(shost) = FC_PORTTYPE_NPIV; shost 235 drivers/scsi/csiostor/csio_attr.c fc_host_port_type(shost) = FC_PORTTYPE_NPORT; shost 245 drivers/scsi/csiostor/csio_attr.c csio_get_host_port_state(struct Scsi_Host *shost) shost 247 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); shost 255 drivers/scsi/csiostor/csio_attr.c fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; shost 257 drivers/scsi/csiostor/csio_attr.c fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; shost 259 drivers/scsi/csiostor/csio_attr.c fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; shost 270 drivers/scsi/csiostor/csio_attr.c csio_get_host_speed(struct Scsi_Host *shost) shost 272 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); shost 278 drivers/scsi/csiostor/csio_attr.c fc_host_speed(shost) = FC_PORTSPEED_1GBIT; shost 281 drivers/scsi/csiostor/csio_attr.c fc_host_speed(shost) = FC_PORTSPEED_10GBIT; shost 284 drivers/scsi/csiostor/csio_attr.c fc_host_speed(shost) = FC_PORTSPEED_25GBIT; shost 287 drivers/scsi/csiostor/csio_attr.c fc_host_speed(shost) = FC_PORTSPEED_40GBIT; shost 290 drivers/scsi/csiostor/csio_attr.c fc_host_speed(shost) = FC_PORTSPEED_50GBIT; shost 293 drivers/scsi/csiostor/csio_attr.c fc_host_speed(shost) = FC_PORTSPEED_100GBIT; shost 296 drivers/scsi/csiostor/csio_attr.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 308 drivers/scsi/csiostor/csio_attr.c csio_get_host_fabric_name(struct Scsi_Host *shost) shost 310 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); shost 317 drivers/scsi/csiostor/csio_attr.c fc_host_fabric_name(shost) = wwn_to_u64(csio_rn_wwnn(rn)); shost 319 drivers/scsi/csiostor/csio_attr.c fc_host_fabric_name(shost) = 0; shost 329 drivers/scsi/csiostor/csio_attr.c csio_get_stats(struct Scsi_Host *shost) shost 331 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); shost 554 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = fc_vport->shost; shost 555 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *pln = shost_priv(shost); shost 617 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = csio_ln_to_shost(ln); shost 631 drivers/scsi/csiostor/csio_attr.c scsi_block_requests(shost); shost 636 drivers/scsi/csiostor/csio_attr.c scsi_unblock_requests(shost); shost 650 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = csio_ln_to_shost(ln); shost 656 drivers/scsi/csiostor/csio_attr.c scsi_block_requests(shost); shost 661 drivers/scsi/csiostor/csio_attr.c scsi_unblock_requests(shost); shost 599 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost = NULL; shost 610 drivers/scsi/csiostor/csio_init.c shost = scsi_host_alloc( shost 614 drivers/scsi/csiostor/csio_init.c shost = scsi_host_alloc( shost 618 drivers/scsi/csiostor/csio_init.c if (!shost) shost 621 drivers/scsi/csiostor/csio_init.c ln = shost_priv(shost); shost 625 drivers/scsi/csiostor/csio_init.c ln->dev_num = (shost->host_no << 16); shost 627 drivers/scsi/csiostor/csio_init.c shost->can_queue = CSIO_MAX_QUEUE; shost 628 drivers/scsi/csiostor/csio_init.c shost->this_id = -1; shost 629 drivers/scsi/csiostor/csio_init.c shost->unique_id = shost->host_no; shost 630 drivers/scsi/csiostor/csio_init.c shost->max_cmd_len = 16; /* Max CDB length supported */ shost 631 drivers/scsi/csiostor/csio_init.c shost->max_id = min_t(uint32_t, csio_fcoe_rnodes, shost 633 drivers/scsi/csiostor/csio_init.c shost->max_lun = CSIO_MAX_LUN; shost 635 drivers/scsi/csiostor/csio_init.c shost->transportt = csio_fcoe_transport; shost 637 drivers/scsi/csiostor/csio_init.c shost->transportt = csio_fcoe_transport_vport; shost 647 drivers/scsi/csiostor/csio_init.c if (scsi_add_host_with_dma(shost, dev, &hw->pdev->dev)) shost 655 drivers/scsi/csiostor/csio_init.c scsi_host_put(shost); shost 668 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost = csio_ln_to_shost(ln); shost 672 drivers/scsi/csiostor/csio_init.c fc_remove_host(shost); shost 675 drivers/scsi/csiostor/csio_init.c scsi_remove_host(shost); shost 685 drivers/scsi/csiostor/csio_init.c scsi_host_put(shost); shost 697 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost; shost 726 drivers/scsi/csiostor/csio_init.c shost = csio_ln_to_shost(ln); shost 727 drivers/scsi/csiostor/csio_init.c scsi_block_requests(shost); shost 737 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost; shost 765 drivers/scsi/csiostor/csio_init.c shost = csio_ln_to_shost(ln); shost 766 drivers/scsi/csiostor/csio_init.c scsi_unblock_requests(shost); shost 775 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost; shost 806 drivers/scsi/csiostor/csio_init.c shost = csio_ln_to_shost(ln); shost 807 drivers/scsi/csiostor/csio_init.c scsi_block_requests(shost); shost 816 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost; shost 846 drivers/scsi/csiostor/csio_init.c shost = csio_ln_to_shost(ln); shost 847 drivers/scsi/csiostor/csio_init.c scsi_unblock_requests(shost); shost 918 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost = csio_ln_to_shost(ln); shost 922 drivers/scsi/csiostor/csio_init.c scsi_scan_host(shost); shost 2248 drivers/scsi/csiostor/csio_scsi.c csio_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 2250 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(shost); shost 2253 drivers/scsi/csiostor/csio_scsi.c spin_lock_irq(shost->host_lock); shost 2260 drivers/scsi/csiostor/csio_scsi.c spin_unlock_irq(shost->host_lock); shost 331 drivers/scsi/cxgbi/libcxgbi.c iscsi_host_remove(chba->shost); shost 333 drivers/scsi/cxgbi/libcxgbi.c iscsi_host_free(chba->shost); shost 344 drivers/scsi/cxgbi/libcxgbi.c struct Scsi_Host *shost; shost 350 drivers/scsi/cxgbi/libcxgbi.c shost = iscsi_host_alloc(sht, sizeof(*chba), 1); shost 351 drivers/scsi/cxgbi/libcxgbi.c if (!shost) { shost 358 drivers/scsi/cxgbi/libcxgbi.c shost->transportt = stt; shost 359 drivers/scsi/cxgbi/libcxgbi.c shost->max_lun = max_lun; shost 360 drivers/scsi/cxgbi/libcxgbi.c shost->max_id = max_id; shost 361 drivers/scsi/cxgbi/libcxgbi.c shost->max_channel = 0; shost 362 drivers/scsi/cxgbi/libcxgbi.c shost->max_cmd_len = 16; shost 364 drivers/scsi/cxgbi/libcxgbi.c chba = iscsi_host_priv(shost); shost 367 drivers/scsi/cxgbi/libcxgbi.c chba->shost = shost; shost 374 drivers/scsi/cxgbi/libcxgbi.c err = iscsi_host_add(shost, &cdev->pdev->dev); shost 379 drivers/scsi/cxgbi/libcxgbi.c scsi_host_put(shost); shost 2429 drivers/scsi/cxgbi/libcxgbi.c struct Scsi_Host *shost; shost 2440 drivers/scsi/cxgbi/libcxgbi.c shost = chba->shost; shost 2442 drivers/scsi/cxgbi/libcxgbi.c BUG_ON(chba != iscsi_host_priv(shost)); shost 2444 drivers/scsi/cxgbi/libcxgbi.c cls_session = iscsi_session_setup(chba->cdev->itp, shost, shost 2476 drivers/scsi/cxgbi/libcxgbi.c int cxgbi_set_host_param(struct Scsi_Host *shost, enum iscsi_host_param param, shost 2479 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_hba *chba = iscsi_host_priv(shost); shost 2482 drivers/scsi/cxgbi/libcxgbi.c shost_printk(KERN_ERR, shost, "Could not get host param. " shost 2489 drivers/scsi/cxgbi/libcxgbi.c shost, chba, chba->ndev->name, param, buflen, buf); shost 2504 drivers/scsi/cxgbi/libcxgbi.c return iscsi_host_set_param(shost, param, buf, buflen); shost 2509 drivers/scsi/cxgbi/libcxgbi.c int cxgbi_get_host_param(struct Scsi_Host *shost, enum iscsi_host_param param, shost 2512 drivers/scsi/cxgbi/libcxgbi.c struct cxgbi_hba *chba = iscsi_host_priv(shost); shost 2516 drivers/scsi/cxgbi/libcxgbi.c shost_printk(KERN_ERR, shost, "Could not get host param. " shost 2523 drivers/scsi/cxgbi/libcxgbi.c shost, chba, chba->ndev->name, param); shost 2545 drivers/scsi/cxgbi/libcxgbi.c return iscsi_host_get_param(shost, param, buf); shost 2552 drivers/scsi/cxgbi/libcxgbi.c struct iscsi_endpoint *cxgbi_ep_connect(struct Scsi_Host *shost, shost 2565 drivers/scsi/cxgbi/libcxgbi.c shost, non_blocking, dst_addr); shost 2567 drivers/scsi/cxgbi/libcxgbi.c if (shost) { shost 2568 drivers/scsi/cxgbi/libcxgbi.c hba = iscsi_host_priv(shost); shost 2570 drivers/scsi/cxgbi/libcxgbi.c pr_info("shost 0x%p, priv NULL.\n", shost); shost 2605 drivers/scsi/cxgbi/libcxgbi.c shost->host_no, hba, shost 440 drivers/scsi/cxgbi/libcxgbi.h struct Scsi_Host *shost; shost 2725 drivers/scsi/cxlflash/main.c struct Scsi_Host *shost = class_to_shost(dev); shost 2726 drivers/scsi/cxlflash/main.c struct cxlflash_cfg *cfg = shost_priv(shost); shost 2741 drivers/scsi/cxlflash/main.c shost->max_channel = 0; shost 2743 drivers/scsi/cxlflash/main.c shost->max_channel = PORTNUM2CHAN(cfg->num_fc_ports); shost 3076 drivers/scsi/cxlflash/main.c struct Scsi_Host *shost = class_to_shost(dev); shost 3077 drivers/scsi/cxlflash/main.c struct cxlflash_cfg *cfg = shost_priv(shost); shost 2108 drivers/scsi/cxlflash/superpipe.c struct Scsi_Host *shost = sdev->host; shost 2154 drivers/scsi/cxlflash/superpipe.c __func__, decode_ioctl(cmd), cmd, shost->host_no, shost 2213 drivers/scsi/cxlflash/superpipe.c decode_ioctl(cmd), cmd, shost->host_no, shost 2218 drivers/scsi/cxlflash/superpipe.c cmd, shost->host_no, sdev->channel, sdev->id, shost 61 drivers/scsi/dmx3191d.c struct Scsi_Host *shost; shost 76 drivers/scsi/dmx3191d.c shost = scsi_host_alloc(&dmx3191d_driver_template, shost 78 drivers/scsi/dmx3191d.c if (!shost) shost 81 drivers/scsi/dmx3191d.c hostdata = shost_priv(shost); shost 87 drivers/scsi/dmx3191d.c shost->irq = NO_IRQ; shost 89 drivers/scsi/dmx3191d.c error = NCR5380_init(shost, 0); shost 93 drivers/scsi/dmx3191d.c NCR5380_maybe_reset_bus(shost); shost 95 drivers/scsi/dmx3191d.c pci_set_drvdata(pdev, shost); shost 97 drivers/scsi/dmx3191d.c error = scsi_add_host(shost, &pdev->dev); shost 101 drivers/scsi/dmx3191d.c scsi_scan_host(shost); shost 105 drivers/scsi/dmx3191d.c NCR5380_exit(shost); shost 107 drivers/scsi/dmx3191d.c scsi_host_put(shost); shost 118 drivers/scsi/dmx3191d.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 119 drivers/scsi/dmx3191d.c struct NCR5380_hostdata *hostdata = shost_priv(shost); shost 122 drivers/scsi/dmx3191d.c scsi_remove_host(shost); shost 124 drivers/scsi/dmx3191d.c NCR5380_exit(shost); shost 125 drivers/scsi/dmx3191d.c scsi_host_put(shost); shost 304 drivers/scsi/dpt_i2o.c struct Scsi_Host *shost = pHba->host; shost 306 drivers/scsi/dpt_i2o.c scsi_remove_host(shost); shost 309 drivers/scsi/dpt_i2o.c scsi_host_put(shost); shost 2017 drivers/scsi/dpt_i2o.c struct Scsi_Host *shost = pHba->host; shost 2019 drivers/scsi/dpt_i2o.c if (shost) shost 2020 drivers/scsi/dpt_i2o.c spin_lock_irqsave(shost->host_lock, flags); shost 2022 drivers/scsi/dpt_i2o.c if (shost) shost 2023 drivers/scsi/dpt_i2o.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1130 drivers/scsi/fcoe/fcoe.c struct Scsi_Host *shost; shost 1220 drivers/scsi/fcoe/fcoe.c shost = vport_to_shost(vport); shost 1221 drivers/scsi/fcoe/fcoe.c n_port = shost_priv(shost); shost 2356 drivers/scsi/fcoe/fcoe.c static int fcoe_reset(struct Scsi_Host *shost) shost 2358 drivers/scsi/fcoe/fcoe.c struct fc_lport *lport = shost_priv(shost); shost 2659 drivers/scsi/fcoe/fcoe.c struct Scsi_Host *shost = vport_to_shost(vport); shost 2660 drivers/scsi/fcoe/fcoe.c struct fc_lport *n_port = shost_priv(shost); shost 2707 drivers/scsi/fcoe/fcoe.c struct Scsi_Host *shost = vport_to_shost(vport); shost 2708 drivers/scsi/fcoe/fcoe.c struct fc_lport *n_port = shost_priv(shost); shost 2730 drivers/scsi/fcoe/fcoe.c struct Scsi_Host *shost; shost 2736 drivers/scsi/fcoe/fcoe.c shost = lport->host; shost 2737 drivers/scsi/fcoe/fcoe.c fc_host = shost_to_fc_host(shost); shost 2740 drivers/scsi/fcoe/fcoe.c spin_lock_irqsave(shost->host_lock, flags); shost 2746 drivers/scsi/fcoe/fcoe.c queue_work(fc_host_work_q(shost), shost 2750 drivers/scsi/fcoe/fcoe.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2752 drivers/scsi/fcoe/fcoe.c flush_workqueue(fc_host_work_q(shost)); shost 250 drivers/scsi/fcoe/fcoe_transport.c struct Scsi_Host *shost = vport_to_shost(vport); shost 251 drivers/scsi/fcoe/fcoe_transport.c struct fc_lport *n_port = shost_priv(shost); shost 138 drivers/scsi/fnic/fnic_main.c static void fnic_get_host_speed(struct Scsi_Host *shost); shost 175 drivers/scsi/fnic/fnic_main.c static void fnic_get_host_speed(struct Scsi_Host *shost) shost 177 drivers/scsi/fnic/fnic_main.c struct fc_lport *lp = shost_priv(shost); shost 184 drivers/scsi/fnic/fnic_main.c fc_host_speed(shost) = FC_PORTSPEED_10GBIT; shost 187 drivers/scsi/fnic/fnic_main.c fc_host_speed(shost) = FC_PORTSPEED_20GBIT; shost 190 drivers/scsi/fnic/fnic_main.c fc_host_speed(shost) = FC_PORTSPEED_25GBIT; shost 194 drivers/scsi/fnic/fnic_main.c fc_host_speed(shost) = FC_PORTSPEED_40GBIT; shost 197 drivers/scsi/fnic/fnic_main.c fc_host_speed(shost) = FC_PORTSPEED_100GBIT; shost 200 drivers/scsi/fnic/fnic_main.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 2572 drivers/scsi/fnic/fnic_scsi.c int fnic_reset(struct Scsi_Host *shost) shost 2579 drivers/scsi/fnic/fnic_scsi.c lp = shost_priv(shost); shost 2620 drivers/scsi/fnic/fnic_scsi.c struct Scsi_Host *shost = sc->device->host; shost 2621 drivers/scsi/fnic/fnic_scsi.c struct fc_lport *lp = shost_priv(shost); shost 2641 drivers/scsi/fnic/fnic_scsi.c ret = (fnic_reset(shost) == 0) ? SUCCESS : FAILED; shost 375 drivers/scsi/gdth.c int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd, shost 378 drivers/scsi/gdth.c struct scsi_device *sdev = scsi_get_host_dev(shost); shost 3433 drivers/scsi/gdth.c ha->sdev = scsi_get_host_dev(ha->shost); shost 4058 drivers/scsi/gdth.c gdth_execute(ha->shost, &gdtcmd, cmnd, 30, NULL); shost 4127 drivers/scsi/gdth.c ha->shost = shp; shost 4221 drivers/scsi/gdth.c struct Scsi_Host *shp = ha->shost; shost 807 drivers/scsi/gdth.h struct Scsi_Host *shost; shost 9 drivers/scsi/gdth_proc.h int gdth_execute(struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd, shost 358 drivers/scsi/hisi_sas/hisi_sas.h struct Scsi_Host *shost; shost 575 drivers/scsi/hisi_sas/hisi_sas.h extern int hisi_sas_scan_finished(struct Scsi_Host *shost, unsigned long time); shost 576 drivers/scsi/hisi_sas/hisi_sas.h extern void hisi_sas_scan_start(struct Scsi_Host *shost); shost 577 drivers/scsi/hisi_sas/hisi_sas.h extern int hisi_sas_host_reset(struct Scsi_Host *shost, int reset_type); shost 830 drivers/scsi/hisi_sas/hisi_sas_main.c void hisi_sas_scan_start(struct Scsi_Host *shost) shost 832 drivers/scsi/hisi_sas/hisi_sas_main.c struct hisi_hba *hisi_hba = shost_priv(shost); shost 838 drivers/scsi/hisi_sas/hisi_sas_main.c int hisi_sas_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 840 drivers/scsi/hisi_sas/hisi_sas_main.c struct hisi_hba *hisi_hba = shost_priv(shost); shost 936 drivers/scsi/hisi_sas/hisi_sas_main.c sas_phy->ha = (struct sas_ha_struct *)hisi_hba->shost->hostdata; shost 1529 drivers/scsi/hisi_sas/hisi_sas_main.c struct Scsi_Host *shost = hisi_hba->shost; shost 1534 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_block_requests(shost); shost 1546 drivers/scsi/hisi_sas/hisi_sas_main.c struct Scsi_Host *shost = hisi_hba->shost; shost 1559 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_unblock_requests(shost); shost 1570 drivers/scsi/hisi_sas/hisi_sas_main.c struct Scsi_Host *shost = hisi_hba->shost; shost 1590 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_unblock_requests(shost); shost 2236 drivers/scsi/hisi_sas/hisi_sas_main.c int hisi_sas_host_reset(struct Scsi_Host *shost, int reset_type) shost 2238 drivers/scsi/hisi_sas/hisi_sas_main.c struct hisi_hba *hisi_hba = shost_priv(shost); shost 2554 drivers/scsi/hisi_sas/hisi_sas_main.c struct Scsi_Host *shost; shost 2559 drivers/scsi/hisi_sas/hisi_sas_main.c shost = scsi_host_alloc(hw->sht, sizeof(*hisi_hba)); shost 2560 drivers/scsi/hisi_sas/hisi_sas_main.c if (!shost) { shost 2564 drivers/scsi/hisi_sas/hisi_sas_main.c hisi_hba = shost_priv(shost); shost 2570 drivers/scsi/hisi_sas/hisi_sas_main.c hisi_hba->shost = shost; shost 2571 drivers/scsi/hisi_sas/hisi_sas_main.c SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; shost 2603 drivers/scsi/hisi_sas/hisi_sas_main.c return shost; shost 2605 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_host_put(shost); shost 2613 drivers/scsi/hisi_sas/hisi_sas_main.c struct Scsi_Host *shost; shost 2621 drivers/scsi/hisi_sas/hisi_sas_main.c shost = hisi_sas_shost_alloc(pdev, hw); shost 2622 drivers/scsi/hisi_sas/hisi_sas_main.c if (!shost) shost 2625 drivers/scsi/hisi_sas/hisi_sas_main.c sha = SHOST_TO_SAS_HA(shost); shost 2626 drivers/scsi/hisi_sas/hisi_sas_main.c hisi_hba = shost_priv(shost); shost 2642 drivers/scsi/hisi_sas/hisi_sas_main.c shost->transportt = hisi_sas_stt; shost 2643 drivers/scsi/hisi_sas/hisi_sas_main.c shost->max_id = HISI_SAS_MAX_DEVICES; shost 2644 drivers/scsi/hisi_sas/hisi_sas_main.c shost->max_lun = ~0; shost 2645 drivers/scsi/hisi_sas/hisi_sas_main.c shost->max_channel = 1; shost 2646 drivers/scsi/hisi_sas/hisi_sas_main.c shost->max_cmd_len = 16; shost 2648 drivers/scsi/hisi_sas/hisi_sas_main.c shost->can_queue = HISI_SAS_MAX_COMMANDS; shost 2649 drivers/scsi/hisi_sas/hisi_sas_main.c shost->cmd_per_lun = HISI_SAS_MAX_COMMANDS; shost 2651 drivers/scsi/hisi_sas/hisi_sas_main.c shost->can_queue = HISI_SAS_UNRESERVED_IPTT; shost 2652 drivers/scsi/hisi_sas/hisi_sas_main.c shost->cmd_per_lun = HISI_SAS_UNRESERVED_IPTT; shost 2660 drivers/scsi/hisi_sas/hisi_sas_main.c sha->core.shost = hisi_hba->shost; shost 2667 drivers/scsi/hisi_sas/hisi_sas_main.c rc = scsi_add_host(shost, &pdev->dev); shost 2679 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_scan_host(shost); shost 2684 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_remove_host(shost); shost 2688 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_host_put(shost); shost 3863 drivers/scsi/hisi_sas/hisi_sas_main.c struct Scsi_Host *shost = sha->core.shost; shost 3869 drivers/scsi/hisi_sas/hisi_sas_main.c sas_remove_host(sha->core.shost); shost 3872 drivers/scsi/hisi_sas/hisi_sas_main.c scsi_host_put(shost); shost 3265 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c attached_sas_addr[6] = hisi_hba->shost->host_no; shost 1467 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost = hisi_hba->shost; shost 1484 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c attached_sas_addr[6] = shost->host_no; shost 2651 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost = class_to_shost(dev); shost 2652 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct hisi_hba *hisi_hba = shost_priv(shost); shost 2662 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost = class_to_shost(dev); shost 2663 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct hisi_hba *hisi_hba = shost_priv(shost); shost 2690 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost = class_to_shost(dev); shost 2691 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct hisi_hba *hisi_hba = shost_priv(shost); shost 2701 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost = class_to_shost(dev); shost 2702 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct hisi_hba *hisi_hba = shost_priv(shost); shost 3111 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost; shost 3115 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost = scsi_host_alloc(&sht_v3_hw, sizeof(*hisi_hba)); shost 3116 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c if (!shost) { shost 3120 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c hisi_hba = shost_priv(shost); shost 3127 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c hisi_hba->shost = shost; shost 3128 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; shost 3144 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c return shost; shost 3146 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_host_put(shost); shost 3154 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost; shost 3181 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost = hisi_sas_shost_alloc_pci(pdev); shost 3182 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c if (!shost) { shost 3187 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c sha = SHOST_TO_SAS_HA(shost); shost 3188 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c hisi_hba = shost_priv(shost); shost 3209 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c sha->core.shost = shost; shost 3212 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost->transportt = hisi_sas_stt; shost 3213 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost->max_id = HISI_SAS_MAX_DEVICES; shost 3214 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost->max_lun = ~0; shost 3215 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost->max_channel = 1; shost 3216 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost->max_cmd_len = 16; shost 3217 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost->can_queue = HISI_SAS_UNRESERVED_IPTT; shost 3218 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c shost->cmd_per_lun = HISI_SAS_UNRESERVED_IPTT; shost 3234 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_host_set_prot(hisi_hba->shost, prot_mask); shost 3236 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_host_set_guard(hisi_hba->shost, shost 3243 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c rc = scsi_add_host(shost, dev); shost 3255 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_scan_host(shost); shost 3260 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_remove_host(shost); shost 3263 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_host_put(shost); shost 3294 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost = sha->core.shost; shost 3302 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c sas_remove_host(sha->core.shost); shost 3309 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_host_put(shost); shost 3357 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost = hisi_hba->shost; shost 3369 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_block_requests(shost); shost 3378 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_unblock_requests(shost); shost 3401 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c struct Scsi_Host *shost = hisi_hba->shost; shost 3418 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_unblock_requests(shost); shost 3424 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c scsi_remove_host(shost); shost 73 drivers/scsi/hosts.c int scsi_host_set_state(struct Scsi_Host *shost, enum scsi_host_state state) shost 75 drivers/scsi/hosts.c enum scsi_host_state oldstate = shost->shost_state; shost 146 drivers/scsi/hosts.c shost->shost_state = state; shost 151 drivers/scsi/hosts.c shost_printk(KERN_ERR, shost, shost 163 drivers/scsi/hosts.c void scsi_remove_host(struct Scsi_Host *shost) shost 167 drivers/scsi/hosts.c mutex_lock(&shost->scan_mutex); shost 168 drivers/scsi/hosts.c spin_lock_irqsave(shost->host_lock, flags); shost 169 drivers/scsi/hosts.c if (scsi_host_set_state(shost, SHOST_CANCEL)) shost 170 drivers/scsi/hosts.c if (scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY)) { shost 171 drivers/scsi/hosts.c spin_unlock_irqrestore(shost->host_lock, flags); shost 172 drivers/scsi/hosts.c mutex_unlock(&shost->scan_mutex); shost 175 drivers/scsi/hosts.c spin_unlock_irqrestore(shost->host_lock, flags); shost 177 drivers/scsi/hosts.c scsi_autopm_get_host(shost); shost 178 drivers/scsi/hosts.c flush_workqueue(shost->tmf_work_q); shost 179 drivers/scsi/hosts.c scsi_forget_host(shost); shost 180 drivers/scsi/hosts.c mutex_unlock(&shost->scan_mutex); shost 181 drivers/scsi/hosts.c scsi_proc_host_rm(shost); shost 183 drivers/scsi/hosts.c spin_lock_irqsave(shost->host_lock, flags); shost 184 drivers/scsi/hosts.c if (scsi_host_set_state(shost, SHOST_DEL)) shost 185 drivers/scsi/hosts.c BUG_ON(scsi_host_set_state(shost, SHOST_DEL_RECOVERY)); shost 186 drivers/scsi/hosts.c spin_unlock_irqrestore(shost->host_lock, flags); shost 188 drivers/scsi/hosts.c transport_unregister_device(&shost->shost_gendev); shost 189 drivers/scsi/hosts.c device_unregister(&shost->shost_dev); shost 190 drivers/scsi/hosts.c device_del(&shost->shost_gendev); shost 207 drivers/scsi/hosts.c int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, shost 210 drivers/scsi/hosts.c struct scsi_host_template *sht = shost->hostt; shost 213 drivers/scsi/hosts.c shost_printk(KERN_INFO, shost, "%s\n", shost 214 drivers/scsi/hosts.c sht->info ? sht->info(shost) : sht->name); shost 216 drivers/scsi/hosts.c if (!shost->can_queue) { shost 217 drivers/scsi/hosts.c shost_printk(KERN_ERR, shost, shost 222 drivers/scsi/hosts.c error = scsi_init_sense_cache(shost); shost 226 drivers/scsi/hosts.c error = scsi_mq_setup_tags(shost); shost 230 drivers/scsi/hosts.c if (!shost->shost_gendev.parent) shost 231 drivers/scsi/hosts.c shost->shost_gendev.parent = dev ? dev : &platform_bus; shost 233 drivers/scsi/hosts.c dma_dev = shost->shost_gendev.parent; shost 235 drivers/scsi/hosts.c shost->dma_dev = dma_dev; shost 242 drivers/scsi/hosts.c pm_runtime_get_noresume(&shost->shost_gendev); shost 243 drivers/scsi/hosts.c pm_runtime_set_active(&shost->shost_gendev); shost 244 drivers/scsi/hosts.c pm_runtime_enable(&shost->shost_gendev); shost 245 drivers/scsi/hosts.c device_enable_async_suspend(&shost->shost_gendev); shost 247 drivers/scsi/hosts.c error = device_add(&shost->shost_gendev); shost 251 drivers/scsi/hosts.c scsi_host_set_state(shost, SHOST_RUNNING); shost 252 drivers/scsi/hosts.c get_device(shost->shost_gendev.parent); shost 254 drivers/scsi/hosts.c device_enable_async_suspend(&shost->shost_dev); shost 256 drivers/scsi/hosts.c error = device_add(&shost->shost_dev); shost 260 drivers/scsi/hosts.c get_device(&shost->shost_gendev); shost 262 drivers/scsi/hosts.c if (shost->transportt->host_size) { shost 263 drivers/scsi/hosts.c shost->shost_data = kzalloc(shost->transportt->host_size, shost 265 drivers/scsi/hosts.c if (shost->shost_data == NULL) { shost 271 drivers/scsi/hosts.c if (shost->transportt->create_work_queue) { shost 272 drivers/scsi/hosts.c snprintf(shost->work_q_name, sizeof(shost->work_q_name), shost 273 drivers/scsi/hosts.c "scsi_wq_%d", shost->host_no); shost 274 drivers/scsi/hosts.c shost->work_q = create_singlethread_workqueue( shost 275 drivers/scsi/hosts.c shost->work_q_name); shost 276 drivers/scsi/hosts.c if (!shost->work_q) { shost 282 drivers/scsi/hosts.c error = scsi_sysfs_add_host(shost); shost 286 drivers/scsi/hosts.c scsi_proc_host_add(shost); shost 287 drivers/scsi/hosts.c scsi_autopm_put_host(shost); shost 291 drivers/scsi/hosts.c if (shost->work_q) shost 292 drivers/scsi/hosts.c destroy_workqueue(shost->work_q); shost 294 drivers/scsi/hosts.c kfree(shost->shost_data); shost 296 drivers/scsi/hosts.c device_del(&shost->shost_dev); shost 298 drivers/scsi/hosts.c device_del(&shost->shost_gendev); shost 300 drivers/scsi/hosts.c device_disable_async_suspend(&shost->shost_gendev); shost 301 drivers/scsi/hosts.c pm_runtime_disable(&shost->shost_gendev); shost 302 drivers/scsi/hosts.c pm_runtime_set_suspended(&shost->shost_gendev); shost 303 drivers/scsi/hosts.c pm_runtime_put_noidle(&shost->shost_gendev); shost 304 drivers/scsi/hosts.c scsi_mq_destroy_tags(shost); shost 312 drivers/scsi/hosts.c struct Scsi_Host *shost = dev_to_shost(dev); shost 315 drivers/scsi/hosts.c scsi_proc_hostdir_rm(shost->hostt); shost 320 drivers/scsi/hosts.c if (shost->tmf_work_q) shost 321 drivers/scsi/hosts.c destroy_workqueue(shost->tmf_work_q); shost 322 drivers/scsi/hosts.c if (shost->ehandler) shost 323 drivers/scsi/hosts.c kthread_stop(shost->ehandler); shost 324 drivers/scsi/hosts.c if (shost->work_q) shost 325 drivers/scsi/hosts.c destroy_workqueue(shost->work_q); shost 327 drivers/scsi/hosts.c if (shost->shost_state == SHOST_CREATED) { shost 335 drivers/scsi/hosts.c kfree(dev_name(&shost->shost_dev)); shost 338 drivers/scsi/hosts.c if (shost->tag_set.tags) shost 339 drivers/scsi/hosts.c scsi_mq_destroy_tags(shost); shost 341 drivers/scsi/hosts.c kfree(shost->shost_data); shost 343 drivers/scsi/hosts.c ida_simple_remove(&host_index_ida, shost->host_no); shost 347 drivers/scsi/hosts.c kfree(shost); shost 370 drivers/scsi/hosts.c struct Scsi_Host *shost; shost 377 drivers/scsi/hosts.c shost = kzalloc(sizeof(struct Scsi_Host) + privsize, gfp_mask); shost 378 drivers/scsi/hosts.c if (!shost) shost 381 drivers/scsi/hosts.c shost->host_lock = &shost->default_lock; shost 382 drivers/scsi/hosts.c spin_lock_init(shost->host_lock); shost 383 drivers/scsi/hosts.c shost->shost_state = SHOST_CREATED; shost 384 drivers/scsi/hosts.c INIT_LIST_HEAD(&shost->__devices); shost 385 drivers/scsi/hosts.c INIT_LIST_HEAD(&shost->__targets); shost 386 drivers/scsi/hosts.c INIT_LIST_HEAD(&shost->eh_cmd_q); shost 387 drivers/scsi/hosts.c INIT_LIST_HEAD(&shost->starved_list); shost 388 drivers/scsi/hosts.c init_waitqueue_head(&shost->host_wait); shost 389 drivers/scsi/hosts.c mutex_init(&shost->scan_mutex); shost 394 drivers/scsi/hosts.c shost->host_no = index; shost 396 drivers/scsi/hosts.c shost->dma_channel = 0xff; shost 399 drivers/scsi/hosts.c shost->max_channel = 0; shost 400 drivers/scsi/hosts.c shost->max_id = 8; shost 401 drivers/scsi/hosts.c shost->max_lun = 8; shost 404 drivers/scsi/hosts.c shost->transportt = &blank_transport_template; shost 412 drivers/scsi/hosts.c shost->max_cmd_len = 12; shost 413 drivers/scsi/hosts.c shost->hostt = sht; shost 414 drivers/scsi/hosts.c shost->this_id = sht->this_id; shost 415 drivers/scsi/hosts.c shost->can_queue = sht->can_queue; shost 416 drivers/scsi/hosts.c shost->sg_tablesize = sht->sg_tablesize; shost 417 drivers/scsi/hosts.c shost->sg_prot_tablesize = sht->sg_prot_tablesize; shost 418 drivers/scsi/hosts.c shost->cmd_per_lun = sht->cmd_per_lun; shost 419 drivers/scsi/hosts.c shost->unchecked_isa_dma = sht->unchecked_isa_dma; shost 420 drivers/scsi/hosts.c shost->no_write_same = sht->no_write_same; shost 423 drivers/scsi/hosts.c shost->eh_deadline = -1; shost 425 drivers/scsi/hosts.c shost_printk(KERN_WARNING, shost, shost 428 drivers/scsi/hosts.c shost->eh_deadline = INT_MAX; shost 430 drivers/scsi/hosts.c shost->eh_deadline = shost_eh_deadline * HZ; shost 434 drivers/scsi/hosts.c shost->active_mode = MODE_INITIATOR; shost 436 drivers/scsi/hosts.c shost->active_mode = sht->supported_mode; shost 439 drivers/scsi/hosts.c shost->max_host_blocked = sht->max_host_blocked; shost 441 drivers/scsi/hosts.c shost->max_host_blocked = SCSI_DEFAULT_HOST_BLOCKED; shost 448 drivers/scsi/hosts.c shost->max_sectors = sht->max_sectors; shost 450 drivers/scsi/hosts.c shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS; shost 453 drivers/scsi/hosts.c shost->max_segment_size = sht->max_segment_size; shost 455 drivers/scsi/hosts.c shost->max_segment_size = BLK_MAX_SEGMENT_SIZE; shost 461 drivers/scsi/hosts.c shost->dma_boundary = sht->dma_boundary; shost 463 drivers/scsi/hosts.c shost->dma_boundary = 0xffffffff; shost 466 drivers/scsi/hosts.c shost->virt_boundary_mask = sht->virt_boundary_mask; shost 468 drivers/scsi/hosts.c device_initialize(&shost->shost_gendev); shost 469 drivers/scsi/hosts.c dev_set_name(&shost->shost_gendev, "host%d", shost->host_no); shost 470 drivers/scsi/hosts.c shost->shost_gendev.bus = &scsi_bus_type; shost 471 drivers/scsi/hosts.c shost->shost_gendev.type = &scsi_host_type; shost 473 drivers/scsi/hosts.c device_initialize(&shost->shost_dev); shost 474 drivers/scsi/hosts.c shost->shost_dev.parent = &shost->shost_gendev; shost 475 drivers/scsi/hosts.c shost->shost_dev.class = &shost_class; shost 476 drivers/scsi/hosts.c dev_set_name(&shost->shost_dev, "host%d", shost->host_no); shost 477 drivers/scsi/hosts.c shost->shost_dev.groups = scsi_sysfs_shost_attr_groups; shost 479 drivers/scsi/hosts.c shost->ehandler = kthread_run(scsi_error_handler, shost, shost 480 drivers/scsi/hosts.c "scsi_eh_%d", shost->host_no); shost 481 drivers/scsi/hosts.c if (IS_ERR(shost->ehandler)) { shost 482 drivers/scsi/hosts.c shost_printk(KERN_WARNING, shost, shost 484 drivers/scsi/hosts.c PTR_ERR(shost->ehandler)); shost 488 drivers/scsi/hosts.c shost->tmf_work_q = alloc_workqueue("scsi_tmf_%d", shost 490 drivers/scsi/hosts.c 1, shost->host_no); shost 491 drivers/scsi/hosts.c if (!shost->tmf_work_q) { shost 492 drivers/scsi/hosts.c shost_printk(KERN_WARNING, shost, shost 496 drivers/scsi/hosts.c scsi_proc_hostdir_add(shost->hostt); shost 497 drivers/scsi/hosts.c return shost; shost 500 drivers/scsi/hosts.c kthread_stop(shost->ehandler); shost 502 drivers/scsi/hosts.c ida_simple_remove(&host_index_ida, shost->host_no); shost 504 drivers/scsi/hosts.c kfree(shost); shost 532 drivers/scsi/hosts.c struct Scsi_Host *shost = NULL; shost 537 drivers/scsi/hosts.c shost = scsi_host_get(class_to_shost(cdev)); shost 540 drivers/scsi/hosts.c return shost; shost 548 drivers/scsi/hosts.c struct Scsi_Host *scsi_host_get(struct Scsi_Host *shost) shost 550 drivers/scsi/hosts.c if ((shost->shost_state == SHOST_DEL) || shost 551 drivers/scsi/hosts.c !get_device(&shost->shost_gendev)) shost 553 drivers/scsi/hosts.c return shost; shost 561 drivers/scsi/hosts.c int scsi_host_busy(struct Scsi_Host *shost) shost 563 drivers/scsi/hosts.c return atomic_read(&shost->host_busy); shost 571 drivers/scsi/hosts.c void scsi_host_put(struct Scsi_Host *shost) shost 573 drivers/scsi/hosts.c put_device(&shost->shost_gendev); shost 604 drivers/scsi/hosts.c int scsi_queue_work(struct Scsi_Host *shost, struct work_struct *work) shost 606 drivers/scsi/hosts.c if (unlikely(!shost->work_q)) { shost 607 drivers/scsi/hosts.c shost_printk(KERN_ERR, shost, shost 609 drivers/scsi/hosts.c "when no workqueue created.\n", shost->hostt->name); shost 615 drivers/scsi/hosts.c return queue_work(shost->work_q, work); shost 623 drivers/scsi/hosts.c void scsi_flush_work(struct Scsi_Host *shost) shost 625 drivers/scsi/hosts.c if (!shost->work_q) { shost 626 drivers/scsi/hosts.c shost_printk(KERN_ERR, shost, shost 628 drivers/scsi/hosts.c "when no workqueue created.\n", shost->hostt->name); shost 633 drivers/scsi/hosts.c flush_workqueue(shost->work_q); shost 439 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 441 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 453 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 463 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 477 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 489 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 501 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 502 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 511 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 514 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 525 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 526 drivers/scsi/hpsa.c struct ctlr_info *h = shost_to_hba(shost); shost 536 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 538 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 548 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 550 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 632 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 634 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 885 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 887 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 895 drivers/scsi/hpsa.c struct Scsi_Host *shost = class_to_shost(dev); shost 897 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 9794 drivers/scsi/hpsa.c struct Scsi_Host *shost = phy_to_shost(rphy); shost 9798 drivers/scsi/hpsa.c if (!shost) shost 9801 drivers/scsi/hpsa.c h = shost_to_hba(shost); shost 904 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 905 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 925 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 929 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 931 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 942 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_get_host_speed(struct Scsi_Host *shost) shost 944 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 947 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 951 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_speed(shost) = FC_PORTSPEED_1GBIT; shost 954 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_speed(shost) = FC_PORTSPEED_2GBIT; shost 957 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_speed(shost) = FC_PORTSPEED_4GBIT; shost 960 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_speed(shost) = FC_PORTSPEED_8GBIT; shost 963 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_speed(shost) = FC_PORTSPEED_10GBIT; shost 966 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_speed(shost) = FC_PORTSPEED_16GBIT; shost 971 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 975 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 976 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 986 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_get_host_port_state(struct Scsi_Host *shost) shost 988 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 991 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 995 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; shost 998 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; shost 1002 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; shost 1005 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_port_state(shost) = FC_PORTSTATE_BLOCKED; shost 1008 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; shost 1012 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; shost 1015 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1116 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_issue_fc_host_lip(struct Scsi_Host *shost) shost 1118 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2537 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 2538 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2544 drivers/scsi/ibmvscsi/ibmvfc.c shost_for_each_device(sdev, shost) { shost 2554 drivers/scsi/ibmvscsi/ibmvfc.c ibmvfc_issue_fc_host_lip(shost); shost 2801 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 2804 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2807 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 2816 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2832 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = sdev->host; shost 2834 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2840 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 2842 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2858 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 2859 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2862 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 2864 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2880 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = sdev->host; shost 2883 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 2886 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2910 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 2911 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2920 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 2921 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2930 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 2931 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2940 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 2941 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2950 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 2951 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2958 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 2959 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2974 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 2975 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 2979 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 2981 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2997 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 2998 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 3001 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 3003 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3034 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost = class_to_shost(dev); shost 3035 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = shost_priv(shost); shost 3047 drivers/scsi/ibmvscsi/ibmvfc.c spin_lock_irqsave(shost->host_lock, flags); shost 3049 drivers/scsi/ibmvscsi/ibmvfc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 4747 drivers/scsi/ibmvscsi/ibmvfc.c struct Scsi_Host *shost; shost 4752 drivers/scsi/ibmvscsi/ibmvfc.c shost = scsi_host_alloc(&driver_template, sizeof(*vhost)); shost 4753 drivers/scsi/ibmvscsi/ibmvfc.c if (!shost) { shost 4758 drivers/scsi/ibmvscsi/ibmvfc.c shost->transportt = ibmvfc_transport_template; shost 4759 drivers/scsi/ibmvscsi/ibmvfc.c shost->can_queue = max_requests; shost 4760 drivers/scsi/ibmvscsi/ibmvfc.c shost->max_lun = max_lun; shost 4761 drivers/scsi/ibmvscsi/ibmvfc.c shost->max_id = max_targets; shost 4762 drivers/scsi/ibmvscsi/ibmvfc.c shost->max_sectors = IBMVFC_MAX_SECTORS; shost 4763 drivers/scsi/ibmvscsi/ibmvfc.c shost->max_cmd_len = IBMVFC_MAX_CDB_LEN; shost 4764 drivers/scsi/ibmvscsi/ibmvfc.c shost->unique_id = shost->host_no; shost 4766 drivers/scsi/ibmvscsi/ibmvfc.c vhost = shost_priv(shost); shost 4771 drivers/scsi/ibmvscsi/ibmvfc.c vhost->host = shost; shost 4786 drivers/scsi/ibmvscsi/ibmvfc.c shost->host_no); shost 4804 drivers/scsi/ibmvscsi/ibmvfc.c if ((rc = scsi_add_host(shost, dev))) shost 4807 drivers/scsi/ibmvscsi/ibmvfc.c fc_host_dev_loss_tmo(shost) = IBMVFC_DEV_LOSS_TMO; shost 4809 drivers/scsi/ibmvscsi/ibmvfc.c if ((rc = ibmvfc_create_trace_file(&shost->shost_dev.kobj, shost 4815 drivers/scsi/ibmvscsi/ibmvfc.c if (shost_to_fc_host(shost)->rqst_q) shost 4816 drivers/scsi/ibmvscsi/ibmvfc.c blk_queue_max_segments(shost_to_fc_host(shost)->rqst_q, 1); shost 4823 drivers/scsi/ibmvscsi/ibmvfc.c scsi_scan_host(shost); shost 4827 drivers/scsi/ibmvscsi/ibmvfc.c scsi_remove_host(shost); shost 4837 drivers/scsi/ibmvscsi/ibmvfc.c scsi_host_put(shost); shost 1853 drivers/scsi/ibmvscsi/ibmvscsi.c struct Scsi_Host *shost = sdev->host; shost 1856 drivers/scsi/ibmvscsi/ibmvscsi.c spin_lock_irqsave(shost->host_lock, lock_flags); shost 1861 drivers/scsi/ibmvscsi/ibmvscsi.c spin_unlock_irqrestore(shost->host_lock, lock_flags); shost 1887 drivers/scsi/ibmvscsi/ibmvscsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 1888 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); shost 1907 drivers/scsi/ibmvscsi/ibmvscsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 1908 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); shost 1927 drivers/scsi/ibmvscsi/ibmvscsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 1928 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); shost 1948 drivers/scsi/ibmvscsi/ibmvscsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 1949 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); shost 1969 drivers/scsi/ibmvscsi/ibmvscsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 1970 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); shost 1989 drivers/scsi/ibmvscsi/ibmvscsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 1990 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); shost 2009 drivers/scsi/ibmvscsi/ibmvscsi.c struct Scsi_Host *shost = class_to_shost(dev); shost 2010 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); shost 2040 drivers/scsi/ibmvscsi/ibmvscsi.c static int ibmvscsi_host_reset(struct Scsi_Host *shost, int reset_type) shost 2042 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = shost_priv(shost); shost 2811 drivers/scsi/initio.c struct Scsi_Host *shost; shost 2833 drivers/scsi/initio.c shost = scsi_host_alloc(&initio_template, sizeof(struct initio_host)); shost 2834 drivers/scsi/initio.c if (!shost) { shost 2839 drivers/scsi/initio.c host = (struct initio_host *)shost->hostdata; shost 2891 drivers/scsi/initio.c shost->io_port = host->addr; shost 2892 drivers/scsi/initio.c shost->n_io_port = 0xff; shost 2893 drivers/scsi/initio.c shost->can_queue = num_scb; /* 03/05/98 */ shost 2894 drivers/scsi/initio.c shost->unique_id = host->addr; shost 2895 drivers/scsi/initio.c shost->max_id = host->max_tar; shost 2896 drivers/scsi/initio.c shost->max_lun = 32; /* 10/21/97 */ shost 2897 drivers/scsi/initio.c shost->irq = pdev->irq; shost 2898 drivers/scsi/initio.c shost->this_id = host->scsi_id; /* Assign HCS index */ shost 2899 drivers/scsi/initio.c shost->base = host->addr; shost 2900 drivers/scsi/initio.c shost->sg_tablesize = TOTAL_SG_ENTRY; shost 2902 drivers/scsi/initio.c error = request_irq(pdev->irq, i91u_intr, IRQF_SHARED, "i91u", shost); shost 2908 drivers/scsi/initio.c pci_set_drvdata(pdev, shost); shost 2910 drivers/scsi/initio.c error = scsi_add_host(shost, &pdev->dev); shost 2913 drivers/scsi/initio.c scsi_scan_host(shost); shost 2916 drivers/scsi/initio.c free_irq(pdev->irq, shost); shost 2922 drivers/scsi/initio.c scsi_host_put(shost); shost 3461 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3462 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3495 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3496 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3529 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3530 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3552 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3553 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3587 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3588 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3643 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3644 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3672 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3673 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3723 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3724 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3760 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3761 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3765 drivers/scsi/ipr.c spin_lock_irqsave(shost->host_lock, lock_flags); shost 3767 drivers/scsi/ipr.c spin_unlock_irqrestore(shost->host_lock, lock_flags); shost 3784 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3785 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 3812 drivers/scsi/ipr.c spin_lock_irqsave(shost->host_lock, lock_flags); shost 3820 drivers/scsi/ipr.c spin_unlock_irqrestore(shost->host_lock, lock_flags); shost 4075 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4076 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 4150 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4151 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 4174 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(cdev); shost 4175 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 4198 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(cdev); shost 4199 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 4257 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(cdev); shost 4258 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 4446 drivers/scsi/ipr.c struct Scsi_Host *shost = class_to_shost(cdev); shost 4447 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 4774 drivers/scsi/ipr.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 4775 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; shost 4802 drivers/scsi/ipr.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 4803 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; shost 4819 drivers/scsi/ipr.c ap = ata_sas_port_alloc(&ioa_cfg->ata_host, &sata_port_info, shost); shost 4850 drivers/scsi/ipr.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 4851 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; shost 5577 drivers/scsi/ipr.c static int ipr_scan_finished(struct Scsi_Host *shost, unsigned long elapsed_time) shost 5580 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) shost->hostdata; shost 5583 drivers/scsi/ipr.c spin_lock_irqsave(shost->host_lock, lock_flags); shost 5588 drivers/scsi/ipr.c spin_unlock_irqrestore(shost->host_lock, lock_flags); shost 6546 drivers/scsi/ipr.c static int ipr_queuecommand(struct Scsi_Host *shost, shost 6558 drivers/scsi/ipr.c ioa_cfg = (struct ipr_ioa_cfg *)shost->hostdata; shost 654 drivers/scsi/isci/host.c int isci_host_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 656 drivers/scsi/isci/host.c struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); shost 1047 drivers/scsi/isci/host.c void isci_host_start(struct Scsi_Host *shost) shost 1049 drivers/scsi/isci/host.c struct isci_host *ihost = SHOST_TO_SAS_HA(shost)->lldd_ha; shost 309 drivers/scsi/isci/host.h return ihost->sas_ha.core.shost; shost 136 drivers/scsi/isci/init.c struct Scsi_Host *shost = container_of(dev, typeof(*shost), shost_dev); shost 137 drivers/scsi/isci/init.c struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); shost 268 drivers/scsi/isci/init.c struct Scsi_Host *shost; shost 273 drivers/scsi/isci/init.c shost = to_shost(isci_host); shost 276 drivers/scsi/isci/init.c sas_remove_host(shost); shost 277 drivers/scsi/isci/init.c scsi_host_put(shost); shost 497 drivers/scsi/isci/init.c struct Scsi_Host *shost; shost 555 drivers/scsi/isci/init.c shost = scsi_host_alloc(&isci_sht, sizeof(void *)); shost 556 drivers/scsi/isci/init.c if (!shost) shost 571 drivers/scsi/isci/init.c SHOST_TO_SAS_HA(shost) = &ihost->sas_ha; shost 572 drivers/scsi/isci/init.c ihost->sas_ha.core.shost = shost; shost 573 drivers/scsi/isci/init.c shost->transportt = isci_transport_template; shost 575 drivers/scsi/isci/init.c shost->max_id = ~0; shost 576 drivers/scsi/isci/init.c shost->max_lun = ~0; shost 577 drivers/scsi/isci/init.c shost->max_cmd_len = MAX_COMMAND_SIZE; shost 580 drivers/scsi/isci/init.c scsi_host_set_prot(shost, shost 584 drivers/scsi/isci/init.c scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC); shost 586 drivers/scsi/isci/init.c err = scsi_add_host(shost, &pdev->dev); shost 597 drivers/scsi/isci/init.c scsi_remove_host(shost); shost 599 drivers/scsi/isci/init.c scsi_host_put(shost); shost 743 drivers/scsi/isci/init.c isci_host_start(ihost->sas_ha.core.shost); shost 769 drivers/scsi/iscsi_tcp.c static int iscsi_sw_tcp_host_get_param(struct Scsi_Host *shost, shost 772 drivers/scsi/iscsi_tcp.c struct iscsi_sw_tcp_host *tcp_sw_host = iscsi_host_priv(shost); shost 809 drivers/scsi/iscsi_tcp.c return iscsi_host_get_param(shost, param, buf); shost 841 drivers/scsi/iscsi_tcp.c struct Scsi_Host *shost; shost 848 drivers/scsi/iscsi_tcp.c shost = iscsi_host_alloc(&iscsi_sw_tcp_sht, shost 850 drivers/scsi/iscsi_tcp.c if (!shost) shost 852 drivers/scsi/iscsi_tcp.c shost->transportt = iscsi_sw_tcp_scsi_transport; shost 853 drivers/scsi/iscsi_tcp.c shost->cmd_per_lun = qdepth; shost 854 drivers/scsi/iscsi_tcp.c shost->max_lun = iscsi_max_lun; shost 855 drivers/scsi/iscsi_tcp.c shost->max_id = 0; shost 856 drivers/scsi/iscsi_tcp.c shost->max_channel = 0; shost 857 drivers/scsi/iscsi_tcp.c shost->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE; shost 859 drivers/scsi/iscsi_tcp.c if (iscsi_host_add(shost, NULL)) shost 862 drivers/scsi/iscsi_tcp.c cls_session = iscsi_session_setup(&iscsi_sw_tcp_transport, shost, shost 870 drivers/scsi/iscsi_tcp.c tcp_sw_host = iscsi_host_priv(shost); shost 873 drivers/scsi/iscsi_tcp.c shost->can_queue = session->scsi_cmds_max; shost 881 drivers/scsi/iscsi_tcp.c iscsi_host_remove(shost); shost 883 drivers/scsi/iscsi_tcp.c iscsi_host_free(shost); shost 889 drivers/scsi/iscsi_tcp.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 898 drivers/scsi/iscsi_tcp.c iscsi_host_remove(shost); shost 899 drivers/scsi/iscsi_tcp.c iscsi_host_free(shost); shost 1858 drivers/scsi/libfc/fc_fcp.c int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) shost 1860 drivers/scsi/libfc/fc_fcp.c struct fc_lport *lport = shost_priv(shost); shost 2203 drivers/scsi/libfc/fc_fcp.c struct Scsi_Host *shost = sc_cmd->device->host; shost 2204 drivers/scsi/libfc/fc_fcp.c struct fc_lport *lport = shost_priv(shost); shost 2216 drivers/scsi/libfc/fc_fcp.c shost_printk(KERN_INFO, shost, "libfc: Host reset succeeded " shost 2220 drivers/scsi/libfc/fc_fcp.c shost_printk(KERN_INFO, shost, "libfc: Host reset failed, " shost 255 drivers/scsi/libfc/fc_lport.c void fc_get_host_port_state(struct Scsi_Host *shost) shost 257 drivers/scsi/libfc/fc_lport.c struct fc_lport *lport = shost_priv(shost); shost 261 drivers/scsi/libfc/fc_lport.c fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; shost 265 drivers/scsi/libfc/fc_lport.c fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; shost 268 drivers/scsi/libfc/fc_lport.c fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; shost 278 drivers/scsi/libfc/fc_lport.c void fc_get_host_speed(struct Scsi_Host *shost) shost 280 drivers/scsi/libfc/fc_lport.c struct fc_lport *lport = shost_priv(shost); shost 282 drivers/scsi/libfc/fc_lport.c fc_host_speed(shost) = lport->link_speed; shost 290 drivers/scsi/libfc/fc_lport.c struct fc_host_statistics *fc_get_host_stats(struct Scsi_Host *shost) shost 293 drivers/scsi/libfc/fc_lport.c struct fc_lport *lport = shost_priv(shost); shost 2058 drivers/scsi/libfc/fc_lport.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 2059 drivers/scsi/libfc/fc_lport.c struct fc_lport *lport = shost_priv(shost); shost 23 drivers/scsi/libfc/fc_npiv.c struct Scsi_Host *shost = vport_to_shost(vport); shost 24 drivers/scsi/libfc/fc_npiv.c struct fc_lport *n_port = shost_priv(shost); shost 27 drivers/scsi/libfc/fc_npiv.c vn_port = libfc_host_alloc(shost->hostt, privsize); shost 120 drivers/scsi/libfc/fc_npiv.c struct Scsi_Host *shost = vport_to_shost(vport); shost 121 drivers/scsi/libfc/fc_npiv.c struct fc_lport *n_port = shost_priv(shost); shost 88 drivers/scsi/libiscsi.c struct Scsi_Host *shost = conn->session->host; shost 89 drivers/scsi/libiscsi.c struct iscsi_host *ihost = shost_priv(shost); shost 1903 drivers/scsi/libiscsi.c struct Scsi_Host *shost = conn->session->host; shost 1904 drivers/scsi/libiscsi.c struct iscsi_host *ihost = shost_priv(shost); shost 2595 drivers/scsi/libiscsi.c int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev) shost 2597 drivers/scsi/libiscsi.c if (!shost->can_queue) shost 2598 drivers/scsi/libiscsi.c shost->can_queue = ISCSI_DEF_XMIT_CMDS_MAX; shost 2600 drivers/scsi/libiscsi.c if (!shost->cmd_per_lun) shost 2601 drivers/scsi/libiscsi.c shost->cmd_per_lun = ISCSI_DEF_CMD_PER_LUN; shost 2603 drivers/scsi/libiscsi.c return scsi_add_host(shost, pdev); shost 2619 drivers/scsi/libiscsi.c struct Scsi_Host *shost; shost 2622 drivers/scsi/libiscsi.c shost = scsi_host_alloc(sht, sizeof(struct iscsi_host) + dd_data_size); shost 2623 drivers/scsi/libiscsi.c if (!shost) shost 2625 drivers/scsi/libiscsi.c ihost = shost_priv(shost); shost 2629 drivers/scsi/libiscsi.c "iscsi_q_%d", shost->host_no); shost 2639 drivers/scsi/libiscsi.c return shost; shost 2642 drivers/scsi/libiscsi.c scsi_host_put(shost); shost 2659 drivers/scsi/libiscsi.c void iscsi_host_remove(struct Scsi_Host *shost) shost 2661 drivers/scsi/libiscsi.c struct iscsi_host *ihost = shost_priv(shost); shost 2668 drivers/scsi/libiscsi.c iscsi_host_for_each_session(shost, iscsi_notify_host_removed); shost 2674 drivers/scsi/libiscsi.c scsi_remove_host(shost); shost 2680 drivers/scsi/libiscsi.c void iscsi_host_free(struct Scsi_Host *shost) shost 2682 drivers/scsi/libiscsi.c struct iscsi_host *ihost = shost_priv(shost); shost 2687 drivers/scsi/libiscsi.c scsi_host_put(shost); shost 2691 drivers/scsi/libiscsi.c static void iscsi_host_dec_session_cnt(struct Scsi_Host *shost) shost 2693 drivers/scsi/libiscsi.c struct iscsi_host *ihost = shost_priv(shost); shost 2696 drivers/scsi/libiscsi.c shost = scsi_host_get(shost); shost 2697 drivers/scsi/libiscsi.c if (!shost) { shost 2709 drivers/scsi/libiscsi.c scsi_host_put(shost); shost 2730 drivers/scsi/libiscsi.c iscsi_session_setup(struct iscsi_transport *iscsit, struct Scsi_Host *shost, shost 2734 drivers/scsi/libiscsi.c struct iscsi_host *ihost = shost_priv(shost); shost 2780 drivers/scsi/libiscsi.c cls_session = iscsi_alloc_session(shost, iscsit, shost 2787 drivers/scsi/libiscsi.c session->host = shost; shost 2838 drivers/scsi/libiscsi.c iscsi_host_dec_session_cnt(shost); shost 2851 drivers/scsi/libiscsi.c struct Scsi_Host *shost = session->host; shost 2873 drivers/scsi/libiscsi.c iscsi_host_dec_session_cnt(shost); shost 3596 drivers/scsi/libiscsi.c int iscsi_host_get_param(struct Scsi_Host *shost, enum iscsi_host_param param, shost 3599 drivers/scsi/libiscsi.c struct iscsi_host *ihost = shost_priv(shost); shost 3620 drivers/scsi/libiscsi.c int iscsi_host_set_param(struct Scsi_Host *shost, enum iscsi_host_param param, shost 3623 drivers/scsi/libiscsi.c struct iscsi_host *ihost = shost_priv(shost); shost 171 drivers/scsi/libsas/sas_ata.c struct Scsi_Host *host = sas_ha->core.shost; shost 249 drivers/scsi/libsas/sas_ata.c return to_sas_internal(dev->port->ha->core.shost->transportt); shost 538 drivers/scsi/libsas/sas_ata.c struct Scsi_Host *shost = ha->core.shost; shost 551 drivers/scsi/libsas/sas_ata.c ap = ata_sas_port_alloc(ata_host, &sata_port_info, shost); shost 560 drivers/scsi/libsas/sas_ata.c ap->scsi_host = shost; shost 734 drivers/scsi/libsas/sas_ata.c ata_scsi_port_error_handler(ha->core.shost, ap); shost 738 drivers/scsi/libsas/sas_ata.c void sas_ata_strategy_handler(struct Scsi_Host *shost) shost 740 drivers/scsi/libsas/sas_ata.c struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); shost 781 drivers/scsi/libsas/sas_ata.c void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, shost 806 drivers/scsi/libsas/sas_ata.c ata_scsi_cmd_error_handler(shost, ap, &sata_q); shost 174 drivers/scsi/libsas/sas_discover.c struct Scsi_Host *shost = sas_ha->core.shost; shost 175 drivers/scsi/libsas/sas_discover.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 195 drivers/scsi/libsas/sas_discover.c struct Scsi_Host *shost = sas_ha->core.shost; shost 196 drivers/scsi/libsas/sas_discover.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 237 drivers/scsi/libsas/sas_discover.c struct Scsi_Host *shost = port->ha->core.shost; shost 238 drivers/scsi/libsas/sas_discover.c struct sas_internal *si = to_sas_internal(shost->transportt); shost 60 drivers/scsi/libsas/sas_expander.c to_sas_internal(dev->port->ha->core.shost->transportt); shost 2135 drivers/scsi/libsas/sas_expander.c void sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, shost 2144 drivers/scsi/libsas/sas_expander.c return sas_smp_host_handler(job, shost); shost 117 drivers/scsi/libsas/sas_host_smp.c struct sas_internal *i = to_sas_internal(sas_ha->core.shost->transportt); shost 185 drivers/scsi/libsas/sas_host_smp.c to_sas_internal(sas_ha->core.shost->transportt); shost 225 drivers/scsi/libsas/sas_host_smp.c void sas_smp_host_handler(struct bsg_job *job, struct Scsi_Host *shost) shost 227 drivers/scsi/libsas/sas_host_smp.c struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); shost 270 drivers/scsi/libsas/sas_host_smp.c memcpy(resp_data + 12, shost->hostt->name, shost 189 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 190 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); shost 193 drivers/scsi/libsas/sas_init.c to_sas_internal(sas_ha->core.shost->transportt); shost 238 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 239 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); shost 242 drivers/scsi/libsas/sas_init.c to_sas_internal(sas_ha->core.shost->transportt); shost 272 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 273 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); shost 276 drivers/scsi/libsas/sas_init.c to_sas_internal(sas_ha->core.shost->transportt); shost 308 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 309 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); shost 312 drivers/scsi/libsas/sas_init.c to_sas_internal(sas_ha->core.shost->transportt); shost 343 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 344 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); shost 347 drivers/scsi/libsas/sas_init.c to_sas_internal(sas_ha->core.shost->transportt); shost 420 drivers/scsi/libsas/sas_init.c scsi_unblock_requests(ha->core.shost); shost 430 drivers/scsi/libsas/sas_init.c scsi_block_requests(ha->core.shost); shost 482 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 483 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); shost 509 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 510 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); shost 547 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = class_to_shost(dev); shost 548 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 557 drivers/scsi/libsas/sas_init.c struct Scsi_Host *shost = class_to_shost(dev); shost 558 drivers/scsi/libsas/sas_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 600 drivers/scsi/libsas/sas_init.c to_sas_internal(sas_ha->core.shost->transportt); shost 41 drivers/scsi/libsas/sas_internal.h void sas_scsi_recover_host(struct Scsi_Host *shost); shost 74 drivers/scsi/libsas/sas_internal.h void sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, shost 97 drivers/scsi/libsas/sas_internal.h extern void sas_smp_host_handler(struct bsg_job *job, struct Scsi_Host *shost); shost 100 drivers/scsi/libsas/sas_internal.h struct Scsi_Host *shost) shost 102 drivers/scsi/libsas/sas_internal.h shost_printk(KERN_ERR, shost, shost 41 drivers/scsi/libsas/sas_phy.c to_sas_internal(sas_ha->core.shost->transportt); shost 69 drivers/scsi/libsas/sas_phy.c to_sas_internal(sas_ha->core.shost->transportt); shost 98 drivers/scsi/libsas/sas_phy.c to_sas_internal(sas_ha->core.shost->transportt); shost 134 drivers/scsi/libsas/sas_phy.c phy->phy = sas_phy_alloc(&sas_ha->core.shost->shost_gendev, i); shost 31 drivers/scsi/libsas/sas_port.c struct sas_internal *si = to_sas_internal(sas_ha->core.shost->transportt); shost 84 drivers/scsi/libsas/sas_port.c to_sas_internal(sas_ha->core.shost->transportt); shost 204 drivers/scsi/libsas/sas_port.c to_sas_internal(sas_ha->core.shost->transportt); shost 283 drivers/scsi/libsas/sas_scsi_host.c to_sas_internal(task->dev->port->ha->core.shost->transportt); shost 329 drivers/scsi/libsas/sas_scsi_host.c to_sas_internal(dev->port->ha->core.shost->transportt); shost 357 drivers/scsi/libsas/sas_scsi_host.c to_sas_internal(dev->port->ha->core.shost->transportt); shost 412 drivers/scsi/libsas/sas_scsi_host.c if (scsi_host_in_recovery(ha->core.shost)) { shost 442 drivers/scsi/libsas/sas_scsi_host.c scsi_schedule_eh(ha->core.shost); shost 540 drivers/scsi/libsas/sas_scsi_host.c struct Scsi_Host *shost = cmd->device->host; shost 542 drivers/scsi/libsas/sas_scsi_host.c if (!shost->hostt->eh_device_reset_handler) shost 545 drivers/scsi/libsas/sas_scsi_host.c res = shost->hostt->eh_device_reset_handler(cmd); shost 550 drivers/scsi/libsas/sas_scsi_host.c if (shost->hostt->eh_target_reset_handler) shost 551 drivers/scsi/libsas/sas_scsi_host.c return shost->hostt->eh_target_reset_handler(cmd); shost 556 drivers/scsi/libsas/sas_scsi_host.c static void sas_eh_handle_sas_errors(struct Scsi_Host *shost, struct list_head *work_q) shost 561 drivers/scsi/libsas/sas_scsi_host.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 563 drivers/scsi/libsas/sas_scsi_host.c struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); shost 689 drivers/scsi/libsas/sas_scsi_host.c static void sas_eh_handle_resets(struct Scsi_Host *shost) shost 691 drivers/scsi/libsas/sas_scsi_host.c struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); shost 692 drivers/scsi/libsas/sas_scsi_host.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 723 drivers/scsi/libsas/sas_scsi_host.c void sas_scsi_recover_host(struct Scsi_Host *shost) shost 725 drivers/scsi/libsas/sas_scsi_host.c struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); shost 733 drivers/scsi/libsas/sas_scsi_host.c spin_lock_irq(shost->host_lock); shost 734 drivers/scsi/libsas/sas_scsi_host.c list_splice_init(&shost->eh_cmd_q, &eh_work_q); shost 735 drivers/scsi/libsas/sas_scsi_host.c spin_unlock_irq(shost->host_lock); shost 738 drivers/scsi/libsas/sas_scsi_host.c __func__, scsi_host_busy(shost), shost->host_failed); shost 745 drivers/scsi/libsas/sas_scsi_host.c sas_eh_handle_sas_errors(shost, &eh_work_q); shost 756 drivers/scsi/libsas/sas_scsi_host.c sas_ata_eh(shost, &eh_work_q, &ha->eh_done_q); shost 758 drivers/scsi/libsas/sas_scsi_host.c scsi_eh_ready_devs(shost, &eh_work_q, &ha->eh_done_q); shost 761 drivers/scsi/libsas/sas_scsi_host.c sas_eh_handle_resets(shost); shost 764 drivers/scsi/libsas/sas_scsi_host.c sas_ata_strategy_handler(shost); shost 771 drivers/scsi/libsas/sas_scsi_host.c shost->host_eh_scheduled = 0; shost 780 drivers/scsi/libsas/sas_scsi_host.c __func__, scsi_host_busy(shost), shost 781 drivers/scsi/libsas/sas_scsi_host.c shost->host_failed, tries); shost 796 drivers/scsi/libsas/sas_scsi_host.c struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent); shost 797 drivers/scsi/libsas/sas_scsi_host.c struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); shost 927 drivers/scsi/libsas/sas_scsi_host.c int sas_request_addr(struct Scsi_Host *shost, u8 *addr) shost 932 drivers/scsi/libsas/sas_scsi_host.c res = request_firmware(&fw, "sas_addr", &shost->shost_gendev); shost 149 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 150 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 163 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 164 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = shost_priv(shost); shost 536 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 537 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = shost_priv(shost); shost 587 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 588 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 607 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 608 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 619 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 620 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 631 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 632 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 668 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 669 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 691 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 692 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 709 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 710 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 728 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 729 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 747 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 748 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 765 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 766 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 785 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 786 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 804 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 805 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 838 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 839 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 860 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 861 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 888 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 889 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1013 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1014 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1042 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1043 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 1066 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1067 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1101 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1102 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1123 drivers/scsi/lpfc/lpfc_attr.c lpfc_issue_lip(struct Scsi_Host *shost) shost 1125 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1313 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = NULL; shost 1333 drivers/scsi/lpfc/lpfc_attr.c shost = pci_get_drvdata(ptr); shost 1334 drivers/scsi/lpfc/lpfc_attr.c if (shost) { shost 1336 drivers/scsi/lpfc/lpfc_attr.c ((struct lpfc_vport *)shost->hostdata)->phba; shost 1438 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1439 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1633 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1634 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1712 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1713 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1746 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1747 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1946 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1947 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 1974 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 1975 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2002 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2003 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2030 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2031 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2058 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2059 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2086 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2087 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2113 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2114 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2139 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2140 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2164 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2165 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2243 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2244 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2262 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2263 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2281 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2282 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2308 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2309 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2371 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev);\ shost 2372 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ shost 2397 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev);\ shost 2398 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ shost 2503 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev);\ shost 2504 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ shost 2536 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev);\ shost 2537 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ shost 2561 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev);\ shost 2562 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ shost 2657 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev);\ shost 2658 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\ shost 2773 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2774 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2831 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2832 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2856 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2857 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 2891 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_name(shost) = phba->cfg_soft_wwpn; shost 2893 drivers/scsi/lpfc/lpfc_attr.c fc_host_node_name(shost) = phba->cfg_soft_wwnn; shost 2930 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2931 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 2950 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2951 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 2995 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 2996 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3019 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3020 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3063 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3064 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3086 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3087 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3126 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3127 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3150 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3151 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3197 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3198 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3221 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3222 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3258 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3259 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3392 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3393 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3440 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3441 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 3547 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3548 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; shost 3558 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3559 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; shost 3572 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3573 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_hba *phba = ((struct lpfc_vport *) shost->hostdata)->phba; shost 3609 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 3610 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 3666 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost; shost 3673 drivers/scsi/lpfc/lpfc_attr.c shost = lpfc_shost_from_vport(vport); shost 3674 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 3691 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 3880 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3889 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 3896 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 4071 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4072 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4147 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4148 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4185 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4186 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4270 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 4275 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 4288 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 4290 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 4295 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 4300 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 4302 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 4307 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 4315 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 4319 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 4339 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4340 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4422 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4423 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4435 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 4473 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 4513 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4514 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4692 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4693 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 4767 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4768 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4834 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4835 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 4911 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4912 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 4983 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 4984 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 5041 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 5042 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 5160 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 5161 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 5267 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 5268 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 5493 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5502 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 5510 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 5877 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 5878 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 6147 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 6148 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6207 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = class_to_shost(dev); shost 6208 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6316 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6319 drivers/scsi/lpfc/lpfc_attr.c error = sysfs_create_bin_file(&shost->shost_dev.kobj, shost 6326 drivers/scsi/lpfc/lpfc_attr.c error = sysfs_create_bin_file(&shost->shost_dev.kobj, shost 6331 drivers/scsi/lpfc/lpfc_attr.c error = sysfs_create_bin_file(&shost->shost_dev.kobj, shost 6338 drivers/scsi/lpfc/lpfc_attr.c sysfs_remove_bin_file(&shost->shost_dev.kobj, &sysfs_ctlreg_attr); shost 6340 drivers/scsi/lpfc/lpfc_attr.c sysfs_remove_bin_file(&shost->shost_dev.kobj, shost 6353 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6354 drivers/scsi/lpfc/lpfc_attr.c sysfs_remove_bin_file(&shost->shost_dev.kobj, shost 6359 drivers/scsi/lpfc/lpfc_attr.c sysfs_remove_bin_file(&shost->shost_dev.kobj, &sysfs_mbox_attr); shost 6360 drivers/scsi/lpfc/lpfc_attr.c sysfs_remove_bin_file(&shost->shost_dev.kobj, &sysfs_ctlreg_attr); shost 6372 drivers/scsi/lpfc/lpfc_attr.c lpfc_get_host_symbolic_name(struct Scsi_Host *shost) shost 6374 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 6376 drivers/scsi/lpfc/lpfc_attr.c lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost), shost 6377 drivers/scsi/lpfc/lpfc_attr.c sizeof fc_host_symbolic_name(shost)); shost 6385 drivers/scsi/lpfc/lpfc_attr.c lpfc_get_host_port_id(struct Scsi_Host *shost) shost 6387 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6390 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_id(shost) = vport->fc_myDID; shost 6398 drivers/scsi/lpfc/lpfc_attr.c lpfc_get_host_port_type(struct Scsi_Host *shost) shost 6400 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6403 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 6406 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_type(shost) = FC_PORTTYPE_NPIV; shost 6410 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_type(shost) = FC_PORTTYPE_NLPORT; shost 6412 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_type(shost) = FC_PORTTYPE_LPORT; shost 6415 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_type(shost) = FC_PORTTYPE_NPORT; shost 6417 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_type(shost) = FC_PORTTYPE_PTP; shost 6420 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_type(shost) = FC_PORTTYPE_UNKNOWN; shost 6422 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 6430 drivers/scsi/lpfc/lpfc_attr.c lpfc_get_host_port_state(struct Scsi_Host *shost) shost 6432 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6435 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 6438 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; shost 6443 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; shost 6450 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_state(shost) = shost 6453 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_state(shost) = shost 6457 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_state(shost) = FC_PORTSTATE_ERROR; shost 6460 drivers/scsi/lpfc/lpfc_attr.c fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; shost 6465 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 6473 drivers/scsi/lpfc/lpfc_attr.c lpfc_get_host_speed(struct Scsi_Host *shost) shost 6475 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6478 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 6483 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_1GBIT; shost 6486 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_2GBIT; shost 6489 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_4GBIT; shost 6492 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_8GBIT; shost 6495 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_10GBIT; shost 6498 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_16GBIT; shost 6501 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_32GBIT; shost 6504 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_64GBIT; shost 6507 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_128GBIT; shost 6510 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 6516 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_10GBIT; shost 6519 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_25GBIT; shost 6522 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_40GBIT; shost 6525 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_100GBIT; shost 6528 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 6532 drivers/scsi/lpfc/lpfc_attr.c fc_host_speed(shost) = FC_PORTSPEED_UNKNOWN; shost 6534 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 6542 drivers/scsi/lpfc/lpfc_attr.c lpfc_get_host_fabric_name (struct Scsi_Host *shost) shost 6544 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6548 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 6559 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 6561 drivers/scsi/lpfc/lpfc_attr.c fc_host_fabric_name(shost) = node_name; shost 6577 drivers/scsi/lpfc/lpfc_attr.c lpfc_get_stats(struct Scsi_Host *shost) shost 6579 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6698 drivers/scsi/lpfc/lpfc_attr.c lpfc_reset_stats(struct Scsi_Host *shost) shost 6700 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6788 drivers/scsi/lpfc/lpfc_attr.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 6789 drivers/scsi/lpfc/lpfc_attr.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 6792 drivers/scsi/lpfc/lpfc_attr.c spin_lock_irq(shost->host_lock); shost 6798 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 6802 drivers/scsi/lpfc/lpfc_attr.c spin_unlock_irq(shost->host_lock); shost 1705 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost; shost 1724 drivers/scsi/lpfc/lpfc_bsg.c shost = lpfc_shost_from_vport(vports[i]); shost 1725 drivers/scsi/lpfc/lpfc_bsg.c scsi_block_requests(shost); shost 1729 drivers/scsi/lpfc/lpfc_bsg.c shost = lpfc_shost_from_vport(phba->pport); shost 1730 drivers/scsi/lpfc/lpfc_bsg.c scsi_block_requests(shost); shost 1759 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost; shost 1766 drivers/scsi/lpfc/lpfc_bsg.c shost = lpfc_shost_from_vport(vports[i]); shost 1767 drivers/scsi/lpfc/lpfc_bsg.c scsi_unblock_requests(shost); shost 1771 drivers/scsi/lpfc/lpfc_bsg.c shost = lpfc_shost_from_vport(phba->pport); shost 1772 drivers/scsi/lpfc/lpfc_bsg.c scsi_unblock_requests(shost); shost 2280 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost; shost 2285 drivers/scsi/lpfc/lpfc_bsg.c shost = fc_bsg_to_shost(job); shost 2286 drivers/scsi/lpfc/lpfc_bsg.c if (!shost) shost 2288 drivers/scsi/lpfc/lpfc_bsg.c vport = shost_priv(shost); shost 2318 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost; shost 2325 drivers/scsi/lpfc/lpfc_bsg.c shost = fc_bsg_to_shost(job); shost 2326 drivers/scsi/lpfc/lpfc_bsg.c if (!shost) shost 2328 drivers/scsi/lpfc/lpfc_bsg.c vport = shost_priv(shost); shost 2397 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost; shost 2409 drivers/scsi/lpfc/lpfc_bsg.c shost = fc_bsg_to_shost(job); shost 2410 drivers/scsi/lpfc/lpfc_bsg.c if (!shost) { shost 2414 drivers/scsi/lpfc/lpfc_bsg.c vport = shost_priv(shost); shost 5343 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 5344 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_vport *vport = shost_priv(shost); shost 5414 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 5415 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_vport *vport = shost_priv(shost); shost 5469 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 5470 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_vport *vport = shost_priv(shost); shost 5552 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 5553 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_vport *vport = shost_priv(shost); shost 5613 drivers/scsi/lpfc/lpfc_bsg.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 5614 drivers/scsi/lpfc/lpfc_bsg.c struct lpfc_vport *vport = shost_priv(shost); shost 552 drivers/scsi/lpfc/lpfc_ct.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 581 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 586 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 602 drivers/scsi/lpfc/lpfc_ct.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 648 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 650 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 664 drivers/scsi/lpfc/lpfc_ct.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 709 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 712 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 730 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 845 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 847 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 866 drivers/scsi/lpfc/lpfc_ct.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 912 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 915 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 933 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 1038 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 1040 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 1058 drivers/scsi/lpfc/lpfc_ct.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1170 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 1172 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 1514 drivers/scsi/lpfc/lpfc_ct.c struct Scsi_Host *shost; shost 1517 drivers/scsi/lpfc/lpfc_ct.c shost = lpfc_shost_from_vport(vport); shost 1518 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 1526 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 2602 drivers/scsi/lpfc/lpfc_ct.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2610 drivers/scsi/lpfc/lpfc_ct.c "/sys/class/scsi_host/host%d", shost->host_no); shost 3285 drivers/scsi/lpfc/lpfc_ct.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3287 drivers/scsi/lpfc/lpfc_ct.c spin_lock_irq(shost->host_lock); shost 3289 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 3293 drivers/scsi/lpfc/lpfc_ct.c spin_unlock_irq(shost->host_lock); shost 811 drivers/scsi/lpfc/lpfc_debugfs.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 823 drivers/scsi/lpfc/lpfc_debugfs.c spin_lock_irq(shost->host_lock); shost 915 drivers/scsi/lpfc/lpfc_debugfs.c spin_unlock_irq(shost->host_lock); shost 947 drivers/scsi/lpfc/lpfc_debugfs.c spin_lock_irq(shost->host_lock); shost 1014 drivers/scsi/lpfc/lpfc_debugfs.c spin_unlock_irq(shost->host_lock); shost 86 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 114 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 116 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 547 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost; shost 573 drivers/scsi/lpfc/lpfc_els.c shost = lpfc_shost_from_vport(vport); shost 574 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 576 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 604 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 627 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 629 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 660 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 666 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 668 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 678 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 680 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 772 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 774 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 782 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 784 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 791 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 793 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 855 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 860 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 863 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 872 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 874 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 883 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 885 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 923 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 925 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 984 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1068 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 1070 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 1085 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 1087 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 1102 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 1105 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 1600 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1714 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 1745 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 1886 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1897 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 1899 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 1996 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2025 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2028 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2040 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2042 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2051 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2053 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2085 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2087 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2124 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost; shost 2164 drivers/scsi/lpfc/lpfc_els.c shost = lpfc_shost_from_vport(vport); shost 2165 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2167 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2236 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2246 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2252 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2339 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2480 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2489 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2492 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2494 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2549 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2584 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2586 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2648 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2667 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2670 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2679 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2681 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2690 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2692 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2743 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2775 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2777 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2780 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2782 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2807 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2817 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2819 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2906 drivers/scsi/lpfc/lpfc_els.c spin_lock_irqsave(shost->host_lock, flags); shost 2908 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2947 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2954 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2956 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2959 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2982 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2985 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2988 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2990 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 2995 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 2997 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 3361 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3366 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 3368 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 3378 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 3380 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 3389 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 3391 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 3456 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3459 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 3464 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 3469 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 3598 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3850 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 3852 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 3955 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 3957 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 4295 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = vport ? lpfc_shost_from_vport(vport) : NULL; shost 4443 drivers/scsi/lpfc/lpfc_els.c if (ndlp && NLP_CHK_NODE_ACT(ndlp) && shost) { shost 4444 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 4446 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 4497 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4516 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 4518 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 4622 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 4626 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 5189 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5200 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 5202 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 5210 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 5212 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 5218 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 5220 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 5247 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5266 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 5268 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 5277 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 5279 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6235 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6239 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 6242 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6247 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6253 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 6256 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6281 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6293 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 6296 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6301 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6405 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6426 drivers/scsi/lpfc/lpfc_els.c fc_host_post_vendor_event(shost, shost 6461 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6485 drivers/scsi/lpfc/lpfc_els.c fc_host_post_event(shost, fc_get_event_number(), shost 6550 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 6554 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6561 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6572 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 6584 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6611 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6631 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 6633 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6768 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6838 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 6840 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 6856 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 6866 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 8170 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 8194 drivers/scsi/lpfc/lpfc_els.c fc_host_post_vendor_event(shost, shost 8212 drivers/scsi/lpfc/lpfc_els.c fc_host_post_vendor_event(shost, shost 8238 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 8283 drivers/scsi/lpfc/lpfc_els.c fc_host_post_vendor_event(shost, shost 8290 drivers/scsi/lpfc/lpfc_els.c fc_host_post_vendor_event(shost, shost 8320 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost; shost 8393 drivers/scsi/lpfc/lpfc_els.c shost = lpfc_shost_from_vport(vport); shost 8394 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 8396 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 8399 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 8463 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 8465 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 8693 drivers/scsi/lpfc/lpfc_els.c fc_host_fpin_rcv(shost, elsiocb->iocb.unsli3.rcvsli3.acc_len, shost 8891 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 8898 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 8900 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 8908 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 8969 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 8974 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 8976 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 8993 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 8995 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9000 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9002 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9023 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9025 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9040 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9042 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9081 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 9111 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9113 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9161 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost; shost 9171 drivers/scsi/lpfc/lpfc_els.c shost = lpfc_shost_from_vport(phba->pport); shost 9173 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9175 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9228 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 9270 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9276 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9301 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9303 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9312 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9318 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9470 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 9492 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9495 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9519 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 9545 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9547 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 9550 drivers/scsi/lpfc/lpfc_els.c spin_lock_irq(shost->host_lock); shost 9552 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irq(shost->host_lock); shost 10010 drivers/scsi/lpfc/lpfc_els.c struct Scsi_Host *shost; shost 10014 drivers/scsi/lpfc/lpfc_els.c shost = lpfc_shost_from_vport(vport); shost 10027 drivers/scsi/lpfc/lpfc_els.c shost->host_no, ndlp->nlp_DID, shost 10034 drivers/scsi/lpfc/lpfc_els.c spin_lock_irqsave(shost->host_lock, flags); shost 10037 drivers/scsi/lpfc/lpfc_els.c spin_unlock_irqrestore(shost->host_lock, flags); shost 117 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 174 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(vport); shost 175 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, iflags); shost 177 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 212 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 221 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(vport); shost 223 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, iflags); shost 225 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 458 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 466 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(fast_evt_data->vport); shost 507 drivers/scsi/lpfc/lpfc_hbadisc.c fc_host_post_vendor_event(shost, shost 810 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 837 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 839 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 866 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 869 drivers/scsi/lpfc/lpfc_hbadisc.c fc_host_post_event(shost, fc_get_event_number(), shost 879 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 881 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 889 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 915 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 917 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 966 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 969 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 1004 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1020 drivers/scsi/lpfc/lpfc_hbadisc.c fc_host_post_event(shost, fc_get_event_number(), shost 1023 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 1028 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 1040 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(phba->pport); shost 1058 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 1060 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 1079 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1118 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 1120 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 2832 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2843 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 2845 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 2968 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3003 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 3008 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 3061 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3091 drivers/scsi/lpfc/lpfc_hbadisc.c fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); shost 3124 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 3165 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(vport); shost 3232 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, iflags); shost 3234 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 3388 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3416 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, iflags); shost 3421 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 3552 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3575 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 3577 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 3607 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3625 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 3628 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 3637 drivers/scsi/lpfc/lpfc_hbadisc.c scsi_host_put(shost); shost 3669 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 3680 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 3682 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 3695 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 3698 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 3705 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 3707 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 3734 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 3823 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(phba->pport); shost 3835 drivers/scsi/lpfc/lpfc_hbadisc.c new_fc_vport = fc_vport_create(shost, 0, &vport_id); shost 3875 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 3922 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(vport); shost 3923 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 3925 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 4117 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4161 drivers/scsi/lpfc/lpfc_hbadisc.c ndlp->rport = rport = fc_remote_port_add(shost, 0, &rport_ids); shost 4224 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4227 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, iflags); shost 4257 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 4264 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4359 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 4361 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 4392 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4415 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 4417 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 4429 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4432 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 4434 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 4441 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4446 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 4448 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 4631 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4653 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 4655 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 4674 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4683 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, iflags); shost 4685 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 5001 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 5011 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(vports[i]); shost 5012 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5016 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5018 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5021 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5093 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5167 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5169 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5353 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5357 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, iflags); shost 5359 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 5366 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5371 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, iflags); shost 5380 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 5390 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, iflags); shost 5401 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5415 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5417 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5428 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5430 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5466 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5468 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5490 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5492 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5596 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5659 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5661 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5679 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5681 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 5807 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 5817 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 5819 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 6141 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6144 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 6146 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 6158 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6162 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irqsave(shost->host_lock, flags); shost 6164 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 6447 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 6456 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(vports[i]); shost 6457 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 6465 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 6473 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 6484 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 6502 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 6510 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 6512 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 6552 drivers/scsi/lpfc/lpfc_hbadisc.c struct Scsi_Host *shost; shost 6574 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(vports[i]); shost 6575 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 6578 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 6589 drivers/scsi/lpfc/lpfc_hbadisc.c shost = lpfc_shost_from_vport(phba->pport); shost 6590 drivers/scsi/lpfc/lpfc_hbadisc.c spin_lock_irq(shost->host_lock); shost 6593 drivers/scsi/lpfc/lpfc_hbadisc.c spin_unlock_irq(shost->host_lock); shost 413 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 468 drivers/scsi/lpfc/lpfc_init.c fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); shost 469 drivers/scsi/lpfc/lpfc_init.c fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); shost 470 drivers/scsi/lpfc/lpfc_init.c fc_host_max_npiv_vports(shost) = phba->max_vpi; shost 1619 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 1623 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(phba->pport); shost 1624 drivers/scsi/lpfc/lpfc_init.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 1648 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 1723 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(phba->pport); shost 1724 drivers/scsi/lpfc/lpfc_init.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 1747 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vport); shost 1748 drivers/scsi/lpfc/lpfc_init.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 1829 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 1941 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(phba->pport); shost 1942 drivers/scsi/lpfc/lpfc_init.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 1999 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vport); shost 2000 drivers/scsi/lpfc/lpfc_init.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 3374 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 3375 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vports[i]); shost 3376 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 3387 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 3436 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 3452 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vports[i]); shost 3453 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 3457 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 3459 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vports[i]); shost 3473 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 3475 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 3516 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 3548 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vports[i]); shost 3549 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 3552 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 4244 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = NULL; shost 4275 drivers/scsi/lpfc/lpfc_init.c shost = scsi_host_alloc(&lpfc_vport_template, shost 4279 drivers/scsi/lpfc/lpfc_init.c shost = scsi_host_alloc(&lpfc_template, shost 4282 drivers/scsi/lpfc/lpfc_init.c shost = scsi_host_alloc(&lpfc_template_no_hr, shost 4286 drivers/scsi/lpfc/lpfc_init.c shost = scsi_host_alloc(&lpfc_template_nvme, shost 4289 drivers/scsi/lpfc/lpfc_init.c if (!shost) shost 4292 drivers/scsi/lpfc/lpfc_init.c vport = (struct lpfc_vport *) shost->hostdata; shost 4302 drivers/scsi/lpfc/lpfc_init.c shost->unique_id = instance; shost 4303 drivers/scsi/lpfc/lpfc_init.c shost->max_id = LPFC_MAX_TARGET; shost 4304 drivers/scsi/lpfc/lpfc_init.c shost->max_lun = vport->cfg_max_luns; shost 4305 drivers/scsi/lpfc/lpfc_init.c shost->this_id = -1; shost 4306 drivers/scsi/lpfc/lpfc_init.c shost->max_cmd_len = 16; shost 4313 drivers/scsi/lpfc/lpfc_init.c shost->nr_hw_queues = min_t(int, 2 * num_possible_nodes(), shost 4316 drivers/scsi/lpfc/lpfc_init.c shost->dma_boundary = shost 4320 drivers/scsi/lpfc/lpfc_init.c shost->sg_tablesize = LPFC_MAX_SG_TABLESIZE; shost 4322 drivers/scsi/lpfc/lpfc_init.c shost->sg_tablesize = phba->cfg_scsi_seg_cnt; shost 4327 drivers/scsi/lpfc/lpfc_init.c shost->nr_hw_queues = 1; shost 4334 drivers/scsi/lpfc/lpfc_init.c shost->can_queue = phba->cfg_hba_queue_depth - 10; shost 4336 drivers/scsi/lpfc/lpfc_init.c shost->transportt = lpfc_vport_transport_template; shost 4339 drivers/scsi/lpfc/lpfc_init.c shost->transportt = lpfc_transport_template; shost 4355 drivers/scsi/lpfc/lpfc_init.c lpfc_setup_bg(phba, shost); shost 4357 drivers/scsi/lpfc/lpfc_init.c error = scsi_add_host_with_dma(shost, dev, &phba->pcidev->dev); shost 4367 drivers/scsi/lpfc/lpfc_init.c scsi_host_put(shost); shost 4382 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 4386 drivers/scsi/lpfc/lpfc_init.c fc_remove_host(shost); shost 4387 drivers/scsi/lpfc/lpfc_init.c scsi_remove_host(shost); shost 4431 drivers/scsi/lpfc/lpfc_init.c int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 4433 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4437 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 4471 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 4475 drivers/scsi/lpfc/lpfc_init.c static void lpfc_host_supported_speeds_set(struct Scsi_Host *shost) shost 4477 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata; shost 4480 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) = 0; shost 4482 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_128GBIT; shost 4484 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_64GBIT; shost 4486 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_32GBIT; shost 4488 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_16GBIT; shost 4490 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_10GBIT; shost 4492 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_8GBIT; shost 4494 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_4GBIT; shost 4496 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_2GBIT; shost 4498 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_speeds(shost) |= FC_PORTSPEED_1GBIT; shost 4508 drivers/scsi/lpfc/lpfc_init.c void lpfc_host_attrib_init(struct Scsi_Host *shost) shost 4510 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4516 drivers/scsi/lpfc/lpfc_init.c fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); shost 4517 drivers/scsi/lpfc/lpfc_init.c fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); shost 4518 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_classes(shost) = FC_COS_CLASS3; shost 4520 drivers/scsi/lpfc/lpfc_init.c memset(fc_host_supported_fc4s(shost), 0, shost 4521 drivers/scsi/lpfc/lpfc_init.c sizeof(fc_host_supported_fc4s(shost))); shost 4522 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_fc4s(shost)[2] = 1; shost 4523 drivers/scsi/lpfc/lpfc_init.c fc_host_supported_fc4s(shost)[7] = 1; shost 4525 drivers/scsi/lpfc/lpfc_init.c lpfc_vport_symbolic_node_name(vport, fc_host_symbolic_name(shost), shost 4526 drivers/scsi/lpfc/lpfc_init.c sizeof fc_host_symbolic_name(shost)); shost 4528 drivers/scsi/lpfc/lpfc_init.c lpfc_host_supported_speeds_set(shost); shost 4530 drivers/scsi/lpfc/lpfc_init.c fc_host_maxframe_size(shost) = shost 4534 drivers/scsi/lpfc/lpfc_init.c fc_host_dev_loss_tmo(shost) = vport->cfg_devloss_tmo; shost 4537 drivers/scsi/lpfc/lpfc_init.c memset(fc_host_active_fc4s(shost), 0, shost 4538 drivers/scsi/lpfc/lpfc_init.c sizeof(fc_host_active_fc4s(shost))); shost 4539 drivers/scsi/lpfc/lpfc_init.c fc_host_active_fc4s(shost)[2] = 1; shost 4540 drivers/scsi/lpfc/lpfc_init.c fc_host_active_fc4s(shost)[7] = 1; shost 4542 drivers/scsi/lpfc/lpfc_init.c fc_host_max_npiv_vports(shost) = phba->max_vpi; shost 4543 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 4545 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 5287 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 5314 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(phba->pport); shost 5315 drivers/scsi/lpfc/lpfc_init.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 5330 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(phba->pport); shost 5331 drivers/scsi/lpfc/lpfc_init.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 5428 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vports[i]); shost 5429 drivers/scsi/lpfc/lpfc_init.c lpfc_host_supported_speeds_set(shost); shost 5468 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 5499 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vport); shost 5500 drivers/scsi/lpfc/lpfc_init.c if (!shost) shost 5504 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 5506 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 5546 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 5726 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vport); shost 5727 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 5729 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 7538 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 7551 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vport); shost 7572 drivers/scsi/lpfc/lpfc_init.c pci_set_drvdata(phba->pcidev, shost); shost 7619 drivers/scsi/lpfc/lpfc_init.c lpfc_setup_bg(struct lpfc_hba *phba, struct Scsi_Host *shost) shost 7652 drivers/scsi/lpfc/lpfc_init.c scsi_host_set_prot(shost, phba->cfg_prot_mask); shost 7653 drivers/scsi/lpfc/lpfc_init.c scsi_host_set_guard(shost, phba->cfg_prot_guard); shost 7672 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost; shost 7682 drivers/scsi/lpfc/lpfc_init.c shost = pci_get_drvdata(phba->pcidev); shost 7683 drivers/scsi/lpfc/lpfc_init.c shost->can_queue = phba->cfg_hba_queue_depth - 10; shost 7685 drivers/scsi/lpfc/lpfc_init.c lpfc_host_attrib_init(shost); shost 7688 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 7690 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 7698 drivers/scsi/lpfc/lpfc_init.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 11376 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 11378 drivers/scsi/lpfc/lpfc_init.c spin_lock_irq(shost->host_lock); shost 11380 drivers/scsi/lpfc/lpfc_init.c spin_unlock_irq(shost->host_lock); shost 11874 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = NULL; shost 11946 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */ shost 12013 drivers/scsi/lpfc/lpfc_init.c if (shost) shost 12014 drivers/scsi/lpfc/lpfc_init.c scsi_host_put(shost); shost 12032 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12033 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 12055 drivers/scsi/lpfc/lpfc_init.c fc_remove_host(shost); shost 12056 drivers/scsi/lpfc/lpfc_init.c scsi_remove_host(shost); shost 12090 drivers/scsi/lpfc/lpfc_init.c scsi_host_put(shost); shost 12142 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12143 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 12185 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12186 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 12331 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12332 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 12377 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12378 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 12438 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12439 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 12675 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = NULL; shost 12757 drivers/scsi/lpfc/lpfc_init.c shost = lpfc_shost_from_vport(vport); /* save shost for error cleanup */ shost 12831 drivers/scsi/lpfc/lpfc_init.c if (shost) shost 12832 drivers/scsi/lpfc/lpfc_init.c scsi_host_put(shost); shost 12850 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12851 drivers/scsi/lpfc/lpfc_init.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 12875 drivers/scsi/lpfc/lpfc_init.c fc_remove_host(shost); shost 12876 drivers/scsi/lpfc/lpfc_init.c scsi_remove_host(shost); shost 12915 drivers/scsi/lpfc/lpfc_init.c scsi_host_put(shost); shost 12948 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12949 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 12992 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 12993 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13137 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13138 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13183 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13184 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13239 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13240 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13307 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13308 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13343 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13344 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13379 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13380 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13417 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13418 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13454 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13455 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 13487 drivers/scsi/lpfc/lpfc_init.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 13488 drivers/scsi/lpfc/lpfc_init.c struct lpfc_hba *phba = ((struct lpfc_vport *)shost->hostdata)->phba; shost 286 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 475 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 477 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 503 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 505 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 560 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 636 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 638 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 649 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 658 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 660 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 669 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 671 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 699 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 701 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 705 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 707 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 717 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 719 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 727 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 729 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 845 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 848 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 850 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 859 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 861 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 866 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 868 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1000 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1003 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1005 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1037 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1066 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1068 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1072 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1074 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1118 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1133 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1135 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1150 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1344 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1346 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1380 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1383 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1385 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1402 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1416 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1418 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1427 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1438 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1440 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1511 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1529 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1531 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1567 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1570 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1572 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1589 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1603 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1605 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1747 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1774 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1776 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1859 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1862 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1864 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1878 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 1888 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 1898 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 1969 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2089 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2091 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2143 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2146 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2148 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2182 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2196 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2198 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2235 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2238 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2240 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2277 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2281 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2283 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2377 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2381 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2384 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2455 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2459 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2462 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2471 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2479 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2481 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2497 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2508 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2511 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2565 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2568 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2570 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2577 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2580 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2583 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2585 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2596 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2603 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2605 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2633 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2637 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2639 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2692 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2695 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2697 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 2708 drivers/scsi/lpfc/lpfc_nportdisc.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 2717 drivers/scsi/lpfc/lpfc_nportdisc.c spin_lock_irq(shost->host_lock); shost 2720 drivers/scsi/lpfc/lpfc_nportdisc.c spin_unlock_irq(shost->host_lock); shost 150 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmd->device->host; shost 151 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 164 drivers/scsi/lpfc/lpfc_scsi.c spin_lock_irqsave(shost->host_lock, flags); shost 168 drivers/scsi/lpfc/lpfc_scsi.c spin_unlock_irqrestore(shost->host_lock, flags); shost 188 drivers/scsi/lpfc/lpfc_scsi.c spin_unlock_irqrestore(shost->host_lock, flags); shost 246 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost; shost 266 drivers/scsi/lpfc/lpfc_scsi.c shost = lpfc_shost_from_vport(vports[i]); shost 267 drivers/scsi/lpfc/lpfc_scsi.c shost_for_each_device(sdev, shost) { shost 296 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost; shost 304 drivers/scsi/lpfc/lpfc_scsi.c shost = lpfc_shost_from_vport(vports[i]); shost 305 drivers/scsi/lpfc/lpfc_scsi.c shost_for_each_device(sdev, shost) { shost 3805 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost; shost 3835 drivers/scsi/lpfc/lpfc_scsi.c shost = cmd->device->host; shost 4014 drivers/scsi/lpfc/lpfc_scsi.c spin_lock_irqsave(shost->host_lock, flags); shost 4027 drivers/scsi/lpfc/lpfc_scsi.c spin_unlock_irqrestore(shost->host_lock, flags); shost 4497 drivers/scsi/lpfc/lpfc_scsi.c lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) shost 4499 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 4716 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; shost 4717 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 5214 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; shost 5215 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 5248 drivers/scsi/lpfc/lpfc_scsi.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 5285 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; shost 5286 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 5311 drivers/scsi/lpfc/lpfc_scsi.c spin_lock_irq(shost->host_lock); shost 5314 drivers/scsi/lpfc/lpfc_scsi.c spin_unlock_irq(shost->host_lock); shost 5327 drivers/scsi/lpfc/lpfc_scsi.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 5363 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; shost 5364 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 5376 drivers/scsi/lpfc/lpfc_scsi.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 5391 drivers/scsi/lpfc/lpfc_scsi.c spin_lock_irq(shost->host_lock); shost 5406 drivers/scsi/lpfc/lpfc_scsi.c spin_unlock_irq(shost->host_lock); shost 5455 drivers/scsi/lpfc/lpfc_scsi.c struct Scsi_Host *shost = cmnd->device->host; shost 5456 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata; shost 5985 drivers/scsi/lpfc/lpfc_scsi.c lpfc_no_command(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) shost 2464 drivers/scsi/lpfc/lpfc_sli.c struct Scsi_Host *shost; shost 2497 drivers/scsi/lpfc/lpfc_sli.c shost = lpfc_shost_from_vport(vport); shost 2498 drivers/scsi/lpfc/lpfc_sli.c spin_lock_irq(shost->host_lock); shost 2501 drivers/scsi/lpfc/lpfc_sli.c spin_unlock_irq(shost->host_lock); shost 7167 drivers/scsi/lpfc/lpfc_sli.c struct Scsi_Host *shost = lpfc_shost_from_vport(phba->pport); shost 7469 drivers/scsi/lpfc/lpfc_sli.c fc_host_node_name(shost) = wwn_to_u64(vport->fc_nodename.u.wwn); shost 7470 drivers/scsi/lpfc/lpfc_sli.c fc_host_port_name(shost) = wwn_to_u64(vport->fc_portname.u.wwn); shost 10250 drivers/scsi/lpfc/lpfc_sli.c struct Scsi_Host *shost; shost 10276 drivers/scsi/lpfc/lpfc_sli.c shost = lpfc_shost_from_vport(phba->pport); shost 10277 drivers/scsi/lpfc/lpfc_sli.c fc_host_post_vendor_event(shost, fc_get_event_number(), shost 19489 drivers/scsi/lpfc/lpfc_sli.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 19543 drivers/scsi/lpfc/lpfc_sli.c spin_lock(shost->host_lock); shost 19545 drivers/scsi/lpfc/lpfc_sli.c spin_unlock(shost->host_lock); shost 19567 drivers/scsi/lpfc/lpfc_sli.c spin_lock(shost->host_lock); shost 19569 drivers/scsi/lpfc/lpfc_sli.c spin_unlock(shost->host_lock); shost 19578 drivers/scsi/lpfc/lpfc_sli.c spin_lock(shost->host_lock); shost 19580 drivers/scsi/lpfc/lpfc_sli.c spin_unlock(shost->host_lock); shost 298 drivers/scsi/lpfc/lpfc_vport.c struct Scsi_Host *shost = fc_vport->shost; shost 299 drivers/scsi/lpfc/lpfc_vport.c struct lpfc_vport *pport = (struct lpfc_vport *) shost->hostdata; shost 495 drivers/scsi/lpfc/lpfc_vport.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 531 drivers/scsi/lpfc/lpfc_vport.c spin_lock_irq(shost->host_lock); shost 533 drivers/scsi/lpfc/lpfc_vport.c spin_unlock_irq(shost->host_lock); shost 548 drivers/scsi/lpfc/lpfc_vport.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 556 drivers/scsi/lpfc/lpfc_vport.c spin_lock_irq(shost->host_lock); shost 559 drivers/scsi/lpfc/lpfc_vport.c spin_unlock_irq(shost->host_lock); shost 565 drivers/scsi/lpfc/lpfc_vport.c spin_unlock_irq(shost->host_lock); shost 606 drivers/scsi/lpfc/lpfc_vport.c struct Scsi_Host *shost = lpfc_shost_from_vport(vport); shost 660 drivers/scsi/lpfc/lpfc_vport.c if (!scsi_host_get(shost)) shost 662 drivers/scsi/lpfc/lpfc_vport.c if (!scsi_host_get(shost)) { shost 663 drivers/scsi/lpfc/lpfc_vport.c scsi_host_put(shost); shost 683 drivers/scsi/lpfc/lpfc_vport.c fc_remove_host(shost); shost 684 drivers/scsi/lpfc/lpfc_vport.c scsi_remove_host(shost); shost 811 drivers/scsi/lpfc/lpfc_vport.c scsi_host_put(shost); shost 813 drivers/scsi/lpfc/lpfc_vport.c scsi_host_put(shost); shost 822 drivers/scsi/lpfc/lpfc_vport.c scsi_host_put(shost); shost 55 drivers/scsi/lpfc/lpfc_vport.h struct Scsi_Host *shost; shost 3986 drivers/scsi/megaraid/megaraid_mbox.c struct Scsi_Host *shost = class_to_shost(dev); shost 3987 drivers/scsi/megaraid/megaraid_mbox.c adapter_t *adapter = (adapter_t *)SCSIHOST2ADAP(shost); shost 2691 drivers/scsi/megaraid/megaraid_sas.h int megasas_reset_fusion(struct Scsi_Host *shost, int reason); shost 1758 drivers/scsi/megaraid/megaraid_sas_base.c megasas_queue_command(struct Scsi_Host *shost, struct scsi_cmnd *scmd) shost 3166 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3168 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; shost 3185 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3187 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; shost 3230 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3232 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; shost 3242 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3244 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; shost 3277 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3279 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *) shost->hostdata; shost 3295 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3296 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; shost 3305 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3306 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; shost 3315 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3316 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; shost 3325 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3326 drivers/scsi/megaraid/megaraid_sas_base.c struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata; shost 3343 drivers/scsi/megaraid/megaraid_sas_base.c shost_for_each_device(sdev, shost) { shost 3357 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3359 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *)shost->hostdata; shost 3368 drivers/scsi/megaraid/megaraid_sas_base.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3370 drivers/scsi/megaraid/megaraid_sas_base.c (struct megasas_instance *)shost->hostdata; shost 4789 drivers/scsi/megaraid/megaraid_sas_fusion.c int megasas_reset_fusion(struct Scsi_Host *shost, int reason) shost 4804 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)shost->hostdata; shost 4848 drivers/scsi/megaraid/megaraid_sas_fusion.c retval = megasas_reset_fusion(shost, 0); shost 4988 drivers/scsi/megaraid/megaraid_sas_fusion.c shost_for_each_device(sdev, shost) { shost 3588 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->pending_io_count = scsi_host_busy(ioc->shost); shost 4865 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->sg_tablesize = MPT_MIN_PHYS_SEGMENTS; shost 4875 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->sg_tablesize = sg_tablesize; shost 4946 drivers/scsi/mpt3sas/mpt3sas_base.c chains_needed_per_io = ((ioc->shost->sg_tablesize - shost 4951 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->sg_tablesize = min_t(u16, shost 4953 drivers/scsi/mpt3sas/mpt3sas_base.c * chains_needed_per_io), ioc->shost->sg_tablesize); shost 4987 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->sg_tablesize, shost 5047 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->can_queue = ioc->scsiio_depth - INTERNAL_SCSIIO_CMDS_COUNT; shost 5050 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->can_queue)); shost 5171 drivers/scsi/mpt3sas/mpt3sas_base.c (ioc->shost->sg_tablesize * NVME_PRP_SIZE) - 1; shost 5386 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->can_queue, facts->RequestCredit); shost 5388 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->sg_tablesize); shost 6106 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->shost->max_id = -1; shost 6976 drivers/scsi/mpt3sas/mpt3sas_base.c pci_set_drvdata(ioc->pdev, ioc->shost); shost 7335 drivers/scsi/mpt3sas/mpt3sas_base.c ioc->pending_io_count = scsi_host_busy(ioc->shost); shost 1174 drivers/scsi/mpt3sas/mpt3sas_base.h struct Scsi_Host *shost; shost 2518 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2519 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2541 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2542 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2566 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2567 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2586 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2587 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2605 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2606 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2625 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2626 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2645 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2646 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2664 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2665 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2683 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2684 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2705 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2706 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2727 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2728 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2748 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2749 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2770 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2771 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2790 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2791 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2799 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2800 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2826 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2827 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2835 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2836 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2863 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2864 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2885 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2886 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2912 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2913 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2995 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 2996 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3042 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3043 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3074 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3075 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3103 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3104 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3121 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3122 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3185 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3186 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3211 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3212 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3241 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3242 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3267 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3268 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3297 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3298 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3322 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3323 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3351 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3352 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3376 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3377 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3409 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3410 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3428 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3429 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3448 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 3449 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 3463 drivers/scsi/mpt3sas/mpt3sas_ctl.c shost_for_each_device(sdev, ioc->shost) { shost 3505 drivers/scsi/mpt3sas/mpt3sas_ctl.c shost_for_each_device(sdev, ioc->shost) shost 3507 drivers/scsi/mpt3sas/mpt3sas_ctl.c shost->can_queue); shost 1163 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scsi_add_device(ioc->shost, PCIE_CHANNEL, pcie_device->id, 0)) { shost 1495 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd = scsi_host_find_tag(ioc->shost, unique_tag); shost 1515 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = sdev->host; shost 1517 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 1523 drivers/scsi/mpt3sas/mpt3sas_scsih.c max_depth = shost->can_queue; shost 1570 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = sdev->host; shost 1571 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 1574 drivers/scsi/mpt3sas/mpt3sas_scsih.c qdepth = shost->can_queue; shost 1589 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 1590 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 1678 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 1679 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 1756 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost; shost 1782 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost = dev_to_shost(&starget->dev); shost 1783 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc = shost_priv(shost); shost 1836 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost; shost 1849 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost = dev_to_shost(&starget->dev); shost 1850 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc = shost_priv(shost); shost 2227 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = sdev->host; shost 2228 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 2329 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (shost->max_sectors > MPT3SAS_RAID_MAX_SECTORS) { shost 2606 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost_for_each_device(sdev, ioc->shost) { shost 2634 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost_for_each_device(sdev, ioc->shost) { shost 3360 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost_for_each_device(sdev, ioc->shost) { shost 3388 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost_for_each_device(sdev, ioc->shost) { shost 3413 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost_for_each_device(sdev, ioc->shost) { shost 3445 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost_for_each_device(sdev, ioc->shost) { shost 4640 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *scmd) shost 4642 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 5587 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc->sas_hba.parent_dev = &ioc->shost->shost_gendev; shost 7766 drivers/scsi/mpt3sas/mpt3sas_scsih.c rc = scsi_add_device(ioc->shost, RAID_CHANNEL, shost 8181 drivers/scsi/mpt3sas/mpt3sas_scsih.c rc = scsi_add_device(ioc->shost, RAID_CHANNEL, shost 8365 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost_for_each_device(sdev, ioc->shost) { shost 9348 drivers/scsi/mpt3sas/mpt3sas_scsih.c while (scsi_host_in_recovery(ioc->shost) || shost 9738 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 9739 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 9770 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_remove_host(shost); shost 9816 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_host_put(shost); shost 9826 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 9827 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 9902 drivers/scsi/mpt3sas/mpt3sas_scsih.c rc = scsi_add_device(ioc->shost, RAID_CHANNEL, shost 9912 drivers/scsi/mpt3sas/mpt3sas_scsih.c rc = scsi_add_device(ioc->shost, PCIE_CHANNEL, tid, 0); shost 9956 drivers/scsi/mpt3sas/mpt3sas_scsih.c rc = scsi_add_device(ioc->shost, RAID_CHANNEL, shost 10120 drivers/scsi/mpt3sas/mpt3sas_scsih.c rc = scsi_add_device(ioc->shost, PCIE_CHANNEL, shost 10190 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_scan_start(struct Scsi_Host *shost) shost 10192 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 10217 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 10219 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 10414 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = NULL; shost 10441 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost = scsi_host_alloc(&mpt2sas_driver_template, shost 10443 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (!shost) shost 10445 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc = shost_priv(shost); shost 10467 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost = scsi_host_alloc(&mpt3sas_driver_template, shost 10469 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (!shost) shost 10471 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc = shost_priv(shost); shost 10519 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc->shost = shost; shost 10572 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->max_cmd_len = 32; shost 10573 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->max_lun = max_lun; shost 10574 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->transportt = mpt3sas_transport_template; shost 10575 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->unique_id = ioc->id; shost 10579 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->max_sectors = 128; shost 10581 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->max_sectors); shost 10585 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->max_sectors = 64; shost 10589 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->max_sectors = 32767; shost 10593 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->max_sectors = max_sectors & 0xFFFE; shost 10595 drivers/scsi/mpt3sas/mpt3sas_scsih.c shost->max_sectors); shost 10601 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_host_set_prot(shost, prot_mask); shost 10603 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_host_set_prot(shost, SHOST_DIF_TYPE1_PROTECTION shost 10607 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC); shost 10643 drivers/scsi/mpt3sas/mpt3sas_scsih.c rv = scsi_add_host(shost, &pdev->dev); shost 10650 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_scan_host(shost); shost 10660 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_host_put(shost); shost 10675 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 10676 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 10681 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_block_requests(shost); shost 10701 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 10702 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 10718 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_unblock_requests(shost); shost 10736 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 10737 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 10747 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_block_requests(ioc->shost); shost 10772 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 10773 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 10807 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 10808 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 10813 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_unblock_requests(ioc->shost); shost 10823 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 10824 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 1011 drivers/scsi/mpt3sas/mpt3sas_transport.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 1012 drivers/scsi/mpt3sas/mpt3sas_transport.c return shost_priv(shost); shost 1018 drivers/scsi/mpt3sas/mpt3sas_transport.c struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); shost 1019 drivers/scsi/mpt3sas/mpt3sas_transport.c return shost_priv(shost); shost 1833 drivers/scsi/mpt3sas/mpt3sas_transport.c _transport_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, shost 1836 drivers/scsi/mpt3sas/mpt3sas_transport.c struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); shost 94 drivers/scsi/mvsas/mv_init.c sas_phy->ha = (struct sas_ha_struct *)mvi->shost->hostdata; shost 137 drivers/scsi/mvsas/mv_init.c if (mvi->shost) shost 138 drivers/scsi/mvsas/mv_init.c scsi_host_put(mvi->shost); shost 212 drivers/scsi/mvsas/mv_init.c static int mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost) shost 348 drivers/scsi/mvsas/mv_init.c struct Scsi_Host *shost, unsigned int id) shost 351 drivers/scsi/mvsas/mv_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 370 drivers/scsi/mvsas/mv_init.c mvi->shost = shost; shost 378 drivers/scsi/mvsas/mv_init.c if (!mvs_alloc(mvi, shost)) shost 402 drivers/scsi/mvsas/mv_init.c static int mvs_prep_sas_ha_init(struct Scsi_Host *shost, shost 408 drivers/scsi/mvsas/mv_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 422 drivers/scsi/mvsas/mv_init.c sha->core.shost = shost; shost 430 drivers/scsi/mvsas/mv_init.c shost->transportt = mvs_stt; shost 431 drivers/scsi/mvsas/mv_init.c shost->max_id = MVS_MAX_DEVICES; shost 432 drivers/scsi/mvsas/mv_init.c shost->max_lun = ~0; shost 433 drivers/scsi/mvsas/mv_init.c shost->max_channel = 1; shost 434 drivers/scsi/mvsas/mv_init.c shost->max_cmd_len = 16; shost 444 drivers/scsi/mvsas/mv_init.c static void mvs_post_sas_ha_init(struct Scsi_Host *shost, shost 449 drivers/scsi/mvsas/mv_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 474 drivers/scsi/mvsas/mv_init.c shost->sg_tablesize = min_t(u16, SG_ALL, MVS_MAX_SG); shost 475 drivers/scsi/mvsas/mv_init.c shost->can_queue = can_queue; shost 476 drivers/scsi/mvsas/mv_init.c mvi->shost->cmd_per_lun = MVS_QUEUE_SIZE; shost 477 drivers/scsi/mvsas/mv_init.c sha->core.shost = mvi->shost; shost 498 drivers/scsi/mvsas/mv_init.c struct Scsi_Host *shost = NULL; shost 517 drivers/scsi/mvsas/mv_init.c shost = scsi_host_alloc(&mvs_sht, sizeof(void *)); shost 518 drivers/scsi/mvsas/mv_init.c if (!shost) { shost 524 drivers/scsi/mvsas/mv_init.c SHOST_TO_SAS_HA(shost) = shost 526 drivers/scsi/mvsas/mv_init.c if (!SHOST_TO_SAS_HA(shost)) { shost 527 drivers/scsi/mvsas/mv_init.c scsi_host_put(shost); shost 532 drivers/scsi/mvsas/mv_init.c rc = mvs_prep_sas_ha_init(shost, chip); shost 534 drivers/scsi/mvsas/mv_init.c scsi_host_put(shost); shost 539 drivers/scsi/mvsas/mv_init.c pci_set_drvdata(pdev, SHOST_TO_SAS_HA(shost)); shost 542 drivers/scsi/mvsas/mv_init.c mvi = mvs_pci_alloc(pdev, ent, shost, nhost); shost 561 drivers/scsi/mvsas/mv_init.c mpi = (struct mvs_prv_info *)(SHOST_TO_SAS_HA(shost)->lldd_ha); shost 564 drivers/scsi/mvsas/mv_init.c (unsigned long)SHOST_TO_SAS_HA(shost)); shost 567 drivers/scsi/mvsas/mv_init.c mvs_post_sas_ha_init(shost, chip); shost 569 drivers/scsi/mvsas/mv_init.c rc = scsi_add_host(shost, &pdev->dev); shost 573 drivers/scsi/mvsas/mv_init.c rc = sas_register_ha(SHOST_TO_SAS_HA(shost)); shost 577 drivers/scsi/mvsas/mv_init.c DRV_NAME, SHOST_TO_SAS_HA(shost)); shost 583 drivers/scsi/mvsas/mv_init.c scsi_scan_host(mvi->shost); shost 588 drivers/scsi/mvsas/mv_init.c sas_unregister_ha(SHOST_TO_SAS_HA(shost)); shost 590 drivers/scsi/mvsas/mv_init.c scsi_remove_host(mvi->shost); shost 613 drivers/scsi/mvsas/mv_init.c sas_remove_host(mvi->shost); shost 714 drivers/scsi/mvsas/mv_init.c struct Scsi_Host *shost = class_to_shost(cdev); shost 715 drivers/scsi/mvsas/mv_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 269 drivers/scsi/mvsas/mv_sas.c void mvs_scan_start(struct Scsi_Host *shost) shost 274 drivers/scsi/mvsas/mv_sas.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 287 drivers/scsi/mvsas/mv_sas.c int mvs_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 289 drivers/scsi/mvsas/mv_sas.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 346 drivers/scsi/mvsas/mv_sas.h struct Scsi_Host *shost; shost 439 drivers/scsi/mvsas/mv_sas.h void mvs_scan_start(struct Scsi_Host *shost); shost 440 drivers/scsi/mvsas/mv_sas.h int mvs_scan_finished(struct Scsi_Host *shost, unsigned long time); shost 725 drivers/scsi/mvumi.c spin_lock_irqsave(mhba->shost->host_lock, flags); shost 727 drivers/scsi/mvumi.c spin_unlock_irqrestore(mhba->shost->host_lock, flags); shost 735 drivers/scsi/mvumi.c spin_lock_irqsave(mhba->shost->host_lock, flags); shost 750 drivers/scsi/mvumi.c spin_unlock_irqrestore(mhba->shost->host_lock, flags); shost 1385 drivers/scsi/mvumi.c sdev = scsi_device_lookup(mhba->shost, 0, devid, 0); shost 1396 drivers/scsi/mvumi.c sdev = scsi_device_lookup(mhba->shost, 0, devid, 0); shost 1398 drivers/scsi/mvumi.c scsi_add_device(mhba->shost, 0, devid, 0); shost 1486 drivers/scsi/mvumi.c sdev = scsi_device_lookup(mhba->shost, 0, shost 1501 drivers/scsi/mvumi.c sdev = scsi_device_lookup(mhba->shost, 0, id, 0); shost 1795 drivers/scsi/mvumi.c spin_lock_irqsave(mhba->shost->host_lock, flags); shost 1797 drivers/scsi/mvumi.c spin_unlock_irqrestore(mhba->shost->host_lock, flags); shost 1818 drivers/scsi/mvumi.c spin_unlock_irqrestore(mhba->shost->host_lock, flags); shost 2082 drivers/scsi/mvumi.c static int mvumi_queue_command(struct Scsi_Host *shost, shost 2089 drivers/scsi/mvumi.c spin_lock_irqsave(shost->host_lock, irq_flags); shost 2091 drivers/scsi/mvumi.c mhba = (struct mvumi_hba *) shost->hostdata; shost 2095 drivers/scsi/mvumi.c spin_unlock_irqrestore(shost->host_lock, irq_flags); shost 2105 drivers/scsi/mvumi.c spin_unlock_irqrestore(shost->host_lock, irq_flags); shost 2111 drivers/scsi/mvumi.c spin_unlock_irqrestore(shost->host_lock, irq_flags); shost 2122 drivers/scsi/mvumi.c spin_lock_irqsave(mhba->shost->host_lock, flags); shost 2141 drivers/scsi/mvumi.c spin_unlock_irqrestore(mhba->shost->host_lock, flags); shost 2390 drivers/scsi/mvumi.c struct Scsi_Host *host = mhba->shost; shost 2439 drivers/scsi/mvumi.c sdev = scsi_device_lookup(mhba->shost, 0, shost 2446 drivers/scsi/mvumi.c scsi_remove_host(mhba->shost); shost 2494 drivers/scsi/mvumi.c mhba->shost = host; shost 2547 drivers/scsi/mvumi.c host = mhba->shost; shost 2548 drivers/scsi/mvumi.c scsi_remove_host(mhba->shost); shost 479 drivers/scsi/mvumi.h struct Scsi_Host *shost; shost 32 drivers/scsi/myrb.c static inline int myrb_logical_channel(struct Scsi_Host *shost) shost 34 drivers/scsi/myrb.c return shost->max_channel - 1; shost 392 drivers/scsi/myrb.c struct Scsi_Host *shost = cb->host; shost 404 drivers/scsi/myrb.c sdev = scsi_device_lookup(shost, myrb_logical_channel(shost), shost 409 drivers/scsi/myrb.c shost_printk(KERN_INFO, shost, shost 412 drivers/scsi/myrb.c scsi_add_device(shost, myrb_logical_channel(shost), shost 418 drivers/scsi/myrb.c shost_printk(KERN_INFO, shost, shost 919 drivers/scsi/myrb.c struct Scsi_Host *shost = cb->host; shost 1098 drivers/scsi/myrb.c shost->max_channel = pchan_cur; shost 1099 drivers/scsi/myrb.c shost->max_id = enquiry2->max_targets; shost 1110 drivers/scsi/myrb.c shost->can_queue = cb->enquiry->max_tcq; shost 1111 drivers/scsi/myrb.c if (shost->can_queue < 3) shost 1112 drivers/scsi/myrb.c shost->can_queue = enquiry2->max_cmds; shost 1113 drivers/scsi/myrb.c if (shost->can_queue < 3) shost 1115 drivers/scsi/myrb.c shost->can_queue = 1; shost 1117 drivers/scsi/myrb.c if (shost->can_queue > MYRB_CMD_MBOX_COUNT - 2) shost 1118 drivers/scsi/myrb.c shost->can_queue = MYRB_CMD_MBOX_COUNT - 2; shost 1119 drivers/scsi/myrb.c shost->max_sectors = enquiry2->max_sectors; shost 1120 drivers/scsi/myrb.c shost->sg_tablesize = enquiry2->max_sge; shost 1121 drivers/scsi/myrb.c if (shost->sg_tablesize > MYRB_SCATTER_GATHER_LIMIT) shost 1122 drivers/scsi/myrb.c shost->sg_tablesize = MYRB_SCATTER_GATHER_LIMIT; shost 1258 drivers/scsi/myrb.c struct Scsi_Host *shost = scmd->device->host; shost 1259 drivers/scsi/myrb.c struct myrb_hba *cb = shost_priv(shost); shost 1265 drivers/scsi/myrb.c static int myrb_pthru_queuecommand(struct Scsi_Host *shost, shost 1268 drivers/scsi/myrb.c struct myrb_hba *cb = shost_priv(shost); shost 1421 drivers/scsi/myrb.c static int myrb_ldev_queuecommand(struct Scsi_Host *shost, shost 1424 drivers/scsi/myrb.c struct myrb_hba *cb = shost_priv(shost); shost 1438 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, "ldev %u in state %x, skip\n", shost 1634 drivers/scsi/myrb.c static int myrb_queuecommand(struct Scsi_Host *shost, shost 1639 drivers/scsi/myrb.c if (sdev->channel > myrb_logical_channel(shost)) { shost 1644 drivers/scsi/myrb.c if (sdev->channel == myrb_logical_channel(shost)) shost 1645 drivers/scsi/myrb.c return myrb_ldev_queuecommand(shost, scmd); shost 1647 drivers/scsi/myrb.c return myrb_pthru_queuecommand(shost, scmd); shost 2167 drivers/scsi/myrb.c struct Scsi_Host *shost = class_to_shost(dev); shost 2168 drivers/scsi/myrb.c struct myrb_hba *cb = shost_priv(shost); shost 2177 drivers/scsi/myrb.c struct Scsi_Host *shost = class_to_shost(dev); shost 2178 drivers/scsi/myrb.c struct myrb_hba *cb = shost_priv(shost); shost 2187 drivers/scsi/myrb.c struct Scsi_Host *shost = class_to_shost(dev); shost 2188 drivers/scsi/myrb.c struct myrb_hba *cb = shost_priv(shost); shost 2197 drivers/scsi/myrb.c struct Scsi_Host *shost = class_to_shost(dev); shost 2198 drivers/scsi/myrb.c struct myrb_hba *cb = shost_priv(shost); shost 2203 drivers/scsi/myrb.c shost_printk(KERN_INFO, shost, shost 2207 drivers/scsi/myrb.c shost_printk(KERN_INFO, shost, shost 2417 drivers/scsi/myrb.c struct Scsi_Host *shost = cb->host; shost 2420 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, "monitor tick\n"); shost 2425 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, shost 2433 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, "get error table\n"); shost 2438 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, shost 2444 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, shost 2450 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, shost 2456 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, shost 2462 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, "get background init status\n"); shost 2466 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, "new enquiry\n"); shost 2474 drivers/scsi/myrb.c dev_dbg(&shost->shost_gendev, shost 3505 drivers/scsi/myrb.c struct Scsi_Host *shost; shost 3508 drivers/scsi/myrb.c shost = scsi_host_alloc(&myrb_template, sizeof(struct myrb_hba)); shost 3509 drivers/scsi/myrb.c if (!shost) { shost 3513 drivers/scsi/myrb.c shost->max_cmd_len = 12; shost 3514 drivers/scsi/myrb.c shost->max_lun = 256; shost 3515 drivers/scsi/myrb.c cb = shost_priv(shost); shost 586 drivers/scsi/myrs.c struct Scsi_Host *shost = cs->host; shost 597 drivers/scsi/myrs.c shost_printk(KERN_ERR, shost, shost 620 drivers/scsi/myrs.c shost_printk(KERN_WARNING, shost, shost 628 drivers/scsi/myrs.c shost->max_channel = info->physchan_present + info->virtchan_present; shost 629 drivers/scsi/myrs.c shost->max_id = info->max_targets[0]; shost 633 drivers/scsi/myrs.c if (shost->max_id < info->max_targets[i]) shost 634 drivers/scsi/myrs.c shost->max_id = info->max_targets[i]; shost 645 drivers/scsi/myrs.c shost->can_queue = info->max_tcq - 3; shost 646 drivers/scsi/myrs.c if (shost->can_queue > MYRS_MAX_CMD_MBOX - 3) shost 647 drivers/scsi/myrs.c shost->can_queue = MYRS_MAX_CMD_MBOX - 3; shost 648 drivers/scsi/myrs.c shost->max_sectors = info->max_transfer_size; shost 649 drivers/scsi/myrs.c shost->sg_tablesize = info->max_sge; shost 650 drivers/scsi/myrs.c if (shost->sg_tablesize > MYRS_SG_LIMIT) shost 651 drivers/scsi/myrs.c shost->sg_tablesize = MYRS_SG_LIMIT; shost 653 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 655 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 659 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 661 drivers/scsi/myrs.c shost->can_queue, shost->max_sectors); shost 663 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 665 drivers/scsi/myrs.c shost->can_queue, shost->sg_tablesize, MYRS_SG_LIMIT); shost 669 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 673 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 678 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 819 drivers/scsi/myrs.c struct Scsi_Host *shost = cs->host; shost 847 drivers/scsi/myrs.c shost_printk(KERN_WARNING, shost, shost 854 drivers/scsi/myrs.c sdev = scsi_device_lookup(shost, ev->channel, shost 883 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 889 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 900 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 903 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 907 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 919 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, "event %d: Enclosure %d %s\n", shost 923 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, "event %d: Controller %s\n", shost 927 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 1302 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1303 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1315 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1316 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1338 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1339 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1390 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1391 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1400 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1401 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1410 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1411 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1420 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1421 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1433 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1434 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1452 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 1457 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, "Discovery Initiated\n"); shost 1462 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, "Discovery Completed\n"); shost 1471 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1472 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1478 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, "Cache Flush Completed\n"); shost 1481 drivers/scsi/myrs.c shost_printk(KERN_INFO, shost, shost 1490 drivers/scsi/myrs.c struct Scsi_Host *shost = class_to_shost(dev); shost 1491 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1534 drivers/scsi/myrs.c struct Scsi_Host *shost = scmd->device->host; shost 1535 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1584 drivers/scsi/myrs.c static int myrs_queuecommand(struct Scsi_Host *shost, shost 1587 drivers/scsi/myrs.c struct myrs_hba *cs = shost_priv(shost); shost 1940 drivers/scsi/myrs.c struct Scsi_Host *shost; shost 1943 drivers/scsi/myrs.c shost = scsi_host_alloc(&myrs_template, sizeof(struct myrs_hba)); shost 1944 drivers/scsi/myrs.c if (!shost) shost 1947 drivers/scsi/myrs.c shost->max_cmd_len = 16; shost 1948 drivers/scsi/myrs.c shost->max_lun = 256; shost 1949 drivers/scsi/myrs.c cs = shost_priv(shost); shost 1952 drivers/scsi/myrs.c cs->host = shost; shost 2111 drivers/scsi/myrs.c struct Scsi_Host *shost = cs->host; shost 2117 drivers/scsi/myrs.c dev_dbg(&shost->shost_gendev, "monitor tick\n"); shost 2149 drivers/scsi/myrs.c shost_for_each_device(sdev, shost) { shost 2178 drivers/scsi/myrs.c struct Scsi_Host *shost = cs->host; shost 2182 drivers/scsi/myrs.c elem_size = shost->sg_tablesize * elem_align; shost 2186 drivers/scsi/myrs.c shost_printk(KERN_ERR, shost, shost 2196 drivers/scsi/myrs.c shost_printk(KERN_ERR, shost, shost 2209 drivers/scsi/myrs.c shost_printk(KERN_ERR, shost, shost 2215 drivers/scsi/myrs.c "myrs_wq_%d", shost->host_no); shost 2224 drivers/scsi/myrs.c shost_printk(KERN_ERR, shost, shost 8064 drivers/scsi/ncr53c8xx.c struct Scsi_Host *shost = (struct Scsi_Host *)dev_id; shost 8065 drivers/scsi/ncr53c8xx.c struct host_data *host_data = (struct host_data *)shost->hostdata; shost 8529 drivers/scsi/ncr53c8xx.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 8530 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; shost 8545 drivers/scsi/ncr53c8xx.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 8546 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; shost 8561 drivers/scsi/ncr53c8xx.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 8562 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; shost 8575 drivers/scsi/ncr53c8xx.c static void ncr53c8xx_get_signalling(struct Scsi_Host *shost) shost 8577 drivers/scsi/ncr53c8xx.c struct ncb *np = ((struct host_data *)shost->hostdata)->ncb; shost 8591 drivers/scsi/ncr53c8xx.c spi_signalling(shost) = type; shost 95 drivers/scsi/pcmcia/qlogic_stub.c struct Scsi_Host *shost; /* registered host structure */ shost 106 drivers/scsi/pcmcia/qlogic_stub.c shost = scsi_host_alloc(host, sizeof(struct qlogicfas408_priv)); shost 107 drivers/scsi/pcmcia/qlogic_stub.c if (!shost) shost 109 drivers/scsi/pcmcia/qlogic_stub.c shost->io_port = qbase; shost 110 drivers/scsi/pcmcia/qlogic_stub.c shost->n_io_port = 16; shost 111 drivers/scsi/pcmcia/qlogic_stub.c shost->dma_channel = -1; shost 113 drivers/scsi/pcmcia/qlogic_stub.c shost->irq = qlirq; shost 115 drivers/scsi/pcmcia/qlogic_stub.c priv = get_priv_by_host(shost); shost 119 drivers/scsi/pcmcia/qlogic_stub.c priv->shost = shost; shost 122 drivers/scsi/pcmcia/qlogic_stub.c if (request_irq(qlirq, qlogicfas408_ihandl, 0, qlogic_name, shost)) shost 129 drivers/scsi/pcmcia/qlogic_stub.c if (scsi_add_host(shost, NULL)) shost 132 drivers/scsi/pcmcia/qlogic_stub.c scsi_scan_host(shost); shost 134 drivers/scsi/pcmcia/qlogic_stub.c return shost; shost 137 drivers/scsi/pcmcia/qlogic_stub.c free_irq(qlirq, shost); shost 140 drivers/scsi/pcmcia/qlogic_stub.c scsi_host_put(shost); shost 503 drivers/scsi/pcmcia/sym53c500_cs.c struct Scsi_Host *shost = info->host; shost 510 drivers/scsi/pcmcia/sym53c500_cs.c scsi_remove_host(shost); shost 516 drivers/scsi/pcmcia/sym53c500_cs.c if (shost->irq) shost 517 drivers/scsi/pcmcia/sym53c500_cs.c free_irq(shost->irq, shost); shost 518 drivers/scsi/pcmcia/sym53c500_cs.c if (shost->io_port && shost->n_io_port) shost 519 drivers/scsi/pcmcia/sym53c500_cs.c release_region(shost->io_port, shost->n_io_port); shost 523 drivers/scsi/pcmcia/sym53c500_cs.c scsi_host_put(shost); shost 57 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 58 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 82 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 83 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 112 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 113 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 137 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 138 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 163 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 164 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 186 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 187 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 212 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 213 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 257 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 258 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 285 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 286 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 304 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 305 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 313 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 314 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 337 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 338 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 372 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 373 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 405 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 406 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 436 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 437 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 474 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 475 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 492 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 493 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 710 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 711 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 787 drivers/scsi/pm8001/pm8001_ctl.c struct Scsi_Host *shost = class_to_shost(cdev); shost 788 drivers/scsi/pm8001/pm8001_ctl.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 4994 drivers/scsi/pm8001/pm8001_hwi.c struct Scsi_Host *shost = class_to_shost(cdev); shost 4995 drivers/scsi/pm8001/pm8001_hwi.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 136 drivers/scsi/pm8001/pm8001_init.c sas_phy->ha = (struct sas_ha_struct *)pm8001_ha->shost->hostdata; shost 450 drivers/scsi/pm8001/pm8001_init.c struct Scsi_Host *shost) shost 454 drivers/scsi/pm8001/pm8001_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 467 drivers/scsi/pm8001/pm8001_init.c pm8001_ha->shost = shost; shost 518 drivers/scsi/pm8001/pm8001_init.c static int pm8001_prep_sas_ha_init(struct Scsi_Host *shost, shost 524 drivers/scsi/pm8001/pm8001_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 542 drivers/scsi/pm8001/pm8001_init.c shost->transportt = pm8001_stt; shost 543 drivers/scsi/pm8001/pm8001_init.c shost->max_id = PM8001_MAX_DEVICES; shost 544 drivers/scsi/pm8001/pm8001_init.c shost->max_lun = 8; shost 545 drivers/scsi/pm8001/pm8001_init.c shost->max_channel = 0; shost 546 drivers/scsi/pm8001/pm8001_init.c shost->unique_id = pm8001_id; shost 547 drivers/scsi/pm8001/pm8001_init.c shost->max_cmd_len = 16; shost 548 drivers/scsi/pm8001/pm8001_init.c shost->can_queue = PM8001_CAN_QUEUE; shost 549 drivers/scsi/pm8001/pm8001_init.c shost->cmd_per_lun = 32; shost 564 drivers/scsi/pm8001/pm8001_init.c static void pm8001_post_sas_ha_init(struct Scsi_Host *shost, shost 569 drivers/scsi/pm8001/pm8001_init.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 584 drivers/scsi/pm8001/pm8001_init.c sha->core.shost = shost; shost 945 drivers/scsi/pm8001/pm8001_init.c DRV_NAME, SHOST_TO_SAS_HA(pm8001_ha->shost)); shost 965 drivers/scsi/pm8001/pm8001_init.c struct Scsi_Host *shost = NULL; shost 989 drivers/scsi/pm8001/pm8001_init.c shost = scsi_host_alloc(&pm8001_sht, sizeof(void *)); shost 990 drivers/scsi/pm8001/pm8001_init.c if (!shost) { shost 995 drivers/scsi/pm8001/pm8001_init.c SHOST_TO_SAS_HA(shost) = shost 997 drivers/scsi/pm8001/pm8001_init.c if (!SHOST_TO_SAS_HA(shost)) { shost 1002 drivers/scsi/pm8001/pm8001_init.c rc = pm8001_prep_sas_ha_init(shost, chip); shost 1007 drivers/scsi/pm8001/pm8001_init.c pci_set_drvdata(pdev, SHOST_TO_SAS_HA(shost)); shost 1009 drivers/scsi/pm8001/pm8001_init.c pm8001_ha = pm8001_pci_alloc(pdev, ent, shost); shost 1023 drivers/scsi/pm8001/pm8001_init.c rc = scsi_add_host(shost, &pdev->dev); shost 1046 drivers/scsi/pm8001/pm8001_init.c pm8001_post_sas_ha_init(shost, chip); shost 1047 drivers/scsi/pm8001/pm8001_init.c rc = sas_register_ha(SHOST_TO_SAS_HA(shost)); shost 1050 drivers/scsi/pm8001/pm8001_init.c scsi_scan_host(pm8001_ha->shost); shost 1055 drivers/scsi/pm8001/pm8001_init.c scsi_remove_host(pm8001_ha->shost); shost 1059 drivers/scsi/pm8001/pm8001_init.c kfree(SHOST_TO_SAS_HA(shost)); shost 1061 drivers/scsi/pm8001/pm8001_init.c scsi_host_put(shost); shost 1077 drivers/scsi/pm8001/pm8001_init.c sas_remove_host(pm8001_ha->shost); shost 1100 drivers/scsi/pm8001/pm8001_init.c scsi_host_put(pm8001_ha->shost); shost 1125 drivers/scsi/pm8001/pm8001_init.c scsi_block_requests(pm8001_ha->shost); shost 1250 drivers/scsi/pm8001/pm8001_init.c scsi_remove_host(pm8001_ha->shost); shost 263 drivers/scsi/pm8001/pm8001_sas.c void pm8001_scan_start(struct Scsi_Host *shost) shost 267 drivers/scsi/pm8001/pm8001_sas.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 276 drivers/scsi/pm8001/pm8001_sas.c int pm8001_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 278 drivers/scsi/pm8001/pm8001_sas.c struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); shost 518 drivers/scsi/pm8001/pm8001_sas.h struct Scsi_Host *shost; shost 642 drivers/scsi/pm8001/pm8001_sas.h void pm8001_scan_start(struct Scsi_Host *shost); shost 643 drivers/scsi/pm8001/pm8001_sas.h int pm8001_scan_finished(struct Scsi_Host *shost, unsigned long time); shost 90 drivers/scsi/pm8001/pm80xx_hwi.c struct Scsi_Host *shost = class_to_shost(cdev); shost 91 drivers/scsi/pm8001/pm80xx_hwi.c struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); shost 3998 drivers/scsi/pmcraid.c struct Scsi_Host *shost = class_to_shost(dev); shost 4000 drivers/scsi/pmcraid.c (struct pmcraid_instance *)shost->hostdata; shost 4020 drivers/scsi/pmcraid.c struct Scsi_Host *shost; shost 4030 drivers/scsi/pmcraid.c shost = class_to_shost(dev); shost 4031 drivers/scsi/pmcraid.c pinstance = (struct pmcraid_instance *)shost->hostdata; shost 4086 drivers/scsi/pmcraid.c struct Scsi_Host *shost = class_to_shost(dev); shost 4088 drivers/scsi/pmcraid.c (struct pmcraid_instance *)shost->hostdata; shost 135 drivers/scsi/qedf/qedf_dbg.c qedf_uevent_emit(struct Scsi_Host *shost, u32 code, char *msg) shost 146 drivers/scsi/qedf/qedf_dbg.c sprintf(event_string, "GRCDUMP=%u", shost->host_no); shost 153 drivers/scsi/qedf/qedf_dbg.c kobject_uevent_env(&shost->shost_gendev.kobj, KOBJ_CHANGE, envp); shost 157 drivers/scsi/qedf/qedf_dbg.c qedf_create_sysfs_attr(struct Scsi_Host *shost, struct sysfs_bin_attrs *iter) shost 162 drivers/scsi/qedf/qedf_dbg.c ret = sysfs_create_bin_file(&shost->shost_gendev.kobj, shost 172 drivers/scsi/qedf/qedf_dbg.c qedf_remove_sysfs_attr(struct Scsi_Host *shost, struct sysfs_bin_attrs *iter) shost 175 drivers/scsi/qedf/qedf_dbg.c sysfs_remove_bin_file(&shost->shost_gendev.kobj, iter->attr); shost 110 drivers/scsi/qedf/qedf_dbg.h extern void qedf_uevent_emit(struct Scsi_Host *shost, u32 code, char *msg); shost 111 drivers/scsi/qedf/qedf_dbg.h extern int qedf_create_sysfs_attr(struct Scsi_Host *shost, shost 113 drivers/scsi/qedf/qedf_dbg.h extern void qedf_remove_sysfs_attr(struct Scsi_Host *shost, shost 1718 drivers/scsi/qedf/qedf_main.c struct Scsi_Host *shost = vport_to_shost(vport); shost 1719 drivers/scsi/qedf/qedf_main.c struct fc_lport *n_port = shost_priv(shost); shost 1806 drivers/scsi/qedf/qedf_main.c shost = vport_to_shost(vport); shost 1807 drivers/scsi/qedf/qedf_main.c n_port = shost_priv(shost); shost 1838 drivers/scsi/qedf/qedf_main.c struct Scsi_Host *shost = vport_to_shost(vport); shost 1839 drivers/scsi/qedf/qedf_main.c struct fc_lport *n_port = shost_priv(shost); shost 1921 drivers/scsi/qedf/qedf_main.c static int qedf_fcoe_reset(struct Scsi_Host *shost) shost 1923 drivers/scsi/qedf/qedf_main.c struct fc_lport *lport = shost_priv(shost); shost 1930 drivers/scsi/qedf/qedf_main.c *shost) shost 1933 drivers/scsi/qedf/qedf_main.c struct fc_lport *lport = shost_priv(shost); shost 1937 drivers/scsi/qedf/qedf_main.c qedf_stats = fc_get_host_stats(shost); shost 263 drivers/scsi/qedi/qedi.h struct Scsi_Host *shost; shost 108 drivers/scsi/qedi/qedi_dbg.c qedi_create_sysfs_attr(struct Scsi_Host *shost, struct sysfs_bin_attrs *iter) shost 113 drivers/scsi/qedi/qedi_dbg.c ret = sysfs_create_bin_file(&shost->shost_gendev.kobj, shost 123 drivers/scsi/qedi/qedi_dbg.c qedi_remove_sysfs_attr(struct Scsi_Host *shost, struct sysfs_bin_attrs *iter) shost 126 drivers/scsi/qedi/qedi_dbg.c sysfs_remove_bin_file(&shost->shost_gendev.kobj, iter->attr); shost 98 drivers/scsi/qedi/qedi_dbg.h int qedi_create_sysfs_attr(struct Scsi_Host *shost, shost 100 drivers/scsi/qedi/qedi_dbg.h void qedi_remove_sysfs_attr(struct Scsi_Host *shost, shost 1277 drivers/scsi/qedi/qedi_fw.c iscsi_host_for_each_session(qedi->shost, shost 1286 drivers/scsi/qedi/qedi_fw.c iscsi_host_for_each_session(qedi->shost, shost 1291 drivers/scsi/qedi/qedi_fw.c iscsi_host_for_each_session(qedi->shost, shost 2032 drivers/scsi/qedi/qedi_fw.c struct Scsi_Host *shost = iscsi_session_to_shost(session->cls_session); shost 2033 drivers/scsi/qedi/qedi_fw.c struct qedi_ctx *qedi = iscsi_host_priv(shost); shost 35 drivers/scsi/qedi/qedi_iscsi.c struct Scsi_Host *shost = cmd->device->host; shost 38 drivers/scsi/qedi/qedi_iscsi.c qedi = iscsi_host_priv(shost); shost 241 drivers/scsi/qedi/qedi_iscsi.c struct Scsi_Host *shost; shost 250 drivers/scsi/qedi/qedi_iscsi.c shost = qedi_ep->qedi->shost; shost 251 drivers/scsi/qedi/qedi_iscsi.c qedi = iscsi_host_priv(shost); shost 258 drivers/scsi/qedi/qedi_iscsi.c cls_session = iscsi_session_setup(&qedi_iscsi_transport, shost, shost 283 drivers/scsi/qedi/qedi_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 284 drivers/scsi/qedi/qedi_iscsi.c struct qedi_ctx *qedi = iscsi_host_priv(shost); shost 293 drivers/scsi/qedi/qedi_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 294 drivers/scsi/qedi/qedi_iscsi.c struct qedi_ctx *qedi = iscsi_host_priv(shost); shost 376 drivers/scsi/qedi/qedi_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); shost 377 drivers/scsi/qedi/qedi_iscsi.c struct qedi_ctx *qedi = iscsi_host_priv(shost); shost 601 drivers/scsi/qedi/qedi_iscsi.c struct Scsi_Host *shost; shost 604 drivers/scsi/qedi/qedi_iscsi.c shost = iscsi_session_to_shost(iscsi_conn_to_session(cls_conn)); shost 605 drivers/scsi/qedi/qedi_iscsi.c qedi = iscsi_host_priv(shost); shost 637 drivers/scsi/qedi/qedi_iscsi.c static int qedi_host_get_param(struct Scsi_Host *shost, shost 643 drivers/scsi/qedi/qedi_iscsi.c qedi = iscsi_host_priv(shost); shost 650 drivers/scsi/qedi/qedi_iscsi.c len = sprintf(buf, "host%d\n", shost->host_no); shost 659 drivers/scsi/qedi/qedi_iscsi.c return iscsi_host_get_param(shost, param, buf); shost 670 drivers/scsi/qedi/qedi_iscsi.c struct Scsi_Host *shost; shost 673 drivers/scsi/qedi/qedi_iscsi.c shost = iscsi_session_to_shost(iscsi_conn_to_session(cls_conn)); shost 674 drivers/scsi/qedi/qedi_iscsi.c qedi = iscsi_host_priv(shost); shost 801 drivers/scsi/qedi/qedi_iscsi.c qedi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, shost 816 drivers/scsi/qedi/qedi_iscsi.c if (!shost) { shost 827 drivers/scsi/qedi/qedi_iscsi.c qedi = iscsi_host_priv(shost); shost 914 drivers/scsi/qedi/qedi_iscsi.c ret = iscsi_offload_mesg(shost, &qedi_iscsi_transport, msg_type, buf, shost 1189 drivers/scsi/qedi/qedi_iscsi.c static int qedi_set_path(struct Scsi_Host *shost, struct iscsi_path *path_data) shost 1197 drivers/scsi/qedi/qedi_iscsi.c if (!shost) { shost 1203 drivers/scsi/qedi/qedi_iscsi.c if (strcmp(shost->hostt->proc_name, "qedi")) { shost 1206 drivers/scsi/qedi/qedi_iscsi.c shost->hostt->proc_name); shost 1210 drivers/scsi/qedi/qedi_iscsi.c qedi = iscsi_host_priv(shost); shost 624 drivers/scsi/qedi/qedi_main.c struct Scsi_Host *shost; shost 627 drivers/scsi/qedi/qedi_main.c shost = iscsi_host_alloc(&qedi_host_template, shost 629 drivers/scsi/qedi/qedi_main.c if (!shost) { shost 634 drivers/scsi/qedi/qedi_main.c shost->max_id = QEDI_MAX_ISCSI_CONNS_PER_HBA; shost 635 drivers/scsi/qedi/qedi_main.c shost->max_channel = 0; shost 636 drivers/scsi/qedi/qedi_main.c shost->max_lun = ~0; shost 637 drivers/scsi/qedi/qedi_main.c shost->max_cmd_len = 16; shost 638 drivers/scsi/qedi/qedi_main.c shost->transportt = qedi_scsi_transport; shost 640 drivers/scsi/qedi/qedi_main.c qedi = iscsi_host_priv(shost); shost 642 drivers/scsi/qedi/qedi_main.c qedi->shost = shost; shost 643 drivers/scsi/qedi/qedi_main.c qedi->dbg_ctx.host_no = shost->host_no; shost 649 drivers/scsi/qedi/qedi_main.c shost->nr_hw_queues = MIN_NUM_CPUS_MSIX(qedi); shost 2246 drivers/scsi/qedi/qedi_main.c scsi_host_put(qedi->shost); shost 2273 drivers/scsi/qedi/qedi_main.c qedi->boot_kset = iscsi_boot_create_host_kset(qedi->shost->host_no); shost 2277 drivers/scsi/qedi/qedi_main.c if (!scsi_host_get(qedi->shost)) shost 2287 drivers/scsi/qedi/qedi_main.c if (!scsi_host_get(qedi->shost)) shost 2297 drivers/scsi/qedi/qedi_main.c if (!scsi_host_get(qedi->shost)) shost 2307 drivers/scsi/qedi/qedi_main.c if (!scsi_host_get(qedi->shost)) shost 2320 drivers/scsi/qedi/qedi_main.c scsi_host_put(qedi->shost); shost 2376 drivers/scsi/qedi/qedi_main.c iscsi_host_remove(qedi->shost); shost 2377 drivers/scsi/qedi/qedi_main.c iscsi_host_free(qedi->shost); shost 2512 drivers/scsi/qedi/qedi_main.c sprintf(host_buf, "host_%d", qedi->shost->host_no); shost 2574 drivers/scsi/qedi/qedi_main.c if (iscsi_host_add(qedi->shost, &pdev->dev)) { shost 2618 drivers/scsi/qedi/qedi_main.c sprintf(host_buf, "host_%d", qedi->shost->host_no); shost 2627 drivers/scsi/qedi/qedi_main.c sprintf(host_buf, "qedi_ofld%d", qedi->shost->host_no); shost 2661 drivers/scsi/qedi/qedi_main.c iscsi_host_remove(qedi->shost); shost 2671 drivers/scsi/qedi/qedi_main.c iscsi_host_free(qedi->shost); shost 14 drivers/scsi/qedi/qedi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 16 drivers/scsi/qedi/qedi_sysfs.c return iscsi_host_priv(shost); shost 2377 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_host_port_id(struct Scsi_Host *shost) shost 2379 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2381 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_id(shost) = vha->d_id.b.domain << 16 | shost 2386 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_host_speed(struct Scsi_Host *shost) shost 2388 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2392 drivers/scsi/qla2xxx/qla_attr.c qlafx00_get_host_speed(shost); shost 2426 drivers/scsi/qla2xxx/qla_attr.c fc_host_speed(shost) = speed; shost 2430 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_host_port_type(struct Scsi_Host *shost) shost 2432 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2436 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_type(shost) = FC_PORTTYPE_NPIV; shost 2457 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_type(shost) = port_type; shost 2589 drivers/scsi/qla2xxx/qla_attr.c qla2x00_issue_lip(struct Scsi_Host *shost) shost 2591 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2601 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_fc_host_stats(struct Scsi_Host *shost) shost 2603 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2680 drivers/scsi/qla2xxx/qla_attr.c qla2x00_reset_host_stats(struct Scsi_Host *shost) shost 2682 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2711 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_host_symbolic_name(struct Scsi_Host *shost) shost 2713 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2715 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_sym_node_name(vha, fc_host_symbolic_name(shost), shost 2716 drivers/scsi/qla2xxx/qla_attr.c sizeof(fc_host_symbolic_name(shost))); shost 2720 drivers/scsi/qla2xxx/qla_attr.c qla2x00_set_host_system_hostname(struct Scsi_Host *shost) shost 2722 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2728 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_host_fabric_name(struct Scsi_Host *shost) shost 2730 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2739 drivers/scsi/qla2xxx/qla_attr.c fc_host_fabric_name(shost) = fabric_name; shost 2743 drivers/scsi/qla2xxx/qla_attr.c qla2x00_get_host_port_state(struct Scsi_Host *shost) shost 2745 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *vha = shost_priv(shost); shost 2749 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_state(shost) = FC_PORTSTATE_OFFLINE; shost 2755 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_state(shost) = FC_PORTSTATE_DIAGNOSTICS; shost 2759 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_state(shost) = FC_PORTSTATE_DIAGNOSTICS; shost 2761 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; shost 2764 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_state(shost) = FC_PORTSTATE_LINKDOWN; shost 2767 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_state(shost) = FC_PORTSTATE_ONLINE; shost 2770 drivers/scsi/qla2xxx/qla_attr.c fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; shost 2780 drivers/scsi/qla2xxx/qla_attr.c scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); shost 444 drivers/scsi/qla2xxx/qla_mid.c scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); shost 482 drivers/scsi/qla2xxx/qla_mid.c scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); shost 2104 drivers/scsi/qla2xxx/qla_mr.c qlafx00_get_host_speed(struct Scsi_Host *shost) shost 2107 drivers/scsi/qla2xxx/qla_mr.c (shost_priv(shost)))->hw; shost 2124 drivers/scsi/qla2xxx/qla_mr.c fc_host_speed(shost) = speed; shost 311 drivers/scsi/qla2xxx/qla_os.c static int qla2xxx_map_queues(struct Scsi_Host *shost); shost 2698 drivers/scsi/qla2xxx/qla_os.c qla2xxx_scan_start(struct Scsi_Host *shost) shost 2700 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(shost); shost 2712 drivers/scsi/qla2xxx/qla_os.c qla2xxx_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 2714 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = shost_priv(shost); shost 7119 drivers/scsi/qla2xxx/qla_os.c static int qla2xxx_map_queues(struct Scsi_Host *shost) shost 7122 drivers/scsi/qla2xxx/qla_os.c scsi_qla_host_t *vha = (scsi_qla_host_t *)shost->hostdata; shost 7123 drivers/scsi/qla2xxx/qla_os.c struct blk_mq_queue_map *qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT]; shost 913 drivers/scsi/qla4xxx/ql4_def.h static inline struct scsi_qla_host* to_qla_host(struct Scsi_Host *shost) shost 915 drivers/scsi/qla4xxx/ql4_def.h return (struct scsi_qla_host *)iscsi_host_priv(shost); shost 113 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_host_get_param(struct Scsi_Host *shost, shost 115 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data, shost 121 drivers/scsi/qla4xxx/ql4_os.c static struct iscsi_endpoint *qla4xxx_ep_connect(struct Scsi_Host *shost, shost 146 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num, shost 149 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx, shost 151 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx); shost 152 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data, shost 154 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len); shost 166 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type); shost 178 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf, shost 282 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_send_ping(struct Scsi_Host *shost, uint32_t iface_num, shost 286 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 735 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx, shost 738 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 824 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_is_chap_active(struct Scsi_Host *shost, shost 829 drivers/scsi/qla4xxx/ql4_os.c ret = device_for_each_child(&shost->shost_gendev, &chap_tbl_idx, shost 835 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx) shost 837 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 862 drivers/scsi/qla4xxx/ql4_os.c ret = qla4xxx_is_chap_active(shost, chap_tbl_idx); shost 926 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_set_chap_entry(struct Scsi_Host *shost, void *data, int len) shost 928 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 997 drivers/scsi/qla4xxx/ql4_os.c rc = qla4xxx_is_chap_active(shost, shost 1027 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len) shost 1029 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 1235 drivers/scsi/qla4xxx/ql4_os.c struct Scsi_Host *shost = iscsi_iface_to_shost(iface); shost 1236 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 1674 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr, shost 1684 drivers/scsi/qla4xxx/ql4_os.c if (!shost) { shost 1690 drivers/scsi/qla4xxx/ql4_os.c ha = iscsi_host_priv(shost); shost 1715 drivers/scsi/qla4xxx/ql4_os.c qla_ep->host = shost; shost 1863 drivers/scsi/qla4xxx/ql4_os.c static void qla4xxx_set_port_speed(struct Scsi_Host *shost) shost 1865 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 1866 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_cls_host *ihost = shost->shost_data; shost 1888 drivers/scsi/qla4xxx/ql4_os.c static void qla4xxx_set_port_state(struct Scsi_Host *shost) shost 1890 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 1891 drivers/scsi/qla4xxx/ql4_os.c struct iscsi_cls_host *ihost = shost->shost_data; shost 1900 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_host_get_param(struct Scsi_Host *shost, shost 1903 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 1917 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_set_port_state(shost); shost 1918 drivers/scsi/qla4xxx/ql4_os.c len = sprintf(buf, "%s\n", iscsi_get_port_state_name(shost)); shost 1921 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_set_port_speed(shost); shost 1922 drivers/scsi/qla4xxx/ql4_os.c len = sprintf(buf, "%s\n", iscsi_get_port_speed_name(shost)); shost 2695 drivers/scsi/qla4xxx/ql4_os.c qla4xxx_iface_set_param(struct Scsi_Host *shost, void *data, uint32_t len) shost 2697 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 7263 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_sysfs_ddb_add(struct Scsi_Host *shost, const char *buf, shost 7266 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 7344 drivers/scsi/qla4xxx/ql4_os.c struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); shost 7345 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 7534 drivers/scsi/qla4xxx/ql4_os.c struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); shost 7535 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 7718 drivers/scsi/qla4xxx/ql4_os.c struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); shost 7719 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 7830 drivers/scsi/qla4xxx/ql4_os.c struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); shost 7831 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 8085 drivers/scsi/qla4xxx/ql4_os.c struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); shost 8086 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 8311 drivers/scsi/qla4xxx/ql4_os.c struct Scsi_Host *shost = iscsi_flash_session_to_shost(fnode_sess); shost 8312 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 9385 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_is_eh_active(struct Scsi_Host *shost) shost 9387 drivers/scsi/qla4xxx/ql4_os.c if (shost->shost_state == SHOST_RECOVERY) shost 9512 drivers/scsi/qla4xxx/ql4_os.c static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type) shost 9514 drivers/scsi/qla4xxx/ql4_os.c struct scsi_qla_host *ha = to_qla_host(shost); shost 106 drivers/scsi/qlogicfas.c priv->shost = hreg; shost 147 drivers/scsi/qlogicfas.c struct Scsi_Host *shost; shost 152 drivers/scsi/qlogicfas.c shost = __qlogicfas_detect(sht, iobase[num], irq[num]); shost 153 drivers/scsi/qlogicfas.c if (shost == NULL) { shost 157 drivers/scsi/qlogicfas.c priv = get_priv_by_host(shost); shost 165 drivers/scsi/qlogicfas.c static int qlogicfas_release(struct Scsi_Host *shost) shost 167 drivers/scsi/qlogicfas.c struct qlogicfas408_priv *priv = get_priv_by_host(shost); shost 169 drivers/scsi/qlogicfas.c scsi_remove_host(shost); shost 170 drivers/scsi/qlogicfas.c if (shost->irq) { shost 172 drivers/scsi/qlogicfas.c free_irq(shost->irq, shost); shost 174 drivers/scsi/qlogicfas.c if (shost->io_port && shost->n_io_port) shost 175 drivers/scsi/qlogicfas.c release_region(shost->io_port, shost->n_io_port); shost 176 drivers/scsi/qlogicfas.c scsi_host_put(shost); shost 217 drivers/scsi/qlogicfas.c qlogicfas_release(priv->shost); shost 86 drivers/scsi/qlogicfas408.h struct Scsi_Host *shost; /* pointer back to host */ shost 185 drivers/scsi/scsi.c struct Scsi_Host *shost = sdev->host; shost 195 drivers/scsi/scsi.c if (atomic_read(&shost->host_blocked)) shost 196 drivers/scsi/scsi.c atomic_set(&shost->host_blocked, 0); shost 564 drivers/scsi/scsi.c struct scsi_device *__scsi_iterate_devices(struct Scsi_Host *shost, shost 567 drivers/scsi/scsi.c struct list_head *list = (prev ? &prev->siblings : &shost->__devices); shost 571 drivers/scsi/scsi.c spin_lock_irqsave(shost->host_lock, flags); shost 572 drivers/scsi/scsi.c while (list->next != &shost->__devices) { shost 580 drivers/scsi/scsi.c spin_unlock_irqrestore(shost->host_lock, flags); shost 601 drivers/scsi/scsi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 604 drivers/scsi/scsi.c shost_for_each_device(sdev, shost) { shost 629 drivers/scsi/scsi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 632 drivers/scsi/scsi.c __shost_for_each_device(sdev, shost) { shost 684 drivers/scsi/scsi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 687 drivers/scsi/scsi.c spin_lock_irqsave(shost->host_lock, flags); shost 691 drivers/scsi/scsi.c spin_unlock_irqrestore(shost->host_lock, flags); shost 713 drivers/scsi/scsi.c struct scsi_device *__scsi_device_lookup(struct Scsi_Host *shost, shost 718 drivers/scsi/scsi.c list_for_each_entry(sdev, &shost->__devices, siblings) { shost 741 drivers/scsi/scsi.c struct scsi_device *scsi_device_lookup(struct Scsi_Host *shost, shost 747 drivers/scsi/scsi.c spin_lock_irqsave(shost->host_lock, flags); shost 748 drivers/scsi/scsi.c sdev = __scsi_device_lookup(shost, channel, id, lun); shost 751 drivers/scsi/scsi.c spin_unlock_irqrestore(shost->host_lock, flags); shost 261 drivers/scsi/scsi_debug.c struct Scsi_Host *shost; shost 751 drivers/scsi/scsi_debug.c hpnt = sdbg_host->shost; shost 892 drivers/scsi/scsi_debug.c struct Scsi_Host *shost; shost 897 drivers/scsi/scsi_debug.c shost = sdbg_host->shost; shost 898 drivers/scsi/scsi_debug.c shost_for_each_device(sdev, shost) { shost 1417 drivers/scsi/scsi_debug.c int host_no = devip->sdbg_host->shost->host_no; shost 1700 drivers/scsi/scsi_debug.c int host_no = devip->sdbg_host->shost->host_no; shost 2140 drivers/scsi/scsi_debug.c target_dev_id = ((devip->sdbg_host->shost->host_no + 1) * 2000) + shost 5589 drivers/scsi/scsi_debug.c static int scsi_debug_queuecommand(struct Scsi_Host *shost, shost 5805 drivers/scsi/scsi_debug.c sdbg_host->shost = hpnt; shost 5886 drivers/scsi/scsi_debug.c scsi_remove_host(sdbg_host->shost); shost 5894 drivers/scsi/scsi_debug.c scsi_host_put(sdbg_host->shost); shost 66 drivers/scsi/scsi_error.c void scsi_eh_wakeup(struct Scsi_Host *shost) shost 68 drivers/scsi/scsi_error.c lockdep_assert_held(shost->host_lock); shost 70 drivers/scsi/scsi_error.c if (scsi_host_busy(shost) == shost->host_failed) { shost 71 drivers/scsi/scsi_error.c trace_scsi_eh_wakeup(shost); shost 72 drivers/scsi/scsi_error.c wake_up_process(shost->ehandler); shost 73 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(5, shost_printk(KERN_INFO, shost, shost 84 drivers/scsi/scsi_error.c void scsi_schedule_eh(struct Scsi_Host *shost) shost 88 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 90 drivers/scsi/scsi_error.c if (scsi_host_set_state(shost, SHOST_RECOVERY) == 0 || shost 91 drivers/scsi/scsi_error.c scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY) == 0) { shost 92 drivers/scsi/scsi_error.c shost->host_eh_scheduled++; shost 93 drivers/scsi/scsi_error.c scsi_eh_wakeup(shost); shost 96 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 100 drivers/scsi/scsi_error.c static int scsi_host_eh_past_deadline(struct Scsi_Host *shost) shost 102 drivers/scsi/scsi_error.c if (!shost->last_reset || shost->eh_deadline == -1) shost 112 drivers/scsi/scsi_error.c if (time_before(jiffies, shost->last_reset + shost->eh_deadline) && shost 113 drivers/scsi/scsi_error.c shost->eh_deadline > -1) shost 189 drivers/scsi/scsi_error.c struct Scsi_Host *shost = sdev->host; shost 203 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 204 drivers/scsi/scsi_error.c if (shost->eh_deadline != -1 && !shost->last_reset) shost 205 drivers/scsi/scsi_error.c shost->last_reset = jiffies; shost 206 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 211 drivers/scsi/scsi_error.c queue_delayed_work(shost->tmf_work_q, &scmd->abort_work, HZ / 100); shost 235 drivers/scsi/scsi_error.c struct Scsi_Host *shost = scmd->device->host; shost 238 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 239 drivers/scsi/scsi_error.c shost->host_failed++; shost 240 drivers/scsi/scsi_error.c scsi_eh_wakeup(shost); shost 241 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 250 drivers/scsi/scsi_error.c struct Scsi_Host *shost = scmd->device->host; shost 254 drivers/scsi/scsi_error.c WARN_ON_ONCE(!shost->ehandler); shost 256 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 257 drivers/scsi/scsi_error.c if (scsi_host_set_state(shost, SHOST_RECOVERY)) { shost 258 drivers/scsi/scsi_error.c ret = scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY); shost 261 drivers/scsi/scsi_error.c if (shost->eh_deadline != -1 && !shost->last_reset) shost 262 drivers/scsi/scsi_error.c shost->last_reset = jiffies; shost 265 drivers/scsi/scsi_error.c list_add_tail(&scmd->eh_entry, &shost->eh_cmd_q); shost 266 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 352 drivers/scsi/scsi_error.c static inline void scsi_eh_prt_fail_stats(struct Scsi_Host *shost, shost 362 drivers/scsi/scsi_error.c shost_for_each_device(sdev, shost) { shost 375 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 385 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(2, shost_printk(KERN_INFO, shost, shost 1059 drivers/scsi/scsi_error.c struct Scsi_Host *shost = sdev->host; shost 1068 drivers/scsi/scsi_error.c shost->eh_action = &done; shost 1090 drivers/scsi/scsi_error.c rtn = shost->hostt->queuecommand(shost, scmd); shost 1110 drivers/scsi/scsi_error.c shost->eh_action = NULL; shost 1220 drivers/scsi/scsi_error.c struct Scsi_Host *shost; shost 1232 drivers/scsi/scsi_error.c shost = scmd->device->host; shost 1233 drivers/scsi/scsi_error.c if (scsi_host_eh_past_deadline(shost)) { shost 1402 drivers/scsi/scsi_error.c static int scsi_eh_stu(struct Scsi_Host *shost, shost 1409 drivers/scsi/scsi_error.c shost_for_each_device(sdev, shost) { shost 1410 drivers/scsi/scsi_error.c if (scsi_host_eh_past_deadline(shost)) { shost 1467 drivers/scsi/scsi_error.c static int scsi_eh_bus_device_reset(struct Scsi_Host *shost, shost 1475 drivers/scsi/scsi_error.c shost_for_each_device(sdev, shost) { shost 1476 drivers/scsi/scsi_error.c if (scsi_host_eh_past_deadline(shost)) { shost 1528 drivers/scsi/scsi_error.c static int scsi_eh_target_reset(struct Scsi_Host *shost, shost 1542 drivers/scsi/scsi_error.c if (scsi_host_eh_past_deadline(shost)) { shost 1547 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 1557 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 1563 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 1590 drivers/scsi/scsi_error.c static int scsi_eh_bus_reset(struct Scsi_Host *shost, shost 1606 drivers/scsi/scsi_error.c for (channel = 0; channel <= shost->max_channel; channel++) { shost 1607 drivers/scsi/scsi_error.c if (scsi_host_eh_past_deadline(shost)) { shost 1610 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 1631 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 1648 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 1662 drivers/scsi/scsi_error.c static int scsi_eh_host_reset(struct Scsi_Host *shost, shost 1675 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 1688 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 2005 drivers/scsi/scsi_error.c static void scsi_restart_operations(struct Scsi_Host *shost) shost 2015 drivers/scsi/scsi_error.c shost_for_each_device(sdev, shost) { shost 2028 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, "waking up host to restart\n")); shost 2030 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 2031 drivers/scsi/scsi_error.c if (scsi_host_set_state(shost, SHOST_RUNNING)) shost 2032 drivers/scsi/scsi_error.c if (scsi_host_set_state(shost, SHOST_CANCEL)) shost 2033 drivers/scsi/scsi_error.c BUG_ON(scsi_host_set_state(shost, SHOST_DEL)); shost 2034 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2036 drivers/scsi/scsi_error.c wake_up(&shost->host_wait); shost 2044 drivers/scsi/scsi_error.c scsi_run_host_queues(shost); shost 2054 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 2055 drivers/scsi/scsi_error.c if (shost->host_eh_scheduled) shost 2056 drivers/scsi/scsi_error.c if (scsi_host_set_state(shost, SHOST_RECOVERY)) shost 2057 drivers/scsi/scsi_error.c WARN_ON(scsi_host_set_state(shost, SHOST_CANCEL_RECOVERY)); shost 2058 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2067 drivers/scsi/scsi_error.c void scsi_eh_ready_devs(struct Scsi_Host *shost, shost 2071 drivers/scsi/scsi_error.c if (!scsi_eh_stu(shost, work_q, done_q)) shost 2072 drivers/scsi/scsi_error.c if (!scsi_eh_bus_device_reset(shost, work_q, done_q)) shost 2073 drivers/scsi/scsi_error.c if (!scsi_eh_target_reset(shost, work_q, done_q)) shost 2074 drivers/scsi/scsi_error.c if (!scsi_eh_bus_reset(shost, work_q, done_q)) shost 2075 drivers/scsi/scsi_error.c if (!scsi_eh_host_reset(shost, work_q, done_q)) shost 2140 drivers/scsi/scsi_error.c static void scsi_unjam_host(struct Scsi_Host *shost) shost 2146 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 2147 drivers/scsi/scsi_error.c list_splice_init(&shost->eh_cmd_q, &eh_work_q); shost 2148 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2150 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(1, scsi_eh_prt_fail_stats(shost, &eh_work_q)); shost 2153 drivers/scsi/scsi_error.c scsi_eh_ready_devs(shost, &eh_work_q, &eh_done_q); shost 2155 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 2156 drivers/scsi/scsi_error.c if (shost->eh_deadline != -1) shost 2157 drivers/scsi/scsi_error.c shost->last_reset = 0; shost 2158 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2172 drivers/scsi/scsi_error.c struct Scsi_Host *shost = data; shost 2191 drivers/scsi/scsi_error.c if ((shost->host_failed == 0 && shost->host_eh_scheduled == 0) || shost 2192 drivers/scsi/scsi_error.c shost->host_failed != scsi_host_busy(shost)) { shost 2194 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 2196 drivers/scsi/scsi_error.c shost->host_no)); shost 2203 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 2205 drivers/scsi/scsi_error.c shost->host_no, shost->host_eh_scheduled, shost 2206 drivers/scsi/scsi_error.c shost->host_failed, shost 2207 drivers/scsi/scsi_error.c scsi_host_busy(shost))); shost 2214 drivers/scsi/scsi_error.c if (!shost->eh_noresume && scsi_autopm_get_host(shost) != 0) { shost 2216 drivers/scsi/scsi_error.c shost_printk(KERN_ERR, shost, shost 2218 drivers/scsi/scsi_error.c shost->host_no)); shost 2222 drivers/scsi/scsi_error.c if (shost->transportt->eh_strategy_handler) shost 2223 drivers/scsi/scsi_error.c shost->transportt->eh_strategy_handler(shost); shost 2225 drivers/scsi/scsi_error.c scsi_unjam_host(shost); shost 2228 drivers/scsi/scsi_error.c shost->host_failed = 0; shost 2237 drivers/scsi/scsi_error.c scsi_restart_operations(shost); shost 2238 drivers/scsi/scsi_error.c if (!shost->eh_noresume) shost 2239 drivers/scsi/scsi_error.c scsi_autopm_put_host(shost); shost 2244 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 2246 drivers/scsi/scsi_error.c shost->host_no)); shost 2247 drivers/scsi/scsi_error.c shost->ehandler = NULL; shost 2272 drivers/scsi/scsi_error.c void scsi_report_bus_reset(struct Scsi_Host *shost, int channel) shost 2276 drivers/scsi/scsi_error.c __shost_for_each_device(sdev, shost) { shost 2305 drivers/scsi/scsi_error.c void scsi_report_device_reset(struct Scsi_Host *shost, int channel, int target) shost 2309 drivers/scsi/scsi_error.c __shost_for_each_device(sdev, shost) { shost 2331 drivers/scsi/scsi_error.c struct Scsi_Host *shost = dev->host; shost 2343 drivers/scsi/scsi_error.c if (scsi_autopm_get_host(shost) < 0) shost 2348 drivers/scsi/scsi_error.c shost->hostt->cmd_size, GFP_KERNEL); shost 2365 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 2366 drivers/scsi/scsi_error.c shost->tmf_in_progress = 1; shost 2367 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2400 drivers/scsi/scsi_error.c spin_lock_irqsave(shost->host_lock, flags); shost 2401 drivers/scsi/scsi_error.c shost->tmf_in_progress = 0; shost 2402 drivers/scsi/scsi_error.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2409 drivers/scsi/scsi_error.c shost_printk(KERN_INFO, shost, shost 2412 drivers/scsi/scsi_error.c wake_up(&shost->host_wait); shost 2413 drivers/scsi/scsi_error.c scsi_run_host_queues(shost); shost 2419 drivers/scsi/scsi_error.c scsi_autopm_put_host(shost); shost 82 drivers/scsi/scsi_lib.c int scsi_init_sense_cache(struct Scsi_Host *shost) shost 88 drivers/scsi/scsi_lib.c cache = scsi_select_sense_cache(shost->unchecked_isa_dma); shost 92 drivers/scsi/scsi_lib.c if (shost->unchecked_isa_dma) { shost 332 drivers/scsi/scsi_lib.c static void scsi_dec_host_busy(struct Scsi_Host *shost) shost 337 drivers/scsi/scsi_lib.c atomic_dec(&shost->host_busy); shost 338 drivers/scsi/scsi_lib.c if (unlikely(scsi_host_in_recovery(shost))) { shost 339 drivers/scsi/scsi_lib.c spin_lock_irqsave(shost->host_lock, flags); shost 340 drivers/scsi/scsi_lib.c if (shost->host_failed || shost->host_eh_scheduled) shost 341 drivers/scsi/scsi_lib.c scsi_eh_wakeup(shost); shost 342 drivers/scsi/scsi_lib.c spin_unlock_irqrestore(shost->host_lock, flags); shost 349 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = sdev->host; shost 352 drivers/scsi/scsi_lib.c scsi_dec_host_busy(shost); shost 374 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = current_sdev->host; shost 379 drivers/scsi/scsi_lib.c spin_lock_irqsave(shost->host_lock, flags); shost 381 drivers/scsi/scsi_lib.c spin_unlock_irqrestore(shost->host_lock, flags); shost 391 drivers/scsi/scsi_lib.c spin_lock_irqsave(shost->host_lock, flags); shost 401 drivers/scsi/scsi_lib.c spin_unlock_irqrestore(shost->host_lock, flags); shost 403 drivers/scsi/scsi_lib.c spin_lock_irqsave(shost->host_lock, flags); shost 408 drivers/scsi/scsi_lib.c spin_unlock_irqrestore(shost->host_lock, flags); shost 431 drivers/scsi/scsi_lib.c static inline bool scsi_host_is_busy(struct Scsi_Host *shost) shost 433 drivers/scsi/scsi_lib.c if (shost->can_queue > 0 && shost 434 drivers/scsi/scsi_lib.c atomic_read(&shost->host_busy) >= shost->can_queue) shost 436 drivers/scsi/scsi_lib.c if (atomic_read(&shost->host_blocked) > 0) shost 438 drivers/scsi/scsi_lib.c if (shost->host_self_blocked) shost 443 drivers/scsi/scsi_lib.c static void scsi_starved_list_run(struct Scsi_Host *shost) shost 449 drivers/scsi/scsi_lib.c spin_lock_irqsave(shost->host_lock, flags); shost 450 drivers/scsi/scsi_lib.c list_splice_init(&shost->starved_list, &starved_list); shost 465 drivers/scsi/scsi_lib.c if (scsi_host_is_busy(shost)) shost 473 drivers/scsi/scsi_lib.c &shost->starved_list); shost 490 drivers/scsi/scsi_lib.c spin_unlock_irqrestore(shost->host_lock, flags); shost 495 drivers/scsi/scsi_lib.c spin_lock_irqsave(shost->host_lock, flags); shost 498 drivers/scsi/scsi_lib.c list_splice(&starved_list, &shost->starved_list); shost 499 drivers/scsi/scsi_lib.c spin_unlock_irqrestore(shost->host_lock, flags); shost 536 drivers/scsi/scsi_lib.c void scsi_run_host_queues(struct Scsi_Host *shost) shost 540 drivers/scsi/scsi_lib.c shost_for_each_device(sdev, shost) shost 1108 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = sdev->host; shost 1111 drivers/scsi/scsi_lib.c if (shost->use_cmd_list) { shost 1122 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = sdev->host; shost 1125 drivers/scsi/scsi_lib.c if (shost->use_cmd_list) { shost 1313 drivers/scsi/scsi_lib.c static inline int scsi_target_queue_ready(struct Scsi_Host *shost, shost 1320 drivers/scsi/scsi_lib.c spin_lock_irq(shost->host_lock); shost 1323 drivers/scsi/scsi_lib.c spin_unlock_irq(shost->host_lock); shost 1327 drivers/scsi/scsi_lib.c spin_unlock_irq(shost->host_lock); shost 1354 drivers/scsi/scsi_lib.c spin_lock_irq(shost->host_lock); shost 1355 drivers/scsi/scsi_lib.c list_move_tail(&sdev->starved_entry, &shost->starved_list); shost 1356 drivers/scsi/scsi_lib.c spin_unlock_irq(shost->host_lock); shost 1369 drivers/scsi/scsi_lib.c struct Scsi_Host *shost, shost 1374 drivers/scsi/scsi_lib.c if (scsi_host_in_recovery(shost)) shost 1377 drivers/scsi/scsi_lib.c busy = atomic_inc_return(&shost->host_busy) - 1; shost 1378 drivers/scsi/scsi_lib.c if (atomic_read(&shost->host_blocked) > 0) { shost 1385 drivers/scsi/scsi_lib.c if (atomic_dec_return(&shost->host_blocked) > 0) shost 1389 drivers/scsi/scsi_lib.c shost_printk(KERN_INFO, shost, shost 1393 drivers/scsi/scsi_lib.c if (shost->can_queue > 0 && busy >= shost->can_queue) shost 1395 drivers/scsi/scsi_lib.c if (shost->host_self_blocked) shost 1400 drivers/scsi/scsi_lib.c spin_lock_irq(shost->host_lock); shost 1403 drivers/scsi/scsi_lib.c spin_unlock_irq(shost->host_lock); shost 1409 drivers/scsi/scsi_lib.c spin_lock_irq(shost->host_lock); shost 1411 drivers/scsi/scsi_lib.c list_add_tail(&sdev->starved_entry, &shost->starved_list); shost 1412 drivers/scsi/scsi_lib.c spin_unlock_irq(shost->host_lock); shost 1414 drivers/scsi/scsi_lib.c scsi_dec_host_busy(shost); shost 1433 drivers/scsi/scsi_lib.c struct Scsi_Host *shost; shost 1438 drivers/scsi/scsi_lib.c shost = sdev->host; shost 1446 drivers/scsi/scsi_lib.c if (scsi_host_in_recovery(shost) || scsi_device_is_busy(sdev)) shost 1573 drivers/scsi/scsi_lib.c static unsigned int scsi_mq_inline_sgl_size(struct Scsi_Host *shost) shost 1575 drivers/scsi/scsi_lib.c return min_t(unsigned int, shost->sg_tablesize, SCSI_INLINE_SG_CNT) * shost 1583 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = sdev->host; shost 1592 drivers/scsi/scsi_lib.c sg = (void *)cmd + sizeof(struct scsi_cmnd) + shost->hostt->cmd_size; shost 1595 drivers/scsi/scsi_lib.c if (scsi_host_get_prot(shost)) { shost 1650 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = sdev->host; shost 1666 drivers/scsi/scsi_lib.c if (!scsi_target_queue_ready(shost, sdev)) shost 1668 drivers/scsi/scsi_lib.c if (!scsi_host_queue_ready(q, shost, sdev)) shost 1700 drivers/scsi/scsi_lib.c scsi_dec_host_busy(shost); shost 1742 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = set->driver_data; shost 1743 drivers/scsi/scsi_lib.c const bool unchecked_isa_dma = shost->unchecked_isa_dma; shost 1755 drivers/scsi/scsi_lib.c if (scsi_host_get_prot(shost)) { shost 1757 drivers/scsi/scsi_lib.c shost->hostt->cmd_size; shost 1758 drivers/scsi/scsi_lib.c cmd->prot_sdb = (void *)sg + scsi_mq_inline_sgl_size(shost); shost 1775 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = container_of(set, struct Scsi_Host, tag_set); shost 1777 drivers/scsi/scsi_lib.c if (shost->hostt->map_queues) shost 1778 drivers/scsi/scsi_lib.c return shost->hostt->map_queues(shost); shost 1782 drivers/scsi/scsi_lib.c void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q) shost 1784 drivers/scsi/scsi_lib.c struct device *dev = shost->dma_dev; shost 1789 drivers/scsi/scsi_lib.c blk_queue_max_segments(q, min_t(unsigned short, shost->sg_tablesize, shost 1792 drivers/scsi/scsi_lib.c if (scsi_host_prot_dma(shost)) { shost 1793 drivers/scsi/scsi_lib.c shost->sg_prot_tablesize = shost 1794 drivers/scsi/scsi_lib.c min_not_zero(shost->sg_prot_tablesize, shost 1796 drivers/scsi/scsi_lib.c BUG_ON(shost->sg_prot_tablesize < shost->sg_tablesize); shost 1797 drivers/scsi/scsi_lib.c blk_queue_max_integrity_segments(q, shost->sg_prot_tablesize); shost 1801 drivers/scsi/scsi_lib.c shost->max_sectors = min_t(unsigned int, shost->max_sectors, shost 1804 drivers/scsi/scsi_lib.c blk_queue_max_hw_sectors(q, shost->max_sectors); shost 1805 drivers/scsi/scsi_lib.c if (shost->unchecked_isa_dma) shost 1807 drivers/scsi/scsi_lib.c blk_queue_segment_boundary(q, shost->dma_boundary); shost 1808 drivers/scsi/scsi_lib.c dma_set_seg_boundary(dev, shost->dma_boundary); shost 1810 drivers/scsi/scsi_lib.c blk_queue_max_segment_size(q, shost->max_segment_size); shost 1811 drivers/scsi/scsi_lib.c blk_queue_virt_boundary(q, shost->virt_boundary_mask); shost 1847 drivers/scsi/scsi_lib.c struct Scsi_Host *shost = sdev->host; shost 1849 drivers/scsi/scsi_lib.c shost->hostt->commit_rqs(shost, hctx->queue_num); shost 1882 drivers/scsi/scsi_lib.c int scsi_mq_setup_tags(struct Scsi_Host *shost) shost 1887 drivers/scsi/scsi_lib.c scsi_mq_inline_sgl_size(shost)); shost 1888 drivers/scsi/scsi_lib.c cmd_size = sizeof(struct scsi_cmnd) + shost->hostt->cmd_size + sgl_size; shost 1889 drivers/scsi/scsi_lib.c if (scsi_host_get_prot(shost)) shost 1893 drivers/scsi/scsi_lib.c memset(&shost->tag_set, 0, sizeof(shost->tag_set)); shost 1894 drivers/scsi/scsi_lib.c if (shost->hostt->commit_rqs) shost 1895 drivers/scsi/scsi_lib.c shost->tag_set.ops = &scsi_mq_ops; shost 1897 drivers/scsi/scsi_lib.c shost->tag_set.ops = &scsi_mq_ops_no_commit; shost 1898 drivers/scsi/scsi_lib.c shost->tag_set.nr_hw_queues = shost->nr_hw_queues ? : 1; shost 1899 drivers/scsi/scsi_lib.c shost->tag_set.queue_depth = shost->can_queue; shost 1900 drivers/scsi/scsi_lib.c shost->tag_set.cmd_size = cmd_size; shost 1901 drivers/scsi/scsi_lib.c shost->tag_set.numa_node = NUMA_NO_NODE; shost 1902 drivers/scsi/scsi_lib.c shost->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; shost 1903 drivers/scsi/scsi_lib.c shost->tag_set.flags |= shost 1904 drivers/scsi/scsi_lib.c BLK_ALLOC_POLICY_TO_MQ_FLAG(shost->hostt->tag_alloc_policy); shost 1905 drivers/scsi/scsi_lib.c shost->tag_set.driver_data = shost; shost 1907 drivers/scsi/scsi_lib.c return blk_mq_alloc_tag_set(&shost->tag_set); shost 1910 drivers/scsi/scsi_lib.c void scsi_mq_destroy_tags(struct Scsi_Host *shost) shost 1912 drivers/scsi/scsi_lib.c blk_mq_free_tag_set(&shost->tag_set); shost 1952 drivers/scsi/scsi_lib.c void scsi_block_requests(struct Scsi_Host *shost) shost 1954 drivers/scsi/scsi_lib.c shost->host_self_blocked = 1; shost 1978 drivers/scsi/scsi_lib.c void scsi_unblock_requests(struct Scsi_Host *shost) shost 1980 drivers/scsi/scsi_lib.c shost->host_self_blocked = 0; shost 1981 drivers/scsi/scsi_lib.c scsi_run_host_queues(shost); shost 333 drivers/scsi/scsi_pm.c int scsi_autopm_get_host(struct Scsi_Host *shost) shost 337 drivers/scsi/scsi_pm.c err = pm_runtime_get_sync(&shost->shost_gendev); shost 339 drivers/scsi/scsi_pm.c pm_runtime_put_sync(&shost->shost_gendev); shost 345 drivers/scsi/scsi_pm.c void scsi_autopm_put_host(struct Scsi_Host *shost) shost 347 drivers/scsi/scsi_pm.c pm_runtime_put_sync(&shost->shost_gendev); shost 33 drivers/scsi/scsi_priv.h int scsi_init_sense_cache(struct Scsi_Host *shost); shost 77 drivers/scsi/scsi_priv.h extern void scsi_eh_wakeup(struct Scsi_Host *shost); shost 79 drivers/scsi/scsi_priv.h void scsi_eh_ready_devs(struct Scsi_Host *shost, shost 93 drivers/scsi/scsi_priv.h extern void scsi_run_host_queues(struct Scsi_Host *shost); shost 97 drivers/scsi/scsi_priv.h extern int scsi_mq_setup_tags(struct Scsi_Host *shost); shost 98 drivers/scsi/scsi_priv.h extern void scsi_mq_destroy_tags(struct Scsi_Host *shost); shost 116 drivers/scsi/scsi_priv.h # define scsi_proc_host_add(shost) do { } while (0) shost 117 drivers/scsi/scsi_priv.h # define scsi_proc_host_rm(shost) do { } while (0) shost 52 drivers/scsi/scsi_proc.c struct Scsi_Host *shost = PDE_DATA(file_inode(file)); shost 59 drivers/scsi/scsi_proc.c if (!shost->hostt->write_info) shost 67 drivers/scsi/scsi_proc.c ret = shost->hostt->write_info(shost, page, count); shost 76 drivers/scsi/scsi_proc.c struct Scsi_Host *shost = m->private; shost 77 drivers/scsi/scsi_proc.c return shost->hostt->show_info(m, shost); shost 138 drivers/scsi/scsi_proc.c void scsi_proc_host_add(struct Scsi_Host *shost) shost 140 drivers/scsi/scsi_proc.c struct scsi_host_template *sht = shost->hostt; shost 147 drivers/scsi/scsi_proc.c sprintf(name,"%d", shost->host_no); shost 149 drivers/scsi/scsi_proc.c sht->proc_dir, &proc_scsi_fops, shost); shost 152 drivers/scsi/scsi_proc.c "%s\n", __func__, shost->host_no, shost 160 drivers/scsi/scsi_proc.c void scsi_proc_host_rm(struct Scsi_Host *shost) shost 164 drivers/scsi/scsi_proc.c if (!shost->hostt->proc_dir) shost 167 drivers/scsi/scsi_proc.c sprintf(name,"%d", shost->host_no); shost 168 drivers/scsi/scsi_proc.c remove_proc_entry(name, shost->hostt->proc_dir); shost 245 drivers/scsi/scsi_proc.c struct Scsi_Host *shost; shost 248 drivers/scsi/scsi_proc.c shost = scsi_host_lookup(host); shost 249 drivers/scsi/scsi_proc.c if (!shost) shost 252 drivers/scsi/scsi_proc.c if (shost->transportt->user_scan) shost 253 drivers/scsi/scsi_proc.c error = shost->transportt->user_scan(shost, channel, id, lun); shost 255 drivers/scsi/scsi_proc.c error = scsi_scan_host_selected(shost, channel, id, lun, shost 257 drivers/scsi/scsi_proc.c scsi_host_put(shost); shost 274 drivers/scsi/scsi_proc.c struct Scsi_Host *shost; shost 277 drivers/scsi/scsi_proc.c shost = scsi_host_lookup(host); shost 278 drivers/scsi/scsi_proc.c if (!shost) shost 280 drivers/scsi/scsi_proc.c sdev = scsi_device_lookup(shost, channel, id, lun); shost 287 drivers/scsi/scsi_proc.c scsi_host_put(shost); shost 121 drivers/scsi/scsi_scan.c struct Scsi_Host *shost; shost 149 drivers/scsi/scsi_scan.c data->shost = NULL; shost 220 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 222 drivers/scsi/scsi_scan.c sdev = kzalloc(sizeof(*sdev) + shost->transportt->device_size, shost 230 drivers/scsi/scsi_scan.c sdev->host = shost; shost 285 drivers/scsi/scsi_scan.c if (shost->hostt->slave_alloc) { shost 286 drivers/scsi/scsi_scan.c ret = shost->hostt->slave_alloc(sdev); shost 311 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(dev->parent); shost 317 drivers/scsi/scsi_scan.c spin_lock_irqsave(shost->host_lock, flags); shost 318 drivers/scsi/scsi_scan.c if (shost->hostt->target_destroy) shost 319 drivers/scsi/scsi_scan.c shost->hostt->target_destroy(starget); shost 321 drivers/scsi/scsi_scan.c spin_unlock_irqrestore(shost->host_lock, flags); shost 349 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(parent); shost 353 drivers/scsi/scsi_scan.c list_for_each_entry(starget, &shost->__targets, siblings) { shost 413 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(parent); shost 417 drivers/scsi/scsi_scan.c + shost->transportt->target_size; shost 431 drivers/scsi/scsi_scan.c dev_set_name(dev, "target%d:%d:%d", shost->host_no, channel, id); shost 443 drivers/scsi/scsi_scan.c spin_lock_irqsave(shost->host_lock, flags); shost 449 drivers/scsi/scsi_scan.c list_add_tail(&starget->siblings, &shost->__targets); shost 450 drivers/scsi/scsi_scan.c spin_unlock_irqrestore(shost->host_lock, flags); shost 453 drivers/scsi/scsi_scan.c if (shost->hostt->target_alloc) { shost 454 drivers/scsi/scsi_scan.c error = shost->hostt->target_alloc(starget); shost 476 drivers/scsi/scsi_scan.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1053 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1083 drivers/scsi/scsi_scan.c ((shost->unchecked_isa_dma) ? __GFP_DMA : 0)); shost 1157 drivers/scsi/scsi_scan.c res = scsi_add_lun(sdev, result, &bflags, shost->async_scan); shost 1203 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1208 drivers/scsi/scsi_scan.c max_dev_lun = min(max_scsi_luns, shost->max_lun); shost 1215 drivers/scsi/scsi_scan.c max_dev_lun = shost->max_lun; shost 1242 drivers/scsi/scsi_scan.c max_dev_lun = shost->max_lun; shost 1301 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 1316 drivers/scsi/scsi_scan.c (!(bflags & BLIST_REPORTLUN2) || shost->max_lun <= 8)) shost 1460 drivers/scsi/scsi_scan.c struct scsi_device *__scsi_add_device(struct Scsi_Host *shost, uint channel, shost 1464 drivers/scsi/scsi_scan.c struct device *parent = &shost->shost_gendev; shost 1475 drivers/scsi/scsi_scan.c mutex_lock(&shost->scan_mutex); shost 1476 drivers/scsi/scsi_scan.c if (!shost->async_scan) shost 1479 drivers/scsi/scsi_scan.c if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { shost 1481 drivers/scsi/scsi_scan.c scsi_autopm_put_host(shost); shost 1483 drivers/scsi/scsi_scan.c mutex_unlock(&shost->scan_mutex); shost 1534 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(parent); shost 1539 drivers/scsi/scsi_scan.c if (shost->this_id == id) shost 1605 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = dev_to_shost(parent); shost 1614 drivers/scsi/scsi_scan.c mutex_lock(&shost->scan_mutex); shost 1615 drivers/scsi/scsi_scan.c if (!shost->async_scan) shost 1618 drivers/scsi/scsi_scan.c if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { shost 1620 drivers/scsi/scsi_scan.c scsi_autopm_put_host(shost); shost 1622 drivers/scsi/scsi_scan.c mutex_unlock(&shost->scan_mutex); shost 1626 drivers/scsi/scsi_scan.c static void scsi_scan_channel(struct Scsi_Host *shost, unsigned int channel, shost 1633 drivers/scsi/scsi_scan.c for (id = 0; id < shost->max_id; ++id) { shost 1643 drivers/scsi/scsi_scan.c if (shost->reverse_ordering) shost 1647 drivers/scsi/scsi_scan.c order_id = shost->max_id - id - 1; shost 1650 drivers/scsi/scsi_scan.c __scsi_scan_target(&shost->shost_gendev, channel, shost 1654 drivers/scsi/scsi_scan.c __scsi_scan_target(&shost->shost_gendev, channel, shost 1658 drivers/scsi/scsi_scan.c int scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, shost 1662 drivers/scsi/scsi_scan.c SCSI_LOG_SCAN_BUS(3, shost_printk (KERN_INFO, shost, shost 1666 drivers/scsi/scsi_scan.c if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || shost 1667 drivers/scsi/scsi_scan.c ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || shost 1668 drivers/scsi/scsi_scan.c ((lun != SCAN_WILD_CARD) && (lun >= shost->max_lun))) shost 1671 drivers/scsi/scsi_scan.c mutex_lock(&shost->scan_mutex); shost 1672 drivers/scsi/scsi_scan.c if (!shost->async_scan) shost 1675 drivers/scsi/scsi_scan.c if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { shost 1677 drivers/scsi/scsi_scan.c for (channel = 0; channel <= shost->max_channel; shost 1679 drivers/scsi/scsi_scan.c scsi_scan_channel(shost, channel, id, lun, shost 1682 drivers/scsi/scsi_scan.c scsi_scan_channel(shost, channel, id, lun, rescan); shost 1683 drivers/scsi/scsi_scan.c scsi_autopm_put_host(shost); shost 1685 drivers/scsi/scsi_scan.c mutex_unlock(&shost->scan_mutex); shost 1690 drivers/scsi/scsi_scan.c static void scsi_sysfs_add_devices(struct Scsi_Host *shost) shost 1693 drivers/scsi/scsi_scan.c shost_for_each_device(sdev, shost) { shost 1700 drivers/scsi/scsi_scan.c if (!scsi_host_scan_allowed(shost) || shost 1716 drivers/scsi/scsi_scan.c static struct async_scan_data *scsi_prep_async_scan(struct Scsi_Host *shost) shost 1724 drivers/scsi/scsi_scan.c if (shost->async_scan) { shost 1725 drivers/scsi/scsi_scan.c shost_printk(KERN_DEBUG, shost, "%s called twice\n", __func__); shost 1732 drivers/scsi/scsi_scan.c data->shost = scsi_host_get(shost); shost 1733 drivers/scsi/scsi_scan.c if (!data->shost) shost 1737 drivers/scsi/scsi_scan.c mutex_lock(&shost->scan_mutex); shost 1738 drivers/scsi/scsi_scan.c spin_lock_irqsave(shost->host_lock, flags); shost 1739 drivers/scsi/scsi_scan.c shost->async_scan = 1; shost 1740 drivers/scsi/scsi_scan.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1741 drivers/scsi/scsi_scan.c mutex_unlock(&shost->scan_mutex); shost 1766 drivers/scsi/scsi_scan.c struct Scsi_Host *shost; shost 1772 drivers/scsi/scsi_scan.c shost = data->shost; shost 1774 drivers/scsi/scsi_scan.c mutex_lock(&shost->scan_mutex); shost 1776 drivers/scsi/scsi_scan.c if (!shost->async_scan) { shost 1777 drivers/scsi/scsi_scan.c shost_printk(KERN_INFO, shost, "%s called twice\n", __func__); shost 1779 drivers/scsi/scsi_scan.c mutex_unlock(&shost->scan_mutex); shost 1785 drivers/scsi/scsi_scan.c scsi_sysfs_add_devices(shost); shost 1787 drivers/scsi/scsi_scan.c spin_lock_irqsave(shost->host_lock, flags); shost 1788 drivers/scsi/scsi_scan.c shost->async_scan = 0; shost 1789 drivers/scsi/scsi_scan.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1791 drivers/scsi/scsi_scan.c mutex_unlock(&shost->scan_mutex); shost 1802 drivers/scsi/scsi_scan.c scsi_autopm_put_host(shost); shost 1803 drivers/scsi/scsi_scan.c scsi_host_put(shost); shost 1807 drivers/scsi/scsi_scan.c static void do_scsi_scan_host(struct Scsi_Host *shost) shost 1809 drivers/scsi/scsi_scan.c if (shost->hostt->scan_finished) { shost 1811 drivers/scsi/scsi_scan.c if (shost->hostt->scan_start) shost 1812 drivers/scsi/scsi_scan.c shost->hostt->scan_start(shost); shost 1814 drivers/scsi/scsi_scan.c while (!shost->hostt->scan_finished(shost, jiffies - start)) shost 1817 drivers/scsi/scsi_scan.c scsi_scan_host_selected(shost, SCAN_WILD_CARD, SCAN_WILD_CARD, shost 1825 drivers/scsi/scsi_scan.c struct Scsi_Host *shost = data->shost; shost 1827 drivers/scsi/scsi_scan.c do_scsi_scan_host(shost); shost 1835 drivers/scsi/scsi_scan.c void scsi_scan_host(struct Scsi_Host *shost) shost 1842 drivers/scsi/scsi_scan.c if (scsi_autopm_get_host(shost) < 0) shost 1845 drivers/scsi/scsi_scan.c data = scsi_prep_async_scan(shost); shost 1847 drivers/scsi/scsi_scan.c do_scsi_scan_host(shost); shost 1848 drivers/scsi/scsi_scan.c scsi_autopm_put_host(shost); shost 1861 drivers/scsi/scsi_scan.c void scsi_forget_host(struct Scsi_Host *shost) shost 1867 drivers/scsi/scsi_scan.c spin_lock_irqsave(shost->host_lock, flags); shost 1868 drivers/scsi/scsi_scan.c list_for_each_entry(sdev, &shost->__devices, siblings) { shost 1871 drivers/scsi/scsi_scan.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1875 drivers/scsi/scsi_scan.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1895 drivers/scsi/scsi_scan.c struct scsi_device *scsi_get_host_dev(struct Scsi_Host *shost) shost 1900 drivers/scsi/scsi_scan.c mutex_lock(&shost->scan_mutex); shost 1901 drivers/scsi/scsi_scan.c if (!scsi_host_scan_allowed(shost)) shost 1903 drivers/scsi/scsi_scan.c starget = scsi_alloc_target(&shost->shost_gendev, 0, shost->this_id); shost 1914 drivers/scsi/scsi_scan.c mutex_unlock(&shost->scan_mutex); shost 132 drivers/scsi/scsi_sysfs.c static int scsi_scan(struct Scsi_Host *shost, const char *str) shost 147 drivers/scsi/scsi_sysfs.c if (shost->transportt->user_scan) shost 148 drivers/scsi/scsi_sysfs.c res = shost->transportt->user_scan(shost, channel, id, lun); shost 150 drivers/scsi/scsi_sysfs.c res = scsi_scan_host_selected(shost, channel, id, lun, shost 164 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); \ shost 165 drivers/scsi/scsi_sysfs.c return snprintf (buf, 20, format_string, shost->field); \ shost 187 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 190 drivers/scsi/scsi_sysfs.c res = scsi_scan(shost, buf); shost 202 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 216 drivers/scsi/scsi_sysfs.c if (scsi_host_set_state(shost, state)) shost 224 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 225 drivers/scsi/scsi_sysfs.c const char *name = scsi_host_state_name(shost->shost_state); shost 257 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 258 drivers/scsi/scsi_sysfs.c unsigned int supported_mode = shost->hostt->supported_mode; shost 273 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 275 drivers/scsi/scsi_sysfs.c if (shost->active_mode == MODE_UNKNOWN) shost 278 drivers/scsi/scsi_sysfs.c return show_shost_mode(shost->active_mode, buf); shost 297 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 298 drivers/scsi/scsi_sysfs.c struct scsi_host_template *sht = shost->hostt; shost 307 drivers/scsi/scsi_sysfs.c ret = sht->host_reset(shost, type); shost 323 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 325 drivers/scsi/scsi_sysfs.c if (shost->eh_deadline == -1) shost 327 drivers/scsi/scsi_sysfs.c return sprintf(buf, "%u\n", shost->eh_deadline / HZ); shost 334 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 338 drivers/scsi/scsi_sysfs.c if (shost->transportt && shost 339 drivers/scsi/scsi_sysfs.c (shost->transportt->eh_strategy_handler || shost 340 drivers/scsi/scsi_sysfs.c !shost->hostt->eh_host_reset_handler)) shost 353 drivers/scsi/scsi_sysfs.c spin_lock_irqsave(shost->host_lock, flags); shost 354 drivers/scsi/scsi_sysfs.c if (scsi_host_in_recovery(shost)) shost 358 drivers/scsi/scsi_sysfs.c shost->eh_deadline = -1; shost 360 drivers/scsi/scsi_sysfs.c shost->eh_deadline = deadline * HZ; shost 364 drivers/scsi/scsi_sysfs.c spin_unlock_irqrestore(shost->host_lock, flags); shost 384 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = class_to_shost(dev); shost 385 drivers/scsi/scsi_sysfs.c return snprintf(buf, 20, "%d\n", scsi_host_busy(shost)); shost 1444 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = sdev->host; shost 1446 drivers/scsi/scsi_sysfs.c mutex_lock(&shost->scan_mutex); shost 1448 drivers/scsi/scsi_sysfs.c mutex_unlock(&shost->scan_mutex); shost 1454 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1458 drivers/scsi/scsi_sysfs.c spin_lock_irqsave(shost->host_lock, flags); shost 1460 drivers/scsi/scsi_sysfs.c list_for_each_entry(sdev, &shost->__devices, siblings) { shost 1474 drivers/scsi/scsi_sysfs.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1477 drivers/scsi/scsi_sysfs.c spin_lock_irqsave(shost->host_lock, flags); shost 1480 drivers/scsi/scsi_sysfs.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1493 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = dev_to_shost(dev->parent); shost 1498 drivers/scsi/scsi_sysfs.c spin_lock_irqsave(shost->host_lock, flags); shost 1499 drivers/scsi/scsi_sysfs.c list_for_each_entry(starget, &shost->__targets, siblings) { shost 1510 drivers/scsi/scsi_sysfs.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1516 drivers/scsi/scsi_sysfs.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1540 drivers/scsi/scsi_sysfs.c int scsi_sysfs_add_host(struct Scsi_Host *shost) shost 1545 drivers/scsi/scsi_sysfs.c if (shost->hostt->shost_attrs) { shost 1546 drivers/scsi/scsi_sysfs.c for (i = 0; shost->hostt->shost_attrs[i]; i++) { shost 1547 drivers/scsi/scsi_sysfs.c error = device_create_file(&shost->shost_dev, shost 1548 drivers/scsi/scsi_sysfs.c shost->hostt->shost_attrs[i]); shost 1554 drivers/scsi/scsi_sysfs.c transport_register_device(&shost->shost_gendev); shost 1555 drivers/scsi/scsi_sysfs.c transport_configure_device(&shost->shost_gendev); shost 1568 drivers/scsi/scsi_sysfs.c struct Scsi_Host *shost = sdev->host; shost 1592 drivers/scsi/scsi_sysfs.c !shost->no_scsi2_lun_in_cdb) shost 1596 drivers/scsi/scsi_sysfs.c spin_lock_irqsave(shost->host_lock, flags); shost 1598 drivers/scsi/scsi_sysfs.c list_add_tail(&sdev->siblings, &shost->__devices); shost 1599 drivers/scsi/scsi_sysfs.c spin_unlock_irqrestore(shost->host_lock, flags); shost 5 drivers/scsi/scsi_transport_api.h void scsi_schedule_eh(struct Scsi_Host *shost); shost 29 drivers/scsi/scsi_transport_fc.c static int fc_vport_setup(struct Scsi_Host *shost, int channel, shost 378 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = dev_to_shost(dev); shost 379 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 433 drivers/scsi/scsi_transport_fc.c "fc_wq_%d", shost->host_no); shost 441 drivers/scsi/scsi_transport_fc.c "fc_dl_%d", shost->host_no); shost 450 drivers/scsi/scsi_transport_fc.c fc_bsg_hostadd(shost, fc_host); shost 459 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = dev_to_shost(dev); shost 460 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 527 drivers/scsi/scsi_transport_fc.c fc_host_post_fc_event(struct Scsi_Host *shost, u32 event_number, shost 565 drivers/scsi/scsi_transport_fc.c event->host_no = shost->host_no; shost 582 drivers/scsi/scsi_transport_fc.c __func__, shost->host_no, shost 600 drivers/scsi/scsi_transport_fc.c fc_host_post_event(struct Scsi_Host *shost, u32 event_number, shost 603 drivers/scsi/scsi_transport_fc.c fc_host_post_fc_event(shost, event_number, event_code, shost 622 drivers/scsi/scsi_transport_fc.c fc_host_post_vendor_event(struct Scsi_Host *shost, u32 event_number, shost 625 drivers/scsi/scsi_transport_fc.c fc_host_post_fc_event(shost, event_number, FCH_EVT_VENDOR_UNIQUE, shost 640 drivers/scsi/scsi_transport_fc.c fc_host_fpin_rcv(struct Scsi_Host *shost, u32 fpin_len, char *fpin_buf) shost 642 drivers/scsi/scsi_transport_fc.c fc_host_post_fc_event(shost, fc_get_event_number(), shost 695 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); \ shost 696 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 713 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); \ shost 714 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 856 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 857 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 1010 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \ shost 1011 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 1065 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = vport_to_shost(vport); \ shost 1066 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 1081 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = vport_to_shost(vport); \ shost 1082 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 1100 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = vport_to_shost(vport); \ shost 1101 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 1273 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = vport_to_shost(vport); shost 1276 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 1278 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1282 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1284 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &vport->vport_delete_work); shost 1301 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = vport_to_shost(vport); shost 1302 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 1333 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); \ shost 1334 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 1336 drivers/scsi/scsi_transport_fc.c i->f->get_host_##field(shost); \ shost 1337 drivers/scsi/scsi_transport_fc.c return snprintf(buf, sz, format_string, cast fc_host_##field(shost)); \ shost 1347 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); \ shost 1348 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 1354 drivers/scsi/scsi_transport_fc.c i->f->set_host_##field(shost, val); \ shost 1364 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); \ shost 1365 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 1373 drivers/scsi/scsi_transport_fc.c memcpy(fc_host_##field(shost), buf, cnt); \ shost 1374 drivers/scsi/scsi_transport_fc.c i->f->set_host_##field(shost); \ shost 1400 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); \ shost 1401 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); \ shost 1404 drivers/scsi/scsi_transport_fc.c i->f->get_host_##title(shost); \ shost 1405 drivers/scsi/scsi_transport_fc.c name = get_fc_##title##_name(fc_host_##title(shost)); \ shost 1443 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); \ shost 1444 drivers/scsi/scsi_transport_fc.c return snprintf(buf, sz, format_string, cast fc_host_##field(shost)); \ shost 1478 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1480 drivers/scsi/scsi_transport_fc.c if (fc_host_supported_classes(shost) == FC_COS_UNSPECIFIED) shost 1483 drivers/scsi/scsi_transport_fc.c return get_fc_cos_names(fc_host_supported_classes(shost), buf); shost 1492 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1493 drivers/scsi/scsi_transport_fc.c return (ssize_t)show_fc_fc4s(buf, fc_host_supported_fc4s(shost)); shost 1502 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1504 drivers/scsi/scsi_transport_fc.c if (fc_host_supported_speeds(shost) == FC_PORTSPEED_UNKNOWN) shost 1507 drivers/scsi/scsi_transport_fc.c return get_fc_port_speed_names(fc_host_supported_speeds(shost), buf); shost 1535 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1536 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 1539 drivers/scsi/scsi_transport_fc.c i->f->get_host_active_fc4s(shost); shost 1541 drivers/scsi/scsi_transport_fc.c return (ssize_t)show_fc_fc4s(buf, fc_host_active_fc4s(shost)); shost 1550 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1551 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 1554 drivers/scsi/scsi_transport_fc.c i->f->get_host_speed(shost); shost 1556 drivers/scsi/scsi_transport_fc.c if (fc_host_speed(shost) == FC_PORTSPEED_UNKNOWN) shost 1559 drivers/scsi/scsi_transport_fc.c return get_fc_port_speed_names(fc_host_speed(shost), buf); shost 1584 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1587 drivers/scsi/scsi_transport_fc.c name = get_fc_tgtid_bind_type_name(fc_host_tgtid_bind_type(shost)); shost 1600 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1609 drivers/scsi/scsi_transport_fc.c if (val != fc_host_tgtid_bind_type(shost)) { shost 1610 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 1611 drivers/scsi/scsi_transport_fc.c while (!list_empty(&fc_host_rport_bindings(shost))) { shost 1613 drivers/scsi/scsi_transport_fc.c &fc_host_rport_bindings(shost), peers); shost 1616 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->rport_delete_work); shost 1618 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1621 drivers/scsi/scsi_transport_fc.c fc_host_tgtid_bind_type(shost) = val; shost 1633 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1634 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 1639 drivers/scsi/scsi_transport_fc.c ret = i->f->issue_fc_host_lip(shost); shost 1654 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1655 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 1664 drivers/scsi/scsi_transport_fc.c fc_host_dev_loss_tmo(shost) = val; shost 1665 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 1668 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1687 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1688 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 1697 drivers/scsi/scsi_transport_fc.c stats = (i->f->get_fc_host_stats)(shost); shost 1751 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1752 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 1756 drivers/scsi/scsi_transport_fc.c i->f->reset_fc_host_stats(shost); shost 1846 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1876 drivers/scsi/scsi_transport_fc.c stat = fc_vport_setup(shost, 0, &shost->shost_gendev, &vid, &vport); shost 1893 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 1894 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 1917 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 1930 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1945 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost; shost 1951 drivers/scsi/scsi_transport_fc.c shost = dev_to_shost(dev); shost 1952 drivers/scsi/scsi_transport_fc.c if (!shost->transportt || shost->transportt->host_attrs.ac.class shost 1956 drivers/scsi/scsi_transport_fc.c i = to_fc_internal(shost->transportt); shost 1964 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost; shost 1970 drivers/scsi/scsi_transport_fc.c shost = dev_to_shost(dev->parent); shost 1971 drivers/scsi/scsi_transport_fc.c if (!shost->transportt || shost->transportt->host_attrs.ac.class shost 1975 drivers/scsi/scsi_transport_fc.c i = to_fc_internal(shost->transportt); shost 1996 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost; shost 2002 drivers/scsi/scsi_transport_fc.c shost = dev_to_shost(dev->parent); shost 2003 drivers/scsi/scsi_transport_fc.c if (!shost->transportt || shost->transportt->host_attrs.ac.class shost 2007 drivers/scsi/scsi_transport_fc.c i = to_fc_internal(shost->transportt); shost 2029 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost; shost 2036 drivers/scsi/scsi_transport_fc.c shost = vport_to_shost(vport); shost 2037 drivers/scsi/scsi_transport_fc.c if (!shost->transportt || shost->transportt->host_attrs.ac.class shost 2041 drivers/scsi/scsi_transport_fc.c i = to_fc_internal(shost->transportt); shost 2086 drivers/scsi/scsi_transport_fc.c fc_user_scan_tgt(struct Scsi_Host *shost, uint channel, uint id, u64 lun) shost 2091 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2093 drivers/scsi/scsi_transport_fc.c list_for_each_entry(rport, &fc_host_rports(shost), peers) { shost 2102 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2109 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2119 drivers/scsi/scsi_transport_fc.c fc_user_scan(struct Scsi_Host *shost, uint channel, uint id, u64 lun) shost 2124 drivers/scsi/scsi_transport_fc.c if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || shost 2125 drivers/scsi/scsi_transport_fc.c ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || shost 2126 drivers/scsi/scsi_transport_fc.c ((lun != SCAN_WILD_CARD) && (lun > shost->max_lun))) shost 2131 drivers/scsi/scsi_transport_fc.c chhi = shost->max_channel + 1; shost 2139 drivers/scsi/scsi_transport_fc.c tgthi = shost->max_id; shost 2147 drivers/scsi/scsi_transport_fc.c fc_user_scan_tgt(shost, chlo, tgtlo, lun); shost 2318 drivers/scsi/scsi_transport_fc.c fc_queue_work(struct Scsi_Host *shost, struct work_struct *work) shost 2320 drivers/scsi/scsi_transport_fc.c if (unlikely(!fc_host_work_q(shost))) { shost 2323 drivers/scsi/scsi_transport_fc.c "when no workqueue created.\n", shost->hostt->name); shost 2329 drivers/scsi/scsi_transport_fc.c return queue_work(fc_host_work_q(shost), work); shost 2337 drivers/scsi/scsi_transport_fc.c fc_flush_work(struct Scsi_Host *shost) shost 2339 drivers/scsi/scsi_transport_fc.c if (!fc_host_work_q(shost)) { shost 2342 drivers/scsi/scsi_transport_fc.c "when no workqueue created.\n", shost->hostt->name); shost 2347 drivers/scsi/scsi_transport_fc.c flush_workqueue(fc_host_work_q(shost)); shost 2360 drivers/scsi/scsi_transport_fc.c fc_queue_devloss_work(struct Scsi_Host *shost, struct delayed_work *work, shost 2363 drivers/scsi/scsi_transport_fc.c if (unlikely(!fc_host_devloss_work_q(shost))) { shost 2366 drivers/scsi/scsi_transport_fc.c "when no workqueue created.\n", shost->hostt->name); shost 2372 drivers/scsi/scsi_transport_fc.c return queue_delayed_work(fc_host_devloss_work_q(shost), work, delay); shost 2380 drivers/scsi/scsi_transport_fc.c fc_flush_devloss(struct Scsi_Host *shost) shost 2382 drivers/scsi/scsi_transport_fc.c if (!fc_host_devloss_work_q(shost)) { shost 2385 drivers/scsi/scsi_transport_fc.c "when no workqueue created.\n", shost->hostt->name); shost 2390 drivers/scsi/scsi_transport_fc.c flush_workqueue(fc_host_devloss_work_q(shost)); shost 2410 drivers/scsi/scsi_transport_fc.c fc_remove_host(struct Scsi_Host *shost) shost 2415 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 2418 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2423 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &vport->vport_delete_work); shost 2431 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->rport_delete_work); shost 2438 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->rport_delete_work); shost 2441 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2444 drivers/scsi/scsi_transport_fc.c scsi_flush_work(shost); shost 2464 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 2465 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 2504 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 2505 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 2516 drivers/scsi/scsi_transport_fc.c scsi_flush_work(shost); shost 2523 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2525 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2527 drivers/scsi/scsi_transport_fc.c fc_flush_devloss(shost); shost 2529 drivers/scsi/scsi_transport_fc.c fc_flush_devloss(shost); shost 2531 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2534 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2547 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2553 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2563 drivers/scsi/scsi_transport_fc.c scsi_host_put(shost); /* for fc_host->rport list */ shost 2582 drivers/scsi/scsi_transport_fc.c fc_remote_port_create(struct Scsi_Host *shost, int channel, shost 2585 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 2586 drivers/scsi/scsi_transport_fc.c struct fc_internal *fci = to_fc_internal(shost->transportt); shost 2619 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2628 drivers/scsi/scsi_transport_fc.c scsi_host_get(shost); /* for fc_host->rport list */ shost 2630 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2634 drivers/scsi/scsi_transport_fc.c dev->parent = get_device(&shost->shost_gendev); /* parent reference */ shost 2637 drivers/scsi/scsi_transport_fc.c shost->host_no, channel, rport->number); shost 2648 drivers/scsi/scsi_transport_fc.c fc_bsg_rportadd(shost, rport); shost 2654 drivers/scsi/scsi_transport_fc.c scsi_queue_work(shost, &rport->scan_work); shost 2661 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2663 drivers/scsi/scsi_transport_fc.c scsi_host_put(shost); /* for fc_host->rport list */ shost 2664 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2709 drivers/scsi/scsi_transport_fc.c fc_remote_port_add(struct Scsi_Host *shost, int channel, shost 2712 drivers/scsi/scsi_transport_fc.c struct fc_internal *fci = to_fc_internal(shost->transportt); shost 2713 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 2719 drivers/scsi/scsi_transport_fc.c fc_flush_work(shost); shost 2726 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2761 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2794 drivers/scsi/scsi_transport_fc.c fc_flush_devloss(shost); shost 2796 drivers/scsi/scsi_transport_fc.c fc_flush_devloss(shost); shost 2798 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2804 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2810 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, shost 2813 drivers/scsi/scsi_transport_fc.c scsi_queue_work(shost, shost 2815 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, shost 2874 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2881 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2884 drivers/scsi/scsi_transport_fc.c rport = fc_remote_port_create(shost, channel, ids); shost 2946 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 2958 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 2961 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2982 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 2989 drivers/scsi/scsi_transport_fc.c fc_queue_devloss_work(shost, &rport->fail_io_work, shost 2993 drivers/scsi/scsi_transport_fc.c fc_queue_devloss_work(shost, &rport->dev_loss_work, timeout * HZ); shost 3020 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 3021 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 3025 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3036 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3052 drivers/scsi/scsi_transport_fc.c fc_flush_devloss(shost); shost 3054 drivers/scsi/scsi_transport_fc.c fc_flush_devloss(shost); shost 3056 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3060 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3063 drivers/scsi/scsi_transport_fc.c fc_flush_work(shost); shost 3067 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3069 drivers/scsi/scsi_transport_fc.c scsi_queue_work(shost, &rport->scan_work); shost 3070 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3087 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 3088 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 3089 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 3093 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3108 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3110 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->stgt_delete_work); shost 3116 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3132 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->rport_delete_work); shost 3133 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3163 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3166 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3194 drivers/scsi/scsi_transport_fc.c fc_queue_work(shost, &rport->stgt_delete_work); shost 3199 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3241 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 3242 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 3253 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3255 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3274 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = rport_to_shost(rport); shost 3277 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3280 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3282 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3284 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3334 drivers/scsi/scsi_transport_fc.c fc_vport_setup(struct Scsi_Host *shost, int channel, struct device *pdev, shost 3337 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 3338 drivers/scsi/scsi_transport_fc.c struct fc_internal *fci = to_fc_internal(shost->transportt); shost 3365 drivers/scsi/scsi_transport_fc.c vport->shost = shost; shost 3370 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3373 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3380 drivers/scsi/scsi_transport_fc.c scsi_host_get(shost); /* for fc_host->vport list */ shost 3382 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3389 drivers/scsi/scsi_transport_fc.c shost->host_no, channel, vport->number); shost 3410 drivers/scsi/scsi_transport_fc.c if (pdev != &shost->shost_gendev) { shost 3411 drivers/scsi/scsi_transport_fc.c error = sysfs_create_link(&shost->shost_gendev.kobj, shost 3419 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3421 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3425 drivers/scsi/scsi_transport_fc.c shost->host_no, channel); shost 3436 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3438 drivers/scsi/scsi_transport_fc.c scsi_host_put(shost); /* for fc_host->vport list */ shost 3440 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3458 drivers/scsi/scsi_transport_fc.c fc_vport_create(struct Scsi_Host *shost, int channel, shost 3464 drivers/scsi/scsi_transport_fc.c stat = fc_vport_setup(shost, channel, &shost->shost_gendev, shost 3483 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = vport_to_shost(vport); shost 3484 drivers/scsi/scsi_transport_fc.c struct fc_host_attrs *fc_host = shost_to_fc_host(shost); shost 3485 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 3495 drivers/scsi/scsi_transport_fc.c spin_lock_irqsave(shost->host_lock, flags); shost 3501 drivers/scsi/scsi_transport_fc.c scsi_host_put(shost); /* for fc_host->vport list */ shost 3503 drivers/scsi/scsi_transport_fc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 3508 drivers/scsi/scsi_transport_fc.c if (dev->parent != &shost->shost_gendev) shost 3509 drivers/scsi/scsi_transport_fc.c sysfs_remove_link(&shost->shost_gendev.kobj, dev_name(dev)); shost 3541 drivers/scsi/scsi_transport_fc.c dev_name(&vport->dev), vport->shost->host_no, shost 3558 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 3560 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 3590 drivers/scsi/scsi_transport_fc.c static int fc_bsg_host_dispatch(struct Scsi_Host *shost, struct bsg_job *job) shost 3592 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 3636 drivers/scsi/scsi_transport_fc.c if ((shost->hostt->vendor_id == 0L) || shost 3638 drivers/scsi/scsi_transport_fc.c shost->hostt->vendor_id)) { shost 3683 drivers/scsi/scsi_transport_fc.c static int fc_bsg_rport_dispatch(struct Scsi_Host *shost, struct bsg_job *job) shost 3685 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 3735 drivers/scsi/scsi_transport_fc.c struct Scsi_Host *shost = fc_bsg_to_shost(job); shost 3738 drivers/scsi/scsi_transport_fc.c return fc_bsg_rport_dispatch(shost, job); shost 3740 drivers/scsi/scsi_transport_fc.c return fc_bsg_host_dispatch(shost, job); shost 3780 drivers/scsi/scsi_transport_fc.c fc_bsg_hostadd(struct Scsi_Host *shost, struct fc_host_attrs *fc_host) shost 3782 drivers/scsi/scsi_transport_fc.c struct device *dev = &shost->shost_gendev; shost 3783 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 3793 drivers/scsi/scsi_transport_fc.c "fc_host%d", shost->host_no); shost 3800 drivers/scsi/scsi_transport_fc.c shost->host_no); shost 3803 drivers/scsi/scsi_transport_fc.c __scsi_init_queue(shost, q); shost 3815 drivers/scsi/scsi_transport_fc.c fc_bsg_rportadd(struct Scsi_Host *shost, struct fc_rport *rport) shost 3818 drivers/scsi/scsi_transport_fc.c struct fc_internal *i = to_fc_internal(shost->transportt); shost 3832 drivers/scsi/scsi_transport_fc.c __scsi_init_queue(shost, q); shost 751 drivers/scsi/scsi_transport_iscsi.c iscsi_create_iface(struct Scsi_Host *shost, struct iscsi_transport *transport, shost 767 drivers/scsi/scsi_transport_iscsi.c iface->dev.parent = get_device(&shost->shost_gendev); shost 769 drivers/scsi/scsi_transport_iscsi.c dev_set_name(&iface->dev, "ipv4-iface-%u-%u", shost->host_no, shost 772 drivers/scsi/scsi_transport_iscsi.c dev_set_name(&iface->dev, "ipv6-iface-%u-%u", shost->host_no, shost 1241 drivers/scsi/scsi_transport_iscsi.c iscsi_create_flashnode_sess(struct Scsi_Host *shost, int index, shost 1256 drivers/scsi/scsi_transport_iscsi.c fnode_sess->dev.parent = &shost->shost_gendev; shost 1258 drivers/scsi/scsi_transport_iscsi.c shost->host_no, index); shost 1289 drivers/scsi/scsi_transport_iscsi.c iscsi_create_flashnode_conn(struct Scsi_Host *shost, shost 1306 drivers/scsi/scsi_transport_iscsi.c shost->host_no, fnode_sess->target_id); shost 1372 drivers/scsi/scsi_transport_iscsi.c iscsi_get_flashnode_by_index(struct Scsi_Host *shost, uint32_t idx) shost 1377 drivers/scsi/scsi_transport_iscsi.c dev = device_find_child(&shost->shost_gendev, &idx, shost 1399 drivers/scsi/scsi_transport_iscsi.c iscsi_find_flashnode_sess(struct Scsi_Host *shost, void *data, shost 1402 drivers/scsi/scsi_transport_iscsi.c return device_find_child(&shost->shost_gendev, data, fn); shost 1470 drivers/scsi/scsi_transport_iscsi.c void iscsi_destroy_all_flashnode(struct Scsi_Host *shost) shost 1472 drivers/scsi/scsi_transport_iscsi.c device_for_each_child(&shost->shost_gendev, NULL, shost 1486 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = iscsi_job_to_shost(job); shost 1489 drivers/scsi/scsi_transport_iscsi.c struct iscsi_internal *i = to_iscsi_internal(shost->transportt); shost 1503 drivers/scsi/scsi_transport_iscsi.c if ((shost->hostt->vendor_id == 0L) || shost 1505 drivers/scsi/scsi_transport_iscsi.c shost->hostt->vendor_id)) { shost 1541 drivers/scsi/scsi_transport_iscsi.c iscsi_bsg_host_add(struct Scsi_Host *shost, struct iscsi_cls_host *ihost) shost 1543 drivers/scsi/scsi_transport_iscsi.c struct device *dev = &shost->shost_gendev; shost 1544 drivers/scsi/scsi_transport_iscsi.c struct iscsi_internal *i = to_iscsi_internal(shost->transportt); shost 1551 drivers/scsi/scsi_transport_iscsi.c snprintf(bsg_name, sizeof(bsg_name), "iscsi_host%d", shost->host_no); shost 1554 drivers/scsi/scsi_transport_iscsi.c shost_printk(KERN_ERR, shost, "bsg interface failed to " shost 1558 drivers/scsi/scsi_transport_iscsi.c __scsi_init_queue(shost, q); shost 1567 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = dev_to_shost(dev); shost 1568 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 1574 drivers/scsi/scsi_transport_iscsi.c iscsi_bsg_host_add(shost, ihost); shost 1583 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = dev_to_shost(dev); shost 1584 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 1728 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 1730 drivers/scsi/scsi_transport_iscsi.c shost = iscsi_session_to_shost(session); shost 1731 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 1752 drivers/scsi/scsi_transport_iscsi.c void iscsi_host_for_each_session(struct Scsi_Host *shost, shost 1755 drivers/scsi/scsi_transport_iscsi.c device_for_each_child(&shost->shost_gendev, fn, shost 1768 drivers/scsi/scsi_transport_iscsi.c int iscsi_scan_finished(struct Scsi_Host *shost, unsigned long time) shost 1770 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 1790 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 1802 drivers/scsi/scsi_transport_iscsi.c shost = iscsi_session_to_shost(session); shost 1803 drivers/scsi/scsi_transport_iscsi.c ihost = shost->shost_data; shost 1829 drivers/scsi/scsi_transport_iscsi.c static int iscsi_user_scan(struct Scsi_Host *shost, uint channel, shost 1839 drivers/scsi/scsi_transport_iscsi.c return device_for_each_child(&shost->shost_gendev, &scan_data, shost 1847 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(session); shost 1848 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 1928 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(session); shost 1929 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 1948 drivers/scsi/scsi_transport_iscsi.c if (shost->hostt->scan_finished) { shost 1949 drivers/scsi/scsi_transport_iscsi.c if (scsi_queue_work(shost, &session->scan_work)) shost 2002 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = iscsi_session_to_shost(session); shost 2003 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 2034 drivers/scsi/scsi_transport_iscsi.c iscsi_alloc_session(struct Scsi_Host *shost, struct iscsi_transport *transport, shost 2058 drivers/scsi/scsi_transport_iscsi.c scsi_host_get(shost); shost 2059 drivers/scsi/scsi_transport_iscsi.c session->dev.parent = &shost->shost_gendev; shost 2126 drivers/scsi/scsi_transport_iscsi.c iscsi_create_session(struct Scsi_Host *shost, struct iscsi_transport *transport, shost 2131 drivers/scsi/scsi_transport_iscsi.c session = iscsi_alloc_session(shost, transport, dd_size); shost 2377 drivers/scsi/scsi_transport_iscsi.c int iscsi_offload_mesg(struct Scsi_Host *shost, shost 2399 drivers/scsi/scsi_transport_iscsi.c ev->r.req_path.host_no = shost->host_no; shost 2402 drivers/scsi/scsi_transport_iscsi.c ev->r.notify_if_down.host_no = shost->host_no; shost 2632 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 2641 drivers/scsi/scsi_transport_iscsi.c shost = iscsi_session_to_shost(session); shost 2658 drivers/scsi/scsi_transport_iscsi.c ev->r.d_session.host_no = shost->host_no; shost 2662 drivers/scsi/scsi_transport_iscsi.c ev->r.c_session_ret.host_no = shost->host_no; shost 2666 drivers/scsi/scsi_transport_iscsi.c ev->r.unbind_session.host_no = shost->host_no; shost 2701 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 2709 drivers/scsi/scsi_transport_iscsi.c shost = iscsi_session_to_shost(session); shost 2710 drivers/scsi/scsi_transport_iscsi.c ev->r.c_session_ret.host_no = shost->host_no; shost 2792 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = NULL; shost 2799 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.ep_connect_through_host.host_no); shost 2800 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 2811 drivers/scsi/scsi_transport_iscsi.c ep = transport->ep_connect(shost, dst_addr, non_blocking); shost 2819 drivers/scsi/scsi_transport_iscsi.c if (shost) shost 2820 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 2882 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 2889 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.tgt_dscvr.host_no); shost 2890 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 2898 drivers/scsi/scsi_transport_iscsi.c err = transport->tgt_dscvr(shost, ev->u.tgt_dscvr.type, shost 2900 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 2909 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 2915 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.set_host_param.host_no); shost 2916 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 2922 drivers/scsi/scsi_transport_iscsi.c err = transport->set_host_param(shost, ev->u.set_host_param.param, shost 2924 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 2931 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 2938 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.set_path.host_no); shost 2939 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 2946 drivers/scsi/scsi_transport_iscsi.c err = transport->set_path(shost, params); shost 2948 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 2975 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 2981 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.set_iface_params.host_no); shost 2982 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 2988 drivers/scsi/scsi_transport_iscsi.c err = transport->set_iface_param(shost, data, len); shost 2989 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 2996 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3003 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.iscsi_ping.host_no); shost 3004 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3011 drivers/scsi/scsi_transport_iscsi.c err = transport->send_ping(shost, ev->u.iscsi_ping.iface_num, shost 3016 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3024 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = NULL; shost 3044 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.get_chap.host_no); shost 3045 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3073 drivers/scsi/scsi_transport_iscsi.c err = transport->get_chap(shost, ev->u.get_chap.chap_tbl_idx, shost 3085 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3093 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3099 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.set_path.host_no); shost 3100 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3106 drivers/scsi/scsi_transport_iscsi.c err = transport->set_chap(shost, data, len); shost 3107 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3114 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3120 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.delete_chap.host_no); shost 3121 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3127 drivers/scsi/scsi_transport_iscsi.c err = transport->delete_chap(shost, ev->u.delete_chap.chap_tbl_idx); shost 3128 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3160 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3172 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.set_flashnode.host_no); shost 3173 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3181 drivers/scsi/scsi_transport_iscsi.c fnode_sess = iscsi_get_flashnode_by_index(shost, idx); shost 3203 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3213 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3222 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.new_flashnode.host_no); shost 3223 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3230 drivers/scsi/scsi_transport_iscsi.c index = transport->new_flashnode(shost, data, len); shost 3238 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3247 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3257 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.del_flashnode.host_no); shost 3258 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3266 drivers/scsi/scsi_transport_iscsi.c fnode_sess = iscsi_get_flashnode_by_index(shost, idx); shost 3278 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3287 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3299 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.login_flashnode.host_no); shost 3300 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3308 drivers/scsi/scsi_transport_iscsi.c fnode_sess = iscsi_get_flashnode_by_index(shost, idx); shost 3330 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3339 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3351 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.logout_flashnode.host_no); shost 3352 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3360 drivers/scsi/scsi_transport_iscsi.c fnode_sess = iscsi_get_flashnode_by_index(shost, idx); shost 3383 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3392 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 3401 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.logout_flashnode_sid.host_no); shost 3402 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3420 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 3430 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = NULL; shost 3449 drivers/scsi/scsi_transport_iscsi.c shost = scsi_host_lookup(ev->u.get_host_stats.host_no); shost 3450 drivers/scsi/scsi_transport_iscsi.c if (!shost) { shost 3477 drivers/scsi/scsi_transport_iscsi.c err = transport->get_host_stats(shost, buf, host_stats_size); shost 3492 drivers/scsi/scsi_transport_iscsi.c scsi_host_put(shost); shost 4257 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = transport_class_to_shost(dev); \ shost 4258 drivers/scsi/scsi_transport_iscsi.c struct iscsi_internal *priv = to_iscsi_internal(shost->transportt); \ shost 4259 drivers/scsi/scsi_transport_iscsi.c return priv->iscsi_transport->get_host_param(shost, param, buf); \ shost 4288 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost = transport_class_to_shost(cdev); shost 4289 drivers/scsi/scsi_transport_iscsi.c struct iscsi_internal *priv = to_iscsi_internal(shost->transportt); shost 4331 drivers/scsi/scsi_transport_iscsi.c char *iscsi_get_port_speed_name(struct Scsi_Host *shost) shost 4335 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 4357 drivers/scsi/scsi_transport_iscsi.c char *iscsi_get_port_state_name(struct Scsi_Host *shost) shost 4361 drivers/scsi/scsi_transport_iscsi.c struct iscsi_cls_host *ihost = shost->shost_data; shost 4378 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 4385 drivers/scsi/scsi_transport_iscsi.c shost = iscsi_session_to_shost(session); shost 4386 drivers/scsi/scsi_transport_iscsi.c if (!shost->transportt) shost 4389 drivers/scsi/scsi_transport_iscsi.c priv = to_iscsi_internal(shost->transportt); shost 4401 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 4409 drivers/scsi/scsi_transport_iscsi.c shost = iscsi_session_to_shost(session); shost 4411 drivers/scsi/scsi_transport_iscsi.c if (!shost->transportt) shost 4414 drivers/scsi/scsi_transport_iscsi.c priv = to_iscsi_internal(shost->transportt); shost 4424 drivers/scsi/scsi_transport_iscsi.c struct Scsi_Host *shost; shost 4430 drivers/scsi/scsi_transport_iscsi.c shost = dev_to_shost(dev); shost 4431 drivers/scsi/scsi_transport_iscsi.c if (!shost->transportt || shost 4432 drivers/scsi/scsi_transport_iscsi.c shost->transportt->host_attrs.ac.class != &iscsi_host_class.class) shost 4435 drivers/scsi/scsi_transport_iscsi.c priv = to_iscsi_internal(shost->transportt); shost 174 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(job->dev); shost 186 drivers/scsi/scsi_transport_sas.c to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); shost 190 drivers/scsi/scsi_transport_sas.c static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) shost 194 drivers/scsi/scsi_transport_sas.c if (!to_sas_internal(shost->transportt)->f->smp_handler) { shost 195 drivers/scsi/scsi_transport_sas.c printk("%s can't handle SMP requests\n", shost->hostt->name); shost 208 drivers/scsi/scsi_transport_sas.c snprintf(name, sizeof(name), "sas_host%d", shost->host_no); shost 209 drivers/scsi/scsi_transport_sas.c q = bsg_setup_queue(&shost->shost_gendev, name, shost 213 drivers/scsi/scsi_transport_sas.c to_sas_host_attrs(shost)->q = q; shost 226 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(dev); shost 227 drivers/scsi/scsi_transport_sas.c struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); shost 235 drivers/scsi/scsi_transport_sas.c if (sas_bsg_initialize(shost, NULL)) shost 237 drivers/scsi/scsi_transport_sas.c shost->host_no); shost 245 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(dev); shost 246 drivers/scsi/scsi_transport_sas.c struct request_queue *q = to_sas_host_attrs(shost)->q; shost 258 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost; shost 263 drivers/scsi/scsi_transport_sas.c shost = dev_to_shost(dev); shost 265 drivers/scsi/scsi_transport_sas.c if (!shost->transportt) shost 267 drivers/scsi/scsi_transport_sas.c if (shost->transportt->host_attrs.ac.class != shost 271 drivers/scsi/scsi_transport_sas.c i = to_sas_internal(shost->transportt); shost 309 drivers/scsi/scsi_transport_sas.c void sas_remove_host(struct Scsi_Host *shost) shost 311 drivers/scsi/scsi_transport_sas.c sas_remove_children(&shost->shost_gendev); shost 312 drivers/scsi/scsi_transport_sas.c scsi_remove_host(shost); shost 465 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \ shost 466 drivers/scsi/scsi_transport_sas.c struct sas_internal *i = to_sas_internal(shost->transportt); \ shost 497 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \ shost 498 drivers/scsi/scsi_transport_sas.c struct sas_internal *i = to_sas_internal(shost->transportt); \ shost 528 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 529 drivers/scsi/scsi_transport_sas.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 576 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 577 drivers/scsi/scsi_transport_sas.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 624 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 625 drivers/scsi/scsi_transport_sas.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 638 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost; shost 643 drivers/scsi/scsi_transport_sas.c shost = dev_to_shost(dev->parent); shost 645 drivers/scsi/scsi_transport_sas.c if (!shost->transportt) shost 647 drivers/scsi/scsi_transport_sas.c if (shost->transportt->host_attrs.ac.class != shost 651 drivers/scsi/scsi_transport_sas.c i = to_sas_internal(shost->transportt); shost 658 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 659 drivers/scsi/scsi_transport_sas.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 681 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(parent); shost 697 drivers/scsi/scsi_transport_sas.c dev_set_name(&phy->dev, "phy-%d:%d:%d", shost->host_no, shost 700 drivers/scsi/scsi_transport_sas.c dev_set_name(&phy->dev, "phy-%d:%d", shost->host_no, number); shost 804 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost; shost 809 drivers/scsi/scsi_transport_sas.c shost = dev_to_shost(dev->parent); shost 811 drivers/scsi/scsi_transport_sas.c if (!shost->transportt) shost 813 drivers/scsi/scsi_transport_sas.c if (shost->transportt->host_attrs.ac.class != shost 817 drivers/scsi/scsi_transport_sas.c i = to_sas_internal(shost->transportt); shost 870 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(parent); shost 889 drivers/scsi/scsi_transport_sas.c dev_set_name(&port->dev, "port-%d:%d:%d", shost->host_no, shost 892 drivers/scsi/scsi_transport_sas.c dev_set_name(&port->dev, "port-%d:%d", shost->host_no, shost 916 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(parent); shost 917 drivers/scsi/scsi_transport_sas.c struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); shost 1183 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 1184 drivers/scsi/scsi_transport_sas.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 1203 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); shost 1204 drivers/scsi/scsi_transport_sas.c struct sas_internal *i = to_sas_internal(shost->transportt); shost 1325 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost; shost 1330 drivers/scsi/scsi_transport_sas.c shost = dev_to_shost(dev->parent->parent); shost 1332 drivers/scsi/scsi_transport_sas.c if (!shost->transportt) shost 1334 drivers/scsi/scsi_transport_sas.c if (shost->transportt->host_attrs.ac.class != shost 1338 drivers/scsi/scsi_transport_sas.c i = to_sas_internal(shost->transportt); shost 1345 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost; shost 1351 drivers/scsi/scsi_transport_sas.c shost = dev_to_shost(dev->parent->parent); shost 1354 drivers/scsi/scsi_transport_sas.c if (!shost->transportt) shost 1356 drivers/scsi/scsi_transport_sas.c if (shost->transportt->host_attrs.ac.class != shost 1360 drivers/scsi/scsi_transport_sas.c i = to_sas_internal(shost->transportt); shost 1368 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost; shost 1374 drivers/scsi/scsi_transport_sas.c shost = dev_to_shost(dev->parent->parent); shost 1377 drivers/scsi/scsi_transport_sas.c if (!shost->transportt) shost 1379 drivers/scsi/scsi_transport_sas.c if (shost->transportt->host_attrs.ac.class != shost 1383 drivers/scsi/scsi_transport_sas.c i = to_sas_internal(shost->transportt); shost 1430 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(&parent->dev); shost 1444 drivers/scsi/scsi_transport_sas.c shost->host_no, rphy->scsi_target_id, shost 1448 drivers/scsi/scsi_transport_sas.c shost->host_no, parent->port_identifier); shost 1470 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(&parent->dev); shost 1472 drivers/scsi/scsi_transport_sas.c struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); shost 1489 drivers/scsi/scsi_transport_sas.c shost->host_no, rdev->rphy.scsi_target_id); shost 1507 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(parent->dev.parent); shost 1508 drivers/scsi/scsi_transport_sas.c struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); shost 1521 drivers/scsi/scsi_transport_sas.c if (sas_bsg_initialize(shost, rphy)) shost 1566 drivers/scsi/scsi_transport_sas.c struct Scsi_Host *shost = dev_to_shost(rphy->dev.parent->parent); shost 1567 drivers/scsi/scsi_transport_sas.c struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); shost 1656 drivers/scsi/scsi_transport_sas.c static int sas_user_scan(struct Scsi_Host *shost, uint channel, shost 1659 drivers/scsi/scsi_transport_sas.c struct sas_host_attrs *sas_host = to_sas_host_attrs(shost); shost 169 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = dev_to_shost(dev); shost 171 drivers/scsi/scsi_transport_spi.c spi_signalling(shost) = SPI_SIGNAL_UNKNOWN; shost 189 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost; shost 194 drivers/scsi/scsi_transport_spi.c shost = dev_to_shost(dev); shost 195 drivers/scsi/scsi_transport_spi.c if (!shost->transportt || shost->transportt->host_attrs.ac.class shost 199 drivers/scsi/scsi_transport_spi.c return &shost->transportt->host_attrs.ac == cont; shost 302 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \ shost 304 drivers/scsi/scsi_transport_spi.c struct spi_internal *i = to_spi_internal(shost->transportt); \ shost 319 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \ shost 320 drivers/scsi/scsi_transport_spi.c struct spi_internal *i = to_spi_internal(shost->transportt); \ shost 337 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); \ shost 338 drivers/scsi/scsi_transport_spi.c struct spi_internal *i = to_spi_internal(shost->transportt); \ shost 481 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 482 drivers/scsi/scsi_transport_spi.c struct spi_internal *i = to_spi_internal(shost->transportt); shost 497 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 498 drivers/scsi/scsi_transport_spi.c struct spi_internal *i = to_spi_internal(shost->transportt); shost 525 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 526 drivers/scsi/scsi_transport_spi.c struct spi_internal *i = to_spi_internal(shost->transportt); shost 559 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = transport_class_to_shost(cdev); shost 560 drivers/scsi/scsi_transport_spi.c struct spi_internal *i = to_spi_internal(shost->transportt); shost 563 drivers/scsi/scsi_transport_spi.c i->f->get_signalling(shost); shost 565 drivers/scsi/scsi_transport_spi.c return sprintf(buf, "%s\n", spi_signal_to_string(spi_signalling(shost))); shost 571 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = transport_class_to_shost(dev); shost 572 drivers/scsi/scsi_transport_spi.c struct spi_internal *i = to_spi_internal(shost->transportt); shost 579 drivers/scsi/scsi_transport_spi.c i->f->set_signalling(shost, type); shost 591 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = transport_class_to_shost(cdev); shost 593 drivers/scsi/scsi_transport_spi.c return sprintf(buf, "%s\n", shost->max_id == 16 ? "wide" : "narrow"); shost 602 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = transport_class_to_shost(cdev); shost 604 drivers/scsi/scsi_transport_spi.c return sprintf(buf, "%d\n", shost->this_id); shost 854 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = sdev->host; shost 936 drivers/scsi/scsi_transport_spi.c i->f->get_signalling(shost); shost 937 drivers/scsi/scsi_transport_spi.c if (spi_signalling(shost) == SPI_SIGNAL_SE || shost 938 drivers/scsi/scsi_transport_spi.c spi_signalling(shost) == SPI_SIGNAL_HVD || shost 1369 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost; shost 1376 drivers/scsi/scsi_transport_spi.c shost = sdev->host; shost 1377 drivers/scsi/scsi_transport_spi.c if (!shost->transportt || shost->transportt->host_attrs.ac.class shost 1383 drivers/scsi/scsi_transport_spi.c i = to_spi_internal(shost->transportt); shost 1392 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost; shost 1399 drivers/scsi/scsi_transport_spi.c shost = dev_to_shost(dev->parent); shost 1400 drivers/scsi/scsi_transport_spi.c if (!shost->transportt || shost->transportt->host_attrs.ac.class shost 1404 drivers/scsi/scsi_transport_spi.c i = to_spi_internal(shost->transportt); shost 1439 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = transport_class_to_shost(cdev); shost 1440 drivers/scsi/scsi_transport_spi.c struct spi_internal *si = to_spi_internal(shost->transportt); shost 1462 drivers/scsi/scsi_transport_spi.c struct Scsi_Host *shost = transport_class_to_shost(cdev); shost 1463 drivers/scsi/scsi_transport_spi.c struct spi_internal *si = to_spi_internal(shost->transportt); shost 62 drivers/scsi/scsi_transport_srp.c static inline struct srp_rport *shost_to_rport(struct Scsi_Host *shost) shost 66 drivers/scsi/scsi_transport_srp.c WARN_ON_ONCE(device_for_each_child(&shost->shost_gendev, &child, shost 107 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = dev_to_shost(dev); shost 108 drivers/scsi/scsi_transport_srp.c struct srp_host_attrs *srp_host = to_srp_host_attrs(shost); shost 161 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = dev_to_shost(dev); shost 162 drivers/scsi/scsi_transport_srp.c struct srp_internal *i = to_srp_internal(shost->transportt); shost 382 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); shost 387 drivers/scsi/scsi_transport_srp.c shost_printk(KERN_ERR, shost, shost 400 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); shost 415 drivers/scsi/scsi_transport_srp.c i = to_srp_internal(shost->transportt); shost 428 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); shost 431 drivers/scsi/scsi_transport_srp.c dev_name(&rport->dev), dev_name(&shost->shost_gendev)); shost 447 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); shost 448 drivers/scsi/scsi_transport_srp.c struct srp_internal *i = to_srp_internal(shost->transportt); shost 451 drivers/scsi/scsi_transport_srp.c dev_name(&rport->dev), dev_name(&shost->shost_gendev)); shost 463 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); shost 471 drivers/scsi/scsi_transport_srp.c pr_debug("%s current state: %d\n", dev_name(&shost->shost_gendev), shost 481 drivers/scsi/scsi_transport_srp.c pr_debug("%s new state: %d\n", dev_name(&shost->shost_gendev), shost 483 drivers/scsi/scsi_transport_srp.c scsi_target_block(&shost->shost_gendev); shost 534 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = rport_to_shost(rport); shost 535 drivers/scsi/scsi_transport_srp.c struct srp_internal *i = to_srp_internal(shost->transportt); shost 539 drivers/scsi/scsi_transport_srp.c pr_debug("SCSI host %s\n", dev_name(&shost->shost_gendev)); shost 544 drivers/scsi/scsi_transport_srp.c scsi_target_block(&shost->shost_gendev); shost 547 drivers/scsi/scsi_transport_srp.c dev_name(&shost->shost_gendev), rport->state, res); shost 554 drivers/scsi/scsi_transport_srp.c scsi_target_unblock(&shost->shost_gendev, SDEV_RUNNING); shost 560 drivers/scsi/scsi_transport_srp.c shost_for_each_device(sdev, shost) { shost 573 drivers/scsi/scsi_transport_srp.c scsi_target_unblock(&shost->shost_gendev, shost 577 drivers/scsi/scsi_transport_srp.c scsi_target_unblock(&shost->shost_gendev, shost 601 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost = sdev->host; shost 602 drivers/scsi/scsi_transport_srp.c struct srp_internal *i = to_srp_internal(shost->transportt); shost 603 drivers/scsi/scsi_transport_srp.c struct srp_rport *rport = shost_to_rport(shost); shost 629 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost; shost 635 drivers/scsi/scsi_transport_srp.c shost = dev_to_shost(dev->parent); shost 636 drivers/scsi/scsi_transport_srp.c if (!shost->transportt) shost 638 drivers/scsi/scsi_transport_srp.c if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) shost 641 drivers/scsi/scsi_transport_srp.c i = to_srp_internal(shost->transportt); shost 647 drivers/scsi/scsi_transport_srp.c struct Scsi_Host *shost; shost 653 drivers/scsi/scsi_transport_srp.c shost = dev_to_shost(dev); shost 654 drivers/scsi/scsi_transport_srp.c if (!shost->transportt) shost 656 drivers/scsi/scsi_transport_srp.c if (shost->transportt->host_attrs.ac.class != &srp_host_class.class) shost 659 drivers/scsi/scsi_transport_srp.c i = to_srp_internal(shost->transportt); shost 690 drivers/scsi/scsi_transport_srp.c struct srp_rport *srp_rport_add(struct Scsi_Host *shost, shost 694 drivers/scsi/scsi_transport_srp.c struct device *parent = &shost->shost_gendev; shost 695 drivers/scsi/scsi_transport_srp.c struct srp_internal *i = to_srp_internal(shost->transportt); shost 723 drivers/scsi/scsi_transport_srp.c id = atomic_inc_return(&to_srp_host_attrs(shost)->next_port_id); shost 724 drivers/scsi/scsi_transport_srp.c dev_set_name(&rport->dev, "port-%d:%d", shost->host_no, id); shost 774 drivers/scsi/scsi_transport_srp.c void srp_remove_host(struct Scsi_Host *shost) shost 776 drivers/scsi/scsi_transport_srp.c device_for_each_child(&shost->shost_gendev, NULL, do_srp_rport_del); shost 399 drivers/scsi/ses.c struct Scsi_Host *shost; shost 414 drivers/scsi/ses.c if (sdev->host != sed->shost) shost 1400 drivers/scsi/smartpqi/smartpqi.h static inline struct pqi_ctrl_info *shost_to_hba(struct Scsi_Host *shost) shost 1402 drivers/scsi/smartpqi/smartpqi.h void *hostdata = shost_priv(shost); shost 1432 drivers/scsi/smartpqi/smartpqi.h void pqi_sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, shost 1435 drivers/scsi/smartpqi/smartpqi.h int pqi_add_sas_host(struct Scsi_Host *shost, struct pqi_ctrl_info *ctrl_info); shost 59 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_scan_start(struct Scsi_Host *shost); shost 2196 drivers/scsi/smartpqi/smartpqi_init.c static void pqi_scan_start(struct Scsi_Host *shost) shost 2200 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(shost); shost 2209 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_scan_finished(struct Scsi_Host *shost, shost 2214 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_priv(shost); shost 5317 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_scsi_queue_command(struct Scsi_Host *shost, shost 5328 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(shost); shost 5731 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost; shost 5735 drivers/scsi/smartpqi/smartpqi_init.c shost = scmd->device->host; shost 5736 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(shost); shost 5741 drivers/scsi/smartpqi/smartpqi_init.c shost->host_no, device->bus, device->target, device->lun); shost 5759 drivers/scsi/smartpqi/smartpqi_init.c shost->host_no, device->bus, device->target, device->lun, shost 5810 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_map_queues(struct Scsi_Host *shost) shost 5812 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost); shost 5814 drivers/scsi/smartpqi/smartpqi_init.c return blk_mq_pci_map_queues(&shost->tag_set.map[HCTX_TYPE_DEFAULT], shost 6106 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost; shost 6109 drivers/scsi/smartpqi/smartpqi_init.c shost = class_to_shost(dev); shost 6110 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(shost); shost 6118 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost; shost 6121 drivers/scsi/smartpqi/smartpqi_init.c shost = class_to_shost(dev); shost 6122 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(shost); shost 6131 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost; shost 6134 drivers/scsi/smartpqi/smartpqi_init.c shost = class_to_shost(dev); shost 6135 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(shost); shost 6143 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost; shost 6146 drivers/scsi/smartpqi/smartpqi_init.c shost = class_to_shost(dev); shost 6147 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(shost); shost 6155 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost; shost 6158 drivers/scsi/smartpqi/smartpqi_init.c shost = class_to_shost(dev); shost 6159 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(shost); shost 6167 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost = class_to_shost(dev); shost 6169 drivers/scsi/smartpqi/smartpqi_init.c pqi_scan_start(shost); shost 6497 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost; shost 6499 drivers/scsi/smartpqi/smartpqi_init.c shost = scsi_host_alloc(&pqi_driver_template, sizeof(ctrl_info)); shost 6500 drivers/scsi/smartpqi/smartpqi_init.c if (!shost) { shost 6507 drivers/scsi/smartpqi/smartpqi_init.c shost->io_port = 0; shost 6508 drivers/scsi/smartpqi/smartpqi_init.c shost->n_io_port = 0; shost 6509 drivers/scsi/smartpqi/smartpqi_init.c shost->this_id = -1; shost 6510 drivers/scsi/smartpqi/smartpqi_init.c shost->max_channel = PQI_MAX_BUS; shost 6511 drivers/scsi/smartpqi/smartpqi_init.c shost->max_cmd_len = MAX_COMMAND_SIZE; shost 6512 drivers/scsi/smartpqi/smartpqi_init.c shost->max_lun = ~0; shost 6513 drivers/scsi/smartpqi/smartpqi_init.c shost->max_id = ~0; shost 6514 drivers/scsi/smartpqi/smartpqi_init.c shost->max_sectors = ctrl_info->max_sectors; shost 6515 drivers/scsi/smartpqi/smartpqi_init.c shost->can_queue = ctrl_info->scsi_ml_can_queue; shost 6516 drivers/scsi/smartpqi/smartpqi_init.c shost->cmd_per_lun = shost->can_queue; shost 6517 drivers/scsi/smartpqi/smartpqi_init.c shost->sg_tablesize = ctrl_info->sg_tablesize; shost 6518 drivers/scsi/smartpqi/smartpqi_init.c shost->transportt = pqi_sas_transport_template; shost 6519 drivers/scsi/smartpqi/smartpqi_init.c shost->irq = pci_irq_vector(ctrl_info->pci_dev, 0); shost 6520 drivers/scsi/smartpqi/smartpqi_init.c shost->unique_id = shost->irq; shost 6521 drivers/scsi/smartpqi/smartpqi_init.c shost->nr_hw_queues = ctrl_info->num_queue_groups; shost 6522 drivers/scsi/smartpqi/smartpqi_init.c shost->hostdata[0] = (unsigned long)ctrl_info; shost 6524 drivers/scsi/smartpqi/smartpqi_init.c rc = scsi_add_host(shost, &ctrl_info->pci_dev->dev); shost 6532 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_add_sas_host(shost, ctrl_info); shost 6540 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info->scsi_host = shost; shost 6545 drivers/scsi/smartpqi/smartpqi_init.c scsi_remove_host(shost); shost 6547 drivers/scsi/smartpqi/smartpqi_init.c scsi_host_put(shost); shost 6554 drivers/scsi/smartpqi/smartpqi_init.c struct Scsi_Host *shost; shost 6558 drivers/scsi/smartpqi/smartpqi_init.c shost = ctrl_info->scsi_host; shost 6559 drivers/scsi/smartpqi/smartpqi_init.c if (!shost) shost 6562 drivers/scsi/smartpqi/smartpqi_init.c scsi_remove_host(shost); shost 6563 drivers/scsi/smartpqi/smartpqi_init.c scsi_host_put(shost); shost 215 drivers/scsi/smartpqi/smartpqi_sas_transport.c int pqi_add_sas_host(struct Scsi_Host *shost, struct pqi_ctrl_info *ctrl_info) shost 223 drivers/scsi/smartpqi/smartpqi_sas_transport.c parent_dev = &shost->shost_dev; shost 318 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct Scsi_Host *shost; shost 326 drivers/scsi/smartpqi/smartpqi_sas_transport.c shost = rphy_to_shost(rphy); shost 327 drivers/scsi/smartpqi/smartpqi_sas_transport.c ctrl_info = shost_to_hba(shost); shost 395 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct Scsi_Host *shost; shost 400 drivers/scsi/smartpqi/smartpqi_sas_transport.c shost = rphy_to_shost(rphy); shost 401 drivers/scsi/smartpqi/smartpqi_sas_transport.c ctrl_info = shost_to_hba(shost); shost 511 drivers/scsi/smartpqi/smartpqi_sas_transport.c void pqi_sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, shost 515 drivers/scsi/smartpqi/smartpqi_sas_transport.c struct pqi_ctrl_info *ctrl_info = shost_to_hba(shost); shost 280 drivers/scsi/snic/snic.h struct Scsi_Host *shost; shost 47 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, "Link Event: Link %s.\n", shost 113 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, "Exch Ver Req Preparing...\n"); shost 117 drivers/scsi/snic/snic_ctl.c SNIC_HOST_ERR(snic->shost, shost 139 drivers/scsi/snic/snic_ctl.c SNIC_HOST_ERR(snic->shost, shost 145 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, "Exch Ver Req is issued. ret = %d\n", ret); shost 165 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, "Exch Ver Compl Received.\n"); shost 171 drivers/scsi/snic/snic_ctl.c SNIC_HOST_ERR(snic->shost, shost 187 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, shost 197 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, shost 204 drivers/scsi/snic/snic_ctl.c snic->shost->sg_tablesize = max_sgs; shost 205 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, "Max SGs set to %d\n", shost 206 drivers/scsi/snic/snic_ctl.c snic->shost->sg_tablesize); shost 207 drivers/scsi/snic/snic_ctl.c } else if (max_sgs > snic->shost->sg_tablesize) { shost 208 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, shost 211 drivers/scsi/snic/snic_ctl.c snic->shost->sg_tablesize); shost 214 drivers/scsi/snic/snic_ctl.c if (snic->shost->can_queue > snic->fwinfo.max_concur_ios) shost 215 drivers/scsi/snic/snic_ctl.c snic->shost->can_queue = snic->fwinfo.max_concur_ios; shost 217 drivers/scsi/snic/snic_ctl.c snic->shost->max_sectors = snic->fwinfo.max_io_sz >> 9; shost 226 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, "Exch_cmpl Done, hdr_stat %d.\n", hdr_stat); shost 244 drivers/scsi/snic/snic_ctl.c SNIC_HOST_INFO(snic->shost, "Retrieving snic params.\n"); shost 266 drivers/scsi/snic/snic_ctl.c SNIC_HOST_ERR(snic->shost, shost 162 drivers/scsi/snic/snic_debugfs.c SNIC_HOST_INFO(snic->shost, "Reset Op: Driver statistics.\n"); shost 378 drivers/scsi/snic/snic_debugfs.c snprintf(name, sizeof(name), "host%d", snic->shost->host_no); shost 95 drivers/scsi/snic/snic_disc.c ntgts = min_t(u32, snic->fwinfo.max_tgts, snic->shost->max_id); shost 97 drivers/scsi/snic/snic_disc.c ntgts = snic->shost->max_id; shost 106 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, "Resp Buf Alloc Failed.\n"); shost 116 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, shost 146 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, "Queuing Report Tgts Failed.\n"); shost 151 drivers/scsi/snic/snic_disc.c SNIC_DISC_DBG(snic->shost, "Report Targets Issued.\n"); shost 156 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, shost 167 drivers/scsi/snic/snic_disc.c struct Scsi_Host *shost = dev_to_shost(&tgt->dev); shost 170 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(shost, "Scanning Target id 0x%x\n", tgt->id); shost 177 drivers/scsi/snic/snic_disc.c spin_lock_irqsave(shost->host_lock, flags); shost 179 drivers/scsi/snic/snic_disc.c spin_unlock_irqrestore(shost->host_lock, flags); shost 225 drivers/scsi/snic/snic_disc.c struct Scsi_Host *shost = snic_tgt_to_shost(tgt); shost 228 drivers/scsi/snic/snic_disc.c scsi_flush_work(shost); shost 263 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, "Failure to allocate snic_tgt.\n"); shost 282 drivers/scsi/snic/snic_disc.c tgt->dev.parent = get_device(&snic->shost->shost_gendev); shost 289 drivers/scsi/snic/snic_disc.c snic->shost->host_no, tgt->channel, tgt->id); shost 294 drivers/scsi/snic/snic_disc.c snic->shost->host_no, tgt->channel, tgt->id); shost 298 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, "Target type Unknown Detected.\n"); shost 300 drivers/scsi/snic/snic_disc.c snic->shost->host_no, tgt->channel, tgt->id); shost 304 drivers/scsi/snic/snic_disc.c spin_lock_irqsave(snic->shost->host_lock, flags); shost 308 drivers/scsi/snic/snic_disc.c spin_unlock_irqrestore(snic->shost->host_lock, flags); shost 310 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, shost 316 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, shost 320 drivers/scsi/snic/snic_disc.c put_device(&snic->shost->shost_gendev); shost 327 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, "Scanning %s.\n", dev_name(&tgt->dev)); shost 329 drivers/scsi/snic/snic_disc.c scsi_queue_work(snic->shost, &tgt->scan_work); shost 362 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, "tgt_disc: Discovery restart.\n"); shost 378 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, "Failed to create tgt.\n"); shost 388 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, "Discovery Completed.\n"); shost 411 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, "No Targets Found on this host.\n"); shost 418 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, "Target Count = %d\n", tgt_cnt); shost 423 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, shost 472 drivers/scsi/snic/snic_disc.c SNIC_SCSI_DBG(snic->shost, "Terminating Discovery.\n"); shost 487 drivers/scsi/snic/snic_disc.c SNIC_SCSI_DBG(snic->shost, "Discovery Start.\n"); shost 511 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, "Discovery Failed, err=%d.\n", ret); shost 525 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, "disc_work: Discovery\n"); shost 532 drivers/scsi/snic/snic_disc.c SNIC_HOST_ERR(snic->shost, shost 548 drivers/scsi/snic/snic_disc.c scsi_flush_work(snic->shost); shost 551 drivers/scsi/snic/snic_disc.c spin_lock_irqsave(snic->shost->host_lock, flags); shost 557 drivers/scsi/snic/snic_disc.c SNIC_HOST_INFO(snic->shost, "Tgt %d q'ing for del\n", tgt->id); shost 561 drivers/scsi/snic/snic_disc.c spin_unlock_irqrestore(snic->shost->host_lock, flags); shost 44 drivers/scsi/snic/snic_io.c SNIC_HOST_INFO(snic->shost, shost 48 drivers/scsi/snic/snic_io.c SNIC_TRC(snic->shost->host_no, 0, 0, shost 125 drivers/scsi/snic/snic_io.c SNIC_HOST_INFO(snic->shost, "snic_free_wq_buf .. freed.\n"); shost 151 drivers/scsi/snic/snic_io.c SNIC_HOST_INFO(snic->shost, "desc_avail: Multi Queue case.\n"); shost 178 drivers/scsi/snic/snic_io.c SNIC_HOST_ERR(snic->shost, "qdesc: PCI DMA Mapping Fail.\n"); shost 194 drivers/scsi/snic/snic_io.c SNIC_DBG("host = %d, WQ is Full\n", snic->shost->host_no); shost 245 drivers/scsi/snic/snic_io.c SNIC_HOST_ERR(snic->shost, shost 277 drivers/scsi/snic/snic_io.c SNIC_SCSI_DBG(snic->shost, "Req_alloc:rqi = %p allocatd.\n", rqi); shost 299 drivers/scsi/snic/snic_io.c SNIC_HOST_ERR(snic->shost, "abts:Failed to alloc tm req.\n"); shost 325 drivers/scsi/snic/snic_io.c SNIC_HOST_ERR(snic->shost, "dr:Failed to alloc tm req.\n"); shost 348 drivers/scsi/snic/snic_io.c SNIC_SCSI_DBG(snic->shost, shost 143 drivers/scsi/snic/snic_isr.c SNIC_HOST_ERR(snic->shost, shost 181 drivers/scsi/snic/snic_isr.c SNIC_ISR_DBG(snic->shost, "Using MSI-X Interrupts\n"); shost 174 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(snic->shost, shost 293 drivers/scsi/snic/snic_main.c SNIC_HOST_INFO(snic->shost, "VNIC_DEV_OPEN Timedout.\n"); shost 303 drivers/scsi/snic/snic_main.c snic_add_host(struct Scsi_Host *shost, struct pci_dev *pdev) shost 307 drivers/scsi/snic/snic_main.c ret = scsi_add_host(shost, &pdev->dev); shost 309 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 316 drivers/scsi/snic/snic_main.c SNIC_BUG_ON(shost->work_q != NULL); shost 317 drivers/scsi/snic/snic_main.c snprintf(shost->work_q_name, sizeof(shost->work_q_name), "scsi_wq_%d", shost 318 drivers/scsi/snic/snic_main.c shost->host_no); shost 319 drivers/scsi/snic/snic_main.c shost->work_q = create_singlethread_workqueue(shost->work_q_name); shost 320 drivers/scsi/snic/snic_main.c if (!shost->work_q) { shost 321 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, "Failed to Create ScsiHost wq.\n"); shost 330 drivers/scsi/snic/snic_main.c snic_del_host(struct Scsi_Host *shost) shost 332 drivers/scsi/snic/snic_main.c if (!shost->work_q) shost 335 drivers/scsi/snic/snic_main.c destroy_workqueue(shost->work_q); shost 336 drivers/scsi/snic/snic_main.c shost->work_q = NULL; shost 337 drivers/scsi/snic/snic_main.c scsi_remove_host(shost); shost 349 drivers/scsi/snic/snic_main.c SNIC_HOST_INFO(snic->shost, "snic state change from %s to %s\n", shost 362 drivers/scsi/snic/snic_main.c struct Scsi_Host *shost; shost 381 drivers/scsi/snic/snic_main.c shost = scsi_host_alloc(&snic_host_template, sizeof(struct snic)); shost 382 drivers/scsi/snic/snic_main.c if (!shost) { shost 388 drivers/scsi/snic/snic_main.c snic = shost_priv(shost); shost 389 drivers/scsi/snic/snic_main.c snic->shost = shost; shost 392 drivers/scsi/snic/snic_main.c shost->host_no); shost 394 drivers/scsi/snic/snic_main.c SNIC_HOST_INFO(shost, shost 396 drivers/scsi/snic/snic_main.c shost->host_no, snic, shost, pdev->bus->number, shost 409 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 418 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 436 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 445 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, "BAR0 not memory mappable aborting.\n"); shost 453 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 467 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, "vNIC Resource Discovery Failed.\n"); shost 475 drivers/scsi/snic/snic_main.c SNIC_HOST_INFO(shost, "Devcmd2 Init Failed. err = %d\n", ret); shost 482 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 491 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 501 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 511 drivers/scsi/snic/snic_main.c shost->can_queue = min_t(u32, SNIC_MAX_IO_REQ, shost 514 drivers/scsi/snic/snic_main.c snic->max_tag_id = shost->can_queue; shost 516 drivers/scsi/snic/snic_main.c shost->max_lun = snic->config.luns_per_tgt; shost 517 drivers/scsi/snic/snic_main.c shost->max_id = SNIC_MAX_TARGET; shost 519 drivers/scsi/snic/snic_main.c shost->max_cmd_len = MAX_COMMAND_SIZE; /*defined in scsi_cmnd.h*/ shost 528 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 537 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 566 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, "dflt sgl pool creation failed\n"); shost 577 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, "max sgl pool creation failed\n"); shost 588 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, "snic tmreq info pool creation failed.\n"); shost 604 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 626 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 635 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, "Unable to request irq. %d\n", ret); shost 646 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 657 drivers/scsi/snic/snic_main.c ret = snic_add_host(shost, pdev); shost 659 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 670 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, "snic_probe:Discovery Failed w err = %d\n", shost 676 drivers/scsi/snic/snic_main.c SNIC_HOST_INFO(shost, "SNIC Device Probe Successful.\n"); shost 699 drivers/scsi/snic/snic_main.c SNIC_HOST_ERR(shost, shost 705 drivers/scsi/snic/snic_main.c snic_del_host(snic->shost); shost 741 drivers/scsi/snic/snic_main.c scsi_host_put(shost); shost 804 drivers/scsi/snic/snic_main.c snic_del_host(snic->shost); shost 818 drivers/scsi/snic/snic_main.c scsi_host_put(snic->shost); shost 45 drivers/scsi/snic/snic_res.c SNIC_HOST_ERR(snic->shost, \ shost 263 drivers/scsi/snic/snic_res.c SNIC_HOST_ERR(snic->shost, shost 290 drivers/scsi/snic/snic_res.c SNIC_HOST_ERR(snic->shost, shost 142 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 193 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 227 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 256 drivers/scsi/snic/snic_scsi.c SNIC_TRC((u16)snic->shost->host_no, tag, (ulong) sc, 0, shost 259 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, "issue_sc:Failed to map SG List.\n"); shost 286 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 300 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, 0, 0, 0, shost 313 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 317 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, (ulong) rqi, shost 333 drivers/scsi/snic/snic_scsi.c snic_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc) shost 336 drivers/scsi/snic/snic_scsi.c struct snic *snic = shost_priv(shost); shost 342 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(shost, "Tgt %p id %d Not Ready.\n", tgt, tgt->id); shost 351 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(shost, "snic state is %s\n", shost 358 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(shost, "sc %p Tag %d (sc %0x) lun %lld in snic_qcmd\n", shost 363 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(shost, "Failed to Q, Scsi Req w/ err %d.\n", ret); shost 468 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 474 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, "fw returns failed status %s flags 0x%llx\n", shost 530 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 562 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 567 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 573 drivers/scsi/snic/snic_scsi.c sc = scsi_host_find_tag(snic->shost, cmnd_id); shost 578 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 584 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, cmnd_id, 0, shost 596 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 614 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 641 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 648 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, shost 657 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 674 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, shost 697 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "itmf_cmpl: Cmd State = %s\n", shost 703 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, shost 707 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 718 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, shost 722 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 734 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 752 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "Updating Abort stats.\n"); shost 800 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 830 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 850 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 859 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, cmnd_id, (ulong) sc, shost 884 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 898 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 901 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 932 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 937 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 950 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 958 drivers/scsi/snic/snic_scsi.c sc = scsi_host_find_tag(snic->shost, cmnd_id & SNIC_TAG_MASK); shost 964 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 982 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "HBA Reset scsi cleanup.\n"); shost 1016 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, shost 1020 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1027 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, shost 1036 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1044 drivers/scsi/snic/snic_scsi.c sc = scsi_host_find_tag(snic->shost, cmnd_id); shost 1048 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1056 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, shost 1065 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1079 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1115 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "reset_cmpl: Queuing discovery work.\n"); shost 1124 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "Message Ack Received.\n"); shost 1139 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1147 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:TGT_OFFLINE Event Recvd.\n"); shost 1151 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:TGT_ONLINE Event Recvd.\n"); shost 1155 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:LUN_OFFLINE Event Recvd.\n"); shost 1159 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:LUN_ONLINE Event Recvd.\n"); shost 1163 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:Config Change Event Recvd.\n"); shost 1167 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:TGT_ADD Event Recvd.\n"); shost 1171 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:TGT_DEL Event Recvd.\n"); shost 1175 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:LUN_ADD Event Recvd.\n"); shost 1179 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:LUN_DEL Event Recvd.\n"); shost 1183 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:DISC_CMPL Event Recvd.\n"); shost 1187 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "aen:Unknown Event Recvd.\n"); shost 1220 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1225 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1261 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1344 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1348 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1370 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1397 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1401 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1420 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "q_abtreq: sc %p, rqi %p, tag %x, tmf %d\n", shost 1447 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1465 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1493 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, shost 1547 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1577 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "send_abt_cmd: TAG 0x%x\n", tag); shost 1585 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1611 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1642 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "abt_cmd:sc %p :0x%x :req = %p :tag = %d\n", shost 1646 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1662 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, shost 1666 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1694 drivers/scsi/snic/snic_scsi.c sc = scsi_host_find_tag(snic->shost, tag); shost 1713 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "Found IO in %s on LUN\n", shost 1744 drivers/scsi/snic/snic_scsi.c sc = scsi_host_find_tag(snic->shost, tag); shost 1763 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1770 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1791 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1808 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1845 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1887 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, "clean_err:tag = %d\n", tag); shost 1903 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "clean_pending_req: Success.\n"); shost 1909 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1934 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1949 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1959 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 1966 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 1986 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 2041 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 2056 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "dr: TAG = %x\n", tag); shost 2071 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 2137 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, snic_cmd_tag(sc), (ulong) sc, shost 2150 drivers/scsi/snic/snic_scsi.c struct Scsi_Host *shost = sc->device->host; shost 2151 drivers/scsi/snic/snic_scsi.c struct snic *snic = shost_priv(shost); shost 2158 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(shost, "dev_reset:sc %p :0x%x :req = %p :tag = %d\n", shost 2164 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(shost, "LUN Reset Op not supported.\n"); shost 2172 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(shost, "Devrst: Parent Devs are not online.\n"); shost 2179 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, shost 2198 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 2210 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, shost 2214 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 2251 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "issu_hr:Host reset thru ioctl.\n"); shost 2274 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 2285 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "Queued HBA Reset Successfully.\n"); shost 2291 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, "reset_cmpl: Reset Timedout.\n"); shost 2321 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 2329 drivers/scsi/snic/snic_scsi.c snic_reset(struct Scsi_Host *shost, struct scsi_cmnd *sc) shost 2331 drivers/scsi/snic/snic_scsi.c struct snic *snic = shost_priv(shost); shost 2342 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(shost, "reset:prev reset is in progres\n"); shost 2360 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(shost, shost 2388 drivers/scsi/snic/snic_scsi.c struct Scsi_Host *shost = sc->device->host; shost 2392 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(shost, shost 2397 drivers/scsi/snic/snic_scsi.c ret = snic_reset(shost, sc); shost 2399 drivers/scsi/snic/snic_scsi.c SNIC_TRC(shost->host_no, snic_cmd_tag(sc), (ulong) sc, shost 2414 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 2448 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "sc_clean: scsi cleanup.\n"); shost 2457 drivers/scsi/snic/snic_scsi.c sc = scsi_host_find_tag(snic->shost, tag); shost 2482 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 2491 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, shost 2499 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, shost 2508 drivers/scsi/snic/snic_scsi.c SNIC_TRC(snic->shost->host_no, tag, (ulong) sc, shost 2521 drivers/scsi/snic/snic_scsi.c SNIC_HOST_INFO(snic->shost, "Shutdown time SCSI Cleanup.\n"); shost 2551 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 2560 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, shost 2575 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "internal_abts:dev rst sc %p\n", sc); shost 2578 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "internal_abts: Issuing abts tag %x\n", shost 2585 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 2629 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "tgt_abt_io: Cleaning Pending IOs.\n"); shost 2640 drivers/scsi/snic/snic_scsi.c sc = scsi_host_find_tag(snic->shost, tag); shost 2657 drivers/scsi/snic/snic_scsi.c SNIC_HOST_ERR(snic->shost, shost 2668 drivers/scsi/snic/snic_scsi.c SNIC_SCSI_DBG(snic->shost, "tgt_abt_io: abt_cnt = %d\n", abt_cnt); shost 94 drivers/scsi/sym53c8xx_2/sym_fw.c sym_fw1_patch(struct Scsi_Host *shost) shost 96 drivers/scsi/sym53c8xx_2/sym_fw.c struct sym_hcb *np = sym_get_hcb(shost); shost 136 drivers/scsi/sym53c8xx_2/sym_fw.c sym_fw2_patch(struct Scsi_Host *shost) shost 138 drivers/scsi/sym53c8xx_2/sym_fw.c struct sym_data *sym_data = shost_priv(shost); shost 478 drivers/scsi/sym53c8xx_2/sym_glue.c void sym_log_bus_error(struct Scsi_Host *shost) shost 480 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_data *sym_data = shost_priv(shost); shost 486 drivers/scsi/sym53c8xx_2/sym_glue.c shost_printk(KERN_WARNING, shost, shost 533 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = dev_id; shost 534 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_data *sym_data = shost_priv(shost); shost 543 drivers/scsi/sym53c8xx_2/sym_glue.c spin_lock(shost->host_lock); shost 544 drivers/scsi/sym53c8xx_2/sym_glue.c result = sym_interrupt(shost); shost 545 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock(shost->host_lock); shost 581 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = cmd->device->host; shost 582 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_data *sym_data = shost_priv(shost); shost 602 drivers/scsi/sym53c8xx_2/sym_glue.c spin_lock_irq(shost->host_lock); shost 610 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock_irq(shost->host_lock); shost 615 drivers/scsi/sym53c8xx_2/sym_glue.c spin_lock_irq(shost->host_lock); shost 617 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock_irq(shost->host_lock); shost 622 drivers/scsi/sym53c8xx_2/sym_glue.c spin_lock_irq(shost->host_lock); shost 647 drivers/scsi/sym53c8xx_2/sym_glue.c sym_start_up(shost, 1); shost 661 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock_irq(shost->host_lock); shost 667 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock_irq(shost->host_lock); shost 1020 drivers/scsi/sym53c8xx_2/sym_glue.c static int sym_user_command(struct Scsi_Host *shost, char *buffer, int length) shost 1022 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1149 drivers/scsi/sym53c8xx_2/sym_glue.c spin_lock_irqsave(shost->host_lock, flags); shost 1151 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1162 drivers/scsi/sym53c8xx_2/sym_glue.c static int sym_show_info(struct seq_file *m, struct Scsi_Host *shost) shost 1165 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_data *sym_data = shost_priv(shost); shost 1241 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = NULL; shost 1258 drivers/scsi/sym53c8xx_2/sym_glue.c shost = scsi_host_alloc(tpnt, sizeof(*sym_data)); shost 1259 drivers/scsi/sym53c8xx_2/sym_glue.c if (!shost) shost 1261 drivers/scsi/sym53c8xx_2/sym_glue.c sym_data = shost_priv(shost); shost 1275 drivers/scsi/sym53c8xx_2/sym_glue.c np->s.host = shost; shost 1277 drivers/scsi/sym53c8xx_2/sym_glue.c pci_set_drvdata(pdev, shost); shost 1309 drivers/scsi/sym53c8xx_2/sym_glue.c if (sym_hcb_attach(shost, fw, dev->nvram)) shost 1318 drivers/scsi/sym53c8xx_2/sym_glue.c shost)) { shost 1329 drivers/scsi/sym53c8xx_2/sym_glue.c spin_lock_irqsave(shost->host_lock, flags); shost 1336 drivers/scsi/sym53c8xx_2/sym_glue.c sym_start_up(shost, 1); shost 1349 drivers/scsi/sym53c8xx_2/sym_glue.c shost->max_channel = 0; shost 1350 drivers/scsi/sym53c8xx_2/sym_glue.c shost->this_id = np->myaddr; shost 1351 drivers/scsi/sym53c8xx_2/sym_glue.c shost->max_id = np->maxwide ? 16 : 8; shost 1352 drivers/scsi/sym53c8xx_2/sym_glue.c shost->max_lun = SYM_CONF_MAX_LUN; shost 1353 drivers/scsi/sym53c8xx_2/sym_glue.c shost->unique_id = pci_resource_start(pdev, 0); shost 1354 drivers/scsi/sym53c8xx_2/sym_glue.c shost->cmd_per_lun = SYM_CONF_MAX_TAG; shost 1355 drivers/scsi/sym53c8xx_2/sym_glue.c shost->can_queue = (SYM_CONF_MAX_START-2); shost 1356 drivers/scsi/sym53c8xx_2/sym_glue.c shost->sg_tablesize = SYM_CONF_MAX_SG; shost 1357 drivers/scsi/sym53c8xx_2/sym_glue.c shost->max_cmd_len = 16; shost 1359 drivers/scsi/sym53c8xx_2/sym_glue.c shost->transportt = sym2_transport_template; shost 1363 drivers/scsi/sym53c8xx_2/sym_glue.c shost->dma_boundary = 0xFFFFFF; shost 1365 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1367 drivers/scsi/sym53c8xx_2/sym_glue.c return shost; shost 1372 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1379 drivers/scsi/sym53c8xx_2/sym_glue.c if (shost) shost 1380 drivers/scsi/sym53c8xx_2/sym_glue.c scsi_host_put(shost); shost 1610 drivers/scsi/sym53c8xx_2/sym_glue.c static int sym_detach(struct Scsi_Host *shost, struct pci_dev *pdev) shost 1612 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1629 drivers/scsi/sym53c8xx_2/sym_glue.c scsi_host_put(shost); shost 1666 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost; shost 1703 drivers/scsi/sym53c8xx_2/sym_glue.c shost = sym_attach(&sym2_template, attach_count, &sym_dev); shost 1704 drivers/scsi/sym53c8xx_2/sym_glue.c if (!shost) shost 1707 drivers/scsi/sym53c8xx_2/sym_glue.c if (scsi_add_host(shost, &pdev->dev)) shost 1709 drivers/scsi/sym53c8xx_2/sym_glue.c scsi_scan_host(shost); shost 1730 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1732 drivers/scsi/sym53c8xx_2/sym_glue.c scsi_remove_host(shost); shost 1733 drivers/scsi/sym53c8xx_2/sym_glue.c sym_detach(shost, pdev); shost 1767 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1769 drivers/scsi/sym53c8xx_2/sym_glue.c sym_dump_registers(shost); shost 1809 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1810 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1840 drivers/scsi/sym53c8xx_2/sym_glue.c sym_start_up(shost, 1); shost 1856 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = pci_get_drvdata(pdev); shost 1857 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_data *sym_data = shost_priv(shost); shost 1859 drivers/scsi/sym53c8xx_2/sym_glue.c spin_lock_irq(shost->host_lock); shost 1862 drivers/scsi/sym53c8xx_2/sym_glue.c spin_unlock_irq(shost->host_lock); shost 1865 drivers/scsi/sym53c8xx_2/sym_glue.c static void sym2_get_signalling(struct Scsi_Host *shost) shost 1867 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1884 drivers/scsi/sym53c8xx_2/sym_glue.c spi_signalling(shost) = type; shost 1889 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1890 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1899 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1900 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1914 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1915 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1929 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1930 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1944 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1945 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 1957 drivers/scsi/sym53c8xx_2/sym_glue.c struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); shost 1958 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_hcb *np = sym_get_hcb(shost); shost 669 drivers/scsi/sym53c8xx_2/sym_hipd.c static int sym_prepare_setting(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) shost 671 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_data *sym_data = shost_priv(shost); shost 852 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_nvram_setup_host(shost, np, nvram); shost 1117 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_log_hard_error(struct Scsi_Host *shost, u_short sist, u_char dstat) shost 1119 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_hcb *np = sym_get_hcb(shost); shost 1172 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_log_bus_error(shost); shost 1175 drivers/scsi/sym53c8xx_2/sym_hipd.c void sym_dump_registers(struct Scsi_Host *shost) shost 1177 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_hcb *np = sym_get_hcb(shost); shost 1183 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_log_hard_error(shost, sist, dstat); shost 1690 drivers/scsi/sym53c8xx_2/sym_hipd.c void sym_start_up(struct Scsi_Host *shost, int reason) shost 1692 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_data *sym_data = shost_priv(shost); shost 1743 drivers/scsi/sym53c8xx_2/sym_hipd.c np->fw_patch(shost); shost 2255 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_int_sbmc(struct Scsi_Host *shost) shost 2257 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_hcb *np = sym_get_hcb(shost); shost 2270 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_start_up(shost, 2); shost 2799 drivers/scsi/sym53c8xx_2/sym_hipd.c irqreturn_t sym_interrupt(struct Scsi_Host *shost) shost 2801 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_data *sym_data = shost_priv(shost); shost 2914 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_start_up(shost, 1); shost 2923 drivers/scsi/sym53c8xx_2/sym_hipd.c if (sist & SBMC) sym_int_sbmc(shost); shost 2937 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_log_hard_error(shost, sist, dstat); shost 5571 drivers/scsi/sym53c8xx_2/sym_hipd.c int sym_hcb_attach(struct Scsi_Host *shost, struct sym_fw *fw, struct sym_nvram *nvram) shost 5573 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_hcb *np = sym_get_hcb(shost); shost 5603 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_prepare_setting(shost, np, nvram); shost 1061 drivers/scsi/sym53c8xx_2/sym_hipd.h int sym_hcb_attach(struct Scsi_Host *shost, struct sym_fw *fw, struct sym_nvram *nvram); shost 37 drivers/scsi/sym53c8xx_2/sym_nvram.c void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) shost 51 drivers/scsi/sym53c8xx_2/sym_nvram.c shost->reverse_ordering = 1; shost 183 drivers/scsi/sym53c8xx_2/sym_nvram.h void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram); shost 188 drivers/scsi/sym53c8xx_2/sym_nvram.h static inline void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) { } shost 195 drivers/scsi/ufs/ufs_bsg.c struct Scsi_Host *shost = hba->host; shost 196 drivers/scsi/ufs/ufs_bsg.c struct device *parent = &shost->shost_gendev; shost 205 drivers/scsi/ufs/ufs_bsg.c dev_set_name(bsg_dev, "ufs-bsg%u", shost->host_no); shost 222 drivers/scsi/ufs/ufs_bsg.c dev_err(bsg_dev, "fail to initialize a bsg dev %d\n", shost->host_no); shost 281 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); shost 287 drivers/scsi/virtio_scsi.c scsi_add_device(shost, 0, target, lun); shost 290 drivers/scsi/virtio_scsi.c sdev = scsi_device_lookup(shost, 0, target, lun); shost 296 drivers/scsi/virtio_scsi.c shost->host_no, target, lun); shost 308 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); shost 314 drivers/scsi/virtio_scsi.c sdev = scsi_device_lookup(shost, 0, target, lun); shost 317 drivers/scsi/virtio_scsi.c shost->host_no, target, lun); shost 332 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); shost 337 drivers/scsi/virtio_scsi.c shost_for_each_device(sdev, shost) { shost 541 drivers/scsi/virtio_scsi.c static int virtscsi_queuecommand(struct Scsi_Host *shost, shost 544 drivers/scsi/virtio_scsi.c struct virtio_scsi *vscsi = shost_priv(shost); shost 552 drivers/scsi/virtio_scsi.c BUG_ON(scsi_sg_count(sc) > shost->sg_tablesize); shost 674 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = sdev->host; shost 675 drivers/scsi/virtio_scsi.c int max_depth = shost->cmd_per_lun; shost 703 drivers/scsi/virtio_scsi.c static int virtscsi_map_queues(struct Scsi_Host *shost) shost 705 drivers/scsi/virtio_scsi.c struct virtio_scsi *vscsi = shost_priv(shost); shost 706 drivers/scsi/virtio_scsi.c struct blk_mq_queue_map *qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT]; shost 711 drivers/scsi/virtio_scsi.c static void virtscsi_commit_rqs(struct Scsi_Host *shost, u16 hwq) shost 713 drivers/scsi/virtio_scsi.c struct virtio_scsi *vscsi = shost_priv(shost); shost 833 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost; shost 852 drivers/scsi/virtio_scsi.c shost = scsi_host_alloc(&virtscsi_host_template, shost 854 drivers/scsi/virtio_scsi.c if (!shost) shost 858 drivers/scsi/virtio_scsi.c shost->sg_tablesize = sg_elems; shost 859 drivers/scsi/virtio_scsi.c vscsi = shost_priv(shost); shost 862 drivers/scsi/virtio_scsi.c vdev->priv = shost; shost 868 drivers/scsi/virtio_scsi.c shost->can_queue = virtqueue_get_vring_size(vscsi->req_vqs[0].vq); shost 871 drivers/scsi/virtio_scsi.c shost->cmd_per_lun = min_t(u32, cmd_per_lun, shost->can_queue); shost 872 drivers/scsi/virtio_scsi.c shost->max_sectors = virtscsi_config_get(vdev, max_sectors) ?: 0xFFFF; shost 877 drivers/scsi/virtio_scsi.c shost->max_lun = virtscsi_config_get(vdev, max_lun) + 1 + 0x4000; shost 878 drivers/scsi/virtio_scsi.c shost->max_id = num_targets; shost 879 drivers/scsi/virtio_scsi.c shost->max_channel = 0; shost 880 drivers/scsi/virtio_scsi.c shost->max_cmd_len = VIRTIO_SCSI_CDB_SIZE; shost 881 drivers/scsi/virtio_scsi.c shost->nr_hw_queues = num_queues; shost 891 drivers/scsi/virtio_scsi.c scsi_host_set_prot(shost, host_prot); shost 892 drivers/scsi/virtio_scsi.c scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC); shost 896 drivers/scsi/virtio_scsi.c err = scsi_add_host(shost, &vdev->dev); shost 905 drivers/scsi/virtio_scsi.c scsi_scan_host(shost); shost 911 drivers/scsi/virtio_scsi.c scsi_host_put(shost); shost 917 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = virtio_scsi_host(vdev); shost 918 drivers/scsi/virtio_scsi.c struct virtio_scsi *vscsi = shost_priv(shost); shost 923 drivers/scsi/virtio_scsi.c scsi_remove_host(shost); shost 925 drivers/scsi/virtio_scsi.c scsi_host_put(shost); shost 528 drivers/scsi/xen-scsifront.c static int scsifront_queuecommand(struct Scsi_Host *shost, shost 531 drivers/scsi/xen-scsifront.c struct vscsifrnt_info *info = shost_priv(shost); shost 541 drivers/scsi/xen-scsifront.c spin_lock_irqsave(shost->host_lock, flags); shost 543 drivers/scsi/xen-scsifront.c spin_unlock_irqrestore(shost->host_lock, flags); shost 551 drivers/scsi/xen-scsifront.c spin_unlock_irqrestore(shost->host_lock, flags); shost 565 drivers/scsi/xen-scsifront.c spin_unlock_irqrestore(shost->host_lock, flags); shost 571 drivers/scsi/xen-scsifront.c spin_unlock_irqrestore(shost->host_lock, flags); shost 361 drivers/usb/image/microtek.c mts_scsi_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *srb); shost 135 drivers/usb/storage/uas.c struct Scsi_Host *shost = usb_get_intfdata(devinfo->intf); shost 138 drivers/usb/storage/uas.c scsi_scan_host(shost); shost 302 drivers/usb/storage/uas.c struct Scsi_Host *shost = urb->context; shost 303 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; shost 981 drivers/usb/storage/uas.c struct Scsi_Host *shost = NULL; shost 992 drivers/usb/storage/uas.c shost = scsi_host_alloc(&uas_host_template, shost 994 drivers/usb/storage/uas.c if (!shost) shost 997 drivers/usb/storage/uas.c shost->max_cmd_len = 16 + 252; shost 998 drivers/usb/storage/uas.c shost->max_id = 1; shost 999 drivers/usb/storage/uas.c shost->max_lun = 256; shost 1000 drivers/usb/storage/uas.c shost->max_channel = 0; shost 1001 drivers/usb/storage/uas.c shost->sg_tablesize = udev->bus->sg_tablesize; shost 1003 drivers/usb/storage/uas.c devinfo = (struct uas_dev_info *)shost->hostdata; shost 1024 drivers/usb/storage/uas.c shost->can_queue = devinfo->qdepth - 2; shost 1026 drivers/usb/storage/uas.c usb_set_intfdata(intf, shost); shost 1027 drivers/usb/storage/uas.c result = scsi_add_host(shost, &intf->dev); shost 1041 drivers/usb/storage/uas.c if (shost) shost 1042 drivers/usb/storage/uas.c scsi_host_put(shost); shost 1096 drivers/usb/storage/uas.c struct Scsi_Host *shost = usb_get_intfdata(intf); shost 1097 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; shost 1104 drivers/usb/storage/uas.c spin_lock_irqsave(shost->host_lock, flags); shost 1105 drivers/usb/storage/uas.c scsi_block_requests(shost); shost 1106 drivers/usb/storage/uas.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1109 drivers/usb/storage/uas.c shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__); shost 1110 drivers/usb/storage/uas.c scsi_unblock_requests(shost); shost 1121 drivers/usb/storage/uas.c struct Scsi_Host *shost = usb_get_intfdata(intf); shost 1122 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; shost 1131 drivers/usb/storage/uas.c shost_printk(KERN_ERR, shost, shost 1136 drivers/usb/storage/uas.c spin_lock_irqsave(shost->host_lock, flags); shost 1137 drivers/usb/storage/uas.c scsi_report_bus_reset(shost, 0); shost 1138 drivers/usb/storage/uas.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1140 drivers/usb/storage/uas.c scsi_unblock_requests(shost); shost 1147 drivers/usb/storage/uas.c struct Scsi_Host *shost = usb_get_intfdata(intf); shost 1148 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; shost 1151 drivers/usb/storage/uas.c shost_printk(KERN_ERR, shost, "%s: timed out\n", __func__); shost 1165 drivers/usb/storage/uas.c struct Scsi_Host *shost = usb_get_intfdata(intf); shost 1166 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; shost 1172 drivers/usb/storage/uas.c shost_printk(KERN_ERR, shost, shost 1178 drivers/usb/storage/uas.c spin_lock_irqsave(shost->host_lock, flags); shost 1179 drivers/usb/storage/uas.c scsi_report_bus_reset(shost, 0); shost 1180 drivers/usb/storage/uas.c spin_unlock_irqrestore(shost->host_lock, flags); shost 1187 drivers/usb/storage/uas.c struct Scsi_Host *shost = usb_get_intfdata(intf); shost 1188 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; shost 1207 drivers/usb/storage/uas.c scsi_remove_host(shost); shost 1209 drivers/usb/storage/uas.c scsi_host_put(shost); shost 1221 drivers/usb/storage/uas.c struct Scsi_Host *shost = usb_get_intfdata(intf); shost 1222 drivers/usb/storage/uas.c struct uas_dev_info *devinfo = (struct uas_dev_info *)shost->hostdata; shost 863 include/scsi/libfc.h struct Scsi_Host *shost; shost 865 include/scsi/libfc.h shost = scsi_host_alloc(sht, sizeof(*lport) + priv_size); shost 866 include/scsi/libfc.h if (!shost) shost 868 include/scsi/libfc.h lport = shost_priv(shost); shost 869 include/scsi/libfc.h lport->host = shost; shost 383 include/scsi/libiscsi.h extern int iscsi_host_set_param(struct Scsi_Host *shost, shost 386 include/scsi/libiscsi.h extern int iscsi_host_get_param(struct Scsi_Host *shost, shost 388 include/scsi/libiscsi.h extern int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev); shost 392 include/scsi/libiscsi.h extern void iscsi_host_remove(struct Scsi_Host *shost); shost 393 include/scsi/libiscsi.h extern void iscsi_host_free(struct Scsi_Host *shost); shost 400 include/scsi/libiscsi.h iscsi_session_setup(struct iscsi_transport *, struct Scsi_Host *shost, shost 350 include/scsi/libsas.h struct Scsi_Host *shost; shost 707 include/scsi/libsas.h int sas_request_addr(struct Scsi_Host *shost, u8 *addr); shost 27 include/scsi/sas_ata.h void sas_ata_strategy_handler(struct Scsi_Host *shost); shost 28 include/scsi/sas_ata.h void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, shost 51 include/scsi/sas_ata.h static inline void sas_ata_strategy_handler(struct Scsi_Host *shost) shost 55 include/scsi/sas_ata.h static inline void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, shost 368 include/scsi/scsi_device.h #define shost_for_each_device(sdev, shost) \ shost 369 include/scsi/scsi_device.h for ((sdev) = __scsi_iterate_devices((shost), NULL); \ shost 371 include/scsi/scsi_device.h (sdev) = __scsi_iterate_devices((shost), (sdev))) shost 386 include/scsi/scsi_device.h #define __shost_for_each_device(sdev, shost) \ shost 387 include/scsi/scsi_device.h list_for_each_entry((sdev), &((shost)->__devices), siblings) shost 281 include/scsi/scsi_host.h int (* map_queues)(struct Scsi_Host *shost); shost 329 include/scsi/scsi_host.h int (*host_reset)(struct Scsi_Host *shost, int reset_type); shost 498 include/scsi/scsi_host.h int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd) \ shost 502 include/scsi/scsi_host.h spin_lock_irqsave(shost->host_lock, irq_flags); \ shost 504 include/scsi/scsi_host.h spin_unlock_irqrestore(shost->host_lock, irq_flags); \ shost 706 include/scsi/scsi_host.h #define shost_printk(prefix, shost, fmt, a...) \ shost 707 include/scsi/scsi_host.h dev_printk(prefix, &(shost)->shost_gendev, fmt, ##a) shost 709 include/scsi/scsi_host.h static inline void *shost_priv(struct Scsi_Host *shost) shost 711 include/scsi/scsi_host.h return (void *)shost->hostdata; shost 726 include/scsi/scsi_host.h static inline int scsi_host_in_recovery(struct Scsi_Host *shost) shost 728 include/scsi/scsi_host.h return shost->shost_state == SHOST_RECOVERY || shost 729 include/scsi/scsi_host.h shost->shost_state == SHOST_CANCEL_RECOVERY || shost 730 include/scsi/scsi_host.h shost->shost_state == SHOST_DEL_RECOVERY || shost 731 include/scsi/scsi_host.h shost->tmf_in_progress; shost 745 include/scsi/scsi_host.h extern int scsi_host_busy(struct Scsi_Host *shost); shost 756 include/scsi/scsi_host.h static inline struct device *scsi_get_device(struct Scsi_Host *shost) shost 758 include/scsi/scsi_host.h return shost->shost_gendev.parent; shost 765 include/scsi/scsi_host.h static inline int scsi_host_scan_allowed(struct Scsi_Host *shost) shost 767 include/scsi/scsi_host.h return shost->shost_state == SHOST_RUNNING || shost 768 include/scsi/scsi_host.h shost->shost_state == SHOST_RECOVERY; shost 809 include/scsi/scsi_host.h static inline void scsi_host_set_prot(struct Scsi_Host *shost, unsigned int mask) shost 811 include/scsi/scsi_host.h shost->prot_capabilities = mask; shost 814 include/scsi/scsi_host.h static inline unsigned int scsi_host_get_prot(struct Scsi_Host *shost) shost 816 include/scsi/scsi_host.h return shost->prot_capabilities; shost 819 include/scsi/scsi_host.h static inline int scsi_host_prot_dma(struct Scsi_Host *shost) shost 821 include/scsi/scsi_host.h return shost->prot_capabilities >= SHOST_DIX_TYPE0_PROTECTION; shost 824 include/scsi/scsi_host.h static inline unsigned int scsi_host_dif_capable(struct Scsi_Host *shost, unsigned int target_type) shost 834 include/scsi/scsi_host.h return shost->prot_capabilities & cap[target_type] ? target_type : 0; shost 837 include/scsi/scsi_host.h static inline unsigned int scsi_host_dix_capable(struct Scsi_Host *shost, unsigned int target_type) shost 848 include/scsi/scsi_host.h return shost->prot_capabilities & cap[target_type]; shost 867 include/scsi/scsi_host.h static inline void scsi_host_set_guard(struct Scsi_Host *shost, unsigned char type) shost 869 include/scsi/scsi_host.h shost->prot_guard_type = type; shost 872 include/scsi/scsi_host.h static inline unsigned char scsi_host_get_guard(struct Scsi_Host *shost) shost 874 include/scsi/scsi_host.h return shost->prot_guard_type; shost 22 include/scsi/scsi_tcq.h static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost, shost 32 include/scsi/scsi_tcq.h if (hwq < shost->tag_set.nr_hw_queues) { shost 33 include/scsi/scsi_tcq.h req = blk_mq_tag_to_rq(shost->tag_set.tags[hwq], shost 73 include/scsi/scsi_transport.h struct Scsi_Host *shost = dev_to_shost(&starget->dev); shost 75 include/scsi/scsi_transport.h + shost->transportt->target_private_offset; shost 81 include/scsi/scsi_transport.h struct Scsi_Host *shost = sdev->host; shost 83 include/scsi/scsi_transport.h + shost->transportt->device_private_offset; shost 86 include/scsi/scsi_transport.h void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q); shost 236 include/scsi/scsi_transport_fc.h struct Scsi_Host *shost; /* Physical Port Parent */ shost 256 include/scsi/scsi_transport_fc.h (v->shost) shost 779 include/scsi/scsi_transport_fc.h struct fc_rport *fc_remote_port_add(struct Scsi_Host *shost, shost 785 include/scsi/scsi_transport_fc.h void fc_host_post_event(struct Scsi_Host *shost, u32 event_number, shost 787 include/scsi/scsi_transport_fc.h void fc_host_post_vendor_event(struct Scsi_Host *shost, u32 event_number, shost 789 include/scsi/scsi_transport_fc.h void fc_host_post_fc_event(struct Scsi_Host *shost, u32 event_number, shost 798 include/scsi/scsi_transport_fc.h void fc_host_fpin_rcv(struct Scsi_Host *shost, u32 fpin_len, char *fpin_buf); shost 799 include/scsi/scsi_transport_fc.h struct fc_vport *fc_vport_create(struct Scsi_Host *shost, int channel, shost 99 include/scsi/scsi_transport_iscsi.h int (*get_host_param) (struct Scsi_Host *shost, shost 101 include/scsi/scsi_transport_iscsi.h int (*set_host_param) (struct Scsi_Host *shost, shost 121 include/scsi/scsi_transport_iscsi.h struct iscsi_endpoint *(*ep_connect) (struct Scsi_Host *shost, shost 126 include/scsi/scsi_transport_iscsi.h int (*tgt_dscvr) (struct Scsi_Host *shost, enum iscsi_tgt_dscvr type, shost 128 include/scsi/scsi_transport_iscsi.h int (*set_path) (struct Scsi_Host *shost, struct iscsi_path *params); shost 129 include/scsi/scsi_transport_iscsi.h int (*set_iface_param) (struct Scsi_Host *shost, void *data, shost 136 include/scsi/scsi_transport_iscsi.h int (*send_ping) (struct Scsi_Host *shost, uint32_t iface_num, shost 139 include/scsi/scsi_transport_iscsi.h int (*get_chap) (struct Scsi_Host *shost, uint16_t chap_tbl_idx, shost 141 include/scsi/scsi_transport_iscsi.h int (*delete_chap) (struct Scsi_Host *shost, uint16_t chap_tbl_idx); shost 142 include/scsi/scsi_transport_iscsi.h int (*set_chap) (struct Scsi_Host *shost, void *data, int len); shost 148 include/scsi/scsi_transport_iscsi.h int (*new_flashnode) (struct Scsi_Host *shost, const char *buf, shost 156 include/scsi/scsi_transport_iscsi.h int (*get_host_stats) (struct Scsi_Host *shost, char *buf, int len); shost 176 include/scsi/scsi_transport_iscsi.h extern int iscsi_offload_mesg(struct Scsi_Host *shost, shost 271 include/scsi/scsi_transport_iscsi.h extern void iscsi_host_for_each_session(struct Scsi_Host *shost, shost 412 include/scsi/scsi_transport_iscsi.h extern struct iscsi_cls_session *iscsi_alloc_session(struct Scsi_Host *shost, shost 418 include/scsi/scsi_transport_iscsi.h extern struct iscsi_cls_session *iscsi_create_session(struct Scsi_Host *shost, shost 429 include/scsi/scsi_transport_iscsi.h extern int iscsi_scan_finished(struct Scsi_Host *shost, unsigned long time); shost 434 include/scsi/scsi_transport_iscsi.h extern struct iscsi_iface *iscsi_create_iface(struct Scsi_Host *shost, shost 440 include/scsi/scsi_transport_iscsi.h extern char *iscsi_get_port_speed_name(struct Scsi_Host *shost); shost 441 include/scsi/scsi_transport_iscsi.h extern char *iscsi_get_port_state_name(struct Scsi_Host *shost); shost 446 include/scsi/scsi_transport_iscsi.h iscsi_find_flashnode(struct Scsi_Host *shost, void *data, shost 450 include/scsi/scsi_transport_iscsi.h iscsi_create_flashnode_sess(struct Scsi_Host *shost, int index, shost 454 include/scsi/scsi_transport_iscsi.h iscsi_create_flashnode_conn(struct Scsi_Host *shost, shost 461 include/scsi/scsi_transport_iscsi.h extern void iscsi_destroy_all_flashnode(struct Scsi_Host *shost); shost 465 include/scsi/scsi_transport_iscsi.h iscsi_find_flashnode_sess(struct Scsi_Host *shost, void *data, shost 346 include/trace/events/scsi.h TP_PROTO(struct Scsi_Host *shost), shost 348 include/trace/events/scsi.h TP_ARGS(shost), shost 355 include/trace/events/scsi.h __entry->host_no = shost->host_no;