Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/sfc/
Defx.c202 static int efx_soft_enable_interrupts(struct efx_nic *efx);
203 static void efx_soft_disable_interrupts(struct efx_nic *efx);
205 static void efx_remove_channels(struct efx_nic *efx);
207 static void efx_remove_port(struct efx_nic *efx);
209 static void efx_fini_napi(struct efx_nic *efx);
211 static void efx_fini_struct(struct efx_nic *efx);
212 static void efx_start_all(struct efx_nic *efx);
213 static void efx_stop_all(struct efx_nic *efx);
215 #define EFX_ASSERT_RESET_SERIALISED(efx) \ argument
217 if ((efx->state == STATE_READY) || \
[all …]
Dqt202x_phy.c76 static int qt2025c_wait_heartbeat(struct efx_nic *efx) in qt2025c_wait_heartbeat() argument
84 reg = efx_mdio_read(efx, MDIO_MMD_PCS, PCS_FW_HEARTBEAT_REG); in qt2025c_wait_heartbeat()
96 netif_err(efx, hw, efx->net_dev, in qt2025c_wait_heartbeat()
108 static int qt2025c_wait_fw_status_good(struct efx_nic *efx) in qt2025c_wait_fw_status_good() argument
115 reg = efx_mdio_read(efx, MDIO_MMD_PCS, PCS_UC8051_STATUS_REG); in qt2025c_wait_fw_status_good()
130 static void qt2025c_restart_firmware(struct efx_nic *efx) in qt2025c_restart_firmware() argument
133 efx_mdio_write(efx, 3, 0xe854, 0x00c0); in qt2025c_restart_firmware()
134 efx_mdio_write(efx, 3, 0xe854, 0x0040); in qt2025c_restart_firmware()
138 static int qt2025c_wait_reset(struct efx_nic *efx) in qt2025c_wait_reset() argument
142 rc = qt2025c_wait_heartbeat(efx); in qt2025c_wait_reset()
[all …]
Dfalcon.c134 #define FALCON_XMAC_STATS_DMA_FLAG(efx) \ argument
135 (*(u32 *)((efx)->stats_buffer.addr + XgDmaDone_offset))
302 static int falcon_reset_hw(struct efx_nic *efx, enum reset_type method);
303 static void falcon_reconfigure_mac_wrapper(struct efx_nic *efx);
329 struct efx_nic *efx = (struct efx_nic *)data; in falcon_setsda() local
332 efx_reado(efx, &reg, FR_AB_GPIO_CTL); in falcon_setsda()
334 efx_writeo(efx, &reg, FR_AB_GPIO_CTL); in falcon_setsda()
339 struct efx_nic *efx = (struct efx_nic *)data; in falcon_setscl() local
342 efx_reado(efx, &reg, FR_AB_GPIO_CTL); in falcon_setscl()
344 efx_writeo(efx, &reg, FR_AB_GPIO_CTL); in falcon_setscl()
[all …]
Dtxc43128_phy.c171 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() argument
176 efx_mdio_set_flag(efx, MDIO_MMD_PHYXS, TXC_GPIO_OUTPUT, 1 << pin, 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() argument
182 efx_mdio_set_flag(efx, MDIO_MMD_PHYXS, TXC_GPIO_DIR, 1 << pin, dir); in falcon_txc_set_gpio_dir()
187 static int txc_reset_phy(struct efx_nic *efx) in txc_reset_phy() argument
189 int rc = efx_mdio_reset_mmd(efx, MDIO_MMD_PMAPMD, in txc_reset_phy()
196 rc = efx_mdio_check_mmds(efx, TXC_REQUIRED_DEVS); in txc_reset_phy()
203 netif_err(efx, hw, efx->net_dev, TXCNAME ": reset timed out!\n"); in txc_reset_phy()
208 static int txc_bist_one(struct efx_nic *efx, int mmd, int test) in txc_bist_one() argument
[all …]
Def10_sriov.c17 static int efx_ef10_evb_port_assign(struct efx_nic *efx, unsigned int port_id, in efx_ef10_evb_port_assign() argument
21 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_evb_port_assign()
28 return efx_mcdi_rpc(efx, MC_CMD_EVB_PORT_ASSIGN, inbuf, sizeof(inbuf), in efx_ef10_evb_port_assign()
32 static int efx_ef10_vswitch_alloc(struct efx_nic *efx, unsigned int port_id, in efx_ef10_vswitch_alloc() argument
45 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VSWITCH_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vswitch_alloc()
51 rc = efx_mcdi_rpc(efx, MC_CMD_VSWITCH_ALLOC, inbuf, in efx_ef10_vswitch_alloc()
54 efx_mcdi_display_error(efx, MC_CMD_VSWITCH_ALLOC, in efx_ef10_vswitch_alloc()
61 static int efx_ef10_vswitch_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vswitch_free() argument
67 return efx_mcdi_rpc(efx, MC_CMD_VSWITCH_FREE, inbuf, sizeof(inbuf), in efx_ef10_vswitch_free()
71 static int efx_ef10_vport_alloc(struct efx_nic *efx, in efx_ef10_vport_alloc() argument
[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 if (efx->phy_op->test_alive) { in efx_test_phy_alive()
104 rc = efx->phy_op->test_alive(efx); in efx_test_phy_alive()
111 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument
115 if (efx->type->test_nvram) { in efx_test_nvram()
116 rc = efx->type->test_nvram(efx); in efx_test_nvram()
133 static int efx_test_interrupts(struct efx_nic *efx, in efx_test_interrupts() argument
139 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts()
[all …]
Dtenxpress.c151 static int tenxpress_init(struct efx_nic *efx) in tenxpress_init() argument
154 efx_mdio_write(efx, MDIO_MMD_PCS, PCS_TEST_SELECT_REG, in tenxpress_init()
158 efx_mdio_set_flag(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_CTRL_REG, in tenxpress_init()
160 efx_mdio_write(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_OVERR_REG, in tenxpress_init()
166 static int tenxpress_phy_probe(struct efx_nic *efx) in tenxpress_phy_probe() argument
174 efx->phy_data = phy_data; in tenxpress_phy_probe()
175 phy_data->phy_mode = efx->phy_mode; in tenxpress_phy_probe()
177 efx->mdio.mmds = TENXPRESS_REQUIRED_DEVS; in tenxpress_phy_probe()
178 efx->mdio.mode_support = MDIO_SUPPORTS_C45; in tenxpress_phy_probe()
180 efx->loopback_modes = SFX7101_LOOPBACKS | FALCON_XMAC_LOOPBACKS; in tenxpress_phy_probe()
[all …]
Dfarch.c89 static inline void efx_write_buf_tbl(struct efx_nic *efx, efx_qword_t *value, in efx_write_buf_tbl() argument
92 efx_sram_writeq(efx, efx->membase + efx->type->buf_tbl_base, in efx_write_buf_tbl()
103 int efx_farch_test_registers(struct efx_nic *efx, in efx_farch_test_registers() argument
115 efx_reado(efx, &original, address); in efx_farch_test_registers()
126 efx_writeo(efx, &reg, address); in efx_farch_test_registers()
127 efx_reado(efx, &buf, address); in efx_farch_test_registers()
136 efx_writeo(efx, &reg, address); in efx_farch_test_registers()
137 efx_reado(efx, &buf, address); in efx_farch_test_registers()
143 efx_writeo(efx, &original, address); in efx_farch_test_registers()
149 netif_err(efx, hw, efx->net_dev, in efx_farch_test_registers()
[all …]
Dmdio_10g.c54 static int efx_mdio_check_mmd(struct efx_nic *efx, int mmd) in efx_mdio_check_mmd() argument
60 status = efx_mdio_read(efx, mmd, MDIO_STAT2); in efx_mdio_check_mmd()
62 netif_err(efx, hw, efx->net_dev, 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() argument
89 stat = efx_mdio_read(efx, mmd, MDIO_CTRL1); in efx_mdio_wait_reset_mmds()
91 netif_err(efx, hw, efx->net_dev, in efx_mdio_wait_reset_mmds()
108 netif_err(efx, hw, efx->net_dev, 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() argument
128 devs1 = efx_mdio_read(efx, probe_mmd, MDIO_DEVS1); in efx_mdio_check_mmds()
129 devs2 = efx_mdio_read(efx, probe_mmd, MDIO_DEVS2); in efx_mdio_check_mmds()
[all …]
Dio.h82 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq() argument
85 __raw_writeq((__force u64)value, efx->membase + reg); in _efx_writeq()
87 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq() argument
89 return (__force __le64)__raw_readq(efx->membase + reg); in _efx_readq()
93 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed() argument
96 __raw_writel((__force u32)value, efx->membase + reg); in _efx_writed()
98 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd() argument
100 return (__force __le32)__raw_readl(efx->membase + reg); in _efx_readd()
104 static inline void efx_writeo(struct efx_nic *efx, const efx_oword_t *value, in efx_writeo() argument
109 netif_vdbg(efx, hw, efx->net_dev, in efx_writeo()
[all …]
Dsiena.c32 static void siena_init_wol(struct efx_nic *efx);
50 efx_writed_page_locked(channel->efx, &timer_cmd, FR_BZ_TIMER_COMMAND_P0, in siena_push_irq_moderation()
54 void siena_prepare_flush(struct efx_nic *efx) in siena_prepare_flush() argument
56 if (efx->fc_disable++ == 0) in siena_prepare_flush()
57 efx_mcdi_set_mac(efx); in siena_prepare_flush()
60 void siena_finish_flush(struct efx_nic *efx) in siena_finish_flush() argument
62 if (--efx->fc_disable == 0) in siena_finish_flush()
63 efx_mcdi_set_mac(efx); in siena_finish_flush()
95 static int siena_test_chip(struct efx_nic *efx, struct efx_self_tests *tests) in siena_test_chip() argument
100 efx_reset_down(efx, reset_method); in siena_test_chip()
[all …]
Defx.h36 unsigned int efx_tx_max_skb_descs(struct efx_nic *efx);
41 void efx_set_default_rx_indir_table(struct efx_nic *efx);
42 void efx_rx_config_page_split(struct efx_nic *efx);
74 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx)) argument
76 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_35388(efx) ? \ argument
79 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled() argument
81 return efx->rss_spread > 1; in efx_rss_enabled()
86 void efx_mac_reconfigure(struct efx_nic *efx);
113 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter() argument
117 return efx->type->filter_insert(efx, spec, replace_equal); in efx_filter_insert_filter()
[all …]
Dmcdi.c53 static int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating,
55 static bool efx_mcdi_poll_once(struct efx_nic *efx);
56 static void efx_mcdi_abandon(struct efx_nic *efx);
65 int efx_mcdi_init(struct efx_nic *efx) in efx_mcdi_init() argument
71 efx->mcdi = kzalloc(sizeof(*efx->mcdi), GFP_KERNEL); in efx_mcdi_init()
72 if (!efx->mcdi) in efx_mcdi_init()
75 mcdi = efx_mcdi(efx); in efx_mcdi_init()
76 mcdi->efx = efx; in efx_mcdi_init()
93 (void) efx_mcdi_poll_reboot(efx); in efx_mcdi_init()
97 rc = efx_mcdi_handle_assertion(efx); in efx_mcdi_init()
[all …]
Def10.c91 static void efx_ef10_rx_free_indir_table(struct efx_nic *efx);
92 static void efx_ef10_filter_table_remove(struct efx_nic *efx);
94 static int efx_ef10_get_warm_boot_count(struct efx_nic *efx) in efx_ef10_get_warm_boot_count() argument
98 efx_readd(efx, &reg, ER_DZ_BIU_MC_SFT_STATUS); in efx_ef10_get_warm_boot_count()
103 static unsigned int efx_ef10_mem_map_size(struct efx_nic *efx) in efx_ef10_mem_map_size() argument
107 bar = efx->type->mem_bar; in efx_ef10_mem_map_size()
108 return resource_size(&efx->pci_dev->resource[bar]); in efx_ef10_mem_map_size()
111 static bool efx_ef10_is_vf(struct efx_nic *efx) in efx_ef10_is_vf() argument
113 return efx->type->is_vf; in efx_ef10_is_vf()
116 static int efx_ef10_get_pf_index(struct efx_nic *efx) in efx_ef10_get_pf_index() argument
[all …]
Dsiena_sriov.c88 struct efx_nic *efx; member
195 return EFX_VI_BASE + vf->index * efx_vf_size(vf->efx) + index; in abs_index()
198 static int efx_siena_sriov_cmd(struct efx_nic *efx, bool enable, in efx_siena_sriov_cmd() argument
209 MCDI_SET_DWORD(inbuf, SRIOV_IN_VF_COUNT, efx->vf_count); in efx_siena_sriov_cmd()
211 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_SRIOV, inbuf, MC_CMD_SRIOV_IN_LEN, in efx_siena_sriov_cmd()
231 static void efx_siena_sriov_usrev(struct efx_nic *efx, bool enabled) in efx_siena_sriov_usrev() argument
233 struct siena_nic_data *nic_data = efx->nic_data; in efx_siena_sriov_usrev()
239 efx_writeo(efx, &reg, FR_CZ_USR_EV_CFG); in efx_siena_sriov_usrev()
242 static int efx_siena_sriov_memcpy(struct efx_nic *efx, in efx_siena_sriov_memcpy() argument
293 rc = efx_mcdi_rpc(efx, MC_CMD_MEMCPY, inbuf, used, NULL, 0, NULL); in efx_siena_sriov_memcpy()
[all …]
Dethtool.c99 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id() local
116 efx->type->set_id_led(efx, mode); in efx_ethtool_phys_id()
124 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_settings() local
125 struct efx_link_state *link_state = &efx->link_state; in efx_ethtool_get_settings()
127 mutex_lock(&efx->mac_lock); in efx_ethtool_get_settings()
128 efx->phy_op->get_settings(efx, ecmd); in efx_ethtool_get_settings()
129 mutex_unlock(&efx->mac_lock); in efx_ethtool_get_settings()
134 if (LOOPBACK_INTERNAL(efx)) { in efx_ethtool_get_settings()
146 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_settings() local
152 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_settings()
[all …]
Dfalcon_boards.c90 static int efx_init_lm87(struct efx_nic *efx, const struct i2c_board_info *info, in efx_init_lm87() argument
93 struct falcon_board *board = falcon_board(efx); in efx_init_lm87()
119 static void efx_fini_lm87(struct efx_nic *efx) in efx_fini_lm87() argument
121 i2c_unregister_device(falcon_board(efx)->hwmon_client); in efx_fini_lm87()
124 static int efx_check_lm87(struct efx_nic *efx, unsigned mask) in efx_check_lm87() argument
126 struct i2c_client *client = falcon_board(efx)->hwmon_client; in efx_check_lm87()
132 if (EFX_WORKAROUND_7884(efx) && efx->link_state.up) in efx_check_lm87()
164 netif_err(efx, hw, efx->net_dev, in efx_check_lm87()
182 efx_init_lm87(struct efx_nic *efx, const struct i2c_board_info *info, in efx_init_lm87() argument
187 static inline void efx_fini_lm87(struct efx_nic *efx) in efx_fini_lm87() argument
[all …]
Drx.c65 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash() argument
68 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset)); in efx_rx_buf_hash()
70 const u8 *data = eh + efx->rx_packet_hash_offset; in efx_rx_buf_hash()
87 static inline void efx_sync_rx_buffer(struct efx_nic *efx, in efx_sync_rx_buffer() argument
91 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in efx_sync_rx_buffer()
95 void efx_rx_config_page_split(struct efx_nic *efx) in efx_rx_config_page_split() argument
97 efx->rx_page_buf_step = ALIGN(efx->rx_dma_len + efx->rx_ip_align, in efx_rx_config_page_split()
99 efx->rx_bufs_per_page = efx->rx_buffer_order ? 1 : in efx_rx_config_page_split()
101 efx->rx_page_buf_step); in efx_rx_config_page_split()
102 efx->rx_buffer_truesize = (PAGE_SIZE << efx->rx_buffer_order) / in efx_rx_config_page_split()
[all …]
Dptp.c269 struct efx_nic *efx; member
357 size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 *strings) in efx_ptp_describe_stats() argument
359 if (!efx->ptp_data) in efx_ptp_describe_stats()
366 size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats) in efx_ptp_update_stats() argument
373 if (!efx->ptp_data) in efx_ptp_update_stats()
380 stats[i] = *(unsigned int *)((char *)efx->ptp_data + in efx_ptp_update_stats()
390 rc = efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_update_stats()
475 static int efx_ptp_get_attributes(struct efx_nic *efx) in efx_ptp_get_attributes() argument
479 struct efx_ptp_data *ptp = efx->ptp_data; in efx_ptp_get_attributes()
490 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_get_attributes()
[all …]
Dmcdi_port.c37 efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg) in efx_mcdi_get_phy_cfg() argument
46 rc = efx_mcdi_rpc(efx, MC_CMD_GET_PHY_CFG, NULL, 0, in efx_mcdi_get_phy_cfg()
73 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_get_phy_cfg()
77 static int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities, in efx_mcdi_set_link() argument
91 rc = efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf), in efx_mcdi_set_link()
96 static int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes) in efx_mcdi_loopback_modes() argument
102 rc = efx_mcdi_rpc(efx, MC_CMD_GET_LOOPBACK_MODES, NULL, 0, in efx_mcdi_loopback_modes()
118 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_loopback_modes()
125 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_read() local
131 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_read()
[all …]
Dnic.h28 static inline int efx_nic_rev(struct efx_nic *efx) in efx_nic_rev() argument
30 return efx->type->revision; in efx_nic_rev()
33 u32 efx_farch_fpga_ver(struct efx_nic *efx);
36 static inline bool efx_nic_is_dual_func(struct efx_nic *efx) in efx_nic_is_dual_func() argument
38 return efx_nic_rev(efx) < EFX_REV_FALCON_B0; in efx_nic_is_dual_func()
176 void (*init_phy) (struct efx_nic *efx);
178 void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode);
312 static inline struct falcon_board *falcon_board(struct efx_nic *efx) in falcon_board() argument
314 struct falcon_nic_data *data = efx->nic_data; in falcon_board()
394 struct efx_nic *efx; member
[all …]
Dnet_driver.h229 struct efx_nic *efx ____cacheline_aligned_in_smp;
342 struct efx_nic *efx; member
426 struct efx_nic *efx; member
606 struct efx_nic *efx; member
645 #define LOOPBACK_MODE(efx) \ argument
646 STRING_TABLE_LOOKUP((efx)->loopback_mode, efx_loopback_mode)
717 int (*probe) (struct efx_nic *efx);
718 int (*init) (struct efx_nic *efx);
719 void (*fini) (struct efx_nic *efx);
720 void (*remove) (struct efx_nic *efx);
[all …]
Dmdio_10g.h25 static inline int efx_mdio_read(struct efx_nic *efx, int devad, int addr) in efx_mdio_read() argument
27 return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); in efx_mdio_read()
31 efx_mdio_write(struct efx_nic *efx, int devad, int addr, int value) in efx_mdio_write() argument
33 efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value); in efx_mdio_write()
36 static inline u32 efx_mdio_read_id(struct efx_nic *efx, int mmd) in efx_mdio_read_id() argument
38 u16 id_low = efx_mdio_read(efx, mmd, MDIO_DEVID2); in efx_mdio_read_id()
39 u16 id_hi = efx_mdio_read(efx, mmd, MDIO_DEVID1); in efx_mdio_read_id()
43 static inline bool efx_mdio_phyxgxs_lane_sync(struct efx_nic *efx) in efx_mdio_phyxgxs_lane_sync() argument
49 lane_status = efx_mdio_read(efx, MDIO_MMD_PHYXS, in efx_mdio_phyxgxs_lane_sync()
54 netif_dbg(efx, hw, efx->net_dev, "XGXS lane status: %x\n", in efx_mdio_phyxgxs_lane_sync()
[all …]
Dnic.c34 int efx_nic_alloc_buffer(struct efx_nic *efx, struct efx_buffer *buffer, in efx_nic_alloc_buffer() argument
37 buffer->addr = dma_zalloc_coherent(&efx->pci_dev->dev, len, in efx_nic_alloc_buffer()
45 void efx_nic_free_buffer(struct efx_nic *efx, struct efx_buffer *buffer) in efx_nic_free_buffer() argument
48 dma_free_coherent(&efx->pci_dev->dev, buffer->len, in efx_nic_free_buffer()
66 channel->efx->type->ev_test_generate(channel); in efx_nic_event_test_start()
69 void efx_nic_irq_test_start(struct efx_nic *efx) in efx_nic_irq_test_start() argument
71 efx->last_irq_cpu = -1; in efx_nic_irq_test_start()
73 efx->type->irq_test_generate(efx); in efx_nic_irq_test_start()
79 int efx_nic_init_interrupt(struct efx_nic *efx) in efx_nic_init_interrupt() argument
85 if (!EFX_INT_MODE_USE_MSI(efx)) { in efx_nic_init_interrupt()
[all …]
Dsriov.c16 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_mac() local
18 if (efx->type->sriov_set_vf_mac) in efx_sriov_set_vf_mac()
19 return efx->type->sriov_set_vf_mac(efx, vf_i, mac); in efx_sriov_set_vf_mac()
27 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_vlan() local
29 if (efx->type->sriov_set_vf_vlan) { in efx_sriov_set_vf_vlan()
34 return efx->type->sriov_set_vf_vlan(efx, vf_i, vlan, qos); in efx_sriov_set_vf_vlan()
43 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_spoofchk() local
45 if (efx->type->sriov_set_vf_spoofchk) in efx_sriov_set_vf_spoofchk()
46 return efx->type->sriov_set_vf_spoofchk(efx, vf_i, spoofchk); in efx_sriov_set_vf_spoofchk()
54 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_get_vf_config() local
[all …]

12