Home
last modified time | relevance | path

Searched refs:ef4_nic (Results 1 – 21 of 21) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Defx.h37 unsigned int ef4_tx_max_skb_descs(struct ef4_nic *efx);
41 void ef4_set_default_rx_indir_table(struct ef4_nic *efx);
42 void ef4_rx_config_page_split(struct ef4_nic *efx);
76 static inline bool ef4_rss_enabled(struct ef4_nic *efx) in ef4_rss_enabled()
83 void ef4_mac_reconfigure(struct ef4_nic *efx);
110 static inline s32 ef4_filter_insert_filter(struct ef4_nic *efx, in ef4_filter_insert_filter()
126 static inline int ef4_filter_remove_id_safe(struct ef4_nic *efx, in ef4_filter_remove_id_safe()
144 ef4_filter_get_filter_safe(struct ef4_nic *efx, in ef4_filter_get_filter_safe()
151 static inline u32 ef4_filter_count_rx_used(struct ef4_nic *efx, in ef4_filter_count_rx_used()
156 static inline u32 ef4_filter_get_rx_id_limit(struct ef4_nic *efx) in ef4_filter_get_rx_id_limit()
[all …]
Dnet_driver.h217 struct ef4_nic *efx ____cacheline_aligned_in_smp;
332 struct ef4_nic *efx;
408 struct ef4_nic *efx;
461 struct ef4_nic *efx;
480 void (*handle_no_channel)(struct ef4_nic *);
525 struct ef4_nic;
572 int (*probe) (struct ef4_nic *efx);
573 int (*init) (struct ef4_nic *efx);
574 void (*fini) (struct ef4_nic *efx);
575 void (*remove) (struct ef4_nic *efx);
[all …]
Dnic.h25 static inline int ef4_nic_rev(struct ef4_nic *efx) in ef4_nic_rev()
30 u32 ef4_farch_fpga_ver(struct ef4_nic *efx);
33 static inline bool ef4_nic_is_dual_func(struct ef4_nic *efx) in ef4_nic_is_dual_func()
158 int (*init) (struct ef4_nic *nic);
159 void (*init_phy) (struct ef4_nic *efx);
160 void (*fini) (struct ef4_nic *nic);
161 void (*set_id_led) (struct ef4_nic *efx, enum ef4_led_mode mode);
162 int (*monitor) (struct ef4_nic *nic);
284 struct ef4_nic *efx;
297 static inline struct falcon_board *falcon_board(struct ef4_nic *efx) in falcon_board()
[all …]
Dmdio_10g.h25 static inline int ef4_mdio_read(struct ef4_nic *efx, int devad, int addr) in ef4_mdio_read()
31 ef4_mdio_write(struct ef4_nic *efx, int devad, int addr, int value) in ef4_mdio_write()
36 static inline u32 ef4_mdio_read_id(struct ef4_nic *efx, int mmd) in ef4_mdio_read_id()
43 static inline bool ef4_mdio_phyxgxs_lane_sync(struct ef4_nic *efx) in ef4_mdio_phyxgxs_lane_sync()
67 int ef4_mdio_reset_mmd(struct ef4_nic *efx, int mmd, int spins, int spintime);
70 int ef4_mdio_check_mmds(struct ef4_nic *efx, unsigned int mmd_mask);
73 bool ef4_mdio_links_ok(struct ef4_nic *efx, unsigned int mmd_mask);
76 void ef4_mdio_transmit_disable(struct ef4_nic *efx);
79 void ef4_mdio_phy_reconfigure(struct ef4_nic *efx);
82 void ef4_mdio_set_mmds_lpower(struct ef4_nic *efx, int low_power,
[all …]
Defx.c197 static int ef4_soft_enable_interrupts(struct ef4_nic *efx);
198 static void ef4_soft_disable_interrupts(struct ef4_nic *efx);
200 static void ef4_remove_channels(struct ef4_nic *efx);
202 static void ef4_remove_port(struct ef4_nic *efx);
204 static void ef4_fini_napi(struct ef4_nic *efx);
206 static void ef4_fini_struct(struct ef4_nic *efx);
207 static void ef4_start_all(struct ef4_nic *efx);
208 static void ef4_stop_all(struct ef4_nic *efx);
218 static int ef4_check_disabled(struct ef4_nic *efx) in ef4_check_disabled()
279 static void ef4_update_irq_mod(struct ef4_nic *efx, struct ef4_channel *channel) in ef4_update_irq_mod()
[all …]
Dtxc43128_phy.c171 static void txc_reset_logic(struct ef4_nic *efx);
174 void falcon_txc_set_gpio_val(struct ef4_nic *efx, int pin, int on) in falcon_txc_set_gpio_val()
180 void falcon_txc_set_gpio_dir(struct ef4_nic *efx, int pin, int dir) in falcon_txc_set_gpio_dir()
187 static int txc_reset_phy(struct ef4_nic *efx) in txc_reset_phy()
208 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) in txc_bist_one()
273 static int txc_bist(struct ef4_nic *efx) in txc_bist()
280 static void txc_apply_defaults(struct ef4_nic *efx) in txc_apply_defaults()
324 static int txc43128_phy_probe(struct ef4_nic *efx) in txc43128_phy_probe()
344 static int txc43128_phy_init(struct ef4_nic *efx) in txc43128_phy_init()
362 static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd) in txc_glrgs_lane_power()
[all …]
Dtenxpress.c151 static int tenxpress_init(struct ef4_nic *efx) in tenxpress_init()
166 static int tenxpress_phy_probe(struct ef4_nic *efx) in tenxpress_phy_probe()
188 static int tenxpress_phy_init(struct ef4_nic *efx) in tenxpress_phy_init()
223 static int tenxpress_special_reset(struct ef4_nic *efx) in tenxpress_special_reset()
256 static void sfx7101_check_bad_lp(struct ef4_nic *efx, bool link_ok) in sfx7101_check_bad_lp()
300 static bool sfx7101_link_ok(struct ef4_nic *efx) in sfx7101_link_ok()
308 static void tenxpress_ext_loopback(struct ef4_nic *efx) in tenxpress_ext_loopback()
315 static void tenxpress_low_power(struct ef4_nic *efx) in tenxpress_low_power()
322 static int tenxpress_phy_reconfigure(struct ef4_nic *efx) in tenxpress_phy_reconfigure()
355 static bool tenxpress_phy_poll(struct ef4_nic *efx) in tenxpress_phy_poll()
[all …]
Dfalcon_boards.c90 static int ef4_init_lm87(struct ef4_nic *efx, const struct i2c_board_info *info, in ef4_init_lm87()
119 static void ef4_fini_lm87(struct ef4_nic *efx) in ef4_fini_lm87()
124 static int ef4_check_lm87(struct ef4_nic *efx, unsigned mask) in ef4_check_lm87()
182 ef4_init_lm87(struct ef4_nic *efx, const struct i2c_board_info *info, in ef4_init_lm87()
187 static inline void ef4_fini_lm87(struct ef4_nic *efx) in ef4_fini_lm87()
190 static inline int ef4_check_lm87(struct ef4_nic *efx, unsigned mask) in ef4_check_lm87()
258 static void sfe4001_poweroff(struct ef4_nic *efx) in sfe4001_poweroff()
272 static int sfe4001_poweron(struct ef4_nic *efx) in sfe4001_poweron()
363 struct ef4_nic *efx = pci_get_drvdata(to_pci_dev(dev)); in show_phy_flash_cfg()
371 struct ef4_nic *efx = pci_get_drvdata(to_pci_dev(dev)); in set_phy_flash_cfg()
[all …]
Dqt202x_phy.c53 void falcon_qt202x_set_led(struct ef4_nic *p, int led, int mode) in falcon_qt202x_set_led()
76 static int qt2025c_wait_heartbeat(struct ef4_nic *efx) in qt2025c_wait_heartbeat()
108 static int qt2025c_wait_fw_status_good(struct ef4_nic *efx) in qt2025c_wait_fw_status_good()
130 static void qt2025c_restart_firmware(struct ef4_nic *efx) in qt2025c_restart_firmware()
138 static int qt2025c_wait_reset(struct ef4_nic *efx) in qt2025c_wait_reset()
163 static void qt2025c_firmware_id(struct ef4_nic *efx) in qt2025c_firmware_id()
183 static void qt2025c_bug17190_workaround(struct ef4_nic *efx) in qt2025c_bug17190_workaround()
216 static int qt2025c_select_phy_mode(struct ef4_nic *efx) in qt2025c_select_phy_mode()
309 static int qt202x_reset_phy(struct ef4_nic *efx) in qt202x_reset_phy()
342 static int qt202x_phy_probe(struct ef4_nic *efx) in qt202x_phy_probe()
[all …]
Dio.h70 static inline void _ef4_writeq(struct ef4_nic *efx, __le64 value, in _ef4_writeq()
75 static inline __le64 _ef4_readq(struct ef4_nic *efx, unsigned int reg) in _ef4_readq()
81 static inline void _ef4_writed(struct ef4_nic *efx, __le32 value, in _ef4_writed()
86 static inline __le32 _ef4_readd(struct ef4_nic *efx, unsigned int reg) in _ef4_readd()
92 static inline void ef4_writeo(struct ef4_nic *efx, const ef4_oword_t *value, in ef4_writeo()
116 static inline void ef4_sram_writeq(struct ef4_nic *efx, void __iomem *membase, in ef4_sram_writeq()
138 static inline void ef4_writed(struct ef4_nic *efx, const ef4_dword_t *value, in ef4_writed()
150 static inline void ef4_reado(struct ef4_nic *efx, ef4_oword_t *value, in ef4_reado()
168 static inline void ef4_sram_readq(struct ef4_nic *efx, void __iomem *membase, in ef4_sram_readq()
189 static inline void ef4_readd(struct ef4_nic *efx, ef4_dword_t *value, in ef4_readd()
[all …]
Dfalcon.c304 static int falcon_reset_hw(struct ef4_nic *efx, enum reset_type method);
305 static void falcon_reconfigure_mac_wrapper(struct ef4_nic *efx);
331 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setsda()
341 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setscl()
351 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_getsda()
360 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_getscl()
380 struct ef4_nic *efx = channel->efx; in falcon_push_irq_moderation()
403 static void falcon_deconfigure_mac_wrapper(struct ef4_nic *efx);
405 static void falcon_prepare_flush(struct ef4_nic *efx) in falcon_prepare_flush()
425 static inline void falcon_irq_ack_a1(struct ef4_nic *efx) in falcon_irq_ack_a1()
[all …]
Dmdio_10g.c34 int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd, in ef4_mdio_reset_mmd()
54 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) in ef4_mdio_check_mmd()
75 int ef4_mdio_wait_reset_mmds(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_wait_reset_mmds()
116 int ef4_mdio_check_mmds(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_check_mmds()
155 bool ef4_mdio_links_ok(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_links_ok()
181 void ef4_mdio_transmit_disable(struct ef4_nic *efx) in ef4_mdio_transmit_disable()
188 void ef4_mdio_phy_reconfigure(struct ef4_nic *efx) in ef4_mdio_phy_reconfigure()
201 static void ef4_mdio_set_mmd_lpower(struct ef4_nic *efx, in ef4_mdio_set_mmd_lpower()
215 void ef4_mdio_set_mmds_lpower(struct ef4_nic *efx, in ef4_mdio_set_mmds_lpower()
233 int ef4_mdio_set_link_ksettings(struct ef4_nic *efx, in ef4_mdio_set_link_ksettings()
[all …]
Dphy.h18 void tenxpress_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode);
37 void falcon_qt202x_set_led(struct ef4_nic *p, int led, int state);
47 void falcon_txc_set_gpio_dir(struct ef4_nic *efx, int pin, int dir);
48 void falcon_txc_set_gpio_val(struct ef4_nic *efx, int pin, int val);
Dselftest.h47 void ef4_loopback_rx_packet(struct ef4_nic *efx, const char *buf_ptr,
49 int ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests,
51 void ef4_selftest_async_start(struct ef4_nic *efx);
52 void ef4_selftest_async_cancel(struct ef4_nic *efx);
Dfarch.c87 static inline void ef4_write_buf_tbl(struct ef4_nic *efx, ef4_qword_t *value, in ef4_write_buf_tbl()
101 int ef4_farch_test_registers(struct ef4_nic *efx, in ef4_farch_test_registers()
171 ef4_init_special_buffer(struct ef4_nic *efx, struct ef4_special_buffer *buffer) in ef4_init_special_buffer()
197 ef4_fini_special_buffer(struct ef4_nic *efx, struct ef4_special_buffer *buffer) in ef4_fini_special_buffer()
226 static int ef4_alloc_special_buffer(struct ef4_nic *efx, in ef4_alloc_special_buffer()
252 ef4_free_special_buffer(struct ef4_nic *efx, struct ef4_special_buffer *buffer) in ef4_free_special_buffer()
368 struct ef4_nic *efx = tx_queue->efx; in ef4_farch_tx_probe()
378 struct ef4_nic *efx = tx_queue->efx; in ef4_farch_tx_init()
434 struct ef4_nic *efx = tx_queue->efx; in ef4_farch_flush_tx_queue()
448 struct ef4_nic *efx = tx_queue->efx; in ef4_farch_tx_fini()
[all …]
Dethtool.c96 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_phys_id()
122 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_link_ksettings()
146 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_link_ksettings()
166 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_drvinfo()
181 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_regs()
189 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_msglevel()
195 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_msglevel()
254 static int ef4_fill_loopback_test(struct ef4_nic *efx, in ef4_fill_loopback_test()
299 static int ef4_ethtool_fill_self_tests(struct ef4_nic *efx, in ef4_ethtool_fill_self_tests()
359 static size_t ef4_describe_per_queue_stats(struct ef4_nic *efx, u8 *strings) in ef4_describe_per_queue_stats()
[all …]
Dselftest.c99 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_phy_alive()
111 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_nvram()
133 static int ef4_test_interrupts(struct ef4_nic *efx, in ef4_test_interrupts()
175 static int ef4_test_eventq_irq(struct ef4_nic *efx, in ef4_test_eventq_irq()
256 static int ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests, in ef4_test_phy()
286 void ef4_loopback_rx_packet(struct ef4_nic *efx, in ef4_loopback_rx_packet()
378 static void ef4_iterate_state(struct ef4_nic *efx) in ef4_iterate_state()
415 struct ef4_nic *efx = tx_queue->efx; in ef4_begin_loopback()
462 static int ef4_poll_loopback(struct ef4_nic *efx) in ef4_poll_loopback()
472 struct ef4_nic *efx = tx_queue->efx; in ef4_end_loopback()
[all …]
Dmtd.c26 struct ef4_nic *efx = mtd->priv; in ef4_mtd_erase()
34 struct ef4_nic *efx = mtd->priv; in ef4_mtd_sync()
57 int ef4_mtd_add(struct ef4_nic *efx, struct ef4_mtd_partition *parts, in ef4_mtd_add()
98 void ef4_mtd_remove(struct ef4_nic *efx) in ef4_mtd_remove()
116 void ef4_mtd_rename(struct ef4_nic *efx) in ef4_mtd_rename()
Drx.c65 static inline u32 ef4_rx_buf_hash(struct ef4_nic *efx, const u8 *eh) in ef4_rx_buf_hash()
87 static inline void ef4_sync_rx_buffer(struct ef4_nic *efx, in ef4_sync_rx_buffer()
95 void ef4_rx_config_page_split(struct ef4_nic *efx) in ef4_rx_config_page_split()
111 struct ef4_nic *efx = rx_queue->efx; in ef4_reuse_page()
154 struct ef4_nic *efx = rx_queue->efx; in ef4_init_rx_buffers()
213 static void ef4_unmap_rx_buffer(struct ef4_nic *efx, in ef4_unmap_rx_buffer()
249 struct ef4_nic *efx = rx_queue->efx; in ef4_recycle_rx_page()
329 struct ef4_nic *efx = rx_queue->efx; in ef4_fast_push_rx_descriptors()
392 struct ef4_nic *efx = rx_queue->efx; in ef4_rx_packet__check_len()
431 struct ef4_nic *efx = channel->efx; in ef4_rx_packet_gro()
[all …]
Dtx.c84 unsigned int ef4_tx_max_skb_descs(struct ef4_nic *efx) in ef4_tx_max_skb_descs()
113 struct ef4_nic *efx = txq1->efx; in ef4_tx_maybe_stop_queue()
211 struct ef4_nic *efx = tx_queue->efx; in ef4_tx_map_data()
362 struct ef4_nic *efx = tx_queue->efx; in ef4_dequeue_buffers()
399 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_hard_start_xmit()
418 struct ef4_nic *efx = tx_queue->efx; in ef4_init_tx_queue_core_txq()
431 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_setup_tc()
497 struct ef4_nic *efx = tx_queue->efx; in ef4_xmit_done()
543 struct ef4_nic *efx = tx_queue->efx; in ef4_probe_tx_queue()
587 struct ef4_nic *efx = tx_queue->efx; in ef4_init_tx_queue()
Dnic.c33 int ef4_nic_alloc_buffer(struct ef4_nic *efx, struct ef4_buffer *buffer, in ef4_nic_alloc_buffer()
44 void ef4_nic_free_buffer(struct ef4_nic *efx, struct ef4_buffer *buffer) in ef4_nic_free_buffer()
68 int ef4_nic_irq_test_start(struct ef4_nic *efx) in ef4_nic_irq_test_start()
78 int ef4_nic_init_interrupt(struct ef4_nic *efx) in ef4_nic_init_interrupt()
149 void ef4_nic_fini_interrupt(struct ef4_nic *efx) in ef4_nic_fini_interrupt()
364 size_t ef4_nic_get_regs_len(struct ef4_nic *efx) in ef4_nic_get_regs_len()
387 void ef4_nic_get_regs(struct ef4_nic *efx, void *buf) in ef4_nic_get_regs()
518 void ef4_nic_fix_nodesc_drop_stat(struct ef4_nic *efx, u64 *rx_nodesc_drops) in ef4_nic_fix_nodesc_drop_stat()