/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/ |
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() 50 if (plat_dat->init) { in dwmac_generic_probe() 51 ret = plat_dat->init(pdev, plat_dat->bsp_priv); in dwmac_generic_probe() [all …]
|
D | dwmac-dwc-qos-eth.c | 47 struct plat_stmmacenet_data *plat_dat) in dwc_eth_dwmac_config_dt() argument 54 if (!plat_dat->axi) { in dwc_eth_dwmac_config_dt() 55 plat_dat->axi = kzalloc(sizeof(struct stmmac_axi), GFP_KERNEL); in dwc_eth_dwmac_config_dt() 57 if (!plat_dat->axi) in dwc_eth_dwmac_config_dt() 61 plat_dat->axi->axi_lpi_en = of_property_read_bool(np, "snps,en-lpi"); in dwc_eth_dwmac_config_dt() 63 &plat_dat->axi->axi_wr_osr_lmt)) { in dwc_eth_dwmac_config_dt() 68 plat_dat->axi->axi_wr_osr_lmt = 1; in dwc_eth_dwmac_config_dt() 74 plat_dat->axi->axi_wr_osr_lmt--; in dwc_eth_dwmac_config_dt() 78 &plat_dat->axi->axi_rd_osr_lmt)) { in dwc_eth_dwmac_config_dt() 83 plat_dat->axi->axi_rd_osr_lmt = 1; in dwc_eth_dwmac_config_dt() [all …]
|
D | dwmac-sunxi.c | 108 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 …]
|
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->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()
|
D | dwmac-oxnas.c | 118 struct plat_stmmacenet_data *plat_dat; in oxnas_dwmac_probe() local 127 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in oxnas_dwmac_probe() 128 if (IS_ERR(plat_dat)) in oxnas_dwmac_probe() 129 return PTR_ERR(plat_dat); in oxnas_dwmac_probe() 138 plat_dat->bsp_priv = dwmac; in oxnas_dwmac_probe() 139 plat_dat->init = oxnas_dwmac_init; in oxnas_dwmac_probe() 140 plat_dat->exit = oxnas_dwmac_exit; in oxnas_dwmac_probe() 156 ret = oxnas_dwmac_init(pdev, plat_dat->bsp_priv); in oxnas_dwmac_probe() 160 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in oxnas_dwmac_probe() 168 oxnas_dwmac_exit(pdev, plat_dat->bsp_priv); in oxnas_dwmac_probe() [all …]
|
D | dwmac-stm32.c | 53 int (*set_mode)(struct plat_stmmacenet_data *plat_dat); 62 static int stm32_dwmac_init(struct plat_stmmacenet_data *plat_dat) in stm32_dwmac_init() argument 64 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32_dwmac_init() 68 ret = dwmac->ops->set_mode(plat_dat); in stm32_dwmac_init() 120 static int stm32mp1_set_mode(struct plat_stmmacenet_data *plat_dat) in stm32mp1_set_mode() argument 122 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32mp1_set_mode() 126 switch (plat_dat->interface) { in stm32mp1_set_mode() 151 plat_dat->interface); in stm32mp1_set_mode() 160 static int stm32mcu_set_mode(struct plat_stmmacenet_data *plat_dat) in stm32mcu_set_mode() argument 162 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32mcu_set_mode() [all …]
|
D | dwmac-meson.c | 52 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()
|
D | dwmac-anarion.c | 104 struct plat_stmmacenet_data *plat_dat; in anarion_dwmac_probe() local 115 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in anarion_dwmac_probe() 116 if (IS_ERR(plat_dat)) in anarion_dwmac_probe() 117 return PTR_ERR(plat_dat); in anarion_dwmac_probe() 119 plat_dat->init = anarion_gmac_init; in anarion_dwmac_probe() 120 plat_dat->exit = anarion_gmac_exit; in anarion_dwmac_probe() 122 plat_dat->bsp_priv = gmac; in anarion_dwmac_probe() 124 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in anarion_dwmac_probe() 126 stmmac_remove_config_dt(pdev, plat_dat); in anarion_dwmac_probe()
|
D | dwmac-ipq806x.c | 246 struct plat_stmmacenet_data *plat_dat; in ipq806x_gmac_probe() local 257 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in ipq806x_gmac_probe() 258 if (IS_ERR(plat_dat)) in ipq806x_gmac_probe() 259 return PTR_ERR(plat_dat); in ipq806x_gmac_probe() 337 plat_dat->has_gmac = true; in ipq806x_gmac_probe() 338 plat_dat->bsp_priv = gmac; in ipq806x_gmac_probe() 339 plat_dat->fix_mac_speed = ipq806x_gmac_fix_mac_speed; in ipq806x_gmac_probe() 341 err = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in ipq806x_gmac_probe() 348 stmmac_remove_config_dt(pdev, plat_dat); in ipq806x_gmac_probe()
|
D | dwmac-socfpga.c | 306 struct plat_stmmacenet_data *plat_dat; in socfpga_dwmac_probe() local 318 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in socfpga_dwmac_probe() 319 if (IS_ERR(plat_dat)) in socfpga_dwmac_probe() 320 return PTR_ERR(plat_dat); in socfpga_dwmac_probe() 343 plat_dat->bsp_priv = dwmac; in socfpga_dwmac_probe() 344 plat_dat->fix_mac_speed = socfpga_dwmac_fix_mac_speed; in socfpga_dwmac_probe() 346 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in socfpga_dwmac_probe() 368 stmmac_remove_config_dt(pdev, plat_dat); in socfpga_dwmac_probe()
|
D | dwmac-sti.c | 311 struct plat_stmmacenet_data *plat_dat; in sti_dwmac_probe() local 327 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sti_dwmac_probe() 328 if (IS_ERR(plat_dat)) in sti_dwmac_probe() 329 return PTR_ERR(plat_dat); in sti_dwmac_probe() 345 plat_dat->bsp_priv = dwmac; in sti_dwmac_probe() 346 plat_dat->fix_mac_speed = data->fix_retime_src; in sti_dwmac_probe() 356 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in sti_dwmac_probe() 365 stmmac_remove_config_dt(pdev, plat_dat); in sti_dwmac_probe()
|
D | dwmac-meson8b.c | 315 struct plat_stmmacenet_data *plat_dat; in meson8b_dwmac_probe() local 325 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in meson8b_dwmac_probe() 326 if (IS_ERR(plat_dat)) in meson8b_dwmac_probe() 327 return PTR_ERR(plat_dat); in meson8b_dwmac_probe() 373 plat_dat->bsp_priv = dwmac; in meson8b_dwmac_probe() 375 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in meson8b_dwmac_probe() 382 stmmac_remove_config_dt(pdev, plat_dat); in meson8b_dwmac_probe()
|
D | dwmac-sun8i.c | 1065 struct plat_stmmacenet_data *plat_dat; in sun8i_dwmac_probe() local 1078 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in sun8i_dwmac_probe() 1079 if (IS_ERR(plat_dat)) in sun8i_dwmac_probe() 1080 return PTR_ERR(plat_dat); in sun8i_dwmac_probe() 1142 plat_dat->interface = of_get_phy_mode(dev->of_node); in sun8i_dwmac_probe() 1147 plat_dat->rx_coe = STMMAC_RX_COE_TYPE2; in sun8i_dwmac_probe() 1148 plat_dat->tx_coe = 1; in sun8i_dwmac_probe() 1149 plat_dat->has_sun8i = true; in sun8i_dwmac_probe() 1150 plat_dat->bsp_priv = gmac; in sun8i_dwmac_probe() 1151 plat_dat->init = sun8i_dwmac_init; in sun8i_dwmac_probe() [all …]
|
D | dwmac-rk.c | 1393 struct plat_stmmacenet_data *plat_dat; in rk_gmac_probe() local 1408 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in rk_gmac_probe() 1409 if (IS_ERR(plat_dat)) in rk_gmac_probe() 1410 return PTR_ERR(plat_dat); in rk_gmac_probe() 1412 plat_dat->has_gmac = true; in rk_gmac_probe() 1413 plat_dat->fix_mac_speed = rk_fix_speed; in rk_gmac_probe() 1415 plat_dat->bsp_priv = rk_gmac_setup(pdev, plat_dat, data); in rk_gmac_probe() 1416 if (IS_ERR(plat_dat->bsp_priv)) { in rk_gmac_probe() 1417 ret = PTR_ERR(plat_dat->bsp_priv); in rk_gmac_probe() 1421 ret = rk_gmac_clk_init(plat_dat); in rk_gmac_probe() [all …]
|
D | stmmac.h | 226 struct plat_stmmacenet_data *plat_dat,
|
D | stmmac_main.c | 4215 struct plat_stmmacenet_data *plat_dat, in stmmac_dvr_probe() argument 4237 priv->plat = plat_dat; in stmmac_dvr_probe()
|
/Linux-v4.19/arch/mips/loongson32/common/ |
D | platform.c | 131 struct plat_stmmacenet_data *plat_dat = NULL; in ls1x_eth_mux_init() local 137 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init() 138 if (plat_dat->bus_id) { in ls1x_eth_mux_init() 141 switch (plat_dat->interface) { in ls1x_eth_mux_init() 150 plat_dat->interface); in ls1x_eth_mux_init() 155 switch (plat_dat->interface) { in ls1x_eth_mux_init() 164 plat_dat->interface); in ls1x_eth_mux_init() 171 plat_dat = dev_get_platdata(&pdev->dev); in ls1x_eth_mux_init() 174 if (plat_dat->interface == PHY_INTERFACE_MODE_RMII) in ls1x_eth_mux_init()
|
/Linux-v4.19/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_platform.c | 88 struct sxgbe_plat_data *plat_dat = NULL; in sxgbe_platform_probe() local 100 plat_dat = devm_kzalloc(&pdev->dev, in sxgbe_platform_probe() 103 if (!plat_dat) in sxgbe_platform_probe() 106 ret = sxgbe_probe_config_dt(pdev, plat_dat, &mac); in sxgbe_platform_probe() 113 priv = sxgbe_drv_probe(&(pdev->dev), plat_dat, addr); in sxgbe_platform_probe()
|
D | sxgbe_common.h | 515 struct sxgbe_plat_data *plat_dat,
|
D | sxgbe_main.c | 2057 struct sxgbe_plat_data *plat_dat, in sxgbe_drv_probe() argument 2077 priv->plat = plat_dat; in sxgbe_drv_probe()
|
/Linux-v4.19/drivers/input/joystick/ |
D | as5011.c | 161 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()
|
/Linux-v4.19/drivers/misc/ |
D | atmel-ssc.c | 197 const struct atmel_ssc_platform_data *plat_dat; in ssc_probe() local 207 plat_dat = atmel_ssc_get_driver_data(pdev); in ssc_probe() 208 if (!plat_dat) in ssc_probe() 210 ssc->pdata = (struct atmel_ssc_platform_data *)plat_dat; in ssc_probe()
|
/Linux-v4.19/drivers/dma/ |
D | at_hdmac.c | 1802 const struct at_dma_platform_data *plat_dat; in at_dma_probe() local 1814 plat_dat = at_dma_get_driver_data(pdev); in at_dma_probe() 1815 if (!plat_dat) in at_dma_probe() 1827 size += plat_dat->nr_channels * sizeof(struct at_dma_chan); in at_dma_probe() 1833 atdma->dma_common.cap_mask = plat_dat->cap_mask; in at_dma_probe() 1834 atdma->all_chan_mask = (1 << plat_dat->nr_channels) - 1; in at_dma_probe() 1891 for (i = 0; i < plat_dat->nr_channels; i++) { in at_dma_probe() 1955 plat_dat->nr_channels); in at_dma_probe()
|