| /Linux-v5.4/drivers/net/ethernet/sfc/falcon/ |
| D | efx.c | 194 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 …]
|
| D | qt202x_phy.c | 73 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 …]
|
| D | txc43128_phy.c | 168 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 …]
|
| D | falcon.c | 133 #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, ®, FR_AB_GPIO_CTL); in falcon_setsda() 333 ef4_writeo(efx, ®, FR_AB_GPIO_CTL); in falcon_setsda() 338 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setscl() local 341 ef4_reado(efx, ®, FR_AB_GPIO_CTL); in falcon_setscl() 343 ef4_writeo(efx, ®, FR_AB_GPIO_CTL); in falcon_setscl() [all …]
|
| D | selftest.c | 64 #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 …]
|
| D | tenxpress.c | 148 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 …]
|
| D | mdio_10g.c | 51 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 …]
|
| D | io.h | 67 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 …]
|
| D | efx.h | 34 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 …]
|
| D | farch.c | 84 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, ®, address); in ef4_farch_test_registers() 123 ef4_reado(efx, &buf, address); in ef4_farch_test_registers() 132 ef4_writeo(efx, ®, 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 …]
|
| D | falcon_boards.c | 87 static int ef4_init_lm87(struct ef4_nic *efx, const struct i2c_board_info *info, in ef4_init_lm87() argument 90 struct falcon_board *board = falcon_board(efx); in ef4_init_lm87() 116 static void ef4_fini_lm87(struct ef4_nic *efx) in ef4_fini_lm87() argument 118 i2c_unregister_device(falcon_board(efx)->hwmon_client); in ef4_fini_lm87() 121 static int ef4_check_lm87(struct ef4_nic *efx, unsigned mask) in ef4_check_lm87() argument 123 struct i2c_client *client = falcon_board(efx)->hwmon_client; in ef4_check_lm87() 129 if (EF4_WORKAROUND_7884(efx) && efx->link_state.up) in ef4_check_lm87() 161 netif_err(efx, hw, efx->net_dev, in ef4_check_lm87() 179 ef4_init_lm87(struct ef4_nic *efx, const struct i2c_board_info *info, in ef4_init_lm87() argument 184 static inline void ef4_fini_lm87(struct ef4_nic *efx) in ef4_fini_lm87() argument [all …]
|
| D | rx.c | 62 static inline u32 ef4_rx_buf_hash(struct ef4_nic *efx, const u8 *eh) in ef4_rx_buf_hash() argument 65 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset)); in ef4_rx_buf_hash() 67 const u8 *data = eh + efx->rx_packet_hash_offset; in ef4_rx_buf_hash() 84 static inline void ef4_sync_rx_buffer(struct ef4_nic *efx, in ef4_sync_rx_buffer() argument 88 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in ef4_sync_rx_buffer() 92 void ef4_rx_config_page_split(struct ef4_nic *efx) in ef4_rx_config_page_split() argument 94 efx->rx_page_buf_step = ALIGN(efx->rx_dma_len + efx->rx_ip_align, in ef4_rx_config_page_split() 96 efx->rx_bufs_per_page = efx->rx_buffer_order ? 1 : in ef4_rx_config_page_split() 98 efx->rx_page_buf_step); in ef4_rx_config_page_split() 99 efx->rx_buffer_truesize = (PAGE_SIZE << efx->rx_buffer_order) / in ef4_rx_config_page_split() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/sfc/ |
| 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); 230 #define EFX_ASSERT_RESET_SERIALISED(efx) \ argument 232 if ((efx->state == STATE_READY) || \ [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() 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 …]
|
| D | selftest.c | 64 #define INT_MODE(efx) \ argument 65 STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_interrupt_mode) 96 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument 100 if (efx->phy_op->test_alive) { in efx_test_phy_alive() 101 rc = efx->phy_op->test_alive(efx); in efx_test_phy_alive() 108 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument 112 if (efx->type->test_nvram) { in efx_test_nvram() 113 rc = efx->type->test_nvram(efx); in efx_test_nvram() 130 static int efx_test_interrupts(struct efx_nic *efx, in efx_test_interrupts() argument 137 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts() [all …]
|
| D | io.h | 79 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq() argument 82 __raw_writeq((__force u64)value, efx->membase + reg); in _efx_writeq() 84 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq() argument 86 return (__force __le64)__raw_readq(efx->membase + reg); in _efx_readq() 90 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed() argument 93 __raw_writel((__force u32)value, efx->membase + reg); in _efx_writed() 95 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd() argument 97 return (__force __le32)__raw_readl(efx->membase + reg); in _efx_readd() 101 static inline void efx_writeo(struct efx_nic *efx, const efx_oword_t *value, in efx_writeo() argument 106 netif_vdbg(efx, hw, efx->net_dev, in efx_writeo() [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); 68 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx)) argument 73 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(efx) ? \ argument 76 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled() argument 78 return efx->rss_spread > 1; 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() argument 114 return efx->type->filter_insert(efx, spec, replace_equal); in efx_filter_insert_filter() [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() local 39 ticks = efx_usecs_to_ticks(efx, channel->irq_moderation_us); in siena_push_irq_moderation() 51 efx_writed_page_locked(channel->efx, &timer_cmd, FR_BZ_TIMER_COMMAND_P0, in siena_push_irq_moderation() 55 void siena_prepare_flush(struct efx_nic *efx) in siena_prepare_flush() argument 57 if (efx->fc_disable++ == 0) in siena_prepare_flush() 58 efx_mcdi_set_mac(efx); in siena_prepare_flush() 61 void siena_finish_flush(struct efx_nic *efx) in siena_finish_flush() argument 63 if (--efx->fc_disable == 0) in siena_finish_flush() 64 efx_mcdi_set_mac(efx); in siena_finish_flush() [all …]
|
| D | farch.c | 86 static inline void efx_write_buf_tbl(struct efx_nic *efx, efx_qword_t *value, in efx_write_buf_tbl() argument 89 efx_sram_writeq(efx, efx->membase + efx->type->buf_tbl_base, in efx_write_buf_tbl() 100 int efx_farch_test_registers(struct efx_nic *efx, in efx_farch_test_registers() argument 113 efx_reado(efx, &original, address); in efx_farch_test_registers() 124 efx_writeo(efx, ®, address); in efx_farch_test_registers() 125 efx_reado(efx, &buf, address); in efx_farch_test_registers() 134 efx_writeo(efx, ®, address); in efx_farch_test_registers() 135 efx_reado(efx, &buf, address); in efx_farch_test_registers() 141 efx_writeo(efx, &original, address); in efx_farch_test_registers() 147 netif_err(efx, hw, efx->net_dev, in efx_farch_test_registers() [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() argument 150 efx_readd(efx, ®, ER_DZ_BIU_MC_SFT_STATUS); 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() argument 161 switch (efx->pci_dev->device) { in efx_ef10_pf_mem_bar() [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() 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 …]
|
| D | ptp.c | 280 struct efx_nic *efx; member 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() argument 355 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ptp_use_mac_tx_timestamps() 357 return ((efx_nic_rev(efx) >= EFX_REV_HUNT_A0) && in efx_ptp_use_mac_tx_timestamps() 368 return efx_ptp_use_mac_tx_timestamps(channel->efx); in efx_ptp_want_txqs() 396 size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 *strings) in efx_ptp_describe_stats() argument 398 if (!efx->ptp_data) in efx_ptp_describe_stats() 405 size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats) in efx_ptp_update_stats() argument 412 if (!efx->ptp_data) in efx_ptp_update_stats() [all …]
|
| D | siena_sriov.c | 85 struct efx_nic *efx; member 192 return EFX_VI_BASE + vf->index * efx_vf_size(vf->efx) + index; in abs_index() 195 static int efx_siena_sriov_cmd(struct efx_nic *efx, bool enable, in efx_siena_sriov_cmd() argument 206 MCDI_SET_DWORD(inbuf, SRIOV_IN_VF_COUNT, efx->vf_count); in efx_siena_sriov_cmd() 208 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_SRIOV, inbuf, MC_CMD_SRIOV_IN_LEN, in efx_siena_sriov_cmd() 228 static void efx_siena_sriov_usrev(struct efx_nic *efx, bool enabled) in efx_siena_sriov_usrev() argument 230 struct siena_nic_data *nic_data = efx->nic_data; in efx_siena_sriov_usrev() 236 efx_writeo(efx, ®, FR_CZ_USR_EV_CFG); in efx_siena_sriov_usrev() 239 static int efx_siena_sriov_memcpy(struct efx_nic *efx, in efx_siena_sriov_memcpy() argument 290 rc = efx_mcdi_rpc(efx, MC_CMD_MEMCPY, inbuf, used, NULL, 0, NULL); in efx_siena_sriov_memcpy() [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() argument 42 rc = efx_mcdi_rpc(efx, MC_CMD_GET_PHY_CFG, NULL, 0, in efx_mcdi_get_phy_cfg() 69 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_get_phy_cfg() 73 static int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities, in efx_mcdi_set_link() argument 87 rc = efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf), in efx_mcdi_set_link() 92 static int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes) in efx_mcdi_loopback_modes() argument 98 rc = efx_mcdi_rpc(efx, MC_CMD_GET_LOOPBACK_MODES, NULL, 0, in efx_mcdi_loopback_modes() 114 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_loopback_modes() 121 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_read() local 127 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_read() [all …]
|
| D | rx.c | 62 static inline u32 efx_rx_buf_hash(struct efx_nic *efx, const u8 *eh) in efx_rx_buf_hash() argument 65 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset)); in efx_rx_buf_hash() 67 const u8 *data = eh + efx->rx_packet_hash_offset; in efx_rx_buf_hash() 84 static inline void efx_sync_rx_buffer(struct efx_nic *efx, in efx_sync_rx_buffer() argument 88 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in efx_sync_rx_buffer() 92 void efx_rx_config_page_split(struct efx_nic *efx) in efx_rx_config_page_split() argument 94 efx->rx_page_buf_step = ALIGN(efx->rx_dma_len + efx->rx_ip_align, in efx_rx_config_page_split() 96 efx->rx_bufs_per_page = efx->rx_buffer_order ? 1 : in efx_rx_config_page_split() 98 efx->rx_page_buf_step); in efx_rx_config_page_split() 99 efx->rx_buffer_truesize = (PAGE_SIZE << efx->rx_buffer_order) / in efx_rx_config_page_split() [all …]
|