/kernel/linux/linux-6.6/drivers/ata/ |
H A D | libahci_platform.c | 38 * @hpriv: host private area to store config values 40 * This function enables all the PHYs found in hpriv->phys, if any. 47 int ahci_platform_enable_phys(struct ahci_host_priv *hpriv) in ahci_platform_enable_phys() argument 51 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys() 52 rc = phy_init(hpriv->phys[i]); in ahci_platform_enable_phys() 56 rc = phy_set_mode(hpriv->phys[i], PHY_MODE_SATA); in ahci_platform_enable_phys() 58 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys() 62 rc = phy_power_on(hpriv->phys[i]); in ahci_platform_enable_phys() 64 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys() 73 phy_power_off(hpriv in ahci_platform_enable_phys() 86 ahci_platform_disable_phys(struct ahci_host_priv *hpriv) ahci_platform_disable_phys() argument 108 ahci_platform_find_clk(struct ahci_host_priv *hpriv, const char *con_id) ahci_platform_find_clk() argument 130 ahci_platform_enable_clks(struct ahci_host_priv *hpriv) ahci_platform_enable_clks() argument 144 ahci_platform_disable_clks(struct ahci_host_priv *hpriv) ahci_platform_disable_clks() argument 160 ahci_platform_deassert_rsts(struct ahci_host_priv *hpriv) ahci_platform_deassert_rsts() argument 179 ahci_platform_assert_rsts(struct ahci_host_priv *hpriv) ahci_platform_assert_rsts() argument 200 ahci_platform_enable_regulators(struct ahci_host_priv *hpriv) ahci_platform_enable_regulators() argument 242 ahci_platform_disable_regulators(struct ahci_host_priv *hpriv) ahci_platform_disable_regulators() argument 273 ahci_platform_enable_resources(struct ahci_host_priv *hpriv) ahci_platform_enable_resources() argument 319 ahci_platform_disable_resources(struct ahci_host_priv *hpriv) ahci_platform_disable_resources() argument 333 struct ahci_host_priv *hpriv = res; ahci_platform_put_resources() local 353 ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port, struct device *dev, struct device_node *node) ahci_platform_get_phy() argument 394 ahci_platform_get_regulator(struct ahci_host_priv *hpriv, u32 port, struct device *dev) ahci_platform_get_regulator() argument 410 ahci_platform_get_firmware(struct ahci_host_priv *hpriv, struct device *dev) ahci_platform_get_firmware() argument 462 struct ahci_host_priv *hpriv; ahci_platform_get_resources() local 681 ahci_platform_init_host(struct platform_device *pdev, struct ahci_host_priv *hpriv, const struct ata_port_info *pi_template, const struct scsi_host_template *sht) ahci_platform_init_host() argument 771 struct ahci_host_priv *hpriv = host->private_data; ahci_host_stop() local 787 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_shutdown() local 825 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_suspend_host() local 866 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_resume_host() local 899 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_suspend() local 925 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_resume() local [all...] |
H A D | ahci_dwc.c | 112 int (*init)(struct ahci_host_priv *hpriv); 113 int (*reinit)(struct ahci_host_priv *hpriv); 114 void (*clear)(struct ahci_host_priv *hpriv); 125 static int ahci_bt1_init(struct ahci_host_priv *hpriv) in ahci_bt1_init() argument 127 struct ahci_dwc_host_priv *dpriv = hpriv->plat_data; in ahci_bt1_init() 131 if (!ahci_platform_find_clk(hpriv, "pclk") || in ahci_bt1_init() 132 !ahci_platform_find_clk(hpriv, "aclk") || in ahci_bt1_init() 133 !ahci_platform_find_clk(hpriv, "ref")) { in ahci_bt1_init() 143 ret = ahci_platform_assert_rsts(hpriv); in ahci_bt1_init() 149 ret = ahci_platform_deassert_rsts(hpriv); in ahci_bt1_init() 161 struct ahci_host_priv *hpriv; ahci_dwc_get_resources() local 182 ahci_dwc_check_cap(struct ahci_host_priv *hpriv) ahci_dwc_check_cap() argument 226 ahci_dwc_init_timer(struct ahci_host_priv *hpriv) ahci_dwc_init_timer() argument 260 ahci_dwc_init_dmacr(struct ahci_host_priv *hpriv) ahci_dwc_init_dmacr() argument 305 ahci_dwc_init_host(struct ahci_host_priv *hpriv) ahci_dwc_init_host() argument 340 ahci_dwc_reinit_host(struct ahci_host_priv *hpriv) ahci_dwc_reinit_host() argument 372 ahci_dwc_clear_host(struct ahci_host_priv *hpriv) ahci_dwc_clear_host() argument 384 struct ahci_host_priv *hpriv = host->private_data; ahci_dwc_stop_host() local 407 struct ahci_host_priv *hpriv; ahci_dwc_probe() local 434 struct ahci_host_priv *hpriv = host->private_data; ahci_dwc_suspend() local 449 struct ahci_host_priv *hpriv = host->private_data; ahci_dwc_resume() local [all...] |
H A D | ahci_mvebu.c | 32 int (*plat_config)(struct ahci_host_priv *hpriv); 36 static void ahci_mvebu_mbus_config(struct ahci_host_priv *hpriv, in ahci_mvebu_mbus_config() argument 42 writel(0, hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config() 43 writel(0, hpriv->mmio + AHCI_WINDOW_BASE(i)); in ahci_mvebu_mbus_config() 44 writel(0, hpriv->mmio + AHCI_WINDOW_SIZE(i)); in ahci_mvebu_mbus_config() 52 hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config() 53 writel(cs->base >> 16, hpriv->mmio + AHCI_WINDOW_BASE(i)); in ahci_mvebu_mbus_config() 55 hpriv->mmio + AHCI_WINDOW_SIZE(i)); in ahci_mvebu_mbus_config() 59 static void ahci_mvebu_regret_option(struct ahci_host_priv *hpriv) in ahci_mvebu_regret_option() argument 66 writel(0x4, hpriv in ahci_mvebu_regret_option() 70 ahci_mvebu_armada_380_config(struct ahci_host_priv *hpriv) ahci_mvebu_armada_380_config() argument 86 ahci_mvebu_armada_3700_config(struct ahci_host_priv *hpriv) ahci_mvebu_armada_3700_config() argument 162 struct ahci_host_priv *hpriv = host->private_data; ahci_mvebu_resume() local 188 struct ahci_host_priv *hpriv; ahci_mvebu_probe() local [all...] |
H A D | ahci_brcm.c | 118 static void brcm_sata_alpm_init(struct ahci_host_priv *hpriv) in brcm_sata_alpm_init() argument 120 struct brcm_ahci_priv *priv = hpriv->plat_data; in brcm_sata_alpm_init() 125 host_caps = readl(hpriv->mmio + HOST_CAP); in brcm_sata_alpm_init() 127 hpriv->flags |= AHCI_HFLAG_YES_ALPM; in brcm_sata_alpm_init() 138 hpriv->mmio + SATA_PORT_PCTRL6(port_ctrl)); in brcm_sata_alpm_init() 217 static u32 brcm_ahci_get_portmask(struct ahci_host_priv *hpriv, in brcm_ahci_get_portmask() argument 222 impl = readl(hpriv->mmio + HOST_PORTS_IMPL); in brcm_ahci_get_portmask() 253 struct ahci_host_priv *hpriv = host->private_data; in brcm_ahci_read_id() local 254 struct brcm_ahci_priv *priv = hpriv->plat_data; in brcm_ahci_read_id() 255 void __iomem *mmio = hpriv in brcm_ahci_read_id() 323 struct ahci_host_priv *hpriv = host->private_data; brcm_ahci_host_stop() local 345 struct ahci_host_priv *hpriv = host->private_data; brcm_ahci_suspend() local 365 struct ahci_host_priv *hpriv = host->private_data; brcm_ahci_resume() local 439 struct ahci_host_priv *hpriv; brcm_ahci_probe() local 550 struct ahci_host_priv *hpriv = host->private_data; brcm_ahci_remove() local [all...] |
H A D | sata_mv.c | 438 #define IS_GEN_I(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_I) 439 #define IS_GEN_II(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_II) 440 #define IS_GEN_IIE(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_IIE) 441 #define IS_PCIE(hpriv) ((hpriv)->hp_flags & MV_HP_PCIE) 442 #define IS_SOC(hpriv) ((hpriv) 922 struct mv_host_priv *hpriv = host->private_data; mv_host_base() local 992 mv_set_edma_ptrs(void __iomem *port_mmio, struct mv_host_priv *hpriv, struct mv_port_priv *pp) mv_set_edma_ptrs() argument 1023 mv_write_main_irq_mask(u32 mask, struct mv_host_priv *hpriv) mv_write_main_irq_mask() argument 1043 struct mv_host_priv *hpriv = host->private_data; mv_set_main_irq_mask() local 1071 struct mv_host_priv *hpriv = ap->host->private_data; mv_clear_and_enable_port_irqs() local 1094 struct mv_host_priv *hpriv = host->private_data; mv_set_irq_coalescing() local 1174 struct mv_host_priv *hpriv = ap->host->private_data; mv_start_edma() local 1358 struct mv_host_priv *hpriv = link->ap->host->private_data; mv_scr_write() local 1505 struct mv_host_priv *hpriv = ap->host->private_data; mv_60x1_errata_sata25() local 1559 struct mv_host_priv *hpriv = host->private_data; mv_soc_led_blink_enable() local 1574 struct mv_host_priv *hpriv = host->private_data; mv_soc_led_blink_disable() local 1601 struct mv_host_priv *hpriv = ap->host->private_data; mv_edma_cfg() local 1663 struct mv_host_priv *hpriv = ap->host->private_data; mv_port_free_dma_mem() local 1703 struct mv_host_priv *hpriv = ap->host->private_data; mv_port_start() local 2400 struct mv_host_priv *hpriv = ap->host->private_data; mv_qc_issue() local 2639 struct mv_host_priv *hpriv = ap->host->private_data; mv_err_intr() local 2799 struct mv_host_priv *hpriv = ap->host->private_data; mv_process_crpb_entries() local 2882 struct mv_host_priv *hpriv = host->private_data; mv_host_intr() local 2947 struct mv_host_priv *hpriv = host->private_data; mv_pci_error() local 3002 struct mv_host_priv *hpriv = host->private_data; mv_interrupt() local 3054 struct mv_host_priv *hpriv = link->ap->host->private_data; mv5_scr_read() local 3068 struct mv_host_priv *hpriv = link->ap->host->private_data; mv5_scr_write() local 3096 mv5_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio) mv5_reset_flash() argument 3101 mv5_read_preamp(struct mv_host_priv *hpriv, int idx, void __iomem *mmio) mv5_read_preamp() argument 3113 mv5_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio) mv5_enable_leds() argument 3126 mv5_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv5_phy_errata() argument 3155 mv5_reset_hc_port(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv5_reset_hc_port() argument 3179 mv5_reset_one_hc(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int hc) mv5_reset_one_hc() argument 3200 struct mv_host_priv *hpriv = host->private_data; mv5_reset_hc() local 3218 struct mv_host_priv *hpriv = host->private_data; mv_reset_pci_bus() local 3238 mv6_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio) mv6_reset_flash() argument 3314 mv6_read_preamp(struct mv_host_priv *hpriv, int idx, void __iomem *mmio) mv6_read_preamp() argument 3334 mv6_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio) mv6_enable_leds() argument 3339 mv6_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv6_phy_errata() argument 3417 mv_soc_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio) mv_soc_enable_leds() argument 3423 mv_soc_read_preamp(struct mv_host_priv *hpriv, int idx, void __iomem *mmio) mv_soc_read_preamp() argument 3438 mv_soc_reset_hc_port(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv_soc_reset_hc_port() argument 3463 mv_soc_reset_one_hc(struct mv_host_priv *hpriv, void __iomem *mmio) mv_soc_reset_one_hc() argument 3479 struct mv_host_priv *hpriv = host->private_data; mv_soc_reset_hc() local 3490 mv_soc_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio) mv_soc_reset_flash() argument 3501 mv_soc_65n_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv_soc_65n_phy_errata() argument 3539 soc_is_65n(struct mv_host_priv *hpriv) soc_is_65n() argument 3558 mv_reset_channel(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port_no) mv_reset_channel() argument 3622 struct mv_host_priv *hpriv = ap->host->private_data; mv_hardreset() local 3666 struct mv_host_priv *hpriv = ap->host->private_data; mv_eh_thaw() local 3725 struct mv_host_priv *hpriv = host->private_data; mv_in_pcix_mode() local 3739 struct mv_host_priv *hpriv = host->private_data; mv_pci_cut_through_okay() local 3753 struct mv_host_priv *hpriv = host->private_data; mv_60x1b2_errata_pci7() local 3766 struct mv_host_priv *hpriv = host->private_data; mv_chip_id() local 3920 struct mv_host_priv *hpriv = host->private_data; mv_init_host() local 3993 mv_create_dma_pools(struct mv_host_priv *hpriv, struct device *dev) mv_create_dma_pools() argument 4013 mv_conf_mbus_windows(struct mv_host_priv *hpriv, const struct mbus_dram_target_info *dram) mv_conf_mbus_windows() argument 4049 struct mv_host_priv *hpriv; mv_platform_probe() local 4216 struct mv_host_priv *hpriv = host->private_data; mv_platform_remove() local 4250 struct mv_host_priv *hpriv = host->private_data; mv_platform_resume() local 4328 struct mv_host_priv *hpriv = host->private_data; mv_print_info() local 4371 struct mv_host_priv *hpriv; mv_pci_init_one() local [all...] |
H A D | ahci_ceva.c | 122 static void ahci_ceva_setup(struct ahci_host_priv *hpriv) in ahci_ceva_setup() argument 124 void __iomem *mmio = hpriv->mmio; in ahci_ceva_setup() 125 struct ceva_ahci_priv *cevapriv = hpriv->plat_data; in ahci_ceva_setup() 191 static int ceva_ahci_platform_enable_resources(struct ahci_host_priv *hpriv) in ceva_ahci_platform_enable_resources() argument 195 rc = ahci_platform_enable_regulators(hpriv); in ceva_ahci_platform_enable_resources() 199 rc = ahci_platform_enable_clks(hpriv); in ceva_ahci_platform_enable_resources() 204 rc = ahci_platform_assert_rsts(hpriv); in ceva_ahci_platform_enable_resources() 208 for (i = 0; i < hpriv->nports; i++) { in ceva_ahci_platform_enable_resources() 209 rc = phy_init(hpriv->phys[i]); in ceva_ahci_platform_enable_resources() 215 ahci_platform_deassert_rsts(hpriv); in ceva_ahci_platform_enable_resources() 249 struct ahci_host_priv *hpriv; ceva_ahci_probe() local 368 struct ahci_host_priv *hpriv = host->private_data; ceva_ahci_resume() local [all...] |
H A D | ahci_st.c | 54 static int st_ahci_deassert_resets(struct ahci_host_priv *hpriv, in st_ahci_deassert_resets() argument 57 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_deassert_resets() 89 struct ahci_host_priv *hpriv = host->private_data; in st_ahci_host_stop() local 90 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_host_stop() 100 ahci_platform_disable_resources(hpriv); in st_ahci_host_stop() 103 static int st_ahci_probe_resets(struct ahci_host_priv *hpriv, in st_ahci_probe_resets() argument 106 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_probe_resets() 126 return st_ahci_deassert_resets(hpriv, dev); in st_ahci_probe_resets() 148 struct ahci_host_priv *hpriv; in st_ahci_probe() local 155 hpriv in st_ahci_probe() 184 struct ahci_host_priv *hpriv = host->private_data; st_ahci_suspend() local 208 struct ahci_host_priv *hpriv = host->private_data; st_ahci_resume() local [all...] |
H A D | ahci_da850.c | 163 struct ahci_host_priv *hpriv; in ahci_da850_probe() local 169 hpriv = ahci_platform_get_resources(pdev, 0); in ahci_da850_probe() 170 if (IS_ERR(hpriv)) in ahci_da850_probe() 171 return PTR_ERR(hpriv); in ahci_da850_probe() 181 if (hpriv->n_clks < 2) { in ahci_da850_probe() 182 hpriv->clks = devm_kcalloc(dev, 2, sizeof(*hpriv->clks), GFP_KERNEL); in ahci_da850_probe() 183 if (!hpriv->clks) in ahci_da850_probe() 186 hpriv->clks[0].id = "fck"; in ahci_da850_probe() 187 hpriv in ahci_da850_probe() [all...] |
H A D | libahci.c | 265 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_caps() local 267 return sprintf(buf, "%x\n", hpriv->cap); in ahci_show_host_caps() 275 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_cap2() local 277 return sprintf(buf, "%x\n", hpriv->cap2); in ahci_show_host_cap2() 285 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_version() local 287 return sprintf(buf, "%x\n", hpriv->version); in ahci_show_host_version() 310 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_read_em_buffer() local 311 void __iomem *mmio = hpriv->mmio; in ahci_read_em_buffer() 312 void __iomem *em_mmio = mmio + hpriv->em_loc; in ahci_read_em_buffer() 323 !(hpriv in ahci_read_em_buffer() 370 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_store_em_buffer() local 413 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_show_em_supported() local 446 ahci_save_initial_config(struct device *dev, struct ahci_host_priv *hpriv) ahci_save_initial_config() argument 621 struct ahci_host_priv *hpriv = host->private_data; ahci_restore_initial_config() local 648 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_scr_offset() local 696 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_stop_engine() local 745 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_start_fis_rx() local 791 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_power_up() local 811 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_set_lpm() local 883 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_power_down() local 904 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_start_port() local 953 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_deinit_port() local 974 struct ahci_host_priv *hpriv = host->private_data; ahci_reset_controller() local 1096 struct ahci_host_priv *hpriv = host->private_data; ahci_reset_em() local 1112 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_transmit_led_message() local 1261 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_port_clear_pending_irq() local 1283 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_port_init() local 1303 struct ahci_host_priv *hpriv = host->private_data; ahci_init_controller() local 1329 struct ahci_host_priv *hpriv = dev->link->ap->host->private_data; ahci_dev_config() local 1371 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_kick_engine() local 1457 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_do_softreset() local 1603 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_do_hardreset() local 1754 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_error_intr() local 1900 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_handle_port_interrupt() local 2014 struct ahci_host_priv *hpriv; ahci_single_level_irq_intr() local 2208 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_thaw() local 2225 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_error_handler() local 2251 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_set_aggressive_devslp() local 2331 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_enable_fbs() local 2365 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_disable_fbs() local 2493 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_port_start() local 2590 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_port_stop() local 2610 struct ahci_host_priv *hpriv = host->private_data; ahci_print_info() local 2680 ahci_set_em_messages(struct ahci_host_priv *hpriv, struct ata_port_info *pi) ahci_set_em_messages() argument 2708 struct ahci_host_priv *hpriv = host->private_data; ahci_host_activate_multi_irqs() local 2752 struct ahci_host_priv *hpriv = host->private_data; ahci_host_activate() local [all...] |
H A D | ahci_xgene.c | 81 struct ahci_host_priv *hpriv; member 139 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_restart_engine() local 154 hpriv->stop_engine(ap); in xgene_ahci_restart_engine() 167 hpriv->start_engine(ap); in xgene_ahci_restart_engine() 191 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_qc_issue() local 192 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_qc_issue() 268 void __iomem *mmio = ctx->hpriv->mmio; in xgene_ahci_set_phy_cfg() 354 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_do_hardreset() local 355 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_do_hardreset() 393 struct ahci_host_priv *hpriv in xgene_ahci_hardreset() local 431 struct ahci_host_priv *hpriv = host->private_data; xgene_ahci_host_stop() local 499 struct ahci_host_priv *hpriv = ap->host->private_data; xgene_ahci_softreset() local 564 struct ahci_host_priv *hpriv = host->private_data; xgene_ahci_handle_broken_edge_irq() local 585 struct ahci_host_priv *hpriv; xgene_ahci_irq_intr() local 646 xgene_ahci_hw_init(struct ahci_host_priv *hpriv) xgene_ahci_hw_init() argument 735 struct ahci_host_priv *hpriv; xgene_ahci_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/ata/ |
H A D | libahci_platform.c | 37 * @hpriv: host private area to store config values 39 * This function enables all the PHYs found in hpriv->phys, if any. 46 int ahci_platform_enable_phys(struct ahci_host_priv *hpriv) in ahci_platform_enable_phys() argument 50 for (i = 0; i < hpriv->nports; i++) { in ahci_platform_enable_phys() 51 rc = phy_init(hpriv->phys[i]); in ahci_platform_enable_phys() 55 rc = phy_set_mode(hpriv->phys[i], PHY_MODE_SATA); in ahci_platform_enable_phys() 57 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys() 61 rc = phy_power_on(hpriv->phys[i]); in ahci_platform_enable_phys() 62 if (rc && !(rc == -EOPNOTSUPP && (hpriv->flags & AHCI_HFLAG_IGN_NOTSUPP_POWER_ON))) { in ahci_platform_enable_phys() 63 phy_exit(hpriv in ahci_platform_enable_phys() 85 ahci_platform_disable_phys(struct ahci_host_priv *hpriv) ahci_platform_disable_phys() argument 107 ahci_platform_enable_clks(struct ahci_host_priv *hpriv) ahci_platform_enable_clks() argument 132 ahci_platform_disable_clks(struct ahci_host_priv *hpriv) ahci_platform_disable_clks() argument 154 ahci_platform_enable_regulators(struct ahci_host_priv *hpriv) ahci_platform_enable_regulators() argument 196 ahci_platform_disable_regulators(struct ahci_host_priv *hpriv) ahci_platform_disable_regulators() argument 227 ahci_platform_enable_resources(struct ahci_host_priv *hpriv) ahci_platform_enable_resources() argument 273 ahci_platform_disable_resources(struct ahci_host_priv *hpriv) ahci_platform_disable_resources() argument 287 struct ahci_host_priv *hpriv = res; ahci_platform_put_resources() local 309 ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port, struct device *dev, struct device_node *node) ahci_platform_get_phy() argument 350 ahci_platform_get_regulator(struct ahci_host_priv *hpriv, u32 port, struct device *dev) ahci_platform_get_regulator() argument 389 struct ahci_host_priv *hpriv; ahci_platform_get_resources() local 580 ahci_platform_init_host(struct platform_device *pdev, struct ahci_host_priv *hpriv, const struct ata_port_info *pi_template, struct scsi_host_template *sht) ahci_platform_init_host() argument 678 struct ahci_host_priv *hpriv = host->private_data; ahci_host_stop() local 694 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_shutdown() local 732 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_suspend_host() local 772 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_resume_host() local 805 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_suspend() local 831 struct ahci_host_priv *hpriv = host->private_data; ahci_platform_resume() local [all...] |
H A D | ahci_mvebu.c | 32 int (*plat_config)(struct ahci_host_priv *hpriv); 36 static void ahci_mvebu_mbus_config(struct ahci_host_priv *hpriv, in ahci_mvebu_mbus_config() argument 42 writel(0, hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config() 43 writel(0, hpriv->mmio + AHCI_WINDOW_BASE(i)); in ahci_mvebu_mbus_config() 44 writel(0, hpriv->mmio + AHCI_WINDOW_SIZE(i)); in ahci_mvebu_mbus_config() 52 hpriv->mmio + AHCI_WINDOW_CTRL(i)); in ahci_mvebu_mbus_config() 53 writel(cs->base >> 16, hpriv->mmio + AHCI_WINDOW_BASE(i)); in ahci_mvebu_mbus_config() 55 hpriv->mmio + AHCI_WINDOW_SIZE(i)); in ahci_mvebu_mbus_config() 59 static void ahci_mvebu_regret_option(struct ahci_host_priv *hpriv) in ahci_mvebu_regret_option() argument 66 writel(0x4, hpriv in ahci_mvebu_regret_option() 70 ahci_mvebu_armada_380_config(struct ahci_host_priv *hpriv) ahci_mvebu_armada_380_config() argument 86 ahci_mvebu_armada_3700_config(struct ahci_host_priv *hpriv) ahci_mvebu_armada_3700_config() argument 162 struct ahci_host_priv *hpriv = host->private_data; ahci_mvebu_resume() local 188 struct ahci_host_priv *hpriv; ahci_mvebu_probe() local [all...] |
H A D | ahci_brcm.c | 117 static void brcm_sata_alpm_init(struct ahci_host_priv *hpriv) in brcm_sata_alpm_init() argument 119 struct brcm_ahci_priv *priv = hpriv->plat_data; in brcm_sata_alpm_init() 124 host_caps = readl(hpriv->mmio + HOST_CAP); in brcm_sata_alpm_init() 126 hpriv->flags |= AHCI_HFLAG_YES_ALPM; in brcm_sata_alpm_init() 137 hpriv->mmio + SATA_PORT_PCTRL6(port_ctrl)); in brcm_sata_alpm_init() 216 static u32 brcm_ahci_get_portmask(struct ahci_host_priv *hpriv, in brcm_ahci_get_portmask() argument 221 impl = readl(hpriv->mmio + HOST_PORTS_IMPL); in brcm_ahci_get_portmask() 252 struct ahci_host_priv *hpriv = host->private_data; in brcm_ahci_read_id() local 253 struct brcm_ahci_priv *priv = hpriv->plat_data; in brcm_ahci_read_id() 254 void __iomem *mmio = hpriv in brcm_ahci_read_id() 322 struct ahci_host_priv *hpriv = host->private_data; brcm_ahci_host_stop() local 344 struct ahci_host_priv *hpriv = host->private_data; brcm_ahci_suspend() local 364 struct ahci_host_priv *hpriv = host->private_data; brcm_ahci_resume() local 439 struct ahci_host_priv *hpriv; brcm_ahci_probe() local 550 struct ahci_host_priv *hpriv = host->private_data; brcm_ahci_remove() local [all...] |
H A D | sata_mv.c | 438 #define IS_GEN_I(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_I) 439 #define IS_GEN_II(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_II) 440 #define IS_GEN_IIE(hpriv) ((hpriv)->hp_flags & MV_HP_GEN_IIE) 441 #define IS_PCIE(hpriv) ((hpriv)->hp_flags & MV_HP_PCIE) 442 #define IS_SOC(hpriv) ((hpriv) 918 struct mv_host_priv *hpriv = host->private_data; mv_host_base() local 988 mv_set_edma_ptrs(void __iomem *port_mmio, struct mv_host_priv *hpriv, struct mv_port_priv *pp) mv_set_edma_ptrs() argument 1019 mv_write_main_irq_mask(u32 mask, struct mv_host_priv *hpriv) mv_write_main_irq_mask() argument 1039 struct mv_host_priv *hpriv = host->private_data; mv_set_main_irq_mask() local 1067 struct mv_host_priv *hpriv = ap->host->private_data; mv_clear_and_enable_port_irqs() local 1090 struct mv_host_priv *hpriv = host->private_data; mv_set_irq_coalescing() local 1171 struct mv_host_priv *hpriv = ap->host->private_data; mv_start_edma() local 1362 struct mv_host_priv *hpriv = link->ap->host->private_data; mv_scr_write() local 1509 struct mv_host_priv *hpriv = ap->host->private_data; mv_60x1_errata_sata25() local 1563 struct mv_host_priv *hpriv = host->private_data; mv_soc_led_blink_enable() local 1578 struct mv_host_priv *hpriv = host->private_data; mv_soc_led_blink_disable() local 1605 struct mv_host_priv *hpriv = ap->host->private_data; mv_edma_cfg() local 1667 struct mv_host_priv *hpriv = ap->host->private_data; mv_port_free_dma_mem() local 1707 struct mv_host_priv *hpriv = ap->host->private_data; mv_port_start() local 2403 struct mv_host_priv *hpriv = ap->host->private_data; mv_qc_issue() local 2642 struct mv_host_priv *hpriv = ap->host->private_data; mv_err_intr() local 2802 struct mv_host_priv *hpriv = ap->host->private_data; mv_process_crpb_entries() local 2885 struct mv_host_priv *hpriv = host->private_data; mv_host_intr() local 2950 struct mv_host_priv *hpriv = host->private_data; mv_pci_error() local 3005 struct mv_host_priv *hpriv = host->private_data; mv_interrupt() local 3057 struct mv_host_priv *hpriv = link->ap->host->private_data; mv5_scr_read() local 3071 struct mv_host_priv *hpriv = link->ap->host->private_data; mv5_scr_write() local 3099 mv5_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio) mv5_reset_flash() argument 3104 mv5_read_preamp(struct mv_host_priv *hpriv, int idx, void __iomem *mmio) mv5_read_preamp() argument 3116 mv5_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio) mv5_enable_leds() argument 3129 mv5_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv5_phy_errata() argument 3158 mv5_reset_hc_port(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv5_reset_hc_port() argument 3182 mv5_reset_one_hc(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int hc) mv5_reset_one_hc() argument 3200 mv5_reset_hc(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int n_hc) mv5_reset_hc() argument 3220 struct mv_host_priv *hpriv = host->private_data; mv_reset_pci_bus() local 3240 mv6_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio) mv6_reset_flash() argument 3261 mv6_reset_hc(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int n_hc) mv6_reset_hc() argument 3316 mv6_read_preamp(struct mv_host_priv *hpriv, int idx, void __iomem *mmio) mv6_read_preamp() argument 3336 mv6_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio) mv6_enable_leds() argument 3341 mv6_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv6_phy_errata() argument 3419 mv_soc_enable_leds(struct mv_host_priv *hpriv, void __iomem *mmio) mv_soc_enable_leds() argument 3425 mv_soc_read_preamp(struct mv_host_priv *hpriv, int idx, void __iomem *mmio) mv_soc_read_preamp() argument 3440 mv_soc_reset_hc_port(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv_soc_reset_hc_port() argument 3465 mv_soc_reset_one_hc(struct mv_host_priv *hpriv, void __iomem *mmio) mv_soc_reset_one_hc() argument 3478 mv_soc_reset_hc(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int n_hc) mv_soc_reset_hc() argument 3491 mv_soc_reset_flash(struct mv_host_priv *hpriv, void __iomem *mmio) mv_soc_reset_flash() argument 3502 mv_soc_65n_phy_errata(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port) mv_soc_65n_phy_errata() argument 3540 soc_is_65n(struct mv_host_priv *hpriv) soc_is_65n() argument 3559 mv_reset_channel(struct mv_host_priv *hpriv, void __iomem *mmio, unsigned int port_no) mv_reset_channel() argument 3623 struct mv_host_priv *hpriv = ap->host->private_data; mv_hardreset() local 3667 struct mv_host_priv *hpriv = ap->host->private_data; mv_eh_thaw() local 3731 struct mv_host_priv *hpriv = host->private_data; mv_in_pcix_mode() local 3745 struct mv_host_priv *hpriv = host->private_data; mv_pci_cut_through_okay() local 3759 struct mv_host_priv *hpriv = host->private_data; mv_60x1b2_errata_pci7() local 3772 struct mv_host_priv *hpriv = host->private_data; mv_chip_id() local 3926 struct mv_host_priv *hpriv = host->private_data; mv_init_host() local 3999 mv_create_dma_pools(struct mv_host_priv *hpriv, struct device *dev) mv_create_dma_pools() argument 4019 mv_conf_mbus_windows(struct mv_host_priv *hpriv, const struct mbus_dram_target_info *dram) mv_conf_mbus_windows() argument 4055 struct mv_host_priv *hpriv; mv_platform_probe() local 4222 struct mv_host_priv *hpriv = host->private_data; mv_platform_remove() local 4257 struct mv_host_priv *hpriv = host->private_data; mv_platform_resume() local 4335 struct mv_host_priv *hpriv = host->private_data; mv_print_info() local 4378 struct mv_host_priv *hpriv; mv_pci_init_one() local [all...] |
H A D | ahci_st.c | 54 static int st_ahci_deassert_resets(struct ahci_host_priv *hpriv, in st_ahci_deassert_resets() argument 57 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_deassert_resets() 89 struct ahci_host_priv *hpriv = host->private_data; in st_ahci_host_stop() local 90 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_host_stop() 100 ahci_platform_disable_resources(hpriv); in st_ahci_host_stop() 103 static int st_ahci_probe_resets(struct ahci_host_priv *hpriv, in st_ahci_probe_resets() argument 106 struct st_ahci_drv_data *drv_data = hpriv->plat_data; in st_ahci_probe_resets() 126 return st_ahci_deassert_resets(hpriv, dev); in st_ahci_probe_resets() 149 struct ahci_host_priv *hpriv; in st_ahci_probe() local 156 hpriv in st_ahci_probe() 188 struct ahci_host_priv *hpriv = host->private_data; st_ahci_suspend() local 212 struct ahci_host_priv *hpriv = host->private_data; st_ahci_resume() local [all...] |
H A D | libahci.c | 243 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_caps() local 245 return sprintf(buf, "%x\n", hpriv->cap); in ahci_show_host_caps() 253 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_cap2() local 255 return sprintf(buf, "%x\n", hpriv->cap2); in ahci_show_host_cap2() 263 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_show_host_version() local 265 return sprintf(buf, "%x\n", hpriv->version); in ahci_show_host_version() 288 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_read_em_buffer() local 289 void __iomem *mmio = hpriv->mmio; in ahci_read_em_buffer() 290 void __iomem *em_mmio = mmio + hpriv->em_loc; in ahci_read_em_buffer() 301 !(hpriv in ahci_read_em_buffer() 348 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_store_em_buffer() local 391 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_show_em_supported() local 424 ahci_save_initial_config(struct device *dev, struct ahci_host_priv *hpriv) ahci_save_initial_config() argument 571 struct ahci_host_priv *hpriv = host->private_data; ahci_restore_initial_config() local 590 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_scr_offset() local 638 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_stop_engine() local 687 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_start_fis_rx() local 733 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_power_up() local 753 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_set_lpm() local 825 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_power_down() local 846 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_start_port() local 895 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_deinit_port() local 916 struct ahci_host_priv *hpriv = host->private_data; ahci_reset_controller() local 1039 struct ahci_host_priv *hpriv = host->private_data; ahci_reset_em() local 1055 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_transmit_led_message() local 1204 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_port_clear_pending_irq() local 1226 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_port_init() local 1246 struct ahci_host_priv *hpriv = host->private_data; ahci_init_controller() local 1272 struct ahci_host_priv *hpriv = dev->link->ap->host->private_data; ahci_dev_config() local 1314 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_kick_engine() local 1400 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_do_softreset() local 1552 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_do_hardreset() local 1709 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_error_intr() local 1823 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_handle_port_interrupt() local 1958 struct ahci_host_priv *hpriv; ahci_single_level_irq_intr() local 2058 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_thaw() local 2075 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_error_handler() local 2101 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_set_aggressive_devslp() local 2181 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_enable_fbs() local 2215 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_disable_fbs() local 2328 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_port_start() local 2425 struct ahci_host_priv *hpriv = ap->host->private_data; ahci_port_stop() local 2445 struct ahci_host_priv *hpriv = host->private_data; ahci_print_info() local 2515 ahci_set_em_messages(struct ahci_host_priv *hpriv, struct ata_port_info *pi) ahci_set_em_messages() argument 2543 struct ahci_host_priv *hpriv = host->private_data; ahci_host_activate_multi_irqs() local 2587 struct ahci_host_priv *hpriv = host->private_data; ahci_host_activate() local [all...] |
H A D | ahci_xgene.c | 81 struct ahci_host_priv *hpriv; member 140 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_restart_engine() local 155 hpriv->stop_engine(ap); in xgene_ahci_restart_engine() 168 hpriv->start_engine(ap); in xgene_ahci_restart_engine() 192 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_qc_issue() local 193 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_qc_issue() 269 void __iomem *mmio = ctx->hpriv->mmio; in xgene_ahci_set_phy_cfg() 355 struct ahci_host_priv *hpriv = ap->host->private_data; in xgene_ahci_do_hardreset() local 356 struct xgene_ahci_context *ctx = hpriv->plat_data; in xgene_ahci_do_hardreset() 394 struct ahci_host_priv *hpriv in xgene_ahci_hardreset() local 432 struct ahci_host_priv *hpriv = host->private_data; xgene_ahci_host_stop() local 500 struct ahci_host_priv *hpriv = ap->host->private_data; xgene_ahci_softreset() local 565 struct ahci_host_priv *hpriv = host->private_data; xgene_ahci_handle_broken_edge_irq() local 586 struct ahci_host_priv *hpriv; xgene_ahci_irq_intr() local 647 xgene_ahci_hw_init(struct ahci_host_priv *hpriv) xgene_ahci_hw_init() argument 736 struct ahci_host_priv *hpriv; xgene_ahci_probe() local [all...] |
H A D | ahci_seattle.c | 82 struct ahci_host_priv *hpriv = ap->host->private_data; in seattle_transmit_led_message() local 84 struct seattle_plat_data *plat_data = hpriv->plat_data; in seattle_transmit_led_message() 125 struct platform_device *pdev, struct ahci_host_priv *hpriv) in ahci_seattle_get_port_info() 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() 124 ahci_seattle_get_port_info( struct platform_device *pdev, struct ahci_host_priv *hpriv) ahci_seattle_get_port_info() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/renesas_usbhs/ |
H A D | mod_host.c | 109 #define usbhsh_for_each_udev(pos, hpriv, i) \ 110 __usbhsh_for_each_udev(1, pos, hpriv, i) 112 #define usbhsh_for_each_udev_with_dev0(pos, hpriv, i) \ 113 __usbhsh_for_each_udev(0, pos, hpriv, i) 155 static struct usbhsh_request *usbhsh_ureq_alloc(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_alloc() argument 172 static void usbhsh_ureq_free(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_free() argument 184 static int usbhsh_is_running(struct usbhsh_hpriv *hpriv) in usbhsh_is_running() argument 193 return (hpriv->mod.irq_attch == NULL); in usbhsh_is_running() 199 static void usbhsh_endpoint_sequence_save(struct usbhsh_hpriv *hpriv, in usbhsh_endpoint_sequence_save() argument 241 static struct usbhsh_device *usbhsh_device_get(struct usbhsh_hpriv *hpriv, 244 usbhsh_pipe_attach(struct usbhsh_hpriv *hpriv, struct urb *urb) usbhsh_pipe_attach() argument 324 usbhsh_pipe_detach(struct usbhsh_hpriv *hpriv, struct usbhsh_ep *uep) usbhsh_pipe_detach() argument 365 usbhsh_endpoint_attach(struct usbhsh_hpriv *hpriv, struct urb *urb, gfp_t mem_flags) usbhsh_endpoint_attach() argument 405 usbhsh_endpoint_detach(struct usbhsh_hpriv *hpriv, struct usb_host_endpoint *ep) usbhsh_endpoint_detach() argument 439 usbhsh_endpoint_detach_all(struct usbhsh_hpriv *hpriv, struct usbhsh_device *udev) usbhsh_endpoint_detach_all() argument 464 usbhsh_device_get(struct usbhsh_hpriv *hpriv, struct urb *urb) usbhsh_device_get() argument 482 usbhsh_device_attach(struct usbhsh_hpriv *hpriv, struct urb *urb) usbhsh_device_attach() argument 585 usbhsh_device_detach(struct usbhsh_hpriv *hpriv, struct usbhsh_device *udev) usbhsh_device_detach() argument 632 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_queue_done() local 663 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_queue_push() local 749 usbhsh_setup_stage_packet_push(struct usbhsh_hpriv *hpriv, struct urb *urb, struct usbhs_pipe *pipe) usbhsh_setup_stage_packet_push() argument 801 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_data_stage_packet_done() local 808 usbhsh_data_stage_packet_push(struct usbhsh_hpriv *hpriv, struct urb *urb, struct usbhs_pipe *pipe, gfp_t mem_flags) usbhsh_data_stage_packet_push() argument 839 usbhsh_status_stage_packet_push(struct usbhsh_hpriv *hpriv, struct urb *urb, struct usbhs_pipe *pipe, gfp_t mem_flags) usbhsh_status_stage_packet_push() argument 869 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_dcp_queue_push() local 952 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_urb_enqueue() local 1033 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_urb_dequeue() local 1052 struct usbhsh_hpriv *hpriv; usbhsh_endpoint_disable() local 1076 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_hub_status_data() local 1091 __usbhsh_hub_hub_feature(struct usbhsh_hpriv *hpriv, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) __usbhsh_hub_hub_feature() argument 1108 __usbhsh_hub_port_feature(struct usbhsh_hpriv *hpriv, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) __usbhsh_hub_port_feature() argument 1193 __usbhsh_hub_get_status(struct usbhsh_hpriv *hpriv, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) __usbhsh_hub_get_status() argument 1237 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_hub_control() local 1313 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_irq_attch() local 1341 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_irq_dtch() local 1373 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_irq_setup_ack() local 1386 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_irq_setup_err() local 1401 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_pipe_init_for_host() local 1450 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_start() local 1494 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_stop() local 1520 struct usbhsh_hpriv *hpriv; usbhs_mod_host_probe() local 1568 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhs_mod_host_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/renesas_usbhs/ |
H A D | mod_host.c | 109 #define usbhsh_for_each_udev(pos, hpriv, i) \ 110 __usbhsh_for_each_udev(1, pos, hpriv, i) 112 #define usbhsh_for_each_udev_with_dev0(pos, hpriv, i) \ 113 __usbhsh_for_each_udev(0, pos, hpriv, i) 155 static struct usbhsh_request *usbhsh_ureq_alloc(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_alloc() argument 172 static void usbhsh_ureq_free(struct usbhsh_hpriv *hpriv, in usbhsh_ureq_free() argument 184 static int usbhsh_is_running(struct usbhsh_hpriv *hpriv) in usbhsh_is_running() argument 193 return (hpriv->mod.irq_attch == NULL); in usbhsh_is_running() 199 static void usbhsh_endpoint_sequence_save(struct usbhsh_hpriv *hpriv, in usbhsh_endpoint_sequence_save() argument 241 static struct usbhsh_device *usbhsh_device_get(struct usbhsh_hpriv *hpriv, 244 usbhsh_pipe_attach(struct usbhsh_hpriv *hpriv, struct urb *urb) usbhsh_pipe_attach() argument 324 usbhsh_pipe_detach(struct usbhsh_hpriv *hpriv, struct usbhsh_ep *uep) usbhsh_pipe_detach() argument 365 usbhsh_endpoint_attach(struct usbhsh_hpriv *hpriv, struct urb *urb, gfp_t mem_flags) usbhsh_endpoint_attach() argument 405 usbhsh_endpoint_detach(struct usbhsh_hpriv *hpriv, struct usb_host_endpoint *ep) usbhsh_endpoint_detach() argument 439 usbhsh_endpoint_detach_all(struct usbhsh_hpriv *hpriv, struct usbhsh_device *udev) usbhsh_endpoint_detach_all() argument 464 usbhsh_device_get(struct usbhsh_hpriv *hpriv, struct urb *urb) usbhsh_device_get() argument 482 usbhsh_device_attach(struct usbhsh_hpriv *hpriv, struct urb *urb) usbhsh_device_attach() argument 585 usbhsh_device_detach(struct usbhsh_hpriv *hpriv, struct usbhsh_device *udev) usbhsh_device_detach() argument 632 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_queue_done() local 663 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_queue_push() local 749 usbhsh_setup_stage_packet_push(struct usbhsh_hpriv *hpriv, struct urb *urb, struct usbhs_pipe *pipe) usbhsh_setup_stage_packet_push() argument 801 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_data_stage_packet_done() local 808 usbhsh_data_stage_packet_push(struct usbhsh_hpriv *hpriv, struct urb *urb, struct usbhs_pipe *pipe, gfp_t mem_flags) usbhsh_data_stage_packet_push() argument 839 usbhsh_status_stage_packet_push(struct usbhsh_hpriv *hpriv, struct urb *urb, struct usbhs_pipe *pipe, gfp_t mem_flags) usbhsh_status_stage_packet_push() argument 869 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_dcp_queue_push() local 952 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_urb_enqueue() local 1033 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_urb_dequeue() local 1052 struct usbhsh_hpriv *hpriv; usbhsh_endpoint_disable() local 1076 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_hub_status_data() local 1091 __usbhsh_hub_hub_feature(struct usbhsh_hpriv *hpriv, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) __usbhsh_hub_hub_feature() argument 1108 __usbhsh_hub_port_feature(struct usbhsh_hpriv *hpriv, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) __usbhsh_hub_port_feature() argument 1193 __usbhsh_hub_get_status(struct usbhsh_hpriv *hpriv, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) __usbhsh_hub_get_status() argument 1237 struct usbhsh_hpriv *hpriv = usbhsh_hcd_to_hpriv(hcd); usbhsh_hub_control() local 1313 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_irq_attch() local 1341 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_irq_dtch() local 1373 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_irq_setup_ack() local 1386 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_irq_setup_err() local 1401 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_pipe_init_for_host() local 1450 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_start() local 1494 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhsh_stop() local 1520 struct usbhsh_hpriv *hpriv; usbhs_mod_host_probe() local 1568 struct usbhsh_hpriv *hpriv = usbhsh_priv_to_hpriv(priv); usbhs_mod_host_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/ |
H A D | habanalabs_ioctl.c | 135 static int events_info(struct hl_fpriv *hpriv, struct hl_info_args *args) in events_info() argument 144 mutex_lock(&hpriv->notifier_event.lock); in events_info() 145 events_mask = hpriv->notifier_event.events_mask; in events_info() 146 hpriv->notifier_event.events_mask = 0; in events_info() 147 mutex_unlock(&hpriv->notifier_event.lock); in events_info() 152 static int dram_usage_info(struct hl_fpriv *hpriv, struct hl_info_args *args) in dram_usage_info() argument 154 struct hl_device *hdev = hpriv->hdev; in dram_usage_info() 168 if (hpriv->ctx) in dram_usage_info() 170 atomic64_read(&hpriv->ctx->dram_phys_mem); in dram_usage_info() 328 static int pci_counters_info(struct hl_fpriv *hpriv, struc argument 347 clk_throttle_info(struct hl_fpriv *hpriv, struct hl_info_args *args) clk_throttle_info() argument 386 cs_counters_info(struct hl_fpriv *hpriv, struct hl_info_args *args) cs_counters_info() argument 437 sync_manager_info(struct hl_fpriv *hpriv, struct hl_info_args *args) sync_manager_info() argument 462 total_energy_consumption_info(struct hl_fpriv *hpriv, struct hl_info_args *args) total_energy_consumption_info() argument 483 pll_frequency_info(struct hl_fpriv *hpriv, struct hl_info_args *args) pll_frequency_info() argument 502 power_info(struct hl_fpriv *hpriv, struct hl_info_args *args) power_info() argument 521 open_stats_info(struct hl_fpriv *hpriv, struct hl_info_args *args) open_stats_info() argument 541 dram_pending_rows_info(struct hl_fpriv *hpriv, struct hl_info_args *args) dram_pending_rows_info() argument 560 dram_replaced_rows_info(struct hl_fpriv *hpriv, struct hl_info_args *args) dram_replaced_rows_info() argument 578 last_err_open_dev_info(struct hl_fpriv *hpriv, struct hl_info_args *args) last_err_open_dev_info() argument 593 cs_timeout_info(struct hl_fpriv *hpriv, struct hl_info_args *args) cs_timeout_info() argument 609 razwi_info(struct hl_fpriv *hpriv, struct hl_info_args *args) razwi_info() argument 627 undefined_opcode_info(struct hl_fpriv *hpriv, struct hl_info_args *args) undefined_opcode_info() argument 649 dev_mem_alloc_page_sizes_info(struct hl_fpriv *hpriv, struct hl_info_args *args) dev_mem_alloc_page_sizes_info() argument 670 sec_attest_info(struct hl_fpriv *hpriv, struct hl_info_args *args) sec_attest_info() argument 719 eventfd_register(struct hl_fpriv *hpriv, struct hl_info_args *args) eventfd_register() argument 742 eventfd_unregister(struct hl_fpriv *hpriv, struct hl_info_args *args) eventfd_unregister() argument 756 engine_status_info(struct hl_fpriv *hpriv, struct hl_info_args *args) engine_status_info() argument 792 page_fault_info(struct hl_fpriv *hpriv, struct hl_info_args *args) page_fault_info() argument 810 user_mappings_info(struct hl_fpriv *hpriv, struct hl_info_args *args) user_mappings_info() argument 834 hw_err_info(struct hl_fpriv *hpriv, struct hl_info_args *args) hw_err_info() argument 856 fw_err_info(struct hl_fpriv *hpriv, struct hl_info_args *args) fw_err_info() argument 926 _hl_info_ioctl(struct hl_fpriv *hpriv, void *data, struct device *dev) _hl_info_ioctl() argument 1073 hl_info_ioctl(struct hl_fpriv *hpriv, void *data) hl_info_ioctl() argument 1078 hl_info_ioctl_control(struct hl_fpriv *hpriv, void *data) hl_info_ioctl_control() argument 1083 hl_debug_ioctl(struct hl_fpriv *hpriv, void *data) hl_debug_ioctl() argument 1147 struct hl_fpriv *hpriv = filep->private_data; _hl_ioctl() local 1209 struct hl_fpriv *hpriv = filep->private_data; hl_ioctl() local 1232 struct hl_fpriv *hpriv = filep->private_data; hl_ioctl_control() local [all...] |
H A D | habanalabs_drv.c | 140 struct hl_fpriv *hpriv; in hl_device_open() local 153 hpriv = kzalloc(sizeof(*hpriv), GFP_KERNEL); in hl_device_open() 154 if (!hpriv) in hl_device_open() 157 hpriv->hdev = hdev; in hl_device_open() 158 filp->private_data = hpriv; in hl_device_open() 159 hpriv->filp = filp; in hl_device_open() 161 mutex_init(&hpriv->notifier_event.lock); in hl_device_open() 162 mutex_init(&hpriv->restore_phase_mutex); in hl_device_open() 163 mutex_init(&hpriv in hl_device_open() 252 struct hl_fpriv *hpriv; hl_device_open_ctrl() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | ahci_platform.h | 23 int ahci_platform_enable_phys(struct ahci_host_priv *hpriv); 24 void ahci_platform_disable_phys(struct ahci_host_priv *hpriv); 25 struct clk *ahci_platform_find_clk(struct ahci_host_priv *hpriv, 27 int ahci_platform_enable_clks(struct ahci_host_priv *hpriv); 28 void ahci_platform_disable_clks(struct ahci_host_priv *hpriv); 29 int ahci_platform_deassert_rsts(struct ahci_host_priv *hpriv); 30 int ahci_platform_assert_rsts(struct ahci_host_priv *hpriv); 31 int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv); 32 void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv); 33 int ahci_platform_enable_resources(struct ahci_host_priv *hpriv); [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H 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,
|
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
H A D | habanalabs_drv.c | 91 struct hl_fpriv *hpriv; in hl_device_open() local 104 hpriv = kzalloc(sizeof(*hpriv), GFP_KERNEL); in hl_device_open() 105 if (!hpriv) in hl_device_open() 108 hpriv->hdev = hdev; in hl_device_open() 109 filp->private_data = hpriv; in hl_device_open() 110 hpriv->filp = filp; in hl_device_open() 111 mutex_init(&hpriv->restore_phase_mutex); in hl_device_open() 112 kref_init(&hpriv->refcount); in hl_device_open() 115 hl_cb_mgr_init(&hpriv in hl_device_open() 183 struct hl_fpriv *hpriv; hl_device_open_ctrl() local [all...] |