Lines Matching refs:fpi
87 const struct fs_platform_info *fpi = fep->fpi;
154 if (pkt_len <= fpi->rx_copybreak) {
221 const struct fs_platform_info *fpi = fep->fpi;
286 if (pkt_len <= fpi->rx_copybreak) {
443 const struct fs_platform_info *fpi;
450 fpi = fep->fpi;
457 if (fpi->use_napi)
466 if (!fpi->use_napi)
795 phydev = of_phy_connect(dev, fep->fpi->phy_node, &fs_adjust_link, 0,
821 if (fep->fpi->use_napi)
829 if (fep->fpi->use_napi)
837 if (fep->fpi->use_napi)
855 if (fep->fpi->use_napi)
1005 struct fs_platform_info *fpi;
1010 fpi = kzalloc(sizeof(*fpi), GFP_KERNEL);
1011 if (!fpi)
1019 fpi->cp_command = *data;
1022 fpi->rx_ring = 32;
1023 fpi->tx_ring = 32;
1024 fpi->rx_copybreak = 240;
1025 fpi->use_napi = 1;
1026 fpi->napi_weight = 17;
1027 fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0);
1028 if ((!fpi->phy_node) && (!of_get_property(ofdev->dev.of_node, "fixed-link",
1034 (fpi->rx_ring + fpi->tx_ring);
1048 fep->fpi = fpi;
1056 fep->tx_skbuff = fep->rx_skbuff + fpi->rx_ring;
1070 fep->tx_bd_base = fep->rx_bd_base + fpi->rx_ring;
1072 fep->tx_ring = fpi->tx_ring;
1073 fep->rx_ring = fpi->rx_ring;
1077 if (fpi->use_napi)
1079 fpi->napi_weight);
1102 of_node_put(fpi->phy_node);
1104 kfree(fpi);
1118 of_node_put(fep->fpi->phy_node);