/Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | efx.c | 197 static int ef4_soft_enable_interrupts(struct ef4_nic *efx); 198 static void ef4_soft_disable_interrupts(struct ef4_nic *efx); 200 static void ef4_remove_channels(struct ef4_nic *efx); 202 static void ef4_remove_port(struct ef4_nic *efx); 204 static void ef4_fini_napi(struct ef4_nic *efx); 206 static void ef4_fini_struct(struct ef4_nic *efx); 207 static void ef4_start_all(struct ef4_nic *efx); 208 static void ef4_stop_all(struct ef4_nic *efx); 210 #define EF4_ASSERT_RESET_SERIALISED(efx) \ argument 212 if ((efx->state == STATE_READY) || \ [all …]
|
D | qt202x_phy.c | 76 static int qt2025c_wait_heartbeat(struct ef4_nic *efx) in qt2025c_wait_heartbeat() argument 84 reg = ef4_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 ef4_nic *efx) in qt2025c_wait_fw_status_good() argument 115 reg = ef4_mdio_read(efx, MDIO_MMD_PCS, PCS_UC8051_STATUS_REG); in qt2025c_wait_fw_status_good() 130 static void qt2025c_restart_firmware(struct ef4_nic *efx) in qt2025c_restart_firmware() argument 133 ef4_mdio_write(efx, 3, 0xe854, 0x00c0); in qt2025c_restart_firmware() 134 ef4_mdio_write(efx, 3, 0xe854, 0x0040); in qt2025c_restart_firmware() 138 static int qt2025c_wait_reset(struct ef4_nic *efx) in qt2025c_wait_reset() argument 142 rc = qt2025c_wait_heartbeat(efx); in qt2025c_wait_reset() [all …]
|
D | txc43128_phy.c | 171 static void txc_reset_logic(struct ef4_nic *efx); 174 void falcon_txc_set_gpio_val(struct ef4_nic *efx, int pin, int on) in falcon_txc_set_gpio_val() argument 176 ef4_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 ef4_nic *efx, int pin, int dir) in falcon_txc_set_gpio_dir() argument 182 ef4_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 ef4_nic *efx) in txc_reset_phy() argument 189 int rc = ef4_mdio_reset_mmd(efx, MDIO_MMD_PMAPMD, in txc_reset_phy() 196 rc = ef4_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 ef4_nic *efx, int mmd, int test) in txc_bist_one() argument [all …]
|
D | falcon.c | 136 #define FALCON_XMAC_STATS_DMA_FLAG(efx) \ argument 137 (*(u32 *)((efx)->stats_buffer.addr + XgDmaDone_offset)) 304 static int falcon_reset_hw(struct ef4_nic *efx, enum reset_type method); 305 static void falcon_reconfigure_mac_wrapper(struct ef4_nic *efx); 331 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setsda() local 334 ef4_reado(efx, ®, FR_AB_GPIO_CTL); in falcon_setsda() 336 ef4_writeo(efx, ®, FR_AB_GPIO_CTL); in falcon_setsda() 341 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setscl() local 344 ef4_reado(efx, ®, FR_AB_GPIO_CTL); in falcon_setscl() 346 ef4_writeo(efx, ®, FR_AB_GPIO_CTL); in falcon_setscl() [all …]
|
D | selftest.c | 67 #define INT_MODE(efx) \ argument 68 STRING_TABLE_LOOKUP(efx->interrupt_mode, ef4_interrupt_mode) 99 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_phy_alive() argument 103 if (efx->phy_op->test_alive) { in ef4_test_phy_alive() 104 rc = efx->phy_op->test_alive(efx); in ef4_test_phy_alive() 111 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_nvram() argument 115 if (efx->type->test_nvram) { in ef4_test_nvram() 116 rc = efx->type->test_nvram(efx); in ef4_test_nvram() 133 static int ef4_test_interrupts(struct ef4_nic *efx, in ef4_test_interrupts() argument 140 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in ef4_test_interrupts() [all …]
|
D | tenxpress.c | 151 static int tenxpress_init(struct ef4_nic *efx) in tenxpress_init() argument 154 ef4_mdio_write(efx, MDIO_MMD_PCS, PCS_TEST_SELECT_REG, in tenxpress_init() 158 ef4_mdio_set_flag(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_CTRL_REG, in tenxpress_init() 160 ef4_mdio_write(efx, MDIO_MMD_PMAPMD, PMA_PMD_LED_OVERR_REG, in tenxpress_init() 166 static int tenxpress_phy_probe(struct ef4_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 …]
|
D | mdio_10g.c | 54 static int ef4_mdio_check_mmd(struct ef4_nic *efx, int mmd) in ef4_mdio_check_mmd() argument 60 status = ef4_mdio_read(efx, mmd, MDIO_STAT2); in ef4_mdio_check_mmd() 62 netif_err(efx, hw, efx->net_dev, in ef4_mdio_check_mmd() 75 int ef4_mdio_wait_reset_mmds(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_wait_reset_mmds() argument 89 stat = ef4_mdio_read(efx, mmd, MDIO_CTRL1); in ef4_mdio_wait_reset_mmds() 91 netif_err(efx, hw, efx->net_dev, in ef4_mdio_wait_reset_mmds() 108 netif_err(efx, hw, efx->net_dev, in ef4_mdio_wait_reset_mmds() 116 int ef4_mdio_check_mmds(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_check_mmds() argument 128 devs1 = ef4_mdio_read(efx, probe_mmd, MDIO_DEVS1); in ef4_mdio_check_mmds() 129 devs2 = ef4_mdio_read(efx, probe_mmd, MDIO_DEVS2); in ef4_mdio_check_mmds() [all …]
|
D | io.h | 70 static inline void _ef4_writeq(struct ef4_nic *efx, __le64 value, in _ef4_writeq() argument 73 __raw_writeq((__force u64)value, efx->membase + reg); in _ef4_writeq() 75 static inline __le64 _ef4_readq(struct ef4_nic *efx, unsigned int reg) in _ef4_readq() argument 77 return (__force __le64)__raw_readq(efx->membase + reg); in _ef4_readq() 81 static inline void _ef4_writed(struct ef4_nic *efx, __le32 value, in _ef4_writed() argument 84 __raw_writel((__force u32)value, efx->membase + reg); in _ef4_writed() 86 static inline __le32 _ef4_readd(struct ef4_nic *efx, unsigned int reg) in _ef4_readd() argument 88 return (__force __le32)__raw_readl(efx->membase + reg); in _ef4_readd() 92 static inline void ef4_writeo(struct ef4_nic *efx, const ef4_oword_t *value, in ef4_writeo() argument 97 netif_vdbg(efx, hw, efx->net_dev, in ef4_writeo() [all …]
|
D | efx.h | 37 unsigned int ef4_tx_max_skb_descs(struct ef4_nic *efx); 41 void ef4_set_default_rx_indir_table(struct ef4_nic *efx); 42 void ef4_rx_config_page_split(struct ef4_nic *efx); 74 #define EF4_TXQ_MIN_ENT(efx) (2 * ef4_tx_max_skb_descs(efx)) argument 76 static inline bool ef4_rss_enabled(struct ef4_nic *efx) in ef4_rss_enabled() argument 78 return efx->rss_spread > 1; in ef4_rss_enabled() 83 void ef4_mac_reconfigure(struct ef4_nic *efx); 110 static inline s32 ef4_filter_insert_filter(struct ef4_nic *efx, in ef4_filter_insert_filter() argument 114 return efx->type->filter_insert(efx, spec, replace_equal); in ef4_filter_insert_filter() 126 static inline int ef4_filter_remove_id_safe(struct ef4_nic *efx, in ef4_filter_remove_id_safe() argument [all …]
|
D | farch.c | 87 static inline void ef4_write_buf_tbl(struct ef4_nic *efx, ef4_qword_t *value, in ef4_write_buf_tbl() argument 90 ef4_sram_writeq(efx, efx->membase + efx->type->buf_tbl_base, in ef4_write_buf_tbl() 101 int ef4_farch_test_registers(struct ef4_nic *efx, in ef4_farch_test_registers() argument 114 ef4_reado(efx, &original, address); in ef4_farch_test_registers() 125 ef4_writeo(efx, ®, address); in ef4_farch_test_registers() 126 ef4_reado(efx, &buf, address); in ef4_farch_test_registers() 135 ef4_writeo(efx, ®, address); in ef4_farch_test_registers() 136 ef4_reado(efx, &buf, address); in ef4_farch_test_registers() 142 ef4_writeo(efx, &original, address); in ef4_farch_test_registers() 148 netif_err(efx, hw, efx->net_dev, in ef4_farch_test_registers() [all …]
|
D | falcon_boards.c | 90 static int ef4_init_lm87(struct ef4_nic *efx, const struct i2c_board_info *info, in ef4_init_lm87() argument 93 struct falcon_board *board = falcon_board(efx); in ef4_init_lm87() 119 static void ef4_fini_lm87(struct ef4_nic *efx) in ef4_fini_lm87() argument 121 i2c_unregister_device(falcon_board(efx)->hwmon_client); in ef4_fini_lm87() 124 static int ef4_check_lm87(struct ef4_nic *efx, unsigned mask) in ef4_check_lm87() argument 126 struct i2c_client *client = falcon_board(efx)->hwmon_client; in ef4_check_lm87() 132 if (EF4_WORKAROUND_7884(efx) && efx->link_state.up) in ef4_check_lm87() 164 netif_err(efx, hw, efx->net_dev, in ef4_check_lm87() 182 ef4_init_lm87(struct ef4_nic *efx, const struct i2c_board_info *info, in ef4_init_lm87() argument 187 static inline void ef4_fini_lm87(struct ef4_nic *efx) in ef4_fini_lm87() argument [all …]
|
D | rx.c | 65 static inline u32 ef4_rx_buf_hash(struct ef4_nic *efx, const u8 *eh) in ef4_rx_buf_hash() argument 68 return __le32_to_cpup((const __le32 *)(eh + efx->rx_packet_hash_offset)); in ef4_rx_buf_hash() 70 const u8 *data = eh + efx->rx_packet_hash_offset; in ef4_rx_buf_hash() 87 static inline void ef4_sync_rx_buffer(struct ef4_nic *efx, in ef4_sync_rx_buffer() argument 91 dma_sync_single_for_cpu(&efx->pci_dev->dev, rx_buf->dma_addr, len, in ef4_sync_rx_buffer() 95 void ef4_rx_config_page_split(struct ef4_nic *efx) in ef4_rx_config_page_split() argument 97 efx->rx_page_buf_step = ALIGN(efx->rx_dma_len + efx->rx_ip_align, in ef4_rx_config_page_split() 99 efx->rx_bufs_per_page = efx->rx_buffer_order ? 1 : in ef4_rx_config_page_split() 101 efx->rx_page_buf_step); in ef4_rx_config_page_split() 102 efx->rx_buffer_truesize = (PAGE_SIZE << efx->rx_buffer_order) / in ef4_rx_config_page_split() [all …]
|
D | mdio_10g.h | 25 static inline int ef4_mdio_read(struct ef4_nic *efx, int devad, int addr) in ef4_mdio_read() argument 27 return efx->mdio.mdio_read(efx->net_dev, efx->mdio.prtad, devad, addr); in ef4_mdio_read() 31 ef4_mdio_write(struct ef4_nic *efx, int devad, int addr, int value) in ef4_mdio_write() argument 33 efx->mdio.mdio_write(efx->net_dev, efx->mdio.prtad, devad, addr, value); in ef4_mdio_write() 36 static inline u32 ef4_mdio_read_id(struct ef4_nic *efx, int mmd) in ef4_mdio_read_id() argument 38 u16 id_low = ef4_mdio_read(efx, mmd, MDIO_DEVID2); in ef4_mdio_read_id() 39 u16 id_hi = ef4_mdio_read(efx, mmd, MDIO_DEVID1); in ef4_mdio_read_id() 43 static inline bool ef4_mdio_phyxgxs_lane_sync(struct ef4_nic *efx) in ef4_mdio_phyxgxs_lane_sync() argument 49 lane_status = ef4_mdio_read(efx, MDIO_MMD_PHYXS, in ef4_mdio_phyxgxs_lane_sync() 54 netif_dbg(efx, hw, efx->net_dev, "XGXS lane status: %x\n", in ef4_mdio_phyxgxs_lane_sync() [all …]
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | efx.c | 220 static int efx_soft_enable_interrupts(struct efx_nic *efx); 221 static void efx_soft_disable_interrupts(struct efx_nic *efx); 223 static void efx_remove_channels(struct efx_nic *efx); 225 static void efx_remove_port(struct efx_nic *efx); 227 static void efx_fini_napi(struct efx_nic *efx); 229 static void efx_fini_struct(struct efx_nic *efx); 230 static void efx_start_all(struct efx_nic *efx); 231 static void efx_stop_all(struct efx_nic *efx); 233 #define EFX_ASSERT_RESET_SERIALISED(efx) \ argument 235 if ((efx->state == STATE_READY) || \ [all …]
|
D | ef10_sriov.c | 18 static int efx_ef10_evb_port_assign(struct efx_nic *efx, unsigned int port_id, in efx_ef10_evb_port_assign() argument 22 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ef10_evb_port_assign() 29 return efx_mcdi_rpc(efx, MC_CMD_EVB_PORT_ASSIGN, inbuf, sizeof(inbuf), in efx_ef10_evb_port_assign() 33 static int efx_ef10_vswitch_alloc(struct efx_nic *efx, unsigned int port_id, in efx_ef10_vswitch_alloc() argument 46 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VSWITCH_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vswitch_alloc() 52 rc = efx_mcdi_rpc(efx, MC_CMD_VSWITCH_ALLOC, inbuf, in efx_ef10_vswitch_alloc() 55 efx_mcdi_display_error(efx, MC_CMD_VSWITCH_ALLOC, in efx_ef10_vswitch_alloc() 62 static int efx_ef10_vswitch_free(struct efx_nic *efx, unsigned int port_id) in efx_ef10_vswitch_free() argument 68 return efx_mcdi_rpc(efx, MC_CMD_VSWITCH_FREE, inbuf, sizeof(inbuf), in efx_ef10_vswitch_free() 72 static int efx_ef10_vport_alloc(struct efx_nic *efx, in efx_ef10_vport_alloc() argument [all …]
|
D | selftest.c | 67 #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 140 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts() [all …]
|
D | io.h | 82 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 …]
|
D | efx.h | 32 unsigned int efx_tx_max_skb_descs(struct efx_nic *efx); 37 void efx_set_default_rx_indir_table(struct efx_nic *efx, 39 void efx_rx_config_page_split(struct efx_nic *efx); 71 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx)) argument 76 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(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 …]
|
D | siena.c | 31 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 …]
|
D | farch.c | 89 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 116 efx_reado(efx, &original, address); in efx_farch_test_registers() 127 efx_writeo(efx, ®, address); in efx_farch_test_registers() 128 efx_reado(efx, &buf, address); in efx_farch_test_registers() 137 efx_writeo(efx, ®, address); in efx_farch_test_registers() 138 efx_reado(efx, &buf, address); in efx_farch_test_registers() 144 efx_writeo(efx, &original, address); in efx_farch_test_registers() 150 netif_err(efx, hw, efx->net_dev, in efx_farch_test_registers() [all …]
|
D | ef10.c | 125 static void efx_ef10_rx_free_indir_table(struct efx_nic *efx); 126 static void efx_ef10_filter_table_remove(struct efx_nic *efx); 127 static int efx_ef10_filter_add_vlan(struct efx_nic *efx, u16 vid); 128 static void efx_ef10_filter_del_vlan_internal(struct efx_nic *efx, 130 static void efx_ef10_filter_del_vlan(struct efx_nic *efx, u16 vid); 131 static int efx_ef10_set_udp_tnl_ports(struct efx_nic *efx, bool unloading); 149 static int efx_ef10_get_warm_boot_count(struct efx_nic *efx) in efx_ef10_get_warm_boot_count() argument 153 efx_readd(efx, ®, ER_DZ_BIU_MC_SFT_STATUS); in efx_ef10_get_warm_boot_count() 162 static unsigned int efx_ef10_pf_mem_bar(struct efx_nic *efx) in efx_ef10_pf_mem_bar() argument 164 switch (efx->pci_dev->device) { in efx_ef10_pf_mem_bar() [all …]
|
D | mcdi.c | 52 static int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating, 54 static bool efx_mcdi_poll_once(struct efx_nic *efx); 55 static void efx_mcdi_abandon(struct efx_nic *efx); 64 int efx_mcdi_init(struct efx_nic *efx) in efx_mcdi_init() argument 70 efx->mcdi = kzalloc(sizeof(*efx->mcdi), GFP_KERNEL); in efx_mcdi_init() 71 if (!efx->mcdi) in efx_mcdi_init() 74 mcdi = efx_mcdi(efx); in efx_mcdi_init() 75 mcdi->efx = efx; in efx_mcdi_init() 92 (void) efx_mcdi_poll_reboot(efx); in efx_mcdi_init() 96 rc = efx_mcdi_handle_assertion(efx); in efx_mcdi_init() [all …]
|
D | ptp.c | 283 struct efx_nic *efx; member 345 void (*xmit_skb)(struct efx_nic *efx, struct sk_buff *skb); 356 bool efx_ptp_use_mac_tx_timestamps(struct efx_nic *efx) in efx_ptp_use_mac_tx_timestamps() argument 358 struct efx_ef10_nic_data *nic_data = efx->nic_data; in efx_ptp_use_mac_tx_timestamps() 360 return ((efx_nic_rev(efx) >= EFX_REV_HUNT_A0) && in efx_ptp_use_mac_tx_timestamps() 371 return efx_ptp_use_mac_tx_timestamps(channel->efx); in efx_ptp_want_txqs() 399 size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 *strings) in efx_ptp_describe_stats() argument 401 if (!efx->ptp_data) in efx_ptp_describe_stats() 408 size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats) in efx_ptp_update_stats() argument 415 if (!efx->ptp_data) in efx_ptp_update_stats() [all …]
|
D | siena_sriov.c | 88 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, ®, 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 …]
|
D | mcdi_port.c | 36 efx_mcdi_get_phy_cfg(struct efx_nic *efx, struct efx_mcdi_phy_data *cfg) in efx_mcdi_get_phy_cfg() argument 45 rc = efx_mcdi_rpc(efx, MC_CMD_GET_PHY_CFG, NULL, 0, in efx_mcdi_get_phy_cfg() 72 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_get_phy_cfg() 76 static int efx_mcdi_set_link(struct efx_nic *efx, u32 capabilities, in efx_mcdi_set_link() argument 90 rc = efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf), in efx_mcdi_set_link() 95 static int efx_mcdi_loopback_modes(struct efx_nic *efx, u64 *loopback_modes) in efx_mcdi_loopback_modes() argument 101 rc = efx_mcdi_rpc(efx, MC_CMD_GET_LOOPBACK_MODES, NULL, 0, in efx_mcdi_loopback_modes() 117 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_loopback_modes() 124 struct efx_nic *efx = netdev_priv(net_dev); in efx_mcdi_mdio_read() local 130 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_read() [all …]
|