Home
last modified time | relevance | path

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

/drivers/net/ethernet/netronome/nfp/
Dnfp_port.c212 if (!pf->eth_tbl || id >= pf->eth_tbl->count) { in nfp_port_init_phy_port()
218 if (pf->eth_tbl->ports[id].override_changed) { in nfp_port_init_phy_port()
221 pf->eth_tbl->ports[id].index); in nfp_port_init_phy_port()
226 port->eth_port = &pf->eth_tbl->ports[id]; in nfp_port_init_phy_port()
227 port->eth_id = pf->eth_tbl->ports[id].index; in nfp_port_init_phy_port()
Dnfp_main.c265 if (!pf->eth_tbl) { in nfp_net_fw_find()
279 for (i = 0; spc > 0 && i < pf->eth_tbl->count; i += j) { in nfp_net_fw_find()
280 port = &pf->eth_tbl->ports[i]; in nfp_net_fw_find()
282 while (i + j < pf->eth_tbl->count && in nfp_net_fw_find()
369 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init()
378 kfree(pf->eth_tbl); in nfp_nsp_init()
520 kfree(pf->eth_tbl); in nfp_pci_probe()
567 kfree(pf->eth_tbl); in nfp_pci_remove()
Dnfp_net_main.c90 nfp_net_find_port(struct nfp_eth_table *eth_tbl, unsigned int index) in nfp_net_find_port() argument
94 for (i = 0; eth_tbl && i < eth_tbl->count; i++) in nfp_net_find_port()
95 if (eth_tbl->ports[i].index == index) in nfp_net_find_port()
96 return &eth_tbl->ports[i]; in nfp_net_find_port()
512 min_size = NFP_MAC_STATS_SIZE * (pf->eth_tbl->max_index + 1); in nfp_net_pci_map_mem()
Dnfp_app_nic.c47 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/flower/
Dmain.c226 struct nfp_eth_table *eth_tbl = app->pf->eth_tbl; in nfp_flower_spawn_phy_reprs() local
232 ctrl_skb = nfp_flower_cmsg_mac_repr_start(app, eth_tbl->count); in nfp_flower_spawn_phy_reprs()
236 reprs = nfp_reprs_alloc(eth_tbl->max_index + 1); in nfp_flower_spawn_phy_reprs()
242 for (i = 0; i < eth_tbl->count; i++) { in nfp_flower_spawn_phy_reprs()
243 unsigned int phys_port = eth_tbl->ports[i].index; in nfp_flower_spawn_phy_reprs()
277 eth_tbl->ports[i].nbi, in nfp_flower_spawn_phy_reprs()
278 eth_tbl->ports[i].base, in nfp_flower_spawn_phy_reprs()
382 if (!pf->eth_tbl) { in nfp_flower_init()
/drivers/net/ethernet/netronome/nfp/nic/
Dmain.c43 if (pf->eth_tbl && pf->max_data_vnics != pf->eth_tbl->count) { in nfp_nic_init()
45 pf->max_data_vnics, pf->eth_tbl->count); in nfp_nic_init()