/linux-3.4.99/drivers/usb/renesas_usbhs/ |
D | mod_host.c | 117 #define usbhsh_for_each_udev(pos, hpriv, i) \ argument 118 __usbhsh_for_each_udev(1, pos, hpriv, i) 120 #define usbhsh_for_each_udev_with_dev0(pos, hpriv, i) \ argument 121 __usbhsh_for_each_udev(0, pos, hpriv, i) 163 static struct usbhsh_request *usbhsh_ureq_alloc(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_alloc() argument 168 struct usbhs_priv *priv = usbhsh_hpriv_to_priv(hpriv); in usbhsh_ureq_alloc() 184 static void usbhsh_ureq_free(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_free() argument 196 static int usbhsh_is_running(struct usbhsh_hpriv *hpriv) in usbhsh_is_running() argument 205 return (hpriv->mod.irq_attch == NULL); in usbhsh_is_running() 211 static void usbhsh_endpoint_sequence_save(struct usbhsh_hpriv *hpriv, in usbhsh_endpoint_sequence_save() argument [all …]
|
/linux-3.4.99/drivers/ata/ |
D | sata_mv.c | 441 #define IS_GEN_I(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_I) argument 442 #define IS_GEN_II(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_II) argument 443 #define IS_GEN_IIE(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_IIE) argument 444 #define IS_PCIE(hpriv) ((hpriv)->hp_flags & MV_HP_PCIE) argument 445 #define IS_SOC(hpriv) ((hpriv)->hp_flags & MV_HP_FLAG_SOC) argument 568 void (*phy_errata)(struct mv_host_priv *hpriv, void __iomem *mmio, 570 void (*enable_leds)(struct mv_host_priv *hpriv, void __iomem *mmio); 571 void (*read_preamp)(struct mv_host_priv *hpriv, int idx, 573 int (*reset_hc)(struct mv_host_priv *hpriv, void __iomem *mmio, 575 void (*reset_flash)(struct mv_host_priv *hpriv, void __iomem *mmio); [all …]
|
D | ahci_platform.c | 83 struct ahci_host_priv *hpriv; in ahci_probe() local 106 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in ahci_probe() 107 if (!hpriv) { in ahci_probe() 112 hpriv->flags |= (unsigned long)pi.private_data; in ahci_probe() 114 hpriv->mmio = devm_ioremap(dev, mem->start, resource_size(mem)); in ahci_probe() 115 if (!hpriv->mmio) { in ahci_probe() 127 rc = pdata->init(dev, hpriv->mmio); in ahci_probe() 132 ahci_save_initial_config(dev, hpriv, in ahci_probe() 137 if (hpriv->cap & HOST_CAP_NCQ) in ahci_probe() 140 if (hpriv->cap & HOST_CAP_PMP) in ahci_probe() [all …]
|
D | sata_uli.c | 106 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 …]
|
D | acard-ahci.c | 132 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 …]
|
D | libahci.c | 226 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_caps() local 228 return sprintf(buf, "%x\n", hpriv->cap); in ahci_show_host_caps() 236 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_cap2() local 238 return sprintf(buf, "%x\n", hpriv->cap2); in ahci_show_host_cap2() 246 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_version() local 247 void __iomem *mmio = hpriv->mmio; in ahci_show_host_version() 267 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_read_em_buffer() local 268 void __iomem *mmio = hpriv->mmio; in ahci_read_em_buffer() 269 void __iomem *em_mmio = mmio + hpriv->em_loc; in ahci_read_em_buffer() 279 !(hpriv->em_msg_type & EM_MSG_TYPE_SGPIO)) { in ahci_read_em_buffer() [all …]
|
D | ahci.c | 488 struct ahci_host_priv *hpriv) in ahci_pci_save_initial_config() argument 503 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_save_initial_config() 512 ahci_save_initial_config(&pdev->dev, hpriv, force_port_map, in ahci_pci_save_initial_config() 523 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_reset_controller() local 528 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_pci_reset_controller() 529 tmp16 |= hpriv->port_map; in ahci_pci_reset_controller() 539 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_init_controller() local 545 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_init_controller() 636 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_device_suspend() local 637 void __iomem *mmio = hpriv->mmio; in ahci_pci_device_suspend() [all …]
|
D | pata_rdc.c | 56 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() 332 struct rdc_host_priv *hpriv; in rdc_init_one() local 347 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in rdc_init_one() 348 if (!hpriv) in rdc_init_one() 354 pci_read_config_dword(pdev, 0x54, &hpriv->saved_iocfg); in rdc_init_one() 359 host->private_data = hpriv; in rdc_init_one() 372 struct rdc_host_priv *hpriv = host->private_data; in rdc_remove_one() local 374 pci_write_config_dword(pdev, 0x54, hpriv->saved_iocfg); in rdc_remove_one()
|
D | sata_inic162x.c | 260 struct inic_host_priv *hpriv = ap->host->private_data; in inic_port_base() local 262 return hpriv->mmio_base + ap->port_no * PORT_SIZE; in inic_port_base() 418 struct inic_host_priv *hpriv = host->private_data; in inic_interrupt() local 422 host_irq_stat = readw(hpriv->mmio_base + HOST_IRQ_STAT); in inic_interrupt() 794 struct inic_host_priv *hpriv = host->private_data; in inic_pci_device_resume() local 802 rc = init_controller(hpriv->mmio_base, hpriv->cached_hctl); in inic_pci_device_resume() 817 struct inic_host_priv *hpriv; in inic_init_one() local 828 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in inic_init_one() 829 if (!host || !hpriv) in inic_init_one() 832 host->private_data = hpriv; in inic_init_one() [all …]
|
D | ata_piix.c | 756 struct piix_host_priv *hpriv = ap->host->private_data; in ich_pata_cable_detect() local 772 if ((hpriv->saved_iocfg & mask) == 0) in ich_pata_cable_detect() 1027 struct piix_host_priv *hpriv = ap->host->private_data; in piix_sidpr_sel() local 1030 hpriv->sidpr + PIIX_SIDPR_IDX); in piix_sidpr_sel() 1036 struct piix_host_priv *hpriv = link->ap->host->private_data; in piix_sidpr_scr_read() local 1042 *val = ioread32(hpriv->sidpr + PIIX_SIDPR_DATA); in piix_sidpr_scr_read() 1049 struct piix_host_priv *hpriv = link->ap->host->private_data; in piix_sidpr_scr_write() local 1055 iowrite32(val, hpriv->sidpr + PIIX_SIDPR_DATA); in piix_sidpr_scr_write() 1477 struct piix_host_priv *hpriv = host->private_data; in piix_init_sidpr() local 1484 if (hpriv->map[i] == IDE) in piix_init_sidpr() [all …]
|
D | pata_hpt366.c | 356 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()
|
D | ahci.h | 326 struct ahci_host_priv *hpriv, 341 void ahci_set_em_messages(struct ahci_host_priv *hpriv, 350 struct ahci_host_priv *hpriv = host->private_data; in __ahci_port_base() local 351 void __iomem *mmio = hpriv->mmio; in __ahci_port_base()
|
D | sata_promise.c | 808 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()
|
D | pata_hpt3x2n.c | 500 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()
|
D | pata_amd.c | 534 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()
|
D | sata_sx4.c | 1446 struct pdc_host_priv *hpriv; in pdc_sata_init_one() local 1453 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in pdc_sata_init_one() 1454 if (!host || !hpriv) in pdc_sata_init_one() 1457 host->private_data = hpriv; in pdc_sata_init_one()
|
D | sata_nv.c | 2359 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()
|