48 libefx functions have no caller anywhere in the tree. Deleting
them orphaned a few internal helpers that existed only to serve
them: efx_filter_spec_set_tunnel(), the MCDI capability predicates
and efx_mcdi_get_phy_media_info().

Remove the functions, their declarations in efx.h and efx_mcdi.h,
and the helpers that became unreachable. A rescan of the remaining
libefx globals finds no further unused ones.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/common/sfc_efx/base/efx.h        | 321 -----------------------
 drivers/common/sfc_efx/base/efx_ev.c     |  78 ------
 drivers/common/sfc_efx/base/efx_evb.c    | 146 -----------
 drivers/common/sfc_efx/base/efx_filter.c | 189 -------------
 drivers/common/sfc_efx/base/efx_hash.c   | 160 -----------
 drivers/common/sfc_efx/base/efx_intr.c   |  27 --
 drivers/common/sfc_efx/base/efx_mac.c    |  43 ---
 drivers/common/sfc_efx/base/efx_mae.c    |  30 ---
 drivers/common/sfc_efx/base/efx_mcdi.c   | 307 ----------------------
 drivers/common/sfc_efx/base/efx_mcdi.h   |  27 --
 drivers/common/sfc_efx/base/efx_mon.c    |  81 ------
 drivers/common/sfc_efx/base/efx_nic.c    | 130 ---------
 drivers/common/sfc_efx/base/efx_phy.c    |  89 -------
 drivers/common/sfc_efx/base/efx_port.c   |  15 --
 drivers/common/sfc_efx/base/efx_rx.c     |  35 ---
 drivers/common/sfc_efx/base/efx_sram.c   | 164 ------------
 drivers/common/sfc_efx/base/efx_tx.c     | 155 -----------
 drivers/common/sfc_efx/base/efx_virtio.c |  37 ---
 18 files changed, 2034 deletions(-)

diff --git a/drivers/common/sfc_efx/base/efx.h 
b/drivers/common/sfc_efx/base/efx.h
index 3aaa682a1e..5626563cb8 100644
--- a/drivers/common/sfc_efx/base/efx.h
+++ b/drivers/common/sfc_efx/base/efx.h
@@ -272,10 +272,6 @@ extern     __checkReturn   boolean_t
 efx_nic_hw_unavailable(
        __in            efx_nic_t *enp);
 
-extern                 void
-efx_nic_set_hw_unavailable(
-       __in            efx_nic_t *enp);
-
 #if EFSYS_OPT_DIAG
 
 LIBEFX_API
@@ -317,13 +313,6 @@ efx_nic_calculate_pcie_link_bandwidth(
        __in            uint32_t pcie_link_gen,
        __out           uint32_t *bandwidth_mbpsp);
 
