Home
last modified time | relevance | path

Searched refs:plat_dat (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-imx.c38 int (*set_intf_mode)(struct plat_stmmacenet_data *plat_dat);
50 struct plat_stmmacenet_data *plat_dat; member
53 static int imx8mp_set_intf_mode(struct plat_stmmacenet_data *plat_dat) in imx8mp_set_intf_mode() argument
55 struct imx_priv_data *dwmac = plat_dat->bsp_priv; in imx8mp_set_intf_mode()
58 switch (plat_dat->interface) { in imx8mp_set_intf_mode()
75 plat_dat->interface); in imx8mp_set_intf_mode()
85 imx8dxl_set_intf_mode(struct plat_stmmacenet_data *plat_dat) in imx8dxl_set_intf_mode() argument
95 struct plat_stmmacenet_data *plat_dat; in imx_dwmac_init() local
99 plat_dat = dwmac->plat_dat; in imx_dwmac_init()
114 ret = dwmac->ops->set_intf_mode(plat_dat); in imx_dwmac_init()
[all …]
Ddwmac-generic.c21 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()
50 if (plat_dat->init) { in dwmac_generic_probe()
51 ret = plat_dat->init(pdev, plat_dat->bsp_priv); in dwmac_generic_probe()
[all …]
Ddwmac-dwc-qos-eth.c41 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 …]
Ddwmac-sunxi.c101 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 …]
Ddwmac-intel-plat.c79 struct plat_stmmacenet_data *plat_dat; in intel_eth_plat_probe() local
86 plat_dat = priv->plat; in intel_eth_plat_probe()
91 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in intel_eth_plat_probe()
92 if (IS_ERR(plat_dat)) { in intel_eth_plat_probe()
94 return PTR_ERR(plat_dat); in intel_eth_plat_probe()
111 plat_dat->fix_mac_speed = dwmac->data->fix_mac_speed; in intel_eth_plat_probe()
138 rate = clk_get_rate(plat_dat->clk_ptp_ref); in intel_eth_plat_probe()
142 ret = clk_set_rate(plat_dat->clk_ptp_ref, rate); in intel_eth_plat_probe()
151 plat_dat->bsp_priv = dwmac; in intel_eth_plat_probe()
152 plat_dat->eee_usecs_rate = plat_dat->clk_ptp_rate; in intel_eth_plat_probe()
[all …]
Ddwmac-lpc18xx.c30 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->interface == PHY_INTERFACE_MODE_MII) { in lpc18xx_dwmac_probe()
55 } else if (plat_dat->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()
Ddwmac-oxnas.c112 struct plat_stmmacenet_data *plat_dat; in oxnas_dwmac_probe() local
121 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in oxnas_dwmac_probe()
122 if (IS_ERR(plat_dat)) in oxnas_dwmac_probe()
123 return PTR_ERR(plat_dat); in oxnas_dwmac_probe()
132 plat_dat->bsp_priv = dwmac; in oxnas_dwmac_probe()
133 plat_dat->init = oxnas_dwmac_init; in oxnas_dwmac_probe()
134 plat_dat->exit = oxnas_dwmac_exit; in oxnas_dwmac_probe()
150 ret = oxnas_dwmac_init(pdev, plat_dat->bsp_priv); in oxnas_dwmac_probe()
154 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in oxnas_dwmac_probe()
162 oxnas_dwmac_exit(pdev, plat_dat->bsp_priv); in oxnas_dwmac_probe()
[all …]
Ddwmac-meson.c46 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()
Ddwmac-anarion.c107 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()
Ddwmac-stm32.c101 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()
167 static int stm32mp1_set_mode(struct plat_stmmacenet_data *plat_dat) in stm32mp1_set_mode() argument
169 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32mp1_set_mode()
175 switch (plat_dat->interface) { in stm32mp1_set_mode()
214 plat_dat->interface); in stm32mp1_set_mode()
228 static int stm32mcu_set_mode(struct plat_stmmacenet_data *plat_dat) in stm32mcu_set_mode() argument
230 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32mcu_set_mode()
[all …]
Ddwmac-mediatek.c381 struct plat_stmmacenet_data *plat_dat; in mediatek_dwmac_probe() local
410 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in mediatek_dwmac_probe()
411 if (IS_ERR(plat_dat)) in mediatek_dwmac_probe()
412 return PTR_ERR(plat_dat); in mediatek_dwmac_probe()
414 plat_dat->interface = priv_plat->phy_mode; in mediatek_dwmac_probe()
415 plat_dat->has_gmac4 = 1; in mediatek_dwmac_probe()
416 plat_dat->has_gmac = 0; in mediatek_dwmac_probe()
417 plat_dat->pmt = 0; in mediatek_dwmac_probe()
418 plat_dat->riwt_off = 1; in mediatek_dwmac_probe()
419 plat_dat->maxmtu = ETH_DATA_LEN; in mediatek_dwmac_probe()
[all …]
Ddwmac-ipq806x.c247 struct plat_stmmacenet_data *plat_dat; in ipq806x_gmac_probe() local
258 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in ipq806x_gmac_probe()
259 if (IS_ERR(plat_dat)) in ipq806x_gmac_probe()
260 return PTR_ERR(plat_dat); in ipq806x_gmac_probe()
344 plat_dat->has_gmac = true; in ipq806x_gmac_probe()
345 plat_dat->bsp_priv = gmac; in ipq806x_gmac_probe()
346 plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; in ipq806x_gmac_probe()
347 plat_dat->multicast_filter_bins = 0; in ipq806x_gmac_probe()
348 plat_dat->tx_fifo_size = 8192; in ipq806x_gmac_probe()
349 plat_dat->rx_fifo_size = 8192; in ipq806x_gmac_probe()
[all …]
Ddwmac-qcom-ethqos.c453 struct plat_stmmacenet_data *plat_dat; in qcom_ethqos_probe() local
464 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in qcom_ethqos_probe()
465 if (IS_ERR(plat_dat)) { in qcom_ethqos_probe()
467 return PTR_ERR(plat_dat); in qcom_ethqos_probe()
503 plat_dat->bsp_priv = ethqos; in qcom_ethqos_probe()
504 plat_dat->fix_mac_speed = ethqos_fix_mac_speed; in qcom_ethqos_probe()
505 plat_dat->has_gmac4 = 1; in qcom_ethqos_probe()
506 plat_dat->pmt = 1; in qcom_ethqos_probe()
507 plat_dat->tso_en = of_property_read_bool(np, "snps,tso"); in qcom_ethqos_probe()
509 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in qcom_ethqos_probe()
[all …]
Ddwmac-sti.c312 struct plat_stmmacenet_data *plat_dat; in sti_dwmac_probe() local
328 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sti_dwmac_probe()
329 if (IS_ERR(plat_dat)) in sti_dwmac_probe()
330 return PTR_ERR(plat_dat); in sti_dwmac_probe()
346 plat_dat->bsp_priv = dwmac; in sti_dwmac_probe()
347 plat_dat->fix_mac_speed = data->fix_retime_src; in sti_dwmac_probe()
357 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in sti_dwmac_probe()
366 stmmac_remove_config_dt(pdev, plat_dat); in sti_dwmac_probe()
Ddwmac-sun8i.c1127 struct plat_stmmacenet_data *plat_dat; in sun8i_dwmac_probe() local
1205 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sun8i_dwmac_probe()
1206 if (IS_ERR(plat_dat)) in sun8i_dwmac_probe()
1207 return PTR_ERR(plat_dat); in sun8i_dwmac_probe()
1212 plat_dat->interface = interface; in sun8i_dwmac_probe()
1213 plat_dat->rx_coe = STMMAC_RX_COE_TYPE2; in sun8i_dwmac_probe()
1214 plat_dat->tx_coe = 1; in sun8i_dwmac_probe()
1215 plat_dat->has_sun8i = true; in sun8i_dwmac_probe()
1216 plat_dat->bsp_priv = gmac; in sun8i_dwmac_probe()
1217 plat_dat->init = sun8i_dwmac_init; in sun8i_dwmac_probe()
[all …]
Ddwmac-meson8b.c366 struct plat_stmmacenet_data *plat_dat; in meson8b_dwmac_probe() local
375 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in meson8b_dwmac_probe()
376 if (IS_ERR(plat_dat)) in meson8b_dwmac_probe()
377 return PTR_ERR(plat_dat); in meson8b_dwmac_probe()
440 plat_dat->bsp_priv = dwmac; in meson8b_dwmac_probe()
442 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in meson8b_dwmac_probe()
449 stmmac_remove_config_dt(pdev, plat_dat); in meson8b_dwmac_probe()
Ddwmac-socfpga.c382 struct plat_stmmacenet_data *plat_dat; in socfpga_dwmac_probe() local
401 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in socfpga_dwmac_probe()
402 if (IS_ERR(plat_dat)) in socfpga_dwmac_probe()
403 return PTR_ERR(plat_dat); in socfpga_dwmac_probe()
427 plat_dat->bsp_priv = dwmac; in socfpga_dwmac_probe()
428 plat_dat->fix_mac_speed = socfpga_dwmac_fix_mac_speed; in socfpga_dwmac_probe()
430 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in socfpga_dwmac_probe()
452 stmmac_remove_config_dt(pdev, plat_dat); in socfpga_dwmac_probe()
Ddwmac-rk.c1380 struct plat_stmmacenet_data *plat_dat; in rk_gmac_probe() local
1395 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in rk_gmac_probe()
1396 if (IS_ERR(plat_dat)) in rk_gmac_probe()
1397 return PTR_ERR(plat_dat); in rk_gmac_probe()
1399 plat_dat->has_gmac = true; in rk_gmac_probe()
1400 plat_dat->fix_mac_speed = rk_fix_speed; in rk_gmac_probe()
1402 plat_dat->bsp_priv = rk_gmac_setup(pdev, plat_dat, data); in rk_gmac_probe()
1403 if (IS_ERR(plat_dat->bsp_priv)) { in rk_gmac_probe()
1404 ret = PTR_ERR(plat_dat->bsp_priv); in rk_gmac_probe()
1408 ret = rk_gmac_clk_init(plat_dat); in rk_gmac_probe()
[all …]
Dstmmac.h268 struct plat_stmmacenet_data *plat_dat,
/kernel/linux/linux-5.10/arch/mips/loongson32/common/
Dplatform.c91 struct plat_stmmacenet_data *plat_dat = NULL; in ls1x_eth_mux_init() local
97 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init()
98 if (plat_dat->bus_id) { in ls1x_eth_mux_init()
101 switch (plat_dat->interface) { in ls1x_eth_mux_init()
110 plat_dat->interface); in ls1x_eth_mux_init()
115 switch (plat_dat->interface) { in ls1x_eth_mux_init()
124 plat_dat->interface); in ls1x_eth_mux_init()
131 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init()
134 if (plat_dat->interface == PHY_INTERFACE_MODE_RMII) in ls1x_eth_mux_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_platform.c87 struct sxgbe_plat_data *plat_dat = NULL; in sxgbe_platform_probe() local
98 plat_dat = devm_kzalloc(&pdev->dev, in sxgbe_platform_probe()
101 if (!plat_dat) in sxgbe_platform_probe()
104 ret = sxgbe_probe_config_dt(pdev, plat_dat, &mac); in sxgbe_platform_probe()
111 priv = sxgbe_drv_probe(&(pdev->dev), plat_dat, addr); in sxgbe_platform_probe()
Dsxgbe_common.h512 struct sxgbe_plat_data *plat_dat,
/kernel/linux/linux-5.10/drivers/input/joystick/
Das5011.c148 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()
/kernel/linux/linux-5.10/drivers/misc/
Datmel-ssc.c194 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()
/kernel/linux/linux-5.10/drivers/dma/
Dat_hdmac.c1788 const struct at_dma_platform_data *plat_dat; in at_dma_probe() local
1800 plat_dat = at_dma_get_driver_data(pdev); in at_dma_probe()
1801 if (!plat_dat) in at_dma_probe()
1813 size += plat_dat->nr_channels * sizeof(struct at_dma_chan); in at_dma_probe()
1819 atdma->dma_common.cap_mask = plat_dat->cap_mask; in at_dma_probe()
1820 atdma->all_chan_mask = (1 << plat_dat->nr_channels) - 1; in at_dma_probe()
1877 for (i = 0; i < plat_dat->nr_channels; i++) { in at_dma_probe()
1940 plat_dat->nr_channels); in at_dma_probe()

12