Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/net/ethernet/sfc/
Def10_sriov.h25 struct efx_nic *efx;
34 static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx) in efx_ef10_sriov_wanted()
39 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
40 int efx_ef10_sriov_init(struct efx_nic *efx);
41 static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {} in efx_ef10_sriov_reset()
42 void efx_ef10_sriov_fini(struct efx_nic *efx);
43 static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {} in efx_ef10_sriov_flr()
45 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac);
47 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i,
50 int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
[all …]
Dnet_driver.h243 struct efx_nic *efx ____cacheline_aligned_in_smp;
371 struct efx_nic *efx;
459 struct efx_nic *efx;
524 struct efx_nic *efx;
547 void (*handle_no_channel)(struct efx_nic *);
596 struct efx_nic;
645 int (*probe) (struct efx_nic *efx);
646 int (*init) (struct efx_nic *efx);
647 void (*fini) (struct efx_nic *efx);
648 void (*remove) (struct efx_nic *efx);
[all …]
Defx.h32 unsigned int efx_tx_max_skb_descs(struct efx_nic *efx);
37 void efx_set_default_rx_indir_table(struct efx_nic *efx,
39 void efx_rx_config_page_split(struct efx_nic *efx);
79 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled()
86 void efx_mac_reconfigure(struct efx_nic *efx);
113 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter()
129 static inline int efx_filter_remove_id_safe(struct efx_nic *efx, in efx_filter_remove_id_safe()
147 efx_filter_get_filter_safe(struct efx_nic *efx, in efx_filter_get_filter_safe()
154 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx, in efx_filter_count_rx_used()
159 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx) in efx_filter_get_rx_id_limit()
[all …]
Dnic.h29 static inline int efx_nic_rev(struct efx_nic *efx) in efx_nic_rev()
34 u32 efx_farch_fpga_ver(struct efx_nic *efx);
241 struct efx_nic *efx;
450 int efx_ptp_probe(struct efx_nic *efx, struct efx_channel *channel);
451 void efx_ptp_defer_probe_with_channel(struct efx_nic *efx);
452 struct efx_channel *efx_ptp_channel(struct efx_nic *efx);
453 void efx_ptp_remove(struct efx_nic *efx);
454 int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr);
455 int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr);
456 void efx_ptp_get_ts_info(struct efx_nic *efx, struct ethtool_ts_info *ts_info);
[all …]
Dsiena_sriov.h44 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs);
45 int efx_siena_sriov_init(struct efx_nic *efx);
46 void efx_siena_sriov_fini(struct efx_nic *efx);
47 int efx_siena_sriov_mac_address_changed(struct efx_nic *efx);
48 bool efx_siena_sriov_wanted(struct efx_nic *efx);
49 void efx_siena_sriov_reset(struct efx_nic *efx);
50 void efx_siena_sriov_flr(struct efx_nic *efx, unsigned flr);
52 int efx_siena_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac);
53 int efx_siena_sriov_set_vf_vlan(struct efx_nic *efx, int vf,
55 int efx_siena_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
[all …]
Dmcdi.h71 struct efx_nic *efx;
130 static inline struct efx_mcdi_iface *efx_mcdi(struct efx_nic *efx) in efx_mcdi()
137 static inline struct efx_mcdi_mon *efx_mcdi_mon(struct efx_nic *efx) in efx_mcdi_mon()
144 int efx_mcdi_init(struct efx_nic *efx);
145 void efx_mcdi_detach(struct efx_nic *efx);
146 void efx_mcdi_fini(struct efx_nic *efx);
148 int efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf,
151 int efx_mcdi_rpc_quiet(struct efx_nic *efx, unsigned cmd,
156 int efx_mcdi_rpc_start(struct efx_nic *efx, unsigned cmd,
158 int efx_mcdi_rpc_finish(struct efx_nic *efx, unsigned cmd, size_t inlen,
[all …]
Dio.h82 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq()
87 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq()
93 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed()
98 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd()
104 static inline void efx_writeo(struct efx_nic *efx, const efx_oword_t *value, in efx_writeo()
128 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()
201 static inline void efx_readd(struct efx_nic *efx, efx_dword_t *value, in efx_readd()
[all …]
Defx.c220 static int efx_soft_enable_interrupts(struct efx_nic *efx);
221 static void efx_soft_disable_interrupts(struct efx_nic *efx);
223 static void efx_remove_channels(struct efx_nic *efx);
225 static void efx_remove_port(struct efx_nic *efx);
227 static void efx_fini_napi(struct efx_nic *efx);
229 static void efx_fini_struct(struct efx_nic *efx);
230 static void efx_start_all(struct efx_nic *efx);
231 static void efx_stop_all(struct efx_nic *efx);
241 static int efx_check_disabled(struct efx_nic *efx) in efx_check_disabled()
312 static void efx_update_irq_mod(struct efx_nic *efx, struct efx_channel *channel) in efx_update_irq_mod()
[all …]
Def10_sriov.c18 static int efx_ef10_evb_port_assign(struct efx_nic *efx, unsigned int port_id, in efx_ef10_evb_port_assign()
33 static int efx_ef10_vswitch_alloc(struct efx_nic *efx, unsigned int port_id, in efx_ef10_vswitch_alloc()
62 static int efx_ef10_vswitch_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vswitch_free()
72 static int efx_ef10_vport_alloc(struct efx_nic *efx, in efx_ef10_vport_alloc()
106 static int efx_ef10_vport_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vport_free()
116 static void efx_ef10_sriov_free_vf_vports(struct efx_nic *efx) in efx_ef10_sriov_free_vf_vports()
151 static void efx_ef10_sriov_free_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_free_vf_vswitching()
160 static int efx_ef10_sriov_assign_vf_vport(struct efx_nic *efx, in efx_ef10_sriov_assign_vf_vport()
190 static int efx_ef10_sriov_alloc_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_alloc_vf_vswitching()
219 static int efx_ef10_sriov_restore_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_restore_vf_vswitching()
[all …]
Dmcdi.c52 static int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating,
54 static bool efx_mcdi_poll_once(struct efx_nic *efx);
55 static void efx_mcdi_abandon(struct efx_nic *efx);
64 int efx_mcdi_init(struct efx_nic *efx) in efx_mcdi_init()
130 void efx_mcdi_detach(struct efx_nic *efx) in efx_mcdi_detach()
141 void efx_mcdi_fini(struct efx_nic *efx) in efx_mcdi_fini()
153 static void efx_mcdi_send_request(struct efx_nic *efx, unsigned cmd, in efx_mcdi_send_request()
266 static void efx_mcdi_read_response_header(struct efx_nic *efx) in efx_mcdi_read_response_header()
341 static bool efx_mcdi_poll_once(struct efx_nic *efx) in efx_mcdi_poll_once()
356 static int efx_mcdi_poll(struct efx_nic *efx) in efx_mcdi_poll()
[all …]
Dptp.c283 struct efx_nic *efx;
345 void (*xmit_skb)(struct efx_nic *efx, struct sk_buff *skb);
356 bool efx_ptp_use_mac_tx_timestamps(struct efx_nic *efx) in efx_ptp_use_mac_tx_timestamps()
399 size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 *strings) in efx_ptp_describe_stats()
408 size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats) in efx_ptp_update_stats()
542 struct efx_channel *efx_ptp_channel(struct efx_nic *efx) in efx_ptp_channel()
547 static u32 last_sync_timestamp_major(struct efx_nic *efx) in last_sync_timestamp_major()
561 efx_ptp_mac_nic_to_ktime_correction(struct efx_nic *efx, in efx_ptp_mac_nic_to_ktime_correction()
582 struct efx_nic *efx = tx_queue->efx; in efx_ptp_nic_to_kernel_time()
600 static int efx_ptp_get_attributes(struct efx_nic *efx) in efx_ptp_get_attributes()
[all …]
Dmcdi_port.c36 efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg) in efx_mcdi_get_phy_cfg()
76 static int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities, in efx_mcdi_set_link()
95 static int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes) in efx_mcdi_loopback_modes()
124 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_read()
150 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_write()
279 static u32 efx_get_mcdi_phy_flags(struct efx_nic *efx) in efx_get_mcdi_phy_flags()
328 static void efx_mcdi_phy_decode_link(struct efx_nic *efx, in efx_mcdi_phy_decode_link()
413 static int efx_mcdi_phy_probe(struct efx_nic *efx) in efx_mcdi_phy_probe()
519 int efx_mcdi_port_reconfigure(struct efx_nic *efx) in efx_mcdi_port_reconfigure()
535 static void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa) in efx_mcdi_phy_check_fcntl()
[all …]
Def10.c125 static void efx_ef10_rx_free_indir_table(struct efx_nic *efx);
126 static void efx_ef10_filter_table_remove(struct efx_nic *efx);
127 static int efx_ef10_filter_add_vlan(struct efx_nic *efx, u16 vid);
128 static void efx_ef10_filter_del_vlan_internal(struct efx_nic *efx,
130 static void efx_ef10_filter_del_vlan(struct efx_nic *efx, u16 vid);
131 static int efx_ef10_set_udp_tnl_ports(struct efx_nic *efx, bool unloading);
149 static int efx_ef10_get_warm_boot_count(struct efx_nic *efx) in efx_ef10_get_warm_boot_count()
162 static unsigned int efx_ef10_pf_mem_bar(struct efx_nic *efx) in efx_ef10_pf_mem_bar()
173 static unsigned int efx_ef10_vf_mem_bar(struct efx_nic *efx) in efx_ef10_vf_mem_bar()
178 static unsigned int efx_ef10_mem_map_size(struct efx_nic *efx) in efx_ef10_mem_map_size()
[all …]
Dsiena.c31 static void siena_init_wol(struct efx_nic *efx);
36 struct efx_nic *efx = channel->efx; in siena_push_irq_moderation()
58 void siena_prepare_flush(struct efx_nic *efx) in siena_prepare_flush()
64 void siena_finish_flush(struct efx_nic *efx) in siena_finish_flush()
99 static int siena_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) in siena_test_chip()
131 static void siena_ptp_write_host_time(struct efx_nic *efx, u32 host_time) in siena_ptp_write_host_time()
137 static int siena_ptp_set_ts_config(struct efx_nic *efx, in siena_ptp_set_ts_config()
211 static void siena_monitor(struct efx_nic *efx) in siena_monitor()
219 static int siena_probe_nvconfig(struct efx_nic *efx) in siena_probe_nvconfig()
235 static int siena_dimension_resources(struct efx_nic *efx) in siena_dimension_resources()
[all …]
Dselftest.h47 void efx_loopback_rx_packet(struct efx_nic *efx, const char *buf_ptr,
49 int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests,
51 void efx_selftest_async_start(struct efx_nic *efx);
52 void efx_selftest_async_cancel(struct efx_nic *efx);
Dsriov.c16 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_mac()
27 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_vlan()
46 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_spoofchk()
57 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_get_vf_config()
68 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_link_state()
Dfarch.c89 static inline void efx_write_buf_tbl(struct efx_nic *efx, efx_qword_t *value, in efx_write_buf_tbl()
103 int efx_farch_test_registers(struct efx_nic *efx, in efx_farch_test_registers()
173 efx_init_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_init_special_buffer()
199 efx_fini_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_fini_special_buffer()
228 static int efx_alloc_special_buffer(struct efx_nic *efx, in efx_alloc_special_buffer()
261 efx_free_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_free_special_buffer()
374 struct efx_nic *efx = tx_queue->efx; in efx_farch_tx_probe()
385 struct efx_nic *efx = tx_queue->efx; in efx_farch_tx_init()
422 struct efx_nic *efx = tx_queue->efx; in efx_farch_flush_tx_queue()
436 struct efx_nic *efx = tx_queue->efx; in efx_farch_tx_fini()
[all …]
Dsiena_sriov.c88 struct efx_nic *efx;
198 static int efx_siena_sriov_cmd(struct efx_nic *efx, bool enable, in efx_siena_sriov_cmd()
231 static void efx_siena_sriov_usrev(struct efx_nic *efx, bool enabled) in efx_siena_sriov_usrev()
242 static int efx_siena_sriov_memcpy(struct efx_nic *efx, in efx_siena_sriov_memcpy()
305 struct efx_nic *efx = vf->efx; in efx_siena_sriov_reset_tx_filter()
349 struct efx_nic *efx = vf->efx; in efx_siena_sriov_reset_rx_filter()
388 struct efx_nic *efx = vf->efx; in __efx_siena_sriov_update_vf_addr()
403 struct efx_nic *efx = vf->efx; in __efx_siena_sriov_push_vf_status()
479 static void efx_siena_sriov_bufs(struct efx_nic *efx, unsigned offset, in efx_siena_sriov_bufs()
496 static bool bad_vf_index(struct efx_nic *efx, unsigned index) in bad_vf_index()
[all …]
Dethtool.c106 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id()
132 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_link_ksettings()
162 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_link_ksettings()
182 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo()
199 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_regs()
207 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_msglevel()
213 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_msglevel()
272 static int efx_fill_loopback_test(struct efx_nic *efx, in efx_fill_loopback_test()
317 static int efx_ethtool_fill_self_tests(struct efx_nic *efx, in efx_ethtool_fill_self_tests()
377 static size_t efx_describe_per_queue_stats(struct efx_nic *efx, u8 *strings) in efx_describe_per_queue_stats()
[all …]
Dselftest.c99 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive()
111 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram()
133 static int efx_test_interrupts(struct efx_nic *efx, in efx_test_interrupts()
175 static int efx_test_eventq_irq(struct efx_nic *efx, in efx_test_eventq_irq()
256 static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, in efx_test_phy()
286 void efx_loopback_rx_packet(struct efx_nic *efx, in efx_loopback_rx_packet()
378 static void efx_iterate_state(struct efx_nic *efx) in efx_iterate_state()
415 struct efx_nic *efx = tx_queue->efx; in efx_begin_loopback()
462 static int efx_poll_loopback(struct efx_nic *efx) in efx_poll_loopback()
472 struct efx_nic *efx = tx_queue->efx; in efx_end_loopback()
[all …]
Dmtd.c26 struct efx_nic *efx = mtd->priv; in efx_mtd_erase()
34 struct efx_nic *efx = mtd->priv; in efx_mtd_sync()
57 int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts, in efx_mtd_add()
98 void efx_mtd_remove(struct efx_nic *efx) in efx_mtd_remove()
116 void efx_mtd_rename(struct efx_nic *efx) in efx_mtd_rename()
Drx.c65 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash()
87 static inline void efx_sync_rx_buffer(struct efx_nic *efx, in efx_sync_rx_buffer()
95 void efx_rx_config_page_split(struct efx_nic *efx) in efx_rx_config_page_split()
111 struct efx_nic *efx = rx_queue->efx; in efx_reuse_page()
154 struct efx_nic *efx = rx_queue->efx; in efx_init_rx_buffers()
213 static void efx_unmap_rx_buffer(struct efx_nic *efx, in efx_unmap_rx_buffer()
249 struct efx_nic *efx = rx_queue->efx; in efx_recycle_rx_page()
329 struct efx_nic *efx = rx_queue->efx; in efx_fast_push_rx_descriptors()
392 struct efx_nic *efx = rx_queue->efx; in efx_rx_packet__check_len()
420 struct efx_nic *efx = channel->efx; in efx_rx_packet_gro()
[all …]
Dtx.c107 unsigned int efx_tx_max_skb_descs(struct efx_nic *efx) in efx_tx_max_skb_descs()
130 struct efx_nic *efx = txq1->efx; in efx_tx_maybe_stop_queue()
204 static void efx_memcpy_toio_aligned(struct efx_nic *efx, u8 __iomem **piobuf, in efx_memcpy_toio_aligned()
226 static void efx_memcpy_toio_aligned_cb(struct efx_nic *efx, u8 __iomem **piobuf, in efx_memcpy_toio_aligned_cb()
253 static void efx_flush_copy_buffer(struct efx_nic *efx, u8 __iomem *piobuf, in efx_flush_copy_buffer()
265 static void efx_skb_copy_bits_to_pio(struct efx_nic *efx, struct sk_buff *skb, in efx_skb_copy_bits_to_pio()
366 struct efx_nic *efx = tx_queue->efx; in efx_tx_map_data()
618 struct efx_nic *efx = tx_queue->efx; in efx_dequeue_buffers()
655 struct efx_nic *efx = netdev_priv(net_dev); in efx_hard_start_xmit()
680 struct efx_nic *efx = tx_queue->efx; in efx_init_tx_queue_core_txq()
[all …]
Dnic.c34 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer, in efx_nic_alloc_buffer()
45 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer) in efx_nic_free_buffer()
69 int efx_nic_irq_test_start(struct efx_nic *efx) in efx_nic_irq_test_start()
79 int efx_nic_init_interrupt(struct efx_nic *efx) in efx_nic_init_interrupt()
150 void efx_nic_fini_interrupt(struct efx_nic *efx) in efx_nic_fini_interrupt()
371 size_t efx_nic_get_regs_len(struct efx_nic *efx) in efx_nic_get_regs_len()
394 void efx_nic_get_regs(struct efx_nic *efx, void *buf) in efx_nic_get_regs()
525 void efx_nic_fix_nodesc_drop_stat(struct efx_nic *efx, u64 *rx_nodesc_drops) in efx_nic_fix_nodesc_drop_stat()
Dmcdi_mon.c106 void efx_mcdi_sensor_event(struct efx_nic *efx, efx_qword_t *ev) in efx_mcdi_sensor_event()
147 static int efx_mcdi_mon_update(struct efx_nic *efx) in efx_mcdi_mon_update()
167 struct efx_nic *efx = dev_get_drvdata(dev->parent); in efx_mcdi_mon_get_entry()
282 efx_mcdi_mon_add_attr(struct efx_nic *efx, const char *name, in efx_mcdi_mon_add_attr()
306 int efx_mcdi_mon_probe(struct efx_nic *efx) in efx_mcdi_mon_probe()
523 void efx_mcdi_mon_remove(struct efx_nic *efx) in efx_mcdi_mon_remove()

12