-extern __checkReturn   efx_rc_t
-efx_nic_check_pcie_link_speed(
-       __in            efx_nic_t *enp,
-       __in            uint32_t pcie_link_width,
-       __in            uint32_t pcie_link_gen,
-       __out           efx_pcie_link_performance_t *resultp);
-
 typedef enum efx_port_usage_e {
        EFX_PORT_USAGE_UNKNOWN = 0,
        EFX_PORT_USAGE_EXCLUSIVE,       /* Port only used by this PF */
@@ -377,21 +366,11 @@ efx_mcdi_init(
        __in            efx_nic_t *enp,
        __in            const efx_mcdi_transport_t *mtp);
 
-extern __checkReturn   efx_rc_t
-efx_mcdi_reboot(
-       __in            efx_nic_t *enp);
-
 LIBEFX_API
 extern                 void
 efx_mcdi_new_epoch(
        __in            efx_nic_t *enp);
 
-extern                 void
-efx_mcdi_get_timeout(
-       __in            efx_nic_t *enp,
-       __in            efx_mcdi_req_t *emrp,
-       __out           uint32_t *usec_timeoutp);
-
 extern                 void
 efx_mcdi_request_start(
        __in            efx_nic_t *enp,
@@ -471,17 +450,8 @@ extern                     void
 efx_intr_disable(
        __in            efx_nic_t *enp);
 
-extern                 void
-efx_intr_disable_unlocked(
-       __in            efx_nic_t *enp);
-
 #define        EFX_INTR_NEVQS  32
 
-extern __checkReturn   efx_rc_t
-efx_intr_trigger(
-       __in            efx_nic_t *enp,
-       __in            unsigned int level);
-
 LIBEFX_API
 extern                 void
 efx_intr_status_line(
@@ -691,11 +661,6 @@ efx_mac_pdu_from_sdu(
        __in            efx_nic_t *enp,
        __in            size_t sdu);
 
-extern __checkReturn   efx_rc_t
-efx_mac_pdu_get(
-       __in            efx_nic_t *enp,
-       __out           size_t *pdu);
-
 LIBEFX_API
 extern __checkReturn   efx_rc_t
 efx_mac_pdu_set(
@@ -749,11 +714,6 @@ efx_mac_drain(
        __in            efx_nic_t *enp,
        __in            boolean_t enabled);
 
-extern __checkReturn   efx_rc_t
-efx_mac_up(
-       __in            efx_nic_t *enp,
-       __out           boolean_t *mac_upp);
-
 #define        EFX_FCNTL_RESPOND       0x00000001
 #define        EFX_FCNTL_GENERATE      0x00000002
 
@@ -869,16 +829,8 @@ typedef enum efx_mon_type_e {
 
 #if EFSYS_OPT_NAMES
 
-extern         const char *
-efx_mon_name(
-       __in    efx_nic_t *enp);
-
 #endif /* EFSYS_OPT_NAMES */
 
-extern __checkReturn   efx_rc_t
-efx_mon_init(
-       __in            efx_nic_t *enp);
-
 #if EFSYS_OPT_MON_STATS
 
 #define        EFX_MON_STATS_PAGE_SIZE 0x100
@@ -1062,16 +1014,8 @@ efx_mon_limits_update(
 
 #endif /* EFSYS_OPT_MON_STATS */
 
-extern         void
-efx_mon_fini(
-       __in    efx_nic_t *enp);
-
 /* PHY */
 
-extern __checkReturn   efx_rc_t
-efx_phy_verify(
-       __in            efx_nic_t *enp);
-
 typedef enum efx_phy_led_mode_e {
        EFX_PHY_LED_DEFAULT = 0,
        EFX_PHY_LED_OFF,
@@ -1161,11 +1105,6 @@ efx_port_loopback_set(
 
 #if EFSYS_OPT_NAMES
 
-extern __checkReturn   const char *
-efx_loopback_type_name(
-       __in            efx_nic_t *enp,
-       __in            efx_loopback_type_t type);
-
 #endif /* EFSYS_OPT_NAMES */
 
 #endif /* EFSYS_OPT_LOOPBACK */
@@ -1237,11 +1176,6 @@ efx_phy_adv_cap_set(
        __in            efx_nic_t *enp,
        __in            uint32_t mask);
 
-extern                 void
-efx_phy_lp_cap_get(
-       __in            efx_nic_t *enp,
-       __out           uint32_t *maskp);
-
 typedef enum efx_phy_lane_count_e {
        EFX_PHY_LANE_COUNT_DEFAULT = 0,
        EFX_PHY_LANE_COUNT_1 = 1,
@@ -1264,11 +1198,6 @@ efx_phy_lane_count_set(
        __in            efx_nic_t *enp,
        __in            efx_phy_lane_count_t lane_count);
 
-extern __checkReturn   efx_rc_t
-efx_phy_oui_get(
-       __in            efx_nic_t *enp,
-       __out           uint32_t *ouip);
-
 typedef enum efx_phy_media_type_e {
        EFX_PHY_MEDIA_INVALID = 0,
        EFX_PHY_MEDIA_XAUI,
@@ -1281,17 +1210,6 @@ typedef enum efx_phy_media_type_e {
        EFX_PHY_MEDIA_NTYPES
 } efx_phy_media_type_t;
 
-/*
- * Get the type of medium currently used.  If the board has ports for
- * modules, a module is present, and we recognise the media type of
- * the module, then this will be the media type of the module.
- * Otherwise it will be the media type of the port.
- */
-extern                 void
-efx_phy_media_type_get(
-       __in            efx_nic_t *enp,
-       __out           efx_phy_media_type_t *typep);
-
 /*
  * 2-wire device address of the base information in accordance with SFF-8472
  * Diagnostic Monitoring Interface for Optical Transceivers section
@@ -1319,14 +1237,6 @@ efx_phy_media_type_get(
 #define        EFX_PHY_MEDIA_INFO_MAX_OFFSET           0x100
 
 
-extern __checkReturn           efx_rc_t
-efx_phy_module_get_info(
-       __in                    efx_nic_t *enp,
-       __in                    uint8_t dev_addr,
-       __in                    size_t offset,
-       __in                    size_t len,
-       __out_bcount(len)       uint8_t *data);
-
 #if EFSYS_OPT_PHY_STATS
 
 /* START MKCONFIG GENERATED PhyHeaderStatsBlock 30ed56ad501f8e36 */
@@ -1845,31 +1755,11 @@ efx_nic_set_drv_limits(
        __inout         efx_nic_t *enp,
        __in            efx_drv_limits_t *edlp);
 
-/*
- * Register the OS driver version string for management agents
- * (e.g. via NC-SI). The content length is provided (i.e. no
- * NUL terminator). Use length 0 to indicate no version string
- * should be advertised. It is valid to set the version string
- * only before efx_nic_probe() is called.
- */
-extern __checkReturn   efx_rc_t
-efx_nic_set_drv_version(
-       __inout                 efx_nic_t *enp,
-       __in_ecount(length)     char const *verp,
-       __in                    size_t length);
-
 typedef enum efx_nic_region_e {
        EFX_REGION_VI,                  /* Memory BAR UC mapping */
        EFX_REGION_PIO_WRITE_VI,        /* Memory BAR WC mapping */
 } efx_nic_region_t;
 
-extern __checkReturn   efx_rc_t
-efx_nic_get_bar_region(
-       __in            efx_nic_t *enp,
-       __in            efx_nic_region_t region,
-       __out           uint32_t *offsetp,
-       __out           size_t *sizep);
-
 LIBEFX_API
 extern __checkReturn   efx_rc_t
 efx_nic_get_vi_pool(
@@ -2360,19 +2250,6 @@ efx_sram_test(
 
 #endif /* EFSYS_OPT_DIAG */
 
-extern __checkReturn   efx_rc_t
-efx_sram_buf_tbl_set(
-       __in            efx_nic_t *enp,
-       __in            uint32_t id,
-       __in            efsys_mem_t *esmp,
-       __in            size_t n);
-
-extern         void
-efx_sram_buf_tbl_clear(
-       __in    efx_nic_t *enp,
-       __in    uint32_t id,
-       __in    size_t n);
-
 #define        EFX_BUF_TBL_SIZE        0x20000
 
 #define        EFX_BUF_SIZE            4096
@@ -2476,17 +2353,6 @@ efx_evq_nbufs(
 #define        EFX_EVQ_FLAGS_EXTENDED_WIDTH    (0x20)
 
 
-extern __checkReturn   efx_rc_t
-efx_ev_qcreate(
-       __in            efx_nic_t *enp,
-       __in            unsigned int index,
-       __in            efsys_mem_t *esmp,
-       __in            size_t ndescs,
-       __in            uint32_t id,
-       __in            uint32_t us,
-       __in            uint32_t flags,
-       __deref_out     efx_evq_t **eepp);
-
 LIBEFX_API
 extern __checkReturn   efx_rc_t
 efx_ev_qcreate_irq(
@@ -2500,11 +2366,6 @@ efx_ev_qcreate_irq(
        __in            uint32_t irq,
        __deref_out     efx_evq_t **eepp);
 
-extern         void
-efx_ev_qpost(
-       __in            efx_evq_t *eep,
-       __in            uint16_t data);
-
 typedef __checkReturn  boolean_t
 (*efx_initialized_ev_t)(
        __in_opt        void *arg);
@@ -2733,11 +2594,6 @@ typedef struct efx_ev_callbacks_s {
 
 } efx_ev_callbacks_t;
 
-extern __checkReturn   boolean_t
-efx_ev_qpending(
-       __in            efx_evq_t *eep,
-       __in            unsigned int count);
-
 #if EFSYS_OPT_EV_PREFETCH
 
 LIBEFX_API
@@ -2769,11 +2625,6 @@ efx_ev_usecs_to_ticks(
        __in            unsigned int usecs,
        __out           unsigned int *ticksp);
 
-extern __checkReturn   efx_rc_t
-efx_ev_qmoderate(
-       __in            efx_evq_t *eep,
-       __in            unsigned int us);
-
 LIBEFX_API
 extern __checkReturn   efx_rc_t
 efx_ev_qprime(
@@ -2981,13 +2832,6 @@ efx_rx_scale_default_support_get(
        __in            efx_nic_t *enp,
        __out           efx_rx_scale_context_type_t *typep);
 
-extern __checkReturn   efx_rc_t
-efx_rx_scale_context_alloc(
-       __in            efx_nic_t *enp,
-       __in            efx_rx_scale_context_type_t type,
-       __in            uint32_t num_queues,
-       __out           uint32_t *rss_contextp);
-
 LIBEFX_API
 extern __checkReturn   efx_rc_t
 efx_rx_scale_context_alloc_v2(
@@ -3357,14 +3201,6 @@ efx_tx_qcreate(
        __deref_out     efx_txq_t **etpp,
        __out           unsigned int *addedp);
 
-extern __checkReturn           efx_rc_t
-efx_tx_qpost(
-       __in                    efx_txq_t *etp,
-       __in_ecount(ndescs)     efx_buffer_t *eb,
-       __in                    unsigned int ndescs,
-       __in                    unsigned int completed,
-       __inout                 unsigned int *addedp);
-
 extern __checkReturn   efx_rc_t
 efx_tx_qpace(
        __in            efx_txq_t *etp,
@@ -3387,28 +3223,6 @@ extern                   void
 efx_tx_qenable(
        __in            efx_txq_t *etp);
 
-extern __checkReturn   efx_rc_t
-efx_tx_qpio_enable(
-       __in            efx_txq_t *etp);
-
-extern                 void
-efx_tx_qpio_disable(
-       __in            efx_txq_t *etp);
-
-extern __checkReturn   efx_rc_t
-efx_tx_qpio_write(
-       __in                    efx_txq_t *etp,
-       __in_ecount(buf_length) uint8_t *buffer,
-       __in                    size_t buf_length,
-       __in                    size_t pio_buf_offset);
-
-extern __checkReturn   efx_rc_t
-efx_tx_qpio_post(
-       __in                    efx_txq_t *etp,
-       __in                    size_t pkt_length,
-       __in                    unsigned int completed,
-       __inout                 unsigned int *addedp);
-
 LIBEFX_API
 extern __checkReturn   efx_rc_t
 efx_tx_qdesc_post(
@@ -3427,14 +3241,6 @@ efx_tx_qdesc_dma_create(
        __in    boolean_t eop,
        __out   efx_desc_t *edp);
 
-extern void
-efx_tx_qdesc_tso_create(
-       __in    efx_txq_t *etp,
-       __in    uint16_t ipv4_id,
-       __in    uint32_t tcp_seq,
-       __in    uint8_t  tcp_flags,
-       __out   efx_desc_t *edp);
-
 /* Number of FATSOv2 option descriptors */
 #define        EFX_TX_FATSOV2_OPT_NDESCS               2
 
@@ -3459,12 +3265,6 @@ efx_tx_qdesc_vlantci_create(
        __in    uint16_t tci,
        __out   efx_desc_t *edp);
 
-extern void
-efx_tx_qdesc_checksum_create(
-       __in    efx_txq_t *etp,
-       __in    uint16_t flags,
-       __out   efx_desc_t *edp);
-
 #if EFSYS_OPT_QSTATS
 
 #if EFSYS_OPT_NAMES
@@ -3642,10 +3442,6 @@ efx_filter_remove(
        __in            efx_nic_t *enp,
        __inout         efx_filter_spec_t *spec);
 
-extern __checkReturn   efx_rc_t
-efx_filter_restore(
-       __in            efx_nic_t *enp);
-
 LIBEFX_API
 extern __checkReturn   efx_rc_t
 efx_filter_supported_filters(
@@ -3661,27 +3457,6 @@ efx_filter_spec_init_rx(
        __in            efx_filter_flags_t flags,
        __in            efx_rxq_t *erp);
 
-extern                 void
-efx_filter_spec_init_tx(
-       __out           efx_filter_spec_t *spec,
-       __in            efx_txq_t *etp);
-
-extern __checkReturn   efx_rc_t
-efx_filter_spec_set_ipv4_local(
-       __inout         efx_filter_spec_t *spec,
-       __in            uint8_t proto,
-       __in            uint32_t host,
-       __in            uint16_t port);
-
-extern __checkReturn   efx_rc_t
-efx_filter_spec_set_ipv4_full(
-       __inout         efx_filter_spec_t *spec,
-       __in            uint8_t proto,
-       __in            uint32_t lhost,
-       __in            uint16_t lport,
-       __in            uint32_t rhost,
-       __in            uint16_t rport);
-
 LIBEFX_API
 extern __checkReturn   efx_rc_t
 efx_filter_spec_set_eth_local(
@@ -3715,32 +3490,7 @@ efx_filter_spec_set_encap_type(
        __in            efx_tunnel_protocol_t encap_type,
        __in            efx_filter_inner_frame_match_t inner_frame_match);
 
-extern __checkReturn   efx_rc_t
-efx_filter_spec_set_vxlan(
-       __inout         efx_filter_spec_t *spec,
-       __in            const uint8_t *vni,
-       __in            const uint8_t *inner_addr,
-       __in            const uint8_t *outer_addr);
-
-extern __checkReturn   efx_rc_t
-efx_filter_spec_set_geneve(
-       __inout         efx_filter_spec_t *spec,
-       __in            const uint8_t *vni,
-       __in            const uint8_t *inner_addr,
-       __in            const uint8_t *outer_addr);
-
-extern __checkReturn   efx_rc_t
-efx_filter_spec_set_nvgre(
-       __inout         efx_filter_spec_t *spec,
-       __in            const uint8_t *vsid,
-       __in            const uint8_t *inner_addr,
-       __in            const uint8_t *outer_addr);
-
 #if EFSYS_OPT_RX_SCALE
-extern __checkReturn   efx_rc_t
-efx_filter_spec_set_rss_context(
-       __inout         efx_filter_spec_t *spec,
-       __in            uint32_t rss_context);
 #endif
 #endif /* EFSYS_OPT_FILTER */
 
@@ -3752,12 +3502,6 @@ efx_hash_dwords(
        __in                    size_t count,
        __in                    uint32_t init);
 
-extern __checkReturn           uint32_t
-efx_hash_bytes(
-       __in_ecount(length)     uint8_t const *input,
-       __in                    size_t length,
-       __in                    uint32_t init);
-
 #if EFSYS_OPT_LICENSING
 
 /* LICENSING */
@@ -4119,36 +3863,6 @@ efx_evb_vswitch_destroy(
        __in                            efx_nic_t *enp,
        __in                            efx_vswitch_t *evp);
 
-extern __checkReturn                   efx_rc_t
-efx_evb_vport_mac_set(
-       __in                            efx_nic_t *enp,
-       __in                            efx_vswitch_t *evp,
-       __in                            efx_vport_id_t vport_id,
-       __in_bcount(EFX_MAC_ADDR_LEN)   uint8_t *addrp);
-
-extern __checkReturn   efx_rc_t
-efx_evb_vport_vlan_set(
-       __in            efx_nic_t *enp,
-       __in            efx_vswitch_t *evp,
-       __in            efx_vport_id_t vport_id,
-       __in            uint16_t vid);
-
-extern __checkReturn                   efx_rc_t
-efx_evb_vport_reset(
-       __in                            efx_nic_t *enp,
-       __in                            efx_vswitch_t *evp,
-       __in                            efx_vport_id_t vport_id,
-       __in_bcount(EFX_MAC_ADDR_LEN)   uint8_t *addrp,
-       __in                            uint16_t vid,
-       __out                           boolean_t *is_fn_resetp);
-
-extern __checkReturn   efx_rc_t
-efx_evb_vport_stats(
-       __in            efx_nic_t *enp,
-       __in            efx_vswitch_t *evp,
-       __in            efx_vport_id_t vport_id,
-       __out           efsys_mem_t *stats_bufferp);
-
 #endif /* EFSYS_OPT_EVB */
 
 #if EFSYS_OPT_MCDI_PROXY_AUTH_SERVER
@@ -4872,10 +4586,6 @@ typedef struct efx_counter_s {
        uint32_t id;
 } efx_counter_t;
 
-extern __checkReturn                   unsigned int
-efx_mae_action_set_get_nb_count(
-       __in                            const efx_mae_actions_t *spec);
-
 /* See description before efx_mae_action_set_populate_count(). */
 LIBEFX_API
 extern __checkReturn                   efx_rc_t
@@ -4909,31 +4619,6 @@ efx_mae_action_set_alloc(
        __in                            const efx_mae_actions_t *spec,
        __out                           efx_mae_aset_id_t *aset_idp);
 
-/*
- * Allocates MAE counter(s) of type EFX_COUNTER_TYPE_ACTION.
- *
- * Generation count has two purposes:
- *
- * 1) Distinguish between counter packets that belong to freed counter
- *    and the packets that belong to reallocated counter (with the same ID);
- * 2) Make sure that all packets are received for a counter that was freed;
- *
- * API users should provide generation count out parameter in allocation
- * function if counters can be reallocated and consistent counter values are
- * required.
- *
- * API users that need consistent final counter values after counter
- * deallocation or counter stream stop should provide the parameter in
- * functions that free the counters and stop the counter stream.
- */
-extern __checkReturn                   efx_rc_t
-efx_mae_counters_alloc(
-       __in                            efx_nic_t *enp,
-       __in                            uint32_t n_counters,
-       __out                           uint32_t *n_allocatedp,
-       __out_ecount(n_counters)        efx_counter_t *countersp,
-       __out_opt                       uint32_t *gen_countp);
-
 /*
  * Allocates MAE counter(s) of the specified type. Other
  * than that, behaves like efx_mae_counters_alloc().
@@ -5197,12 +4882,6 @@ efx_virtio_get_features(
        __in            efx_virtio_device_type_t type,
        __out           uint64_t *featuresp);
 
-extern __checkReturn   efx_rc_t
-efx_virtio_verify_features(
-       __in            efx_nic_t *enp,
-       __in            efx_virtio_device_type_t type,
-       __in            uint64_t features);
-
 #endif /* EFSYS_OPT_VIRTIO */
 
 LIBEFX_API
diff --git a/drivers/common/sfc_efx/base/efx_ev.c 
b/drivers/common/sfc_efx/base/efx_ev.c
index 13159a10f4..6c0126c43b 100644
--- a/drivers/common/sfc_efx/base/efx_ev.c
+++ b/drivers/common/sfc_efx/base/efx_ev.c
@@ -385,23 +385,6 @@ efx_ev_qcreate_irq(
        return (rc);
 }
 
-       __checkReturn   efx_rc_t
-efx_ev_qcreate(
-       __in            efx_nic_t *enp,
-       __in            unsigned int index,
-       __in            efsys_mem_t *esmp,
-       __in            size_t ndescs,
-       __in            uint32_t id,
-       __in            uint32_t us,
-       __in            uint32_t flags,
-       __deref_out     efx_evq_t **eepp)
-{
-       uint32_t irq = index;
-
-       return (efx_ev_qcreate_irq(enp, index, esmp, ndescs, id, us, flags,
-           irq, eepp));
-}
-
                void
 efx_ev_qdestroy(
        __in    efx_evq_t *eep)
@@ -448,22 +431,6 @@ efx_ev_qprime(
        return (rc);
 }
 
-       __checkReturn   boolean_t
-efx_ev_qpending(
-       __in            efx_evq_t *eep,
-       __in            unsigned int count)
-{
-       size_t offset;
-       efx_qword_t qword;
-
-       EFSYS_ASSERT3U(eep->ee_magic, ==, EFX_EVQ_MAGIC);
-
-       offset = (count & eep->ee_mask) * sizeof (efx_qword_t);
-       EFSYS_MEM_READQ(eep->ee_esmp, offset, &qword);
-
-       return (EFX_EV_PRESENT(qword));
-}
-
 #if EFSYS_OPT_EV_PREFETCH
 
                        void
@@ -529,22 +496,6 @@ efx_ev_qpoll(
        eevop->eevo_qpoll(eep, countp, eecp, arg);
 }
 
-                       void
-efx_ev_qpost(
-       __in    efx_evq_t *eep,
-       __in    uint16_t data)
-{
-       efx_nic_t *enp = eep->ee_enp;
-       const efx_ev_ops_t *eevop = enp->en_eevop;
-
-       EFSYS_ASSERT3U(eep->ee_magic, ==, EFX_EVQ_MAGIC);
-
-       EFSYS_ASSERT(eevop != NULL &&
-           eevop->eevo_qpost != NULL);
-
-       eevop->eevo_qpost(eep, data);
-}
-
        __checkReturn   efx_rc_t
 efx_ev_usecs_to_ticks(
        __in            efx_nic_t *enp,
@@ -576,35 +527,6 @@ efx_ev_usecs_to_ticks(
        return (rc);
 }
 
-       __checkReturn   efx_rc_t
-efx_ev_qmoderate(
-       __in            efx_evq_t *eep,
-       __in            unsigned int us)
-{
-       efx_nic_t *enp = eep->ee_enp;
-       const efx_ev_ops_t *eevop = enp->en_eevop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(eep->ee_magic, ==, EFX_EVQ_MAGIC);
-
-       if ((eep->ee_flags & EFX_EVQ_FLAGS_NOTIFY_MASK) ==
-           EFX_EVQ_FLAGS_NOTIFY_DISABLED) {
-               rc = EINVAL;
-               goto fail1;
-       }
-
-       if ((rc = eevop->eevo_qmoderate(eep, us)) != 0)
-               goto fail2;
-
-       return (0);
-
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
 #if EFSYS_OPT_QSTATS
                                        void
 efx_ev_qstats_update(
diff --git a/drivers/common/sfc_efx/base/efx_evb.c 
b/drivers/common/sfc_efx/base/efx_evb.c
index 79db77c635..b684926442 100644
--- a/drivers/common/sfc_efx/base/efx_evb.c
+++ b/drivers/common/sfc_efx/base/efx_evb.c
@@ -382,114 +382,6 @@ efx_evb_vswitch_create(
        return (rc);
 }
 
-       __checkReturn                   efx_rc_t
-efx_evb_vport_mac_set(
-       __in                            efx_nic_t *enp,
-       __in                            efx_vswitch_t *evp,
-       __in                            efx_vport_id_t vport_id,
-       __in_bcount(EFX_MAC_ADDR_LEN)   uint8_t *addrp)
-{
-       const efx_evb_ops_t *eeop = enp->en_eeop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT(enp->en_mod_flags & EFX_MOD_EVB);
-
-       if (eeop->eeo_vport_reconfigure == NULL) {
-               rc = ENOTSUP;
-               goto fail1;
-       }
-
-       if (addrp == NULL) {
-               rc = EINVAL;
-               goto fail2;
-       }
-
-       rc = eeop->eeo_vport_reconfigure(enp, evp->ev_vswitch_id, vport_id,
-               NULL, addrp, NULL);
-       if (rc != 0)
-               goto fail3;
-
-       return (0);
-
-fail3:
-       EFSYS_PROBE(fail3);
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
-       __checkReturn   efx_rc_t
-efx_evb_vport_vlan_set(
-       __in            efx_nic_t *enp,
-       __in            efx_vswitch_t *evp,
-       __in            efx_vport_id_t vport_id,
-       __in            uint16_t vid)
-{
-       const efx_evb_ops_t *eeop = enp->en_eeop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT(enp->en_mod_flags & EFX_MOD_EVB);
-
-       if (eeop->eeo_vport_reconfigure == NULL) {
-               rc = ENOTSUP;
-               goto fail1;
-       }
-
-       rc = eeop->eeo_vport_reconfigure(enp, evp->ev_vswitch_id, vport_id,
-               &vid, NULL, NULL);
-       if (rc != 0)
-               goto fail2;
-
-       return (0);
-
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
-       __checkReturn                   efx_rc_t
-efx_evb_vport_reset(
-       __in                            efx_nic_t *enp,
-       __in                            efx_vswitch_t *evp,
-       __in                            efx_vport_id_t vport_id,
-       __in_bcount(EFX_MAC_ADDR_LEN)   uint8_t *addrp,
-       __in                            uint16_t vid,
-       __out                           boolean_t *is_fn_resetp)
-{
-       const efx_evb_ops_t *eeop = enp->en_eeop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT(enp->en_mod_flags & EFX_MOD_EVB);
-
-       if (eeop->eeo_vport_reconfigure == NULL) {
-               rc = ENOTSUP;
-               goto fail1;
-       }
-
-       if (is_fn_resetp == NULL) {
-               rc = EINVAL;
-               goto fail2;
-       }
-
-       rc = eeop->eeo_vport_reconfigure(enp, evp->ev_vswitch_id, vport_id,
-               &vid, addrp, is_fn_resetp);
-       if (rc != 0)
-               goto fail3;
-
-       return (0);
-
-fail3:
-       EFSYS_PROBE(fail3);
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
        __checkReturn   efx_rc_t
 efx_evb_vswitch_destroy(
        __in            efx_nic_t *enp,
@@ -533,42 +425,4 @@ efx_evb_vswitch_destroy(
        return (rc);
 }
 
-       __checkReturn   efx_rc_t
-efx_evb_vport_stats(
-       __in            efx_nic_t *enp,
-       __in            efx_vswitch_t *evp,
-       __in            efx_vport_id_t vport_id,
-       __out           efsys_mem_t *stats_bufferp)
-{
-       efx_rc_t rc;
-       const efx_evb_ops_t *eeop = enp->en_eeop;
-
-       EFSYS_ASSERT(enp->en_mod_flags & EFX_MOD_EVB);
-
-       if (eeop->eeo_vport_stats == NULL) {
-               rc = ENOTSUP;
-               goto fail1;
-       }
-
-       if (stats_bufferp == NULL) {
-               rc = EINVAL;
-               goto fail2;
-       }
-
-       rc = eeop->eeo_vport_stats(enp, evp->ev_vswitch_id,
-               vport_id, stats_bufferp);
-       if (rc != 0)
-               goto fail3;
-
-       return (0);
-
-fail3:
-       EFSYS_PROBE(fail3);
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
 #endif
diff --git a/drivers/common/sfc_efx/base/efx_filter.c 
b/drivers/common/sfc_efx/base/efx_filter.c
index 551db58fdd..8dc9db7ee8 100644
--- a/drivers/common/sfc_efx/base/efx_filter.c
+++ b/drivers/common/sfc_efx/base/efx_filter.c
@@ -140,25 +140,6 @@ efx_filter_remove(
        return (efop->efo_delete(enp, spec));
 }
 
-       __checkReturn   efx_rc_t
-efx_filter_restore(
-       __in            efx_nic_t *enp)
-{
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_FILTER);
-
-       if ((rc = enp->en_efop->efo_restore(enp)) != 0)
-               goto fail1;
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
        __checkReturn   efx_rc_t
 efx_filter_init(
        __in            efx_nic_t *enp)
@@ -369,70 +350,13 @@ efx_filter_spec_init_rx(
        spec->efs_dmaq_id = (uint16_t)erp->er_index;
 }
 
-               void
-efx_filter_spec_init_tx(
-       __out           efx_filter_spec_t *spec,
-       __in            efx_txq_t *etp)
-{
-       EFSYS_ASSERT3P(spec, !=, NULL);
-       EFSYS_ASSERT3P(etp, !=, NULL);
-
-       memset(spec, 0, sizeof (*spec));
-       spec->efs_priority = EFX_FILTER_PRI_MANUAL;
-       spec->efs_flags = EFX_FILTER_FLAG_TX;
-       spec->efs_dmaq_id = (uint16_t)etp->et_index;
-}
-
 
 /*
  *  Specify IPv4 host, transport protocol and port in a filter specification
  */
-__checkReturn          efx_rc_t
-efx_filter_spec_set_ipv4_local(
-       __inout         efx_filter_spec_t *spec,
-       __in            uint8_t proto,
-       __in            uint32_t host,
-       __in            uint16_t port)
-{
-       EFSYS_ASSERT3P(spec, !=, NULL);
-
-       spec->efs_match_flags |=
-               EFX_FILTER_MATCH_ETHER_TYPE | EFX_FILTER_MATCH_IP_PROTO |
-               EFX_FILTER_MATCH_LOC_HOST | EFX_FILTER_MATCH_LOC_PORT;
-       spec->efs_ether_type = EFX_ETHER_TYPE_IPV4;
-       spec->efs_ip_proto = proto;
-       spec->efs_loc_host.eo_u32[0] = host;
-       spec->efs_loc_port = port;
-       return (0);
-}
-
 /*
  * Specify IPv4 hosts, transport protocol and ports in a filter specification
  */
-__checkReturn          efx_rc_t
-efx_filter_spec_set_ipv4_full(
-       __inout         efx_filter_spec_t *spec,
-       __in            uint8_t proto,
-       __in            uint32_t lhost,
-       __in            uint16_t lport,
-       __in            uint32_t rhost,
-       __in            uint16_t rport)
-{
-       EFSYS_ASSERT3P(spec, !=, NULL);
-
-       spec->efs_match_flags |=
-               EFX_FILTER_MATCH_ETHER_TYPE | EFX_FILTER_MATCH_IP_PROTO |
-               EFX_FILTER_MATCH_LOC_HOST | EFX_FILTER_MATCH_LOC_PORT |
-               EFX_FILTER_MATCH_REM_HOST | EFX_FILTER_MATCH_REM_PORT;
-       spec->efs_ether_type = EFX_ETHER_TYPE_IPV4;
-       spec->efs_ip_proto = proto;
-       spec->efs_loc_host.eo_u32[0] = lhost;
-       spec->efs_loc_port = lport;
-       spec->efs_rem_host.eo_u32[0] = rhost;
-       spec->efs_rem_port = rport;
-       return (0);
-}
-
 /*
  * Specify local Ethernet address and/or VID in filter specification
  */
@@ -557,132 +481,19 @@ efx_filter_spec_set_encap_type(
  * Specify inner and outer Ethernet address and VNI or VSID in tunnel filter
  * specification.
  */
-static __checkReturn   efx_rc_t
-efx_filter_spec_set_tunnel(
-       __inout efx_filter_spec_t *spec,
-       __in            efx_tunnel_protocol_t encap_type,
-       __in            const uint8_t *vni_or_vsid,
-       __in            const uint8_t *inner_addr,
-       __in            const uint8_t *outer_addr)
-{
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3P(spec, !=, NULL);
-       EFSYS_ASSERT3P(vni_or_vsid, !=, NULL);
-       EFSYS_ASSERT3P(inner_addr, !=, NULL);
-       EFSYS_ASSERT3P(outer_addr, !=, NULL);
-
-       switch (encap_type) {
-       case EFX_TUNNEL_PROTOCOL_VXLAN:
-       case EFX_TUNNEL_PROTOCOL_GENEVE:
-       case EFX_TUNNEL_PROTOCOL_NVGRE:
-               break;
-       default:
-               rc = EINVAL;
-               goto fail1;
-       }
-
-       if ((inner_addr == NULL) && (outer_addr == NULL)) {
-               rc = EINVAL;
-               goto fail2;
-       }
-
-       if (vni_or_vsid != NULL) {
-               spec->efs_match_flags |= EFX_FILTER_MATCH_VNI_OR_VSID;
-               memcpy(spec->efs_vni_or_vsid, vni_or_vsid, EFX_VNI_OR_VSID_LEN);
-       }
-       if (outer_addr != NULL) {
-               spec->efs_match_flags |= EFX_FILTER_MATCH_LOC_MAC;
-               memcpy(spec->efs_loc_mac, outer_addr, EFX_MAC_ADDR_LEN);
-       }
-       if (inner_addr != NULL) {
-               spec->efs_match_flags |= EFX_FILTER_MATCH_IFRM_LOC_MAC;
-               memcpy(spec->efs_ifrm_loc_mac, inner_addr, EFX_MAC_ADDR_LEN);
-       }
-
-       spec->efs_match_flags |= EFX_FILTER_MATCH_ENCAP_TYPE;
-       spec->efs_encap_type = encap_type;
-
-       return (0);
-
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
 /*
  * Specify inner and outer Ethernet address and VNI in VXLAN filter
  * specification.
  */
-__checkReturn          efx_rc_t
-efx_filter_spec_set_vxlan(
-       __inout         efx_filter_spec_t *spec,
-       __in            const uint8_t *vni,
-       __in            const uint8_t *inner_addr,
-       __in            const uint8_t *outer_addr)
-{
-       return efx_filter_spec_set_tunnel(spec, EFX_TUNNEL_PROTOCOL_VXLAN,
-           vni, inner_addr, outer_addr);
-}
-
 /*
  * Specify inner and outer Ethernet address and VNI in Geneve filter
  * specification.
  */
-__checkReturn          efx_rc_t
-efx_filter_spec_set_geneve(
-       __inout         efx_filter_spec_t *spec,
-       __in            const uint8_t *vni,
-       __in            const uint8_t *inner_addr,
-       __in            const uint8_t *outer_addr)
-{
-       return efx_filter_spec_set_tunnel(spec, EFX_TUNNEL_PROTOCOL_GENEVE,
-           vni, inner_addr, outer_addr);
-}
-
 /*
  * Specify inner and outer Ethernet address and vsid in NVGRE filter
  * specification.
  */
-__checkReturn          efx_rc_t
-efx_filter_spec_set_nvgre(
-       __inout         efx_filter_spec_t *spec,
-       __in            const uint8_t *vsid,
-       __in            const uint8_t *inner_addr,
-       __in            const uint8_t *outer_addr)
-{
-       return efx_filter_spec_set_tunnel(spec, EFX_TUNNEL_PROTOCOL_NVGRE,
-           vsid, inner_addr, outer_addr);
-}
-
 #if EFSYS_OPT_RX_SCALE
-       __checkReturn   efx_rc_t
-efx_filter_spec_set_rss_context(
-       __inout         efx_filter_spec_t *spec,
-       __in            uint32_t rss_context)
-{
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3P(spec, !=, NULL);
-
-       /* The filter must have been created with EFX_FILTER_FLAG_RX_RSS. */
-       if ((spec->efs_flags & EFX_FILTER_FLAG_RX_RSS) == 0) {
-               rc = EINVAL;
-               goto fail1;
-       }
-
-       spec->efs_rss_context = rss_context;
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
 #endif
 
 #if EFSYS_OPT_SIENA
diff --git a/drivers/common/sfc_efx/base/efx_hash.c 
b/drivers/common/sfc_efx/base/efx_hash.c
index 25579687e3..f23bb987c4 100644
--- a/drivers/common/sfc_efx/base/efx_hash.c
+++ b/drivers/common/sfc_efx/base/efx_hash.c
@@ -134,169 +134,9 @@ efx_hash_dwords(
 #if EFSYS_IS_BIG_ENDIAN
 
 /* Produce a 32-bit hash from arbitrarily aligned input */
-       __checkReturn           uint32_t
-efx_hash_bytes(
-       __in_ecount(length)     uint8_t const *input,
-       __in                    size_t length,
-       __in                    uint32_t init)
-{
-       uint32_t a;
-       uint32_t b;
-       uint32_t c;
-
-       /* Set up the initial internal state */
-       a = b = c = EFX_HASH_INITIAL_VALUE + (uint32_t)length + init;
-
-       /* Handle all but the last twelve bytes of the input */
-       while (length > 12) {
-               a += ((uint32_t)input[0]) << 24;
-               a += ((uint32_t)input[1]) << 16;
-               a += ((uint32_t)input[2]) << 8;
-               a += ((uint32_t)input[3]);
-               b += ((uint32_t)input[4]) << 24;
-               b += ((uint32_t)input[5]) << 16;
-               b += ((uint32_t)input[6]) << 8;
-               b += ((uint32_t)input[7]);
-               c += ((uint32_t)input[8]) << 24;
-               c += ((uint32_t)input[9]) << 16;
-               c += ((uint32_t)input[10]) << 8;
-               c += ((uint32_t)input[11]);
-               EFX_HASH_MIX(a, b, c);
-               length -= 12;
-               input += 12;
-       }
-
-       /* Handle the left-overs */
-       switch (length) {
-       case 12:
-               c += ((uint32_t)input[11]);
-               /* Fall-through */
-       case 11:
-               c += ((uint32_t)input[10]) << 8;
-               /* Fall-through */
-       case 10:
-               c += ((uint32_t)input[9]) << 16;
-               /* Fall-through */
-       case 9:
-               c += ((uint32_t)input[8]) << 24;
-               /* Fall-through */
-       case 8:
-               b += ((uint32_t)input[7]);
-               /* Fall-through */
-       case 7:
-               b += ((uint32_t)input[6]) << 8;
-               /* Fall-through */
-       case 6:
-               b += ((uint32_t)input[5]) << 16;
-               /* Fall-through */
-       case 5:
-               b += ((uint32_t)input[4]) << 24;
-               /* Fall-through */
-       case 4:
-               a += ((uint32_t)input[3]);
-               /* Fall-through */
-       case 3:
-               a += ((uint32_t)input[2]) << 8;
-               /* Fall-through */
-       case 2:
-               a += ((uint32_t)input[1]) << 16;
-               /* Fall-through */
-       case 1:
-               a += ((uint32_t)input[0]) << 24;
-               EFX_HASH_FINALISE(a, b, c);
-               break;
-
-       case 0:
-               /* Should only get here if length parameter was zero */
-               break;
-       }
-
-       return (c);
-}
-
 #elif EFSYS_IS_LITTLE_ENDIAN
 
 /* Produce a 32-bit hash from arbitrarily aligned input */
-       __checkReturn           uint32_t
-efx_hash_bytes(
-       __in_ecount(length)     uint8_t const *input,
-       __in                    size_t length,
-       __in                    uint32_t init)
-{
-       uint32_t a;
-       uint32_t b;
-       uint32_t c;
-
-       /* Set up the initial internal state */
-       a = b = c = EFX_HASH_INITIAL_VALUE + (uint32_t)length + init;
-
-       /* Handle all but the last twelve bytes of the input */
-       while (length > 12) {
-               a += ((uint32_t)input[0]);
-               a += ((uint32_t)input[1]) << 8;
-               a += ((uint32_t)input[2]) << 16;
-               a += ((uint32_t)input[3]) << 24;
-               b += ((uint32_t)input[4]);
-               b += ((uint32_t)input[5]) << 8;
-               b += ((uint32_t)input[6]) << 16;
-               b += ((uint32_t)input[7]) << 24;
-               c += ((uint32_t)input[8]);
-               c += ((uint32_t)input[9]) << 8;
-               c += ((uint32_t)input[10]) << 16;
-               c += ((uint32_t)input[11]) << 24;
-               EFX_HASH_MIX(a, b, c);
-               length -= 12;
-               input += 12;
-       }
-
-       /* Handle the left-overs */
-       switch (length) {
-       case 12:
-               c += ((uint32_t)input[11]) << 24;
-               /* Fall-through */
-       case 11:
-               c += ((uint32_t)input[10]) << 16;
-               /* Fall-through */
-       case 10:
-               c += ((uint32_t)input[9]) << 8;
-               /* Fall-through */
-       case 9:
-               c += ((uint32_t)input[8]);
-               /* Fall-through */
-       case 8:
-               b += ((uint32_t)input[7]) << 24;
-               /* Fall-through */
-       case 7:
-               b += ((uint32_t)input[6]) << 16;
-               /* Fall-through */
-       case 6:
-               b += ((uint32_t)input[5]) << 8;
-               /* Fall-through */
-       case 5:
-               b += ((uint32_t)input[4]);
-               /* Fall-through */
-       case 4:
-               a += ((uint32_t)input[3]) << 24;
-               /* Fall-through */
-       case 3:
-               a += ((uint32_t)input[2]) << 16;
-               /* Fall-through */
-       case 2:
-               a += ((uint32_t)input[1]) << 8;
-               /* Fall-through */
-       case 1:
-               a += ((uint32_t)input[0]);
-               EFX_HASH_FINALISE(a, b, c);
-               break;
-
-       case 0:
-               /* Should only get here if length parameter was zero */
-               break;
-       }
-
-       return (c);
-}
-
 #else
 
 #error "Neither of EFSYS_IS_{BIG,LITTLE}_ENDIAN is set"
diff --git a/drivers/common/sfc_efx/base/efx_intr.c 
b/drivers/common/sfc_efx/base/efx_intr.c
index 8fdef839db..14e4b76fd6 100644
--- a/drivers/common/sfc_efx/base/efx_intr.c
+++ b/drivers/common/sfc_efx/base/efx_intr.c
@@ -229,33 +229,6 @@ efx_intr_disable(
        eiop->eio_disable(enp);
 }
 
-                       void
-efx_intr_disable_unlocked(
-       __in            efx_nic_t *enp)
-{
-       efx_intr_t *eip = &(enp->en_intr);
-       const efx_intr_ops_t *eiop = eip->ei_eiop;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_INTR);
-
-       eiop->eio_disable_unlocked(enp);
-}
-
-
-       __checkReturn   efx_rc_t
-efx_intr_trigger(
-       __in            efx_nic_t *enp,
-       __in            unsigned int level)
-{
-       efx_intr_t *eip = &(enp->en_intr);
-       const efx_intr_ops_t *eiop = eip->ei_eiop;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_INTR);
-
-       return (eiop->eio_trigger(enp, level));
-}
 
                        void
 efx_intr_status_line(
diff --git a/drivers/common/sfc_efx/base/efx_mac.c 
b/drivers/common/sfc_efx/base/efx_mac.c
index 9dc1eb23b9..4f9b12965f 100644
--- a/drivers/common/sfc_efx/base/efx_mac.c
+++ b/drivers/common/sfc_efx/base/efx_mac.c
@@ -170,26 +170,6 @@ efx_mac_pdu_set(
 fail1:
        EFSYS_PROBE1(fail1, efx_rc_t, rc);
 
-       return (rc);
-}
-
-       __checkReturn   efx_rc_t
-efx_mac_pdu_get(
-       __in            efx_nic_t *enp,
-       __out           size_t *pdu)
-{
-       efx_port_t *epp = &(enp->en_port);
-       const efx_mac_ops_t *emop = epp->ep_emop;
-       efx_rc_t rc;
-
-       if ((rc = emop->emo_pdu_get(enp, pdu)) != 0)
-               goto fail1;
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
        return (rc);
 }
 
@@ -326,29 +306,6 @@ efx_mac_drain(
 
        return (0);
 
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
-       __checkReturn   efx_rc_t
-efx_mac_up(
-       __in            efx_nic_t *enp,
-       __out           boolean_t *mac_upp)
-{
-       efx_port_t *epp = &(enp->en_port);
-       const efx_mac_ops_t *emop = epp->ep_emop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
-
-       if ((rc = emop->emo_up(enp, mac_upp)) != 0)
-               goto fail1;
-
-       return (0);
-
 fail1:
        EFSYS_PROBE1(fail1, efx_rc_t, rc);
 
diff --git a/drivers/common/sfc_efx/base/efx_mae.c 
b/drivers/common/sfc_efx/base/efx_mae.c
index 4533e5cae6..a9a7c70dc2 100644
--- a/drivers/common/sfc_efx/base/efx_mae.c
+++ b/drivers/common/sfc_efx/base/efx_mae.c
@@ -3285,13 +3285,6 @@ efx_mae_action_set_alloc(
        return (rc);
 }
 
-       __checkReturn                   unsigned int
-efx_mae_action_set_get_nb_count(
-       __in                            const efx_mae_actions_t *spec)
-{
-       return (spec->ema_n_count_actions);
-}
-
        __checkReturn                   efx_rc_t
 efx_mae_action_set_fill_in_counter_id(
        __in                            efx_mae_actions_t *spec,
@@ -3452,29 +3445,6 @@ efx_mae_counters_alloc_type(
        return (rc);
 }
 
-       __checkReturn                   efx_rc_t
-efx_mae_counters_alloc(
-       __in                            efx_nic_t *enp,
-       __in                            uint32_t n_counters,
-       __out                           uint32_t *n_allocatedp,
-       __out_ecount(n_counters)        efx_counter_t *countersp,
-       __out_opt                       uint32_t *gen_countp)
-{
-       efx_rc_t rc;
-
-       rc = efx_mae_counters_alloc_type(enp, EFX_COUNTER_TYPE_ACTION,
-                                        n_counters, n_allocatedp,
-                                        countersp, gen_countp);
-       if (rc != 0)
-               goto fail1;
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
        __checkReturn                   efx_rc_t
 efx_mae_counters_free_type(
        __in                            efx_nic_t *enp,
diff --git a/drivers/common/sfc_efx/base/efx_mcdi.c 
b/drivers/common/sfc_efx/base/efx_mcdi.c
index 32eb228162..dd1ffa4eee 100644
--- a/drivers/common/sfc_efx/base/efx_mcdi.c
+++ b/drivers/common/sfc_efx/base/efx_mcdi.c
@@ -835,17 +835,6 @@ efx_mcdi_client_mac_addr_set(
        return (rc);
 }
 
-                       void
-efx_mcdi_get_timeout(
-       __in            efx_nic_t *enp,
-       __in            efx_mcdi_req_t *emrp,
-       __out           uint32_t *timeoutp)
-{
-       const efx_mcdi_ops_t *emcop = enp->en_mcdi.em_emcop;
-
-       emcop->emco_get_timeout(enp, emrp, timeoutp);
-}
-
        __checkReturn   efx_rc_t
 efx_mcdi_request_errcode(
        __in            unsigned int err)
@@ -1482,13 +1471,6 @@ efx_mcdi_do_reboot(
        return (rc);
 }
 
-       __checkReturn   efx_rc_t
-efx_mcdi_reboot(
-       __in            efx_nic_t *enp)
-{
-       return (efx_mcdi_do_reboot(enp, B_FALSE));
-}
-
        __checkReturn   efx_rc_t
 efx_mcdi_exit_assertion_handler(
        __in            efx_nic_t *enp)
@@ -1902,56 +1884,6 @@ efx_mcdi_get_phy_cfg(
 fail1:
        EFSYS_PROBE1(fail1, efx_rc_t, rc);
 
-       return (rc);
-}
-
-       __checkReturn           efx_rc_t
-efx_mcdi_firmware_update_supported(
-       __in                    efx_nic_t *enp,
-       __out                   boolean_t *supportedp)
-{
-       const efx_mcdi_ops_t *emcop = enp->en_mcdi.em_emcop;
-       efx_rc_t rc;
-
-       if (emcop != NULL) {
-               if ((rc = emcop->emco_feature_supported(enp,
-                           EFX_MCDI_FEATURE_FW_UPDATE, supportedp)) != 0)
-                       goto fail1;
-       } else {
-               /* Earlier devices always supported updates */
-               *supportedp = B_TRUE;
-       }
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
-       __checkReturn           efx_rc_t
-efx_mcdi_macaddr_change_supported(
-       __in                    efx_nic_t *enp,
-       __out                   boolean_t *supportedp)
-{
-       const efx_mcdi_ops_t *emcop = enp->en_mcdi.em_emcop;
-       efx_rc_t rc;
-
-       if (emcop != NULL) {
-               if ((rc = emcop->emco_feature_supported(enp,
-                           EFX_MCDI_FEATURE_MACADDR_CHANGE, supportedp)) != 0)
-                       goto fail1;
-       } else {
-               /* Earlier devices always supported MAC changes */
-               *supportedp = B_TRUE;
-       }
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
        return (rc);
 }
 
@@ -1974,31 +1906,6 @@ efx_mcdi_link_control_supported(
 
        return (0);
 
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
-       __checkReturn           efx_rc_t
-efx_mcdi_mac_spoofing_supported(
-       __in                    efx_nic_t *enp,
-       __out                   boolean_t *supportedp)
-{
-       const efx_mcdi_ops_t *emcop = enp->en_mcdi.em_emcop;
-       efx_rc_t rc;
-
-       if (emcop != NULL) {
-               if ((rc = emcop->emco_feature_supported(enp,
-                           EFX_MCDI_FEATURE_MAC_SPOOFING, supportedp)) != 0)
-                       goto fail1;
-       } else {
-               /* Earlier devices always supported MAC spoofing */
-               *supportedp = B_TRUE;
-       }
-
-       return (0);
-
 fail1:
        EFSYS_PROBE1(fail1, efx_rc_t, rc);
 
@@ -2612,220 +2519,6 @@ efx_mcdi_get_workarounds(
 #define        EFX_SFF_TRANSCEIVER_ID_QSFP_PLUS        0x0d /* QSFP+ or later 
*/
 #define        EFX_SFF_TRANSCEIVER_ID_QSFP28           0x11 /* QSFP28 or later 
*/
 
-static __checkReturn           efx_rc_t
-efx_mcdi_get_phy_media_info(
-       __in                    efx_nic_t *enp,
-       __in                    uint32_t mcdi_page,
-       __in                    uint8_t offset,
-       __in                    uint8_t len,
-       __out_bcount(len)       uint8_t *data)
-{
-       efx_mcdi_req_t req;
-       EFX_MCDI_DECLARE_BUF(payload, MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN,
-               MC_CMD_GET_PHY_MEDIA_INFO_OUT_LEN(
-                       EFX_PHY_MEDIA_INFO_PAGE_SIZE));
-       efx_rc_t rc;
-
-       EFSYS_ASSERT((uint32_t)offset + len <= EFX_PHY_MEDIA_INFO_PAGE_SIZE);
-
-       req.emr_cmd = MC_CMD_GET_PHY_MEDIA_INFO;
-       req.emr_in_buf = payload;
-       req.emr_in_length = MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN;
-       req.emr_out_buf = payload;
-       req.emr_out_length =
-           MC_CMD_GET_PHY_MEDIA_INFO_OUT_LEN(EFX_PHY_MEDIA_INFO_PAGE_SIZE);
-
-       MCDI_IN_SET_DWORD(req, GET_PHY_MEDIA_INFO_IN_PAGE, mcdi_page);
-
-       efx_mcdi_execute(enp, &req);
-
-       if (req.emr_rc != 0) {
-               rc = req.emr_rc;
-               goto fail1;
-       }
-
-       if (req.emr_out_length_used !=
-           MC_CMD_GET_PHY_MEDIA_INFO_OUT_LEN(EFX_PHY_MEDIA_INFO_PAGE_SIZE)) {
-               rc = EMSGSIZE;
-               goto fail2;
-       }
-
-       if (MCDI_OUT_DWORD(req, GET_PHY_MEDIA_INFO_OUT_DATALEN) !=
-           EFX_PHY_MEDIA_INFO_PAGE_SIZE) {
-               rc = EIO;
-               goto fail3;
-       }
-
-       memcpy(data,
-           MCDI_OUT2(req, uint8_t, GET_PHY_MEDIA_INFO_OUT_DATA) + offset,
-           len);
-
-       return (0);
-
-fail3:
-       EFSYS_PROBE(fail3);
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
-       __checkReturn           efx_rc_t
-efx_mcdi_phy_module_get_info(
-       __in                    efx_nic_t *enp,
-       __in                    uint8_t dev_addr,
-       __in                    size_t offset,
-       __in                    size_t len,
-       __out_bcount(len)       uint8_t *data)
-{
-       efx_port_t *epp = &(enp->en_port);
-       efx_rc_t rc;
-       uint32_t mcdi_lower_page;
-       uint32_t mcdi_upper_page;
-       uint8_t id;
-
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
-
-       /*
-        * Map device address to MC_CMD_GET_PHY_MEDIA_INFO pages.
-        * Offset plus length interface allows accessing page 0 only.
-        * I.e. non-zero upper pages are not accessible.
-        * See SFF-8472 section 4 Memory Organization and SFF-8436 section 7.6
-        * QSFP+ Memory Map for details on how information is structured
-        * and accessible.
-        */
-       switch (epp->ep_fixed_port_type) {
-       case EFX_PHY_MEDIA_SFP_PLUS:
-       case EFX_PHY_MEDIA_QSFP_PLUS:
-               /* Port type supports modules */
-               break;
-       default:
-               rc = ENOTSUP;
-               goto fail1;
-       }
-
-       /*
-        * For all supported port types, MCDI page 0 offset 0 holds the
-        * transceiver identifier. Probe to determine the data layout.
-        * Definitions from SFF-8024 Table 4-1.
-        */
-       rc = efx_mcdi_get_phy_media_info(enp,
-                   0, 0, sizeof(id), &id);
-       if (rc != 0)
-               goto fail2;
-
-       switch (id) {
-       case EFX_SFF_TRANSCEIVER_ID_SFP:
-               /*
-                * In accordance with SFF-8472 Diagnostic Monitoring
-                * Interface for Optical Transceivers section 4 Memory
-                * Organization two 2-wire addresses are defined.
-                */
-               switch (dev_addr) {
-               /* Base information */
-               case EFX_PHY_MEDIA_INFO_DEV_ADDR_SFP_BASE:
-                       /*
-                        * MCDI page 0 should be used to access lower
-                        * page 0 (0x00 - 0x7f) at the device address 0xA0.
-                        */
-                       mcdi_lower_page = 0;
-                       /*
-                        * MCDI page 1 should be used to access  upper
-                        * page 0 (0x80 - 0xff) at the device address 0xA0.
-                        */
-                       mcdi_upper_page = 1;
-                       break;
-               /* Diagnostics */
-               case EFX_PHY_MEDIA_INFO_DEV_ADDR_SFP_DDM:
-                       /*
-                        * MCDI page 2 should be used to access lower
-                        * page 0 (0x00 - 0x7f) at the device address 0xA2.
-                        */
-                       mcdi_lower_page = 2;
-                       /*
-                        * MCDI page 3 should be used to access upper
-                        * page 0 (0x80 - 0xff) at the device address 0xA2.
-                        */
-                       mcdi_upper_page = 3;
-                       break;
-               default:
-                       rc = ENOTSUP;
-                       goto fail3;
-               }
-               break;
-       case EFX_SFF_TRANSCEIVER_ID_QSFP:
-       case EFX_SFF_TRANSCEIVER_ID_QSFP_PLUS:
-       case EFX_SFF_TRANSCEIVER_ID_QSFP28:
-               switch (dev_addr) {
-               case EFX_PHY_MEDIA_INFO_DEV_ADDR_QSFP:
-                       /*
-                        * MCDI page -1 should be used to access lower page 0
-                        * (0x00 - 0x7f).
-                        */
-                       mcdi_lower_page = (uint32_t)-1;
-                       /*
-                        * MCDI page 0 should be used to access upper page 0
-                        * (0x80h - 0xff).
-                        */
-                       mcdi_upper_page = 0;
-                       break;
-               default:
-                       rc = ENOTSUP;
-                       goto fail3;
-               }
-               break;
-       default:
-               rc = ENOTSUP;
-               goto fail3;
-       }
-
-       EFX_STATIC_ASSERT(EFX_PHY_MEDIA_INFO_PAGE_SIZE <= 0xFF);
-
-       if (offset < EFX_PHY_MEDIA_INFO_PAGE_SIZE) {
-               size_t read_len =
-                   MIN(len, EFX_PHY_MEDIA_INFO_PAGE_SIZE - offset);
-
-               rc = efx_mcdi_get_phy_media_info(enp,
-                   mcdi_lower_page, (uint8_t)offset, (uint8_t)read_len, data);
-               if (rc != 0)
-                       goto fail4;
-
-               data += read_len;
-               len -= read_len;
-
-               offset = 0;
-       } else {
-               offset -= EFX_PHY_MEDIA_INFO_PAGE_SIZE;
-       }
-
-       if (len > 0) {
-               EFSYS_ASSERT3U(len, <=, EFX_PHY_MEDIA_INFO_PAGE_SIZE);
-               EFSYS_ASSERT3U(offset, <, EFX_PHY_MEDIA_INFO_PAGE_SIZE);
-
-               rc = efx_mcdi_get_phy_media_info(enp,
-                   mcdi_upper_page, (uint8_t)offset, (uint8_t)len, data);
-               if (rc != 0)
-                       goto fail5;
-       }
-
-       return (0);
-
-fail5:
-       EFSYS_PROBE(fail5);
-fail4:
-       EFSYS_PROBE(fail4);
-fail3:
-       EFSYS_PROBE(fail3);
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
 #if EFSYS_OPT_RIVERHEAD || EFX_OPTS_EF10()
 
 #define        INIT_EVQ_MAXNBUFS       MC_CMD_INIT_EVQ_V2_IN_DMA_ADDR_MAXNUM
diff --git a/drivers/common/sfc_efx/base/efx_mcdi.h 
b/drivers/common/sfc_efx/base/efx_mcdi.h
index 3d4638f0c6..79a2aece3b 100644
--- a/drivers/common/sfc_efx/base/efx_mcdi.h
+++ b/drivers/common/sfc_efx/base/efx_mcdi.h
@@ -200,30 +200,12 @@ extern    __checkReturn           efx_rc_t
 efx_mcdi_get_phy_cfg(
        __in                    efx_nic_t *enp);
 
-LIBEFX_INTERNAL
-extern __checkReturn           efx_rc_t
-efx_mcdi_firmware_update_supported(
-       __in                    efx_nic_t *enp,
-       __out                   boolean_t *supportedp);
-
-LIBEFX_INTERNAL
-extern __checkReturn           efx_rc_t
-efx_mcdi_macaddr_change_supported(
-       __in                    efx_nic_t *enp,
-       __out                   boolean_t *supportedp);
-
 LIBEFX_INTERNAL
 extern __checkReturn           efx_rc_t
 efx_mcdi_link_control_supported(
        __in                    efx_nic_t *enp,
        __out                   boolean_t *supportedp);
 
-LIBEFX_INTERNAL
-extern __checkReturn           efx_rc_t
-efx_mcdi_mac_spoofing_supported(
-       __in                    efx_nic_t *enp,
-       __out                   boolean_t *supportedp);
-
 
 #if EFSYS_OPT_BIST
 #if EFX_OPTS_EF10()
@@ -279,15 +261,6 @@ efx_mcdi_get_loopback_modes(
        __in            efx_nic_t *enp);
 #endif /* EFSYS_OPT_LOOPBACK */
 
-LIBEFX_INTERNAL
-extern __checkReturn   efx_rc_t
-efx_mcdi_phy_module_get_info(
-       __in                    efx_nic_t *enp,
-       __in                    uint8_t dev_addr,
-       __in                    size_t offset,
-       __in                    size_t len,
-       __out_bcount(len)       uint8_t *data);
-
 LIBEFX_INTERNAL
 extern __checkReturn   efx_rc_t
 efx_mcdi_get_nic_addr_info(
diff --git a/drivers/common/sfc_efx/base/efx_mon.c 
b/drivers/common/sfc_efx/base/efx_mon.c
index ee449ef5eb..13052f41c4 100644
--- a/drivers/common/sfc_efx/base/efx_mon.c
+++ b/drivers/common/sfc_efx/base/efx_mon.c
@@ -20,19 +20,6 @@ static const char * const __efx_mon_name[] = {
        "sfx92x0"
 };
 
-               const char *
-efx_mon_name(
-       __in    efx_nic_t *enp)
-{
-       efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-
-       EFSYS_ASSERT(encp->enc_mon_type != EFX_MON_INVALID);
-       EFSYS_ASSERT3U(encp->enc_mon_type, <, EFX_MON_NTYPES);
-       return (__efx_mon_name[encp->enc_mon_type]);
-}
-
 #endif /* EFSYS_OPT_NAMES */
 
 #if EFSYS_OPT_MON_MCDI
@@ -45,57 +32,6 @@ static const efx_mon_ops_t   __efx_mon_mcdi_ops = {
 #endif
 
 
-       __checkReturn   efx_rc_t
-efx_mon_init(
-       __in            efx_nic_t *enp)
-{
-       efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
-       efx_mon_t *emp = &(enp->en_mon);
-       const efx_mon_ops_t *emop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
-
-       if (enp->en_mod_flags & EFX_MOD_MON) {
-               rc = EINVAL;
-               goto fail1;
-       }
-
-       enp->en_mod_flags |= EFX_MOD_MON;
-
-       emp->em_type = encp->enc_mon_type;
-
-       EFSYS_ASSERT(encp->enc_mon_type != EFX_MON_INVALID);
-       switch (emp->em_type) {
-#if EFSYS_OPT_MON_MCDI
-       case EFX_MON_SFC90X0:
-       case EFX_MON_SFC91X0:
-       case EFX_MON_SFC92X0:
-               emop = &__efx_mon_mcdi_ops;
-               break;
-#endif
-       default:
-               rc = ENOTSUP;
-               goto fail2;
-       }
-
-       emp->em_emop = emop;
-       return (0);
-
-fail2:
-       EFSYS_PROBE(fail2);
-
-       emp->em_type = EFX_MON_INVALID;
-
-       enp->en_mod_flags &= ~EFX_MOD_MON;
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
 #if EFSYS_OPT_MON_STATS
 
 #if EFSYS_OPT_NAMES
@@ -831,20 +767,3 @@ efx_mon_limits_update(
 }
 
 #endif /* EFSYS_OPT_MON_STATS */
-
-               void
-efx_mon_fini(
-       __in    efx_nic_t *enp)
-{
-       efx_mon_t *emp = &(enp->en_mon);
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_MON);
-
-       emp->em_emop = NULL;
-
-       emp->em_type = EFX_MON_INVALID;
-
-       enp->en_mod_flags &= ~EFX_MOD_MON;
-}
diff --git a/drivers/common/sfc_efx/base/efx_nic.c 
b/drivers/common/sfc_efx/base/efx_nic.c
index ab2bb1c160..f21c59fb00 100644
--- a/drivers/common/sfc_efx/base/efx_nic.c
+++ b/drivers/common/sfc_efx/base/efx_nic.c
@@ -541,74 +541,6 @@ efx_nic_set_drv_limits(
        return (rc);
 }
 
-       __checkReturn   efx_rc_t
-efx_nic_set_drv_version(
-       __inout                 efx_nic_t *enp,
-       __in_ecount(length)     char const *verp,
-       __in                    size_t length)
-{
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT(!(enp->en_mod_flags & EFX_MOD_PROBE));
-
-       /*
-        * length is the string content length in bytes.
-        * Accept any content which fits into the version
-        * buffer, excluding the last byte. This is reserved
-        * for an appended NUL terminator.
-        */
-       if (length >= sizeof (enp->en_drv_version)) {
-               rc = E2BIG;
-               goto fail1;
-       }
-
-       (void) memset(enp->en_drv_version, 0,
-           sizeof (enp->en_drv_version));
-       memcpy(enp->en_drv_version, verp, length);
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
-
-       __checkReturn   efx_rc_t
-efx_nic_get_bar_region(
-       __in            efx_nic_t *enp,
-       __in            efx_nic_region_t region,
-       __out           uint32_t *offsetp,
-       __out           size_t *sizep)
-{
-       const efx_nic_ops_t *enop = enp->en_enop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
-
-       if (enop->eno_get_bar_region == NULL) {
-               rc = ENOTSUP;
-               goto fail1;
-       }
-       if ((rc = (enop->eno_get_bar_region)(enp,
-                   region, offsetp, sizep)) != 0) {
-               goto fail2;
-       }
-
-       return (0);
-
-fail2:
-       EFSYS_PROBE(fail2);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
 
 
        __checkReturn   efx_rc_t
@@ -927,18 +859,6 @@ efx_nic_hw_unavailable(
        return (B_TRUE);
 }
 
-                       void
-efx_nic_set_hw_unavailable(
-       __in            efx_nic_t *enp)
-{
-       const efx_nic_ops_t *enop = enp->en_enop;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-
-       if (enop->eno_set_hw_unavailable != NULL)
-               enop->eno_set_hw_unavailable(enp);
-}
-
 
 #if EFSYS_OPT_DIAG
 
@@ -1311,56 +1231,6 @@ efx_nic_set_fw_subvariant(
 
 #endif /* EFSYS_OPT_FW_SUBVARIANT_AWARE */
 
-       __checkReturn   efx_rc_t
-efx_nic_check_pcie_link_speed(
-       __in            efx_nic_t *enp,
-       __in            uint32_t pcie_link_width,
-       __in            uint32_t pcie_link_gen,
-       __out           efx_pcie_link_performance_t *resultp)
-{
-       efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
-       uint32_t bandwidth;
-       efx_pcie_link_performance_t result;
-       efx_rc_t rc;
-
-       if ((encp->enc_required_pcie_bandwidth_mbps == 0) ||
-           (pcie_link_width == 0) || (pcie_link_width == 32) ||
-           (pcie_link_gen == 0)) {
-               /*
-                * No usable info on what is required and/or in use. In virtual
-                * machines, sometimes the PCIe link width is reported as 0 or
-                * 32, or the speed as 0.
-                */
-               result = EFX_PCIE_LINK_PERFORMANCE_UNKNOWN_BANDWIDTH;
-               goto out;
-       }
-
-       /* Calculate the available bandwidth in megabits per second */
-       rc = efx_nic_calculate_pcie_link_bandwidth(pcie_link_width,
-                                           pcie_link_gen, &bandwidth);
-       if (rc != 0)
-               goto fail1;
-
-       if (bandwidth < encp->enc_required_pcie_bandwidth_mbps) {
-               result = EFX_PCIE_LINK_PERFORMANCE_SUBOPTIMAL_BANDWIDTH;
-       } else if (pcie_link_gen < encp->enc_max_pcie_link_gen) {
-               /* The link provides enough bandwidth but not optimal latency */
-               result = EFX_PCIE_LINK_PERFORMANCE_SUBOPTIMAL_LATENCY;
-       } else {
-               result = EFX_PCIE_LINK_PERFORMANCE_OPTIMAL;
-       }
-
-out:
-       *resultp = result;
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
 /* Required en_eslp lock held */
 static __checkReturn   efx_rc_t
 efx_nic_dma_config_regioned_find_region(
diff --git a/drivers/common/sfc_efx/base/efx_phy.c 
b/drivers/common/sfc_efx/base/efx_phy.c
index ff90291dd3..9abe5d65b3 100644
--- a/drivers/common/sfc_efx/base/efx_phy.c
+++ b/drivers/common/sfc_efx/base/efx_phy.c
@@ -161,19 +161,6 @@ efx_phy_probe(
        return (rc);
 }
 
-       __checkReturn   efx_rc_t
-efx_phy_verify(
-       __in            efx_nic_t *enp)
-{
-       efx_port_t *epp = &(enp->en_port);
-       const efx_phy_ops_t *epop = epp->ep_epop;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
-
-       return (epop->epo_verify(enp));
-}
-
 #if EFSYS_OPT_PHY_LED_CONTROL
 
        __checkReturn   efx_rc_t
@@ -309,19 +296,6 @@ efx_phy_adv_cap_set(
        return (rc);
 }
 
-       void
-efx_phy_lp_cap_get(
-       __in            efx_nic_t *enp,
-       __out           uint32_t *maskp)
-{
-       efx_port_t *epp = &(enp->en_port);
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
-
-       *maskp = epp->ep_lp_cap_mask;
-}
-
        __checkReturn   efx_rc_t
 efx_phy_lane_count_set(
        __in            efx_nic_t *enp,
@@ -369,69 +343,6 @@ efx_phy_lane_count_set(
        return (rc);
 }
 
-       __checkReturn   efx_rc_t
-efx_phy_oui_get(
-       __in            efx_nic_t *enp,
-       __out           uint32_t *ouip)
-{
-       efx_port_t *epp = &(enp->en_port);
-       const efx_phy_ops_t *epop = epp->ep_epop;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
-
-       return (epop->epo_oui_get(enp, ouip));
-}
-
-                       void
-efx_phy_media_type_get(
-       __in            efx_nic_t *enp,
-       __out           efx_phy_media_type_t *typep)
-{
-       efx_port_t *epp = &(enp->en_port);
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
-
-       if (epp->ep_module_type != EFX_PHY_MEDIA_INVALID)
-               *typep = epp->ep_module_type;
-       else
-               *typep = epp->ep_fixed_port_type;
-}
-
-       __checkReturn           efx_rc_t
-efx_phy_module_get_info(
-       __in                    efx_nic_t *enp,
-       __in                    uint8_t dev_addr,
-       __in                    size_t offset,
-       __in                    size_t len,
-       __out_bcount(len)       uint8_t *data)
-{
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT(data != NULL);
-
-       if ((offset > EFX_PHY_MEDIA_INFO_MAX_OFFSET) ||
-           ((offset + len) > EFX_PHY_MEDIA_INFO_MAX_OFFSET)) {
-               rc = EINVAL;
-               goto fail1;
-       }
-
-       if ((rc = efx_mcdi_phy_module_get_info(enp, dev_addr,
-           offset, len, data)) != 0)
-               goto fail2;
-
-       return (0);
-
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
        __checkReturn           efx_rc_t
 efx_phy_fec_type_get(
        __in            efx_nic_t *enp,
diff --git a/drivers/common/sfc_efx/base/efx_port.c 
b/drivers/common/sfc_efx/base/efx_port.c
index 5ae5e144bd..8061e8b71a 100644
--- a/drivers/common/sfc_efx/base/efx_port.c
+++ b/drivers/common/sfc_efx/base/efx_port.c
@@ -187,21 +187,6 @@ static const char * const __efx_loopback_type_name[] = {
        "FORCE_EXT_LINK",
 };
 
-       __checkReturn   const char *
-efx_loopback_type_name(
-       __in            efx_nic_t *enp,
-       __in            efx_loopback_type_t type)
-{
-       EFX_STATIC_ASSERT(EFX_ARRAY_SIZE(__efx_loopback_type_name) ==
-           EFX_LOOPBACK_NTYPES);
-
-       _NOTE(ARGUNUSED(enp))
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(type, <, EFX_LOOPBACK_NTYPES);
-
-       return (__efx_loopback_type_name[type]);
-}
-
 #endif /* EFSYS_OPT_NAMES */
 
 #endif /* EFSYS_OPT_LOOPBACK */
diff --git a/drivers/common/sfc_efx/base/efx_rx.c 
b/drivers/common/sfc_efx/base/efx_rx.c
index 86dfc89ba4..e52d0cc317 100644
--- a/drivers/common/sfc_efx/base/efx_rx.c
+++ b/drivers/common/sfc_efx/base/efx_rx.c
@@ -503,41 +503,6 @@ efx_rx_scale_default_support_get(
 #endif /* EFSYS_OPT_RX_SCALE */
 
 #if EFSYS_OPT_RX_SCALE
-       __checkReturn   efx_rc_t
-efx_rx_scale_context_alloc(
-       __in            efx_nic_t *enp,
-       __in            efx_rx_scale_context_type_t type,
-       __in            uint32_t num_queues,
-       __out           uint32_t *rss_contextp)
-{
-       uint32_t table_nentries = EFX_RSS_TBL_SIZE;
-       const efx_rx_ops_t *erxop = enp->en_erxop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_RX);
-
-       if (erxop->erxo_scale_context_alloc == NULL) {
-               rc = ENOTSUP;
-               goto fail1;
-       }
-
-       if (type == EFX_RX_SCALE_EVEN_SPREAD)
-               table_nentries = 0;
-
-       if ((rc = erxop->erxo_scale_context_alloc(enp, type, num_queues,
-                           table_nentries, rss_contextp)) != 0) {
-               goto fail2;
-       }
-
-       return (0);
-
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
 #endif /* EFSYS_OPT_RX_SCALE */
 
 #if EFSYS_OPT_RX_SCALE
diff --git a/drivers/common/sfc_efx/base/efx_sram.c 
b/drivers/common/sfc_efx/base/efx_sram.c
index f46df551d1..eb2fd21d7a 100644
--- a/drivers/common/sfc_efx/base/efx_sram.c
+++ b/drivers/common/sfc_efx/base/efx_sram.c
@@ -7,170 +7,6 @@
 #include "efx.h"
 #include "efx_impl.h"
 
-       __checkReturn   efx_rc_t
-efx_sram_buf_tbl_set(
-       __in            efx_nic_t *enp,
-       __in            uint32_t id,
-       __in            efsys_mem_t *esmp,
-       __in            size_t n)
-{
-       efx_qword_t qword;
-       uint32_t start = id;
-       uint32_t stop = start + n;
-       efsys_dma_addr_t addr;
-       efx_oword_t oword;
-       unsigned int count;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
-
-#if EFX_OPTS_EF10()
-       if (EFX_FAMILY_IS_EF10(enp)) {
-               /*
-                * FIXME: the efx_sram_buf_tbl_*() functionality needs to be
-                * pulled inside the Falcon/Siena queue create/destroy code,
-                * and then the original functions can be removed (see bug30834
-                * comment #1).  But, for now, we just ensure that they are
-                * no-ops for EF10, to allow bringing up existing drivers
-                * without modification.
-                */
-
-               return (0);
-       }
-#endif /* EFX_OPTS_EF10() */
-
-       if (stop >= EFX_BUF_TBL_SIZE) {
-               rc = EFBIG;
-               goto fail1;
-       }
-
-       /* Add the entries into the buffer table */
-       addr = EFSYS_MEM_ADDR(esmp);
-       for (id = start; id != stop; id++) {
-               EFX_POPULATE_QWORD_5(qword,
-                   FRF_AZ_IP_DAT_BUF_SIZE, 0, FRF_AZ_BUF_ADR_REGION, 0,
-                   FRF_AZ_BUF_ADR_FBUF_DW0,
-                   (uint32_t)((addr >> 12) & 0xffffffff),
-                   FRF_AZ_BUF_ADR_FBUF_DW1,
-                   (uint32_t)((addr >> 12) >> 32),
-                   FRF_AZ_BUF_OWNER_ID_FBUF, 0);
-
-               EFX_BAR_TBL_WRITEQ(enp, FR_AZ_BUF_FULL_TBL,
-                                   id, &qword);
-
-               addr += EFX_BUF_SIZE;
-       }
-
-       EFSYS_PROBE2(buf, uint32_t, start, uint32_t, stop - 1);
-
-       /* Flush the write buffer */
-       EFX_POPULATE_OWORD_2(oword, FRF_AZ_BUF_UPD_CMD, 1,
-           FRF_AZ_BUF_CLR_CMD, 0);
-       EFX_BAR_WRITEO(enp, FR_AZ_BUF_TBL_UPD_REG, &oword);
-
-       /* Poll for the last entry being written to the buffer table */
-       EFSYS_ASSERT3U(id, ==, stop);
-       addr -= EFX_BUF_SIZE;
-
-       count = 0;
-       do {
-               EFSYS_PROBE1(wait, unsigned int, count);
-
-               /* Spin for 1 ms */
-               EFSYS_SPIN(1000);
-
-               EFX_BAR_TBL_READQ(enp, FR_AZ_BUF_FULL_TBL,
-                                   id - 1, &qword);
-
-               if (EFX_QWORD_FIELD(qword, FRF_AZ_BUF_ADR_FBUF_DW0) ==
-                   (uint32_t)((addr >> 12) & 0xffffffff) &&
-                   EFX_QWORD_FIELD(qword, FRF_AZ_BUF_ADR_FBUF_DW1) ==
-                   (uint32_t)((addr >> 12) >> 32))
-                       goto verify;
-
-       } while (++count < 100);
-
-       rc = ETIMEDOUT;
-       goto fail2;
-
-verify:
-       /* Verify the rest of the entries in the buffer table */
-       while (--id != start) {
-               addr -= EFX_BUF_SIZE;
-
-               /* Read the buffer table entry */
-               EFX_BAR_TBL_READQ(enp, FR_AZ_BUF_FULL_TBL,
-                                   id - 1, &qword);
-
-               if (EFX_QWORD_FIELD(qword, FRF_AZ_BUF_ADR_FBUF_DW0) !=
-                   (uint32_t)((addr >> 12) & 0xffffffff) ||
-                   EFX_QWORD_FIELD(qword, FRF_AZ_BUF_ADR_FBUF_DW1) !=
-                   (uint32_t)((addr >> 12) >> 32)) {
-                       rc = EFAULT;
-                       goto fail3;
-               }
-       }
-
-       return (0);
-
-fail3:
-       EFSYS_PROBE(fail3);
-
-       id = stop;
-
-fail2:
-       EFSYS_PROBE(fail2);
-
-       EFX_POPULATE_OWORD_4(oword, FRF_AZ_BUF_UPD_CMD, 0,
-           FRF_AZ_BUF_CLR_CMD, 1, FRF_AZ_BUF_CLR_END_ID, id - 1,
-           FRF_AZ_BUF_CLR_START_ID, start);
-       EFX_BAR_WRITEO(enp, FR_AZ_BUF_TBL_UPD_REG, &oword);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
-               void
-efx_sram_buf_tbl_clear(
-       __in    efx_nic_t *enp,
-       __in    uint32_t id,
-       __in    size_t n)
-{
-       efx_oword_t oword;
-       uint32_t start = id;
-       uint32_t stop = start + n;
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
-
-#if EFX_OPTS_EF10()
-       if (EFX_FAMILY_IS_EF10(enp)) {
-               /*
-                * FIXME: the efx_sram_buf_tbl_*() functionality needs to be
-                * pulled inside the Falcon/Siena queue create/destroy code,
-                * and then the original functions can be removed (see bug30834
-                * comment #1).  But, for now, we just ensure that they are
-                * no-ops for EF10, to allow bringing up existing drivers
-                * without modification.
-                */
-
-               return;
-       }
-#endif /* EFX_OPTS_EF10() */
-
-       EFSYS_ASSERT3U(stop, <, EFX_BUF_TBL_SIZE);
-
-       EFSYS_PROBE2(buf, uint32_t, start, uint32_t, stop - 1);
-
-       EFX_POPULATE_OWORD_4(oword, FRF_AZ_BUF_UPD_CMD, 0,
-           FRF_AZ_BUF_CLR_CMD, 1, FRF_AZ_BUF_CLR_END_ID, stop - 1,
-           FRF_AZ_BUF_CLR_START_ID, start);
-       EFX_BAR_WRITEO(enp, FR_AZ_BUF_TBL_UPD_REG, &oword);
-}
-
 
 #if EFSYS_OPT_DIAG
 
diff --git a/drivers/common/sfc_efx/base/efx_tx.c 
b/drivers/common/sfc_efx/base/efx_tx.c
index d1021dea82..59d359383f 100644
--- a/drivers/common/sfc_efx/base/efx_tx.c
+++ b/drivers/common/sfc_efx/base/efx_tx.c
@@ -469,30 +469,6 @@ efx_tx_qdestroy(
        EFSYS_KMEM_FREE(enp->en_esip, sizeof (efx_txq_t), etp);
 }
 
-       __checkReturn           efx_rc_t
-efx_tx_qpost(
-       __in                    efx_txq_t *etp,
-       __in_ecount(ndescs)     efx_buffer_t *eb,
-       __in                    unsigned int ndescs,
-       __in                    unsigned int completed,
-       __inout                 unsigned int *addedp)
-{
-       efx_nic_t *enp = etp->et_enp;
-       const efx_tx_ops_t *etxop = enp->en_etxop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(etp->et_magic, ==, EFX_TXQ_MAGIC);
-
-       if ((rc = etxop->etxo_qpost(etp, eb, ndescs, completed, addedp)) != 0)
-               goto fail1;
-
-       return (0);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
                        void
 efx_tx_qpush(
        __in    efx_txq_t *etp,
@@ -560,105 +536,6 @@ efx_tx_qenable(
        etxop->etxo_qenable(etp);
 }
 
-       __checkReturn   efx_rc_t
-efx_tx_qpio_enable(
-       __in    efx_txq_t *etp)
-{
-       efx_nic_t *enp = etp->et_enp;
-       const efx_tx_ops_t *etxop = enp->en_etxop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(etp->et_magic, ==, EFX_TXQ_MAGIC);
-
-       if (~enp->en_features & EFX_FEATURE_PIO_BUFFERS) {
-               rc = ENOTSUP;
-               goto fail1;
-       }
-       if (etxop->etxo_qpio_enable == NULL) {
-               rc = ENOTSUP;
-               goto fail2;
-       }
-       if ((rc = etxop->etxo_qpio_enable(etp)) != 0)
-               goto fail3;
-
-       return (0);
-
-fail3:
-       EFSYS_PROBE(fail3);
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
-               void
-efx_tx_qpio_disable(
-       __in    efx_txq_t *etp)
-{
-       efx_nic_t *enp = etp->et_enp;
-       const efx_tx_ops_t *etxop = enp->en_etxop;
-
-       EFSYS_ASSERT3U(etp->et_magic, ==, EFX_TXQ_MAGIC);
-
-       if (etxop->etxo_qpio_disable != NULL)
-               etxop->etxo_qpio_disable(etp);
-}
-
-       __checkReturn   efx_rc_t
-efx_tx_qpio_write(
-       __in                    efx_txq_t *etp,
-       __in_ecount(buf_length) uint8_t *buffer,
-       __in                    size_t buf_length,
-       __in                    size_t pio_buf_offset)
-{
-       efx_nic_t *enp = etp->et_enp;
-       const efx_tx_ops_t *etxop = enp->en_etxop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(etp->et_magic, ==, EFX_TXQ_MAGIC);
-
-       if (etxop->etxo_qpio_write != NULL) {
-               if ((rc = etxop->etxo_qpio_write(etp, buffer, buf_length,
-                                               pio_buf_offset)) != 0)
-                       goto fail1;
-               return (0);
-       }
-
-       return (ENOTSUP);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
-       __checkReturn   efx_rc_t
-efx_tx_qpio_post(
-       __in                    efx_txq_t *etp,
-       __in                    size_t pkt_length,
-       __in                    unsigned int completed,
-       __inout                 unsigned int *addedp)
-{
-       efx_nic_t *enp = etp->et_enp;
-       const efx_tx_ops_t *etxop = enp->en_etxop;
-       efx_rc_t rc;
-
-       EFSYS_ASSERT3U(etp->et_magic, ==, EFX_TXQ_MAGIC);
-
-       if (etxop->etxo_qpio_post != NULL) {
-               if ((rc = etxop->etxo_qpio_post(etp, pkt_length, completed,
-                                               addedp)) != 0)
-                       goto fail1;
-               return (0);
-       }
-
-       return (ENOTSUP);
-
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-       return (rc);
-}
-
        __checkReturn           efx_rc_t
 efx_tx_qdesc_post(
        __in                    efx_txq_t *etp,
@@ -692,23 +569,6 @@ efx_tx_qdesc_dma_create(
        etxop->etxo_qdesc_dma_create(etp, addr, size, eop, edp);
 }
 
-       void
-efx_tx_qdesc_tso_create(
-       __in    efx_txq_t *etp,
-       __in    uint16_t ipv4_id,
-       __in    uint32_t tcp_seq,
-       __in    uint8_t  tcp_flags,
-       __out   efx_desc_t *edp)
-{
-       efx_nic_t *enp = etp->et_enp;
-       const efx_tx_ops_t *etxop = enp->en_etxop;
-
-       EFSYS_ASSERT3U(etp->et_magic, ==, EFX_TXQ_MAGIC);
-       EFSYS_ASSERT(etxop->etxo_qdesc_tso_create != NULL);
-
-       etxop->etxo_qdesc_tso_create(etp, ipv4_id, tcp_seq, tcp_flags, edp);
-}
-
        void
 efx_tx_qdesc_tso2_create(
        __in                    efx_txq_t *etp,
@@ -744,21 +604,6 @@ efx_tx_qdesc_vlantci_create(
        etxop->etxo_qdesc_vlantci_create(etp, tci, edp);
 }
 
-       void
-efx_tx_qdesc_checksum_create(
-       __in    efx_txq_t *etp,
-       __in    uint16_t flags,
-       __out   efx_desc_t *edp)
-{
-       efx_nic_t *enp = etp->et_enp;
-       const efx_tx_ops_t *etxop = enp->en_etxop;
-
-       EFSYS_ASSERT3U(etp->et_magic, ==, EFX_TXQ_MAGIC);
-       EFSYS_ASSERT(etxop->etxo_qdesc_checksum_create != NULL);
-
-       etxop->etxo_qdesc_checksum_create(etp, flags, edp);
-}
-
 
 #if EFSYS_OPT_QSTATS
                        void
diff --git a/drivers/common/sfc_efx/base/efx_virtio.c 
b/drivers/common/sfc_efx/base/efx_virtio.c
index b9c351d732..a33286cec6 100644
--- a/drivers/common/sfc_efx/base/efx_virtio.c
+++ b/drivers/common/sfc_efx/base/efx_virtio.c
@@ -300,41 +300,4 @@ efx_virtio_get_features(
        return (rc);
 }
 
-       __checkReturn   efx_rc_t
-efx_virtio_verify_features(
-       __in            efx_nic_t *enp,
-       __in            efx_virtio_device_type_t type,
-       __in            uint64_t features)
-{
-       const efx_virtio_ops_t *evop = enp->en_evop;
-       efx_rc_t rc;
-
-       if (type >= EFX_VIRTIO_DEVICE_NTYPES) {
-               rc = EINVAL;
-               goto fail1;
-       }
-
-       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
-       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_VIRTIO);
-
-       if (evop == NULL) {
-               rc = ENOTSUP;
-               goto fail2;
-       }
-
-       if ((rc = evop->evo_verify_features(enp, type, features)) != 0)
-               goto fail3;
-
-       return (0);
-
-fail3:
-       EFSYS_PROBE(fail3);
-fail2:
-       EFSYS_PROBE(fail2);
-fail1:
-       EFSYS_PROBE1(fail1, efx_rc_t, rc);
-
-       return (rc);
-}
-
 #endif /* EFSYS_OPT_VIRTIO */
-- 
2.53.0

Reply via email to