Home
last modified time | relevance | path

Searched refs:eth_tbl (Results 1 – 9 of 9) sorted by relevance

/drivers/net/ethernet/netronome/nfp/
Dnfp_port.c176 if (!pf->eth_tbl || id >= pf->eth_tbl->count) { in nfp_port_init_phy_port()
182 if (pf->eth_tbl->ports[id].override_changed) { in nfp_port_init_phy_port()
185 pf->eth_tbl->ports[id].index); in nfp_port_init_phy_port()
190 port->eth_port = &pf->eth_tbl->ports[id]; in nfp_port_init_phy_port()
191 port->eth_id = pf->eth_tbl->ports[id].index; in nfp_port_init_phy_port()
Dnfp_main.c408 if (!pf->eth_tbl) { in nfp_net_fw_find()
424 for (i = 0; spc > 0 && i < pf->eth_tbl->count; i += j) { in nfp_net_fw_find()
425 port = &pf->eth_tbl->ports[i]; in nfp_net_fw_find()
427 while (i + j < pf->eth_tbl->count && in nfp_net_fw_find()
593 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init_ports()
594 if (!pf->eth_tbl) in nfp_nsp_init_ports()
600 for (i = 0; i < pf->eth_tbl->count; i++) in nfp_nsp_init_ports()
601 needs_reinit |= pf->eth_tbl->ports[i].override_changed; in nfp_nsp_init_ports()
605 kfree(pf->eth_tbl); in nfp_nsp_init_ports()
609 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init_ports()
[all …]
Dnfp_net_main.c64 nfp_net_find_port(struct nfp_eth_table *eth_tbl, unsigned int index) in nfp_net_find_port() argument
68 for (i = 0; eth_tbl && i < eth_tbl->count; i++) in nfp_net_find_port()
69 if (eth_tbl->ports[i].index == index) in nfp_net_find_port()
70 return &eth_tbl->ports[i]; in nfp_net_find_port()
460 if (pf->eth_tbl) { in nfp_net_pci_map_mem()
461 min_size = NFP_MAC_STATS_SIZE * (pf->eth_tbl->max_index + 1); in nfp_net_pci_map_mem()
Dnfp_app_nic.c16 if (!pf->eth_tbl) in nfp_app_nic_vnic_init_phy_port()
Dnfp_main.h127 struct nfp_eth_table *eth_tbl; member
/drivers/net/ethernet/netronome/nfp/nic/
Dmain.c13 if (pf->eth_tbl && pf->max_data_vnics != pf->eth_tbl->count) { in nfp_nic_init()
15 pf->max_data_vnics, pf->eth_tbl->count); in nfp_nic_init()
/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()
266 if (id > pf->eth_tbl->count) { 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()
450 if (!pf->eth_tbl) { in nfp_abm_init()
454 if (pf->max_data_vnics != pf->eth_tbl->count) { in nfp_abm_init()
456 pf->max_data_vnics, pf->eth_tbl->count); in nfp_abm_init()
/drivers/net/ethernet/netronome/nfp/flower/
Dmain.c487 struct nfp_eth_table *eth_tbl = app->pf->eth_tbl; in nfp_flower_spawn_phy_reprs() local
496 ctrl_skb = nfp_flower_cmsg_mac_repr_start(app, eth_tbl->count); in nfp_flower_spawn_phy_reprs()
500 reprs = nfp_reprs_alloc(eth_tbl->max_index + 1); in nfp_flower_spawn_phy_reprs()
506 for (i = 0; i < eth_tbl->count; i++) { in nfp_flower_spawn_phy_reprs()
507 unsigned int phys_port = eth_tbl->ports[i].index; in nfp_flower_spawn_phy_reprs()
558 eth_tbl->ports[i].nbi, in nfp_flower_spawn_phy_reprs()
559 eth_tbl->ports[i].base, in nfp_flower_spawn_phy_reprs()
746 if (!pf->eth_tbl) { in nfp_flower_init()
/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c69 if (!pf->eth_tbl) { in nfp_bpf_vnic_alloc()
73 if (pf->max_data_vnics != pf->eth_tbl->count) { in nfp_bpf_vnic_alloc()
75 pf->max_data_vnics, pf->eth_tbl->count); in nfp_bpf_vnic_alloc()