/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | efx_common.c | 124 void efx_siena_queue_reset_work(struct efx_nic *efx) in efx_siena_queue_reset_work() argument 126 queue_work(reset_workqueue, &efx->reset_work); in efx_siena_queue_reset_work() 129 void efx_siena_flush_reset_workqueue(struct efx_nic *efx) in efx_siena_flush_reset_workqueue() argument 131 cancel_work_sync(&efx->reset_work); in efx_siena_flush_reset_workqueue() 145 void efx_siena_mac_reconfigure(struct efx_nic *efx, bool mtu_only) in efx_siena_mac_reconfigure() argument 147 if (efx->type->reconfigure_mac) { in efx_siena_mac_reconfigure() 148 down_read(&efx->filter_sem); in efx_siena_mac_reconfigure() 149 efx->type->reconfigure_mac(efx, mtu_only); in efx_siena_mac_reconfigure() 150 up_read(&efx->filter_sem); in efx_siena_mac_reconfigure() 160 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); in efx_mac_work() local [all …]
|
H A D | efx.c | 105 static void efx_remove_port(struct efx_nic *efx); 106 static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog); 111 #define EFX_ASSERT_RESET_SERIALISED(efx) \ argument 113 if ((efx->state == STATE_READY) || \ 114 (efx->state == STATE_RECOVERY) || \ 115 (efx->state == STATE_DISABLED)) \ 125 static void efx_fini_port(struct efx_nic *efx); 127 static int efx_probe_port(struct efx_nic *efx) in efx_probe_port() argument 131 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port() 134 efx->phy_mode = PHY_MODE_SPECIAL; in efx_probe_port() [all …]
|
H A D | efx_channels.c | 55 static unsigned int count_online_cores(struct efx_nic *efx, bool local_node) in count_online_cores() argument 62 netif_warn(efx, probe, efx->net_dev, in count_online_cores() 70 cpumask_of_pcibus(efx->pci_dev->bus)); in count_online_cores() 83 static unsigned int efx_wanted_parallelism(struct efx_nic *efx) in efx_wanted_parallelism() argument 90 count = count_online_cores(efx, true); in efx_wanted_parallelism() 94 count = count_online_cores(efx, false); in efx_wanted_parallelism() 98 netif_cond_dbg(efx, probe, efx->net_dev, !efx_siena_rss_cpus, in efx_wanted_parallelism() 109 if (efx->type->sriov_wanted) { in efx_wanted_parallelism() 110 if (efx->type->sriov_wanted(efx) && efx_vf_size(efx) > 1 && in efx_wanted_parallelism() 111 count > efx_vf_size(efx)) { in efx_wanted_parallelism() [all …]
|
H A D | selftest.c | 72 #define INT_MODE(efx) \ argument 73 STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_siena_interrupt_mode) 104 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument 108 rc = efx_siena_mcdi_phy_test_alive(efx); in efx_test_phy_alive() 114 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument 118 if (efx->type->test_nvram) { in efx_test_nvram() 119 rc = efx->type->test_nvram(efx); in efx_test_nvram() 136 static int efx_test_interrupts(struct efx_nic *efx, in efx_test_interrupts() argument 143 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts() 146 rc = efx_siena_irq_test_start(efx); in efx_test_interrupts() [all …]
|
H A D | io.h | 78 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 …]
|
H A D | siena.c | 32 static void siena_init_wol(struct efx_nic *efx); 37 struct efx_nic *efx = channel->efx; in siena_push_irq_moderation() local 43 ticks = efx_siena_usecs_to_ticks(efx, channel->irq_moderation_us); in siena_push_irq_moderation() 55 efx_writed_page_locked(channel->efx, &timer_cmd, FR_BZ_TIMER_COMMAND_P0, in siena_push_irq_moderation() 59 void efx_siena_prepare_flush(struct efx_nic *efx) in efx_siena_prepare_flush() argument 61 if (efx->fc_disable++ == 0) in efx_siena_prepare_flush() 62 efx_siena_mcdi_set_mac(efx); in efx_siena_prepare_flush() 65 void siena_finish_flush(struct efx_nic *efx) in siena_finish_flush() argument 67 if (--efx->fc_disable == 0) in siena_finish_flush() 68 efx_siena_mcdi_set_mac(efx); in siena_finish_flush() [all …]
|
H A D | farch.c | 88 static inline void efx_write_buf_tbl(struct efx_nic *efx, efx_qword_t *value, in efx_write_buf_tbl() argument 91 efx_sram_writeq(efx, efx->membase + efx->type->buf_tbl_base, in efx_write_buf_tbl() 102 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, ®, address); in efx_farch_test_registers() 127 efx_reado(efx, &buf, address); in efx_farch_test_registers() 136 efx_writeo(efx, ®, 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 …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | efx_common.c | 120 void efx_queue_reset_work(struct efx_nic *efx) in efx_queue_reset_work() argument 122 queue_work(reset_workqueue, &efx->reset_work); in efx_queue_reset_work() 125 void efx_flush_reset_workqueue(struct efx_nic *efx) in efx_flush_reset_workqueue() argument 127 cancel_work_sync(&efx->reset_work); in efx_flush_reset_workqueue() 141 void efx_mac_reconfigure(struct efx_nic *efx, bool mtu_only) in efx_mac_reconfigure() argument 143 if (efx->type->reconfigure_mac) { in efx_mac_reconfigure() 144 down_read(&efx->filter_sem); in efx_mac_reconfigure() 145 efx->type->reconfigure_mac(efx, mtu_only); in efx_mac_reconfigure() 146 up_read(&efx->filter_sem); in efx_mac_reconfigure() 156 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); in efx_mac_work() local [all …]
|
H A D | efx.c | 103 static void efx_remove_port(struct efx_nic *efx); 104 static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog); 115 static void efx_fini_port(struct efx_nic *efx); 117 static int efx_probe_port(struct efx_nic *efx) in efx_probe_port() argument 121 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port() 124 efx->phy_mode = PHY_MODE_SPECIAL; in efx_probe_port() 127 rc = efx->type->probe_port(efx); in efx_probe_port() 132 eth_hw_addr_set(efx->net_dev, efx->net_dev->perm_addr); in efx_probe_port() 137 static int efx_init_port(struct efx_nic *efx) in efx_init_port() argument 141 netif_dbg(efx, drv, efx->net_dev, "init port\n"); in efx_init_port() [all …]
|
H A D | ef100_netdev.c | 30 static void ef100_update_name(struct efx_nic *efx) in ef100_update_name() argument 32 strcpy(efx->name, efx->net_dev->name); in ef100_update_name() 35 static int ef100_alloc_vis(struct efx_nic *efx, unsigned int *allocated_vis) in ef100_alloc_vis() argument 41 unsigned int tx_vis = efx->n_tx_channels + efx->n_extra_tx_channels; in ef100_alloc_vis() 42 unsigned int rx_vis = efx->n_rx_channels; in ef100_alloc_vis() 46 EFX_WARN_ON_PARANOID(efx->tx_queues_per_channel != 1); in ef100_alloc_vis() 48 tx_vis += efx->n_xdp_channels * efx->xdp_tx_per_channel; in ef100_alloc_vis() 52 min_vis = efx->tx_queues_per_channel; in ef100_alloc_vis() 54 rc = efx_mcdi_alloc_vis(efx, min_vis, max_vis, in ef100_alloc_vis() 66 static int ef100_remap_bar(struct efx_nic *efx, int max_vis) in ef100_remap_bar() argument [all …]
|
H A D | efx_channels.c | 55 static unsigned int count_online_cores(struct efx_nic *efx, bool local_node) in count_online_cores() argument 62 netif_warn(efx, probe, efx->net_dev, in count_online_cores() 70 cpumask_of_pcibus(efx->pci_dev->bus)); in count_online_cores() 83 static unsigned int efx_wanted_parallelism(struct efx_nic *efx) in efx_wanted_parallelism() argument 90 count = count_online_cores(efx, true); in efx_wanted_parallelism() 94 count = count_online_cores(efx, false); in efx_wanted_parallelism() 98 netif_cond_dbg(efx, probe, efx->net_dev, !rss_cpus, warn, in efx_wanted_parallelism() 108 if (efx->type->sriov_wanted) { in efx_wanted_parallelism() 109 if (efx->type->sriov_wanted(efx) && efx_vf_size(efx) > 1 && in efx_wanted_parallelism() 110 count > efx_vf_size(efx)) { in efx_wanted_parallelism() [all …]
|
H A 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 …]
|
H A D | selftest.c | 71 #define INT_MODE(efx) \ argument 72 STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_interrupt_mode) 103 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument 107 rc = efx_mcdi_phy_test_alive(efx); in efx_test_phy_alive() 113 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument 117 if (efx->type->test_nvram) { in efx_test_nvram() 118 rc = efx->type->test_nvram(efx); in efx_test_nvram() 135 static int efx_test_interrupts(struct efx_nic *efx, in efx_test_interrupts() argument 142 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts() 145 rc = efx_nic_irq_test_start(efx); in efx_test_interrupts() [all …]
|
H A D | ef100.c | 41 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 …]
|
H A D | io.h | 54 static inline u32 efx_reg(struct efx_nic *efx, unsigned int reg) in efx_reg() argument 56 return efx->reg_base + reg; in efx_reg() 60 static inline void _efx_writeq(struct efx_nic *efx, __le64 value, in _efx_writeq() argument 63 __raw_writeq((__force u64)value, efx->membase + reg); in _efx_writeq() 65 static inline __le64 _efx_readq(struct efx_nic *efx, unsigned int reg) in _efx_readq() argument 67 return (__force __le64)__raw_readq(efx->membase + reg); in _efx_readq() 71 static inline void _efx_writed(struct efx_nic *efx, __le32 value, in _efx_writed() argument 74 __raw_writel((__force u32)value, efx->membase + reg); in _efx_writed() 76 static inline __le32 _efx_readd(struct efx_nic *efx, unsigned int reg) in _efx_readd() argument 78 return (__force __le32)__raw_readl(efx->membase + reg); in _efx_readd() [all …]
|
H A D | ef10.c | 42 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, ®, 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 …]
|
H A D | efx.h | 28 return INDIRECT_CALL_2(tx_queue->efx->type->tx_enqueue, in efx_enqueue_skb() 42 INDIRECT_CALL_2(channel->efx->type->rx_packet, in efx_rx_flush_packet() 46 static inline bool efx_rx_buf_hash_valid(struct efx_nic *efx, const u8 *prefix) in efx_rx_buf_hash_valid() argument 48 if (efx->type->rx_buf_hash_valid) in efx_rx_buf_hash_valid() 49 return INDIRECT_CALL_1(efx->type->rx_buf_hash_valid, in efx_rx_buf_hash_valid() 63 #define EFX_TXQ_MIN_ENT(efx) (2 * efx_tx_max_skb_descs(efx)) argument 68 #define EFX_TXQ_MAX_ENT(efx) (EFX_WORKAROUND_EF10(efx) ? \ argument 71 static inline bool efx_rss_enabled(struct efx_nic *efx) in efx_rss_enabled() argument 73 return efx->rss_spread > 1; in efx_rss_enabled() 103 static inline s32 efx_filter_insert_filter(struct efx_nic *efx, in efx_filter_insert_filter() argument [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | efx.c | 188 static int ef4_soft_enable_interrupts(struct ef4_nic *efx); 189 static void ef4_soft_disable_interrupts(struct ef4_nic *efx); 191 static void ef4_remove_channels(struct ef4_nic *efx); 193 static void ef4_remove_port(struct ef4_nic *efx); 195 static void ef4_fini_napi(struct ef4_nic *efx); 197 static void ef4_fini_struct(struct ef4_nic *efx); 198 static void ef4_start_all(struct ef4_nic *efx); 199 static void ef4_stop_all(struct ef4_nic *efx); 201 #define EF4_ASSERT_RESET_SERIALISED(efx) \ argument 203 if ((efx->state == STATE_READY) || \ [all …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A D | selftest.c | 69 #define INT_MODE(efx) \ argument 70 STRING_TABLE_LOOKUP(efx->interrupt_mode, ef4_interrupt_mode) 101 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_phy_alive() argument 105 if (efx->phy_op->test_alive) { in ef4_test_phy_alive() 106 rc = efx->phy_op->test_alive(efx); in ef4_test_phy_alive() 113 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_nvram() argument 117 if (efx->type->test_nvram) { in ef4_test_nvram() 118 rc = efx->type->test_nvram(efx); in ef4_test_nvram() 135 static int ef4_test_interrupts(struct ef4_nic *efx, in ef4_test_interrupts() argument 142 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in ef4_test_interrupts() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|