/drivers/net/ethernet/sfc/ |
D | nic.h | 32 static inline int efx_nic_rev(struct efx_nic *efx) in efx_nic_rev() 37 extern u32 efx_nic_fpga_ver(struct efx_nic *efx); 40 static inline bool efx_nic_is_dual_func(struct efx_nic *efx) in efx_nic_is_dual_func() 81 int (*init) (struct efx_nic *nic); 82 void (*init_phy) (struct efx_nic *efx); 83 void (*fini) (struct efx_nic *nic); 84 void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode); 85 int (*monitor) (struct efx_nic *nic); 135 static inline struct falcon_board *falcon_board(struct efx_nic *efx) in falcon_board() 156 static inline struct efx_mcdi_mon *efx_mcdi_mon(struct efx_nic *efx) in efx_mcdi_mon() [all …]
|
D | mcdi.h | 68 extern void efx_mcdi_init(struct efx_nic *efx); 70 extern int efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const u8 *inbuf, 74 extern void efx_mcdi_rpc_start(struct efx_nic *efx, unsigned cmd, 76 extern int efx_mcdi_rpc_finish(struct efx_nic *efx, unsigned cmd, size_t inlen, 80 extern int efx_mcdi_poll_reboot(struct efx_nic *efx); 81 extern void efx_mcdi_mode_poll(struct efx_nic *efx); 82 extern void efx_mcdi_mode_event(struct efx_nic *efx); 86 extern void efx_mcdi_sensor_event(struct efx_nic *efx, efx_qword_t *ev); 124 extern void efx_mcdi_print_fwver(struct efx_nic *efx, char *buf, size_t len); 125 extern int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating, [all …]
|
D | efx.h | 33 extern unsigned int efx_tx_max_skb_descs(struct efx_nic *efx); 36 extern void efx_rx_config_page_split(struct efx_nic *efx); 72 extern int efx_probe_filters(struct efx_nic *efx); 73 extern void efx_restore_filters(struct efx_nic *efx); 74 extern void efx_remove_filters(struct efx_nic *efx); 75 extern void efx_filter_update_rx_scatter(struct efx_nic *efx); 76 extern s32 efx_filter_insert_filter(struct efx_nic *efx, 79 extern int efx_filter_remove_id_safe(struct efx_nic *efx, 82 extern int efx_filter_get_filter_safe(struct efx_nic *efx, 85 extern void efx_filter_clear_rx(struct efx_nic *efx, [all …]
|
D | net_driver.h | 195 struct efx_nic *efx ____cacheline_aligned_in_smp; 299 struct efx_nic *efx; 388 struct efx_nic *efx; 438 void (*handle_no_channel)(struct efx_nic *); 492 struct efx_nic; 539 int (*probe) (struct efx_nic *efx); 540 int (*init) (struct efx_nic *efx); 541 void (*fini) (struct efx_nic *efx); 542 void (*remove) (struct efx_nic *efx); 543 int (*reconfigure) (struct efx_nic *efx); [all …]
|
D | mdio_10g.h | 25 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() 67 extern int efx_mdio_reset_mmd(struct efx_nic *efx, int mmd, 71 int efx_mdio_check_mmds(struct efx_nic *efx, unsigned int mmd_mask); 74 extern bool efx_mdio_links_ok(struct efx_nic *efx, unsigned int mmd_mask); 77 extern void efx_mdio_transmit_disable(struct efx_nic *efx); 80 extern void efx_mdio_phy_reconfigure(struct efx_nic *efx); 83 extern void efx_mdio_set_mmds_lpower(struct efx_nic *efx, [all …]
|
D | phy.h | 18 extern void tenxpress_set_id_led(struct efx_nic *efx, enum efx_led_mode mode); 37 extern void falcon_qt202x_set_led(struct efx_nic *p, int led, int state); 47 extern void falcon_txc_set_gpio_dir(struct efx_nic *efx, int pin, int dir); 48 extern void falcon_txc_set_gpio_val(struct efx_nic *efx, int pin, int val); 55 extern int efx_mcdi_mdio_read(struct efx_nic *efx, unsigned int bus, 58 extern int efx_mcdi_mdio_write(struct efx_nic *efx, unsigned int bus, 61 extern void efx_mcdi_phy_decode_link(struct efx_nic *efx, 64 extern int efx_mcdi_phy_reconfigure(struct efx_nic *efx); 65 extern void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa);
|
D | txc43128_phy.c | 171 static void txc_reset_logic(struct efx_nic *efx); 174 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() [all …]
|
D | tenxpress.c | 151 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() 355 tenxpress_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd); [all …]
|
D | efx.c | 194 static void efx_start_interrupts(struct efx_nic *efx, bool may_keep_eventq); 195 static void efx_stop_interrupts(struct efx_nic *efx, bool may_keep_eventq); 197 static void efx_remove_channels(struct efx_nic *efx); 199 static void efx_remove_port(struct efx_nic *efx); 201 static void efx_fini_napi(struct efx_nic *efx); 203 static void efx_fini_struct(struct efx_nic *efx); 204 static void efx_start_all(struct efx_nic *efx); 205 static void efx_stop_all(struct efx_nic *efx); 215 static int efx_check_disabled(struct efx_nic *efx) in efx_check_disabled() 284 struct efx_nic *efx = channel->efx; in efx_poll() [all …]
|
D | falcon_boards.c | 90 static int efx_init_lm87(struct efx_nic *efx, const 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, const 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() 371 struct efx_nic *efx = pci_get_drvdata(to_pci_dev(dev)); in set_phy_flash_cfg() [all …]
|
D | io.h | 64 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq() 69 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq() 75 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed() 80 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd() 86 static inline void efx_writeo(struct efx_nic *efx, efx_oword_t *value, in efx_writeo() 110 static inline void efx_sram_writeq(struct efx_nic *efx, void __iomem *membase, in efx_sram_writeq() 132 static inline void efx_writed(struct efx_nic *efx, efx_dword_t *value, in efx_writed() 144 static inline void efx_reado(struct efx_nic *efx, efx_oword_t *value, in efx_reado() 162 static inline void efx_sram_readq(struct efx_nic *efx, void __iomem *membase, in efx_sram_readq() 183 static inline void efx_readd(struct efx_nic *efx, efx_dword_t *value, in efx_readd() [all …]
|
D | falcon.c | 32 static int falcon_reset_hw(struct efx_nic *efx, enum reset_type method); 58 struct efx_nic *efx = (struct efx_nic *)data; in falcon_setsda() 68 struct efx_nic *efx = (struct efx_nic *)data; in falcon_setscl() 78 struct efx_nic *efx = (struct efx_nic *)data; in falcon_getsda() 87 struct efx_nic *efx = (struct efx_nic *)data; in falcon_getscl() 107 struct efx_nic *efx = channel->efx; in falcon_push_irq_moderation() 127 static void falcon_deconfigure_mac_wrapper(struct efx_nic *efx); 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() [all …]
|
D | qt202x_phy.c | 53 void falcon_qt202x_set_led(struct efx_nic *p, int led, int mode) in falcon_qt202x_set_led() 76 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() [all …]
|
D | mcdi.c | 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() 213 int efx_mcdi_poll_reboot(struct efx_nic *efx) in efx_mcdi_poll_reboot() 253 static int efx_mcdi_await_completion(struct efx_nic *efx) in efx_mcdi_await_completion() 301 static void efx_mcdi_ev_cpl(struct efx_nic *efx, unsigned int seqno, in efx_mcdi_ev_cpl() 330 int efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, in efx_mcdi_rpc() 339 void efx_mcdi_rpc_start(struct efx_nic *efx, unsigned cmd, const u8 *inbuf, in efx_mcdi_rpc_start() [all …]
|
D | siena.c | 32 static void siena_init_wol(struct efx_nic *efx); 33 static int siena_reset_hw(struct efx_nic *efx, enum reset_type method); 58 struct efx_nic *efx = netdev_priv(net_dev); in siena_mdio_write() 75 struct efx_nic *efx = netdev_priv(net_dev); in siena_mdio_read() 91 static int siena_probe_port(struct efx_nic *efx) in siena_probe_port() 124 static void siena_remove_port(struct efx_nic *efx) in siena_remove_port() 130 void siena_prepare_flush(struct efx_nic *efx) in siena_prepare_flush() 136 void siena_finish_flush(struct efx_nic *efx) in siena_finish_flush() 171 static int siena_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) in siena_test_chip() 233 static int siena_reset_hw(struct efx_nic *efx, enum reset_type method) in siena_reset_hw() [all …]
|
D | mdio_10g.c | 34 int efx_mdio_reset_mmd(struct efx_nic *port, int mmd, in efx_mdio_reset_mmd() 54 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() [all …]
|
D | mtd.c | 52 struct efx_nic *efx; 68 static int falcon_mtd_probe(struct efx_nic *efx); 69 static int siena_mtd_probe(struct efx_nic *efx); 78 struct efx_nic *efx = efx_mtd->efx; in efx_spi_slow_wait() 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() 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() [all …]
|
D | ethtool.c | 176 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id() 201 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_settings() 225 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_settings() 245 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo() 263 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_regs() 271 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_msglevel() 277 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_msglevel() 335 static int efx_fill_loopback_test(struct efx_nic *efx, in efx_fill_loopback_test() 374 static int efx_ethtool_fill_self_tests(struct efx_nic *efx, in efx_ethtool_fill_self_tests() 450 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_strings() [all …]
|
D | ptp.c | 312 static int efx_ptp_enable(struct efx_nic *efx) in efx_ptp_enable() 330 static int efx_ptp_disable(struct efx_nic *efx) in efx_ptp_disable() 350 static void efx_ptp_handle_no_channel(struct efx_nic *efx) in efx_ptp_handle_no_channel() 360 static void efx_ptp_send_times(struct efx_nic *efx, in efx_ptp_send_times() 428 static int efx_ptp_process_times(struct efx_nic *efx, u8 *synch_buf, in efx_ptp_process_times() 518 static int efx_ptp_synchronize(struct efx_nic *efx, unsigned int num_readings) in efx_ptp_synchronize() 565 static int efx_ptp_xmit_skb(struct efx_nic *efx, struct sk_buff *skb) in efx_ptp_xmit_skb() 610 static void efx_ptp_drop_time_expired_events(struct efx_nic *efx) in efx_ptp_drop_time_expired_events() 634 static enum ptp_packet_state efx_ptp_match_rx(struct efx_nic *efx, in efx_ptp_match_rx() 683 static bool efx_ptp_process_events(struct efx_nic *efx, struct sk_buff_head *q) in efx_ptp_process_events() [all …]
|
D | nic.c | 84 static inline void efx_write_buf_tbl(struct efx_nic *efx, efx_qword_t *value, in efx_write_buf_tbl() 122 int efx_nic_test_registers(struct efx_nic *efx, in efx_nic_test_registers() 191 efx_init_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_init_special_buffer() 217 efx_fini_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_fini_special_buffer() 246 static int efx_alloc_special_buffer(struct efx_nic *efx, in efx_alloc_special_buffer() 279 efx_free_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_free_special_buffer() 304 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer, in efx_nic_alloc_buffer() 316 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer) in efx_nic_free_buffer() 428 struct efx_nic *efx = tx_queue->efx; in efx_nic_probe_tx() 438 struct efx_nic *efx = tx_queue->efx; in efx_nic_init_tx() [all …]
|
D | siena_sriov.c | 87 struct efx_nic *efx; 197 static int efx_sriov_cmd(struct efx_nic *efx, bool enable, in efx_sriov_cmd() 230 static void efx_sriov_usrev(struct efx_nic *efx, bool enabled) in efx_sriov_usrev() 240 static int efx_sriov_memcpy(struct efx_nic *efx, struct efx_memcpy_req *req, in efx_sriov_memcpy() 311 struct efx_nic *efx = vf->efx; in efx_sriov_reset_tx_filter() 355 struct efx_nic *efx = vf->efx; in efx_sriov_reset_rx_filter() 406 struct efx_nic *efx = vf->efx; in __efx_sriov_push_vf_status() 480 static void efx_sriov_bufs(struct efx_nic *efx, unsigned offset, in efx_sriov_bufs() 497 static bool bad_vf_index(struct efx_nic *efx, unsigned index) in bad_vf_index() 513 static bool map_vi_index(struct efx_nic *efx, unsigned abs_index, in map_vi_index() [all …]
|
D | falcon_xmac.c | 27 void falcon_setup_xaui(struct efx_nic *efx) in falcon_setup_xaui() 59 int falcon_reset_xaui(struct efx_nic *efx) in falcon_reset_xaui() 87 static void falcon_ack_status_intr(struct efx_nic *efx) in falcon_ack_status_intr() 107 static bool falcon_xgxs_link_ok(struct efx_nic *efx) in falcon_xgxs_link_ok() 130 static bool falcon_xmac_link_ok(struct efx_nic *efx) in falcon_xmac_link_ok() 145 static void falcon_reconfigure_xmac_core(struct efx_nic *efx) in falcon_reconfigure_xmac_core() 199 static void falcon_reconfigure_xgxs_core(struct efx_nic *efx) in falcon_reconfigure_xgxs_core() 247 static bool falcon_xmac_link_ok_retry(struct efx_nic *efx, int tries) in falcon_xmac_link_ok_retry() 272 bool falcon_xmac_check_fault(struct efx_nic *efx) in falcon_xmac_check_fault() 277 int falcon_reconfigure_xmac(struct efx_nic *efx) in falcon_reconfigure_xmac() [all …]
|
D | mcdi_phy.c | 37 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 …]
|
D | selftest.c | 99 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() 130 static int efx_test_interrupts(struct efx_nic *efx, in efx_test_interrupts() 164 static int efx_test_eventq_irq(struct efx_nic *efx, in efx_test_eventq_irq() 246 static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, in efx_test_phy() 270 void efx_loopback_rx_packet(struct efx_nic *efx, in efx_loopback_rx_packet() 362 static void efx_iterate_state(struct efx_nic *efx) in efx_iterate_state() 399 struct efx_nic *efx = tx_queue->efx; in efx_begin_loopback() 447 static int efx_poll_loopback(struct efx_nic *efx) in efx_poll_loopback() 464 struct efx_nic *efx = tx_queue->efx; in efx_end_loopback() [all …]
|
D | selftest.h | 46 extern void efx_loopback_rx_packet(struct efx_nic *efx, 48 extern int efx_selftest(struct efx_nic *efx, 51 extern void efx_selftest_async_start(struct efx_nic *efx); 52 extern void efx_selftest_async_cancel(struct efx_nic *efx);
|