Lines Matching refs:plat_dat
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()
84 plat_dat->axi->axi_rd_osr_lmt--; in dwc_eth_dwmac_config_dt()
93 plat_dat->axi->axi_blen[a_index] = 4; break; in dwc_eth_dwmac_config_dt()
95 plat_dat->axi->axi_blen[a_index] = 8; break; in dwc_eth_dwmac_config_dt()
97 plat_dat->axi->axi_blen[a_index] = 16; break; in dwc_eth_dwmac_config_dt()
99 plat_dat->axi->axi_blen[a_index] = 32; break; in dwc_eth_dwmac_config_dt()
101 plat_dat->axi->axi_blen[a_index] = 64; break; in dwc_eth_dwmac_config_dt()
103 plat_dat->axi->axi_blen[a_index] = 128; break; in dwc_eth_dwmac_config_dt()
105 plat_dat->axi->axi_blen[a_index] = 256; break; in dwc_eth_dwmac_config_dt()
114 plat_dat->has_gmac4 = 1; in dwc_eth_dwmac_config_dt()
115 plat_dat->dma_cfg->aal = 1; in dwc_eth_dwmac_config_dt()
116 plat_dat->tso_en = 1; in dwc_eth_dwmac_config_dt()
117 plat_dat->pmt = 1; in dwc_eth_dwmac_config_dt()
123 struct plat_stmmacenet_data *plat_dat, in dwc_qos_probe() argument
128 plat_dat->stmmac_clk = devm_clk_get(&pdev->dev, "apb_pclk"); in dwc_qos_probe()
129 if (IS_ERR(plat_dat->stmmac_clk)) { in dwc_qos_probe()
131 return ERR_CAST(plat_dat->stmmac_clk); in dwc_qos_probe()
134 err = clk_prepare_enable(plat_dat->stmmac_clk); in dwc_qos_probe()
141 plat_dat->pclk = devm_clk_get(&pdev->dev, "phy_ref_clk"); in dwc_qos_probe()
142 if (IS_ERR(plat_dat->pclk)) { in dwc_qos_probe()
144 err = PTR_ERR(plat_dat->pclk); in dwc_qos_probe()
148 err = clk_prepare_enable(plat_dat->pclk); in dwc_qos_probe()
158 clk_disable_unprepare(plat_dat->stmmac_clk); in dwc_qos_probe()
425 struct plat_stmmacenet_data *plat_dat; in dwc_eth_dwmac_probe() local
447 plat_dat = stmmac_probe_config_dt(pdev, &stmmac_res.mac); in dwc_eth_dwmac_probe()
448 if (IS_ERR(plat_dat)) in dwc_eth_dwmac_probe()
449 return PTR_ERR(plat_dat); in dwc_eth_dwmac_probe()
451 priv = data->probe(pdev, plat_dat, &stmmac_res); in dwc_eth_dwmac_probe()
462 ret = dwc_eth_dwmac_config_dt(pdev, plat_dat); in dwc_eth_dwmac_probe()
466 ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); in dwc_eth_dwmac_probe()
475 stmmac_remove_config_dt(pdev, plat_dat); in dwc_eth_dwmac_probe()