Home
last modified time | relevance | path

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

/drivers/net/ethernet/stmicro/stmmac/
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-sunxi.c108 struct plat_stmmacenet_data *plat_dat; in sun7i_gmac_probe() local
118 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sun7i_gmac_probe()
119 if (IS_ERR(plat_dat)) in sun7i_gmac_probe()
120 return PTR_ERR(plat_dat); in sun7i_gmac_probe()
150 plat_dat->tx_coe = 1; in sun7i_gmac_probe()
151 plat_dat->has_gmac = true; in sun7i_gmac_probe()
152 plat_dat->bsp_priv = gmac; in sun7i_gmac_probe()
153 plat_dat->init = sun7i_gmac_init; in sun7i_gmac_probe()
154 plat_dat->exit = sun7i_gmac_exit; in sun7i_gmac_probe()
155 plat_dat->fix_mac_speed = sun7i_fix_speed; in sun7i_gmac_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-stm32.c35 static int stm32_dwmac_init(struct plat_stmmacenet_data *plat_dat) in stm32_dwmac_init() argument
37 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32_dwmac_init()
42 val = (plat_dat->interface == PHY_INTERFACE_MODE_MII) ? 0 : 1; in stm32_dwmac_init()
96 struct plat_stmmacenet_data *plat_dat; in stm32_dwmac_probe() local
105 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in stm32_dwmac_probe()
106 if (IS_ERR(plat_dat)) in stm32_dwmac_probe()
107 return PTR_ERR(plat_dat); in stm32_dwmac_probe()
121 plat_dat->bsp_priv = dwmac; in stm32_dwmac_probe()
123 ret = stm32_dwmac_init(plat_dat); in stm32_dwmac_probe()
127 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in stm32_dwmac_probe()
[all …]
Ddwmac-meson.c52 struct plat_stmmacenet_data *plat_dat; in meson6_dwmac_probe() local
62 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in meson6_dwmac_probe()
63 if (IS_ERR(plat_dat)) in meson6_dwmac_probe()
64 return PTR_ERR(plat_dat); in meson6_dwmac_probe()
79 plat_dat->bsp_priv = dwmac; in meson6_dwmac_probe()
80 plat_dat->fix_mac_speed = meson6_dwmac_fix_mac_speed; in meson6_dwmac_probe()
82 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in meson6_dwmac_probe()
89 stmmac_remove_config_dt(pdev, plat_dat); in meson6_dwmac_probe()
Ddwmac-sti.c327 struct plat_stmmacenet_data *plat_dat; in sti_dwmac_probe() local
343 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sti_dwmac_probe()
344 if (IS_ERR(plat_dat)) in sti_dwmac_probe()
345 return PTR_ERR(plat_dat); in sti_dwmac_probe()
361 plat_dat->bsp_priv = dwmac; in sti_dwmac_probe()
362 plat_dat->init = sti_dwmac_init; in sti_dwmac_probe()
363 plat_dat->exit = sti_dwmac_exit; in sti_dwmac_probe()
364 plat_dat->fix_mac_speed = data->fix_retime_src; in sti_dwmac_probe()
366 ret = sti_dwmac_init(pdev, plat_dat->bsp_priv); in sti_dwmac_probe()
370 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in sti_dwmac_probe()
[all …]
Ddwmac-ipq806x.c258 struct plat_stmmacenet_data *plat_dat; in ipq806x_gmac_probe() local
269 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in ipq806x_gmac_probe()
270 if (IS_ERR(plat_dat)) in ipq806x_gmac_probe()
271 return PTR_ERR(plat_dat); in ipq806x_gmac_probe()
349 plat_dat->has_gmac = true; in ipq806x_gmac_probe()
350 plat_dat->bsp_priv = gmac; in ipq806x_gmac_probe()
351 plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; in ipq806x_gmac_probe()
353 err = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in ipq806x_gmac_probe()
360 stmmac_remove_config_dt(pdev, plat_dat); in ipq806x_gmac_probe()
Ddwmac-socfpga.c302 struct plat_stmmacenet_data *plat_dat; in socfpga_dwmac_probe() local
314 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in socfpga_dwmac_probe()
315 if (IS_ERR(plat_dat)) in socfpga_dwmac_probe()
316 return PTR_ERR(plat_dat); in socfpga_dwmac_probe()
330 plat_dat->bsp_priv = dwmac; in socfpga_dwmac_probe()
331 plat_dat->fix_mac_speed = socfpga_dwmac_fix_mac_speed; in socfpga_dwmac_probe()
333 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in socfpga_dwmac_probe()
355 stmmac_remove_config_dt(pdev, plat_dat); in socfpga_dwmac_probe()
Ddwmac-rk.c957 struct plat_stmmacenet_data *plat_dat; in rk_gmac_probe() local
972 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in rk_gmac_probe()
973 if (IS_ERR(plat_dat)) in rk_gmac_probe()
974 return PTR_ERR(plat_dat); in rk_gmac_probe()
976 plat_dat->has_gmac = true; in rk_gmac_probe()
977 plat_dat->init = rk_gmac_init; in rk_gmac_probe()
978 plat_dat->exit = rk_gmac_exit; in rk_gmac_probe()
979 plat_dat->fix_mac_speed = rk_fix_speed; in rk_gmac_probe()
980 plat_dat->suspend = rk_gmac_suspend; in rk_gmac_probe()
981 plat_dat->resume = rk_gmac_resume; in rk_gmac_probe()
[all …]
Ddwmac-meson8b.c252 struct plat_stmmacenet_data *plat_dat; in meson8b_dwmac_probe() local
262 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in meson8b_dwmac_probe()
263 if (IS_ERR(plat_dat)) in meson8b_dwmac_probe()
264 return PTR_ERR(plat_dat); in meson8b_dwmac_probe()
295 plat_dat->bsp_priv = dwmac; in meson8b_dwmac_probe()
297 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in meson8b_dwmac_probe()
306 stmmac_remove_config_dt(pdev, plat_dat); in meson8b_dwmac_probe()
Dstmmac.h155 struct plat_stmmacenet_data *plat_dat,
Dstmmac_main.c3247 struct plat_stmmacenet_data *plat_dat, in stmmac_dvr_probe() argument
3266 priv->plat = plat_dat; in stmmac_dvr_probe()
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_platform.c86 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.h516 struct sxgbe_plat_data *plat_dat,
Dsxgbe_main.c2092 struct sxgbe_plat_data *plat_dat, in sxgbe_drv_probe() argument
2112 priv->plat = plat_dat; in sxgbe_drv_probe()
/drivers/misc/
Datmel-ssc.c152 const struct atmel_ssc_platform_data *plat_dat; in ssc_probe() local
162 plat_dat = atmel_ssc_get_driver_data(pdev); in ssc_probe()
163 if (!plat_dat) in ssc_probe()
165 ssc->pdata = (struct atmel_ssc_platform_data *)plat_dat; in ssc_probe()
/drivers/input/joystick/
Das5011.c161 const struct as5011_platform_data *plat_dat) in as5011_configure_chip() argument
194 error = as5011_i2c_write(client, AS5011_XP, plat_dat->xp); in as5011_configure_chip()
200 error = as5011_i2c_write(client, AS5011_XN, plat_dat->xn); in as5011_configure_chip()
206 error = as5011_i2c_write(client, AS5011_YP, plat_dat->yp); in as5011_configure_chip()
212 error = as5011_i2c_write(client, AS5011_YN, plat_dat->yn); in as5011_configure_chip()
/drivers/dma/
Dat_hdmac.c1935 const struct at_dma_platform_data *plat_dat; in at_dma_probe() local
1949 plat_dat = at_dma_get_driver_data(pdev); in at_dma_probe()
1950 if (!plat_dat) in at_dma_probe()
1962 size += plat_dat->nr_channels * sizeof(struct at_dma_chan); in at_dma_probe()
1968 atdma->dma_common.cap_mask = plat_dat->cap_mask; in at_dma_probe()
1969 atdma->all_chan_mask = (1 << plat_dat->nr_channels) - 1; in at_dma_probe()
2026 for (i = 0; i < plat_dat->nr_channels; i++) { in at_dma_probe()
2094 plat_dat->nr_channels); in at_dma_probe()