Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/sfc/falcon/
H A Defx.h34 unsigned int ef4_tx_max_skb_descs(struct ef4_nic *efx);
38 void ef4_set_default_rx_indir_table(struct ef4_nic *efx);
39 void ef4_rx_config_page_split(struct ef4_nic *efx);
73 static inline bool ef4_rss_enabled(struct ef4_nic *efx) in ef4_rss_enabled()
80 void ef4_mac_reconfigure(struct ef4_nic *efx);
107 static inline s32 ef4_filter_insert_filter(struct ef4_nic *efx, in ef4_filter_insert_filter()
123 static inline int ef4_filter_remove_id_safe(struct ef4_nic *efx, in ef4_filter_remove_id_safe()
141 ef4_filter_get_filter_safe(struct ef4_nic *efx, in ef4_filter_get_filter_safe()
148 static inline u32 ef4_filter_count_rx_used(struct ef4_nic *efx, in ef4_filter_count_rx_used()
153 static inline u32 ef4_filter_get_rx_id_limit(struct ef4_nic *efx) in ef4_filter_get_rx_id_limit()
[all …]
H A Dnet_driver.h214 struct ef4_nic *efx ____cacheline_aligned_in_smp;
329 struct ef4_nic *efx;
405 struct ef4_nic *efx;
458 struct ef4_nic *efx;
477 void (*handle_no_channel)(struct ef4_nic *);
522 struct ef4_nic;
569 int (*probe) (struct ef4_nic *efx);
570 int (*init) (struct ef4_nic *efx);
571 void (*fini) (struct ef4_nic *efx);
572 void (*remove) (struct ef4_nic *efx);
[all …]
H A Dnic.h22 static inline int ef4_nic_rev(struct ef4_nic *efx) in ef4_nic_rev()
27 u32 ef4_farch_fpga_ver(struct ef4_nic *efx);
30 static inline bool ef4_nic_is_dual_func(struct ef4_nic *efx) in ef4_nic_is_dual_func()
155 int (*init) (struct ef4_nic *nic);
156 void (*init_phy) (struct ef4_nic *efx);
157 void (*fini) (struct ef4_nic *nic);
158 void (*set_id_led) (struct ef4_nic *efx, enum ef4_led_mode mode);
159 int (*monitor) (struct ef4_nic *nic);
281 struct ef4_nic *efx;
294 static inline struct falcon_board *falcon_board(struct ef4_nic *efx) in falcon_board()
[all …]
H A Dmdio_10g.h22 static inline int ef4_mdio_read(struct ef4_nic *efx, int devad, int addr) in ef4_mdio_read()
28 ef4_mdio_write(struct ef4_nic *efx, int devad, int addr, int value) in ef4_mdio_write()
33 static inline u32 ef4_mdio_read_id(struct ef4_nic *efx, int mmd) in ef4_mdio_read_id()
40 static inline bool ef4_mdio_phyxgxs_lane_sync(struct ef4_nic *efx) in ef4_mdio_phyxgxs_lane_sync()
64 int ef4_mdio_reset_mmd(struct ef4_nic *efx, int mmd, int spins, int spintime);
67 int ef4_mdio_check_mmds(struct ef4_nic *efx, unsigned int mmd_mask);
70 bool ef4_mdio_links_ok(struct ef4_nic *efx, unsigned int mmd_mask);
73 void ef4_mdio_transmit_disable(struct ef4_nic *efx);
76 void ef4_mdio_phy_reconfigure(struct ef4_nic *efx);
79 void ef4_mdio_set_mmds_lpower(struct ef4_nic *efx, int low_power,
[all …]
H A Defx.c188 static int ef4_soft_enable_interrupts(struct ef4_nic *efx);
189 static void ef4_soft_disable_interrupts(struct ef4_nic *efx);
191 static void ef4_remove_channels(struct ef4_nic *efx);
193 static void ef4_remove_port(struct ef4_nic *efx);
195 static void ef4_fini_napi(struct ef4_nic *efx);
197 static void ef4_fini_struct(struct ef4_nic *efx);
198 static void ef4_start_all(struct ef4_nic *efx);
199 static void ef4_stop_all(struct ef4_nic *efx);
209 static int ef4_check_disabled(struct ef4_nic *efx) in ef4_check_disabled()
270 static void ef4_update_irq_mod(struct ef4_nic *efx, struct ef4_channel *channel) in ef4_update_irq_mod()
[all …]
H A Dtxc43128_phy.c168 static void txc_reset_logic(struct ef4_nic *efx);
171 void falcon_txc_set_gpio_val(struct ef4_nic *efx, int pin, int on) in falcon_txc_set_gpio_val()
177 void falcon_txc_set_gpio_dir(struct ef4_nic *efx, int pin, int dir) in falcon_txc_set_gpio_dir()
184 static int txc_reset_phy(struct ef4_nic *efx) in txc_reset_phy()
205 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) in txc_bist_one()
270 static int txc_bist(struct ef4_nic *efx) in txc_bist()
277 static void txc_apply_defaults(struct ef4_nic *efx) in txc_apply_defaults()
321 static int txc43128_phy_probe(struct ef4_nic *efx) in txc43128_phy_probe()
341 static int txc43128_phy_init(struct ef4_nic *efx) in txc43128_phy_init()
359 static void txc_glrgs_lane_power(struct ef4_nic *efx, int mmd) in txc_glrgs_lane_power()
[all …]
H A Dtenxpress.c148 static int tenxpress_init(struct ef4_nic *efx) in tenxpress_init()
163 static int tenxpress_phy_probe(struct ef4_nic *efx) in tenxpress_phy_probe()
185 static int tenxpress_phy_init(struct ef4_nic *efx) in tenxpress_phy_init()
220 static int tenxpress_special_reset(struct ef4_nic *efx) in tenxpress_special_reset()
253 static void sfx7101_check_bad_lp(struct ef4_nic *efx, bool link_ok) in sfx7101_check_bad_lp()
297 static bool sfx7101_link_ok(struct ef4_nic *efx) in sfx7101_link_ok()
305 static void tenxpress_ext_loopback(struct ef4_nic *efx) in tenxpress_ext_loopback()
312 static void tenxpress_low_power(struct ef4_nic *efx) in tenxpress_low_power()
319 static int tenxpress_phy_reconfigure(struct ef4_nic *efx) in tenxpress_phy_reconfigure()
352 static bool tenxpress_phy_poll(struct ef4_nic *efx) in tenxpress_phy_poll()
[all …]
H A Dfalcon_boards.c87 static int ef4_init_lm87(struct ef4_nic *efx, const struct i2c_board_info *info, in ef4_init_lm87()
116 static void ef4_fini_lm87(struct ef4_nic *efx) in ef4_fini_lm87()
121 static int ef4_check_lm87(struct ef4_nic *efx, unsigned mask) in ef4_check_lm87()
179 ef4_init_lm87(struct ef4_nic *efx, const struct i2c_board_info *info, in ef4_init_lm87()
184 static inline void ef4_fini_lm87(struct ef4_nic *efx) in ef4_fini_lm87()
187 static inline int ef4_check_lm87(struct ef4_nic *efx, unsigned mask) in ef4_check_lm87()
255 static void sfe4001_poweroff(struct ef4_nic *efx) in sfe4001_poweroff()
269 static int sfe4001_poweron(struct ef4_nic *efx) in sfe4001_poweron()
360 struct ef4_nic *efx = dev_get_drvdata(dev); in phy_flash_cfg_show()
368 struct ef4_nic *efx = dev_get_drvdata(dev); in phy_flash_cfg_store()
[all …]
H A Dqt202x_phy.c50 void falcon_qt202x_set_led(struct ef4_nic *p, int led, int mode) in falcon_qt202x_set_led()
73 static int qt2025c_wait_heartbeat(struct ef4_nic *efx) in qt2025c_wait_heartbeat()
105 static int qt2025c_wait_fw_status_good(struct ef4_nic *efx) in qt2025c_wait_fw_status_good()
127 static void qt2025c_restart_firmware(struct ef4_nic *efx) in qt2025c_restart_firmware()
135 static int qt2025c_wait_reset(struct ef4_nic *efx) in qt2025c_wait_reset()
160 static void qt2025c_firmware_id(struct ef4_nic *efx) in qt2025c_firmware_id()
180 static void qt2025c_bug17190_workaround(struct ef4_nic *efx) in qt2025c_bug17190_workaround()
213 static int qt2025c_select_phy_mode(struct ef4_nic *efx) in qt2025c_select_phy_mode()
306 static int qt202x_reset_phy(struct ef4_nic *efx) in qt202x_reset_phy()
339 static int qt202x_phy_probe(struct ef4_nic *efx) in qt202x_phy_probe()
[all …]
H A Dio.h67 static inline void _ef4_writeq(struct ef4_nic *efx, __le64 value, in _ef4_writeq()
72 static inline __le64 _ef4_readq(struct ef4_nic *efx, unsigned int reg) in _ef4_readq()
78 static inline void _ef4_writed(struct ef4_nic *efx, __le32 value, in _ef4_writed()
83 static inline __le32 _ef4_readd(struct ef4_nic *efx, unsigned int reg) in _ef4_readd()
89 static inline void ef4_writeo(struct ef4_nic *efx, const ef4_oword_t *value, in ef4_writeo()
112 static inline void ef4_sram_writeq(struct ef4_nic *efx, void __iomem *membase, in ef4_sram_writeq()
133 static inline void ef4_writed(struct ef4_nic *efx, const ef4_dword_t *value, in ef4_writed()
145 static inline void ef4_reado(struct ef4_nic *efx, ef4_oword_t *value, in ef4_reado()
163 static inline void ef4_sram_readq(struct ef4_nic *efx, void __iomem *membase, in ef4_sram_readq()
184 static inline void ef4_readd(struct ef4_nic *efx, ef4_dword_t *value, in ef4_readd()
[all …]
H A Dfalcon.c301 static int falcon_reset_hw(struct ef4_nic *efx, enum reset_type method);
302 static void falcon_reconfigure_mac_wrapper(struct ef4_nic *efx);
328 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setsda()
338 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setscl()
348 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_getsda()
357 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_getscl()
377 struct ef4_nic *efx = channel->efx; in falcon_push_irq_moderation()
400 static void falcon_deconfigure_mac_wrapper(struct ef4_nic *efx);
402 static void falcon_prepare_flush(struct ef4_nic *efx) in falcon_prepare_flush()
422 static inline void falcon_irq_ack_a1(struct ef4_nic *efx) in falcon_irq_ack_a1()
[all …]
H A Dmdio_10g.c31 int ef4_mdio_reset_mmd(struct ef4_nic *port, int mmd, in ef4_mdio_reset_mmd()
51 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) in ef4_mdio_check_mmd()
72 int ef4_mdio_wait_reset_mmds(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_wait_reset_mmds()
113 int ef4_mdio_check_mmds(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_check_mmds()
152 bool ef4_mdio_links_ok(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_links_ok()
178 void ef4_mdio_transmit_disable(struct ef4_nic *efx) in ef4_mdio_transmit_disable()
185 void ef4_mdio_phy_reconfigure(struct ef4_nic *efx) in ef4_mdio_phy_reconfigure()
198 static void ef4_mdio_set_mmd_lpower(struct ef4_nic *efx, in ef4_mdio_set_mmd_lpower()
212 void ef4_mdio_set_mmds_lpower(struct ef4_nic *efx, in ef4_mdio_set_mmds_lpower()
230 int ef4_mdio_set_link_ksettings(struct ef4_nic *efx, in ef4_mdio_set_link_ksettings()
[all …]
H A Dfarch.c84 static inline void ef4_write_buf_tbl(struct ef4_nic *efx, ef4_qword_t *value, in ef4_write_buf_tbl()
98 int ef4_farch_test_registers(struct ef4_nic *efx, in ef4_farch_test_registers()
168 ef4_init_special_buffer(struct ef4_nic *efx, struct ef4_special_buffer *buffer) in ef4_init_special_buffer()
194 ef4_fini_special_buffer(struct ef4_nic *efx, struct ef4_special_buffer *buffer) in ef4_fini_special_buffer()
223 static int ef4_alloc_special_buffer(struct ef4_nic *efx, in ef4_alloc_special_buffer()
249 ef4_free_special_buffer(struct ef4_nic *efx, struct ef4_special_buffer *buffer) in ef4_free_special_buffer()
365 struct ef4_nic *efx = tx_queue->efx; in ef4_farch_tx_probe()
375 struct ef4_nic *efx = tx_queue->efx; in ef4_farch_tx_init()
431 struct ef4_nic *efx = tx_queue->efx; in ef4_farch_flush_tx_queue()
445 struct ef4_nic *efx = tx_queue->efx; in ef4_farch_tx_fini()
[all …]
H A Dphy.h15 void tenxpress_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode);
34 void falcon_qt202x_set_led(struct ef4_nic *p, int led, int state);
44 void falcon_txc_set_gpio_dir(struct ef4_nic *efx, int pin, int dir);
45 void falcon_txc_set_gpio_val(struct ef4_nic *efx, int pin, int val);
H A Dselftest.h44 void ef4_loopback_rx_packet(struct ef4_nic *efx, const char *buf_ptr,
46 int ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests,
48 void ef4_selftest_async_start(struct ef4_nic *efx);
49 void ef4_selftest_async_cancel(struct ef4_nic *efx);
H A Dethtool.c93 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_phys_id()
119 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_link_ksettings()
143 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_link_ksettings()
163 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_drvinfo()
178 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_regs()
186 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_msglevel()
192 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_msglevel()
251 static int ef4_fill_loopback_test(struct ef4_nic *efx, in ef4_fill_loopback_test()
296 static int ef4_ethtool_fill_self_tests(struct ef4_nic *efx, in ef4_ethtool_fill_self_tests()
356 static size_t ef4_describe_per_queue_stats(struct ef4_nic *efx, u8 *strings) in ef4_describe_per_queue_stats()
[all …]
H A Dselftest.c101 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_phy_alive()
113 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_nvram()
135 static int ef4_test_interrupts(struct ef4_nic *efx, in ef4_test_interrupts()
177 static int ef4_test_eventq_irq(struct ef4_nic *efx, in ef4_test_eventq_irq()
258 static int ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests, in ef4_test_phy()
288 void ef4_loopback_rx_packet(struct ef4_nic *efx, in ef4_loopback_rx_packet()
382 static void ef4_iterate_state(struct ef4_nic *efx) in ef4_iterate_state()
420 struct ef4_nic *efx = tx_queue->efx; in ef4_begin_loopback()
471 static int ef4_poll_loopback(struct ef4_nic *efx) in ef4_poll_loopback()
481 struct ef4_nic *efx = tx_queue->efx; in ef4_end_loopback()
[all …]
H A Dmtd.c23 struct ef4_nic *efx = mtd->priv; in ef4_mtd_erase()
31 struct ef4_nic *efx = mtd->priv; in ef4_mtd_sync()
54 int ef4_mtd_add(struct ef4_nic *efx, struct ef4_mtd_partition *parts, in ef4_mtd_add()
95 void ef4_mtd_remove(struct ef4_nic *efx) in ef4_mtd_remove()
113 void ef4_mtd_rename(struct ef4_nic *efx) in ef4_mtd_rename()
H A Drx.c62 static inline u32 ef4_rx_buf_hash(struct ef4_nic *efx, const u8 *eh) in ef4_rx_buf_hash()
84 static inline void ef4_sync_rx_buffer(struct ef4_nic *efx, in ef4_sync_rx_buffer()
92 void ef4_rx_config_page_split(struct ef4_nic *efx) in ef4_rx_config_page_split()
108 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()
333 struct ef4_nic *efx = rx_queue->efx; in ef4_fast_push_rx_descriptors()
396 struct ef4_nic *efx = rx_queue->efx; in ef4_rx_packet__check_len()
434 struct ef4_nic *efx = channel->efx; in ef4_rx_packet_gro()
[all …]
H A Dtx.c81 unsigned int ef4_tx_max_skb_descs(struct ef4_nic *efx) in ef4_tx_max_skb_descs()
111 struct ef4_nic *efx = txq1->efx; in ef4_tx_maybe_stop_queue()
209 struct ef4_nic *efx = tx_queue->efx; in ef4_tx_map_data()
360 struct ef4_nic *efx = tx_queue->efx; in ef4_dequeue_buffers()
397 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_hard_start_xmit()
416 struct ef4_nic *efx = tx_queue->efx; in ef4_init_tx_queue_core_txq()
429 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_setup_tc()
495 struct ef4_nic *efx = tx_queue->efx; in ef4_xmit_done()
541 struct ef4_nic *efx = tx_queue->efx; in ef4_probe_tx_queue()
585 struct ef4_nic *efx = tx_queue->efx; in ef4_init_tx_queue()
H A Dnic.c30 int ef4_nic_alloc_buffer(struct ef4_nic *efx, struct ef4_buffer *buffer, in ef4_nic_alloc_buffer()
41 void ef4_nic_free_buffer(struct ef4_nic *efx, struct ef4_buffer *buffer) in ef4_nic_free_buffer()
65 int ef4_nic_irq_test_start(struct ef4_nic *efx) in ef4_nic_irq_test_start()
75 int ef4_nic_init_interrupt(struct ef4_nic *efx) in ef4_nic_init_interrupt()
146 void ef4_nic_fini_interrupt(struct ef4_nic *efx) in ef4_nic_fini_interrupt()
361 size_t ef4_nic_get_regs_len(struct ef4_nic *efx) in ef4_nic_get_regs_len()
384 void ef4_nic_get_regs(struct ef4_nic *efx, void *buf) in ef4_nic_get_regs()
515 void ef4_nic_fix_nodesc_drop_stat(struct ef4_nic *efx, u64 *rx_nodesc_drops) in ef4_nic_fix_nodesc_drop_stat()