/Linux-v6.1/drivers/net/ethernet/sfc/siena/ |
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 …]
|
D | efx.c | 106 static void efx_remove_port(struct efx_nic *efx); 107 static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog); 112 #define EFX_ASSERT_RESET_SERIALISED(efx) \ argument 114 if ((efx->state == STATE_READY) || \ 115 (efx->state == STATE_RECOVERY) || \ 116 (efx->state == STATE_DISABLED)) \ 126 static void efx_fini_port(struct efx_nic *efx); 128 static int efx_probe_port(struct efx_nic *efx) in efx_probe_port() argument 132 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port() 135 efx->phy_mode = PHY_MODE_SPECIAL; in efx_probe_port() [all …]
|
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 …]
|
D | selftest.c | 67 #define INT_MODE(efx) \ argument 68 STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_siena_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_siena_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_siena_irq_test_start(efx); in efx_test_interrupts() [all …]
|
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 …]
|
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 …]
|
/Linux-v6.1/drivers/net/ethernet/sfc/ |
D | efx_common.c | 125 void efx_queue_reset_work(struct efx_nic *efx) in efx_queue_reset_work() argument 127 queue_work(reset_workqueue, &efx->reset_work); in efx_queue_reset_work() 130 void efx_flush_reset_workqueue(struct efx_nic *efx) in efx_flush_reset_workqueue() argument 132 cancel_work_sync(&efx->reset_work); in efx_flush_reset_workqueue() 146 void efx_mac_reconfigure(struct efx_nic *efx, bool mtu_only) in efx_mac_reconfigure() argument 148 if (efx->type->reconfigure_mac) { in efx_mac_reconfigure() 149 down_read(&efx->filter_sem); in efx_mac_reconfigure() 150 efx->type->reconfigure_mac(efx, mtu_only); in efx_mac_reconfigure() 151 up_read(&efx->filter_sem); in efx_mac_reconfigure() 161 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); in efx_mac_work() local [all …]
|
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 …]
|
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 …]
|
D | ef100_netdev.c | 28 static void ef100_update_name(struct efx_nic *efx) in ef100_update_name() argument 30 strcpy(efx->name, efx->net_dev->name); in ef100_update_name() 33 static int ef100_alloc_vis(struct efx_nic *efx, unsigned int *allocated_vis) in ef100_alloc_vis() argument 39 unsigned int tx_vis = efx->n_tx_channels + efx->n_extra_tx_channels; in ef100_alloc_vis() 40 unsigned int rx_vis = efx->n_rx_channels; in ef100_alloc_vis() 43 EFX_WARN_ON_PARANOID(efx->tx_queues_per_channel != 1); in ef100_alloc_vis() 45 tx_vis += efx->n_xdp_channels * efx->xdp_tx_per_channel; in ef100_alloc_vis() 53 return efx_mcdi_alloc_vis(efx, min_vis, max_vis, in ef100_alloc_vis() 57 static int ef100_remap_bar(struct efx_nic *efx, int max_vis) in ef100_remap_bar() argument 62 efx->max_vis = max_vis; in ef100_remap_bar() [all …]
|
D | tc.c | 24 static struct efx_rep *efx_tc_flower_lookup_efv(struct efx_nic *efx, in efx_tc_flower_lookup_efv() argument 32 if (dev == efx->net_dev) in efx_tc_flower_lookup_efv() 41 if (efv->parent != efx) in efx_tc_flower_lookup_efv() 47 static s64 efx_tc_flower_external_mport(struct efx_nic *efx, struct efx_rep *efv) in efx_tc_flower_external_mport() argument 54 efx_mae_mport_wire(efx, &mport); in efx_tc_flower_external_mport() 56 efx_mae_mport_mport(efx, efv->mport, &mport); in efx_tc_flower_external_mport() 66 static void efx_tc_free_action_set(struct efx_nic *efx, in efx_tc_free_action_set() argument 74 efx_mae_free_action_set(efx, act->fw_id); in efx_tc_free_action_set() 83 static void efx_tc_free_action_set_list(struct efx_nic *efx, in efx_tc_free_action_set_list() argument 94 efx_mae_free_action_set_list(efx, acts); in efx_tc_free_action_set_list() [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 | 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 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 …]
|
D | ef100.c | 42 static int ef100_pci_walk_xilinx_table(struct efx_nic *efx, u64 offset, 51 static u32 _ef100_pci_get_bar_bits_with_width(struct efx_nic *efx, in _ef100_pci_get_bar_bits_with_width() argument 57 efx_readd(efx, &dword, structure_start + ROUND_DOWN_TO_DWORD(lbn)); in _ef100_pci_get_bar_bits_with_width() 62 #define ef100_pci_get_bar_bits(efx, entry_location, bitdef) \ argument 63 _ef100_pci_get_bar_bits_with_width(efx, entry_location, \ 67 static int ef100_pci_parse_ef100_entry(struct efx_nic *efx, int entry_location, in ef100_pci_parse_ef100_entry() argument 70 u64 offset = ef100_pci_get_bar_bits(efx, entry_location, EF100_FUNC_CTL_WIN_OFF) << in ef100_pci_parse_ef100_entry() 72 u32 bar = ef100_pci_get_bar_bits(efx, entry_location, EF100_BAR); in ef100_pci_parse_ef100_entry() 74 netif_dbg(efx, probe, efx->net_dev, in ef100_pci_parse_ef100_entry() 79 netif_err(efx, probe, efx->net_dev, in ef100_pci_parse_ef100_entry() [all …]
|
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 …]
|
D | efx.h | 28 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 …]
|
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 …]
|
/Linux-v6.1/drivers/net/ethernet/sfc/falcon/ |
D | efx.c | 189 static int ef4_soft_enable_interrupts(struct ef4_nic *efx); 190 static void ef4_soft_disable_interrupts(struct ef4_nic *efx); 192 static void ef4_remove_channels(struct ef4_nic *efx); 194 static void ef4_remove_port(struct ef4_nic *efx); 196 static void ef4_fini_napi(struct ef4_nic *efx); 198 static void ef4_fini_struct(struct ef4_nic *efx); 199 static void ef4_start_all(struct ef4_nic *efx); 200 static void ef4_stop_all(struct ef4_nic *efx); 202 #define EF4_ASSERT_RESET_SERIALISED(efx) \ argument 204 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 …]
|