• Home
  • Raw
  • Download

Lines Matching refs:msp

2626 mv643xx_eth_conf_mbus_windows(struct mv643xx_eth_shared_private *msp,  in mv643xx_eth_conf_mbus_windows()  argument
2629 void __iomem *base = msp->base; in mv643xx_eth_conf_mbus_windows()
2657 msp->win_protect = win_protect; in mv643xx_eth_conf_mbus_windows()
2660 static void infer_hw_params(struct mv643xx_eth_shared_private *msp) in infer_hw_params() argument
2667 writel(0x02000000, msp->base + 0x0400 + SDMA_CONFIG); in infer_hw_params()
2668 if (readl(msp->base + 0x0400 + SDMA_CONFIG) & 0x02000000) in infer_hw_params()
2669 msp->extended_rx_coal_limit = 1; in infer_hw_params()
2671 msp->extended_rx_coal_limit = 0; in infer_hw_params()
2678 writel(1, msp->base + 0x0400 + TX_BW_MTU_MOVED); in infer_hw_params()
2679 if (readl(msp->base + 0x0400 + TX_BW_MTU_MOVED) & 1) { in infer_hw_params()
2680 msp->tx_bw_control = TX_BW_CONTROL_NEW_LAYOUT; in infer_hw_params()
2682 writel(7, msp->base + 0x0400 + TX_BW_RATE); in infer_hw_params()
2683 if (readl(msp->base + 0x0400 + TX_BW_RATE) & 7) in infer_hw_params()
2684 msp->tx_bw_control = TX_BW_CONTROL_OLD_LAYOUT; in infer_hw_params()
2686 msp->tx_bw_control = TX_BW_CONTROL_ABSENT; in infer_hw_params()
2845 struct mv643xx_eth_shared_private *msp; in mv643xx_eth_shared_probe() local
2858 msp = devm_kzalloc(&pdev->dev, sizeof(*msp), GFP_KERNEL); in mv643xx_eth_shared_probe()
2859 if (msp == NULL) in mv643xx_eth_shared_probe()
2861 platform_set_drvdata(pdev, msp); in mv643xx_eth_shared_probe()
2863 msp->base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); in mv643xx_eth_shared_probe()
2864 if (msp->base == NULL) in mv643xx_eth_shared_probe()
2867 msp->clk = devm_clk_get(&pdev->dev, NULL); in mv643xx_eth_shared_probe()
2868 if (!IS_ERR(msp->clk)) in mv643xx_eth_shared_probe()
2869 clk_prepare_enable(msp->clk); in mv643xx_eth_shared_probe()
2876 mv643xx_eth_conf_mbus_windows(msp, dram); in mv643xx_eth_shared_probe()
2883 msp->tx_csum_limit = (pd != NULL && pd->tx_csum_limit) ? in mv643xx_eth_shared_probe()
2885 infer_hw_params(msp); in mv643xx_eth_shared_probe()
2890 if (!IS_ERR(msp->clk)) in mv643xx_eth_shared_probe()
2891 clk_disable_unprepare(msp->clk); in mv643xx_eth_shared_probe()
2897 struct mv643xx_eth_shared_private *msp = platform_get_drvdata(pdev); in mv643xx_eth_shared_remove() local
2900 if (!IS_ERR(msp->clk)) in mv643xx_eth_shared_remove()
2901 clk_disable_unprepare(msp->clk); in mv643xx_eth_shared_remove()