/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-imx.c | 51 int (*set_intf_mode)(struct plat_stmmacenet_data *plat_dat); 65 struct plat_stmmacenet_data *plat_dat; member 68 static int imx8mp_set_intf_mode(struct plat_stmmacenet_data *plat_dat) in imx8mp_set_intf_mode() argument 70 struct imx_priv_data *dwmac = plat_dat->bsp_priv; in imx8mp_set_intf_mode() 73 switch (plat_dat->mac_interface) { in imx8mp_set_intf_mode() 90 plat_dat->mac_interface); in imx8mp_set_intf_mode() 100 imx8dxl_set_intf_mode(struct plat_stmmacenet_data *plat_dat) in imx8dxl_set_intf_mode() argument 108 static int imx93_set_intf_mode(struct plat_stmmacenet_data *plat_dat) in imx93_set_intf_mode() argument 110 struct imx_priv_data *dwmac = plat_dat->bsp_priv; in imx93_set_intf_mode() 113 switch (plat_dat->mac_interface) { in imx93_set_intf_mode() [all …]
|
D | dwmac-ingenic.c | 70 int (*set_mode)(struct plat_stmmacenet_data *plat_dat); 73 static int ingenic_mac_init(struct plat_stmmacenet_data *plat_dat) in ingenic_mac_init() argument 75 struct ingenic_mac *mac = plat_dat->bsp_priv; in ingenic_mac_init() 79 ret = mac->soc_info->set_mode(plat_dat); in ingenic_mac_init() 87 static int jz4775_mac_set_mode(struct plat_stmmacenet_data *plat_dat) in jz4775_mac_set_mode() argument 89 struct ingenic_mac *mac = plat_dat->bsp_priv; in jz4775_mac_set_mode() 92 switch (plat_dat->mac_interface) { in jz4775_mac_set_mode() 121 dev_err(mac->dev, "Unsupported interface %d", plat_dat->mac_interface); in jz4775_mac_set_mode() 129 static int x1000_mac_set_mode(struct plat_stmmacenet_data *plat_dat) in x1000_mac_set_mode() argument 131 struct ingenic_mac *mac = plat_dat->bsp_priv; in x1000_mac_set_mode() [all …]
|
D | dwmac-dwc-qos-eth.c | 41 struct plat_stmmacenet_data *plat_dat) in dwc_eth_dwmac_config_dt() argument 48 if (!plat_dat->axi) { in dwc_eth_dwmac_config_dt() 49 plat_dat->axi = kzalloc(sizeof(struct stmmac_axi), GFP_KERNEL); in dwc_eth_dwmac_config_dt() 51 if (!plat_dat->axi) in dwc_eth_dwmac_config_dt() 55 plat_dat->axi->axi_lpi_en = device_property_read_bool(dev, in dwc_eth_dwmac_config_dt() 58 &plat_dat->axi->axi_wr_osr_lmt)) { in dwc_eth_dwmac_config_dt() 63 plat_dat->axi->axi_wr_osr_lmt = 1; in dwc_eth_dwmac_config_dt() 69 plat_dat->axi->axi_wr_osr_lmt--; in dwc_eth_dwmac_config_dt() 73 &plat_dat->axi->axi_rd_osr_lmt)) { in dwc_eth_dwmac_config_dt() 78 plat_dat->axi->axi_rd_osr_lmt = 1; in dwc_eth_dwmac_config_dt() [all …]
|
D | dwmac-sunxi.c | 101 struct plat_stmmacenet_data *plat_dat; in sun7i_gmac_probe() local 111 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in sun7i_gmac_probe() 112 if (IS_ERR(plat_dat)) in sun7i_gmac_probe() 113 return PTR_ERR(plat_dat); in sun7i_gmac_probe() 147 plat_dat->tx_coe = 1; in sun7i_gmac_probe() 148 plat_dat->has_gmac = true; in sun7i_gmac_probe() 149 plat_dat->bsp_priv = gmac; in sun7i_gmac_probe() 150 plat_dat->init = sun7i_gmac_init; in sun7i_gmac_probe() 151 plat_dat->exit = sun7i_gmac_exit; in sun7i_gmac_probe() 152 plat_dat->fix_mac_speed = sun7i_fix_speed; in sun7i_gmac_probe() [all …]
|
D | dwmac-generic.c | 21 struct plat_stmmacenet_data *plat_dat; in dwmac_generic_probe() local 30 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in dwmac_generic_probe() 31 if (IS_ERR(plat_dat)) { in dwmac_generic_probe() 33 return PTR_ERR(plat_dat); in dwmac_generic_probe() 36 plat_dat = dev_get_platdata(&pdev->dev); in dwmac_generic_probe() 37 if (!plat_dat) { in dwmac_generic_probe() 43 plat_dat->multicast_filter_bins = HASH_TABLE_SIZE; in dwmac_generic_probe() 46 plat_dat->unicast_filter_entries = 1; in dwmac_generic_probe() 49 ret = stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res); in dwmac_generic_probe() 57 stmmac_remove_config_dt(pdev, plat_dat); in dwmac_generic_probe()
|
D | dwmac-starfive.c | 55 static int starfive_dwmac_set_mode(struct plat_stmmacenet_data *plat_dat) in starfive_dwmac_set_mode() argument 57 struct starfive_dwmac *dwmac = plat_dat->bsp_priv; in starfive_dwmac_set_mode() 63 switch (plat_dat->mac_interface) { in starfive_dwmac_set_mode() 75 plat_dat->mac_interface); in starfive_dwmac_set_mode() 97 struct plat_stmmacenet_data *plat_dat; in starfive_dwmac_probe() local 108 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in starfive_dwmac_probe() 109 if (IS_ERR(plat_dat)) in starfive_dwmac_probe() 110 return dev_err_probe(&pdev->dev, PTR_ERR(plat_dat), in starfive_dwmac_probe() 134 plat_dat->fix_mac_speed = starfive_dwmac_fix_mac_speed; in starfive_dwmac_probe() 137 plat_dat->bsp_priv = dwmac; in starfive_dwmac_probe() [all …]
|
D | dwmac-intel-plat.c | 77 struct plat_stmmacenet_data *plat_dat; in intel_eth_plat_probe() local 88 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in intel_eth_plat_probe() 89 if (IS_ERR(plat_dat)) { in intel_eth_plat_probe() 91 return PTR_ERR(plat_dat); in intel_eth_plat_probe() 108 plat_dat->fix_mac_speed = dwmac->data->fix_mac_speed; in intel_eth_plat_probe() 135 rate = clk_get_rate(plat_dat->clk_ptp_ref); in intel_eth_plat_probe() 139 ret = clk_set_rate(plat_dat->clk_ptp_ref, rate); in intel_eth_plat_probe() 148 plat_dat->bsp_priv = dwmac; in intel_eth_plat_probe() 149 plat_dat->eee_usecs_rate = plat_dat->clk_ptp_rate; in intel_eth_plat_probe() 151 if (plat_dat->eee_usecs_rate > 0) { in intel_eth_plat_probe() [all …]
|
D | dwmac-lpc18xx.c | 30 struct plat_stmmacenet_data *plat_dat; in lpc18xx_dwmac_probe() local 40 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in lpc18xx_dwmac_probe() 41 if (IS_ERR(plat_dat)) in lpc18xx_dwmac_probe() 42 return PTR_ERR(plat_dat); in lpc18xx_dwmac_probe() 44 plat_dat->has_gmac = true; in lpc18xx_dwmac_probe() 53 if (plat_dat->mac_interface == PHY_INTERFACE_MODE_MII) { in lpc18xx_dwmac_probe() 55 } else if (plat_dat->mac_interface == PHY_INTERFACE_MODE_RMII) { in lpc18xx_dwmac_probe() 66 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in lpc18xx_dwmac_probe() 73 stmmac_remove_config_dt(pdev, plat_dat); in lpc18xx_dwmac_probe()
|
D | dwmac-visconti.c | 142 static int visconti_eth_init_hw(struct platform_device *pdev, struct plat_stmmacenet_data *plat_dat) in visconti_eth_init_hw() argument 144 struct visconti_eth *dwmac = plat_dat->bsp_priv; in visconti_eth_init_hw() 147 switch (plat_dat->phy_interface) { in visconti_eth_init_hw() 161 dev_err(&pdev->dev, "Unsupported phy-mode (%d)\n", plat_dat->phy_interface); in visconti_eth_init_hw() 183 struct plat_stmmacenet_data *plat_dat) in visconti_eth_clock_probe() argument 185 struct visconti_eth *dwmac = plat_dat->bsp_priv; in visconti_eth_clock_probe() 214 struct plat_stmmacenet_data *plat_dat; in visconti_eth_dwmac_probe() local 223 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in visconti_eth_dwmac_probe() 224 if (IS_ERR(plat_dat)) in visconti_eth_dwmac_probe() 225 return PTR_ERR(plat_dat); in visconti_eth_dwmac_probe() [all …]
|
D | dwmac-meson.c | 46 struct plat_stmmacenet_data *plat_dat; in meson6_dwmac_probe() local 55 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in meson6_dwmac_probe() 56 if (IS_ERR(plat_dat)) in meson6_dwmac_probe() 57 return PTR_ERR(plat_dat); in meson6_dwmac_probe() 71 plat_dat->bsp_priv = dwmac; in meson6_dwmac_probe() 72 plat_dat->fix_mac_speed = meson6_dwmac_fix_mac_speed; in meson6_dwmac_probe() 74 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in meson6_dwmac_probe() 81 stmmac_remove_config_dt(pdev, plat_dat); in meson6_dwmac_probe()
|
D | dwmac-anarion.c | 107 struct plat_stmmacenet_data *plat_dat; in anarion_dwmac_probe() local 118 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in anarion_dwmac_probe() 119 if (IS_ERR(plat_dat)) in anarion_dwmac_probe() 120 return PTR_ERR(plat_dat); in anarion_dwmac_probe() 122 plat_dat->init = anarion_gmac_init; in anarion_dwmac_probe() 123 plat_dat->exit = anarion_gmac_exit; in anarion_dwmac_probe() 125 plat_dat->bsp_priv = gmac; in anarion_dwmac_probe() 127 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in anarion_dwmac_probe() 129 stmmac_remove_config_dt(pdev, plat_dat); in anarion_dwmac_probe()
|
D | dwmac-stm32.c | 100 int (*set_mode)(struct plat_stmmacenet_data *plat_dat); 110 static int stm32_dwmac_init(struct plat_stmmacenet_data *plat_dat) in stm32_dwmac_init() argument 112 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32_dwmac_init() 116 ret = dwmac->ops->set_mode(plat_dat); in stm32_dwmac_init() 168 static int stm32mp1_set_mode(struct plat_stmmacenet_data *plat_dat) in stm32mp1_set_mode() argument 170 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32mp1_set_mode() 176 switch (plat_dat->mac_interface) { in stm32mp1_set_mode() 215 plat_dat->mac_interface); in stm32mp1_set_mode() 229 static int stm32mcu_set_mode(struct plat_stmmacenet_data *plat_dat) in stm32mcu_set_mode() argument 231 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32mcu_set_mode() [all …]
|
D | dwmac-qcom-ethqos.c | 708 struct plat_stmmacenet_data *plat_dat = priv->plat; in ethqos_ptp_clk_freq_config() local 711 if (!plat_dat->clk_ptp_ref) in ethqos_ptp_clk_freq_config() 715 err = clk_set_rate(plat_dat->clk_ptp_ref, ULONG_MAX); in ethqos_ptp_clk_freq_config() 718 plat_dat->clk_ptp_rate = clk_get_rate(plat_dat->clk_ptp_ref); in ethqos_ptp_clk_freq_config() 720 netdev_dbg(priv->dev, "PTP rate %d\n", plat_dat->clk_ptp_rate); in ethqos_ptp_clk_freq_config() 727 struct plat_stmmacenet_data *plat_dat; in qcom_ethqos_probe() local 738 plat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac); in qcom_ethqos_probe() 739 if (IS_ERR(plat_dat)) { in qcom_ethqos_probe() 740 return dev_err_probe(dev, PTR_ERR(plat_dat), in qcom_ethqos_probe() 744 plat_dat->clks_config = ethqos_clks_config; in qcom_ethqos_probe() [all …]
|
D | dwmac-ipq806x.c | 376 struct plat_stmmacenet_data *plat_dat; in ipq806x_gmac_probe() local 387 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in ipq806x_gmac_probe() 388 if (IS_ERR(plat_dat)) in ipq806x_gmac_probe() 389 return PTR_ERR(plat_dat); in ipq806x_gmac_probe() 469 plat_dat->has_gmac = true; in ipq806x_gmac_probe() 470 plat_dat->bsp_priv = gmac; in ipq806x_gmac_probe() 471 plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; in ipq806x_gmac_probe() 472 plat_dat->multicast_filter_bins = 0; in ipq806x_gmac_probe() 473 plat_dat->tx_fifo_size = 8192; in ipq806x_gmac_probe() 474 plat_dat->rx_fifo_size = 8192; in ipq806x_gmac_probe() [all …]
|
D | dwmac-sti.c | 260 struct plat_stmmacenet_data *plat_dat; in sti_dwmac_probe() local 276 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in sti_dwmac_probe() 277 if (IS_ERR(plat_dat)) in sti_dwmac_probe() 278 return PTR_ERR(plat_dat); in sti_dwmac_probe() 294 plat_dat->bsp_priv = dwmac; in sti_dwmac_probe() 295 plat_dat->fix_mac_speed = data->fix_retime_src; in sti_dwmac_probe() 305 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in sti_dwmac_probe() 314 stmmac_remove_config_dt(pdev, plat_dat); in sti_dwmac_probe()
|
D | dwmac-sun8i.c | 1154 struct plat_stmmacenet_data *plat_dat; in sun8i_dwmac_probe() local 1226 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in sun8i_dwmac_probe() 1227 if (IS_ERR(plat_dat)) in sun8i_dwmac_probe() 1228 return PTR_ERR(plat_dat); in sun8i_dwmac_probe() 1233 plat_dat->mac_interface = interface; in sun8i_dwmac_probe() 1234 plat_dat->rx_coe = STMMAC_RX_COE_TYPE2; in sun8i_dwmac_probe() 1235 plat_dat->tx_coe = 1; in sun8i_dwmac_probe() 1236 plat_dat->flags |= STMMAC_FLAG_HAS_SUN8I; in sun8i_dwmac_probe() 1237 plat_dat->bsp_priv = gmac; in sun8i_dwmac_probe() 1238 plat_dat->init = sun8i_dwmac_init; in sun8i_dwmac_probe() [all …]
|
D | dwmac-meson8b.c | 394 struct plat_stmmacenet_data *plat_dat; in meson8b_dwmac_probe() local 403 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in meson8b_dwmac_probe() 404 if (IS_ERR(plat_dat)) in meson8b_dwmac_probe() 405 return PTR_ERR(plat_dat); in meson8b_dwmac_probe() 486 plat_dat->bsp_priv = dwmac; in meson8b_dwmac_probe() 488 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in meson8b_dwmac_probe() 495 stmmac_remove_config_dt(pdev, plat_dat); in meson8b_dwmac_probe()
|
D | dwmac-socfpga.c | 384 struct plat_stmmacenet_data *plat_dat; in socfpga_dwmac_probe() local 403 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in socfpga_dwmac_probe() 404 if (IS_ERR(plat_dat)) in socfpga_dwmac_probe() 405 return PTR_ERR(plat_dat); in socfpga_dwmac_probe() 429 plat_dat->bsp_priv = dwmac; in socfpga_dwmac_probe() 430 plat_dat->fix_mac_speed = socfpga_dwmac_fix_mac_speed; in socfpga_dwmac_probe() 432 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in socfpga_dwmac_probe() 496 stmmac_remove_config_dt(pdev, plat_dat); in socfpga_dwmac_probe()
|
D | dwmac-mediatek.c | 630 struct plat_stmmacenet_data *plat_dat; in mediatek_dwmac_probe() local 659 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in mediatek_dwmac_probe() 660 if (IS_ERR(plat_dat)) in mediatek_dwmac_probe() 661 return PTR_ERR(plat_dat); in mediatek_dwmac_probe() 663 mediatek_dwmac_common_data(pdev, plat_dat, priv_plat); in mediatek_dwmac_probe() 670 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in mediatek_dwmac_probe() 679 stmmac_remove_config_dt(pdev, plat_dat); in mediatek_dwmac_probe()
|
D | dwmac-rk.c | 1812 struct plat_stmmacenet_data *plat_dat; in rk_gmac_probe() local 1827 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); in rk_gmac_probe() 1828 if (IS_ERR(plat_dat)) in rk_gmac_probe() 1829 return PTR_ERR(plat_dat); in rk_gmac_probe() 1834 if (!plat_dat->has_gmac4) in rk_gmac_probe() 1835 plat_dat->has_gmac = true; in rk_gmac_probe() 1836 plat_dat->fix_mac_speed = rk_fix_speed; in rk_gmac_probe() 1838 plat_dat->bsp_priv = rk_gmac_setup(pdev, plat_dat, data); in rk_gmac_probe() 1839 if (IS_ERR(plat_dat->bsp_priv)) { in rk_gmac_probe() 1840 ret = PTR_ERR(plat_dat->bsp_priv); in rk_gmac_probe() [all …]
|
/linux-6.6.21/arch/mips/loongson32/common/ |
D | platform.c | 75 struct plat_stmmacenet_data *plat_dat = NULL; in ls1x_eth_mux_init() local 81 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init() 82 if (plat_dat->bus_id) { in ls1x_eth_mux_init() 85 switch (plat_dat->phy_interface) { in ls1x_eth_mux_init() 94 plat_dat->phy_interface); in ls1x_eth_mux_init() 99 switch (plat_dat->phy_interface) { in ls1x_eth_mux_init() 108 plat_dat->phy_interface); in ls1x_eth_mux_init() 115 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init() 118 if (plat_dat->phy_interface == PHY_INTERFACE_MODE_RMII) in ls1x_eth_mux_init()
|
/linux-6.6.21/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_platform.c | 84 struct sxgbe_plat_data *plat_dat = NULL; in sxgbe_platform_probe() local 94 plat_dat = devm_kzalloc(&pdev->dev, in sxgbe_platform_probe() 97 if (!plat_dat) in sxgbe_platform_probe() 100 ret = sxgbe_probe_config_dt(pdev, plat_dat); in sxgbe_platform_probe() 107 priv = sxgbe_drv_probe(&(pdev->dev), plat_dat, addr); in sxgbe_platform_probe()
|
/linux-6.6.21/drivers/input/joystick/ |
D | as5011.c | 148 const struct as5011_platform_data *plat_dat) in as5011_configure_chip() argument 181 error = as5011_i2c_write(client, AS5011_XP, plat_dat->xp); in as5011_configure_chip() 187 error = as5011_i2c_write(client, AS5011_XN, plat_dat->xn); in as5011_configure_chip() 193 error = as5011_i2c_write(client, AS5011_YP, plat_dat->yp); in as5011_configure_chip() 199 error = as5011_i2c_write(client, AS5011_YN, plat_dat->yn); in as5011_configure_chip()
|
/linux-6.6.21/drivers/misc/ |
D | atmel-ssc.c | 194 const struct atmel_ssc_platform_data *plat_dat; in ssc_probe() local 204 plat_dat = atmel_ssc_get_driver_data(pdev); in ssc_probe() 205 if (!plat_dat) in ssc_probe() 207 ssc->pdata = (struct atmel_ssc_platform_data *)plat_dat; in ssc_probe()
|
/linux-6.6.21/drivers/dma/ |
D | at_hdmac.c | 1934 const struct at_dma_platform_data *plat_dat; in at_dma_probe() local 1946 plat_dat = at_dma_get_driver_data(pdev); in at_dma_probe() 1947 if (!plat_dat) in at_dma_probe() 1951 struct_size(atdma, chan, plat_dat->nr_channels), in at_dma_probe() 1965 atdma->dma_device.cap_mask = plat_dat->cap_mask; in at_dma_probe() 1966 atdma->all_chan_mask = (1 << plat_dat->nr_channels) - 1; in at_dma_probe() 2010 for (i = 0; i < plat_dat->nr_channels; i++) { in at_dma_probe() 2066 plat_dat->nr_channels); in at_dma_probe()
|