| /Linux-v5.4/drivers/net/ethernet/sfc/ |
| D | ef10_sriov.h | 22 struct efx_nic *efx; 31 static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx) in efx_ef10_sriov_wanted() 36 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs); 37 int efx_ef10_sriov_init(struct efx_nic *efx); 38 static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {} in efx_ef10_sriov_reset() 39 void efx_ef10_sriov_fini(struct efx_nic *efx); 40 static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {} in efx_ef10_sriov_flr() 42 int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac); 44 int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i, 47 int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf, [all …]
|
| D | net_driver.h | 240 struct efx_nic *efx ____cacheline_aligned_in_smp; 368 struct efx_nic *efx; 456 struct efx_nic *efx; 521 struct efx_nic *efx; 544 void (*handle_no_channel)(struct efx_nic *); 593 struct efx_nic; 642 int (*probe) (struct efx_nic *efx); 643 int (*init) (struct efx_nic *efx); 644 void (*fini) (struct efx_nic *efx); 645 void (*remove) (struct efx_nic *efx); [all …]
|
| D | efx.h | 29 unsigned int efx_tx_max_skb_descs(struct efx_nic *efx); 34 void efx_set_default_rx_indir_table(struct efx_nic *efx, 36 void efx_rx_config_page_split(struct efx_nic *efx); 76 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled() 83 void efx_mac_reconfigure(struct efx_nic *efx); 110 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter() 126 static inline int efx_filter_remove_id_safe(struct efx_nic *efx, in efx_filter_remove_id_safe() 144 efx_filter_get_filter_safe(struct efx_nic *efx, in efx_filter_get_filter_safe() 151 static inline u32 efx_filter_count_rx_used(struct efx_nic *efx, in efx_filter_count_rx_used() 156 static inline u32 efx_filter_get_rx_id_limit(struct efx_nic *efx) in efx_filter_get_rx_id_limit() [all …]
|
| D | nic.h | 26 static inline int efx_nic_rev(struct efx_nic *efx) in efx_nic_rev() 31 u32 efx_farch_fpga_ver(struct efx_nic *efx); 238 struct efx_nic *efx; 447 int efx_ptp_probe(struct efx_nic *efx, struct efx_channel *channel); 448 void efx_ptp_defer_probe_with_channel(struct efx_nic *efx); 449 struct efx_channel *efx_ptp_channel(struct efx_nic *efx); 450 void efx_ptp_remove(struct efx_nic *efx); 451 int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr); 452 int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr); 453 void efx_ptp_get_ts_info(struct efx_nic *efx, struct ethtool_ts_info *ts_info); [all …]
|
| D | siena_sriov.h | 41 int efx_siena_sriov_configure(struct efx_nic *efx, int num_vfs); 42 int efx_siena_sriov_init(struct efx_nic *efx); 43 void efx_siena_sriov_fini(struct efx_nic *efx); 44 int efx_siena_sriov_mac_address_changed(struct efx_nic *efx); 45 bool efx_siena_sriov_wanted(struct efx_nic *efx); 46 void efx_siena_sriov_reset(struct efx_nic *efx); 47 void efx_siena_sriov_flr(struct efx_nic *efx, unsigned flr); 49 int efx_siena_sriov_set_vf_mac(struct efx_nic *efx, int vf, u8 *mac); 50 int efx_siena_sriov_set_vf_vlan(struct efx_nic *efx, int vf, 52 int efx_siena_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf, [all …]
|
| D | mcdi.h | 68 struct efx_nic *efx; 127 static inline struct efx_mcdi_iface *efx_mcdi(struct efx_nic *efx) in efx_mcdi() 134 static inline struct efx_mcdi_mon *efx_mcdi_mon(struct efx_nic *efx) in efx_mcdi_mon() 141 int efx_mcdi_init(struct efx_nic *efx); 142 void efx_mcdi_detach(struct efx_nic *efx); 143 void efx_mcdi_fini(struct efx_nic *efx); 145 int efx_mcdi_rpc(struct efx_nic *efx, unsigned cmd, const efx_dword_t *inbuf, 148 int efx_mcdi_rpc_quiet(struct efx_nic *efx, unsigned cmd, 153 int efx_mcdi_rpc_start(struct efx_nic *efx, unsigned cmd, 155 int efx_mcdi_rpc_finish(struct efx_nic *efx, unsigned cmd, size_t inlen, [all …]
|
| D | io.h | 79 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq() 84 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq() 90 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed() 95 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd() 101 static inline void efx_writeo(struct efx_nic *efx, const efx_oword_t *value, in efx_writeo() 124 static inline void efx_sram_writeq(struct efx_nic *efx, void __iomem *membase, in efx_sram_writeq() 145 static inline void efx_writed(struct efx_nic *efx, const efx_dword_t *value, in efx_writed() 157 static inline void efx_reado(struct efx_nic *efx, efx_oword_t *value, in efx_reado() 175 static inline void efx_sram_readq(struct efx_nic *efx, void __iomem *membase, in efx_sram_readq() 196 static inline void efx_readd(struct efx_nic *efx, efx_dword_t *value, in efx_readd() [all …]
|
| D | efx.c | 217 static int efx_soft_enable_interrupts(struct efx_nic *efx); 218 static void efx_soft_disable_interrupts(struct efx_nic *efx); 220 static void efx_remove_channels(struct efx_nic *efx); 222 static void efx_remove_port(struct efx_nic *efx); 224 static void efx_fini_napi(struct efx_nic *efx); 226 static void efx_fini_struct(struct efx_nic *efx); 227 static void efx_start_all(struct efx_nic *efx); 228 static void efx_stop_all(struct efx_nic *efx); 238 static int efx_check_disabled(struct efx_nic *efx) in efx_check_disabled() 309 static void efx_update_irq_mod(struct efx_nic *efx, struct efx_channel *channel) in efx_update_irq_mod() [all …]
|
| D | ef10_sriov.c | 15 static int efx_ef10_evb_port_assign(struct efx_nic *efx, unsigned int port_id, in efx_ef10_evb_port_assign() 30 static int efx_ef10_vswitch_alloc(struct efx_nic *efx, unsigned int port_id, in efx_ef10_vswitch_alloc() 59 static int efx_ef10_vswitch_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vswitch_free() 69 static int efx_ef10_vport_alloc(struct efx_nic *efx, in efx_ef10_vport_alloc() 103 static int efx_ef10_vport_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vport_free() 113 static void efx_ef10_sriov_free_vf_vports(struct efx_nic *efx) in efx_ef10_sriov_free_vf_vports() 148 static void efx_ef10_sriov_free_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_free_vf_vswitching() 157 static int efx_ef10_sriov_assign_vf_vport(struct efx_nic *efx, in efx_ef10_sriov_assign_vf_vport() 187 static int efx_ef10_sriov_alloc_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_alloc_vf_vswitching() 216 static int efx_ef10_sriov_restore_vf_vswitching(struct efx_nic *efx) in efx_ef10_sriov_restore_vf_vswitching() [all …]
|
| D | mcdi.c | 49 static int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating, 51 static bool efx_mcdi_poll_once(struct efx_nic *efx); 52 static void efx_mcdi_abandon(struct efx_nic *efx); 61 int efx_mcdi_init(struct efx_nic *efx) in efx_mcdi_init() 127 void efx_mcdi_detach(struct efx_nic *efx) in efx_mcdi_detach() 138 void efx_mcdi_fini(struct efx_nic *efx) in efx_mcdi_fini() 150 static void efx_mcdi_send_request(struct efx_nic *efx, unsigned cmd, in efx_mcdi_send_request() 263 static void efx_mcdi_read_response_header(struct efx_nic *efx) in efx_mcdi_read_response_header() 338 static bool efx_mcdi_poll_once(struct efx_nic *efx) in efx_mcdi_poll_once() 353 static int efx_mcdi_poll(struct efx_nic *efx) in efx_mcdi_poll() [all …]
|
| D | ptp.c | 280 struct efx_nic *efx; 342 void (*xmit_skb)(struct efx_nic *efx, struct sk_buff *skb); 353 bool efx_ptp_use_mac_tx_timestamps(struct efx_nic *efx) in efx_ptp_use_mac_tx_timestamps() 396 size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 *strings) in efx_ptp_describe_stats() 405 size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats) in efx_ptp_update_stats() 539 struct efx_channel *efx_ptp_channel(struct efx_nic *efx) in efx_ptp_channel() 544 static u32 last_sync_timestamp_major(struct efx_nic *efx) in last_sync_timestamp_major() 558 efx_ptp_mac_nic_to_ktime_correction(struct efx_nic *efx, in efx_ptp_mac_nic_to_ktime_correction() 579 struct efx_nic *efx = tx_queue->efx; in efx_ptp_nic_to_kernel_time() 597 static int efx_ptp_get_attributes(struct efx_nic *efx) in efx_ptp_get_attributes() [all …]
|
| D | mcdi_port.c | 33 efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg) in efx_mcdi_get_phy_cfg() 73 static int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities, in efx_mcdi_set_link() 92 static int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes) in efx_mcdi_loopback_modes() 121 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_read() 147 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_write() 276 static u32 efx_get_mcdi_phy_flags(struct efx_nic *efx) in efx_get_mcdi_phy_flags() 325 static void efx_mcdi_phy_decode_link(struct efx_nic *efx, in efx_mcdi_phy_decode_link() 411 static int efx_mcdi_phy_probe(struct efx_nic *efx) in efx_mcdi_phy_probe() 517 int efx_mcdi_port_reconfigure(struct efx_nic *efx) in efx_mcdi_port_reconfigure() 533 static void efx_mcdi_phy_check_fcntl(struct efx_nic *efx, u32 lpa) in efx_mcdi_phy_check_fcntl() [all …]
|
| D | ef10.c | 122 static void efx_ef10_rx_free_indir_table(struct efx_nic *efx); 123 static void efx_ef10_filter_table_remove(struct efx_nic *efx); 124 static int efx_ef10_filter_add_vlan(struct efx_nic *efx, u16 vid); 125 static void efx_ef10_filter_del_vlan_internal(struct efx_nic *efx, 127 static void efx_ef10_filter_del_vlan(struct efx_nic *efx, u16 vid); 128 static int efx_ef10_set_udp_tnl_ports(struct efx_nic *efx, bool unloading); 146 static int efx_ef10_get_warm_boot_count(struct efx_nic *efx) in efx_ef10_get_warm_boot_count() 159 static unsigned int efx_ef10_pf_mem_bar(struct efx_nic *efx) in efx_ef10_pf_mem_bar() 170 static unsigned int efx_ef10_vf_mem_bar(struct efx_nic *efx) in efx_ef10_vf_mem_bar() 175 static unsigned int efx_ef10_mem_map_size(struct efx_nic *efx) in efx_ef10_mem_map_size() [all …]
|
| D | siena.c | 28 static void siena_init_wol(struct efx_nic *efx); 33 struct efx_nic *efx = channel->efx; in siena_push_irq_moderation() 55 void siena_prepare_flush(struct efx_nic *efx) in siena_prepare_flush() 61 void siena_finish_flush(struct efx_nic *efx) in siena_finish_flush() 96 static int siena_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) in siena_test_chip() 128 static void siena_ptp_write_host_time(struct efx_nic *efx, u32 host_time) in siena_ptp_write_host_time() 134 static int siena_ptp_set_ts_config(struct efx_nic *efx, in siena_ptp_set_ts_config() 208 static void siena_monitor(struct efx_nic *efx) in siena_monitor() 216 static int siena_probe_nvconfig(struct efx_nic *efx) in siena_probe_nvconfig() 232 static int siena_dimension_resources(struct efx_nic *efx) in siena_dimension_resources() [all …]
|
| D | selftest.h | 44 void efx_loopback_rx_packet(struct efx_nic *efx, const char *buf_ptr, 46 int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, 48 void efx_selftest_async_start(struct efx_nic *efx); 49 void efx_selftest_async_cancel(struct efx_nic *efx);
|
| D | farch.c | 86 static inline void efx_write_buf_tbl(struct efx_nic *efx, efx_qword_t *value, in efx_write_buf_tbl() 100 int efx_farch_test_registers(struct efx_nic *efx, in efx_farch_test_registers() 170 efx_init_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_init_special_buffer() 196 efx_fini_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_fini_special_buffer() 225 static int efx_alloc_special_buffer(struct efx_nic *efx, in efx_alloc_special_buffer() 258 efx_free_special_buffer(struct efx_nic *efx, struct efx_special_buffer *buffer) in efx_free_special_buffer() 371 struct efx_nic *efx = tx_queue->efx; in efx_farch_tx_probe() 382 struct efx_nic *efx = tx_queue->efx; in efx_farch_tx_init() 419 struct efx_nic *efx = tx_queue->efx; in efx_farch_flush_tx_queue() 433 struct efx_nic *efx = tx_queue->efx; in efx_farch_tx_fini() [all …]
|
| D | sriov.c | 13 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_mac() 24 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_vlan() 43 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_spoofchk() 54 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_get_vf_config() 65 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_link_state()
|
| D | siena_sriov.c | 85 struct efx_nic *efx; 195 static int efx_siena_sriov_cmd(struct efx_nic *efx, bool enable, in efx_siena_sriov_cmd() 228 static void efx_siena_sriov_usrev(struct efx_nic *efx, bool enabled) in efx_siena_sriov_usrev() 239 static int efx_siena_sriov_memcpy(struct efx_nic *efx, in efx_siena_sriov_memcpy() 302 struct efx_nic *efx = vf->efx; in efx_siena_sriov_reset_tx_filter() 346 struct efx_nic *efx = vf->efx; in efx_siena_sriov_reset_rx_filter() 385 struct efx_nic *efx = vf->efx; in __efx_siena_sriov_update_vf_addr() 400 struct efx_nic *efx = vf->efx; in __efx_siena_sriov_push_vf_status() 476 static void efx_siena_sriov_bufs(struct efx_nic *efx, unsigned offset, in efx_siena_sriov_bufs() 493 static bool bad_vf_index(struct efx_nic *efx, unsigned index) in bad_vf_index() [all …]
|
| D | ethtool.c | 103 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id() 129 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_link_ksettings() 159 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_link_ksettings() 179 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo() 196 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_regs() 204 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_msglevel() 210 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_msglevel() 269 static int efx_fill_loopback_test(struct efx_nic *efx, in efx_fill_loopback_test() 314 static int efx_ethtool_fill_self_tests(struct efx_nic *efx, in efx_ethtool_fill_self_tests() 374 static size_t efx_describe_per_queue_stats(struct efx_nic *efx, u8 *strings) in efx_describe_per_queue_stats() [all …]
|
| D | selftest.c | 96 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() 108 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() 172 static int efx_test_eventq_irq(struct efx_nic *efx, in efx_test_eventq_irq() 253 static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, in efx_test_phy() 283 void efx_loopback_rx_packet(struct efx_nic *efx, in efx_loopback_rx_packet() 375 static void efx_iterate_state(struct efx_nic *efx) in efx_iterate_state() 412 struct efx_nic *efx = tx_queue->efx; in efx_begin_loopback() 459 static int efx_poll_loopback(struct efx_nic *efx) in efx_poll_loopback() 469 struct efx_nic *efx = tx_queue->efx; in efx_end_loopback() [all …]
|
| D | mtd.c | 23 struct efx_nic *efx = mtd->priv; in efx_mtd_erase() 31 struct efx_nic *efx = mtd->priv; in efx_mtd_sync() 54 int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts, in efx_mtd_add() 98 void efx_mtd_remove(struct efx_nic *efx) in efx_mtd_remove() 116 void efx_mtd_rename(struct efx_nic *efx) in efx_mtd_rename()
|
| D | rx.c | 62 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash() 84 static inline void efx_sync_rx_buffer(struct efx_nic *efx, in efx_sync_rx_buffer() 92 void efx_rx_config_page_split(struct efx_nic *efx) in efx_rx_config_page_split() 108 struct efx_nic *efx = rx_queue->efx; in efx_reuse_page() 151 struct efx_nic *efx = rx_queue->efx; in efx_init_rx_buffers() 210 static void efx_unmap_rx_buffer(struct efx_nic *efx, in efx_unmap_rx_buffer() 246 struct efx_nic *efx = rx_queue->efx; in efx_recycle_rx_page() 326 struct efx_nic *efx = rx_queue->efx; in efx_fast_push_rx_descriptors() 388 struct efx_nic *efx = rx_queue->efx; in efx_rx_packet__check_len() 415 struct efx_nic *efx = channel->efx; in efx_rx_packet_gro() [all …]
|
| D | tx.c | 104 unsigned int efx_tx_max_skb_descs(struct efx_nic *efx) in efx_tx_max_skb_descs() 127 struct efx_nic *efx = txq1->efx; in efx_tx_maybe_stop_queue() 201 static void efx_memcpy_toio_aligned(struct efx_nic *efx, u8 __iomem **piobuf, in efx_memcpy_toio_aligned() 223 static void efx_memcpy_toio_aligned_cb(struct efx_nic *efx, u8 __iomem **piobuf, in efx_memcpy_toio_aligned_cb() 250 static void efx_flush_copy_buffer(struct efx_nic *efx, u8 __iomem *piobuf, in efx_flush_copy_buffer() 262 static void efx_skb_copy_bits_to_pio(struct efx_nic *efx, struct sk_buff *skb, in efx_skb_copy_bits_to_pio() 363 struct efx_nic *efx = tx_queue->efx; in efx_tx_map_data() 610 struct efx_nic *efx = tx_queue->efx; in efx_dequeue_buffers() 647 struct efx_nic *efx = netdev_priv(net_dev); in efx_hard_start_xmit() 672 struct efx_nic *efx = tx_queue->efx; in efx_init_tx_queue_core_txq() [all …]
|
| D | nic.c | 31 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer, in efx_nic_alloc_buffer() 42 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer) in efx_nic_free_buffer() 66 int efx_nic_irq_test_start(struct efx_nic *efx) in efx_nic_irq_test_start() 76 int efx_nic_init_interrupt(struct efx_nic *efx) in efx_nic_init_interrupt() 147 void efx_nic_fini_interrupt(struct efx_nic *efx) in efx_nic_fini_interrupt() 368 size_t efx_nic_get_regs_len(struct efx_nic *efx) in efx_nic_get_regs_len() 391 void efx_nic_get_regs(struct efx_nic *efx, void *buf) in efx_nic_get_regs() 522 void efx_nic_fix_nodesc_drop_stat(struct efx_nic *efx, u64 *rx_nodesc_drops) in efx_nic_fix_nodesc_drop_stat()
|
| D | mcdi_mon.c | 103 void efx_mcdi_sensor_event(struct efx_nic *efx, efx_qword_t *ev) in efx_mcdi_sensor_event() 144 static int efx_mcdi_mon_update(struct efx_nic *efx) in efx_mcdi_mon_update() 164 struct efx_nic *efx = dev_get_drvdata(dev->parent); in efx_mcdi_mon_get_entry() 279 efx_mcdi_mon_add_attr(struct efx_nic *efx, const char *name, in efx_mcdi_mon_add_attr() 303 int efx_mcdi_mon_probe(struct efx_nic *efx) in efx_mcdi_mon_probe() 520 void efx_mcdi_mon_remove(struct efx_nic *efx) in efx_mcdi_mon_remove()
|