Home
last modified time | relevance | path

Searched refs:hpriv (Results 1 – 18 of 18) sorted by relevance

/drivers/usb/renesas_usbhs/
Dmod_host.c118 #define usbhsh_for_each_udev(pos, hpriv, i) \ argument
119 __usbhsh_for_each_udev(1, pos, hpriv, i)
121 #define usbhsh_for_each_udev_with_dev0(pos, hpriv, i) \ argument
122 __usbhsh_for_each_udev(0, pos, hpriv, i)
164 static struct usbhsh_request *usbhsh_ureq_alloc(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_alloc() argument
169 struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv); in usbhsh_ureq_alloc()
185 static void usbhsh_ureq_free(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_free() argument
197 static int usbhsh_is_running(struct usbhsh_hpriv *hpriv) in usbhsh_is_running() argument
206 return (hpriv->mod.irq_attch == NULL); in usbhsh_is_running()
212 static void usbhsh_endpoint_sequence_save(struct usbhsh_hpriv *hpriv, in usbhsh_endpoint_sequence_save() argument
[all …]
/drivers/ata/
Dahci_platform.c96 struct ahci_host_priv *hpriv; in ahci_probe() local
119 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in ahci_probe()
120 if (!hpriv) { in ahci_probe()
125 hpriv->flags |= (unsigned long)pi.private_data; in ahci_probe()
127 hpriv->mmio = devm_ioremap(dev, mem->start, resource_size(mem)); in ahci_probe()
128 if (!hpriv->mmio) { in ahci_probe()
133 hpriv->clk = clk_get(dev, NULL); in ahci_probe()
134 if (IS_ERR(hpriv->clk)) { in ahci_probe()
137 rc = clk_prepare_enable(hpriv->clk); in ahci_probe()
151 rc = pdata->init(dev, hpriv->mmio); in ahci_probe()
[all …]
Dsata_mv.c443 #define IS_GEN_I(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_I) argument
444 #define IS_GEN_II(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_II) argument
445 #define IS_GEN_IIE(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_IIE) argument
446 #define IS_PCIE(hpriv) ((hpriv)->hp_flags & MV_HP_PCIE) argument
447 #define IS_SOC(hpriv) ((hpriv)->hp_flags & MV_HP_FLAG_SOC) argument
571 void (*phy_errata)(struct mv_host_priv *hpriv, void __iomem *mmio,
573 void (*enable_leds)(struct mv_host_priv *hpriv, void __iomem *mmio);
574 void (*read_preamp)(struct mv_host_priv *hpriv, int idx,
576 int (*reset_hc)(struct mv_host_priv *hpriv, void __iomem *mmio,
578 void (*reset_flash)(struct mv_host_priv *hpriv, void __iomem *mmio);
[all …]
Dlibahci.c232 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_caps() local
234 return sprintf(buf, "%x\n", hpriv->cap); in ahci_show_host_caps()
242 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_cap2() local
244 return sprintf(buf, "%x\n", hpriv->cap2); in ahci_show_host_cap2()
252 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_version() local
253 void __iomem *mmio = hpriv->mmio; in ahci_show_host_version()
273 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_read_em_buffer() local
274 void __iomem *mmio = hpriv->mmio; in ahci_read_em_buffer()
275 void __iomem *em_mmio = mmio + hpriv->em_loc; in ahci_read_em_buffer()
285 !(hpriv->em_msg_type & EM_MSG_TYPE_SGPIO)) { in ahci_read_em_buffer()
[all …]
Dsata_uli.c106 struct uli_priv *hpriv = ap->host->private_data; in get_scr_cfg_addr() local
107 return hpriv->scr_cfg_addr[ap->port_no] + (4 * sc_reg); in get_scr_cfg_addr()
151 struct uli_priv *hpriv; in uli_init_one() local
171 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in uli_init_one()
172 if (!hpriv) in uli_init_one()
174 host->private_data = hpriv; in uli_init_one()
190 hpriv->scr_cfg_addr[0] = ULI5287_BASE; in uli_init_one()
191 hpriv->scr_cfg_addr[1] = ULI5287_BASE + ULI5287_OFFS; in uli_init_one()
199 hpriv->scr_cfg_addr[2] = ULI5287_BASE + ULI5287_OFFS*4; in uli_init_one()
214 hpriv->scr_cfg_addr[3] = ULI5287_BASE + ULI5287_OFFS*5; in uli_init_one()
[all …]
Dacard-ahci.c132 struct ahci_host_priv *hpriv = host->private_data; in acard_ahci_pci_device_suspend() local
133 void __iomem *mmio = hpriv->mmio; in acard_ahci_pci_device_suspend()
137 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { in acard_ahci_pci_device_suspend()
327 struct ahci_host_priv *hpriv = ap->host->private_data; in acard_ahci_port_start() local
339 if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) { in acard_ahci_port_start()
344 else if (hpriv->flags & AHCI_HFLAG_YES_FBS) { in acard_ahci_port_start()
410 struct ahci_host_priv *hpriv; in acard_ahci_init_one() local
434 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in acard_ahci_init_one()
435 if (!hpriv) in acard_ahci_init_one()
437 hpriv->flags |= (unsigned long)pi.private_data; in acard_ahci_init_one()
[all …]
Dsata_highbank.c266 struct ahci_host_priv *hpriv; in ahci_highbank_probe() local
288 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in ahci_highbank_probe()
289 if (!hpriv) { in ahci_highbank_probe()
294 hpriv->flags |= (unsigned long)pi.private_data; in ahci_highbank_probe()
296 hpriv->mmio = devm_ioremap(dev, mem->start, resource_size(mem)); in ahci_highbank_probe()
297 if (!hpriv->mmio) { in ahci_highbank_probe()
302 rc = highbank_initialize_phys(dev, hpriv->mmio); in ahci_highbank_probe()
307 ahci_save_initial_config(dev, hpriv, 0, 0); in ahci_highbank_probe()
310 if (hpriv->cap & HOST_CAP_NCQ) in ahci_highbank_probe()
313 if (hpriv->cap & HOST_CAP_PMP) in ahci_highbank_probe()
[all …]
Dahci.c474 struct ahci_host_priv *hpriv) in ahci_pci_save_initial_config() argument
489 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_save_initial_config()
498 ahci_save_initial_config(&pdev->dev, hpriv, force_port_map, in ahci_pci_save_initial_config()
509 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_reset_controller() local
514 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_pci_reset_controller()
515 tmp16 |= hpriv->port_map; in ahci_pci_reset_controller()
525 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_init_controller() local
531 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_init_controller()
622 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_device_suspend() local
623 void __iomem *mmio = hpriv->mmio; in ahci_pci_device_suspend()
[all …]
Dpata_rdc.c56 struct rdc_host_priv *hpriv = ap->host->private_data; in rdc_pata_cable_detect() local
61 if ((hpriv->saved_iocfg & mask) == 0) in rdc_pata_cable_detect()
330 struct rdc_host_priv *hpriv; in rdc_init_one() local
343 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in rdc_init_one()
344 if (!hpriv) in rdc_init_one()
350 pci_read_config_dword(pdev, 0x54, &hpriv->saved_iocfg); in rdc_init_one()
355 host->private_data = hpriv; in rdc_init_one()
368 struct rdc_host_priv *hpriv = host->private_data; in rdc_remove_one() local
370 pci_write_config_dword(pdev, 0x54, hpriv->saved_iocfg); in rdc_remove_one()
Dsata_inic162x.c248 struct inic_host_priv *hpriv = ap->host->private_data; in inic_port_base() local
250 return hpriv->mmio_base + ap->port_no * PORT_SIZE; in inic_port_base()
404 struct inic_host_priv *hpriv = host->private_data; in inic_interrupt() local
408 host_irq_stat = readw(hpriv->mmio_base + HOST_IRQ_STAT); in inic_interrupt()
780 struct inic_host_priv *hpriv = host->private_data; in inic_pci_device_resume() local
788 rc = init_controller(hpriv->mmio_base, hpriv->cached_hctl); in inic_pci_device_resume()
803 struct inic_host_priv *hpriv; in inic_init_one() local
812 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in inic_init_one()
813 if (!host || !hpriv) in inic_init_one()
816 host->private_data = hpriv; in inic_init_one()
[all …]
Data_piix.c514 struct piix_host_priv *hpriv = ap->host->private_data; in ich_pata_cable_detect() local
530 if ((hpriv->saved_iocfg & mask) == 0) in ich_pata_cable_detect()
785 struct piix_host_priv *hpriv = ap->host->private_data; in piix_sidpr_sel() local
788 hpriv->sidpr + PIIX_SIDPR_IDX); in piix_sidpr_sel()
794 struct piix_host_priv *hpriv = link->ap->host->private_data; in piix_sidpr_scr_read() local
800 *val = ioread32(hpriv->sidpr + PIIX_SIDPR_DATA); in piix_sidpr_scr_read()
807 struct piix_host_priv *hpriv = link->ap->host->private_data; in piix_sidpr_scr_write() local
813 iowrite32(val, hpriv->sidpr + PIIX_SIDPR_DATA); in piix_sidpr_scr_write()
1442 struct piix_host_priv *hpriv = host->private_data; in piix_init_sidpr() local
1449 if (hpriv->map[i] == IDE) in piix_init_sidpr()
[all …]
Dpata_hpt366.c356 void *hpriv = NULL; in hpt36x_init_one() local
377 hpriv = &hpt366_40; in hpt36x_init_one()
380 hpriv = &hpt366_25; in hpt36x_init_one()
383 hpriv = &hpt366_33; in hpt36x_init_one()
387 return ata_pci_bmdma_init_one(dev, ppi, &hpt36x_sht, hpriv, 0); in hpt36x_init_one()
Dahci.h346 struct ahci_host_priv *hpriv,
361 void ahci_set_em_messages(struct ahci_host_priv *hpriv,
373 struct ahci_host_priv *hpriv = host->private_data; in __ahci_port_base() local
374 void __iomem *mmio = hpriv->mmio; in __ahci_port_base()
Dsata_promise.c808 struct pdc_host_priv *hpriv = ap->host->private_data; in pdc_hard_reset_port() local
811 spin_lock(&hpriv->hard_reset_lock); in pdc_hard_reset_port()
822 spin_unlock(&hpriv->hard_reset_lock); in pdc_hard_reset_port()
1190 struct pdc_host_priv *hpriv; in pdc_ata_init_one() local
1227 hpriv = devm_kzalloc(&pdev->dev, sizeof *hpriv, GFP_KERNEL); in pdc_ata_init_one()
1228 if (!hpriv) in pdc_ata_init_one()
1230 spin_lock_init(&hpriv->hard_reset_lock); in pdc_ata_init_one()
1231 host->private_data = hpriv; in pdc_ata_init_one()
Dpata_hpt3x2n.c500 void *hpriv = (void *)USE_DPLL; in hpt3x2n_init_one() local
593 hpriv = (void *)(PCI66 | USE_DPLL); in hpt3x2n_init_one()
604 return ata_pci_bmdma_init_one(dev, ppi, &hpt3x2n_sht, hpriv, 0); in hpt3x2n_init_one()
Dpata_amd.c534 void *hpriv = NULL; in amd_init_one() local
571 hpriv = (void *)(unsigned long)udma; in amd_init_one()
575 return ata_pci_bmdma_init_one(pdev, ppi, &amd_sht, hpriv, 0); in amd_init_one()
Dsata_nv.c2359 struct nv_host_priv *hpriv; in nv_init_one() local
2393 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in nv_init_one()
2394 if (!hpriv) in nv_init_one()
2396 hpriv->type = type; in nv_init_one()
2397 host->private_data = hpriv; in nv_init_one()
2439 struct nv_host_priv *hpriv = host->private_data; in nv_pci_device_resume() local
2447 if (hpriv->type >= CK804) { in nv_pci_device_resume()
2454 if (hpriv->type == ADMA) { in nv_pci_device_resume()
Dsata_sx4.c1444 struct pdc_host_priv *hpriv; in pdc_sata_init_one() local
1451 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in pdc_sata_init_one()
1452 if (!host || !hpriv) in pdc_sata_init_one()
1455 host->private_data = hpriv; in pdc_sata_init_one()