Home
last modified time | relevance | path

Searched refs:eth_port (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_devlink.c17 struct nfp_eth_table_port *eth_port; in nfp_devlink_fill_eth_port() local
19 eth_port = __nfp_port_get_eth_port(port); in nfp_devlink_fill_eth_port()
20 if (!eth_port) in nfp_devlink_fill_eth_port()
23 memcpy(copy, eth_port, sizeof(*eth_port)); in nfp_devlink_fill_eth_port()
69 struct nfp_eth_table_port eth_port; in nfp_devlink_port_split() local
79 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, &eth_port); in nfp_devlink_port_split()
84 if (eth_port.is_split || eth_port.port_lanes % count) { in nfp_devlink_port_split()
90 lanes = eth_port.port_lanes / count; in nfp_devlink_port_split()
91 if (eth_port.lanes == 10 && count == 2) in nfp_devlink_port_split()
94 ret = nfp_devlink_set_lanes(pf, eth_port.index, lanes); in nfp_devlink_port_split()
[all …]
Dnfp_port.c102 return port->eth_port; in __nfp_port_get_eth_port()
120 struct nfp_eth_table_port *eth_port; in nfp_port_get_phys_port_name() local
130 eth_port = __nfp_port_get_eth_port(port); in nfp_port_get_phys_port_name()
131 if (!eth_port) in nfp_port_get_phys_port_name()
134 if (!eth_port->is_split) in nfp_port_get_phys_port_name()
135 n = snprintf(name, len, "p%d", eth_port->label_port); in nfp_port_get_phys_port_name()
137 n = snprintf(name, len, "p%ds%d", eth_port->label_port, in nfp_port_get_phys_port_name()
138 eth_port->label_subport); in nfp_port_get_phys_port_name()
174 struct nfp_eth_table_port *eth_port; in nfp_port_configure() local
179 eth_port = __nfp_port_get_eth_port(port); in nfp_port_configure()
[all …]
Dnfp_net_ethtool.c218 nfp_net_set_fec_link_mode(struct nfp_eth_table_port *eth_port, in nfp_net_set_fec_link_mode() argument
224 if (!nfp_eth_can_support_fec(eth_port)) { in nfp_net_set_fec_link_mode()
229 modes = nfp_eth_supported_fec_modes(eth_port); in nfp_net_set_fec_link_mode()
262 struct nfp_eth_table_port *eth_port; in nfp_net_get_link_ksettings() local
274 eth_port = nfp_port_get_eth_port(port); in nfp_net_get_link_ksettings()
275 if (eth_port) { in nfp_net_get_link_ksettings()
276 cmd->base.autoneg = eth_port->aneg != NFP_ANEG_DISABLED ? in nfp_net_get_link_ksettings()
278 nfp_net_set_fec_link_mode(eth_port, cmd); in nfp_net_get_link_ksettings()
285 if (eth_port) { in nfp_net_get_link_ksettings()
286 cmd->base.port = eth_port->port_type; in nfp_net_get_link_ksettings()
[all …]
Dnfp_net_main.c50 struct nfp_eth_table_port *eth_port; in nfp_net_get_mac_addr() local
52 eth_port = __nfp_port_get_eth_port(port); in nfp_net_get_mac_addr()
53 if (!eth_port) { in nfp_net_get_mac_addr()
58 ether_addr_copy(netdev->dev_addr, eth_port->mac_addr); in nfp_net_get_mac_addr()
59 ether_addr_copy(netdev->perm_addr, eth_port->mac_addr); in nfp_net_get_mac_addr()
526 struct nfp_eth_table_port *eth_port; in nfp_net_eth_port_update() local
530 eth_port = nfp_net_find_port(eth_table, port->eth_id); in nfp_net_eth_port_update()
531 if (!eth_port) { in nfp_net_eth_port_update()
537 if (eth_port->override_changed) { in nfp_net_eth_port_update()
542 memcpy(port->eth_port, eth_port, sizeof(*eth_port)); in nfp_net_eth_port_update()
Dnfp_port.h77 struct nfp_eth_table_port *eth_port; member
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp.h199 static inline bool nfp_eth_can_support_fec(struct nfp_eth_table_port *eth_port) in nfp_eth_can_support_fec() argument
201 return !!eth_port->fec_modes_supported; in nfp_eth_can_support_fec()
205 nfp_eth_supported_fec_modes(struct nfp_eth_table_port *eth_port) in nfp_eth_supported_fec_modes() argument
207 return eth_port->fec_modes_supported; in nfp_eth_supported_fec_modes()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c260 struct nfp_eth_table_port *eth_port = &pf->eth_tbl->ports[id]; in nfp_abm_vnic_set_mac() local
273 eth_port->eth_index, abm->pf_id); in nfp_abm_vnic_set_mac()
314 struct nfp_eth_table_port *eth_port = &app->pf->eth_tbl->ports[id]; in nfp_abm_vnic_alloc() local
341 err = nfp_eth_set_configured(app->cpp, eth_port->index, true); in nfp_abm_vnic_alloc()