Lines Matching refs:nic_data

91 	struct efx_ef10_nic_data *nic_data = efx->nic_data;  in efx_ef10_get_vf_index()  local
102 nic_data->vf_index = MCDI_DWORD(outbuf, GET_FUNCTION_INFO_OUT_VF); in efx_ef10_get_vf_index()
110 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_init_datapath_caps() local
126 nic_data->datapath_caps = in efx_ef10_init_datapath_caps()
130 nic_data->datapath_caps2 = MCDI_DWORD(outbuf, in efx_ef10_init_datapath_caps()
132 nic_data->piobuf_size = MCDI_WORD(outbuf, in efx_ef10_init_datapath_caps()
135 nic_data->datapath_caps2 = 0; in efx_ef10_init_datapath_caps()
136 nic_data->piobuf_size = ER_DZ_TX_PIOBUF_SIZE; in efx_ef10_init_datapath_caps()
141 nic_data->rx_dpcpu_fw_id = in efx_ef10_init_datapath_caps()
143 nic_data->tx_dpcpu_fw_id = in efx_ef10_init_datapath_caps()
146 if (!(nic_data->datapath_caps & in efx_ef10_init_datapath_caps()
187 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_read_licensed_features() local
198 nic_data->licensed_features = MCDI_QWORD(outbuf, in efx_ef10_read_licensed_features()
217 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_get_timer_workarounds() local
222 nic_data->workaround_35388 = false; in efx_ef10_get_timer_workarounds()
223 nic_data->workaround_61265 = false; in efx_ef10_get_timer_workarounds()
233 nic_data->workaround_61265 = true; in efx_ef10_get_timer_workarounds()
236 nic_data->workaround_35388 = true; in efx_ef10_get_timer_workarounds()
245 nic_data->workaround_35388 = true; in efx_ef10_get_timer_workarounds()
253 nic_data->workaround_35388 ? "en" : "dis"); in efx_ef10_get_timer_workarounds()
256 nic_data->workaround_61265 ? "en" : "dis"); in efx_ef10_get_timer_workarounds()
399 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_find_vlan() local
402 WARN_ON(!mutex_is_locked(&nic_data->vlan_lock)); in efx_ef10_find_vlan()
404 list_for_each_entry(vlan, &nic_data->vlan_list, list) { in efx_ef10_find_vlan()
414 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_add_vlan() local
418 mutex_lock(&nic_data->vlan_lock); in efx_ef10_add_vlan()
440 list_add_tail(&vlan->list, &nic_data->vlan_list); in efx_ef10_add_vlan()
453 mutex_unlock(&nic_data->vlan_lock); in efx_ef10_add_vlan()
461 mutex_unlock(&nic_data->vlan_lock); in efx_ef10_add_vlan()
468 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_del_vlan_internal() local
470 WARN_ON(!mutex_is_locked(&nic_data->vlan_lock)); in efx_ef10_del_vlan_internal()
484 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_del_vlan() local
495 mutex_lock(&nic_data->vlan_lock); in efx_ef10_del_vlan()
506 mutex_unlock(&nic_data->vlan_lock); in efx_ef10_del_vlan()
513 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_cleanup_vlans() local
516 mutex_lock(&nic_data->vlan_lock); in efx_ef10_cleanup_vlans()
517 list_for_each_entry_safe(vlan, next_vlan, &nic_data->vlan_list, list) in efx_ef10_cleanup_vlans()
519 mutex_unlock(&nic_data->vlan_lock); in efx_ef10_cleanup_vlans()
527 struct efx_ef10_nic_data *nic_data; in efx_ef10_probe() local
530 nic_data = kzalloc(sizeof(*nic_data), GFP_KERNEL); in efx_ef10_probe()
531 if (!nic_data) in efx_ef10_probe()
533 efx->nic_data = nic_data; in efx_ef10_probe()
538 rc = efx_nic_alloc_buffer(efx, &nic_data->mcdi_buf, in efx_ef10_probe()
555 nic_data->warm_boot_count = rc; in efx_ef10_probe()
568 mutex_init(&nic_data->udp_tunnels_lock); in efx_ef10_probe()
569 for (i = 0; i < ARRAY_SIZE(nic_data->udp_tunnels); ++i) in efx_ef10_probe()
570 nic_data->udp_tunnels[i].type = in efx_ef10_probe()
592 rc = efx_get_pf_index(efx, &nic_data->pf_index); in efx_ef10_probe()
606 if (nic_data->datapath_caps & in efx_ef10_probe()
628 if (nic_data->datapath_caps & in efx_ef10_probe()
656 efx_pf->type->get_mac_address(efx_pf, nic_data->port_id); in efx_ef10_probe()
659 ether_addr_copy(nic_data->port_id, efx->net_dev->perm_addr); in efx_ef10_probe()
661 INIT_LIST_HEAD(&nic_data->vlan_list); in efx_ef10_probe()
662 mutex_init(&nic_data->vlan_lock); in efx_ef10_probe()
677 if (nic_data->datapath_caps & in efx_ef10_probe()
688 mutex_destroy(&nic_data->vlan_lock); in efx_ef10_probe()
698 mutex_lock(&nic_data->udp_tunnels_lock); in efx_ef10_probe()
699 memset(nic_data->udp_tunnels, 0, sizeof(nic_data->udp_tunnels)); in efx_ef10_probe()
701 mutex_unlock(&nic_data->udp_tunnels_lock); in efx_ef10_probe()
702 mutex_destroy(&nic_data->udp_tunnels_lock); in efx_ef10_probe()
706 efx_nic_free_buffer(efx, &nic_data->mcdi_buf); in efx_ef10_probe()
708 kfree(nic_data); in efx_ef10_probe()
709 efx->nic_data = NULL; in efx_ef10_probe()
717 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_free_piobufs() local
724 for (i = 0; i < nic_data->n_piobufs; i++) { in efx_ef10_free_piobufs()
726 nic_data->piobuf_handle[i]); in efx_ef10_free_piobufs()
732 nic_data->n_piobufs = 0; in efx_ef10_free_piobufs()
737 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_alloc_piobufs() local
761 nic_data->piobuf_handle[i] = in efx_ef10_alloc_piobufs()
765 nic_data->piobuf_handle[i]); in efx_ef10_alloc_piobufs()
768 nic_data->n_piobufs = i; in efx_ef10_alloc_piobufs()
776 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_link_piobufs() local
787 for (index = 0; index < nic_data->n_piobufs; ++index) { in efx_ef10_link_piobufs()
789 nic_data->piobuf_handle[index]); in efx_ef10_link_piobufs()
791 nic_data->pio_write_vi_base + index); in efx_ef10_link_piobufs()
798 nic_data->pio_write_vi_base + index, index, in efx_ef10_link_piobufs()
804 nic_data->pio_write_vi_base + index, index); in efx_ef10_link_piobufs()
824 index = offset / nic_data->piobuf_size; in efx_ef10_link_piobufs()
825 offset = offset % nic_data->piobuf_size; in efx_ef10_link_piobufs()
832 if (tx_queue->queue == nic_data->pio_write_vi_base) { in efx_ef10_link_piobufs()
838 nic_data->piobuf_handle[index]); in efx_ef10_link_piobufs()
857 nic_data->pio_write_base + in efx_ef10_link_piobufs()
878 nic_data->pio_write_vi_base + index); in efx_ef10_link_piobufs()
921 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_remove() local
934 nic_data_pf = efx_pf->nic_data; in efx_ef10_remove()
935 vf = nic_data_pf->vf + nic_data->vf_index; in efx_ef10_remove()
944 mutex_destroy(&nic_data->vlan_lock); in efx_ef10_remove()
952 if (nic_data->wc_membase) in efx_ef10_remove()
953 iounmap(nic_data->wc_membase); in efx_ef10_remove()
958 if (!nic_data->must_restore_piobufs) in efx_ef10_remove()
966 memset(nic_data->udp_tunnels, 0, sizeof(nic_data->udp_tunnels)); in efx_ef10_remove()
967 mutex_lock(&nic_data->udp_tunnels_lock); in efx_ef10_remove()
969 mutex_unlock(&nic_data->udp_tunnels_lock); in efx_ef10_remove()
971 mutex_destroy(&nic_data->udp_tunnels_lock); in efx_ef10_remove()
974 efx_nic_free_buffer(efx, &nic_data->mcdi_buf); in efx_ef10_remove()
975 kfree(nic_data); in efx_ef10_remove()
987 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vadaptor_query() local
993 if (nic_data->datapath_caps & in efx_ef10_vadaptor_query()
1078 struct efx_ef10_nic_data *nic_data_pf = efx_pf->nic_data; in efx_ef10_probe_vf()
1100 struct efx_ef10_nic_data *nic_data_p = efx_pf->nic_data; in efx_ef10_probe_vf()
1101 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_probe_vf() local
1103 nic_data_p->vf[nic_data->vf_index].efx = efx; in efx_ef10_probe_vf()
1104 nic_data_p->vf[nic_data->vf_index].pci_dev = in efx_ef10_probe_vf()
1127 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_alloc_vis() local
1129 return efx_mcdi_alloc_vis(efx, min_vis, max_vis, &nic_data->vi_base, in efx_ef10_alloc_vis()
1130 &nic_data->n_allocated_vis); in efx_ef10_alloc_vis()
1141 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_dimension_resources() local
1165 nic_data->piobuf_size / efx_piobuf_size * EF10_TX_PIOBUF_COUNT >= in efx_ef10_dimension_resources()
1169 nic_data->piobuf_size / efx_piobuf_size); in efx_ef10_dimension_resources()
1186 nic_data->n_piobufs = 0; in efx_ef10_dimension_resources()
1201 if (nic_data->n_piobufs) { in efx_ef10_dimension_resources()
1207 nic_data->n_piobufs) * in efx_ef10_dimension_resources()
1210 max_vis = pio_write_vi_base + nic_data->n_piobufs; in efx_ef10_dimension_resources()
1226 if (nic_data->n_allocated_vis < channel_vis) { in efx_ef10_dimension_resources()
1235 efx->max_channels = nic_data->n_allocated_vis; in efx_ef10_dimension_resources()
1237 nic_data->n_allocated_vis / efx->tx_queues_per_channel; in efx_ef10_dimension_resources()
1246 if (nic_data->n_piobufs && in efx_ef10_dimension_resources()
1247 nic_data->n_allocated_vis < in efx_ef10_dimension_resources()
1248 pio_write_vi_base + nic_data->n_piobufs) { in efx_ef10_dimension_resources()
1251 nic_data->n_allocated_vis, nic_data->n_piobufs); in efx_ef10_dimension_resources()
1268 nic_data->wc_membase = ioremap_wc(efx->membase_phys + in efx_ef10_dimension_resources()
1271 if (!nic_data->wc_membase) { in efx_ef10_dimension_resources()
1277 nic_data->pio_write_vi_base = pio_write_vi_base; in efx_ef10_dimension_resources()
1278 nic_data->pio_write_base = in efx_ef10_dimension_resources()
1279 nic_data->wc_membase + in efx_ef10_dimension_resources()
1291 nic_data->wc_membase, wc_mem_map_size); in efx_ef10_dimension_resources()
1298 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_fini_nic() local
1300 kfree(nic_data->mc_stats); in efx_ef10_fini_nic()
1301 nic_data->mc_stats = NULL; in efx_ef10_fini_nic()
1306 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_init_nic() local
1310 if (nic_data->must_check_datapath_caps) { in efx_ef10_init_nic()
1314 nic_data->must_check_datapath_caps = false; in efx_ef10_init_nic()
1319 rc = efx_ef10_alloc_vis(efx, nic_data->n_allocated_vis, in efx_ef10_init_nic()
1320 nic_data->n_allocated_vis); in efx_ef10_init_nic()
1326 nic_data->mc_stats = kmalloc(efx->num_mac_stats * sizeof(__le64), in efx_ef10_init_nic()
1328 if (!nic_data->mc_stats) in efx_ef10_init_nic()
1331 if (nic_data->must_restore_piobufs && nic_data->n_piobufs) { in efx_ef10_init_nic()
1332 rc = efx_ef10_alloc_piobufs(efx, nic_data->n_piobufs); in efx_ef10_init_nic()
1349 nic_data->must_restore_piobufs = false; in efx_ef10_init_nic()
1376 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_table_reset_mc_allocations() local
1384 nic_data->must_restore_piobufs = true; in efx_ef10_table_reset_mc_allocations()
1389 nic_data->must_probe_vswitching = true; in efx_ef10_table_reset_mc_allocations()
1392 if (nic_data->vf) in efx_ef10_table_reset_mc_allocations()
1394 nic_data->vf[i].vport_id = 0; in efx_ef10_table_reset_mc_allocations()
1678 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_raw_stat_mask() local
1687 if (nic_data->datapath_caps2 & in efx_ef10_raw_stat_mask()
1694 if (nic_data->datapath_caps & in efx_ef10_raw_stat_mask()
1703 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_get_stat_mask() local
1709 if (nic_data->datapath_caps & in efx_ef10_get_stat_mask()
1725 (nic_data->datapath_caps2 & in efx_ef10_get_stat_mask()
1754 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_get_fec_stats() local
1755 u64 *stats = nic_data->stats; in efx_ef10_get_fec_stats()
1770 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_update_stats_common() local
1771 u64 *stats = nic_data->stats; in efx_ef10_update_stats_common()
1788 if (nic_data->datapath_caps & in efx_ef10_update_stats_common()
1838 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_update_stats_pf() local
1840 u64 *stats = nic_data->stats; in efx_ef10_update_stats_pf()
1844 efx_nic_copy_stats(efx, nic_data->mc_stats); in efx_ef10_update_stats_pf()
1846 mask, stats, nic_data->mc_stats, false); in efx_ef10_update_stats_pf()
1879 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_try_update_nic_stats_vf() local
1882 u64 *stats = nic_data->stats; in efx_ef10_try_update_nic_stats_vf()
1951 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_update_stats_atomic_vf() local
1956 efx_update_sw_stats(efx, nic_data->stats); in efx_ef10_update_stats_atomic_vf()
2032 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_mcdi_request() local
2033 u8 *pdu = nic_data->mcdi_buf.addr; in efx_ef10_mcdi_request()
2045 _efx_writed(efx, cpu_to_le32((u64)nic_data->mcdi_buf.dma_addr >> 32), in efx_ef10_mcdi_request()
2047 _efx_writed(efx, cpu_to_le32((u32)nic_data->mcdi_buf.dma_addr), in efx_ef10_mcdi_request()
2053 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_mcdi_poll_response() local
2054 const efx_dword_t hdr = *(const efx_dword_t *)nic_data->mcdi_buf.addr; in efx_ef10_mcdi_poll_response()
2064 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_mcdi_read_response() local
2065 const u8 *pdu = nic_data->mcdi_buf.addr; in efx_ef10_mcdi_read_response()
2072 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_mcdi_reboot_detected() local
2078 nic_data->must_check_datapath_caps = true; in efx_ef10_mcdi_reboot_detected()
2083 nic_data->stats[EF10_STAT_port_rx_bad_bytes] = 0; in efx_ef10_mcdi_reboot_detected()
2088 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_mcdi_poll_reboot() local
2101 if (rc == nic_data->warm_boot_count) in efx_ef10_mcdi_poll_reboot()
2104 nic_data->warm_boot_count = rc; in efx_ef10_mcdi_poll_reboot()
2308 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_tso_versions() local
2311 if (nic_data->datapath_caps & in efx_ef10_tso_versions()
2314 if (nic_data->datapath_caps2 & in efx_ef10_tso_versions()
2326 struct efx_ef10_nic_data *nic_data; in efx_ef10_tx_init() local
2330 nic_data = efx->nic_data; in efx_ef10_tx_init()
2335 if (!(nic_data->licensed_features & in efx_ef10_tx_init()
2477 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_probe_multicast_chaining() local
2487 nic_data->workaround_26807 = false; in efx_ef10_probe_multicast_chaining()
2494 nic_data->workaround_26807 = in efx_ef10_probe_multicast_chaining()
2497 if (want_workaround_26807 && !nic_data->workaround_26807) { in efx_ef10_probe_multicast_chaining()
2518 nic_data->warm_boot_count = rc; in efx_ef10_probe_multicast_chaining()
2522 nic_data->workaround_26807 = true; in efx_ef10_probe_multicast_chaining()
2532 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_filter_table_probe() local
2538 rc = efx_mcdi_filter_table_probe(efx, nic_data->workaround_26807); in efx_ef10_filter_table_probe()
2543 list_for_each_entry(vlan, &nic_data->vlan_list, list) { in efx_ef10_filter_table_probe()
2629 struct efx_ef10_nic_data *nic_data; in efx_ef10_ev_init() local
2632 nic_data = efx->nic_data; in efx_ef10_ev_init()
2633 use_v2 = nic_data->datapath_caps2 & in efx_ef10_ev_init()
2635 cut_thru = !(nic_data->datapath_caps & in efx_ef10_ev_init()
2784 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_handle_rx_event() local
2801 nic_data->datapath_caps & in efx_ef10_handle_rx_event()
2820 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_handle_rx_event() local
2838 if (!(nic_data->datapath_caps & in efx_ef10_handle_rx_event()
3201 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_vport_set_mac_address() local
3206 if (is_zero_ether_addr(nic_data->vport_mac)) in efx_ef10_vport_set_mac_address()
3219 ether_addr_copy(mac_old, nic_data->vport_mac); in efx_ef10_vport_set_mac_address()
3221 nic_data->vport_mac); in efx_ef10_vport_set_mac_address()
3228 ether_addr_copy(nic_data->vport_mac, efx->net_dev->dev_addr); in efx_ef10_vport_set_mac_address()
3233 eth_zero_addr(nic_data->vport_mac); in efx_ef10_vport_set_mac_address()
3295 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_set_mac_address() local
3305 nic_data->vf_index, in efx_ef10_set_mac_address()
3309 struct efx_ef10_nic_data *nic_data = efx_pf->nic_data; in efx_ef10_set_mac_address() local
3316 struct ef10_vf *vf = nic_data->vf + i; in efx_ef10_set_mac_address()
3723 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_get_phys_port_id() local
3725 if (!is_valid_ether_addr(nic_data->port_id)) in efx_ef10_get_phys_port_id()
3729 memcpy(ppid->id, nic_data->port_id, ppid->id_len); in efx_ef10_get_phys_port_id()
3757 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_set_udp_tnl_ports() local
3767 WARN_ON(!mutex_is_locked(&nic_data->udp_tunnels_lock)); in efx_ef10_set_udp_tnl_ports()
3769 nic_data->udp_tunnels_dirty = false; in efx_ef10_set_udp_tnl_ports()
3771 if (!(nic_data->datapath_caps & in efx_ef10_set_udp_tnl_ports()
3777 BUILD_BUG_ON(ARRAY_SIZE(nic_data->udp_tunnels) > in efx_ef10_set_udp_tnl_ports()
3780 for (i = 0; i < ARRAY_SIZE(nic_data->udp_tunnels); ++i) { in efx_ef10_set_udp_tnl_ports()
3781 if (nic_data->udp_tunnels[i].type != in efx_ef10_set_udp_tnl_ports()
3787 ntohs(nic_data->udp_tunnels[i].port), in efx_ef10_set_udp_tnl_ports()
3789 nic_data->udp_tunnels[i].type); in efx_ef10_set_udp_tnl_ports()
3817 nic_data->udp_tunnels_dirty = true; in efx_ef10_set_udp_tnl_ports()
3853 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_udp_tnl_push_ports() local
3856 mutex_lock(&nic_data->udp_tunnels_lock); in efx_ef10_udp_tnl_push_ports()
3857 if (nic_data->udp_tunnels_dirty) { in efx_ef10_udp_tnl_push_ports()
3864 mutex_unlock(&nic_data->udp_tunnels_lock); in efx_ef10_udp_tnl_push_ports()
3873 struct efx_ef10_nic_data *nic_data; in efx_ef10_udp_tnl_set_port() local
3881 nic_data = efx->nic_data; in efx_ef10_udp_tnl_set_port()
3882 if (!(nic_data->datapath_caps & in efx_ef10_udp_tnl_set_port()
3886 mutex_lock(&nic_data->udp_tunnels_lock); in efx_ef10_udp_tnl_set_port()
3891 nic_data->udp_tunnels[entry].type = efx_tunnel_type; in efx_ef10_udp_tnl_set_port()
3892 nic_data->udp_tunnels[entry].port = ti->port; in efx_ef10_udp_tnl_set_port()
3894 mutex_unlock(&nic_data->udp_tunnels_lock); in efx_ef10_udp_tnl_set_port()
3906 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_udp_tnl_has_port() local
3909 if (!(nic_data->datapath_caps & in efx_ef10_udp_tnl_has_port()
3913 if (nic_data->udp_tunnels_dirty) in efx_ef10_udp_tnl_has_port()
3919 for (i = 0; i < ARRAY_SIZE(nic_data->udp_tunnels); ++i) in efx_ef10_udp_tnl_has_port()
3920 if (nic_data->udp_tunnels[i].type != in efx_ef10_udp_tnl_has_port()
3922 nic_data->udp_tunnels[i].port == port) in efx_ef10_udp_tnl_has_port()
3933 struct efx_ef10_nic_data *nic_data; in efx_ef10_udp_tnl_unset_port() local
3936 nic_data = efx->nic_data; in efx_ef10_udp_tnl_unset_port()
3938 mutex_lock(&nic_data->udp_tunnels_lock); in efx_ef10_udp_tnl_unset_port()
3943 nic_data->udp_tunnels[entry].type = TUNNEL_ENCAP_UDP_PORT_ENTRY_INVALID; in efx_ef10_udp_tnl_unset_port()
3944 nic_data->udp_tunnels[entry].port = 0; in efx_ef10_udp_tnl_unset_port()
3946 mutex_unlock(&nic_data->udp_tunnels_lock); in efx_ef10_udp_tnl_unset_port()
3970 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_print_additional_fwver() local
3973 nic_data->rx_dpcpu_fw_id, in efx_ef10_print_additional_fwver()
3974 nic_data->tx_dpcpu_fw_id); in efx_ef10_print_additional_fwver()
3981 const struct efx_ef10_nic_data *nic_data = efx->nic_data; in ef10_check_caps() local
3985 return nic_data->datapath_caps & BIT_ULL(flag); in ef10_check_caps()
3987 return nic_data->datapath_caps2 & BIT_ULL(flag); in ef10_check_caps()