Home
last modified time | relevance | path

Searched defs:efx (Results 1 – 25 of 26) sorted by relevance

12

/linux-3.3/drivers/net/ethernet/sfc/
Defx.c207 #define EFX_ASSERT_RESET_SERIALISED(efx) \ argument
229 struct efx_nic *efx = channel->efx; in efx_process_channel() local
279 struct efx_nic *efx = channel->efx; in efx_poll() local
335 struct efx_nic *efx = channel->efx; in efx_process_channel_now() local
373 struct efx_nic *efx = channel->efx; in efx_probe_eventq() local
424 efx_alloc_channel(struct efx_nic *efx, int i, struct efx_channel *old_channel) in efx_alloc_channel()
516 static void efx_set_channel_names(struct efx_nic *efx) in efx_set_channel_names()
538 static int efx_probe_channels(struct efx_nic *efx) in efx_probe_channels()
568 static void efx_init_channels(struct efx_nic *efx) in efx_init_channels()
648 static void efx_fini_channels(struct efx_nic *efx) in efx_fini_channels()
[all …]
Dfalcon.c56 struct efx_nic *efx = (struct efx_nic *)data; in falcon_setsda() local
66 struct efx_nic *efx = (struct efx_nic *)data; in falcon_setscl() local
76 struct efx_nic *efx = (struct efx_nic *)data; in falcon_getsda() local
85 struct efx_nic *efx = (struct efx_nic *)data; in falcon_getscl() local
105 struct efx_nic *efx = channel->efx; in falcon_push_irq_moderation() local
129 static void falcon_prepare_flush(struct efx_nic *efx) in falcon_prepare_flush()
149 inline void falcon_irq_ack_a1(struct efx_nic *efx) in falcon_irq_ack_a1()
161 struct efx_nic *efx = dev_id; in falcon_legacy_interrupt_a1() local
212 static int falcon_spi_poll(struct efx_nic *efx) in falcon_spi_poll()
220 static int falcon_spi_wait(struct efx_nic *efx) in falcon_spi_wait()
[all …]
Dio.h65 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq()
70 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq()
76 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed()
81 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd()
87 static inline void efx_writeo(struct efx_nic *efx, efx_oword_t *value, in efx_writeo()
111 static inline void efx_sram_writeq(struct efx_nic *efx, void __iomem *membase, in efx_sram_writeq()
133 static inline void efx_writed(struct efx_nic *efx, efx_dword_t *value, in efx_writed()
145 static inline void efx_reado(struct efx_nic *efx, efx_oword_t *value, in efx_reado()
163 static inline void efx_sram_readq(struct efx_nic *efx, void __iomem *membase, in efx_sram_readq()
184 static inline void efx_readd(struct efx_nic *efx, efx_dword_t *value, in efx_readd()
[all …]
Dsiena.c56 static void siena_push_multicast_hash(struct efx_nic *efx) in siena_push_multicast_hash()
68 struct efx_nic *efx = netdev_priv(net_dev); in siena_mdio_write() local
85 struct efx_nic *efx = netdev_priv(net_dev); in siena_mdio_read() local
101 static int siena_probe_port(struct efx_nic *efx) in siena_probe_port()
134 static void siena_remove_port(struct efx_nic *efx) in siena_remove_port()
169 static int siena_test_registers(struct efx_nic *efx) in siena_test_registers()
212 static int siena_reset_hw(struct efx_nic *efx, enum reset_type method) in siena_reset_hw()
227 static int siena_probe_nvconfig(struct efx_nic *efx) in siena_probe_nvconfig()
232 static int siena_probe_nic(struct efx_nic *efx) in siena_probe_nic()
324 static int siena_init_nic(struct efx_nic *efx) in siena_init_nic()
[all …]
Dmcdi.c35 #define MCDI_PDU(efx) \ argument
37 #define MCDI_DOORBELL(efx) \ argument
39 #define MCDI_REBOOT_FLAG(efx) \ argument
45 static inline struct efx_mcdi_iface *efx_mcdi(struct efx_nic *efx) in efx_mcdi()
53 void efx_mcdi_init(struct efx_nic *efx) in efx_mcdi_init()
69 static void efx_mcdi_copyin(struct efx_nic *efx, unsigned cmd, in efx_mcdi_copyin()
107 static void efx_mcdi_copyout(struct efx_nic *efx, u8 *outbuf, size_t outlen) in efx_mcdi_copyout()
120 static int efx_mcdi_poll(struct efx_nic *efx) in efx_mcdi_poll()
211 int efx_mcdi_poll_reboot(struct efx_nic *efx) in efx_mcdi_poll_reboot()
246 static int efx_mcdi_await_completion(struct efx_nic *efx) in efx_mcdi_await_completion()
[all …]
Dfalcon_xmac.c28 void falcon_setup_xaui(struct efx_nic *efx) in falcon_setup_xaui()
60 int falcon_reset_xaui(struct efx_nic *efx) in falcon_reset_xaui()
88 static void falcon_ack_status_intr(struct efx_nic *efx) in falcon_ack_status_intr()
108 static bool falcon_xgxs_link_ok(struct efx_nic *efx) in falcon_xgxs_link_ok()
131 static bool falcon_xmac_link_ok(struct efx_nic *efx) in falcon_xmac_link_ok()
146 static void falcon_reconfigure_xmac_core(struct efx_nic *efx) in falcon_reconfigure_xmac_core()
200 static void falcon_reconfigure_xgxs_core(struct efx_nic *efx) in falcon_reconfigure_xgxs_core()
248 static bool falcon_xmac_link_ok_retry(struct efx_nic *efx, int tries) in falcon_xmac_link_ok_retry()
273 static bool falcon_xmac_check_fault(struct efx_nic *efx) in falcon_xmac_check_fault()
278 static int falcon_reconfigure_xmac(struct efx_nic *efx) in falcon_reconfigure_xmac()
[all …]
Dmdio_10g.c54 static int efx_mdio_check_mmd(struct efx_nic *efx, int mmd) in efx_mdio_check_mmd()
75 int efx_mdio_wait_reset_mmds(struct efx_nic *efx, unsigned int mmd_mask) in efx_mdio_wait_reset_mmds()
116 int efx_mdio_check_mmds(struct efx_nic *efx, unsigned int mmd_mask) in efx_mdio_check_mmds()
155 bool efx_mdio_links_ok(struct efx_nic *efx, unsigned int mmd_mask) in efx_mdio_links_ok()
181 void efx_mdio_transmit_disable(struct efx_nic *efx) in efx_mdio_transmit_disable()
188 void efx_mdio_phy_reconfigure(struct efx_nic *efx) in efx_mdio_phy_reconfigure()
201 static void efx_mdio_set_mmd_lpower(struct efx_nic *efx, in efx_mdio_set_mmd_lpower()
215 void efx_mdio_set_mmds_lpower(struct efx_nic *efx, in efx_mdio_set_mmds_lpower()
233 int efx_mdio_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) in efx_mdio_set_settings()
264 void efx_mdio_an_reconfigure(struct efx_nic *efx) in efx_mdio_an_reconfigure()
[all …]
Dqt202x_phy.c76 static int qt2025c_wait_heartbeat(struct efx_nic *efx) in qt2025c_wait_heartbeat()
108 static int qt2025c_wait_fw_status_good(struct efx_nic *efx) in qt2025c_wait_fw_status_good()
130 static void qt2025c_restart_firmware(struct efx_nic *efx) in qt2025c_restart_firmware()
138 static int qt2025c_wait_reset(struct efx_nic *efx) in qt2025c_wait_reset()
163 static void qt2025c_firmware_id(struct efx_nic *efx) in qt2025c_firmware_id()
183 static void qt2025c_bug17190_workaround(struct efx_nic *efx) in qt2025c_bug17190_workaround()
216 static int qt2025c_select_phy_mode(struct efx_nic *efx) in qt2025c_select_phy_mode()
309 static int qt202x_reset_phy(struct efx_nic *efx) in qt202x_reset_phy()
342 static int qt202x_phy_probe(struct efx_nic *efx) in qt202x_phy_probe()
360 static int qt202x_phy_init(struct efx_nic *efx) in qt202x_phy_init()
[all …]
Dtxc43128_phy.c174 void falcon_txc_set_gpio_val(struct efx_nic *efx, int pin, int on) in falcon_txc_set_gpio_val()
180 void falcon_txc_set_gpio_dir(struct efx_nic *efx, int pin, int dir) in falcon_txc_set_gpio_dir()
187 static int txc_reset_phy(struct efx_nic *efx) in txc_reset_phy()
208 static int txc_bist_one(struct efx_nic *efx, int mmd, int test) in txc_bist_one()
273 static int txc_bist(struct efx_nic *efx) in txc_bist()
280 static void txc_apply_defaults(struct efx_nic *efx) in txc_apply_defaults()
324 static int txc43128_phy_probe(struct efx_nic *efx) in txc43128_phy_probe()
344 static int txc43128_phy_init(struct efx_nic *efx) in txc43128_phy_init()
362 static void txc_glrgs_lane_power(struct efx_nic *efx, int mmd) in txc_glrgs_lane_power()
376 static void txc_analog_lane_power(struct efx_nic *efx, int mmd) in txc_analog_lane_power()
[all …]
Dfalcon_boards.c90 static int efx_init_lm87(struct efx_nic *efx, struct i2c_board_info *info, in efx_init_lm87()
119 static void efx_fini_lm87(struct efx_nic *efx) in efx_fini_lm87()
124 static int efx_check_lm87(struct efx_nic *efx, unsigned mask) in efx_check_lm87()
182 efx_init_lm87(struct efx_nic *efx, struct i2c_board_info *info, in efx_init_lm87()
187 static inline void efx_fini_lm87(struct efx_nic *efx) in efx_fini_lm87()
190 static inline int efx_check_lm87(struct efx_nic *efx, unsigned mask) in efx_check_lm87()
258 static void sfe4001_poweroff(struct efx_nic *efx) in sfe4001_poweroff()
272 static int sfe4001_poweron(struct efx_nic *efx) in sfe4001_poweron()
363 struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev)); in show_phy_flash_cfg() local
371 struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev)); in set_phy_flash_cfg() local
[all …]
Dethtool.c184 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id() local
209 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_settings() local
233 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_settings() local
253 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo() local
271 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_regs() local
279 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_msglevel() local
285 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_msglevel() local
343 static int efx_fill_loopback_test(struct efx_nic *efx, in efx_fill_loopback_test()
381 static int efx_ethtool_fill_self_tests(struct efx_nic *efx, in efx_ethtool_fill_self_tests()
461 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_strings() local
[all …]
Dnic.c77 static inline void efx_write_buf_tbl(struct efx_nic *efx, efx_qword_t *value, in efx_write_buf_tbl()
115 int efx_nic_test_registers(struct efx_nic *efx, in efx_nic_test_registers()
187 efx_init_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_init_special_buffer()
213 efx_fini_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_fini_special_buffer()
242 static int efx_alloc_special_buffer(struct efx_nic *efx, in efx_alloc_special_buffer()
274 efx_free_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_free_special_buffer()
299 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer, in efx_nic_alloc_buffer()
311 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer) in efx_nic_free_buffer()
420 struct efx_nic *efx = tx_queue->efx; in efx_nic_probe_tx() local
430 struct efx_nic *efx = tx_queue->efx; in efx_nic_init_tx() local
[all …]
Dselftest.c58 #define INT_MODE(efx) \ argument
87 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive()
99 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram()
111 static int efx_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_chip()
131 static int efx_test_interrupts(struct efx_nic *efx, in efx_test_interrupts()
164 struct efx_nic *efx = channel->efx; in efx_test_eventq_irq() local
217 static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, in efx_test_phy()
241 void efx_loopback_rx_packet(struct efx_nic *efx, in efx_loopback_rx_packet()
333 static void efx_iterate_state(struct efx_nic *efx) in efx_iterate_state()
370 struct efx_nic *efx = tx_queue->efx; in efx_begin_loopback() local
[all …]
Dtenxpress.c151 static int tenxpress_init(struct efx_nic *efx) in tenxpress_init()
166 static int tenxpress_phy_probe(struct efx_nic *efx) in tenxpress_phy_probe()
188 static int tenxpress_phy_init(struct efx_nic *efx) in tenxpress_phy_init()
223 static int tenxpress_special_reset(struct efx_nic *efx) in tenxpress_special_reset()
256 static void sfx7101_check_bad_lp(struct efx_nic *efx, bool link_ok) in sfx7101_check_bad_lp()
300 static bool sfx7101_link_ok(struct efx_nic *efx) in sfx7101_link_ok()
308 static void tenxpress_ext_loopback(struct efx_nic *efx) in tenxpress_ext_loopback()
315 static void tenxpress_low_power(struct efx_nic *efx) in tenxpress_low_power()
322 static int tenxpress_phy_reconfigure(struct efx_nic *efx) in tenxpress_phy_reconfigure()
358 static bool tenxpress_phy_poll(struct efx_nic *efx) in tenxpress_phy_poll()
[all …]
Dmcdi_phy.c37 efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg) in efx_mcdi_get_phy_cfg()
77 static int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities, in efx_mcdi_set_link()
103 static int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes) in efx_mcdi_loopback_modes()
128 int efx_mcdi_mdio_read(struct efx_nic *efx, unsigned int bus, in efx_mcdi_mdio_read()
156 int efx_mcdi_mdio_write(struct efx_nic *efx, unsigned int bus, in efx_mcdi_mdio_write()
259 static u32 efx_get_mcdi_phy_flags(struct efx_nic *efx) in efx_get_mcdi_phy_flags()
307 static int efx_mcdi_phy_probe(struct efx_nic *efx) in efx_mcdi_phy_probe()
406 int efx_mcdi_phy_reconfigure(struct efx_nic *efx) in efx_mcdi_phy_reconfigure()
417 void efx_mcdi_phy_decode_link(struct efx_nic *efx, in efx_mcdi_phy_decode_link()
447 void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa) in efx_mcdi_phy_check_fcntl()
[all …]
Drx.c95 static inline unsigned int efx_rx_buf_offset(struct efx_nic *efx, in efx_rx_buf_offset()
104 static inline unsigned int efx_rx_buf_size(struct efx_nic *efx) in efx_rx_buf_size()
109 static u8 *efx_rx_buf_eh(struct efx_nic *efx, struct efx_rx_buffer *buf) in efx_rx_buf_eh()
144 struct efx_nic *efx = rx_queue->efx; in efx_init_rx_buffers_skb() local
193 struct efx_nic *efx = rx_queue->efx; in efx_init_rx_buffers_page() local
248 static void efx_unmap_rx_buffer(struct efx_nic *efx, in efx_unmap_rx_buffer()
267 static void efx_free_rx_buffer(struct efx_nic *efx, in efx_free_rx_buffer()
322 struct efx_nic *efx = channel->efx; in efx_recycle_rx_buffer() local
417 struct efx_nic *efx = rx_queue->efx; in efx_rx_packet__check_len() local
466 struct efx_nic *efx = channel->efx; in efx_rx_packet_gro() local
[all …]
Dworkarounds.h18 #define EFX_WORKAROUND_ALWAYS(efx) 1 argument
19 #define EFX_WORKAROUND_FALCON_A(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_A1) argument
20 #define EFX_WORKAROUND_FALCON_AB(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_B0) argument
21 #define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0) argument
22 #define EFX_WORKAROUND_10G(efx) 1 argument
Dmtd.c52 struct efx_nic *efx; member
78 struct efx_nic *efx = efx_mtd->efx; in efx_spi_slow_wait() local
101 efx_spi_unlock(struct efx_nic *efx, const struct efx_spi_device *spi) in efx_spi_unlock()
140 struct efx_nic *efx = efx_mtd->efx; in efx_spi_erase() local
252 static int efx_mtd_probe_device(struct efx_nic *efx, struct efx_mtd *efx_mtd) in efx_mtd_probe_device()
287 void efx_mtd_remove(struct efx_nic *efx) in efx_mtd_remove()
297 void efx_mtd_rename(struct efx_nic *efx) in efx_mtd_rename()
307 int efx_mtd_probe(struct efx_nic *efx) in efx_mtd_probe()
323 struct efx_nic *efx = efx_mtd->efx; in falcon_mtd_read() local
340 struct efx_nic *efx = efx_mtd->efx; in falcon_mtd_erase() local
[all …]
Dmdio_10g.h25 static inline int efx_mdio_read(struct efx_nic *efx, int devad, int addr) in efx_mdio_read()
31 efx_mdio_write(struct efx_nic *efx, int devad, int addr, int value) in efx_mdio_write()
36 static inline u32 efx_mdio_read_id(struct efx_nic *efx, int mmd) in efx_mdio_read_id()
43 static inline bool efx_mdio_phyxgxs_lane_sync(struct efx_nic *efx) in efx_mdio_phyxgxs_lane_sync()
103 efx_mdio_set_flag(struct efx_nic *efx, int devad, int addr, in efx_mdio_set_flag()
Dmcdi_mac.c16 static int efx_mcdi_set_mac(struct efx_nic *efx) in efx_mcdi_set_mac()
55 static int efx_mcdi_get_mac_faults(struct efx_nic *efx, u32 *faults) in efx_mcdi_get_mac_faults()
77 int efx_mcdi_mac_stats(struct efx_nic *efx, dma_addr_t dma_addr, in efx_mcdi_mac_stats()
118 static int efx_mcdi_mac_reconfigure(struct efx_nic *efx) in efx_mcdi_mac_reconfigure()
133 static bool efx_mcdi_mac_check_fault(struct efx_nic *efx) in efx_mcdi_mac_check_fault()
Dfilter.c112 static void efx_filter_push_rx_limits(struct efx_nic *efx) in efx_filter_push_rx_limits()
482 u32 efx_filter_get_rx_id_limit(struct efx_nic *efx) in efx_filter_get_rx_id_limit()
506 s32 efx_filter_insert_filter(struct efx_nic *efx, struct efx_filter_spec *spec, in efx_filter_insert_filter()
568 static void efx_filter_table_clear_entry(struct efx_nic *efx, in efx_filter_table_clear_entry()
593 int efx_filter_remove_id_safe(struct efx_nic *efx, in efx_filter_remove_id_safe()
644 int efx_filter_get_filter_safe(struct efx_nic *efx, in efx_filter_get_filter_safe()
683 static void efx_filter_table_clear(struct efx_nic *efx, in efx_filter_table_clear()
707 void efx_filter_clear_rx(struct efx_nic *efx, enum efx_filter_priority priority) in efx_filter_clear_rx()
713 u32 efx_filter_count_rx_used(struct efx_nic *efx, in efx_filter_count_rx_used()
740 s32 efx_filter_get_rx_ids(struct efx_nic *efx, in efx_filter_get_rx_ids()
[all …]
Defx.h133 static inline int efx_mtd_probe(struct efx_nic *efx) { return 0; } in efx_mtd_probe()
134 static inline void efx_mtd_rename(struct efx_nic *efx) {} in efx_mtd_rename()
135 static inline void efx_mtd_remove(struct efx_nic *efx) {} in efx_mtd_remove()
Dtx.c105 efx_max_tx_len(struct efx_nic *efx, dma_addr_t dma_addr) in efx_max_tx_len()
140 struct efx_nic *efx = tx_queue->efx; in efx_enqueue_skb() local
307 struct efx_nic *efx = tx_queue->efx; in efx_dequeue_buffers() local
344 struct efx_nic *efx = netdev_priv(net_dev); in efx_hard_start_xmit() local
363 struct efx_nic *efx = tx_queue->efx; in efx_init_tx_queue_core_txq() local
375 struct efx_nic *efx = netdev_priv(net_dev); in efx_setup_tc() local
433 struct efx_nic *efx = tx_queue->efx; in efx_xmit_done() local
468 struct efx_nic *efx = tx_queue->efx; in efx_probe_tx_queue() local
785 struct efx_nic *efx = tx_queue->efx; in efx_tx_queue_insert() local
938 static int tso_get_fragment(struct tso_state *st, struct efx_nic *efx, in tso_get_fragment()
[all …]
Dnic.h31 static inline int efx_nic_rev(struct efx_nic *efx) in efx_nic_rev()
38 static inline bool efx_nic_has_mc(struct efx_nic *efx) in efx_nic_has_mc()
43 static inline bool efx_nic_is_dual_func(struct efx_nic *efx) in efx_nic_is_dual_func()
137 static inline struct falcon_board *falcon_board(struct efx_nic *efx) in falcon_board()
244 #define FALCON_STAT(efx, falcon_stat, efx_stat) do { \ argument
Dnet_driver.h270 struct efx_nic *efx; member
349 struct efx_nic *efx; member
400 #define LOOPBACK_MODE(efx) \ argument
804 static inline int efx_dev_registered(struct efx_nic *efx) in efx_dev_registered()
813 static inline const char *efx_dev_name(struct efx_nic *efx) in efx_dev_name()
818 static inline unsigned int efx_port_num(struct efx_nic *efx) in efx_port_num()
921 efx_get_channel(struct efx_nic *efx, unsigned index) in efx_get_channel()
935 efx_get_tx_queue(struct efx_nic *efx, unsigned index, unsigned type) in efx_get_tx_queue()
979 efx_get_rx_queue(struct efx_nic *efx, unsigned index) in efx_get_rx_queue()

12