Home
last modified time | relevance | path

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

12

/drivers/ata/
Dlibahci_platform.c49 static int ahci_platform_enable_phys(struct ahci_host_priv *hpriv) in ahci_platform_enable_phys() argument
53 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys()
54 rc = phy_init(hpriv->phys[i]); in ahci_platform_enable_phys()
58 rc = phy_power_on(hpriv->phys[i]); in ahci_platform_enable_phys()
60 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
69 phy_power_off(hpriv->phys[i]); in ahci_platform_enable_phys()
70 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
81 static void ahci_platform_disable_phys(struct ahci_host_priv *hpriv) in ahci_platform_disable_phys() argument
85 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_disable_phys()
86 phy_power_off(hpriv->phys[i]); in ahci_platform_disable_phys()
[all …]
Dsata_mv.c451 #define IS_GEN_I(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_I) argument
452 #define IS_GEN_II(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_II) argument
453 #define IS_GEN_IIE(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_IIE) argument
454 #define IS_PCIE(hpriv) ((hpriv)->hp_flags & MV_HP_PCIE) argument
455 #define IS_SOC(hpriv) ((hpriv)->hp_flags & MV_HP_FLAG_SOC) argument
590 void (*phy_errata)(struct mv_host_priv *hpriv, void __iomem *mmio,
592 void (*enable_leds)(struct mv_host_priv *hpriv, void __iomem *mmio);
593 void (*read_preamp)(struct mv_host_priv *hpriv, int idx,
595 int (*reset_hc)(struct mv_host_priv *hpriv, void __iomem *mmio,
597 void (*reset_flash)(struct mv_host_priv *hpriv, void __iomem *mmio);
[all …]
Dahci_mvebu.c31 static void ahci_mvebu_mbus_config(struct ahci_host_priv *hpriv, in ahci_mvebu_mbus_config() argument
37 writel(0, hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config()
38 writel(0, hpriv->mmio + AHCI_WINDOW_BASE(i)); in ahci_mvebu_mbus_config()
39 writel(0, hpriv->mmio + AHCI_WINDOW_SIZE(i)); in ahci_mvebu_mbus_config()
47 hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config()
48 writel(cs->base >> 16, hpriv->mmio + AHCI_WINDOW_BASE(i)); in ahci_mvebu_mbus_config()
50 hpriv->mmio + AHCI_WINDOW_SIZE(i)); in ahci_mvebu_mbus_config()
54 static void ahci_mvebu_regret_option(struct ahci_host_priv *hpriv) in ahci_mvebu_regret_option() argument
61 writel(0x4, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_ADDR); in ahci_mvebu_regret_option()
62 writel(0x80, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_DATA); in ahci_mvebu_regret_option()
[all …]
Dahci_st.c57 static int st_ahci_deassert_resets(struct ahci_host_priv *hpriv, in st_ahci_deassert_resets() argument
60 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_deassert_resets()
92 struct ahci_host_priv *hpriv = host->private_data; in st_ahci_host_stop() local
93 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_host_stop()
103 ahci_platform_disable_resources(hpriv); in st_ahci_host_stop()
106 static int st_ahci_probe_resets(struct ahci_host_priv *hpriv, in st_ahci_probe_resets() argument
109 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_probe_resets()
129 return st_ahci_deassert_resets(hpriv, dev); in st_ahci_probe_resets()
152 struct ahci_host_priv *hpriv; in st_ahci_probe() local
159 hpriv = ahci_platform_get_resources(pdev); in st_ahci_probe()
[all …]
Dlibahci.c258 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_caps() local
260 return sprintf(buf, "%x\n", hpriv->cap); in ahci_show_host_caps()
268 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_cap2() local
270 return sprintf(buf, "%x\n", hpriv->cap2); in ahci_show_host_cap2()
278 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_version() local
280 return sprintf(buf, "%x\n", hpriv->version); in ahci_show_host_version()
303 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_read_em_buffer() local
304 void __iomem *mmio = hpriv->mmio; in ahci_read_em_buffer()
305 void __iomem *em_mmio = mmio + hpriv->em_loc; in ahci_read_em_buffer()
316 !(hpriv->em_msg_type & EM_MSG_TYPE_SGPIO)) { in ahci_read_em_buffer()
[all …]
Dahci_imx.c186 static int imx_sata_phy_reset(struct ahci_host_priv *hpriv) in imx_sata_phy_reset() argument
188 void __iomem *mmio = hpriv->mmio; in imx_sata_phy_reset()
217 static int imx_sata_enable(struct ahci_host_priv *hpriv) in imx_sata_enable() argument
219 struct imx_ahci_priv *imxpriv = hpriv->plat_data; in imx_sata_enable()
226 ret = ahci_platform_enable_regulators(hpriv); in imx_sata_enable()
259 ret = imx_sata_phy_reset(hpriv); in imx_sata_enable()
273 ahci_platform_disable_regulators(hpriv); in imx_sata_enable()
278 static void imx_sata_disable(struct ahci_host_priv *hpriv) in imx_sata_disable() argument
280 struct imx_ahci_priv *imxpriv = hpriv->plat_data; in imx_sata_disable()
293 ahci_platform_disable_regulators(hpriv); in imx_sata_disable()
[all …]
Dahci_sunxi.c158 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_sunxi_start_engine() local
161 sunxi_clrsetbits(hpriv->mmio + AHCI_P0DMACR, 0x0000ff00, 0x00004400); in ahci_sunxi_start_engine()
181 struct ahci_host_priv *hpriv; in ahci_sunxi_probe() local
184 hpriv = ahci_platform_get_resources(pdev); in ahci_sunxi_probe()
185 if (IS_ERR(hpriv)) in ahci_sunxi_probe()
186 return PTR_ERR(hpriv); in ahci_sunxi_probe()
188 hpriv->start_engine = ahci_sunxi_start_engine; in ahci_sunxi_probe()
190 rc = ahci_platform_enable_resources(hpriv); in ahci_sunxi_probe()
194 rc = ahci_sunxi_phy_init(dev, hpriv->mmio); in ahci_sunxi_probe()
198 hpriv->flags = AHCI_HFLAG_32BIT_ONLY | AHCI_HFLAG_NO_MSI | in ahci_sunxi_probe()
[all …]
Dahci_qoriq.c78 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_qoriq_hardreset() local
79 struct ahci_qoriq_priv *qoriq_priv = hpriv->plat_data; in ahci_qoriq_hardreset()
125 hpriv->start_engine(ap); in ahci_qoriq_hardreset()
150 static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) in ahci_qoriq_phy_init() argument
152 struct ahci_qoriq_priv *qpriv = hpriv->plat_data; in ahci_qoriq_phy_init()
153 void __iomem *reg_base = hpriv->mmio; in ahci_qoriq_phy_init()
187 struct ahci_host_priv *hpriv; in ahci_qoriq_probe() local
193 hpriv = ahci_platform_get_resources(pdev); in ahci_qoriq_probe()
194 if (IS_ERR(hpriv)) in ahci_qoriq_probe()
195 return PTR_ERR(hpriv); in ahci_qoriq_probe()
[all …]
Dahci_xgene.c94 struct ahci_host_priv *hpriv; member
153 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_restart_engine() local
181 hpriv->start_engine(ap); in xgene_ahci_restart_engine()
205 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_qc_issue() local
206 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_qc_issue()
282 void __iomem *mmio = ctx->hpriv->mmio; in xgene_ahci_set_phy_cfg()
368 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_do_hardreset() local
369 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_do_hardreset()
407 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_hardreset() local
435 hpriv->start_engine(ap); in xgene_ahci_hardreset()
[all …]
Dahci_seattle.c90 struct ahci_host_priv *hpriv = ap->host->private_data; in seattle_transmit_led_message() local
92 struct seattle_plat_data *plat_data = hpriv->plat_data; in seattle_transmit_led_message()
133 struct platform_device *pdev, struct ahci_host_priv *hpriv) in ahci_seattle_get_port_info() argument
153 hpriv->em_loc = 0; in ahci_seattle_get_port_info()
154 hpriv->em_buf_sz = 4; in ahci_seattle_get_port_info()
155 hpriv->em_msg_type = EM_MSG_TYPE_LED; in ahci_seattle_get_port_info()
156 hpriv->plat_data = plat_data; in ahci_seattle_get_port_info()
165 struct ahci_host_priv *hpriv; in ahci_seattle_probe() local
167 hpriv = ahci_platform_get_resources(pdev); in ahci_seattle_probe()
168 if (IS_ERR(hpriv)) in ahci_seattle_probe()
[all …]
Dsata_highbank.c143 struct ahci_host_priv *hpriv = ap->host->private_data; in ecx_transmit_led_message() local
144 struct ecx_plat_data *pdata = hpriv->plat_data; in ecx_transmit_led_message()
158 if (!(hpriv->em_msg_type & EM_MSG_TYPE_LED)) in ecx_transmit_led_message()
190 struct ahci_host_priv *hpriv, in highbank_set_em_messages() argument
194 struct ecx_plat_data *pdata = hpriv->plat_data; in highbank_set_em_messages()
222 hpriv->em_loc = 0; in highbank_set_em_messages()
223 hpriv->em_buf_sz = 4; in highbank_set_em_messages()
224 hpriv->em_msg_type = EM_MSG_TYPE_LED; in highbank_set_em_messages()
405 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_highbank_hardreset() local
434 hpriv->start_engine(ap); in ahci_highbank_hardreset()
[all …]
Dahci_tegra.c113 static int tegra_ahci_power_on(struct ahci_host_priv *hpriv) in tegra_ahci_power_on() argument
115 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra_ahci_power_on()
132 ret = ahci_platform_enable_resources(hpriv); in tegra_ahci_power_on()
152 static void tegra_ahci_power_off(struct ahci_host_priv *hpriv) in tegra_ahci_power_off() argument
154 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra_ahci_power_off()
156 ahci_platform_disable_resources(hpriv); in tegra_ahci_power_off()
168 static int tegra_ahci_controller_init(struct ahci_host_priv *hpriv) in tegra_ahci_controller_init() argument
170 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra_ahci_controller_init()
175 ret = tegra_ahci_power_on(hpriv); in tegra_ahci_controller_init()
264 static void tegra_ahci_controller_deinit(struct ahci_host_priv *hpriv) in tegra_ahci_controller_deinit() argument
[all …]
Dacard-ahci.c131 struct ahci_host_priv *hpriv = host->private_data; in acard_ahci_pci_device_suspend() local
132 void __iomem *mmio = hpriv->mmio; in acard_ahci_pci_device_suspend()
136 hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { in acard_ahci_pci_device_suspend()
326 struct ahci_host_priv *hpriv = ap->host->private_data; in acard_ahci_port_start() local
338 if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) { in acard_ahci_port_start()
343 else if (hpriv->flags & AHCI_HFLAG_YES_FBS) { in acard_ahci_port_start()
409 struct ahci_host_priv *hpriv; in acard_ahci_init_one() local
433 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in acard_ahci_init_one()
434 if (!hpriv) in acard_ahci_init_one()
437 hpriv->irq = pdev->irq; in acard_ahci_init_one()
[all …]
Dsata_uli.c105 struct uli_priv *hpriv = ap->host->private_data; in get_scr_cfg_addr() local
106 return hpriv->scr_cfg_addr[ap->port_no] + (4 * sc_reg); in get_scr_cfg_addr()
150 struct uli_priv *hpriv; in uli_init_one() local
170 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in uli_init_one()
171 if (!hpriv) in uli_init_one()
173 host->private_data = hpriv; in uli_init_one()
189 hpriv->scr_cfg_addr[0] = ULI5287_BASE; in uli_init_one()
190 hpriv->scr_cfg_addr[1] = ULI5287_BASE + ULI5287_OFFS; in uli_init_one()
198 hpriv->scr_cfg_addr[2] = ULI5287_BASE + ULI5287_OFFS*4; in uli_init_one()
213 hpriv->scr_cfg_addr[3] = ULI5287_BASE + ULI5287_OFFS*5; in uli_init_one()
[all …]
Dahci_brcm.c126 static void brcm_sata_alpm_init(struct ahci_host_priv *hpriv) in brcm_sata_alpm_init() argument
128 struct brcm_ahci_priv *priv = hpriv->plat_data; in brcm_sata_alpm_init()
137 host_caps = readl(hpriv->mmio + HOST_CAP); in brcm_sata_alpm_init()
138 writel(host_caps | HOST_CAP_ALPM, hpriv->mmio); in brcm_sata_alpm_init()
150 hpriv->mmio + SATA_PORT_PCTRL6(port_ctrl)); in brcm_sata_alpm_init()
276 struct ahci_host_priv *hpriv = host->private_data; in brcm_ahci_suspend() local
277 struct brcm_ahci_priv *priv = hpriv->plat_data; in brcm_ahci_suspend()
288 struct ahci_host_priv *hpriv = host->private_data; in brcm_ahci_resume() local
289 struct brcm_ahci_priv *priv = hpriv->plat_data; in brcm_ahci_resume()
293 brcm_sata_alpm_init(hpriv); in brcm_ahci_resume()
[all …]
Dahci.c600 struct ahci_host_priv *hpriv) in ahci_pci_save_initial_config() argument
604 hpriv->force_port_map = 1; in ahci_pci_save_initial_config()
612 if (hpriv->flags & AHCI_HFLAG_MV_PATA) { in ahci_pci_save_initial_config()
614 hpriv->mask_port_map = 0x3; in ahci_pci_save_initial_config()
616 hpriv->mask_port_map = 0xf; in ahci_pci_save_initial_config()
621 ahci_save_initial_config(&pdev->dev, hpriv); in ahci_pci_save_initial_config()
631 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_reset_controller() local
636 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_pci_reset_controller()
637 tmp16 |= hpriv->port_map; in ahci_pci_reset_controller()
647 struct ahci_host_priv *hpriv = host->private_data; in ahci_pci_init_controller() local
[all …]
Dahci_platform.c43 struct ahci_host_priv *hpriv; in ahci_probe() local
46 hpriv = ahci_platform_get_resources(pdev); in ahci_probe()
47 if (IS_ERR(hpriv)) in ahci_probe()
48 return PTR_ERR(hpriv); in ahci_probe()
50 rc = ahci_platform_enable_resources(hpriv); in ahci_probe()
55 "ports-implemented", &hpriv->force_port_map); in ahci_probe()
58 hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; in ahci_probe()
60 rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, in ahci_probe()
67 ahci_platform_disable_resources(hpriv); in ahci_probe()
Dahci_ceva.c104 static void ahci_ceva_setup(struct ahci_host_priv *hpriv) in ahci_ceva_setup() argument
106 void __iomem *mmio = hpriv->mmio; in ahci_ceva_setup()
107 struct ceva_ahci_priv *cevapriv = hpriv->plat_data; in ahci_ceva_setup()
169 struct ahci_host_priv *hpriv; in ceva_ahci_probe() local
179 hpriv = ahci_platform_get_resources(pdev); in ceva_ahci_probe()
180 if (IS_ERR(hpriv)) in ceva_ahci_probe()
181 return PTR_ERR(hpriv); in ceva_ahci_probe()
183 rc = ahci_platform_enable_resources(hpriv); in ceva_ahci_probe()
190 hpriv->plat_data = cevapriv; in ceva_ahci_probe()
193 ahci_ceva_setup(hpriv); in ceva_ahci_probe()
[all …]
Dahci_da850.c102 struct ahci_host_priv *hpriv; in ahci_da850_probe() local
107 hpriv = ahci_platform_get_resources(pdev); in ahci_da850_probe()
108 if (IS_ERR(hpriv)) in ahci_da850_probe()
109 return PTR_ERR(hpriv); in ahci_da850_probe()
111 rc = ahci_platform_enable_resources(hpriv); in ahci_da850_probe()
123 da850_sata_init(dev, pwrdn_reg, hpriv->mmio); in ahci_da850_probe()
125 rc = ahci_platform_init_host(pdev, hpriv, &ahci_da850_port_info, in ahci_da850_probe()
132 ahci_platform_disable_resources(hpriv); in ahci_da850_probe()
Dpata_rdc.c55 struct rdc_host_priv *hpriv = ap->host->private_data; in rdc_pata_cable_detect() local
60 if ((hpriv->saved_iocfg & mask) == 0) in rdc_pata_cable_detect()
329 struct rdc_host_priv *hpriv; in rdc_init_one() local
342 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in rdc_init_one()
343 if (!hpriv) in rdc_init_one()
349 pci_read_config_dword(pdev, 0x54, &hpriv->saved_iocfg); in rdc_init_one()
354 host->private_data = hpriv; in rdc_init_one()
367 struct rdc_host_priv *hpriv = host->private_data; in rdc_remove_one() local
369 pci_write_config_dword(pdev, 0x54, hpriv->saved_iocfg); in rdc_remove_one()
Dsata_inic162x.c260 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()
416 struct inic_host_priv *hpriv = host->private_data; in inic_interrupt() local
420 host_irq_stat = readw(hpriv->mmio_base + HOST_IRQ_STAT); in inic_interrupt()
792 struct inic_host_priv *hpriv = host->private_data; in inic_pci_device_resume() local
800 rc = init_controller(hpriv->mmio_base, hpriv->cached_hctl); in inic_pci_device_resume()
815 struct inic_host_priv *hpriv; in inic_init_one() local
826 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in inic_init_one()
827 if (!host || !hpriv) in inic_init_one()
830 host->private_data = hpriv; in inic_init_one()
[all …]
Data_piix.c524 struct piix_host_priv *hpriv = ap->host->private_data; in ich_pata_cable_detect() local
540 if ((hpriv->saved_iocfg & mask) == 0) in ich_pata_cable_detect()
795 struct piix_host_priv *hpriv = ap->host->private_data; in piix_sidpr_sel() local
798 hpriv->sidpr + PIIX_SIDPR_IDX); in piix_sidpr_sel()
804 struct piix_host_priv *hpriv = link->ap->host->private_data; in piix_sidpr_scr_read() local
810 *val = ioread32(hpriv->sidpr + PIIX_SIDPR_DATA); in piix_sidpr_scr_read()
817 struct piix_host_priv *hpriv = link->ap->host->private_data; in piix_sidpr_scr_write() local
823 iowrite32(val, hpriv->sidpr + PIIX_SIDPR_DATA); in piix_sidpr_scr_write()
1453 struct piix_host_priv *hpriv = host->private_data; in piix_init_sidpr() local
1460 if (hpriv->map[i] == IDE) in piix_init_sidpr()
[all …]
Dsata_via.c592 struct svia_priv *hpriv = ap->host->private_data; in vt6421_error_handler() local
597 if (!hpriv->wd_workaround) { in vt6421_error_handler()
602 hpriv->wd_workaround = true; in vt6421_error_handler()
611 struct svia_priv *hpriv) in svia_configure() argument
688 hpriv->wd_workaround = true; in svia_configure()
699 struct svia_priv *hpriv; in svia_init_one() local
739 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in svia_init_one()
740 if (!hpriv) in svia_init_one()
742 host->private_data = hpriv; in svia_init_one()
744 svia_configure(pdev, board_id, hpriv); in svia_init_one()
[all …]
Dpata_hpt366.c352 const void *hpriv = NULL; in hpt36x_init_one() local
373 hpriv = &hpt366_40; in hpt36x_init_one()
376 hpriv = &hpt366_25; in hpt36x_init_one()
379 hpriv = &hpt366_33; in hpt36x_init_one()
383 return ata_pci_bmdma_init_one(dev, ppi, &hpt36x_sht, (void *)hpriv, 0); in hpt36x_init_one()
/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
181 static void usbhsh_ureq_free(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_free() argument
193 static int usbhsh_is_running(struct usbhsh_hpriv *hpriv) in usbhsh_is_running() argument
202 return (hpriv->mod.irq_attch == NULL); in usbhsh_is_running()
208 static void usbhsh_endpoint_sequence_save(struct usbhsh_hpriv *hpriv, in usbhsh_endpoint_sequence_save() argument
250 static struct usbhsh_device *usbhsh_device_get(struct usbhsh_hpriv *hpriv,
[all …]

12