Home
last modified time | relevance | path

Searched refs:sht (Results 1 – 38 of 38) sorted by relevance

/linux-4.4.14/drivers/scsi/
Dscsi_module.c19 struct scsi_host_template *sht = &driver_template; in init_this_scsi_driver() local
24 if (!sht->release) { in init_this_scsi_driver()
27 sht->name); in init_this_scsi_driver()
31 sht->module = THIS_MODULE; in init_this_scsi_driver()
32 INIT_LIST_HEAD(&sht->legacy_hosts); in init_this_scsi_driver()
34 sht->detect(sht); in init_this_scsi_driver()
35 if (list_empty(&sht->legacy_hosts)) in init_this_scsi_driver()
38 list_for_each_entry(shost, &sht->legacy_hosts, sht_legacy_list) { in init_this_scsi_driver()
47 while ((l = l->prev) != &sht->legacy_hosts) in init_this_scsi_driver()
54 struct scsi_host_template *sht = &driver_template; in exit_this_scsi_driver() local
[all …]
Dhosts.c204 struct scsi_host_template *sht = shost->hostt; in scsi_add_host_with_dma() local
208 sht->info ? sht->info(shost) : sht->name); in scsi_add_host_with_dma()
387 struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) in scsi_host_alloc() argument
392 if (sht->unchecked_isa_dma && privsize) in scsi_host_alloc()
431 shost->hostt = sht; in scsi_host_alloc()
432 shost->this_id = sht->this_id; in scsi_host_alloc()
433 shost->can_queue = sht->can_queue; in scsi_host_alloc()
434 shost->sg_tablesize = sht->sg_tablesize; in scsi_host_alloc()
435 shost->sg_prot_tablesize = sht->sg_prot_tablesize; in scsi_host_alloc()
436 shost->cmd_per_lun = sht->cmd_per_lun; in scsi_host_alloc()
[all …]
Dscsi_proc.c100 void scsi_proc_hostdir_add(struct scsi_host_template *sht) in scsi_proc_hostdir_add() argument
102 if (!sht->show_info) in scsi_proc_hostdir_add()
106 if (!sht->present++) { in scsi_proc_hostdir_add()
107 sht->proc_dir = proc_mkdir(sht->proc_name, proc_scsi); in scsi_proc_hostdir_add()
108 if (!sht->proc_dir) in scsi_proc_hostdir_add()
110 __func__, sht->proc_name); in scsi_proc_hostdir_add()
119 void scsi_proc_hostdir_rm(struct scsi_host_template *sht) in scsi_proc_hostdir_rm() argument
121 if (!sht->show_info) in scsi_proc_hostdir_rm()
125 if (!--sht->present && sht->proc_dir) { in scsi_proc_hostdir_rm()
126 remove_proc_entry(sht->proc_name, proc_scsi); in scsi_proc_hostdir_rm()
[all …]
Dqlogicfas.c145 static int qlogicfas_detect(struct scsi_host_template *sht) in qlogicfas_detect() argument
152 shost = __qlogicfas_detect(sht, iobase[num], irq[num]); in qlogicfas_detect()
Dscsi_priv.h107 # define scsi_proc_hostdir_add(sht) do { } while (0) argument
108 # define scsi_proc_hostdir_rm(sht) do { } while (0) argument
Ddpti.h31 static int adpt_detect(struct scsi_host_template * sht);
294 static s32 adpt_scsi_host_alloc(adpt_hba* pHba,struct scsi_host_template * sht);
304 static int adpt_install_hba(struct scsi_host_template* sht, struct pci_dev* pDev) ;
Dscsi_sysfs.c265 struct scsi_host_template *sht = shost->hostt; in store_host_reset() local
273 if (sht->host_reset) in store_host_reset()
274 ret = sht->host_reset(shost, type); in store_host_reset()
880 struct scsi_host_template *sht = sdev->host->hostt; in DECLARE_EVT() local
882 if (!sht->change_queue_depth) in DECLARE_EVT()
890 retval = sht->change_queue_depth(sdev, depth); in DECLARE_EVT()
Dscsi_error.c608 struct scsi_host_template *sht = sdev->host->hostt; in scsi_handle_queue_ramp_up() local
611 if (!sht->track_queue_depth || in scsi_handle_queue_ramp_up()
640 struct scsi_host_template *sht = sdev->host->hostt; in scsi_handle_queue_full() local
643 if (!sht->track_queue_depth) in scsi_handle_queue_full()
Ddpt_i2o.c190 static int adpt_detect(struct scsi_host_template* sht) in adpt_detect() argument
202 if(adpt_install_hba(sht, pDev) ){ in adpt_detect()
273 if (adpt_scsi_host_alloc(pHba, sht) < 0){ in adpt_detect()
904 static int adpt_install_hba(struct scsi_host_template* sht, struct pci_dev* pDev) in adpt_install_hba() argument
2341 static s32 adpt_scsi_host_alloc(adpt_hba* pHba, struct scsi_host_template *sht) in adpt_scsi_host_alloc() argument
2345 host = scsi_host_alloc(sht, sizeof(adpt_hba*)); in adpt_scsi_host_alloc()
Dlibiscsi.c2606 struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht, in iscsi_host_alloc() argument
2612 shost = scsi_host_alloc(sht, sizeof(struct iscsi_host) + dd_data_size); in iscsi_host_alloc()
/linux-4.4.14/drivers/usb/storage/
Dscsiglue.c590 void usb_stor_host_template_init(struct scsi_host_template *sht, in usb_stor_host_template_init() argument
593 *sht = usb_stor_host_template; in usb_stor_host_template_init()
594 sht->name = name; in usb_stor_host_template_init()
595 sht->proc_name = name; in usb_stor_host_template_init()
596 sht->module = owner; in usb_stor_host_template_init()
Dscsiglue.h44 extern void usb_stor_host_template_init(struct scsi_host_template *sht,
Dusb.h201 struct scsi_host_template *sht);
Dusb.c933 struct scsi_host_template *sht) in usb_stor_probe1() argument
945 host = scsi_host_alloc(sht, sizeof(*us)); in usb_stor_probe1()
/linux-4.4.14/include/linux/
Data_platform.h21 struct scsi_host_template *sht);
Dahci_platform.h37 struct scsi_host_template *sht);
Dlibata.h1130 struct scsi_host_template *sht);
1133 struct scsi_host_template *sht);
1136 extern int ata_scsi_detect(struct scsi_host_template *sht);
1865 struct scsi_host_template *sht);
1868 struct scsi_host_template *sht, void *host_priv, int hflags);
1904 struct scsi_host_template *sht,
/linux-4.4.14/drivers/ata/
Dpata_serverworks.c414 struct scsi_host_template *sht = &serverworks_csb_sht; in serverworks_init_one() local
428 sht = &serverworks_osb4_sht; in serverworks_init_one()
445 return ata_pci_bmdma_init_one(pdev, ppi, sht, NULL, 0); in serverworks_init_one()
Dpata_platform.c104 struct scsi_host_template *sht) in __pata_platform_probe() argument
175 irq_flags, sht); in __pata_platform_probe()
Dlibata-sff.c2417 struct scsi_host_template *sht) in ata_pci_sff_activate_host() argument
2478 rc = ata_host_register(host, sht); in ata_pci_sff_activate_host()
2504 struct scsi_host_template *sht, void *host_priv, in ata_pci_init_one() argument
2543 rc = ata_pci_sff_activate_host(host, ata_bmdma_interrupt, sht); in ata_pci_init_one()
2546 rc = ata_pci_sff_activate_host(host, ata_sff_interrupt, sht); in ata_pci_init_one()
2580 struct scsi_host_template *sht, void *host_priv, int hflag) in ata_pci_sff_init_one() argument
2582 return ata_pci_init_one(pdev, ppi, sht, host_priv, hflag, 0); in ata_pci_sff_init_one()
3298 struct scsi_host_template *sht, void *host_priv, in ata_pci_bmdma_init_one() argument
3301 return ata_pci_init_one(pdev, ppi, sht, host_priv, hflags, 1); in ata_pci_bmdma_init_one()
Dlibahci_platform.c507 struct scsi_host_template *sht) in ahci_platform_init_host() argument
593 return ahci_host_activate(host, sht); in ahci_platform_init_host()
Dahci.h401 int ahci_host_activate(struct ata_host *host, struct scsi_host_template *sht);
Dlibata.h137 struct scsi_host_template *sht);
Data_piix.c1662 struct scsi_host_template *sht = &piix_sht; in piix_init_one() local
1730 sht = &piix_sidpr_sht; in piix_init_one()
1760 return ata_pci_sff_activate_host(host, ata_bmdma_interrupt, sht); in piix_init_one()
Dlibahci.c2483 struct scsi_host_template *sht) in ahci_host_activate_multi_irqs() argument
2511 return ata_host_register(host, sht); in ahci_host_activate_multi_irqs()
2525 int ahci_host_activate(struct ata_host *host, struct scsi_host_template *sht) in ahci_host_activate() argument
2532 rc = ahci_host_activate_multi_irqs(host, irq, sht); in ahci_host_activate()
2535 IRQF_SHARED, sht); in ahci_host_activate()
2538 IRQF_SHARED, sht); in ahci_host_activate()
Dlibata-core.c6116 int ata_host_register(struct ata_host *host, struct scsi_host_template *sht) in ata_host_register() argument
6120 host->n_tags = clamp(sht->can_queue, 1, ATA_MAX_QUEUE - 1); in ata_host_register()
6150 rc = ata_scsi_add_hosts(host, sht); in ata_host_register()
6223 struct scsi_host_template *sht) in ata_host_activate() argument
6234 return ata_host_register(host, sht); in ata_host_activate()
6245 rc = ata_host_register(host, sht); in ata_host_activate()
Dsata_nv.c532 struct scsi_host_template *sht; member
536 &(struct nv_pi_priv){ .irq_handler = _irq_handler, .sht = _sht }
2431 return ata_pci_sff_activate_host(host, ipriv->irq_handler, ipriv->sht); in nv_init_one()
Dlibata-scsi.c3666 int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht) in ata_scsi_add_hosts() argument
3675 shost = scsi_host_alloc(sht, sizeof(struct ata_port *)); in ata_scsi_add_hosts()
/linux-4.4.14/drivers/scsi/pcmcia/
Dnsp_cs.h293 static struct Scsi_Host *nsp_detect (struct scsi_host_template *sht);
324 static struct Scsi_Host *nsp_detect(struct scsi_host_template *sht);
Dnsp_cs.c1313 static struct Scsi_Host *nsp_detect(struct scsi_host_template *sht) in nsp_detect() argument
1318 nsp_dbg(NSP_DEBUG_INIT, "this_id=%d", sht->this_id); in nsp_detect()
1348 sht->name = data->nspinfo; in nsp_detect()
/linux-4.4.14/drivers/scsi/bfa/
Dbfad_im.c718 struct scsi_host_template *sht; in bfad_scsi_host_alloc() local
721 sht = &bfad_im_scsi_host_template; in bfad_scsi_host_alloc()
723 sht = &bfad_im_vport_template; in bfad_scsi_host_alloc()
726 sht->max_sectors = max_xfer_size << 1; in bfad_scsi_host_alloc()
728 sht->sg_tablesize = bfad->cfg_data.io_max_sge; in bfad_scsi_host_alloc()
730 return scsi_host_alloc(sht, sizeof(unsigned long)); in bfad_scsi_host_alloc()
/linux-4.4.14/include/scsi/
Dlibfc.h1030 libfc_host_alloc(struct scsi_host_template *sht, int priv_size) in libfc_host_alloc() argument
1035 shost = scsi_host_alloc(sht, sizeof(*lport) + priv_size); in libfc_host_alloc()
Dlibiscsi.h399 extern struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht,
/linux-4.4.14/net/sched/
Dcls_rsvp.h412 struct rsvp_session __rcu **sht = data->ht; in tunnel_recycle() local
420 for (s = rtnl_dereference(sht[h1]); s; in tunnel_recycle()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_mid.c447 struct scsi_host_template *sht = &qla2xxx_driver_template; in qla24xx_create_vhost() local
450 vha = qla2x00_create_host(sht, ha); in qla24xx_create_vhost()
Dqla_os.c2280 struct scsi_host_template *sht; in qla2x00_probe_one() local
2286 sht = &qla2xxx_driver_template; in qla2x00_probe_one()
2571 base_vha = qla2x00_create_host(sht, ha); in qla2x00_probe_one()
2622 sht->vendor_id = (SCSI_NL_VID_TYPE_PCI | PCI_VENDOR_ID_QLOGIC); in qla2x00_probe_one()
2630 host->transportt, sht->vendor_id); in qla2x00_probe_one()
3749 struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht, in qla2x00_create_host() argument
3755 host = scsi_host_alloc(sht, sizeof(scsi_qla_host_t)); in qla2x00_create_host()
/linux-4.4.14/Documentation/scsi/
Dscsi_mid_low_api.txt494 * @sht: pointer to scsi host template
512 struct Scsi_Host * scsi_host_alloc(struct scsi_host_template * sht,
572 * @sht: pointer to scsi host template
587 struct Scsi_Host * scsi_register(struct scsi_host_template * sht,
/linux-4.4.14/drivers/scsi/cxgbi/
Dlibcxgbi.c338 unsigned int max_id, struct scsi_host_template *sht, in cxgbi_hbas_add() argument
348 shost = iscsi_host_alloc(sht, sizeof(*chba), 1); in cxgbi_hbas_add()