Home
last modified time | relevance | path

Searched refs:efx (Results 1 - 25 of 204) sorted by relevance

123456789

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
H A Defx.c23 #include "efx.h"
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) \
215 ef4_check_disabled(struct ef4_nic *efx) ef4_check_disabled() argument
276 ef4_update_irq_mod(struct ef4_nic *efx, struct ef4_channel *channel) ef4_update_irq_mod() argument
301 struct ef4_nic *efx = channel->efx; ef4_poll() local
338 struct ef4_nic *efx = channel->efx; ef4_probe_eventq() local
356 struct ef4_nic *efx = channel->efx; ef4_init_eventq() local
425 ef4_alloc_channel(struct ef4_nic *efx, int i, struct ef4_channel *old_channel) ef4_alloc_channel() argument
532 struct ef4_nic *efx = channel->efx; ef4_get_channel_name() local
548 ef4_set_channel_names(struct ef4_nic *efx) ef4_set_channel_names() argument
558 ef4_probe_channels(struct ef4_nic *efx) ef4_probe_channels() argument
593 ef4_start_datapath(struct ef4_nic *efx) ef4_start_datapath() argument
685 ef4_stop_datapath(struct ef4_nic *efx) ef4_stop_datapath() argument
755 ef4_remove_channels(struct ef4_nic *efx) ef4_remove_channels() argument
764 ef4_realloc_channels(struct ef4_nic *efx, u32 rxq_entries, u32 txq_entries) ef4_realloc_channels() argument
905 ef4_link_status_changed(struct ef4_nic *efx) ef4_link_status_changed() argument
935 ef4_link_set_advertising(struct ef4_nic *efx, u32 advertising) ef4_link_set_advertising() argument
948 ef4_link_set_wanted_fc(struct ef4_nic *efx, u8 wanted_fc) ef4_link_set_wanted_fc() argument
968 ef4_mac_reconfigure(struct ef4_nic *efx) ef4_mac_reconfigure() argument
982 __ef4_reconfigure_port(struct ef4_nic *efx) __ef4_reconfigure_port() argument
1006 ef4_reconfigure_port(struct ef4_nic *efx) ef4_reconfigure_port() argument
1024 struct ef4_nic *efx = container_of(data, struct ef4_nic, mac_work); ef4_mac_work() local
1032 ef4_probe_port(struct ef4_nic *efx) ef4_probe_port() argument
1052 ef4_init_port(struct ef4_nic *efx) ef4_init_port() argument
1085 ef4_start_port(struct ef4_nic *efx) ef4_start_port() argument
1104 ef4_stop_port(struct ef4_nic *efx) ef4_stop_port() argument
1123 ef4_fini_port(struct ef4_nic *efx) ef4_fini_port() argument
1137 ef4_remove_port(struct ef4_nic *efx) ef4_remove_port() argument
1160 ef4_associate(struct ef4_nic *efx) ef4_associate() argument
1205 ef4_dissociate(struct ef4_nic *efx) ef4_dissociate() argument
1222 ef4_init_io(struct ef4_nic *efx) ef4_init_io() argument
1293 ef4_fini_io(struct ef4_nic *efx) ef4_fini_io() argument
1315 ef4_set_default_rx_indir_table(struct ef4_nic *efx) ef4_set_default_rx_indir_table() argument
1324 ef4_wanted_parallelism(struct ef4_nic *efx) ef4_wanted_parallelism() argument
1364 ef4_probe_interrupts(struct ef4_nic *efx) ef4_probe_interrupts() argument
1467 ef4_soft_enable_interrupts(struct ef4_nic *efx) ef4_soft_enable_interrupts() argument
1500 ef4_soft_disable_interrupts(struct ef4_nic *efx) ef4_soft_disable_interrupts() argument
1523 ef4_enable_interrupts(struct ef4_nic *efx) ef4_enable_interrupts() argument
1565 ef4_disable_interrupts(struct ef4_nic *efx) ef4_disable_interrupts() argument
1579 ef4_remove_interrupts(struct ef4_nic *efx) ef4_remove_interrupts() argument
1593 ef4_set_channels(struct ef4_nic *efx) ef4_set_channels() argument
1618 ef4_probe_nic(struct ef4_nic *efx) ef4_probe_nic() argument
1680 ef4_remove_nic(struct ef4_nic *efx) ef4_remove_nic() argument
1688 ef4_probe_filters(struct ef4_nic *efx) ef4_probe_filters() argument
1737 ef4_remove_filters(struct ef4_nic *efx) ef4_remove_filters() argument
1750 ef4_restore_filters(struct ef4_nic *efx) ef4_restore_filters() argument
1763 ef4_probe_all(struct ef4_nic *efx) ef4_probe_all() argument
1817 ef4_start_all(struct ef4_nic *efx) ef4_start_all() argument
1848 ef4_stop_all(struct ef4_nic *efx) ef4_stop_all() argument
1877 ef4_remove_all(struct ef4_nic *efx) ef4_remove_all() argument
1890 ef4_usecs_to_ticks(struct ef4_nic *efx, unsigned int usecs) ef4_usecs_to_ticks() argument
1899 ef4_ticks_to_usecs(struct ef4_nic *efx, unsigned int ticks) ef4_ticks_to_usecs() argument
1908 ef4_init_irq_moderation(struct ef4_nic *efx, unsigned int tx_usecs, unsigned int rx_usecs, bool rx_adaptive, bool rx_may_override_tx) ef4_init_irq_moderation() argument
1941 ef4_get_irq_moderation(struct ef4_nic *efx, unsigned int *tx_usecs, unsigned int *rx_usecs, bool *rx_adaptive) ef4_get_irq_moderation() argument
1970 struct ef4_nic *efx = container_of(data, struct ef4_nic, ef4_monitor() local
2002 struct ef4_nic *efx = netdev_priv(net_dev); ef4_ioctl() local
2021 struct ef4_nic *efx = channel->efx; ef4_init_napi_channel() local
2028 ef4_init_napi(struct ef4_nic *efx) ef4_init_napi() argument
2044 ef4_fini_napi(struct ef4_nic *efx) ef4_fini_napi() argument
2061 struct ef4_nic *efx = netdev_priv(net_dev); ef4_net_open() local
2088 struct ef4_nic *efx = netdev_priv(net_dev); ef4_net_stop() local
2103 struct ef4_nic *efx = netdev_priv(net_dev); ef4_net_stats() local
2113 struct ef4_nic *efx = netdev_priv(net_dev); ef4_watchdog() local
2126 struct ef4_nic *efx = netdev_priv(net_dev); ef4_change_mtu() local
2150 struct ef4_nic *efx = netdev_priv(net_dev); ef4_set_mac_address() local
2185 struct ef4_nic *efx = netdev_priv(net_dev); ef4_set_rx_mode() local
2194 struct ef4_nic *efx = netdev_priv(net_dev); ef4_set_features() local
2233 ef4_update_name(struct ef4_nic *efx) ef4_update_name() argument
2259 struct ef4_nic *efx = dev_get_drvdata(dev); show_phy_type() local
2264 ef4_register_netdev(struct ef4_nic *efx) ef4_register_netdev() argument
2334 ef4_unregister_netdev(struct ef4_nic *efx) ef4_unregister_netdev() argument
2356 ef4_reset_down(struct ef4_nic *efx, enum reset_type method) ef4_reset_down() argument
2375 ef4_reset_up(struct ef4_nic *efx, enum reset_type method, bool ok) ef4_reset_up() argument
2429 ef4_reset(struct ef4_nic *efx, enum reset_type method) ef4_reset() argument
2488 ef4_try_recovery(struct ef4_nic *efx) ef4_try_recovery() argument
2512 struct ef4_nic *efx = container_of(data, struct ef4_nic, reset_work); ef4_reset_work() local
2539 ef4_schedule_reset(struct ef4_nic *efx, enum reset_type type) ef4_schedule_reset() argument
2608 ef4_port_dummy_op_int(struct ef4_nic *efx) ef4_port_dummy_op_int() argument
2612 ef4_port_dummy_op_void(struct ef4_nic *efx) ef4_port_dummy_op_void() argument
2614 ef4_port_dummy_op_poll(struct ef4_nic *efx) ef4_port_dummy_op_poll() argument
2635 ef4_init_struct(struct ef4_nic *efx, struct pci_dev *pci_dev, struct net_device *net_dev) ef4_init_struct() argument
2696 ef4_fini_struct(struct ef4_nic *efx) ef4_fini_struct() argument
2711 ef4_update_sw_stats(struct ef4_nic *efx, u64 *stats) ef4_update_sw_stats() argument
2731 ef4_pci_remove_main(struct ef4_nic *efx) ef4_pci_remove_main() argument
2753 struct ef4_nic *efx; ef4_pci_remove() local
2788 ef4_probe_vpd_strings(struct ef4_nic *efx) ef4_probe_vpd_strings() argument
2858 ef4_pci_probe_main(struct ef4_nic *efx) ef4_pci_probe_main() argument
2918 struct ef4_nic *efx; ef4_pci_probe() local
3002 struct ef4_nic *efx = dev_get_drvdata(dev); ef4_pm_freeze() local
3023 struct ef4_nic *efx = dev_get_drvdata(dev); ef4_pm_thaw() local
3061 struct ef4_nic *efx = pci_get_drvdata(pci_dev); ef4_pm_poweroff() local
3075 struct ef4_nic *efx = pci_get_drvdata(pci_dev); ef4_pm_resume() local
3124 struct ef4_nic *efx = pci_get_drvdata(pdev); ef4_io_error_detected() local
3158 struct ef4_nic *efx = pci_get_drvdata(pdev); ef4_io_slot_reset() local
3173 struct ef4_nic *efx = pci_get_drvdata(pdev); ef4_io_resume() local
[all...]
H A Dselftest.c20 #include "efx.h"
64 #define INT_MODE(efx) \
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 in ef4_test_nvram()
130 ef4_test_interrupts(struct ef4_nic *efx, struct ef4_self_tests *tests) ef4_test_interrupts() argument
172 ef4_test_eventq_irq(struct ef4_nic *efx, struct ef4_self_tests *tests) ef4_test_eventq_irq() argument
253 ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned flags) ef4_test_phy() argument
283 ef4_loopback_rx_packet(struct ef4_nic *efx, const char *buf_ptr, int pkt_len) ef4_loopback_rx_packet() argument
375 ef4_iterate_state(struct ef4_nic *efx) ef4_iterate_state() argument
412 struct ef4_nic *efx = tx_queue->efx; ef4_begin_loopback() local
459 ef4_poll_loopback(struct ef4_nic *efx) ef4_poll_loopback() argument
469 struct ef4_nic *efx = tx_queue->efx; ef4_end_loopback() local
528 struct ef4_nic *efx = tx_queue->efx; ef4_test_loopback() local
581 ef4_wait_for_link(struct ef4_nic *efx) ef4_wait_for_link() argument
613 ef4_test_loopbacks(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned int loopback_modes) ef4_test_loopbacks() argument
689 ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned flags) ef4_selftest() argument
772 ef4_selftest_async_start(struct ef4_nic *efx) ef4_selftest_async_start() argument
781 ef4_selftest_async_cancel(struct ef4_nic *efx) ef4_selftest_async_cancel() argument
788 struct ef4_nic *efx = container_of(data, struct ef4_nic, ef4_selftest_async_work() local
[all...]
H A Dfalcon.c20 #include "efx.h"
133 #define FALCON_XMAC_STATS_DMA_FLAG(efx) \
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, &reg, FR_AB_GPIO_CTL); in falcon_setsda()
333 ef4_writeo(efx, &reg, FR_AB_GPIO_CTL); in falcon_setsda()
338 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setscl() local
341 ef4_reado(efx, in falcon_setscl()
348 struct ef4_nic *efx = (struct ef4_nic *)data; falcon_getsda() local
357 struct ef4_nic *efx = (struct ef4_nic *)data; falcon_getscl() local
377 struct ef4_nic *efx = channel->efx; falcon_push_irq_moderation() local
402 falcon_prepare_flush(struct ef4_nic *efx) falcon_prepare_flush() argument
422 falcon_irq_ack_a1(struct ef4_nic *efx) falcon_irq_ack_a1() argument
433 struct ef4_nic *efx = dev_id; falcon_legacy_interrupt_a1() local
482 dummy_rx_push_rss_config(struct ef4_nic *efx, bool user, const u32 *rx_indir_table) dummy_rx_push_rss_config() argument
491 falcon_b0_rx_push_rss_config(struct ef4_nic *efx, bool user, const u32 *rx_indir_table) falcon_b0_rx_push_rss_config() argument
516 falcon_spi_poll(struct ef4_nic *efx) falcon_spi_poll() argument
524 falcon_spi_wait(struct ef4_nic *efx) falcon_spi_wait() argument
552 falcon_spi_cmd(struct ef4_nic *efx, const struct falcon_spi_device *spi, unsigned int command, int address, const void *in, void *out, size_t len) falcon_spi_cmd() argument
616 falcon_spi_read(struct ef4_nic *efx, const struct falcon_spi_device *spi, loff_t start, size_t len, size_t *retlen, u8 *buffer) falcon_spi_read() argument
666 falcon_spi_wait_write(struct ef4_nic *efx, const struct falcon_spi_device *spi) falcon_spi_wait_write() argument
691 falcon_spi_write(struct ef4_nic *efx, const struct falcon_spi_device *spi, loff_t start, size_t len, size_t *retlen, const u8 *buffer) falcon_spi_write() argument
743 struct ef4_nic *efx = part->common.mtd.priv; falcon_spi_slow_wait() local
767 falcon_spi_unlock(struct ef4_nic *efx, const struct falcon_spi_device *spi) falcon_spi_unlock() argument
807 struct ef4_nic *efx = part->common.mtd.priv; falcon_spi_erase() local
853 struct ef4_nic *efx = part->mtd.priv; falcon_mtd_rename() local
863 struct ef4_nic *efx = mtd->priv; falcon_mtd_read() local
879 struct ef4_nic *efx = mtd->priv; falcon_mtd_erase() local
895 struct ef4_nic *efx = mtd->priv; falcon_mtd_write() local
911 struct ef4_nic *efx = mtd->priv; falcon_mtd_sync() local
921 falcon_mtd_probe(struct ef4_nic *efx) falcon_mtd_probe() argument
981 falcon_setup_xaui(struct ef4_nic *efx) falcon_setup_xaui() argument
1013 falcon_reset_xaui(struct ef4_nic *efx) falcon_reset_xaui() argument
1041 falcon_ack_status_intr(struct ef4_nic *efx) falcon_ack_status_intr() argument
1061 falcon_xgxs_link_ok(struct ef4_nic *efx) falcon_xgxs_link_ok() argument
1084 falcon_xmac_link_ok(struct ef4_nic *efx) falcon_xmac_link_ok() argument
1099 falcon_reconfigure_xmac_core(struct ef4_nic *efx) falcon_reconfigure_xmac_core() argument
1153 falcon_reconfigure_xgxs_core(struct ef4_nic *efx) falcon_reconfigure_xgxs_core() argument
1194 falcon_xmac_link_ok_retry(struct ef4_nic *efx, int tries) falcon_xmac_link_ok_retry() argument
1219 falcon_xmac_check_fault(struct ef4_nic *efx) falcon_xmac_check_fault() argument
1224 falcon_reconfigure_xmac(struct ef4_nic *efx) falcon_reconfigure_xmac() argument
1241 falcon_poll_xmac(struct ef4_nic *efx) falcon_poll_xmac() argument
1260 falcon_push_multicast_hash(struct ef4_nic *efx) falcon_push_multicast_hash() argument
1270 falcon_reset_macs(struct ef4_nic *efx) falcon_reset_macs() argument
1334 falcon_drain_tx_fifo(struct ef4_nic *efx) falcon_drain_tx_fifo() argument
1350 falcon_deconfigure_mac_wrapper(struct ef4_nic *efx) falcon_deconfigure_mac_wrapper() argument
1366 falcon_reconfigure_mac_wrapper(struct ef4_nic *efx) falcon_reconfigure_mac_wrapper() argument
1413 falcon_stats_request(struct ef4_nic *efx) falcon_stats_request() argument
1435 falcon_stats_complete(struct ef4_nic *efx) falcon_stats_complete() argument
1458 struct ef4_nic *efx = nic_data->efx; falcon_stats_timer_func() local
1469 falcon_loopback_link_poll(struct ef4_nic *efx) falcon_loopback_link_poll() argument
1484 falcon_reconfigure_port(struct ef4_nic *efx) falcon_reconfigure_port() argument
1523 falcon_a1_prepare_enable_fc_tx(struct ef4_nic *efx) falcon_a1_prepare_enable_fc_tx() argument
1529 falcon_b0_prepare_enable_fc_tx(struct ef4_nic *efx) falcon_b0_prepare_enable_fc_tx() argument
1546 falcon_gmii_wait(struct ef4_nic *efx) falcon_gmii_wait() argument
1575 struct ef4_nic *efx = netdev_priv(net_dev); falcon_mdio_write() local
1628 struct ef4_nic *efx = netdev_priv(net_dev); falcon_mdio_read() local
1677 falcon_probe_port(struct ef4_nic *efx) falcon_probe_port() argument
1733 falcon_remove_port(struct ef4_nic *efx) falcon_remove_port() argument
1743 struct ef4_nic *efx = channel->efx; falcon_handle_global_event() local
1781 falcon_read_nvram(struct ef4_nic *efx, struct falcon_nvconfig *nvconfig_out) falcon_read_nvram() argument
1852 falcon_test_nvram(struct ef4_nic *efx) falcon_test_nvram() argument
1897 falcon_b0_test_chip(struct ef4_nic *efx, struct ef4_self_tests *tests) falcon_b0_test_chip() argument
1977 __falcon_reset_hw(struct ef4_nic *efx, enum reset_type method) __falcon_reset_hw() argument
2058 falcon_reset_hw(struct ef4_nic *efx, enum reset_type method) falcon_reset_hw() argument
2070 falcon_monitor(struct ef4_nic *efx) falcon_monitor() argument
2111 falcon_reset_sram(struct ef4_nic *efx) falcon_reset_sram() argument
2151 falcon_spi_device_init(struct ef4_nic *efx, struct falcon_spi_device *spi_device, unsigned int device_id, u32 device_type) falcon_spi_device_init() argument
2177 falcon_probe_nvconfig(struct ef4_nic *efx) falcon_probe_nvconfig() argument
2218 falcon_dimension_resources(struct ef4_nic *efx) falcon_dimension_resources() argument
2226 falcon_probe_spi_devices(struct ef4_nic *efx) falcon_probe_spi_devices() argument
2269 falcon_a1_mem_map_size(struct ef4_nic *efx) falcon_a1_mem_map_size() argument
2274 falcon_b0_mem_map_size(struct ef4_nic *efx) falcon_b0_mem_map_size() argument
2283 falcon_probe_nic(struct ef4_nic *efx) falcon_probe_nic() argument
2425 falcon_init_rx_cfg(struct ef4_nic *efx) falcon_init_rx_cfg() argument
2476 falcon_init_nic(struct ef4_nic *efx) falcon_init_nic() argument
2541 falcon_remove_nic(struct ef4_nic *efx) falcon_remove_nic() argument
2567 falcon_describe_nic_stats(struct ef4_nic *efx, u8 *names) falcon_describe_nic_stats() argument
2573 falcon_update_nic_stats(struct ef4_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) falcon_update_nic_stats() argument
2631 falcon_start_nic_stats(struct ef4_nic *efx) falcon_start_nic_stats() argument
2644 falcon_pull_nic_stats(struct ef4_nic *efx) falcon_pull_nic_stats() argument
2649 falcon_stop_nic_stats(struct ef4_nic *efx) falcon_stop_nic_stats() argument
2675 falcon_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) falcon_set_id_led() argument
2687 falcon_get_wol(struct ef4_nic *efx, struct ethtool_wolinfo *wol) falcon_get_wol() argument
2694 falcon_set_wol(struct ef4_nic *efx, u32 type) falcon_set_wol() argument
[all...]
H A Dtenxpress.c11 #include "efx.h"
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 in tenxpress_phy_probe()
185 tenxpress_phy_init(struct ef4_nic *efx) tenxpress_phy_init() argument
220 tenxpress_special_reset(struct ef4_nic *efx) tenxpress_special_reset() argument
253 sfx7101_check_bad_lp(struct ef4_nic *efx, bool link_ok) sfx7101_check_bad_lp() argument
297 sfx7101_link_ok(struct ef4_nic *efx) sfx7101_link_ok() argument
305 tenxpress_ext_loopback(struct ef4_nic *efx) tenxpress_ext_loopback() argument
312 tenxpress_low_power(struct ef4_nic *efx) tenxpress_low_power() argument
319 tenxpress_phy_reconfigure(struct ef4_nic *efx) tenxpress_phy_reconfigure() argument
352 tenxpress_phy_poll(struct ef4_nic *efx) tenxpress_phy_poll() argument
366 sfx7101_phy_fini(struct ef4_nic *efx) sfx7101_phy_fini() argument
380 tenxpress_phy_remove(struct ef4_nic *efx) tenxpress_phy_remove() argument
388 tenxpress_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) tenxpress_set_id_led() argument
415 sfx7101_test_name(struct ef4_nic *efx, unsigned int index) sfx7101_test_name() argument
423 sfx7101_run_tests(struct ef4_nic *efx, int *results, unsigned flags) sfx7101_run_tests() argument
440 tenxpress_get_link_ksettings(struct ef4_nic *efx, struct ethtool_link_ksettings *cmd) tenxpress_get_link_ksettings() argument
462 tenxpress_set_link_ksettings(struct ef4_nic *efx, const struct ethtool_link_ksettings *cmd) tenxpress_set_link_ksettings() argument
471 sfx7101_set_npage_adv(struct ef4_nic *efx, u32 advertising) sfx7101_set_npage_adv() argument
[all...]
H A Dqt202x_phy.c13 #include "efx.h"
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, in qt2025c_restart_firmware()
135 qt2025c_wait_reset(struct ef4_nic *efx) qt2025c_wait_reset() argument
160 qt2025c_firmware_id(struct ef4_nic *efx) qt2025c_firmware_id() argument
180 qt2025c_bug17190_workaround(struct ef4_nic *efx) qt2025c_bug17190_workaround() argument
213 qt2025c_select_phy_mode(struct ef4_nic *efx) qt2025c_select_phy_mode() argument
306 qt202x_reset_phy(struct ef4_nic *efx) qt202x_reset_phy() argument
339 qt202x_phy_probe(struct ef4_nic *efx) qt202x_phy_probe() argument
357 qt202x_phy_init(struct ef4_nic *efx) qt202x_phy_init() argument
380 qt202x_link_ok(struct ef4_nic *efx) qt202x_link_ok() argument
385 qt202x_phy_poll(struct ef4_nic *efx) qt202x_phy_poll() argument
400 qt202x_phy_reconfigure(struct ef4_nic *efx) qt202x_phy_reconfigure() argument
437 qt202x_phy_get_link_ksettings(struct ef4_nic *efx, struct ethtool_link_ksettings *cmd) qt202x_phy_get_link_ksettings() argument
443 qt202x_phy_remove(struct ef4_nic *efx) qt202x_phy_remove() argument
450 qt202x_phy_get_module_info(struct ef4_nic *efx, struct ethtool_modinfo *modinfo) qt202x_phy_get_module_info() argument
458 qt202x_phy_get_module_eeprom(struct ef4_nic *efx, struct ethtool_eeprom *ee, u8 *data) qt202x_phy_get_module_eeprom() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/
H A Defx.c22 #include "efx.h"
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) \
209 ef4_check_disabled(struct ef4_nic *efx) ef4_check_disabled() argument
270 ef4_update_irq_mod(struct ef4_nic *efx, struct ef4_channel *channel) ef4_update_irq_mod() argument
295 struct ef4_nic *efx = channel->efx; ef4_poll() local
332 struct ef4_nic *efx = channel->efx; ef4_probe_eventq() local
350 struct ef4_nic *efx = channel->efx; ef4_init_eventq() local
419 ef4_alloc_channel(struct ef4_nic *efx, int i, struct ef4_channel *old_channel) ef4_alloc_channel() argument
526 struct ef4_nic *efx = channel->efx; ef4_get_channel_name() local
542 ef4_set_channel_names(struct ef4_nic *efx) ef4_set_channel_names() argument
552 ef4_probe_channels(struct ef4_nic *efx) ef4_probe_channels() argument
587 ef4_start_datapath(struct ef4_nic *efx) ef4_start_datapath() argument
679 ef4_stop_datapath(struct ef4_nic *efx) ef4_stop_datapath() argument
749 ef4_remove_channels(struct ef4_nic *efx) ef4_remove_channels() argument
758 ef4_realloc_channels(struct ef4_nic *efx, u32 rxq_entries, u32 txq_entries) ef4_realloc_channels() argument
895 ef4_link_status_changed(struct ef4_nic *efx) ef4_link_status_changed() argument
925 ef4_link_set_advertising(struct ef4_nic *efx, u32 advertising) ef4_link_set_advertising() argument
938 ef4_link_set_wanted_fc(struct ef4_nic *efx, u8 wanted_fc) ef4_link_set_wanted_fc() argument
958 ef4_mac_reconfigure(struct ef4_nic *efx) ef4_mac_reconfigure() argument
972 __ef4_reconfigure_port(struct ef4_nic *efx) __ef4_reconfigure_port() argument
996 ef4_reconfigure_port(struct ef4_nic *efx) ef4_reconfigure_port() argument
1014 struct ef4_nic *efx = container_of(data, struct ef4_nic, mac_work); ef4_mac_work() local
1022 ef4_probe_port(struct ef4_nic *efx) ef4_probe_port() argument
1042 ef4_init_port(struct ef4_nic *efx) ef4_init_port() argument
1075 ef4_start_port(struct ef4_nic *efx) ef4_start_port() argument
1094 ef4_stop_port(struct ef4_nic *efx) ef4_stop_port() argument
1113 ef4_fini_port(struct ef4_nic *efx) ef4_fini_port() argument
1127 ef4_remove_port(struct ef4_nic *efx) ef4_remove_port() argument
1150 ef4_associate(struct ef4_nic *efx) ef4_associate() argument
1195 ef4_dissociate(struct ef4_nic *efx) ef4_dissociate() argument
1212 ef4_init_io(struct ef4_nic *efx) ef4_init_io() argument
1283 ef4_fini_io(struct ef4_nic *efx) ef4_fini_io() argument
1305 ef4_set_default_rx_indir_table(struct ef4_nic *efx) ef4_set_default_rx_indir_table() argument
1314 ef4_wanted_parallelism(struct ef4_nic *efx) ef4_wanted_parallelism() argument
1354 ef4_probe_interrupts(struct ef4_nic *efx) ef4_probe_interrupts() argument
1457 ef4_soft_enable_interrupts(struct ef4_nic *efx) ef4_soft_enable_interrupts() argument
1490 ef4_soft_disable_interrupts(struct ef4_nic *efx) ef4_soft_disable_interrupts() argument
1513 ef4_enable_interrupts(struct ef4_nic *efx) ef4_enable_interrupts() argument
1555 ef4_disable_interrupts(struct ef4_nic *efx) ef4_disable_interrupts() argument
1569 ef4_remove_interrupts(struct ef4_nic *efx) ef4_remove_interrupts() argument
1583 ef4_set_channels(struct ef4_nic *efx) ef4_set_channels() argument
1608 ef4_probe_nic(struct ef4_nic *efx) ef4_probe_nic() argument
1670 ef4_remove_nic(struct ef4_nic *efx) ef4_remove_nic() argument
1678 ef4_probe_filters(struct ef4_nic *efx) ef4_probe_filters() argument
1727 ef4_remove_filters(struct ef4_nic *efx) ef4_remove_filters() argument
1740 ef4_restore_filters(struct ef4_nic *efx) ef4_restore_filters() argument
1753 ef4_probe_all(struct ef4_nic *efx) ef4_probe_all() argument
1807 ef4_start_all(struct ef4_nic *efx) ef4_start_all() argument
1838 ef4_stop_all(struct ef4_nic *efx) ef4_stop_all() argument
1867 ef4_remove_all(struct ef4_nic *efx) ef4_remove_all() argument
1880 ef4_usecs_to_ticks(struct ef4_nic *efx, unsigned int usecs) ef4_usecs_to_ticks() argument
1889 ef4_ticks_to_usecs(struct ef4_nic *efx, unsigned int ticks) ef4_ticks_to_usecs() argument
1898 ef4_init_irq_moderation(struct ef4_nic *efx, unsigned int tx_usecs, unsigned int rx_usecs, bool rx_adaptive, bool rx_may_override_tx) ef4_init_irq_moderation() argument
1931 ef4_get_irq_moderation(struct ef4_nic *efx, unsigned int *tx_usecs, unsigned int *rx_usecs, bool *rx_adaptive) ef4_get_irq_moderation() argument
1960 struct ef4_nic *efx = container_of(data, struct ef4_nic, ef4_monitor() local
1992 struct ef4_nic *efx = netdev_priv(net_dev); ef4_ioctl() local
2011 struct ef4_nic *efx = channel->efx; ef4_init_napi_channel() local
2017 ef4_init_napi(struct ef4_nic *efx) ef4_init_napi() argument
2033 ef4_fini_napi(struct ef4_nic *efx) ef4_fini_napi() argument
2050 struct ef4_nic *efx = netdev_priv(net_dev); ef4_net_open() local
2077 struct ef4_nic *efx = netdev_priv(net_dev); ef4_net_stop() local
2092 struct ef4_nic *efx = netdev_priv(net_dev); ef4_net_stats() local
2102 struct ef4_nic *efx = netdev_priv(net_dev); ef4_watchdog() local
2115 struct ef4_nic *efx = netdev_priv(net_dev); ef4_change_mtu() local
2139 struct ef4_nic *efx = netdev_priv(net_dev); ef4_set_mac_address() local
2174 struct ef4_nic *efx = netdev_priv(net_dev); ef4_set_rx_mode() local
2183 struct ef4_nic *efx = netdev_priv(net_dev); ef4_set_features() local
2222 ef4_update_name(struct ef4_nic *efx) ef4_update_name() argument
2248 struct ef4_nic *efx = dev_get_drvdata(dev); phy_type_show() local
2253 ef4_register_netdev(struct ef4_nic *efx) ef4_register_netdev() argument
2323 ef4_unregister_netdev(struct ef4_nic *efx) ef4_unregister_netdev() argument
2345 ef4_reset_down(struct ef4_nic *efx, enum reset_type method) ef4_reset_down() argument
2364 ef4_reset_up(struct ef4_nic *efx, enum reset_type method, bool ok) ef4_reset_up() argument
2418 ef4_reset(struct ef4_nic *efx, enum reset_type method) ef4_reset() argument
2477 ef4_try_recovery(struct ef4_nic *efx) ef4_try_recovery() argument
2501 struct ef4_nic *efx = container_of(data, struct ef4_nic, reset_work); ef4_reset_work() local
2528 ef4_schedule_reset(struct ef4_nic *efx, enum reset_type type) ef4_schedule_reset() argument
2597 ef4_port_dummy_op_int(struct ef4_nic *efx) ef4_port_dummy_op_int() argument
2601 ef4_port_dummy_op_void(struct ef4_nic *efx) ef4_port_dummy_op_void() argument
2603 ef4_port_dummy_op_poll(struct ef4_nic *efx) ef4_port_dummy_op_poll() argument
2624 ef4_init_struct(struct ef4_nic *efx, struct pci_dev *pci_dev, struct net_device *net_dev) ef4_init_struct() argument
2685 ef4_fini_struct(struct ef4_nic *efx) ef4_fini_struct() argument
2700 ef4_update_sw_stats(struct ef4_nic *efx, u64 *stats) ef4_update_sw_stats() argument
2720 ef4_pci_remove_main(struct ef4_nic *efx) ef4_pci_remove_main() argument
2742 struct ef4_nic *efx; ef4_pci_remove() local
2772 ef4_probe_vpd_strings(struct ef4_nic *efx) ef4_probe_vpd_strings() argument
2806 ef4_pci_probe_main(struct ef4_nic *efx) ef4_pci_probe_main() argument
2866 struct ef4_nic *efx; ef4_pci_probe() local
2944 struct ef4_nic *efx = dev_get_drvdata(dev); ef4_pm_freeze() local
2965 struct ef4_nic *efx = dev_get_drvdata(dev); ef4_pm_thaw() local
3003 struct ef4_nic *efx = pci_get_drvdata(pci_dev); ef4_pm_poweroff() local
3017 struct ef4_nic *efx = pci_get_drvdata(pci_dev); ef4_pm_resume() local
3066 struct ef4_nic *efx = pci_get_drvdata(pdev); ef4_io_error_detected() local
3100 struct ef4_nic *efx = pci_get_drvdata(pdev); ef4_io_slot_reset() local
3115 struct ef4_nic *efx = pci_get_drvdata(pdev); ef4_io_resume() local
[all...]
H A Dselftest.c20 #include "efx.h"
69 #define INT_MODE(efx) \
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 in ef4_test_nvram()
135 ef4_test_interrupts(struct ef4_nic *efx, struct ef4_self_tests *tests) ef4_test_interrupts() argument
177 ef4_test_eventq_irq(struct ef4_nic *efx, struct ef4_self_tests *tests) ef4_test_eventq_irq() argument
258 ef4_test_phy(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned flags) ef4_test_phy() argument
288 ef4_loopback_rx_packet(struct ef4_nic *efx, const char *buf_ptr, int pkt_len) ef4_loopback_rx_packet() argument
382 ef4_iterate_state(struct ef4_nic *efx) ef4_iterate_state() argument
420 struct ef4_nic *efx = tx_queue->efx; ef4_begin_loopback() local
471 ef4_poll_loopback(struct ef4_nic *efx) ef4_poll_loopback() argument
481 struct ef4_nic *efx = tx_queue->efx; ef4_end_loopback() local
540 struct ef4_nic *efx = tx_queue->efx; ef4_test_loopback() local
593 ef4_wait_for_link(struct ef4_nic *efx) ef4_wait_for_link() argument
625 ef4_test_loopbacks(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned int loopback_modes) ef4_test_loopbacks() argument
701 ef4_selftest(struct ef4_nic *efx, struct ef4_self_tests *tests, unsigned flags) ef4_selftest() argument
784 ef4_selftest_async_start(struct ef4_nic *efx) ef4_selftest_async_start() argument
793 ef4_selftest_async_cancel(struct ef4_nic *efx) ef4_selftest_async_cancel() argument
800 struct ef4_nic *efx = container_of(data, struct ef4_nic, ef4_selftest_async_work() local
[all...]
H A Dfalcon.c20 #include "efx.h"
133 #define FALCON_XMAC_STATS_DMA_FLAG(efx) \
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, &reg, FR_AB_GPIO_CTL); in falcon_setsda()
333 ef4_writeo(efx, &reg, FR_AB_GPIO_CTL); in falcon_setsda()
338 struct ef4_nic *efx = (struct ef4_nic *)data; in falcon_setscl() local
341 ef4_reado(efx, in falcon_setscl()
348 struct ef4_nic *efx = (struct ef4_nic *)data; falcon_getsda() local
357 struct ef4_nic *efx = (struct ef4_nic *)data; falcon_getscl() local
377 struct ef4_nic *efx = channel->efx; falcon_push_irq_moderation() local
402 falcon_prepare_flush(struct ef4_nic *efx) falcon_prepare_flush() argument
422 falcon_irq_ack_a1(struct ef4_nic *efx) falcon_irq_ack_a1() argument
433 struct ef4_nic *efx = dev_id; falcon_legacy_interrupt_a1() local
482 dummy_rx_push_rss_config(struct ef4_nic *efx, bool user, const u32 *rx_indir_table) dummy_rx_push_rss_config() argument
491 falcon_b0_rx_push_rss_config(struct ef4_nic *efx, bool user, const u32 *rx_indir_table) falcon_b0_rx_push_rss_config() argument
516 falcon_spi_poll(struct ef4_nic *efx) falcon_spi_poll() argument
524 falcon_spi_wait(struct ef4_nic *efx) falcon_spi_wait() argument
552 falcon_spi_cmd(struct ef4_nic *efx, const struct falcon_spi_device *spi, unsigned int command, int address, const void *in, void *out, size_t len) falcon_spi_cmd() argument
616 falcon_spi_read(struct ef4_nic *efx, const struct falcon_spi_device *spi, loff_t start, size_t len, size_t *retlen, u8 *buffer) falcon_spi_read() argument
666 falcon_spi_wait_write(struct ef4_nic *efx, const struct falcon_spi_device *spi) falcon_spi_wait_write() argument
691 falcon_spi_write(struct ef4_nic *efx, const struct falcon_spi_device *spi, loff_t start, size_t len, size_t *retlen, const u8 *buffer) falcon_spi_write() argument
743 struct ef4_nic *efx = part->common.mtd.priv; falcon_spi_slow_wait() local
767 falcon_spi_unlock(struct ef4_nic *efx, const struct falcon_spi_device *spi) falcon_spi_unlock() argument
807 struct ef4_nic *efx = part->common.mtd.priv; falcon_spi_erase() local
853 struct ef4_nic *efx = part->mtd.priv; falcon_mtd_rename() local
863 struct ef4_nic *efx = mtd->priv; falcon_mtd_read() local
879 struct ef4_nic *efx = mtd->priv; falcon_mtd_erase() local
895 struct ef4_nic *efx = mtd->priv; falcon_mtd_write() local
911 struct ef4_nic *efx = mtd->priv; falcon_mtd_sync() local
921 falcon_mtd_probe(struct ef4_nic *efx) falcon_mtd_probe() argument
981 falcon_setup_xaui(struct ef4_nic *efx) falcon_setup_xaui() argument
1013 falcon_reset_xaui(struct ef4_nic *efx) falcon_reset_xaui() argument
1041 falcon_ack_status_intr(struct ef4_nic *efx) falcon_ack_status_intr() argument
1061 falcon_xgxs_link_ok(struct ef4_nic *efx) falcon_xgxs_link_ok() argument
1084 falcon_xmac_link_ok(struct ef4_nic *efx) falcon_xmac_link_ok() argument
1099 falcon_reconfigure_xmac_core(struct ef4_nic *efx) falcon_reconfigure_xmac_core() argument
1153 falcon_reconfigure_xgxs_core(struct ef4_nic *efx) falcon_reconfigure_xgxs_core() argument
1194 falcon_xmac_link_ok_retry(struct ef4_nic *efx, int tries) falcon_xmac_link_ok_retry() argument
1219 falcon_xmac_check_fault(struct ef4_nic *efx) falcon_xmac_check_fault() argument
1224 falcon_reconfigure_xmac(struct ef4_nic *efx) falcon_reconfigure_xmac() argument
1241 falcon_poll_xmac(struct ef4_nic *efx) falcon_poll_xmac() argument
1260 falcon_push_multicast_hash(struct ef4_nic *efx) falcon_push_multicast_hash() argument
1270 falcon_reset_macs(struct ef4_nic *efx) falcon_reset_macs() argument
1334 falcon_drain_tx_fifo(struct ef4_nic *efx) falcon_drain_tx_fifo() argument
1350 falcon_deconfigure_mac_wrapper(struct ef4_nic *efx) falcon_deconfigure_mac_wrapper() argument
1366 falcon_reconfigure_mac_wrapper(struct ef4_nic *efx) falcon_reconfigure_mac_wrapper() argument
1413 falcon_stats_request(struct ef4_nic *efx) falcon_stats_request() argument
1435 falcon_stats_complete(struct ef4_nic *efx) falcon_stats_complete() argument
1458 struct ef4_nic *efx = nic_data->efx; falcon_stats_timer_func() local
1469 falcon_loopback_link_poll(struct ef4_nic *efx) falcon_loopback_link_poll() argument
1484 falcon_reconfigure_port(struct ef4_nic *efx) falcon_reconfigure_port() argument
1523 falcon_a1_prepare_enable_fc_tx(struct ef4_nic *efx) falcon_a1_prepare_enable_fc_tx() argument
1529 falcon_b0_prepare_enable_fc_tx(struct ef4_nic *efx) falcon_b0_prepare_enable_fc_tx() argument
1546 falcon_gmii_wait(struct ef4_nic *efx) falcon_gmii_wait() argument
1575 struct ef4_nic *efx = netdev_priv(net_dev); falcon_mdio_write() local
1628 struct ef4_nic *efx = netdev_priv(net_dev); falcon_mdio_read() local
1677 falcon_probe_port(struct ef4_nic *efx) falcon_probe_port() argument
1733 falcon_remove_port(struct ef4_nic *efx) falcon_remove_port() argument
1743 struct ef4_nic *efx = channel->efx; falcon_handle_global_event() local
1781 falcon_read_nvram(struct ef4_nic *efx, struct falcon_nvconfig *nvconfig_out) falcon_read_nvram() argument
1852 falcon_test_nvram(struct ef4_nic *efx) falcon_test_nvram() argument
1897 falcon_b0_test_chip(struct ef4_nic *efx, struct ef4_self_tests *tests) falcon_b0_test_chip() argument
1977 __falcon_reset_hw(struct ef4_nic *efx, enum reset_type method) __falcon_reset_hw() argument
2058 falcon_reset_hw(struct ef4_nic *efx, enum reset_type method) falcon_reset_hw() argument
2070 falcon_monitor(struct ef4_nic *efx) falcon_monitor() argument
2111 falcon_reset_sram(struct ef4_nic *efx) falcon_reset_sram() argument
2151 falcon_spi_device_init(struct ef4_nic *efx, struct falcon_spi_device *spi_device, unsigned int device_id, u32 device_type) falcon_spi_device_init() argument
2177 falcon_probe_nvconfig(struct ef4_nic *efx) falcon_probe_nvconfig() argument
2218 falcon_dimension_resources(struct ef4_nic *efx) falcon_dimension_resources() argument
2226 falcon_probe_spi_devices(struct ef4_nic *efx) falcon_probe_spi_devices() argument
2269 falcon_a1_mem_map_size(struct ef4_nic *efx) falcon_a1_mem_map_size() argument
2274 falcon_b0_mem_map_size(struct ef4_nic *efx) falcon_b0_mem_map_size() argument
2283 falcon_probe_nic(struct ef4_nic *efx) falcon_probe_nic() argument
2425 falcon_init_rx_cfg(struct ef4_nic *efx) falcon_init_rx_cfg() argument
2476 falcon_init_nic(struct ef4_nic *efx) falcon_init_nic() argument
2541 falcon_remove_nic(struct ef4_nic *efx) falcon_remove_nic() argument
2567 falcon_describe_nic_stats(struct ef4_nic *efx, u8 *names) falcon_describe_nic_stats() argument
2573 falcon_update_nic_stats(struct ef4_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) falcon_update_nic_stats() argument
2631 falcon_start_nic_stats(struct ef4_nic *efx) falcon_start_nic_stats() argument
2644 falcon_pull_nic_stats(struct ef4_nic *efx) falcon_pull_nic_stats() argument
2649 falcon_stop_nic_stats(struct ef4_nic *efx) falcon_stop_nic_stats() argument
2675 falcon_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) falcon_set_id_led() argument
2687 falcon_get_wol(struct ef4_nic *efx, struct ethtool_wolinfo *wol) falcon_get_wol() argument
2694 falcon_set_wol(struct ef4_nic *efx, u32 type) falcon_set_wol() argument
[all...]
H A Dtenxpress.c11 #include "efx.h"
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 in tenxpress_phy_probe()
185 tenxpress_phy_init(struct ef4_nic *efx) tenxpress_phy_init() argument
220 tenxpress_special_reset(struct ef4_nic *efx) tenxpress_special_reset() argument
253 sfx7101_check_bad_lp(struct ef4_nic *efx, bool link_ok) sfx7101_check_bad_lp() argument
297 sfx7101_link_ok(struct ef4_nic *efx) sfx7101_link_ok() argument
305 tenxpress_ext_loopback(struct ef4_nic *efx) tenxpress_ext_loopback() argument
312 tenxpress_low_power(struct ef4_nic *efx) tenxpress_low_power() argument
319 tenxpress_phy_reconfigure(struct ef4_nic *efx) tenxpress_phy_reconfigure() argument
352 tenxpress_phy_poll(struct ef4_nic *efx) tenxpress_phy_poll() argument
366 sfx7101_phy_fini(struct ef4_nic *efx) sfx7101_phy_fini() argument
380 tenxpress_phy_remove(struct ef4_nic *efx) tenxpress_phy_remove() argument
388 tenxpress_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) tenxpress_set_id_led() argument
415 sfx7101_test_name(struct ef4_nic *efx, unsigned int index) sfx7101_test_name() argument
423 sfx7101_run_tests(struct ef4_nic *efx, int *results, unsigned flags) sfx7101_run_tests() argument
440 tenxpress_get_link_ksettings(struct ef4_nic *efx, struct ethtool_link_ksettings *cmd) tenxpress_get_link_ksettings() argument
462 tenxpress_set_link_ksettings(struct ef4_nic *efx, const struct ethtool_link_ksettings *cmd) tenxpress_set_link_ksettings() argument
471 sfx7101_set_npage_adv(struct ef4_nic *efx, u32 advertising) sfx7101_set_npage_adv() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Defx_common.c18 #include "efx.h"
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()
142 /* We assume that efx->type->reconfigure_mac will always try to sync RX
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 in efx_siena_mac_reconfigure()
160 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); efx_mac_work() local
170 struct efx_nic *efx = netdev_priv(net_dev); efx_siena_set_mac_address() local
205 struct efx_nic *efx = netdev_priv(net_dev); efx_siena_set_rx_mode() local
214 struct efx_nic *efx = netdev_priv(net_dev); efx_siena_set_features() local
242 efx_siena_link_status_changed(struct efx_nic *efx) efx_siena_link_status_changed() argument
273 efx_siena_xdp_max_mtu(struct efx_nic *efx) efx_siena_xdp_max_mtu() argument
288 struct efx_nic *efx = netdev_priv(net_dev); efx_siena_change_mtu() local
327 struct efx_nic *efx = container_of(data, struct efx_nic, efx_monitor() local
348 efx_siena_start_monitor(struct efx_nic *efx) efx_siena_start_monitor() argument
365 efx_start_datapath(struct efx_nic *efx) efx_start_datapath() argument
443 efx_stop_datapath(struct efx_nic *efx) efx_stop_datapath() argument
462 efx_siena_link_clear_advertising(struct efx_nic *efx) efx_siena_link_clear_advertising() argument
468 efx_siena_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc) efx_siena_link_set_wanted_fc() argument
483 efx_start_port(struct efx_nic *efx) efx_start_port() argument
502 efx_stop_port(struct efx_nic *efx) efx_stop_port() argument
528 efx_siena_start_all(struct efx_nic *efx) efx_siena_start_all() argument
568 efx_siena_stop_all(struct efx_nic *efx) efx_siena_stop_all() argument
600 efx_siena_update_stats_atomic(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_siena_update_stats_atomic() argument
612 struct efx_nic *efx = netdev_priv(net_dev); efx_siena_net_stats() local
626 __efx_siena_reconfigure_port(struct efx_nic *efx) __efx_siena_reconfigure_port() argument
652 efx_siena_reconfigure_port(struct efx_nic *efx) efx_siena_reconfigure_port() argument
671 efx_wait_for_bist_end(struct efx_nic *efx) efx_wait_for_bist_end() argument
694 efx_siena_try_recovery(struct efx_nic *efx) efx_siena_try_recovery() argument
716 efx_siena_reset_down(struct efx_nic *efx, enum reset_type method) efx_siena_reset_down() argument
735 struct efx_nic *efx = netdev_priv(net_dev); efx_siena_watchdog() local
750 efx_siena_reset_up(struct efx_nic *efx, enum reset_type method, bool ok) efx_siena_reset_up() argument
821 efx_siena_reset(struct efx_nic *efx, enum reset_type method) efx_siena_reset() argument
886 struct efx_nic *efx = container_of(data, struct efx_nic, reset_work); efx_reset_work() local
916 efx_siena_schedule_reset(struct efx_nic *efx, enum reset_type type) efx_siena_schedule_reset() argument
975 efx_siena_port_dummy_op_int(struct efx_nic *efx) efx_siena_port_dummy_op_int() argument
980 efx_siena_port_dummy_op_void(struct efx_nic *efx) efx_siena_port_dummy_op_void() argument
991 efx_siena_init_struct(struct efx_nic *efx, struct pci_dev *pci_dev, struct net_device *net_dev) efx_siena_init_struct() argument
1066 efx_siena_fini_struct(struct efx_nic *efx) efx_siena_fini_struct() argument
1083 efx_siena_init_io(struct efx_nic *efx, int bar, dma_addr_t dma_mask, unsigned int mem_map_size) efx_siena_init_io() argument
1153 efx_siena_fini_io(struct efx_nic *efx) efx_siena_fini_io() argument
1178 struct efx_nic *efx = dev_get_drvdata(dev); mcdi_logging_show() local
1188 struct efx_nic *efx = dev_get_drvdata(dev); mcdi_logging_store() local
1198 efx_siena_init_mcdi_logging(struct efx_nic *efx) efx_siena_init_mcdi_logging() argument
1208 efx_siena_fini_mcdi_logging(struct efx_nic *efx) efx_siena_fini_mcdi_logging() argument
1222 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_error_detected() local
1256 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_slot_reset() local
1271 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_resume() local
1308 efx_can_encap_offloads(struct efx_nic *efx, struct sk_buff *skb) efx_can_encap_offloads() argument
1371 struct efx_nic *efx = netdev_priv(dev); efx_siena_features_check() local
1392 struct efx_nic *efx = netdev_priv(net_dev); efx_siena_get_phys_port_id() local
1403 struct efx_nic *efx = netdev_priv(net_dev); efx_siena_get_phys_port_name() local
[all...]
H A Defx.c25 #include "efx.h"
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) \
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, prob in efx_probe_port()
147 efx_init_port(struct efx_nic *efx) efx_init_port() argument
170 efx_fini_port(struct efx_nic *efx) efx_fini_port() argument
183 efx_remove_port(struct efx_nic *efx) efx_remove_port() argument
206 efx_associate(struct efx_nic *efx) efx_associate() argument
251 efx_dissociate(struct efx_nic *efx) efx_dissociate() argument
267 efx_probe_nic(struct efx_nic *efx) efx_probe_nic() argument
328 efx_remove_nic(struct efx_nic *efx) efx_remove_nic() argument
342 efx_probe_all(struct efx_nic *efx) efx_probe_all() argument
399 efx_remove_all(struct efx_nic *efx) efx_remove_all() argument
419 efx_siena_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs) efx_siena_usecs_to_ticks() argument
429 efx_siena_init_irq_moderation(struct efx_nic *efx, unsigned int tx_usecs, unsigned int rx_usecs, bool rx_adaptive, bool rx_may_override_tx) efx_siena_init_irq_moderation() argument
464 efx_siena_get_irq_moderation(struct efx_nic *efx, unsigned int *tx_usecs, unsigned int *rx_usecs, bool *rx_adaptive) efx_siena_get_irq_moderation() argument
495 struct efx_nic *efx = netdev_priv(net_dev); efx_ioctl() local
520 struct efx_nic *efx = netdev_priv(net_dev); efx_net_open() local
551 struct efx_nic *efx = netdev_priv(net_dev); efx_net_stop() local
564 struct efx_nic *efx = netdev_priv(net_dev); efx_vlan_rx_add_vid() local
574 struct efx_nic *efx = netdev_priv(net_dev); efx_vlan_rx_kill_vid() local
614 efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog) efx_xdp_setup_prog() argument
643 struct efx_nic *efx = netdev_priv(dev); efx_xdp() local
656 struct efx_nic *efx = netdev_priv(dev); efx_xdp_xmit() local
664 efx_update_name(struct efx_nic *efx) efx_update_name() argument
690 struct efx_nic *efx = dev_get_drvdata(dev); phy_type_show() local
695 efx_register_netdev(struct efx_nic *efx) efx_register_netdev() argument
769 efx_unregister_netdev(struct efx_nic *efx) efx_unregister_netdev() argument
805 efx_siena_update_sw_stats(struct efx_nic *efx, u64 *stats) efx_siena_update_sw_stats() argument
825 efx_pci_remove_main(struct efx_nic *efx) efx_pci_remove_main() argument
848 struct efx_nic *efx; efx_pci_remove() local
882 efx_probe_vpd_strings(struct efx_nic *efx) efx_probe_vpd_strings() argument
916 efx_pci_probe_main(struct efx_nic *efx) efx_pci_probe_main() argument
967 efx_pci_probe_post_io(struct efx_nic *efx) efx_pci_probe_post_io() argument
1032 struct efx_nic *efx; efx_pci_probe() local
1117 struct efx_nic *efx = pci_get_drvdata(dev); efx_pci_sriov_configure() local
1132 struct efx_nic *efx = dev_get_drvdata(dev); efx_pm_freeze() local
1152 struct efx_nic *efx = pci_get_drvdata(pci_dev); efx_pci_shutdown() local
1164 struct efx_nic *efx = dev_get_drvdata(dev); efx_pm_thaw() local
1202 struct efx_nic *efx = pci_get_drvdata(pci_dev); efx_pm_poweroff() local
1216 struct efx_nic *efx = pci_get_drvdata(pci_dev); efx_pm_resume() local
[all...]
H A Defx_channels.c15 #include "efx.h"
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 in efx_wanted_parallelism()
125 efx_allocate_msix_channels(struct efx_nic *efx, unsigned int max_channels, unsigned int extra_channels, unsigned int parallelism) efx_allocate_msix_channels() argument
248 efx_siena_probe_interrupts(struct efx_nic *efx) efx_siena_probe_interrupts() argument
364 efx_siena_set_interrupt_affinity(struct efx_nic *efx) efx_siena_set_interrupt_affinity() argument
383 efx_siena_clear_interrupt_affinity(struct efx_nic *efx) efx_siena_clear_interrupt_affinity() argument
402 efx_siena_remove_interrupts(struct efx_nic *efx) efx_siena_remove_interrupts() argument
427 struct efx_nic *efx = channel->efx; efx_probe_eventq() local
446 struct efx_nic *efx = channel->efx; efx_init_eventq() local
532 efx_alloc_channel(struct efx_nic *efx, int i) efx_alloc_channel() argument
566 efx_siena_init_channels(struct efx_nic *efx) efx_siena_init_channels() argument
588 efx_siena_fini_channels(struct efx_nic *efx) efx_siena_fini_channels() argument
683 struct efx_nic *efx = channel->efx; efx_get_channel_name() local
704 efx_siena_set_channel_names(struct efx_nic *efx) efx_siena_set_channel_names() argument
714 efx_siena_probe_channels(struct efx_nic *efx) efx_siena_probe_channels() argument
761 efx_siena_remove_channels(struct efx_nic *efx) efx_siena_remove_channels() argument
771 efx_set_xdp_tx_queue(struct efx_nic *efx, int xdp_queue_number, struct efx_tx_queue *tx_queue) efx_set_xdp_tx_queue() argument
785 efx_set_xdp_channels(struct efx_nic *efx) efx_set_xdp_channels() argument
855 efx_siena_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries) efx_siena_realloc_channels() argument
960 efx_siena_set_channels(struct efx_nic *efx) efx_siena_set_channels() argument
1001 efx_soft_enable_interrupts(struct efx_nic *efx) efx_soft_enable_interrupts() argument
1036 efx_soft_disable_interrupts(struct efx_nic *efx) efx_soft_disable_interrupts() argument
1064 efx_siena_enable_interrupts(struct efx_nic *efx) efx_siena_enable_interrupts() argument
1107 efx_siena_disable_interrupts(struct efx_nic *efx) efx_siena_disable_interrupts() argument
1121 efx_siena_start_channels(struct efx_nic *efx) efx_siena_start_channels() argument
1145 efx_siena_stop_channels(struct efx_nic *efx) efx_siena_stop_channels() argument
1246 efx_update_irq_mod(struct efx_nic *efx, struct efx_channel *channel) efx_update_irq_mod() argument
1276 struct efx_nic *efx = channel->efx; efx_poll() local
1319 struct efx_nic *efx = channel->efx; efx_init_napi_channel() local
1325 efx_siena_init_napi(struct efx_nic *efx) efx_siena_init_napi() argument
1341 efx_siena_fini_napi(struct efx_nic *efx) efx_siena_fini_napi() argument
[all...]
H A Dselftest.c20 #include "efx.h"
72 #define INT_MODE(efx) \
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
178 efx_test_eventq_irq(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_eventq_irq() argument
259 efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_test_phy() argument
286 efx_siena_loopback_rx_packet(struct efx_nic *efx, const char *buf_ptr, int pkt_len) efx_siena_loopback_rx_packet() argument
380 efx_iterate_state(struct efx_nic *efx) efx_iterate_state() argument
418 struct efx_nic *efx = tx_queue->efx; efx_begin_loopback() local
469 efx_poll_loopback(struct efx_nic *efx) efx_poll_loopback() argument
479 struct efx_nic *efx = tx_queue->efx; efx_end_loopback() local
538 struct efx_nic *efx = tx_queue->efx; efx_test_loopback() local
591 efx_wait_for_link(struct efx_nic *efx) efx_wait_for_link() argument
623 efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, unsigned int loopback_modes) efx_test_loopbacks() argument
699 efx_siena_selftest(struct efx_nic *efx, struct efx_self_tests *tests, unsigned int flags) efx_siena_selftest() argument
782 efx_siena_selftest_async_start(struct efx_nic *efx) efx_siena_selftest_async_start() argument
791 efx_siena_selftest_async_cancel(struct efx_nic *efx) efx_siena_selftest_async_cancel() argument
798 struct efx_nic *efx = container_of(data, struct efx_nic, efx_siena_selftest_async_work() local
816 efx_siena_selftest_async_init(struct efx_nic *efx) efx_siena_selftest_async_init() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Defx_common.c17 #include "efx.h"
123 void efx_queue_reset_work(struct efx_nic *efx) in efx_queue_reset_work() argument
125 queue_work(reset_workqueue, &efx->reset_work); in efx_queue_reset_work()
128 void efx_flush_reset_workqueue(struct efx_nic *efx) in efx_flush_reset_workqueue() argument
130 cancel_work_sync(&efx->reset_work); in efx_flush_reset_workqueue()
141 /* We assume that efx->type->reconfigure_mac will always try to sync RX
144 void efx_mac_reconfigure(struct efx_nic *efx, bool mtu_only) in efx_mac_reconfigure() argument
146 if (efx->type->reconfigure_mac) { in efx_mac_reconfigure()
147 down_read(&efx->filter_sem); in efx_mac_reconfigure()
148 efx in efx_mac_reconfigure()
159 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); efx_mac_work() local
169 struct efx_nic *efx = netdev_priv(net_dev); efx_set_mac_address() local
204 struct efx_nic *efx = netdev_priv(net_dev); efx_set_rx_mode() local
213 struct efx_nic *efx = netdev_priv(net_dev); efx_set_features() local
241 efx_link_status_changed(struct efx_nic *efx) efx_link_status_changed() argument
272 efx_xdp_max_mtu(struct efx_nic *efx) efx_xdp_max_mtu() argument
287 struct efx_nic *efx = netdev_priv(net_dev); efx_change_mtu() local
326 struct efx_nic *efx = container_of(data, struct efx_nic, efx_monitor() local
347 efx_start_monitor(struct efx_nic *efx) efx_start_monitor() argument
364 efx_start_datapath(struct efx_nic *efx) efx_start_datapath() argument
442 efx_stop_datapath(struct efx_nic *efx) efx_stop_datapath() argument
461 efx_link_clear_advertising(struct efx_nic *efx) efx_link_clear_advertising() argument
467 efx_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc) efx_link_set_wanted_fc() argument
482 efx_start_port(struct efx_nic *efx) efx_start_port() argument
501 efx_stop_port(struct efx_nic *efx) efx_stop_port() argument
527 efx_start_all(struct efx_nic *efx) efx_start_all() argument
569 efx_stop_all(struct efx_nic *efx) efx_stop_all() argument
604 struct efx_nic *efx = netdev_priv(net_dev); efx_net_stats() local
618 __efx_reconfigure_port(struct efx_nic *efx) __efx_reconfigure_port() argument
644 efx_reconfigure_port(struct efx_nic *efx) efx_reconfigure_port() argument
663 efx_wait_for_bist_end(struct efx_nic *efx) efx_wait_for_bist_end() argument
686 efx_try_recovery(struct efx_nic *efx) efx_try_recovery() argument
708 efx_reset_down(struct efx_nic *efx, enum reset_type method) efx_reset_down() argument
727 struct efx_nic *efx = netdev_priv(net_dev); efx_watchdog() local
742 efx_reset_up(struct efx_nic *efx, enum reset_type method, bool ok) efx_reset_up() argument
813 efx_reset(struct efx_nic *efx, enum reset_type method) efx_reset() argument
878 struct efx_nic *efx = container_of(data, struct efx_nic, reset_work); efx_reset_work() local
908 efx_schedule_reset(struct efx_nic *efx, enum reset_type type) efx_schedule_reset() argument
967 efx_port_dummy_op_int(struct efx_nic *efx) efx_port_dummy_op_int() argument
971 efx_port_dummy_op_void(struct efx_nic *efx) efx_port_dummy_op_void() argument
982 efx_init_struct(struct efx_nic *efx, struct pci_dev *pci_dev, struct net_device *net_dev) efx_init_struct() argument
1057 efx_fini_struct(struct efx_nic *efx) efx_fini_struct() argument
1074 efx_init_io(struct efx_nic *efx, int bar, dma_addr_t dma_mask, unsigned int mem_map_size) efx_init_io() argument
1144 efx_fini_io(struct efx_nic *efx) efx_fini_io() argument
1168 struct efx_nic *efx = dev_get_drvdata(dev); show_mcdi_log() local
1177 struct efx_nic *efx = dev_get_drvdata(dev); set_mcdi_log() local
1187 efx_init_mcdi_logging(struct efx_nic *efx) efx_init_mcdi_logging() argument
1197 efx_fini_mcdi_logging(struct efx_nic *efx) efx_fini_mcdi_logging() argument
1211 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_error_detected() local
1245 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_slot_reset() local
1260 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_resume() local
1297 efx_can_encap_offloads(struct efx_nic *efx, struct sk_buff *skb) efx_can_encap_offloads() argument
1359 struct efx_nic *efx = netdev_priv(dev); efx_features_check() local
1380 struct efx_nic *efx = netdev_priv(net_dev); efx_get_phys_port_id() local
1390 struct efx_nic *efx = netdev_priv(net_dev); efx_get_phys_port_name() local
[all...]
H A Defx.c25 #include "efx.h"
102 static void efx_remove_port(struct efx_nic *efx);
103 static int efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog);
114 static void efx_fini_port(struct efx_nic *efx);
116 static int efx_probe_port(struct efx_nic *efx) in efx_probe_port() argument
120 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port()
123 efx->phy_mode = PHY_MODE_SPECIAL; in efx_probe_port()
126 rc = efx->type->probe_port(efx); in efx_probe_port()
136 efx_init_port(struct efx_nic *efx) efx_init_port() argument
159 efx_fini_port(struct efx_nic *efx) efx_fini_port() argument
172 efx_remove_port(struct efx_nic *efx) efx_remove_port() argument
195 efx_associate(struct efx_nic *efx) efx_associate() argument
240 efx_dissociate(struct efx_nic *efx) efx_dissociate() argument
256 efx_probe_nic(struct efx_nic *efx) efx_probe_nic() argument
317 efx_remove_nic(struct efx_nic *efx) efx_remove_nic() argument
331 efx_probe_all(struct efx_nic *efx) efx_probe_all() argument
390 efx_remove_all(struct efx_nic *efx) efx_remove_all() argument
410 efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs) efx_usecs_to_ticks() argument
419 efx_ticks_to_usecs(struct efx_nic *efx, unsigned int ticks) efx_ticks_to_usecs() argument
428 efx_init_irq_moderation(struct efx_nic *efx, unsigned int tx_usecs, unsigned int rx_usecs, bool rx_adaptive, bool rx_may_override_tx) efx_init_irq_moderation() argument
463 efx_get_irq_moderation(struct efx_nic *efx, unsigned int *tx_usecs, unsigned int *rx_usecs, bool *rx_adaptive) efx_get_irq_moderation() argument
494 struct efx_nic *efx = netdev_priv(net_dev); efx_ioctl() local
519 struct efx_nic *efx = netdev_priv(net_dev); efx_net_open() local
552 struct efx_nic *efx = netdev_priv(net_dev); efx_net_stop() local
565 struct efx_nic *efx = netdev_priv(net_dev); efx_vlan_rx_add_vid() local
575 struct efx_nic *efx = netdev_priv(net_dev); efx_vlan_rx_kill_vid() local
617 efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog) efx_xdp_setup_prog() argument
646 struct efx_nic *efx = netdev_priv(dev); efx_xdp() local
659 struct efx_nic *efx = netdev_priv(dev); efx_xdp_xmit() local
667 efx_update_name(struct efx_nic *efx) efx_update_name() argument
693 struct efx_nic *efx = dev_get_drvdata(dev); show_phy_type() local
698 efx_register_netdev(struct efx_nic *efx) efx_register_netdev() argument
773 efx_unregister_netdev(struct efx_nic *efx) efx_unregister_netdev() argument
825 efx_update_sw_stats(struct efx_nic *efx, u64 *stats) efx_update_sw_stats() argument
845 efx_pci_remove_main(struct efx_nic *efx) efx_pci_remove_main() argument
868 struct efx_nic *efx; efx_pci_remove() local
906 efx_probe_vpd_strings(struct efx_nic *efx) efx_probe_vpd_strings() argument
976 efx_pci_probe_main(struct efx_nic *efx) efx_pci_probe_main() argument
1028 efx_pci_probe_post_io(struct efx_nic *efx) efx_pci_probe_post_io() argument
1089 struct efx_nic *efx; efx_pci_probe() local
1176 struct efx_nic *efx = pci_get_drvdata(dev); efx_pci_sriov_configure() local
1191 struct efx_nic *efx = dev_get_drvdata(dev); efx_pm_freeze() local
1212 struct efx_nic *efx = dev_get_drvdata(dev); efx_pm_thaw() local
1250 struct efx_nic *efx = pci_get_drvdata(pci_dev); efx_pm_poweroff() local
1264 struct efx_nic *efx = pci_get_drvdata(pci_dev); efx_pm_resume() local
[all...]
H A Defx_channels.c14 #include "efx.h"
79 static unsigned int efx_wanted_parallelism(struct efx_nic *efx) in efx_wanted_parallelism() argument
89 netif_warn(efx, probe, efx->net_dev, in efx_wanted_parallelism()
107 netif_cond_dbg(efx, probe, efx->net_dev, !rss_cpus, warn, in efx_wanted_parallelism()
117 if (efx->type->sriov_wanted) { in efx_wanted_parallelism()
118 if (efx->type->sriov_wanted(efx) && efx_vf_size(efx) > in efx_wanted_parallelism()
133 efx_allocate_msix_channels(struct efx_nic *efx, unsigned int max_channels, unsigned int extra_channels, unsigned int parallelism) efx_allocate_msix_channels() argument
236 efx_probe_interrupts(struct efx_nic *efx) efx_probe_interrupts() argument
350 efx_set_interrupt_affinity(struct efx_nic *efx) efx_set_interrupt_affinity() argument
362 efx_clear_interrupt_affinity(struct efx_nic *efx) efx_clear_interrupt_affinity() argument
381 efx_remove_interrupts(struct efx_nic *efx) efx_remove_interrupts() argument
406 struct efx_nic *efx = channel->efx; efx_probe_eventq() local
425 struct efx_nic *efx = channel->efx; efx_init_eventq() local
510 efx_alloc_channel(struct efx_nic *efx, int i) efx_alloc_channel() argument
544 efx_init_channels(struct efx_nic *efx) efx_init_channels() argument
566 efx_fini_channels(struct efx_nic *efx) efx_fini_channels() argument
659 struct efx_nic *efx = channel->efx; efx_get_channel_name() local
680 efx_set_channel_names(struct efx_nic *efx) efx_set_channel_names() argument
690 efx_probe_channels(struct efx_nic *efx) efx_probe_channels() argument
737 efx_remove_channels(struct efx_nic *efx) efx_remove_channels() argument
747 efx_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries) efx_realloc_channels() argument
855 efx_set_channels(struct efx_nic *efx) efx_set_channels() argument
932 efx_soft_enable_interrupts(struct efx_nic *efx) efx_soft_enable_interrupts() argument
967 efx_soft_disable_interrupts(struct efx_nic *efx) efx_soft_disable_interrupts() argument
995 efx_enable_interrupts(struct efx_nic *efx) efx_enable_interrupts() argument
1038 efx_disable_interrupts(struct efx_nic *efx) efx_disable_interrupts() argument
1052 efx_start_channels(struct efx_nic *efx) efx_start_channels() argument
1076 efx_stop_channels(struct efx_nic *efx) efx_stop_channels() argument
1177 efx_update_irq_mod(struct efx_nic *efx, struct efx_channel *channel) efx_update_irq_mod() argument
1207 struct efx_nic *efx = channel->efx; efx_poll() local
1250 struct efx_nic *efx = channel->efx; efx_init_napi_channel() local
1257 efx_init_napi(struct efx_nic *efx) efx_init_napi() argument
1273 efx_fini_napi(struct efx_nic *efx) efx_fini_napi() argument
[all...]
H A Dselftest.c20 #include "efx.h"
67 #define INT_MODE(efx) \
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
173 efx_test_eventq_irq(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_eventq_irq() argument
254 efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_test_phy() argument
281 efx_loopback_rx_packet(struct efx_nic *efx, const char *buf_ptr, int pkt_len) efx_loopback_rx_packet() argument
373 efx_iterate_state(struct efx_nic *efx) efx_iterate_state() argument
410 struct efx_nic *efx = tx_queue->efx; efx_begin_loopback() local
457 efx_poll_loopback(struct efx_nic *efx) efx_poll_loopback() argument
467 struct efx_nic *efx = tx_queue->efx; efx_end_loopback() local
526 struct efx_nic *efx = tx_queue->efx; efx_test_loopback() local
579 efx_wait_for_link(struct efx_nic *efx) efx_wait_for_link() argument
611 efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, unsigned int loopback_modes) efx_test_loopbacks() argument
687 efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_selftest() argument
770 efx_selftest_async_start(struct efx_nic *efx) efx_selftest_async_start() argument
779 efx_selftest_async_cancel(struct efx_nic *efx) efx_selftest_async_cancel() argument
786 struct efx_nic *efx = container_of(data, struct efx_nic, efx_selftest_async_work() local
804 efx_selftest_async_init(struct efx_nic *efx) efx_selftest_async_init() argument
[all...]
H A Def100_netdev.c26 static void ef100_update_name(struct efx_nic *efx) in ef100_update_name() argument
28 strcpy(efx->name, efx->net_dev->name); in ef100_update_name()
31 static int ef100_alloc_vis(struct efx_nic *efx, unsigned int *allocated_vis) in ef100_alloc_vis() argument
37 unsigned int tx_vis = efx->n_tx_channels + efx->n_extra_tx_channels; in ef100_alloc_vis()
38 unsigned int rx_vis = efx->n_rx_channels; in ef100_alloc_vis()
41 EFX_WARN_ON_PARANOID(efx->tx_queues_per_channel != 1); in ef100_alloc_vis()
43 tx_vis += efx->n_xdp_channels * efx in ef100_alloc_vis()
55 ef100_remap_bar(struct efx_nic *efx, int max_vis) ef100_remap_bar() argument
82 struct efx_nic *efx = netdev_priv(net_dev); ef100_net_stop() local
107 struct efx_nic *efx = netdev_priv(net_dev); ef100_net_open() local
196 struct efx_nic *efx = netdev_priv(net_dev); ef100_hard_start_xmit() local
244 struct efx_nic *efx = container_of(this, struct efx_nic, netdev_notifier); ef100_netdev_event() local
253 ef100_register_netdev(struct efx_nic *efx) ef100_register_netdev() argument
291 ef100_unregister_netdev(struct efx_nic *efx) ef100_unregister_netdev() argument
[all...]
H A Def100.c41 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) \
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 in ef100_pci_parse_ef100_entry()
97 ef100_pci_does_bar_overflow(struct efx_nic *efx, int bar, u64 next_entry) ef100_pci_does_bar_overflow() argument
107 ef100_pci_parse_continue_entry(struct efx_nic *efx, int entry_location, struct ef100_func_ctl_window *result) ef100_pci_parse_continue_entry() argument
179 ef100_pci_walk_xilinx_table(struct efx_nic *efx, u64 offset, struct ef100_func_ctl_window *result) ef100_pci_walk_xilinx_table() argument
252 _ef100_pci_get_config_bits_with_width(struct efx_nic *efx, int structure_start, int lbn, int width, u32 *result) _ef100_pci_get_config_bits_with_width() argument
280 ef100_pci_parse_xilinx_cap(struct efx_nic *efx, int vndr_cap, bool has_offset_hi, struct ef100_func_ctl_window *result) ef100_pci_parse_xilinx_cap() argument
355 ef100_pci_find_func_ctrl_window(struct efx_nic *efx, struct ef100_func_ctl_window *result) ef100_pci_find_func_ctrl_window() argument
425 struct efx_nic *efx; ef100_pci_remove() local
455 struct efx_nic *efx; ef100_pci_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Defx_common.c18 #include "efx.h"
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()
138 /* We assume that efx->type->reconfigure_mac will always try to sync RX
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 in efx_mac_reconfigure()
156 struct efx_nic *efx = container_of(data, struct efx_nic, mac_work); efx_mac_work() local
166 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_set_mac_address() local
201 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_set_rx_mode() local
210 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_set_features() local
238 efx_link_status_changed(struct efx_nic *efx) efx_link_status_changed() argument
269 efx_xdp_max_mtu(struct efx_nic *efx) efx_xdp_max_mtu() argument
284 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_change_mtu() local
323 struct efx_nic *efx = container_of(data, struct efx_nic, efx_monitor() local
344 efx_start_monitor(struct efx_nic *efx) efx_start_monitor() argument
361 efx_start_datapath(struct efx_nic *efx) efx_start_datapath() argument
439 efx_stop_datapath(struct efx_nic *efx) efx_stop_datapath() argument
458 efx_link_clear_advertising(struct efx_nic *efx) efx_link_clear_advertising() argument
464 efx_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc) efx_link_set_wanted_fc() argument
479 efx_start_port(struct efx_nic *efx) efx_start_port() argument
498 efx_stop_port(struct efx_nic *efx) efx_stop_port() argument
524 efx_start_all(struct efx_nic *efx) efx_start_all() argument
566 efx_stop_all(struct efx_nic *efx) efx_stop_all() argument
601 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_net_stats() local
615 __efx_reconfigure_port(struct efx_nic *efx) __efx_reconfigure_port() argument
641 efx_reconfigure_port(struct efx_nic *efx) efx_reconfigure_port() argument
660 efx_wait_for_bist_end(struct efx_nic *efx) efx_wait_for_bist_end() argument
683 efx_try_recovery(struct efx_nic *efx) efx_try_recovery() argument
705 efx_reset_down(struct efx_nic *efx, enum reset_type method) efx_reset_down() argument
724 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_watchdog() local
739 efx_reset_up(struct efx_nic *efx, enum reset_type method, bool ok) efx_reset_up() argument
808 efx_reset(struct efx_nic *efx, enum reset_type method) efx_reset() argument
873 struct efx_nic *efx = container_of(data, struct efx_nic, reset_work); efx_reset_work() local
903 efx_schedule_reset(struct efx_nic *efx, enum reset_type type) efx_schedule_reset() argument
962 efx_port_dummy_op_int(struct efx_nic *efx) efx_port_dummy_op_int() argument
966 efx_port_dummy_op_void(struct efx_nic *efx) efx_port_dummy_op_void() argument
977 efx_init_struct(struct efx_nic *efx, struct pci_dev *pci_dev) efx_init_struct() argument
1051 efx_fini_struct(struct efx_nic *efx) efx_fini_struct() argument
1068 efx_init_io(struct efx_nic *efx, int bar, dma_addr_t dma_mask, unsigned int mem_map_size) efx_init_io() argument
1134 efx_fini_io(struct efx_nic *efx) efx_fini_io() argument
1159 struct efx_nic *efx = dev_get_drvdata(dev); mcdi_logging_show() local
1169 struct efx_nic *efx = dev_get_drvdata(dev); mcdi_logging_store() local
1179 efx_init_mcdi_logging(struct efx_nic *efx) efx_init_mcdi_logging() argument
1189 efx_fini_mcdi_logging(struct efx_nic *efx) efx_fini_mcdi_logging() argument
1203 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_error_detected() local
1239 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_slot_reset() local
1254 struct efx_nic *efx = pci_get_drvdata(pdev); efx_io_resume() local
1291 efx_can_encap_offloads(struct efx_nic *efx, struct sk_buff *skb) efx_can_encap_offloads() argument
1353 struct efx_nic *efx = efx_netdev_priv(dev); efx_features_check() local
1374 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_get_phys_port_id() local
1384 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_get_phys_port_name() local
1391 efx_detach_reps(struct efx_nic *efx) efx_detach_reps() argument
1410 efx_attach_reps(struct efx_nic *efx) efx_attach_reps() argument
[all...]
H A Defx.c25 #include "efx.h"
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()
137 efx_init_port(struct efx_nic *efx) efx_init_port() argument
160 efx_fini_port(struct efx_nic *efx) efx_fini_port() argument
173 efx_remove_port(struct efx_nic *efx) efx_remove_port() argument
196 efx_associate(struct efx_nic *efx) efx_associate() argument
241 efx_dissociate(struct efx_nic *efx) efx_dissociate() argument
257 efx_probe_nic(struct efx_nic *efx) efx_probe_nic() argument
318 efx_remove_nic(struct efx_nic *efx) efx_remove_nic() argument
332 efx_probe_all(struct efx_nic *efx) efx_probe_all() argument
391 efx_remove_all(struct efx_nic *efx) efx_remove_all() argument
411 efx_usecs_to_ticks(struct efx_nic *efx, unsigned int usecs) efx_usecs_to_ticks() argument
420 efx_ticks_to_usecs(struct efx_nic *efx, unsigned int ticks) efx_ticks_to_usecs() argument
429 efx_init_irq_moderation(struct efx_nic *efx, unsigned int tx_usecs, unsigned int rx_usecs, bool rx_adaptive, bool rx_may_override_tx) efx_init_irq_moderation() argument
464 efx_get_irq_moderation(struct efx_nic *efx, unsigned int *tx_usecs, unsigned int *rx_usecs, bool *rx_adaptive) efx_get_irq_moderation() argument
495 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_ioctl() local
520 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_net_open() local
553 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_net_stop() local
566 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_vlan_rx_add_vid() local
576 struct efx_nic *efx = efx_netdev_priv(net_dev); efx_vlan_rx_kill_vid() local
615 efx_xdp_setup_prog(struct efx_nic *efx, struct bpf_prog *prog) efx_xdp_setup_prog() argument
644 struct efx_nic *efx = efx_netdev_priv(dev); efx_xdp() local
657 struct efx_nic *efx = efx_netdev_priv(dev); efx_xdp_xmit() local
665 efx_update_name(struct efx_nic *efx) efx_update_name() argument
691 struct efx_nic *efx = dev_get_drvdata(dev); phy_type_show() local
696 efx_register_netdev(struct efx_nic *efx) efx_register_netdev() argument
770 efx_unregister_netdev(struct efx_nic *efx) efx_unregister_netdev() argument
819 efx_update_sw_stats(struct efx_nic *efx, u64 *stats) efx_update_sw_stats() argument
839 efx_pci_remove_main(struct efx_nic *efx) efx_pci_remove_main() argument
863 struct efx_nic *efx; efx_pci_remove() local
901 efx_probe_vpd_strings(struct efx_nic *efx) efx_probe_vpd_strings() argument
935 efx_pci_probe_main(struct efx_nic *efx) efx_pci_probe_main() argument
986 efx_pci_probe_post_io(struct efx_nic *efx) efx_pci_probe_post_io() argument
1058 struct efx_nic *efx; efx_pci_probe() local
1155 struct efx_nic *efx = pci_get_drvdata(dev); efx_pci_sriov_configure() local
1170 struct efx_nic *efx = dev_get_drvdata(dev); efx_pm_freeze() local
1190 struct efx_nic *efx = pci_get_drvdata(pci_dev); efx_pci_shutdown() local
1202 struct efx_nic *efx = dev_get_drvdata(dev); efx_pm_thaw() local
1240 struct efx_nic *efx = pci_get_drvdata(pci_dev); efx_pm_poweroff() local
1254 struct efx_nic *efx = pci_get_drvdata(pci_dev); efx_pm_resume() local
[all...]
H A Def10_sriov.c11 #include "efx.h"
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_FRE in efx_ef10_vswitch_free()
69 efx_ef10_vport_alloc(struct efx_nic *efx, unsigned int port_id_in, unsigned int vport_type, u16 vlan, unsigned int *port_id_out) efx_ef10_vport_alloc() argument
103 efx_ef10_vport_free(struct efx_nic *efx, unsigned int port_id) efx_ef10_vport_free() argument
113 efx_ef10_sriov_free_vf_vports(struct efx_nic *efx) efx_ef10_sriov_free_vf_vports() argument
147 efx_ef10_sriov_free_vf_vswitching(struct efx_nic *efx) efx_ef10_sriov_free_vf_vswitching() argument
156 efx_ef10_sriov_assign_vf_vport(struct efx_nic *efx, unsigned int vf_i) efx_ef10_sriov_assign_vf_vport() argument
186 efx_ef10_sriov_alloc_vf_vswitching(struct efx_nic *efx) efx_ef10_sriov_alloc_vf_vswitching() argument
213 efx_ef10_sriov_restore_vf_vswitching(struct efx_nic *efx) efx_ef10_sriov_restore_vf_vswitching() argument
230 efx_ef10_vadaptor_alloc_set_features(struct efx_nic *efx) efx_ef10_vadaptor_alloc_set_features() argument
261 efx_ef10_vswitching_probe_pf(struct efx_nic *efx) efx_ef10_vswitching_probe_pf() argument
306 efx_ef10_vswitching_probe_vf(struct efx_nic *efx) efx_ef10_vswitching_probe_vf() argument
311 efx_ef10_vswitching_restore_pf(struct efx_nic *efx) efx_ef10_vswitching_restore_pf() argument
332 efx_ef10_vswitching_restore_vf(struct efx_nic *efx) efx_ef10_vswitching_restore_vf() argument
348 efx_ef10_vswitching_remove_pf(struct efx_nic *efx) efx_ef10_vswitching_remove_pf() argument
372 efx_ef10_vswitching_remove_vf(struct efx_nic *efx) efx_ef10_vswitching_remove_vf() argument
377 efx_ef10_pci_sriov_enable(struct efx_nic *efx, int num_vfs) efx_ef10_pci_sriov_enable() argument
408 efx_ef10_pci_sriov_disable(struct efx_nic *efx, bool force) efx_ef10_pci_sriov_disable() argument
434 efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs) efx_ef10_sriov_configure() argument
442 efx_ef10_sriov_init(struct efx_nic *efx) efx_ef10_sriov_init() argument
447 efx_ef10_sriov_fini(struct efx_nic *efx) efx_ef10_sriov_fini() argument
470 efx_ef10_vport_del_vf_mac(struct efx_nic *efx, unsigned int port_id, u8 *mac) efx_ef10_vport_del_vf_mac() argument
487 efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf_i, const u8 *mac) efx_ef10_sriov_set_vf_mac() argument
553 efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf_i, u16 vlan, u8 qos) efx_ef10_sriov_set_vf_vlan() argument
679 efx_ef10_sriov_set_privilege_mask(struct efx_nic *efx, int vf_i, u32 mask, u32 value) efx_ef10_sriov_set_privilege_mask() argument
730 efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf_i, bool spoofchk) efx_ef10_sriov_set_vf_spoofchk() argument
745 efx_ef10_sriov_set_vf_link_state(struct efx_nic *efx, int vf_i, int link_state) efx_ef10_sriov_set_vf_link_state() argument
766 efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf_i, struct ifla_vf_info *ivf) efx_ef10_sriov_get_vf_config() argument
[all...]
H A Def100_netdev.c30 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 in ef100_alloc_vis()
66 ef100_remap_bar(struct efx_nic *efx, int max_vis) ef100_remap_bar() argument
93 struct efx_nic *efx = efx_netdev_priv(net_dev); ef100_net_stop() local
119 struct efx_nic *efx = efx_netdev_priv(net_dev); ef100_net_open() local
242 struct efx_nic *efx = efx_netdev_priv(net_dev); ef100_hard_start_xmit() local
247 __ef100_hard_start_xmit(struct sk_buff *skb, struct efx_nic *efx, struct net_device *net_dev, struct efx_rep *efv) __ef100_hard_start_xmit() argument
302 struct efx_nic *efx = container_of(this, struct efx_nic, netdev_notifier); ef100_netdev_event() local
323 struct efx_nic *efx = container_of(this, struct efx_nic, netevent_notifier); ef100_netevent_event() local
336 ef100_register_netdev(struct efx_nic *efx) ef100_register_netdev() argument
374 ef100_unregister_netdev(struct efx_nic *efx) ef100_unregister_netdev() argument
385 struct efx_nic *efx = &probe_data->efx; ef100_remove_netdev() local
425 struct efx_nic *efx = &probe_data->efx; ef100_probe_netdev() local
[all...]
H A Defx_channels.c15 #include "efx.h"
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 in efx_wanted_parallelism()
124 efx_allocate_msix_channels(struct efx_nic *efx, unsigned int max_channels, unsigned int extra_channels, unsigned int parallelism) efx_allocate_msix_channels() argument
247 efx_probe_interrupts(struct efx_nic *efx) efx_probe_interrupts() argument
363 efx_set_interrupt_affinity(struct efx_nic *efx) efx_set_interrupt_affinity() argument
382 efx_clear_interrupt_affinity(struct efx_nic *efx) efx_clear_interrupt_affinity() argument
401 efx_remove_interrupts(struct efx_nic *efx) efx_remove_interrupts() argument
426 struct efx_nic *efx = channel->efx; efx_probe_eventq() local
445 struct efx_nic *efx = channel->efx; efx_init_eventq() local
530 efx_alloc_channel(struct efx_nic *efx, int i) efx_alloc_channel() argument
564 efx_init_channels(struct efx_nic *efx) efx_init_channels() argument
586 efx_fini_channels(struct efx_nic *efx) efx_fini_channels() argument
680 struct efx_nic *efx = channel->efx; efx_get_channel_name() local
701 efx_set_channel_names(struct efx_nic *efx) efx_set_channel_names() argument
711 efx_probe_channels(struct efx_nic *efx) efx_probe_channels() argument
755 efx_remove_channels(struct efx_nic *efx) efx_remove_channels() argument
765 efx_set_xdp_tx_queue(struct efx_nic *efx, int xdp_queue_number, struct efx_tx_queue *tx_queue) efx_set_xdp_tx_queue() argument
779 efx_set_xdp_channels(struct efx_nic *efx) efx_set_xdp_channels() argument
844 efx_realloc_channels(struct efx_nic *efx, u32 rxq_entries, u32 txq_entries) efx_realloc_channels() argument
928 efx_set_channels(struct efx_nic *efx) efx_set_channels() argument
969 efx_soft_enable_interrupts(struct efx_nic *efx) efx_soft_enable_interrupts() argument
1004 efx_soft_disable_interrupts(struct efx_nic *efx) efx_soft_disable_interrupts() argument
1032 efx_enable_interrupts(struct efx_nic *efx) efx_enable_interrupts() argument
1075 efx_disable_interrupts(struct efx_nic *efx) efx_disable_interrupts() argument
1089 efx_start_channels(struct efx_nic *efx) efx_start_channels() argument
1115 efx_stop_channels(struct efx_nic *efx) efx_stop_channels() argument
1221 efx_update_irq_mod(struct efx_nic *efx, struct efx_channel *channel) efx_update_irq_mod() argument
1251 struct efx_nic *efx = channel->efx; efx_poll() local
1294 struct efx_nic *efx = channel->efx; efx_init_napi_channel() local
1300 efx_init_napi(struct efx_nic *efx) efx_init_napi() argument
1316 efx_fini_napi(struct efx_nic *efx) efx_fini_napi() argument
[all...]
H A Dselftest.c20 #include "efx.h"
71 #define INT_MODE(efx) \
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
177 efx_test_eventq_irq(struct efx_nic *efx, struct efx_self_tests *tests) efx_test_eventq_irq() argument
258 efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_test_phy() argument
285 efx_loopback_rx_packet(struct efx_nic *efx, const char *buf_ptr, int pkt_len) efx_loopback_rx_packet() argument
379 efx_iterate_state(struct efx_nic *efx) efx_iterate_state() argument
417 struct efx_nic *efx = tx_queue->efx; efx_begin_loopback() local
468 efx_poll_loopback(struct efx_nic *efx) efx_poll_loopback() argument
478 struct efx_nic *efx = tx_queue->efx; efx_end_loopback() local
537 struct efx_nic *efx = tx_queue->efx; efx_test_loopback() local
586 efx_wait_for_link(struct efx_nic *efx) efx_wait_for_link() argument
618 efx_test_loopbacks(struct efx_nic *efx, struct efx_self_tests *tests, unsigned int loopback_modes) efx_test_loopbacks() argument
694 efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, unsigned flags) efx_selftest() argument
777 efx_selftest_async_start(struct efx_nic *efx) efx_selftest_async_start() argument
786 efx_selftest_async_cancel(struct efx_nic *efx) efx_selftest_async_cancel() argument
793 struct efx_nic *efx = container_of(data, struct efx_nic, efx_selftest_async_work() local
811 efx_selftest_async_init(struct efx_nic *efx) efx_selftest_async_init() argument
[all...]

Completed in 26 milliseconds

123456789