• Home
  • Raw
  • Download

Lines Matching refs:fpi

88 	const struct fs_platform_info *fpi = fep->fpi;  in fs_enet_rx_napi()  local
155 if (pkt_len <= fpi->rx_copybreak) { in fs_enet_rx_napi()
222 const struct fs_platform_info *fpi = fep->fpi; in fs_enet_rx_non_napi() local
287 if (pkt_len <= fpi->rx_copybreak) { in fs_enet_rx_non_napi()
444 const struct fs_platform_info *fpi; in fs_enet_interrupt() local
451 fpi = fep->fpi; in fs_enet_interrupt()
458 if (fpi->use_napi) in fs_enet_interrupt()
467 if (!fpi->use_napi) in fs_enet_interrupt()
799 iface = fep->fpi->use_rmii ? in fs_init_phy()
802 phydev = of_phy_connect(dev, fep->fpi->phy_node, &fs_adjust_link, 0, in fs_init_phy()
828 if (fep->fpi->use_napi) in fs_enet_open()
836 if (fep->fpi->use_napi) in fs_enet_open()
844 if (fep->fpi->use_napi) in fs_enet_open()
862 if (fep->fpi->use_napi) in fs_enet_close()
1011 struct fs_platform_info *fpi; in fs_enet_probe() local
1021 fpi = kzalloc(sizeof(*fpi), GFP_KERNEL); in fs_enet_probe()
1022 if (!fpi) in fs_enet_probe()
1030 fpi->cp_command = *data; in fs_enet_probe()
1033 fpi->rx_ring = 32; in fs_enet_probe()
1034 fpi->tx_ring = 32; in fs_enet_probe()
1035 fpi->rx_copybreak = 240; in fs_enet_probe()
1036 fpi->use_napi = 1; in fs_enet_probe()
1037 fpi->napi_weight = 17; in fs_enet_probe()
1038 fpi->phy_node = of_parse_phandle(ofdev->dev.of_node, "phy-handle", 0); in fs_enet_probe()
1039 if ((!fpi->phy_node) && (!of_get_property(ofdev->dev.of_node, "fixed-link", in fs_enet_probe()
1047 fpi->use_rmii = 1; in fs_enet_probe()
1052 (fpi->rx_ring + fpi->tx_ring); in fs_enet_probe()
1066 fep->fpi = fpi; in fs_enet_probe()
1074 fep->tx_skbuff = fep->rx_skbuff + fpi->rx_ring; in fs_enet_probe()
1088 fep->tx_bd_base = fep->rx_bd_base + fpi->rx_ring; in fs_enet_probe()
1090 fep->tx_ring = fpi->tx_ring; in fs_enet_probe()
1091 fep->rx_ring = fpi->rx_ring; in fs_enet_probe()
1095 if (fpi->use_napi) in fs_enet_probe()
1097 fpi->napi_weight); in fs_enet_probe()
1121 of_node_put(fpi->phy_node); in fs_enet_probe()
1123 kfree(fpi); in fs_enet_probe()
1137 of_node_put(fep->fpi->phy_node); in fs_enet_remove()