Lines Matching refs:fpi
87 const struct fs_platform_info *fpi = fep->fpi; in fs_enet_rx_napi() local
157 if (pkt_len <= fpi->rx_copybreak) { in fs_enet_rx_napi()
339 const struct fs_platform_info *fpi; in fs_enet_interrupt() local
346 fpi = fep->fpi; in fs_enet_interrupt()
734 iface = fep->fpi->use_rmii ? in fs_init_phy()
737 phydev = of_phy_connect(dev, fep->fpi->phy_node, &fs_adjust_link, 0, in fs_init_phy()
943 struct fs_platform_info *fpi; in fs_enet_probe() local
955 fpi = kzalloc(sizeof(*fpi), GFP_KERNEL); in fs_enet_probe()
956 if (!fpi) in fs_enet_probe()
964 fpi->cp_command = *data; in fs_enet_probe()
967 fpi->rx_ring = 32; in fs_enet_probe()
968 fpi->tx_ring = 64; in fs_enet_probe()
969 fpi->rx_copybreak = 240; in fs_enet_probe()
970 fpi->napi_weight = 17; in fs_enet_probe()
971 fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in fs_enet_probe()
972 if (!fpi->phy_node && of_phy_is_fixed_link(ofdev->dev.of_node)) { in fs_enet_probe()
980 fpi->phy_node = of_node_get(ofdev->dev.of_node); in fs_enet_probe()
987 fpi->use_rmii = 1; in fs_enet_probe()
1001 fpi->clk_per = clk; in fs_enet_probe()
1006 (fpi->rx_ring + fpi->tx_ring) + in fs_enet_probe()
1007 sizeof(char) * fpi->tx_ring; in fs_enet_probe()
1021 fep->fpi = fpi; in fs_enet_probe()
1029 fep->tx_skbuff = fep->rx_skbuff + fpi->rx_ring; in fs_enet_probe()
1030 fep->mapped_as_page = (char *)(fep->rx_skbuff + fpi->rx_ring + in fs_enet_probe()
1031 fpi->tx_ring); in fs_enet_probe()
1045 fep->tx_bd_base = fep->rx_bd_base + fpi->rx_ring; in fs_enet_probe()
1047 fep->tx_ring = fpi->tx_ring; in fs_enet_probe()
1048 fep->rx_ring = fpi->rx_ring; in fs_enet_probe()
1052 netif_napi_add(ndev, &fep->napi, fs_enet_rx_napi, fpi->napi_weight); in fs_enet_probe()
1078 of_node_put(fpi->phy_node); in fs_enet_probe()
1079 if (fpi->clk_per) in fs_enet_probe()
1080 clk_disable_unprepare(fpi->clk_per); in fs_enet_probe()
1082 kfree(fpi); in fs_enet_probe()
1096 of_node_put(fep->fpi->phy_node); in fs_enet_remove()
1097 if (fep->fpi->clk_per) in fs_enet_remove()
1098 clk_disable_unprepare(fep->fpi->clk_per); in fs_enet_remove()