Lines Matching refs:pd

2774 	struct mv643xx_eth_shared_platform_data *pd;  in mv643xx_eth_shared_of_probe()  local
2782 pd = devm_kzalloc(&pdev->dev, sizeof(*pd), GFP_KERNEL); in mv643xx_eth_shared_of_probe()
2783 if (!pd) in mv643xx_eth_shared_of_probe()
2785 pdev->dev.platform_data = pd; in mv643xx_eth_shared_of_probe()
2787 mv643xx_eth_property(np, "tx-checksum-limit", pd->tx_csum_limit); in mv643xx_eth_shared_of_probe()
2820 struct mv643xx_eth_shared_platform_data *pd; in mv643xx_eth_shared_probe() local
2857 pd = dev_get_platdata(&pdev->dev); in mv643xx_eth_shared_probe()
2859 msp->tx_csum_limit = (pd != NULL && pd->tx_csum_limit) ? in mv643xx_eth_shared_probe()
2860 pd->tx_csum_limit : 9 * 1024; in mv643xx_eth_shared_probe()
2906 struct mv643xx_eth_platform_data *pd) in set_params() argument
2911 if (is_valid_ether_addr(pd->mac_addr)) in set_params()
2912 memcpy(dev->dev_addr, pd->mac_addr, ETH_ALEN); in set_params()
2917 if (pd->rx_queue_size) in set_params()
2918 mp->rx_ring_size = pd->rx_queue_size; in set_params()
2919 mp->rx_desc_sram_addr = pd->rx_sram_addr; in set_params()
2920 mp->rx_desc_sram_size = pd->rx_sram_size; in set_params()
2922 mp->rxq_count = pd->rx_queue_count ? : 1; in set_params()
2925 if (pd->tx_queue_size) in set_params()
2926 tx_ring_size = pd->tx_queue_size; in set_params()
2934 mp->tx_desc_sram_addr = pd->tx_sram_addr; in set_params()
2935 mp->tx_desc_sram_size = pd->tx_sram_size; in set_params()
2937 mp->txq_count = pd->tx_queue_count ? : 1; in set_params()
3041 struct mv643xx_eth_platform_data *pd; in mv643xx_eth_probe() local
3047 pd = dev_get_platdata(&pdev->dev); in mv643xx_eth_probe()
3048 if (pd == NULL) { in mv643xx_eth_probe()
3053 if (pd->shared == NULL) { in mv643xx_eth_probe()
3065 mp->shared = platform_get_drvdata(pd->shared); in mv643xx_eth_probe()
3066 mp->base = mp->shared->base + 0x0400 + (pd->port_number << 10); in mv643xx_eth_probe()
3067 mp->port_num = pd->port_number; in mv643xx_eth_probe()
3093 set_params(mp, pd); in mv643xx_eth_probe()
3098 if (pd->phy_node) { in mv643xx_eth_probe()
3099 mp->phy = of_phy_connect(mp->dev, pd->phy_node, in mv643xx_eth_probe()
3106 } else if (pd->phy_addr != MV643XX_ETH_PHY_NONE) { in mv643xx_eth_probe()
3107 mp->phy = phy_scan(mp, pd->phy_addr); in mv643xx_eth_probe()
3112 phy_init(mp, pd->speed, pd->duplex); in mv643xx_eth_probe()
3123 init_pscr(mp, pd->speed, pd->duplex); in mv643xx_eth_probe()