Home
last modified time | relevance | path

Searched refs:efx_nic (Results 1 – 25 of 55) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Def10_sriov.h22 struct efx_nic *efx;
31 static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx) in efx_ef10_sriov_wanted()
36 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
37 int efx_ef10_sriov_init(struct efx_nic *efx);
38 static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {} in efx_ef10_sriov_reset()
39 void efx_ef10_sriov_fini(struct efx_nic *efx);
40 static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {} in efx_ef10_sriov_flr()
42 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac);
44 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i,
47 int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
[all …]
Dmcdi_port_common.h31 int efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg);
32 void efx_link_set_advertising(struct efx_nic *efx,
34 int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities,
36 int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes);
39 u32 efx_get_mcdi_phy_flags(struct efx_nic *efx);
41 void efx_mcdi_phy_decode_link(struct efx_nic *efx,
46 void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa);
47 bool efx_mcdi_phy_poll(struct efx_nic *efx);
48 int efx_mcdi_phy_probe(struct efx_nic *efx);
49 void efx_mcdi_phy_remove(struct efx_nic *efx);
[all …]
Defx_common.h14 int efx_init_io(struct efx_nic *efx, int bar, dma_addr_t dma_mask,
16 void efx_fini_io(struct efx_nic *efx);
17 int efx_init_struct(struct efx_nic *efx, struct pci_dev *pci_dev,
19 void efx_fini_struct(struct efx_nic *efx);
28 void efx_link_clear_advertising(struct efx_nic *efx);
29 void efx_link_set_wanted_fc(struct efx_nic *efx, u8);
31 void efx_start_all(struct efx_nic *efx);
32 void efx_stop_all(struct efx_nic *efx);
37 void efx_queue_reset_work(struct efx_nic *efx);
38 void efx_flush_reset_workqueue(struct efx_nic *efx);
[all …]
Dmcdi_filters.h95 int efx_mcdi_filter_table_probe(struct efx_nic *efx, bool multicast_chaining);
96 void efx_mcdi_filter_table_down(struct efx_nic *efx);
97 void efx_mcdi_filter_table_remove(struct efx_nic *efx);
98 void efx_mcdi_filter_table_restore(struct efx_nic *efx);
100 void efx_mcdi_filter_table_reset_mc_allocations(struct efx_nic *efx);
121 void efx_mcdi_filter_sync_rx_mode(struct efx_nic *efx);
122 s32 efx_mcdi_filter_insert(struct efx_nic *efx, struct efx_filter_spec *spec,
124 int efx_mcdi_filter_remove_safe(struct efx_nic *efx,
127 int efx_mcdi_filter_get_safe(struct efx_nic *efx,
131 u32 efx_mcdi_filter_count_rx_used(struct efx_nic *efx,
[all …]
Dnet_driver.h260 struct efx_nic *efx ____cacheline_aligned_in_smp;
391 struct efx_nic *efx;
493 struct efx_nic *efx;
567 struct efx_nic *efx;
590 void (*handle_no_channel)(struct efx_nic *);
637 struct efx_nic;
943 struct efx_nic { struct
948 struct efx_nic *primary; argument
1123 static inline int efx_dev_registered(struct efx_nic *efx) in efx_dev_registered() argument
1128 static inline unsigned int efx_port_num(struct efx_nic *efx) in efx_port_num()
[all …]
Defx_channels.h17 int efx_probe_interrupts(struct efx_nic *efx);
18 void efx_remove_interrupts(struct efx_nic *efx);
19 int efx_soft_enable_interrupts(struct efx_nic *efx);
20 void efx_soft_disable_interrupts(struct efx_nic *efx);
21 int efx_enable_interrupts(struct efx_nic *efx);
22 void efx_disable_interrupts(struct efx_nic *efx);
24 void efx_set_interrupt_affinity(struct efx_nic *efx);
25 void efx_clear_interrupt_affinity(struct efx_nic *efx);
34 int efx_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries);
36 void efx_set_channel_names(struct efx_nic *efx);
[all …]
Dptp.h16 int efx_ptp_probe(struct efx_nic *efx, struct efx_channel *channel);
17 void efx_ptp_defer_probe_with_channel(struct efx_nic *efx);
18 struct efx_channel *efx_ptp_channel(struct efx_nic *efx);
19 void efx_ptp_update_channel(struct efx_nic *efx, struct efx_channel *channel);
20 void efx_ptp_remove(struct efx_nic *efx);
21 int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr);
22 int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr);
23 void efx_ptp_get_ts_info(struct efx_nic *efx, struct ethtool_ts_info *ts_info);
24 bool efx_ptp_is_ptp_tx(struct efx_nic *efx, struct sk_buff *skb);
25 int efx_ptp_get_mode(struct efx_nic *efx);
[all …]
Dsiena_sriov.h41 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs);
42 int efx_siena_sriov_init(struct efx_nic *efx);
43 void efx_siena_sriov_fini(struct efx_nic *efx);
44 int efx_siena_sriov_mac_address_changed(struct efx_nic *efx);
45 bool efx_siena_sriov_wanted(struct efx_nic *efx);
46 void efx_siena_sriov_reset(struct efx_nic *efx);
47 void efx_siena_sriov_flr(struct efx_nic *efx, unsigned flr);
49 int efx_siena_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac);
50 int efx_siena_sriov_set_vf_vlan(struct efx_nic *efx, int vf,
52 int efx_siena_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
[all …]
Dnic.h14 u32 efx_farch_fpga_ver(struct efx_nic *efx);
104 struct efx_nic *efx;
311 int falcon_probe_board(struct efx_nic *efx, u16 revision_info);
336 int efx_farch_filter_table_probe(struct efx_nic *efx);
337 void efx_farch_filter_table_restore(struct efx_nic *efx);
338 void efx_farch_filter_table_remove(struct efx_nic *efx);
339 void efx_farch_filter_update_rx_scatter(struct efx_nic *efx);
340 s32 efx_farch_filter_insert(struct efx_nic *efx, struct efx_filter_spec *spec,
342 int efx_farch_filter_remove_safe(struct efx_nic *efx,
345 int efx_farch_filter_get_safe(struct efx_nic *efx,
[all …]
Defx.h48 static inline bool efx_rx_buf_hash_valid(struct efx_nic *efx, const u8 *prefix) in efx_rx_buf_hash_valid()
73 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled()
105 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter()
121 static inline int efx_filter_remove_id_safe(struct efx_nic *efx, in efx_filter_remove_id_safe()
139 efx_filter_get_filter_safe(struct efx_nic *efx, in efx_filter_get_filter_safe()
146 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx, in efx_filter_count_rx_used()
151 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx) in efx_filter_get_rx_id_limit()
155 static inline s32 efx_filter_get_rx_ids(struct efx_nic *efx, in efx_filter_get_rx_ids()
172 unsigned int efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs);
173 unsigned int efx_ticks_to_usecs(struct efx_nic *efx, unsigned int ticks);
[all …]
Dmcdi.h68 struct efx_nic *efx;
127 static inline struct efx_mcdi_iface *efx_mcdi(struct efx_nic *efx) in efx_mcdi()
134 static inline struct efx_mcdi_mon *efx_mcdi_mon(struct efx_nic *efx) in efx_mcdi_mon()
141 int efx_mcdi_init(struct efx_nic *efx);
142 void efx_mcdi_detach(struct efx_nic *efx);
143 void efx_mcdi_fini(struct efx_nic *efx);
145 int efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf,
148 int efx_mcdi_rpc_quiet(struct efx_nic *efx, unsigned cmd,
153 int efx_mcdi_rpc_start(struct efx_nic *efx, unsigned cmd,
155 int efx_mcdi_rpc_finish(struct efx_nic *efx, unsigned cmd, size_t inlen,
[all …]
Drx_common.h26 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash()
59 void efx_unmap_rx_buffer(struct efx_nic *efx, struct efx_rx_buffer *rx_buf);
61 static inline void efx_sync_rx_buffer(struct efx_nic *efx, in efx_sync_rx_buffer()
74 void efx_rx_config_page_split(struct efx_nic *efx);
81 struct efx_rss_context *efx_alloc_rss_context_entry(struct efx_nic *efx);
82 struct efx_rss_context *efx_find_rss_context_entry(struct efx_nic *efx, u32 id);
84 void efx_set_default_rx_indir_table(struct efx_nic *efx,
95 struct efx_arfs_rule *efx_rps_hash_find(struct efx_nic *efx,
97 struct efx_arfs_rule *efx_rps_hash_add(struct efx_nic *efx,
100 void efx_rps_hash_del(struct efx_nic *efx, const struct efx_filter_spec *spec);
[all …]
Defx_common.c123 void efx_queue_reset_work(struct efx_nic *efx) in efx_queue_reset_work()
128 void efx_flush_reset_workqueue(struct efx_nic *efx) in efx_flush_reset_workqueue()
144 void efx_mac_reconfigure(struct efx_nic *efx, bool mtu_only) in efx_mac_reconfigure()
159 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); in efx_mac_work()
169 struct efx_nic *efx = netdev_priv(net_dev); in efx_set_mac_address()
204 struct efx_nic *efx = netdev_priv(net_dev); in efx_set_rx_mode()
213 struct efx_nic *efx = netdev_priv(net_dev); in efx_set_features()
241 void efx_link_status_changed(struct efx_nic *efx) in efx_link_status_changed()
272 unsigned int efx_xdp_max_mtu(struct efx_nic *efx) in efx_xdp_max_mtu()
287 struct efx_nic *efx = netdev_priv(net_dev); in efx_change_mtu()
[all …]
Dio.h78 static inline u32 efx_reg(struct efx_nic *efx, unsigned int reg) in efx_reg()
84 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq()
89 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq()
95 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed()
100 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd()
106 static inline void efx_writeo(struct efx_nic *efx, const efx_oword_t *value, in efx_writeo()
129 static inline void efx_sram_writeq(struct efx_nic *efx, void __iomem *membase, in efx_sram_writeq()
150 static inline void efx_writed(struct efx_nic *efx, const efx_dword_t *value, in efx_writed()
162 static inline void efx_reado(struct efx_nic *efx, efx_oword_t *value, in efx_reado()
180 static inline void efx_sram_readq(struct efx_nic *efx, void __iomem *membase, in efx_sram_readq()
[all …]
Dnic_common.h27 static inline int efx_nic_rev(struct efx_nic *efx) in efx_nic_rev()
192 static inline void efx_sensor_event(struct efx_nic *efx, efx_qword_t *ev) in efx_sensor_event()
217 int efx_nic_init_interrupt(struct efx_nic *efx);
218 int efx_nic_irq_test_start(struct efx_nic *efx);
219 void efx_nic_fini_interrupt(struct efx_nic *efx);
225 static inline int efx_nic_irq_test_irq_cpu(struct efx_nic *efx) in efx_nic_irq_test_irq_cpu()
231 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer,
233 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer);
235 size_t efx_nic_get_regs_len(struct efx_nic *efx);
236 void efx_nic_get_regs(struct efx_nic *efx, void *buf);
[all …]
Defx.c102 static void efx_remove_port(struct efx_nic *efx);
103 static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog);
122 static void efx_fini_port(struct efx_nic *efx);
124 static int efx_probe_port(struct efx_nic *efx) in efx_probe_port()
144 static int efx_init_port(struct efx_nic *efx) in efx_init_port()
167 static void efx_fini_port(struct efx_nic *efx) in efx_fini_port()
180 static void efx_remove_port(struct efx_nic *efx) in efx_remove_port()
196 static bool efx_same_controller(struct efx_nic *left, struct efx_nic *right) in efx_same_controller()
203 static void efx_associate(struct efx_nic *efx) in efx_associate()
205 struct efx_nic *other, *next; in efx_associate()
[all …]
Dselftest.h44 void efx_loopback_rx_packet(struct efx_nic *efx, const char *buf_ptr,
46 int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests,
48 void efx_selftest_async_init(struct efx_nic *efx);
49 void efx_selftest_async_start(struct efx_nic *efx);
50 void efx_selftest_async_cancel(struct efx_nic *efx);
Dmcdi.c49 static int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating,
51 static bool efx_mcdi_poll_once(struct efx_nic *efx);
52 static void efx_mcdi_abandon(struct efx_nic *efx);
61 int efx_mcdi_init(struct efx_nic *efx) in efx_mcdi_init()
127 void efx_mcdi_detach(struct efx_nic *efx) in efx_mcdi_detach()
138 void efx_mcdi_fini(struct efx_nic *efx) in efx_mcdi_fini()
150 static void efx_mcdi_send_request(struct efx_nic *efx, unsigned cmd, in efx_mcdi_send_request()
265 static void efx_mcdi_read_response_header(struct efx_nic *efx) in efx_mcdi_read_response_header()
340 static bool efx_mcdi_poll_once(struct efx_nic *efx) in efx_mcdi_poll_once()
355 static int efx_mcdi_poll(struct efx_nic *efx) in efx_mcdi_poll()
[all …]
Def10_sriov.c15 static int efx_ef10_evb_port_assign(struct efx_nic *efx, unsigned int port_id, in efx_ef10_evb_port_assign()
30 static int efx_ef10_vswitch_alloc(struct efx_nic *efx, unsigned int port_id, in efx_ef10_vswitch_alloc()
59 static int efx_ef10_vswitch_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vswitch_free()
69 static int efx_ef10_vport_alloc(struct efx_nic *efx, in efx_ef10_vport_alloc()
103 static int efx_ef10_vport_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vport_free()
113 static void efx_ef10_sriov_free_vf_vports(struct efx_nic *efx) in efx_ef10_sriov_free_vf_vports()
148 static void efx_ef10_sriov_free_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_free_vf_vswitching()
157 static int efx_ef10_sriov_assign_vf_vport(struct efx_nic *efx, in efx_ef10_sriov_assign_vf_vport()
187 static int efx_ef10_sriov_alloc_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_alloc_vf_vswitching()
216 static int efx_ef10_sriov_restore_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_restore_vf_vswitching()
[all …]
Dmcdi_functions.h13 int efx_mcdi_alloc_vis(struct efx_nic *efx, unsigned int min_vis,
16 int efx_mcdi_free_vis(struct efx_nic *efx);
29 int efx_fini_dmaq(struct efx_nic *efx);
30 int efx_mcdi_window_mode_to_stride(struct efx_nic *efx, u8 vi_window_mode);
31 int efx_get_pf_index(struct efx_nic *efx, unsigned int *pf_index);
Def10.c42 static int efx_ef10_set_udp_tnl_ports(struct efx_nic *efx, bool unloading);
45 static int efx_ef10_get_warm_boot_count(struct efx_nic *efx) in efx_ef10_get_warm_boot_count()
58 static unsigned int efx_ef10_pf_mem_bar(struct efx_nic *efx) in efx_ef10_pf_mem_bar()
69 static unsigned int efx_ef10_vf_mem_bar(struct efx_nic *efx) in efx_ef10_vf_mem_bar()
74 static unsigned int efx_ef10_mem_map_size(struct efx_nic *efx) in efx_ef10_mem_map_size()
82 static bool efx_ef10_is_vf(struct efx_nic *efx) in efx_ef10_is_vf()
88 static int efx_ef10_get_vf_index(struct efx_nic *efx) in efx_ef10_get_vf_index()
107 static int efx_ef10_init_datapath_caps(struct efx_nic *efx) in efx_ef10_init_datapath_caps()
183 static void efx_ef10_read_licensed_features(struct efx_nic *efx) in efx_ef10_read_licensed_features()
202 static int efx_ef10_get_sysclk_freq(struct efx_nic *efx) in efx_ef10_get_sysclk_freq()
[all …]
Dmcdi_port.h13 u32 efx_mcdi_phy_get_caps(struct efx_nic *efx);
14 bool efx_mcdi_mac_check_fault(struct efx_nic *efx);
15 int efx_mcdi_port_probe(struct efx_nic *efx);
16 void efx_mcdi_port_remove(struct efx_nic *efx);
Dptp.c286 struct efx_nic *efx;
348 void (*xmit_skb)(struct efx_nic *efx, struct sk_buff *skb);
359 bool efx_ptp_use_mac_tx_timestamps(struct efx_nic *efx) in efx_ptp_use_mac_tx_timestamps()
397 size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 *strings) in efx_ptp_describe_stats()
406 size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats) in efx_ptp_update_stats()
540 struct efx_channel *efx_ptp_channel(struct efx_nic *efx) in efx_ptp_channel()
545 void efx_ptp_update_channel(struct efx_nic *efx, struct efx_channel *channel) in efx_ptp_update_channel()
551 static u32 last_sync_timestamp_major(struct efx_nic *efx) in last_sync_timestamp_major()
565 efx_ptp_mac_nic_to_ktime_correction(struct efx_nic *efx, in efx_ptp_mac_nic_to_ktime_correction()
618 struct efx_nic *efx = tx_queue->efx; in efx_ptp_nic_to_kernel_time()
[all …]
Dmcdi_port_common.c15 int efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg) in efx_mcdi_get_phy_cfg()
55 void efx_link_set_advertising(struct efx_nic *efx, in efx_link_set_advertising()
70 int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities, in efx_mcdi_set_link()
88 int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes) in efx_mcdi_loopback_modes()
234 u32 efx_get_mcdi_phy_flags(struct efx_nic *efx) in efx_get_mcdi_phy_flags()
283 void efx_mcdi_phy_decode_link(struct efx_nic *efx, in efx_mcdi_phy_decode_link()
376 void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa) in efx_mcdi_phy_check_fcntl()
402 bool efx_mcdi_phy_poll(struct efx_nic *efx) in efx_mcdi_phy_poll()
426 int efx_mcdi_phy_probe(struct efx_nic *efx) in efx_mcdi_phy_probe()
532 void efx_mcdi_phy_remove(struct efx_nic *efx) in efx_mcdi_phy_remove()
[all …]
Def100_netdev.c26 static void ef100_update_name(struct efx_nic *efx) in ef100_update_name()
31 static int ef100_alloc_vis(struct efx_nic *efx, unsigned int *allocated_vis) in ef100_alloc_vis()
55 static int ef100_remap_bar(struct efx_nic *efx, int max_vis) in ef100_remap_bar()
82 struct efx_nic *efx = netdev_priv(net_dev); in ef100_net_stop()
105 struct efx_nic *efx = netdev_priv(net_dev); in ef100_net_open()
192 struct efx_nic *efx = netdev_priv(net_dev); in ef100_hard_start_xmit()
240 struct efx_nic *efx = container_of(this, struct efx_nic, netdev_notifier); in ef100_netdev_event()
249 int ef100_register_netdev(struct efx_nic *efx) in ef100_register_netdev()
287 void ef100_unregister_netdev(struct efx_nic *efx) in ef100_unregister_netdev()

123