Lines Matching refs:pd
2803 struct mv643xx_eth_shared_platform_data *pd; in mv643xx_eth_shared_of_probe() local
2811 pd = devm_kzalloc(&pdev->dev, sizeof(*pd), GFP_KERNEL); in mv643xx_eth_shared_of_probe()
2812 if (!pd) in mv643xx_eth_shared_of_probe()
2814 pdev->dev.platform_data = pd; in mv643xx_eth_shared_of_probe()
2816 mv643xx_eth_property(np, "tx-checksum-limit", pd->tx_csum_limit); in mv643xx_eth_shared_of_probe()
2851 struct mv643xx_eth_shared_platform_data *pd; in mv643xx_eth_shared_probe() local
2888 pd = dev_get_platdata(&pdev->dev); in mv643xx_eth_shared_probe()
2890 msp->tx_csum_limit = (pd != NULL && pd->tx_csum_limit) ? in mv643xx_eth_shared_probe()
2891 pd->tx_csum_limit : 9 * 1024; in mv643xx_eth_shared_probe()
2937 struct mv643xx_eth_platform_data *pd) in set_params() argument
2942 if (is_valid_ether_addr(pd->mac_addr)) in set_params()
2943 memcpy(dev->dev_addr, pd->mac_addr, ETH_ALEN); in set_params()
2948 if (pd->rx_queue_size) in set_params()
2949 mp->rx_ring_size = pd->rx_queue_size; in set_params()
2950 mp->rx_desc_sram_addr = pd->rx_sram_addr; in set_params()
2951 mp->rx_desc_sram_size = pd->rx_sram_size; in set_params()
2953 mp->rxq_count = pd->rx_queue_count ? : 1; in set_params()
2956 if (pd->tx_queue_size) in set_params()
2957 tx_ring_size = pd->tx_queue_size; in set_params()
2965 mp->tx_desc_sram_addr = pd->tx_sram_addr; in set_params()
2966 mp->tx_desc_sram_size = pd->tx_sram_size; in set_params()
2968 mp->txq_count = pd->tx_queue_count ? : 1; in set_params()
3072 struct mv643xx_eth_platform_data *pd; in mv643xx_eth_probe() local
3078 pd = dev_get_platdata(&pdev->dev); in mv643xx_eth_probe()
3079 if (pd == NULL) { in mv643xx_eth_probe()
3084 if (pd->shared == NULL) { in mv643xx_eth_probe()
3096 mp->shared = platform_get_drvdata(pd->shared); in mv643xx_eth_probe()
3097 mp->base = mp->shared->base + 0x0400 + (pd->port_number << 10); in mv643xx_eth_probe()
3098 mp->port_num = pd->port_number; in mv643xx_eth_probe()
3124 set_params(mp, pd); in mv643xx_eth_probe()
3129 if (pd->phy_node) { in mv643xx_eth_probe()
3130 mp->phy = of_phy_connect(mp->dev, pd->phy_node, in mv643xx_eth_probe()
3137 } else if (pd->phy_addr != MV643XX_ETH_PHY_NONE) { in mv643xx_eth_probe()
3138 mp->phy = phy_scan(mp, pd->phy_addr); in mv643xx_eth_probe()
3143 phy_init(mp, pd->speed, pd->duplex); in mv643xx_eth_probe()
3154 init_pscr(mp, pd->speed, pd->duplex); in mv643xx_eth_probe()