| /linux/drivers/ata/ |
| A D | libahci_platform.c | 137 if (hpriv->clks[c]) in ahci_platform_disable_clks() 303 if (hpriv->target_pwrs && hpriv->target_pwrs[c]) in ahci_platform_put_resources() 398 hpriv = devres_alloc(ahci_platform_put_resources, sizeof(*hpriv), in ahci_platform_get_resources() 400 if (!hpriv) in ahci_platform_get_resources() 462 hpriv->nports = 1; in ahci_platform_get_resources() 464 hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL); in ahci_platform_get_resources() 465 if (!hpriv->phys) { in ahci_platform_get_resources() 473 hpriv->target_pwrs = kcalloc(hpriv->nports, sizeof(*hpriv->target_pwrs), GFP_KERNEL); in ahci_platform_get_resources() 548 return hpriv; in ahci_platform_get_resources() 590 hpriv->irq = irq; in ahci_platform_init_host() [all …]
|
| A D | ahci_mvebu.c | 52 hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config() 77 ahci_mvebu_mbus_config(hpriv, dram); in ahci_mvebu_armada_380_config() 81 ahci_mvebu_regret_option(hpriv); in ahci_mvebu_armada_380_config() 165 pdata->plat_config(hpriv); in ahci_mvebu_resume() 188 struct ahci_host_priv *hpriv; in ahci_mvebu_probe() local 196 if (IS_ERR(hpriv)) in ahci_mvebu_probe() 197 return PTR_ERR(hpriv); in ahci_mvebu_probe() 199 hpriv->flags |= pdata->flags; in ahci_mvebu_probe() 200 hpriv->plat_data = (void *)pdata; in ahci_mvebu_probe() 208 rc = pdata->plat_config(hpriv); in ahci_mvebu_probe() [all …]
|
| A D | sata_mv.c | 438 #define IS_GEN_I(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_I) argument 439 #define IS_GEN_II(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_II) argument 441 #define IS_PCIE(hpriv) ((hpriv)->hp_flags & MV_HP_PCIE) argument 442 #define IS_SOC(hpriv) ((hpriv)->hp_flags & MV_HP_FLAG_SOC) argument 3035 mv_write_main_irq_mask(hpriv->main_irq_mask, hpriv); in mv_interrupt() 3589 hpriv->ops->phy_errata(hpriv, mmio, port_no); in mv_reset_channel() 3739 if (IS_SOC(hpriv) || !IS_PCIE(hpriv)) in mv_in_pcix_mode() 3955 hpriv->ops->read_preamp(hpriv, port, mmio); in mv_init_host() 3957 rc = hpriv->ops->reset_hc(hpriv, mmio, n_hc); in mv_init_host() 3961 hpriv->ops->reset_flash(hpriv, mmio); in mv_init_host() [all …]
|
| A D | ahci_st.c | 100 ahci_platform_disable_resources(hpriv); in st_ahci_host_stop() 126 return st_ahci_deassert_resets(hpriv, dev); in st_ahci_probe_resets() 149 struct ahci_host_priv *hpriv; in st_ahci_probe() local 157 if (IS_ERR(hpriv)) in st_ahci_probe() 158 return PTR_ERR(hpriv); in st_ahci_probe() 159 hpriv->plat_data = drv_data; in st_ahci_probe() 169 st_ahci_configure_oob(hpriv->mmio); in st_ahci_probe() 177 ahci_platform_disable_resources(hpriv); in st_ahci_probe() 204 ahci_platform_disable_resources(hpriv); in st_ahci_suspend() 221 ahci_platform_disable_resources(hpriv); in st_ahci_resume() [all …]
|
| A D | ahci_brcm.c | 255 void __iomem *mmio = hpriv->mmio; in brcm_ahci_read_id() 291 rc = phy_init(hpriv->phys[i]); in brcm_ahci_read_id() 297 phy_exit(hpriv->phys[i]); in brcm_ahci_read_id() 314 phy_power_off(hpriv->phys[i]); in brcm_ahci_read_id() 315 phy_exit(hpriv->phys[i]); in brcm_ahci_read_id() 387 brcm_sata_alpm_init(hpriv); in brcm_ahci_resume() 439 struct ahci_host_priv *hpriv; in brcm_ahci_probe() local 470 if (IS_ERR(hpriv)) in brcm_ahci_probe() 471 return PTR_ERR(hpriv); in brcm_ahci_probe() 473 hpriv->plat_data = priv; in brcm_ahci_probe() [all …]
|
| A D | libahci.c | 520 if (hpriv->force_port_map && port_map != hpriv->force_port_map) { in ahci_save_initial_config() 563 hpriv->cap = cap; in ahci_save_initial_config() 564 hpriv->cap2 = cap2; in ahci_save_initial_config() 571 if (!hpriv->stop_engine) in ahci_save_initial_config() 574 if (!hpriv->irq_handler) in ahci_save_initial_config() 594 if (hpriv->saved_cap2) in ahci_restore_initial_config() 1980 mmio = hpriv->mmio; in ahci_single_level_irq_intr() 2482 vers = hpriv->version; in ahci_print_info() 2483 cap = hpriv->cap; in ahci_print_info() 2484 cap2 = hpriv->cap2; in ahci_print_info() [all …]
|
| A D | ahci_xgene.c | 81 struct ahci_host_priv *hpriv; member 155 hpriv->stop_engine(ap); in xgene_ahci_restart_engine() 168 hpriv->start_engine(ap); in xgene_ahci_restart_engine() 411 hpriv->stop_engine(ap); in xgene_ahci_hardreset() 422 hpriv->start_engine(ap); in xgene_ahci_hardreset() 594 mmio = hpriv->mmio; in xgene_ahci_irq_intr() 750 if (IS_ERR(hpriv)) in xgene_ahci_probe() 751 return PTR_ERR(hpriv); in xgene_ahci_probe() 757 hpriv->plat_data = ctx; in xgene_ahci_probe() 758 ctx->hpriv = hpriv; in xgene_ahci_probe() [all …]
|
| A D | ahci.c | 705 hpriv->stop_engine(ap); in ahci_vt8251_hardreset() 710 hpriv->start_engine(ap); in ahci_vt8251_hardreset() 731 hpriv->stop_engine(ap); in ahci_p5wdh_hardreset() 741 hpriv->start_engine(ap); in ahci_p5wdh_hardreset() 795 hpriv->stop_engine(ap); in ahci_avn_hardreset() 827 hpriv->start_engine(ap); in ahci_avn_hardreset() 1481 mmio = hpriv->mmio; in ahci_thunderx_irq_handler() 1647 if ((tmp16 & hpriv->port_map) != hpriv->port_map) { in ahci_intel_pcs_quirk() 1745 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in ahci_init_one() 1746 if (!hpriv) in ahci_init_one() [all …]
|
| A D | ahci_mtk.c | 47 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_platform_resets() 105 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_parse_property() 130 struct ahci_host_priv *hpriv; in mtk_ahci_probe() local 137 hpriv = ahci_platform_get_resources(pdev, 0); in mtk_ahci_probe() 138 if (IS_ERR(hpriv)) in mtk_ahci_probe() 139 return PTR_ERR(hpriv); in mtk_ahci_probe() 141 hpriv->plat_data = plat; in mtk_ahci_probe() 143 err = mtk_ahci_parse_property(hpriv, dev); in mtk_ahci_probe() 147 err = mtk_ahci_platform_resets(hpriv, dev); in mtk_ahci_probe() 151 err = ahci_platform_enable_resources(hpriv); in mtk_ahci_probe() [all …]
|
| A D | ahci_sunxi.c | 216 struct ahci_host_priv *hpriv; in ahci_sunxi_probe() local 220 if (IS_ERR(hpriv)) in ahci_sunxi_probe() 221 return PTR_ERR(hpriv); in ahci_sunxi_probe() 223 hpriv->start_engine = ahci_sunxi_start_engine; in ahci_sunxi_probe() 225 rc = ahci_platform_enable_resources(hpriv); in ahci_sunxi_probe() 229 rc = ahci_sunxi_phy_init(dev, hpriv->mmio); in ahci_sunxi_probe() 242 hpriv->flags |= AHCI_HFLAG_NO_PMP; in ahci_sunxi_probe() 252 ahci_platform_disable_resources(hpriv); in ahci_sunxi_probe() 263 rc = ahci_platform_enable_resources(hpriv); in ahci_sunxi_resume() 267 rc = ahci_sunxi_phy_init(dev, hpriv->mmio); in ahci_sunxi_resume() [all …]
|
| A D | ahci_seattle.c | 145 hpriv->em_loc = 0; in ahci_seattle_get_port_info() 146 hpriv->em_buf_sz = 4; in ahci_seattle_get_port_info() 147 hpriv->em_msg_type = EM_MSG_TYPE_LED; in ahci_seattle_get_port_info() 148 hpriv->plat_data = plat_data; in ahci_seattle_get_port_info() 157 struct ahci_host_priv *hpriv; in ahci_seattle_probe() local 159 hpriv = ahci_platform_get_resources(pdev, 0); in ahci_seattle_probe() 160 if (IS_ERR(hpriv)) in ahci_seattle_probe() 161 return PTR_ERR(hpriv); in ahci_seattle_probe() 163 rc = ahci_platform_enable_resources(hpriv); in ahci_seattle_probe() 167 rc = ahci_platform_init_host(pdev, hpriv, in ahci_seattle_probe() [all …]
|
| A D | ahci_ceva.c | 126 void __iomem *mmio = hpriv->mmio; in ahci_ceva_setup() 197 struct ahci_host_priv *hpriv; in ceva_ahci_probe() local 215 if (IS_ERR(hpriv)) in ceva_ahci_probe() 216 return PTR_ERR(hpriv); in ceva_ahci_probe() 231 for (i = 0; i < hpriv->nports; i++) { in ceva_ahci_probe() 232 rc = phy_init(hpriv->phys[i]); in ceva_ahci_probe() 241 rc = phy_power_on(hpriv->phys[i]); in ceva_ahci_probe() 243 phy_exit(hpriv->phys[i]); in ceva_ahci_probe() 311 hpriv->plat_data = cevapriv; in ceva_ahci_probe() 314 ahci_ceva_setup(hpriv); in ceva_ahci_probe() [all …]
|
| A D | acard-ahci.c | 116 void __iomem *mmio = hpriv->mmio; in acard_ahci_pci_device_suspend() 361 struct ahci_host_priv *hpriv; in acard_ahci_init_one() local 385 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in acard_ahci_init_one() 386 if (!hpriv) in acard_ahci_init_one() 389 hpriv->irq = pdev->irq; in acard_ahci_init_one() 401 if (hpriv->cap & HOST_CAP_NCQ) in acard_ahci_init_one() 404 if (hpriv->cap & HOST_CAP_PMP) in acard_ahci_init_one() 407 ahci_set_em_messages(hpriv, &pi); in acard_ahci_init_one() 414 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in acard_ahci_init_one() 419 host->private_data = hpriv; in acard_ahci_init_one() [all …]
|
| A D | ahci_dm816.c | 72 if (!hpriv->clks[1]) { in ahci_dm816_phy_init() 77 refclk_rate = clk_get_rate(hpriv->clks[1]); in ahci_dm816_phy_init() 93 writel(val, hpriv->mmio + AHCI_DM816_P0PHYCR_REG); in ahci_dm816_phy_init() 144 struct ahci_host_priv *hpriv; in ahci_dm816_probe() local 147 hpriv = ahci_platform_get_resources(pdev, 0); in ahci_dm816_probe() 148 if (IS_ERR(hpriv)) in ahci_dm816_probe() 149 return PTR_ERR(hpriv); in ahci_dm816_probe() 151 rc = ahci_platform_enable_resources(hpriv); in ahci_dm816_probe() 155 rc = ahci_dm816_phy_init(hpriv, dev); in ahci_dm816_probe() 159 rc = ahci_platform_init_host(pdev, hpriv, in ahci_dm816_probe() [all …]
|
| A D | sata_highbank.c | 208 hpriv->em_loc = 0; in highbank_set_em_messages() 209 hpriv->em_buf_sz = 4; in highbank_set_em_messages() 399 hpriv->stop_engine(ap); in ahci_highbank_hardreset() 420 hpriv->start_engine(ap); in ahci_highbank_hardreset() 477 hpriv = devm_kzalloc(dev, sizeof(*hpriv), GFP_KERNEL); in ahci_highbank_probe() 478 if (!hpriv) { in ahci_highbank_probe() 488 hpriv->irq = irq; in ahci_highbank_probe() 492 if (!hpriv->mmio) { in ahci_highbank_probe() 519 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_highbank_probe() 522 hpriv->plat_data = pdata; in ahci_highbank_probe() [all …]
|
| A D | sata_uli.c | 89 struct uli_priv *hpriv = ap->host->private_data; in get_scr_cfg_addr() local 90 return hpriv->scr_cfg_addr[ap->port_no] + (4 * sc_reg); in get_scr_cfg_addr() 134 struct uli_priv *hpriv; in uli_init_one() local 154 hpriv = devm_kzalloc(&pdev->dev, sizeof(*hpriv), GFP_KERNEL); in uli_init_one() 155 if (!hpriv) in uli_init_one() 157 host->private_data = hpriv; in uli_init_one() 173 hpriv->scr_cfg_addr[0] = ULI5287_BASE; in uli_init_one() 174 hpriv->scr_cfg_addr[1] = ULI5287_BASE + ULI5287_OFFS; in uli_init_one() 209 hpriv->scr_cfg_addr[0] = ULI5287_BASE; in uli_init_one() 210 hpriv->scr_cfg_addr[1] = ULI5287_BASE + ULI5287_OFFS; in uli_init_one() [all …]
|
| A D | ahci_qoriq.c | 108 hpriv->stop_engine(ap); in ahci_qoriq_hardreset() 145 hpriv->start_engine(ap); in ahci_qoriq_hardreset() 173 void __iomem *reg_base = hpriv->mmio; in ahci_qoriq_phy_init() 267 struct ahci_host_priv *hpriv; in ahci_qoriq_probe() local 274 if (IS_ERR(hpriv)) in ahci_qoriq_probe() 275 return PTR_ERR(hpriv); in ahci_qoriq_probe() 310 hpriv->plat_data = qoriq_priv; in ahci_qoriq_probe() 311 rc = ahci_qoriq_phy_init(hpriv); in ahci_qoriq_probe() 323 ahci_platform_disable_resources(hpriv); in ahci_qoriq_probe() 339 rc = ahci_qoriq_phy_init(hpriv); in ahci_qoriq_resume() [all …]
|
| A D | ahci_da850.c | 163 struct ahci_host_priv *hpriv; in ahci_da850_probe() local 170 hpriv = ahci_platform_get_resources(pdev, 0); in ahci_da850_probe() 171 if (IS_ERR(hpriv)) in ahci_da850_probe() 172 return PTR_ERR(hpriv); in ahci_da850_probe() 181 if (!hpriv->clks[0]) { in ahci_da850_probe() 186 hpriv->clks[0] = clk; in ahci_da850_probe() 194 if (!hpriv->clks[1]) { in ahci_da850_probe() 201 hpriv->clks[1] = clk; in ahci_da850_probe() 210 rc = ahci_platform_enable_resources(hpriv); in ahci_da850_probe() 226 da850_sata_init(dev, pwrdn_reg, hpriv->mmio, mpy); in ahci_da850_probe() [all …]
|
| A D | ahci_tegra.c | 284 ahci_platform_disable_resources(hpriv); in tegra_ahci_power_off() 303 ret = tegra_ahci_power_on(hpriv); in tegra_ahci_controller_init() 359 tegra->soc->ops->init(hpriv); in tegra_ahci_controller_init() 418 tegra_ahci_handle_quirks(hpriv); in tegra_ahci_controller_init() 431 tegra_ahci_power_off(hpriv); in tegra_ahci_controller_deinit() 438 tegra_ahci_controller_deinit(hpriv); in tegra_ahci_host_stop() 515 struct ahci_host_priv *hpriv; in tegra_ahci_probe() local 521 if (IS_ERR(hpriv)) in tegra_ahci_probe() 522 return PTR_ERR(hpriv); in tegra_ahci_probe() 528 hpriv->plat_data = tegra; in tegra_ahci_probe() [all …]
|
| A D | ahci_platform.c | 46 struct ahci_host_priv *hpriv; in ahci_probe() local 50 hpriv = ahci_platform_get_resources(pdev, in ahci_probe() 52 if (IS_ERR(hpriv)) in ahci_probe() 53 return PTR_ERR(hpriv); in ahci_probe() 55 rc = ahci_platform_enable_resources(hpriv); in ahci_probe() 60 "ports-implemented", &hpriv->force_port_map); in ahci_probe() 63 hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; in ahci_probe() 69 rc = ahci_platform_init_host(pdev, hpriv, port, in ahci_probe() 76 ahci_platform_disable_resources(hpriv); in ahci_probe()
|
| A D | ahci_imx.c | 771 imx_sata_disable(hpriv); in ahci_imx_error_handler() 1049 struct ahci_host_priv *hpriv; in imx_ahci_probe() local 1111 if (IS_ERR(hpriv)) in imx_ahci_probe() 1112 return PTR_ERR(hpriv); in imx_ahci_probe() 1114 hpriv->plat_data = imxpriv; in imx_ahci_probe() 1128 hpriv, in imx_ahci_probe() 1139 ret = imx_sata_enable(hpriv); in imx_ahci_probe() 1172 imx_sata_disable(hpriv); in imx_ahci_probe() 1183 imx_sata_disable(hpriv); in ahci_imx_host_stop() 1198 imx_sata_disable(hpriv); in imx_ahci_suspend() [all …]
|
| /linux/drivers/usb/renesas_usbhs/ |
| A D | mod_host.c | 421 usbhsh_pipe_detach(hpriv, uep); in usbhsh_endpoint_detach() 476 return usbhsh_device0(hpriv); in usbhsh_device_get() 645 if (!usbhsh_is_running(hpriv)) in usbhsh_queue_done() 651 usbhsh_ureq_free(hpriv, ureq); in usbhsh_queue_done() 805 usbhsh_ureq_free(hpriv, ureq); in usbhsh_data_stage_packet_done() 1052 struct usbhsh_hpriv *hpriv; in usbhsh_endpoint_disable() local 1143 usbhsh_port_stat_clear(hpriv, in __usbhsh_hub_port_feature() 1332 hpriv->mod.irq_attch = NULL; in usbhsh_irq_attch() 1520 struct usbhsh_hpriv *hpriv; in usbhs_mod_host_probe() local 1550 hpriv->mod.name = "host"; in usbhs_mod_host_probe() [all …]
|
| /linux/drivers/misc/habanalabs/common/ |
| A D | habanalabs_drv.c | 130 hpriv = kzalloc(sizeof(*hpriv), GFP_KERNEL); in hl_device_open() 131 if (!hpriv) in hl_device_open() 134 hpriv->hdev = hdev; in hl_device_open() 136 hpriv->filp = filp; in hl_device_open() 197 hl_cb_mgr_fini(hpriv->hdev, &hpriv->cb_mgr); in hl_device_open() 198 hl_ctx_mgr_fini(hpriv->hdev, &hpriv->ctx_mgr); in hl_device_open() 203 kfree(hpriv); in hl_device_open() 224 hpriv = kzalloc(sizeof(*hpriv), GFP_KERNEL); in hl_device_open_ctrl() 225 if (!hpriv) in hl_device_open_ctrl() 231 hpriv->hdev = hdev; in hl_device_open_ctrl() [all …]
|
| A D | habanalabs_ioctl.c | 120 struct hl_device *hdev = hpriv->hdev; in dram_usage_info() 134 if (hpriv->ctx) in dram_usage_info() 297 struct hl_device *hdev = hpriv->hdev; in pci_counters_info() 316 struct hl_device *hdev = hpriv->hdev; in clk_throttle_info() 334 struct hl_device *hdev = hpriv->hdev; in cs_counters_info() 356 if (hpriv->ctx) { in cs_counters_info() 523 rc = dram_usage_info(hpriv, args); in _hl_info_ioctl() 564 return power_info(hpriv, args); in _hl_info_ioctl() 580 return _hl_info_ioctl(hpriv, data, hpriv->hdev->dev); in hl_info_ioctl() 585 return _hl_info_ioctl(hpriv, data, hpriv->hdev->dev_ctrl); in hl_info_ioctl_control() [all …]
|
| /linux/include/linux/ |
| A D | ahci_platform.h | 22 int ahci_platform_enable_phys(struct ahci_host_priv *hpriv); 23 void ahci_platform_disable_phys(struct ahci_host_priv *hpriv); 24 int ahci_platform_enable_clks(struct ahci_host_priv *hpriv); 25 void ahci_platform_disable_clks(struct ahci_host_priv *hpriv); 26 int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv); 27 void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv); 28 int ahci_platform_enable_resources(struct ahci_host_priv *hpriv); 29 void ahci_platform_disable_resources(struct ahci_host_priv *hpriv); 33 struct ahci_host_priv *hpriv,
|