Searched refs:eth_port (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/ |
D | nfp_devlink.c | 17 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() 68 struct nfp_eth_table_port eth_port; in nfp_devlink_port_split() local 73 ret = nfp_devlink_fill_eth_port_from_id(pf, port, ð_port); in nfp_devlink_port_split() 78 if (eth_port.port_lanes % count) in nfp_devlink_port_split() 82 lanes = eth_port.port_lanes / count; in nfp_devlink_port_split() 83 if (eth_port.lanes == 10 && count == 2) in nfp_devlink_port_split() 86 return nfp_devlink_set_lanes(pf, eth_port.index, lanes); in nfp_devlink_port_split() [all …]
|
D | nfp_port.c | 85 return port->eth_port; in __nfp_port_get_eth_port() 103 struct nfp_eth_table_port *eth_port; in nfp_port_get_phys_port_name() local 113 eth_port = __nfp_port_get_eth_port(port); in nfp_port_get_phys_port_name() 114 if (!eth_port) in nfp_port_get_phys_port_name() 117 if (!eth_port->is_split) in nfp_port_get_phys_port_name() 118 n = snprintf(name, len, "p%d", eth_port->label_port); in nfp_port_get_phys_port_name() 120 n = snprintf(name, len, "p%ds%d", eth_port->label_port, in nfp_port_get_phys_port_name() 121 eth_port->label_subport); in nfp_port_get_phys_port_name() 157 struct nfp_eth_table_port *eth_port; in nfp_port_configure() local 162 eth_port = __nfp_port_get_eth_port(port); in nfp_port_configure() [all …]
|
D | nfp_net_ethtool.c | 234 struct nfp_eth_table_port *eth_port; in nfp_net_nway_reset() local 239 eth_port = nfp_port_get_eth_port(port); in nfp_net_nway_reset() 240 if (!eth_port) in nfp_net_nway_reset() 246 err = nfp_eth_set_configured(port->app->cpp, eth_port->index, false); in nfp_net_nway_reset() 252 err = nfp_eth_set_configured(port->app->cpp, eth_port->index, true); in nfp_net_nway_reset() 273 nfp_net_set_fec_link_mode(struct nfp_eth_table_port *eth_port, in nfp_net_set_fec_link_mode() argument 279 if (!nfp_eth_can_support_fec(eth_port)) { in nfp_net_set_fec_link_mode() 284 modes = nfp_eth_supported_fec_modes(eth_port); in nfp_net_set_fec_link_mode() 436 struct nfp_eth_table_port *eth_port, in nfp_add_media_link_mode() argument 443 if (eth_port->link_modes_supp[0] & BIT_ULL(i)) { in nfp_add_media_link_mode() [all …]
|
D | nfp_net_main.c | 50 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 eth_hw_addr_set(netdev, 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() 563 nn_writew(nn, NFP_NET_CFG_STS_NSP_LINK_RATE, nfp_net_speed2lr(port->eth_port->speed)); in nfp_net_notify_port_speed() 570 struct nfp_eth_table_port *eth_port; in nfp_net_eth_port_update() local 574 eth_port = nfp_net_find_port(eth_table, port->eth_id); in nfp_net_eth_port_update() 575 if (!eth_port) { in nfp_net_eth_port_update() 581 if (eth_port->override_changed) { in nfp_net_eth_port_update() [all …]
|
D | nfp_port.h | 90 struct nfp_eth_table_port *eth_port; member
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp.h | 259 static inline bool nfp_eth_can_support_fec(struct nfp_eth_table_port *eth_port) in nfp_eth_can_support_fec() argument 261 return !!eth_port->fec_modes_supported; in nfp_eth_can_support_fec() 265 nfp_eth_supported_fec_modes(struct nfp_eth_table_port *eth_port) in nfp_eth_supported_fec_modes() argument 267 return eth_port->fec_modes_supported; in nfp_eth_supported_fec_modes()
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/abm/ |
D | main.c | 260 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() 315 struct nfp_eth_table_port *eth_port = &app->pf->eth_tbl->ports[id]; in nfp_abm_vnic_alloc() local 344 err = nfp_eth_set_configured(app->cpp, eth_port->index, true); in nfp_abm_vnic_alloc()
|