Home
last modified time | relevance | path

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

/Linux-v5.10/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()
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_port.c193 if (!pf->eth_tbl || id >= pf->eth_tbl->count) { in nfp_port_init_phy_port()
199 if (pf->eth_tbl->ports[id].override_changed) { in nfp_port_init_phy_port()
202 pf->eth_tbl->ports[id].index); in nfp_port_init_phy_port()
207 port->eth_port = &pf->eth_tbl->ports[id]; in nfp_port_init_phy_port()
208 port->eth_id = pf->eth_tbl->ports[id].index; in nfp_port_init_phy_port()
Dnfp_main.c396 if (!pf->eth_tbl) { in nfp_net_fw_find()
410 for (i = 0; spc > 0 && i < pf->eth_tbl->count; i += j) { in nfp_net_fw_find()
411 port = &pf->eth_tbl->ports[i]; in nfp_net_fw_find()
413 while (i + j < pf->eth_tbl->count && in nfp_net_fw_find()
579 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init_ports()
580 if (!pf->eth_tbl) in nfp_nsp_init_ports()
586 for (i = 0; i < pf->eth_tbl->count; i++) in nfp_nsp_init_ports()
587 needs_reinit |= pf->eth_tbl->ports[i].override_changed; in nfp_nsp_init_ports()
591 kfree(pf->eth_tbl); in nfp_nsp_init_ports()
595 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init_ports()
[all …]
Dnfp_net_main.c63 nfp_net_find_port(struct nfp_eth_table *eth_tbl, unsigned int index) in nfp_net_find_port() argument
67 for (i = 0; eth_tbl && i < eth_tbl->count; i++) in nfp_net_find_port()
68 if (eth_tbl->ports[i].index == index) in nfp_net_find_port()
69 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.h124 struct nfp_eth_table *eth_tbl; member
/Linux-v5.10/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()
/Linux-v5.10/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()
/Linux-v5.10/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()