eth_port 260 drivers/net/ethernet/netronome/nfp/abm/main.c struct nfp_eth_table_port *eth_port = &pf->eth_tbl->ports[id]; eth_port 273 drivers/net/ethernet/netronome/nfp/abm/main.c eth_port->eth_index, abm->pf_id); eth_port 315 drivers/net/ethernet/netronome/nfp/abm/main.c struct nfp_eth_table_port *eth_port = &app->pf->eth_tbl->ports[id]; eth_port 344 drivers/net/ethernet/netronome/nfp/abm/main.c err = nfp_eth_set_configured(app->cpp, eth_port->index, true); eth_port 17 drivers/net/ethernet/netronome/nfp/nfp_devlink.c struct nfp_eth_table_port *eth_port; eth_port 19 drivers/net/ethernet/netronome/nfp/nfp_devlink.c eth_port = __nfp_port_get_eth_port(port); eth_port 20 drivers/net/ethernet/netronome/nfp/nfp_devlink.c if (!eth_port) eth_port 23 drivers/net/ethernet/netronome/nfp/nfp_devlink.c memcpy(copy, eth_port, sizeof(*eth_port)); eth_port 69 drivers/net/ethernet/netronome/nfp/nfp_devlink.c struct nfp_eth_table_port eth_port; eth_port 79 drivers/net/ethernet/netronome/nfp/nfp_devlink.c ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, ð_port); eth_port 84 drivers/net/ethernet/netronome/nfp/nfp_devlink.c if (eth_port.is_split || eth_port.port_lanes % count) { eth_port 90 drivers/net/ethernet/netronome/nfp/nfp_devlink.c lanes = eth_port.port_lanes / count; eth_port 91 drivers/net/ethernet/netronome/nfp/nfp_devlink.c if (eth_port.lanes == 10 && count == 2) eth_port 94 drivers/net/ethernet/netronome/nfp/nfp_devlink.c ret = nfp_devlink_set_lanes(pf, eth_port.index, lanes); eth_port 106 drivers/net/ethernet/netronome/nfp/nfp_devlink.c struct nfp_eth_table_port eth_port; eth_port 113 drivers/net/ethernet/netronome/nfp/nfp_devlink.c ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, ð_port); eth_port 118 drivers/net/ethernet/netronome/nfp/nfp_devlink.c if (!eth_port.is_split) { eth_port 124 drivers/net/ethernet/netronome/nfp/nfp_devlink.c lanes = eth_port.port_lanes; eth_port 125 drivers/net/ethernet/netronome/nfp/nfp_devlink.c if (eth_port.port_lanes == 8) eth_port 128 drivers/net/ethernet/netronome/nfp/nfp_devlink.c ret = nfp_devlink_set_lanes(pf, eth_port.index, lanes); eth_port 356 drivers/net/ethernet/netronome/nfp/nfp_devlink.c struct nfp_eth_table_port eth_port; eth_port 363 drivers/net/ethernet/netronome/nfp/nfp_devlink.c ret = nfp_devlink_fill_eth_port(port, ð_port); eth_port 370 drivers/net/ethernet/netronome/nfp/nfp_devlink.c eth_port.label_port, eth_port.is_split, eth_port 371 drivers/net/ethernet/netronome/nfp/nfp_devlink.c eth_port.label_subport, serial, serial_len); eth_port 218 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nfp_net_set_fec_link_mode(struct nfp_eth_table_port *eth_port, eth_port 224 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!nfp_eth_can_support_fec(eth_port)) { eth_port 229 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c modes = nfp_eth_supported_fec_modes(eth_port); eth_port 262 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c struct nfp_eth_table_port *eth_port; eth_port 274 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c eth_port = nfp_port_get_eth_port(port); eth_port 275 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (eth_port) { eth_port 276 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c cmd->base.autoneg = eth_port->aneg != NFP_ANEG_DISABLED ? eth_port 278 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nfp_net_set_fec_link_mode(eth_port, cmd); eth_port 285 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (eth_port) { eth_port 286 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c cmd->base.port = eth_port->port_type; eth_port 287 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c cmd->base.speed = eth_port->speed; eth_port 316 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c struct nfp_eth_table_port *eth_port; eth_port 322 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c eth_port = __nfp_port_get_eth_port(port); eth_port 323 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!eth_port) eth_port 331 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c nsp = nfp_eth_config_start(port->app->cpp, eth_port->index); eth_port 340 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c u32 speed = cmd->base.speed / eth_port->lanes; eth_port 731 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c struct nfp_eth_table_port *eth_port; eth_port 738 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c eth_port = nfp_port_get_eth_port(port); eth_port 739 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!eth_port) eth_port 742 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!nfp_eth_can_support_fec(eth_port)) eth_port 745 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c param->fec = nfp_port_fec_nsp_to_ethtool(eth_port->fec_modes_supported); eth_port 746 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c param->active_fec = nfp_port_fec_nsp_to_ethtool(eth_port->fec); eth_port 755 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c struct nfp_eth_table_port *eth_port; eth_port 760 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c eth_port = nfp_port_get_eth_port(port); eth_port 761 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!eth_port) eth_port 764 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!nfp_eth_can_support_fec(eth_port)) eth_port 771 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c err = nfp_eth_set_fec(port->app->cpp, eth_port->index, fec); eth_port 1120 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c struct nfp_eth_table_port *eth_port; eth_port 1128 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c eth_port = nfp_port_get_eth_port(port); eth_port 1129 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!eth_port) eth_port 1145 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c switch (eth_port->interface) { eth_port 1148 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c err = nfp_nsp_read_module_eeprom(nsp, eth_port->eth_index, eth_port 1163 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c err = nfp_nsp_read_module_eeprom(nsp, eth_port->eth_index, eth_port 1183 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c eth_port->interface); eth_port 1196 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c struct nfp_eth_table_port *eth_port; eth_port 1202 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c eth_port = __nfp_port_get_eth_port(port); eth_port 1203 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!eth_port) eth_port 1219 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c err = nfp_nsp_read_module_eeprom(nsp, eth_port->eth_index, eth_port 50 drivers/net/ethernet/netronome/nfp/nfp_net_main.c struct nfp_eth_table_port *eth_port; eth_port 52 drivers/net/ethernet/netronome/nfp/nfp_net_main.c eth_port = __nfp_port_get_eth_port(port); eth_port 53 drivers/net/ethernet/netronome/nfp/nfp_net_main.c if (!eth_port) { eth_port 58 drivers/net/ethernet/netronome/nfp/nfp_net_main.c ether_addr_copy(netdev->dev_addr, eth_port->mac_addr); eth_port 59 drivers/net/ethernet/netronome/nfp/nfp_net_main.c ether_addr_copy(netdev->perm_addr, eth_port->mac_addr); eth_port 526 drivers/net/ethernet/netronome/nfp/nfp_net_main.c struct nfp_eth_table_port *eth_port; eth_port 530 drivers/net/ethernet/netronome/nfp/nfp_net_main.c eth_port = nfp_net_find_port(eth_table, port->eth_id); eth_port 531 drivers/net/ethernet/netronome/nfp/nfp_net_main.c if (!eth_port) { eth_port 537 drivers/net/ethernet/netronome/nfp/nfp_net_main.c if (eth_port->override_changed) { eth_port 542 drivers/net/ethernet/netronome/nfp/nfp_net_main.c memcpy(port->eth_port, eth_port, sizeof(*eth_port)); eth_port 102 drivers/net/ethernet/netronome/nfp/nfp_port.c return port->eth_port; eth_port 120 drivers/net/ethernet/netronome/nfp/nfp_port.c struct nfp_eth_table_port *eth_port; eth_port 130 drivers/net/ethernet/netronome/nfp/nfp_port.c eth_port = __nfp_port_get_eth_port(port); eth_port 131 drivers/net/ethernet/netronome/nfp/nfp_port.c if (!eth_port) eth_port 134 drivers/net/ethernet/netronome/nfp/nfp_port.c if (!eth_port->is_split) eth_port 135 drivers/net/ethernet/netronome/nfp/nfp_port.c n = snprintf(name, len, "p%d", eth_port->label_port); eth_port 137 drivers/net/ethernet/netronome/nfp/nfp_port.c n = snprintf(name, len, "p%ds%d", eth_port->label_port, eth_port 138 drivers/net/ethernet/netronome/nfp/nfp_port.c eth_port->label_subport); eth_port 174 drivers/net/ethernet/netronome/nfp/nfp_port.c struct nfp_eth_table_port *eth_port; eth_port 179 drivers/net/ethernet/netronome/nfp/nfp_port.c eth_port = __nfp_port_get_eth_port(port); eth_port 180 drivers/net/ethernet/netronome/nfp/nfp_port.c if (!eth_port) eth_port 185 drivers/net/ethernet/netronome/nfp/nfp_port.c err = nfp_eth_set_configured(port->app->cpp, eth_port->index, configed); eth_port 207 drivers/net/ethernet/netronome/nfp/nfp_port.c port->eth_port = &pf->eth_tbl->ports[id]; eth_port 77 drivers/net/ethernet/netronome/nfp/nfp_port.h struct nfp_eth_table_port *eth_port; eth_port 199 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h static inline bool nfp_eth_can_support_fec(struct nfp_eth_table_port *eth_port) eth_port 201 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h return !!eth_port->fec_modes_supported; eth_port 205 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h nfp_eth_supported_fec_modes(struct nfp_eth_table_port *eth_port) eth_port 207 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h return eth_port->fec_modes_supported;