Home
last modified time | relevance | path

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

/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 *ef in ef4_filter_count_rx_used()
[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 *ef
763 struct ef4_nic { global() struct
768 primaryef4_nic global() argument
772 typeef4_nic global() argument
773 legacy_irqef4_nic global() argument
774 eeh_disabled_legacy_irqef4_nic global() argument
775 workqueueef4_nic global() argument
776 workqueue_nameef4_nic global() argument
777 reset_workef4_nic global() argument
778 membase_physef4_nic global() argument
779 membaseef4_nic global() argument
781 interrupt_modeef4_nic global() argument
782 timer_quantum_nsef4_nic global() argument
783 timer_max_nsef4_nic global() argument
784 irq_rx_adaptiveef4_nic global() argument
785 irq_mod_step_usef4_nic global() argument
786 irq_rx_moderation_usef4_nic global() argument
787 msg_enableef4_nic global() argument
789 stateef4_nic global() argument
790 reset_pendingef4_nic global() argument
792 channelef4_nic global() argument
793 msi_contextef4_nic global() argument
795 extra_channel_typeef4_nic global() argument
797 rxq_entriesef4_nic global() argument
798 txq_entriesef4_nic global() argument
799 txq_stop_threshef4_nic global() argument
800 txq_wake_threshef4_nic global() argument
802 tx_dc_baseef4_nic global() argument
803 rx_dc_baseef4_nic global() argument
804 sram_lim_qwef4_nic global() argument
805 next_buffer_tableef4_nic global() argument
807 max_channelsef4_nic global() argument
808 max_tx_channelsef4_nic global() argument
809 n_channelsef4_nic global() argument
810 n_rx_channelsef4_nic global() argument
811 rss_spreadef4_nic global() argument
812 tx_channel_offsetef4_nic global() argument
813 n_tx_channelsef4_nic global() argument
814 rx_ip_alignef4_nic global() argument
815 rx_dma_lenef4_nic global() argument
816 rx_buffer_orderef4_nic global() argument
817 rx_buffer_truesizeef4_nic global() argument
818 rx_page_buf_stepef4_nic global() argument
819 rx_bufs_per_pageef4_nic global() argument
820 rx_pages_per_batchef4_nic global() argument
821 rx_prefix_sizeef4_nic global() argument
822 rx_packet_hash_offsetef4_nic global() argument
823 rx_packet_len_offsetef4_nic global() argument
824 rx_packet_ts_offsetef4_nic global() argument
825 rx_hash_keyef4_nic global() argument
826 rx_indir_tableef4_nic global() argument
827 rx_scatteref4_nic global() argument
829 int_error_countef4_nic global() argument
830 int_error_expireef4_nic global() argument
832 irq_soft_enabledef4_nic global() argument
833 irq_statusef4_nic global() argument
834 irq_zero_countef4_nic global() argument
835 irq_levelef4_nic global() argument
836 selftest_workef4_nic global() argument
839 mtd_listef4_nic global() argument
842 nic_dataef4_nic global() argument
844 mac_lockef4_nic global() argument
845 mac_workef4_nic global() argument
846 port_enabledef4_nic global() argument
848 mc_bist_for_other_fnef4_nic global() argument
849 port_initializedef4_nic global() argument
850 net_devef4_nic global() argument
852 fixed_featuresef4_nic global() argument
854 stats_bufferef4_nic global() argument
855 rx_nodesc_drops_totalef4_nic global() argument
856 rx_nodesc_drops_while_downef4_nic global() argument
857 rx_nodesc_drops_prev_stateef4_nic global() argument
859 phy_typeef4_nic global() argument
860 phy_opef4_nic global() argument
861 phy_dataef4_nic global() argument
862 mdioef4_nic global() argument
863 phy_modeef4_nic global() argument
865 link_advertisingef4_nic global() argument
866 link_stateef4_nic global() argument
867 n_link_state_changesef4_nic global() argument
869 unicast_filteref4_nic global() argument
870 multicast_hashef4_nic global() argument
871 wanted_fcef4_nic global() argument
872 fc_disableef4_nic global() argument
874 rx_resetef4_nic global() argument
875 loopback_modeef4_nic global() argument
876 loopback_modesef4_nic global() argument
878 loopback_selftestef4_nic global() argument
880 filter_semef4_nic global() argument
904 n_rx_noskb_dropsef4_nic ef4_dev_registered() argument
[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);
267 * @efx: ef4_nic pointer
281 struct ef4_nic *ef
[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 *ef
[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 *ef
[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 *ef
[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 *ef
[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 *ef 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 *ef
[all...]
H A Dio.h32 * ef4_nic::biu_lock for this.
67 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 *ef
[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 *)dat in falcon_getscl()
[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 *ef
[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 *ef 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 *ef
[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 *ef 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()
397 struct ef4_nic *efx = rx_queue->efx; in ef4_rx_packet__check_len()
435 struct ef4_nic *ef in ef4_rx_packet_gro()
[all...]
H A Dtx.c73 unsigned int ef4_tx_max_skb_descs(struct ef4_nic *efx) in ef4_tx_max_skb_descs()
103 struct ef4_nic *efx = txq1->efx; in ef4_tx_maybe_stop_queue()
201 struct ef4_nic *efx = tx_queue->efx; in ef4_tx_map_data()
352 struct ef4_nic *efx = tx_queue->efx; in ef4_dequeue_buffers()
389 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_hard_start_xmit()
408 struct ef4_nic *efx = tx_queue->efx; in ef4_init_tx_queue_core_txq()
421 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_setup_tc()
487 struct ef4_nic *efx = tx_queue->efx; in ef4_xmit_done()
533 struct ef4_nic *efx = tx_queue->efx; in ef4_probe_tx_queue()
577 struct ef4_nic *ef in ef4_init_tx_queue()
[all...]
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()