Searched refs:eth_tbl (Results 1 – 9 of 9) sorted by relevance
43 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()
236 if (!pf->eth_tbl || id >= pf->eth_tbl->count) { in nfp_port_init_phy_port()242 if (pf->eth_tbl->ports[id].override_changed) { in nfp_port_init_phy_port()245 pf->eth_tbl->ports[id].index); in nfp_port_init_phy_port()250 port->eth_port = &pf->eth_tbl->ports[id]; in nfp_port_init_phy_port()251 port->eth_id = pf->eth_tbl->ports[id].index; in nfp_port_init_phy_port()
386 if (!pf->eth_tbl) { in nfp_net_fw_find()400 for (i = 0; spc > 0 && i < pf->eth_tbl->count; i += j) { in nfp_net_fw_find()401 port = &pf->eth_tbl->ports[i]; in nfp_net_fw_find()403 while (i + j < pf->eth_tbl->count && in nfp_net_fw_find()477 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init_ports()478 if (!pf->eth_tbl) in nfp_nsp_init_ports()484 for (i = 0; i < pf->eth_tbl->count; i++) in nfp_nsp_init_ports()485 needs_reinit |= pf->eth_tbl->ports[i].override_changed; in nfp_nsp_init_ports()489 kfree(pf->eth_tbl); in nfp_nsp_init_ports()493 pf->eth_tbl = __nfp_eth_read_ports(pf->cpp, nsp); in nfp_nsp_init_ports()[all …]
93 nfp_net_find_port(struct nfp_eth_table *eth_tbl, unsigned int index) in nfp_net_find_port() argument97 for (i = 0; eth_tbl && i < eth_tbl->count; i++) in nfp_net_find_port()98 if (eth_tbl->ports[i].index == index) in nfp_net_find_port()99 return ð_tbl->ports[i]; in nfp_net_find_port()485 if (pf->eth_tbl) { in nfp_net_pci_map_mem()486 min_size = NFP_MAC_STATS_SIZE * (pf->eth_tbl->max_index + 1); in nfp_net_pci_map_mem()
46 if (!pf->eth_tbl) in nfp_app_nic_vnic_init_phy_port()
152 struct nfp_eth_table *eth_tbl; member
342 struct nfp_eth_table *eth_tbl = app->pf->eth_tbl; in nfp_flower_spawn_phy_reprs() local351 ctrl_skb = nfp_flower_cmsg_mac_repr_start(app, eth_tbl->count); in nfp_flower_spawn_phy_reprs()355 reprs = nfp_reprs_alloc(eth_tbl->max_index + 1); in nfp_flower_spawn_phy_reprs()361 for (i = 0; i < eth_tbl->count; i++) { in nfp_flower_spawn_phy_reprs()362 unsigned int phys_port = eth_tbl->ports[i].index; in nfp_flower_spawn_phy_reprs()408 eth_tbl->ports[i].nbi, in nfp_flower_spawn_phy_reprs()409 eth_tbl->ports[i].base, in nfp_flower_spawn_phy_reprs()525 if (!pf->eth_tbl) { in nfp_flower_init()
541 struct nfp_eth_table_port *eth_port = &pf->eth_tbl->ports[id]; in nfp_abm_vnic_set_mac()546 if (id > pf->eth_tbl->count) { in nfp_abm_vnic_set_mac()579 struct nfp_eth_table_port *eth_port = &app->pf->eth_tbl->ports[id]; in nfp_abm_vnic_alloc()684 if (!pf->eth_tbl) { in nfp_abm_init()688 if (pf->max_data_vnics != pf->eth_tbl->count) { in nfp_abm_init()690 pf->max_data_vnics, pf->eth_tbl->count); in nfp_abm_init()
96 if (!pf->eth_tbl) { in nfp_bpf_vnic_alloc()100 if (pf->max_data_vnics != pf->eth_tbl->count) { in nfp_bpf_vnic_alloc()102 pf->max_data_vnics, pf->eth_tbl->count); in nfp_bpf_vnic_alloc()