Home
last modified time | relevance | path

Searched refs:efx (Results 1 – 25 of 83) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Defx_common.c123 void efx_queue_reset_work(struct efx_nic *efx) in efx_queue_reset_work() argument
125 queue_work(reset_workqueue, &efx->reset_work); in efx_queue_reset_work()
128 void efx_flush_reset_workqueue(struct efx_nic *efx) in efx_flush_reset_workqueue() argument
130 cancel_work_sync(&efx->reset_work); in efx_flush_reset_workqueue()
144 void efx_mac_reconfigure(struct efx_nic *efx, bool mtu_only) in efx_mac_reconfigure() argument
146 if (efx->type->reconfigure_mac) { in efx_mac_reconfigure()
147 down_read(&efx->filter_sem); in efx_mac_reconfigure()
148 efx->type->reconfigure_mac(efx, mtu_only); in efx_mac_reconfigure()
149 up_read(&efx->filter_sem); in efx_mac_reconfigure()
159 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); in efx_mac_work() local
[all …]
Defx.c102 static void efx_remove_port(struct efx_nic *efx);
103 static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog);
108 #define EFX_ASSERT_RESET_SERIALISED(efx) \ argument
110 if ((efx->state == STATE_READY) || \
111 (efx->state == STATE_RECOVERY) || \
112 (efx->state == STATE_DISABLED)) \
122 static void efx_fini_port(struct efx_nic *efx);
124 static int efx_probe_port(struct efx_nic *efx) in efx_probe_port() argument
128 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port()
131 efx->phy_mode = PHY_MODE_SPECIAL; in efx_probe_port()
[all …]
Defx_channels.c79 static unsigned int efx_wanted_parallelism(struct efx_nic *efx) in efx_wanted_parallelism() argument
89 netif_warn(efx, probe, efx->net_dev, in efx_wanted_parallelism()
107 netif_cond_dbg(efx, probe, efx->net_dev, !rss_cpus, warn, in efx_wanted_parallelism()
117 if (efx->type->sriov_wanted) { in efx_wanted_parallelism()
118 if (efx->type->sriov_wanted(efx) && efx_vf_size(efx) > 1 && in efx_wanted_parallelism()
119 count > efx_vf_size(efx)) { in efx_wanted_parallelism()
120 netif_warn(efx, probe, efx->net_dev, in efx_wanted_parallelism()
124 count, efx_vf_size(efx)); in efx_wanted_parallelism()
125 count = efx_vf_size(efx); in efx_wanted_parallelism()
133 static int efx_allocate_msix_channels(struct efx_nic *efx, in efx_allocate_msix_channels() argument
[all …]
Def10_sriov.c15 static int efx_ef10_evb_port_assign(struct efx_nic *efx, unsigned int port_id, in efx_ef10_evb_port_assign() argument
19 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_evb_port_assign()
26 return efx_mcdi_rpc(efx, MC_CMD_EVB_PORT_ASSIGN, inbuf, sizeof(inbuf), 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() argument
43 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VSWITCH_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vswitch_alloc()
49 rc = efx_mcdi_rpc(efx, MC_CMD_VSWITCH_ALLOC, inbuf, in efx_ef10_vswitch_alloc()
52 efx_mcdi_display_error(efx, MC_CMD_VSWITCH_ALLOC, 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() argument
65 return efx_mcdi_rpc(efx, MC_CMD_VSWITCH_FREE, inbuf, sizeof(inbuf), in efx_ef10_vswitch_free()
69 static int efx_ef10_vport_alloc(struct efx_nic *efx, in efx_ef10_vport_alloc() argument
[all …]
Def100.c41 static int ef100_pci_walk_xilinx_table(struct efx_nic *efx, u64 offset,
50 static u32 _ef100_pci_get_bar_bits_with_width(struct efx_nic *efx, in _ef100_pci_get_bar_bits_with_width() argument
56 efx_readd(efx, &dword, structure_start + ROUND_DOWN_TO_DWORD(lbn)); in _ef100_pci_get_bar_bits_with_width()
61 #define ef100_pci_get_bar_bits(efx, entry_location, bitdef) \ argument
62 _ef100_pci_get_bar_bits_with_width(efx, entry_location, \
66 static int ef100_pci_parse_ef100_entry(struct efx_nic *efx, int entry_location, in ef100_pci_parse_ef100_entry() argument
69 u64 offset = ef100_pci_get_bar_bits(efx, entry_location, EF100_FUNC_CTL_WIN_OFF) << in ef100_pci_parse_ef100_entry()
71 u32 bar = ef100_pci_get_bar_bits(efx, entry_location, EF100_BAR); in ef100_pci_parse_ef100_entry()
73 netif_dbg(efx, probe, efx->net_dev, in ef100_pci_parse_ef100_entry()
78 netif_err(efx, probe, efx->net_dev, in ef100_pci_parse_ef100_entry()
[all …]
Def100_netdev.c26 static void ef100_update_name(struct efx_nic *efx) in ef100_update_name() argument
28 strcpy(efx->name, efx->net_dev->name); in ef100_update_name()
31 static int ef100_alloc_vis(struct efx_nic *efx, unsigned int *allocated_vis) in ef100_alloc_vis() argument
37 unsigned int tx_vis = efx->n_tx_channels + efx->n_extra_tx_channels; in ef100_alloc_vis()
38 unsigned int rx_vis = efx->n_rx_channels; in ef100_alloc_vis()
41 EFX_WARN_ON_PARANOID(efx->tx_queues_per_channel != 1); in ef100_alloc_vis()
43 tx_vis += efx->n_xdp_channels * efx->xdp_tx_per_channel; in ef100_alloc_vis()
51 return efx_mcdi_alloc_vis(efx, min_vis, max_vis, in ef100_alloc_vis()
55 static int ef100_remap_bar(struct efx_nic *efx, int max_vis) in ef100_remap_bar() argument
60 efx->max_vis = max_vis; in ef100_remap_bar()
[all …]
Dselftest.c67 #define INT_MODE(efx) \ argument
68 STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_interrupt_mode)
99 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument
103 rc = efx_mcdi_phy_test_alive(efx); in efx_test_phy_alive()
109 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument
113 if (efx->type->test_nvram) { in efx_test_nvram()
114 rc = efx->type->test_nvram(efx); in efx_test_nvram()
131 static int efx_test_interrupts(struct efx_nic *efx, in efx_test_interrupts() argument
138 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts()
141 rc = efx_nic_irq_test_start(efx); in efx_test_interrupts()
[all …]
Dio.h78 static inline u32 efx_reg(struct efx_nic *efx, unsigned int reg) in efx_reg() argument
80 return efx->reg_base + reg; in efx_reg()
84 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq() argument
87 __raw_writeq((__force u64)value, efx->membase + reg); in _efx_writeq()
89 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq() argument
91 return (__force __le64)__raw_readq(efx->membase + reg); in _efx_readq()
95 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed() argument
98 __raw_writel((__force u32)value, efx->membase + reg); in _efx_writed()
100 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd() argument
102 return (__force __le32)__raw_readl(efx->membase + reg); in _efx_readd()
[all …]
Def10.c42 static int efx_ef10_set_udp_tnl_ports(struct efx_nic *efx, bool unloading);
45 static int efx_ef10_get_warm_boot_count(struct efx_nic *efx) in efx_ef10_get_warm_boot_count() argument
49 efx_readd(efx, &reg, ER_DZ_BIU_MC_SFT_STATUS); in efx_ef10_get_warm_boot_count()
58 static unsigned int efx_ef10_pf_mem_bar(struct efx_nic *efx) in efx_ef10_pf_mem_bar() argument
60 switch (efx->pci_dev->device) { in efx_ef10_pf_mem_bar()
69 static unsigned int efx_ef10_vf_mem_bar(struct efx_nic *efx) in efx_ef10_vf_mem_bar() argument
74 static unsigned int efx_ef10_mem_map_size(struct efx_nic *efx) in efx_ef10_mem_map_size() argument
78 bar = efx->type->mem_bar(efx); in efx_ef10_mem_map_size()
79 return resource_size(&efx->pci_dev->resource[bar]); in efx_ef10_mem_map_size()
82 static bool efx_ef10_is_vf(struct efx_nic *efx) in efx_ef10_is_vf() argument
[all …]
Defx.h27 return INDIRECT_CALL_2(tx_queue->efx->type->tx_enqueue, in efx_enqueue_skb()
44 INDIRECT_CALL_2(channel->efx->type->rx_packet, in efx_rx_flush_packet()
48 static inline bool efx_rx_buf_hash_valid(struct efx_nic *efx, const u8 *prefix) in efx_rx_buf_hash_valid() argument
50 if (efx->type->rx_buf_hash_valid) in efx_rx_buf_hash_valid()
51 return INDIRECT_CALL_1(efx->type->rx_buf_hash_valid, in efx_rx_buf_hash_valid()
65 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx)) argument
70 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(efx) ? \ argument
73 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled() argument
75 return efx->rss_spread > 1; in efx_rss_enabled()
105 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter() argument
[all …]
Dsiena.c31 static void siena_init_wol(struct efx_nic *efx);
36 struct efx_nic *efx = channel->efx; in siena_push_irq_moderation() local
42 ticks = efx_usecs_to_ticks(efx, channel->irq_moderation_us); in siena_push_irq_moderation()
54 efx_writed_page_locked(channel->efx, &timer_cmd, FR_BZ_TIMER_COMMAND_P0, in siena_push_irq_moderation()
58 void siena_prepare_flush(struct efx_nic *efx) in siena_prepare_flush() argument
60 if (efx->fc_disable++ == 0) in siena_prepare_flush()
61 efx_mcdi_set_mac(efx); in siena_prepare_flush()
64 void siena_finish_flush(struct efx_nic *efx) in siena_finish_flush() argument
66 if (--efx->fc_disable == 0) in siena_finish_flush()
67 efx_mcdi_set_mac(efx); in siena_finish_flush()
[all …]
Dfarch.c87 static inline void efx_write_buf_tbl(struct efx_nic *efx, efx_qword_t *value, in efx_write_buf_tbl() argument
90 efx_sram_writeq(efx, efx->membase + efx->type->buf_tbl_base, in efx_write_buf_tbl()
101 int efx_farch_test_registers(struct efx_nic *efx, in efx_farch_test_registers() argument
114 efx_reado(efx, &original, address); in efx_farch_test_registers()
125 efx_writeo(efx, &reg, address); in efx_farch_test_registers()
126 efx_reado(efx, &buf, address); in efx_farch_test_registers()
135 efx_writeo(efx, &reg, address); in efx_farch_test_registers()
136 efx_reado(efx, &buf, address); in efx_farch_test_registers()
142 efx_writeo(efx, &original, address); in efx_farch_test_registers()
148 netif_err(efx, hw, efx->net_dev, in efx_farch_test_registers()
[all …]
Dmcdi.c49 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() argument
67 efx->mcdi = kzalloc(sizeof(*efx->mcdi), GFP_KERNEL); in efx_mcdi_init()
68 if (!efx->mcdi) in efx_mcdi_init()
71 mcdi = efx_mcdi(efx); in efx_mcdi_init()
72 mcdi->efx = efx; in efx_mcdi_init()
89 (void) efx_mcdi_poll_reboot(efx); in efx_mcdi_init()
93 rc = efx_mcdi_handle_assertion(efx); in efx_mcdi_init()
[all …]
Defx_common.h14 int efx_init_io(struct efx_nic *efx, int bar, dma_addr_t dma_mask,
16 void efx_fini_io(struct efx_nic *efx);
17 int efx_init_struct(struct efx_nic *efx, struct pci_dev *pci_dev,
19 void efx_fini_struct(struct efx_nic *efx);
28 void efx_link_clear_advertising(struct efx_nic *efx);
29 void efx_link_set_wanted_fc(struct efx_nic *efx, u8);
31 void efx_start_all(struct efx_nic *efx);
32 void efx_stop_all(struct efx_nic *efx);
37 void efx_queue_reset_work(struct efx_nic *efx);
38 void efx_flush_reset_workqueue(struct efx_nic *efx);
[all …]
Def100_nic.c35 static u8 *ef100_mcdi_buf(struct efx_nic *efx, u8 bufid, dma_addr_t *dma_addr) in ef100_mcdi_buf() argument
37 struct ef100_nic_data *nic_data = efx->nic_data; in ef100_mcdi_buf()
45 static int ef100_get_warm_boot_count(struct efx_nic *efx) in ef100_get_warm_boot_count() argument
49 efx_readd(efx, &reg, efx_reg(efx, ER_GZ_MC_SFT_STATUS)); in ef100_get_warm_boot_count()
52 netif_err(efx, hw, efx->net_dev, "Hardware unavailable\n"); in ef100_get_warm_boot_count()
53 efx->state = STATE_DISABLED; in ef100_get_warm_boot_count()
61 static void ef100_mcdi_request(struct efx_nic *efx, in ef100_mcdi_request() argument
66 u8 *pdu = ef100_mcdi_buf(efx, 0, &dma_addr); in ef100_mcdi_request()
78 _efx_writed(efx, cpu_to_le32((u64)dma_addr >> 32), efx_reg(efx, ER_GZ_MC_DB_LWRD)); in ef100_mcdi_request()
79 _efx_writed(efx, cpu_to_le32((u32)dma_addr), efx_reg(efx, ER_GZ_MC_DB_HWRD)); in ef100_mcdi_request()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Defx.c194 static int ef4_soft_enable_interrupts(struct ef4_nic *efx);
195 static void ef4_soft_disable_interrupts(struct ef4_nic *efx);
197 static void ef4_remove_channels(struct ef4_nic *efx);
199 static void ef4_remove_port(struct ef4_nic *efx);
201 static void ef4_fini_napi(struct ef4_nic *efx);
203 static void ef4_fini_struct(struct ef4_nic *efx);
204 static void ef4_start_all(struct ef4_nic *efx);
205 static void ef4_stop_all(struct ef4_nic *efx);
207 #define EF4_ASSERT_RESET_SERIALISED(efx) \ argument
209 if ((efx->state == STATE_READY) || \
[all …]
Dqt202x_phy.c73 static int qt2025c_wait_heartbeat(struct ef4_nic *efx) in qt2025c_wait_heartbeat() argument
81 reg = ef4_mdio_read(efx, MDIO_MMD_PCS, PCS_FW_HEARTBEAT_REG); in qt2025c_wait_heartbeat()
93 netif_err(efx, hw, efx->net_dev, in qt2025c_wait_heartbeat()
105 static int qt2025c_wait_fw_status_good(struct ef4_nic *efx) in qt2025c_wait_fw_status_good() argument
112 reg = ef4_mdio_read(efx, MDIO_MMD_PCS, PCS_UC8051_STATUS_REG); in qt2025c_wait_fw_status_good()
127 static void qt2025c_restart_firmware(struct ef4_nic *efx) in qt2025c_restart_firmware() argument
130 ef4_mdio_write(efx, 3, 0xe854, 0x00c0); in qt2025c_restart_firmware()
131 ef4_mdio_write(efx, 3, 0xe854, 0x0040); in qt2025c_restart_firmware()
135 static int qt2025c_wait_reset(struct ef4_nic *efx) in qt2025c_wait_reset() argument
139 rc = qt2025c_wait_heartbeat(efx); in qt2025c_wait_reset()
[all …]
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() argument
173 ef4_mdio_set_flag(efx, MDIO_MMD_PHYXS, TXC_GPIO_OUTPUT, 1 << pin, 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() argument
179 ef4_mdio_set_flag(efx, MDIO_MMD_PHYXS, TXC_GPIO_DIR, 1 << pin, dir); in falcon_txc_set_gpio_dir()
184 static int txc_reset_phy(struct ef4_nic *efx) in txc_reset_phy() argument
186 int rc = ef4_mdio_reset_mmd(efx, MDIO_MMD_PMAPMD, in txc_reset_phy()
193 rc = ef4_mdio_check_mmds(efx, TXC_REQUIRED_DEVS); in txc_reset_phy()
200 netif_err(efx, hw, efx->net_dev, TXCNAME ": reset timed out!\n"); in txc_reset_phy()
205 static int txc_bist_one(struct ef4_nic *efx, int mmd, int test) in txc_bist_one() argument
[all …]
Dfalcon.c133 #define FALCON_XMAC_STATS_DMA_FLAG(efx) \ argument
134 (*(u32 *)((efx)->stats_buffer.addr + XgDmaDone_offset))
301 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() local
331 ef4_reado(efx, &reg, FR_AB_GPIO_CTL); in falcon_setsda()
333 ef4_writeo(efx, &reg, FR_AB_GPIO_CTL); in falcon_setsda()
338 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setscl() local
341 ef4_reado(efx, &reg, FR_AB_GPIO_CTL); in falcon_setscl()
343 ef4_writeo(efx, &reg, FR_AB_GPIO_CTL); in falcon_setscl()
[all …]
Dselftest.c64 #define INT_MODE(efx) \ argument
65 STRING_TABLE_LOOKUP(efx->interrupt_mode, ef4_interrupt_mode)
96 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_phy_alive() argument
100 if (efx->phy_op->test_alive) { in ef4_test_phy_alive()
101 rc = efx->phy_op->test_alive(efx); in ef4_test_phy_alive()
108 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_nvram() argument
112 if (efx->type->test_nvram) { in ef4_test_nvram()
113 rc = efx->type->test_nvram(efx); in ef4_test_nvram()
130 static int ef4_test_interrupts(struct ef4_nic *efx, in ef4_test_interrupts() argument
137 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in ef4_test_interrupts()
[all …]
Dtenxpress.c148 static int tenxpress_init(struct ef4_nic *efx) in tenxpress_init() argument
151 ef4_mdio_write(efx, MDIO_MMD_PCS, PCS_TEST_SELECT_REG, in tenxpress_init()
155 ef4_mdio_set_flag(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_CTRL_REG, in tenxpress_init()
157 ef4_mdio_write(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_OVERR_REG, in tenxpress_init()
163 static int tenxpress_phy_probe(struct ef4_nic *efx) in tenxpress_phy_probe() argument
171 efx->phy_data = phy_data; in tenxpress_phy_probe()
172 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_probe()
174 efx->mdio.mmds = TENXPRESS_REQUIRED_DEVS; in tenxpress_phy_probe()
175 efx->mdio.mode_support = MDIO_SUPPORTS_C45; in tenxpress_phy_probe()
177 efx->loopback_modes = SFX7101_LOOPBACKS | FALCON_XMAC_LOOPBACKS; in tenxpress_phy_probe()
[all …]
Dmdio_10g.c51 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) in ef4_mdio_check_mmd() argument
57 status = ef4_mdio_read(efx, mmd, MDIO_STAT2); in ef4_mdio_check_mmd()
59 netif_err(efx, hw, efx->net_dev, 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() argument
86 stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1); in ef4_mdio_wait_reset_mmds()
88 netif_err(efx, hw, efx->net_dev, in ef4_mdio_wait_reset_mmds()
105 netif_err(efx, hw, efx->net_dev, 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() argument
125 devs1 = ef4_mdio_read(efx, probe_mmd, MDIO_DEVS1); in ef4_mdio_check_mmds()
126 devs2 = ef4_mdio_read(efx, probe_mmd, MDIO_DEVS2); in ef4_mdio_check_mmds()
[all …]
Dio.h67 static inline void _ef4_writeq(struct ef4_nic *efx, __le64 value, in _ef4_writeq() argument
70 __raw_writeq((__force u64)value, efx->membase + reg); in _ef4_writeq()
72 static inline __le64 _ef4_readq(struct ef4_nic *efx, unsigned int reg) in _ef4_readq() argument
74 return (__force __le64)__raw_readq(efx->membase + reg); in _ef4_readq()
78 static inline void _ef4_writed(struct ef4_nic *efx, __le32 value, in _ef4_writed() argument
81 __raw_writel((__force u32)value, efx->membase + reg); in _ef4_writed()
83 static inline __le32 _ef4_readd(struct ef4_nic *efx, unsigned int reg) in _ef4_readd() argument
85 return (__force __le32)__raw_readl(efx->membase + reg); in _ef4_readd()
89 static inline void ef4_writeo(struct ef4_nic *efx, const ef4_oword_t *value, in ef4_writeo() argument
94 netif_vdbg(efx, hw, efx->net_dev, in ef4_writeo()
[all …]
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);
71 #define EF4_TXQ_MIN_ENT(efx) (2 * ef4_tx_max_skb_descs(efx)) argument
73 static inline bool ef4_rss_enabled(struct ef4_nic *efx) in ef4_rss_enabled() argument
75 return efx->rss_spread > 1; 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() argument
111 return efx->type->filter_insert(efx, spec, replace_equal); in ef4_filter_insert_filter()
123 static inline int ef4_filter_remove_id_safe(struct ef4_nic *efx, in ef4_filter_remove_id_safe() argument
[all …]
Dfarch.c84 static inline void ef4_write_buf_tbl(struct ef4_nic *efx, ef4_qword_t *value, in ef4_write_buf_tbl() argument
87 ef4_sram_writeq(efx, efx->membase + efx->type->buf_tbl_base, in ef4_write_buf_tbl()
98 int ef4_farch_test_registers(struct ef4_nic *efx, in ef4_farch_test_registers() argument
111 ef4_reado(efx, &original, address); in ef4_farch_test_registers()
122 ef4_writeo(efx, &reg, address); in ef4_farch_test_registers()
123 ef4_reado(efx, &buf, address); in ef4_farch_test_registers()
132 ef4_writeo(efx, &reg, address); in ef4_farch_test_registers()
133 ef4_reado(efx, &buf, address); in ef4_farch_test_registers()
139 ef4_writeo(efx, &original, address); in ef4_farch_test_registers()
145 netif_err(efx, hw, efx->net_dev, in ef4_farch_test_registers()
[all …]

1234