Home
last modified time | relevance | path

Searched refs:if_ctx_t (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/sys/net/
H A Difdi_if.m48 null_void_op(if_ctx_t _ctx __unused)
53 null_timer_op(if_ctx_t _ctx __unused, uint16_t _qsidx __unused)
58 null_int_op(if_ctx_t _ctx __unused)
64 null_queue_intr_enable(if_ctx_t _ctx __unused, uint16_t _qid __unused)
70 null_led_func(if_ctx_t _ctx __unused, int _onoff __unused)
75 null_vlan_register_op(if_ctx_t _ctx __unused, uint16_t vtag __unused)
80 null_q_setup(if_ctx_t _ctx __unused, uint32_t _qid __unused)
86 null_i2c_req(if_ctx_t _sctx __unused, struct ifi2creq *_i2c __unused)
92 null_sysctl_int_delay(if_ctx_t _sctx __unused, if_int_delay_info_t _iidi __unused)
98 null_iov_init(if_ctx_t _ctx __unused, uint16_t num_vfs __unused, const nvlist_t *params __unused)
[all …]
H A Diflib.h46 typedef struct iflib_ctx *if_ctx_t; typedef
140 if_ctx_t iidi_ctx; /* Back-pointer to the iflib ctx (softc) */
414 void *iflib_get_softc(if_ctx_t ctx);
416 device_t iflib_get_dev(if_ctx_t ctx);
418 if_t iflib_get_ifp(if_ctx_t ctx);
420 struct ifmedia *iflib_get_media(if_ctx_t ctx);
422 if_softc_ctx_t iflib_get_softc_ctx(if_ctx_t ctx);
423 if_shared_ctx_t iflib_get_sctx(if_ctx_t ctx);
425 void iflib_set_mac(if_ctx_t ctx, uint8_t mac[ETHER_ADDR_LEN]);
426 void iflib_request_reset(if_ctx_t ctx);
[all …]
H A Diflib.c143 static void iflib_tqg_detach(if_ctx_t ctx);
220 iflib_get_softc(if_ctx_t ctx) in iflib_get_softc()
227 iflib_get_dev(if_ctx_t ctx) in iflib_get_dev()
234 iflib_get_ifp(if_ctx_t ctx) in iflib_get_ifp()
241 iflib_get_media(if_ctx_t ctx) in iflib_get_media()
248 iflib_set_mac(if_ctx_t ctx, uint8_t mac[ETHER_ADDR_LEN]) in iflib_set_mac()
255 iflib_get_softc_ctx(if_ctx_t ctx) in iflib_get_softc_ctx()
262 iflib_get_sctx(if_ctx_t ctx) in iflib_get_sctx()
269 iflib_get_extra_msix_vectors_sysctl(if_ctx_t ctx) in iflib_get_extra_msix_vectors_sysctl()
364 if_ctx_t ift_ctx;
[all …]
/freebsd/sys/dev/iavf/
H A Dif_iavf_iflib.c51 static int iavf_if_attach_pre(if_ctx_t ctx);
52 static int iavf_if_attach_post(if_ctx_t ctx);
53 static int iavf_if_detach(if_ctx_t ctx);
54 static int iavf_if_shutdown(if_ctx_t ctx);
55 static int iavf_if_suspend(if_ctx_t ctx);
56 static int iavf_if_resume(if_ctx_t ctx);
57 static int iavf_if_msix_intr_assign(if_ctx_t ctx, int msix);
58 static void iavf_if_enable_intr(if_ctx_t ctx);
59 static void iavf_if_disable_intr(if_ctx_t ctx);
60 static int iavf_if_rx_queue_intr_enable(if_ctx_t ctx, uint16_t rxqid);
[all …]
/freebsd/sys/dev/ixgbe/
H A Dif_ixv.c79 static int ixv_if_attach_pre(if_ctx_t);
80 static int ixv_if_attach_post(if_ctx_t);
81 static int ixv_if_detach(if_ctx_t);
83 static int ixv_if_rx_queue_intr_enable(if_ctx_t, uint16_t);
84 static int ixv_if_tx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int,
86 static int ixv_if_rx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int,
88 static void ixv_if_queues_free(if_ctx_t);
89 static void ixv_identify_hardware(if_ctx_t);
91 static int ixv_allocate_pci_resources(if_ctx_t);
92 static void ixv_free_pci_resources(if_ctx_t);
[all …]
H A Dixgbe_sriov.h69 int ixgbe_if_iov_vf_add(if_ctx_t, u16, const nvlist_t *);
70 int ixgbe_if_iov_init(if_ctx_t, u16, const nvlist_t *);
71 void ixgbe_if_iov_uninit(if_ctx_t);
101 void ixgbe_if_init(if_ctx_t ctx);
H A Dif_ix.c152 static int ixgbe_if_attach_pre(if_ctx_t);
153 static int ixgbe_if_attach_post(if_ctx_t);
154 static int ixgbe_if_detach(if_ctx_t);
155 static int ixgbe_if_shutdown(if_ctx_t);
156 static int ixgbe_if_suspend(if_ctx_t);
157 static int ixgbe_if_resume(if_ctx_t);
159 static void ixgbe_if_stop(if_ctx_t);
160 void ixgbe_if_enable_intr(if_ctx_t);
161 static void ixgbe_if_disable_intr(if_ctx_t);
162 static void ixgbe_link_intr_enable(if_ctx_t);
[all …]
H A Dif_sriov.c585 ixgbe_process_vf_msg(if_ctx_t ctx, struct ixgbe_vf *vf) in ixgbe_process_vf_msg()
645 if_ctx_t ctx = context; in ixgbe_handle_mbx()
673 ixgbe_if_iov_init(if_ctx_t ctx, u16 num_vfs, const nvlist_t *config) in ixgbe_if_iov_init()
731 ixgbe_if_iov_uninit(if_ctx_t ctx) in ixgbe_if_iov_uninit()
865 ixgbe_if_iov_vf_add(if_ctx_t ctx, u16 vfnum, const nvlist_t *config) in ixgbe_if_iov_vf_add()
H A Dif_fdir.c54 if_ctx_t ctx = context; in ixgbe_reinit_fdir()
/freebsd/sys/dev/ixl/
H A Dif_ixl.c98 static int ixl_if_attach_pre(if_ctx_t ctx);
99 static int ixl_if_attach_post(if_ctx_t ctx);
100 static int ixl_if_detach(if_ctx_t ctx);
101 static int ixl_if_shutdown(if_ctx_t ctx);
102 static int ixl_if_suspend(if_ctx_t ctx);
103 static int ixl_if_resume(if_ctx_t ctx);
104 static int ixl_if_msix_intr_assign(if_ctx_t ctx, int msix);
105 static void ixl_if_enable_intr(if_ctx_t ctx);
106 static void ixl_if_disable_intr(if_ctx_t ctx);
107 static int ixl_if_rx_queue_intr_enable(if_ctx_t ctx, uint16_t rxqid);
[all …]
H A Dixl_pf_iov.h49 int ixl_if_iov_init(if_ctx_t ctx, uint16_t num_vfs, const nvlist_t *params);
50 void ixl_if_iov_uninit(if_ctx_t ctx);
51 int ixl_if_iov_vf_add(if_ctx_t ctx, uint16_t vfnum, const nvlist_t *params);
H A Dixl_pf.h425 void ixl_if_init(if_ctx_t ctx);
426 void ixl_if_stop(if_ctx_t ctx);
/freebsd/sys/dev/igc/
H A Dif_igc.c92 static int igc_if_attach_pre(if_ctx_t);
93 static int igc_if_attach_post(if_ctx_t);
94 static int igc_if_detach(if_ctx_t);
95 static int igc_if_shutdown(if_ctx_t);
96 static int igc_if_suspend(if_ctx_t);
97 static int igc_if_resume(if_ctx_t);
99 static int igc_if_tx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int,
101 static int igc_if_rx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int,
103 static void igc_if_queues_free(if_ctx_t);
105 static uint64_t igc_if_get_counter(if_ctx_t, ift_counter);
[all …]
H A Digc_osdep.h74 if_ctx_t ctx;
/freebsd/sys/dev/ice/
H A Dif_ice_iflib.c57 static int ice_if_attach_pre(if_ctx_t);
59 static int ice_if_attach_post(if_ctx_t);
61 static int ice_if_detach(if_ctx_t);
62 static int ice_if_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, int …
63 static int ice_if_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nqs, int nq…
64 static int ice_if_msix_intr_assign(if_ctx_t ctx, int msix);
65 static void ice_if_queues_free(if_ctx_t ctx);
66 static int ice_if_mtu_set(if_ctx_t ctx, uint32_t mtu);
67 static void ice_if_intr_enable(if_ctx_t ctx);
68 static void ice_if_intr_disable(if_ctx_t ctx);
[all …]
H A Dice_iflib.h204 if_ctx_t subctx;
272 if_ctx_t ctx;
/freebsd/sys/dev/enic/
H A Dif_enic.c72 static int enic_attach_pre(if_ctx_t);
73 static int enic_msix_intr_assign(if_ctx_t, int);
75 static int enic_attach_post(if_ctx_t);
76 static int enic_detach(if_ctx_t);
78 static int enic_tx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int, int);
79 static int enic_rx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int, int);
80 static void enic_queues_free(if_ctx_t);
84 static void enic_stop(if_ctx_t);
85 static void enic_init(if_ctx_t);
86 static void enic_multi_set(if_ctx_t);
[all …]
/freebsd/sys/dev/vmware/vmxnet3/
H A Dif_vmx.c88 static int vmxnet3_attach_pre(if_ctx_t);
89 static int vmxnet3_msix_intr_assign(if_ctx_t, int);
91 static int vmxnet3_attach_post(if_ctx_t);
92 static int vmxnet3_detach(if_ctx_t);
93 static int vmxnet3_shutdown(if_ctx_t);
94 static int vmxnet3_suspend(if_ctx_t);
95 static int vmxnet3_resume(if_ctx_t);
104 static int vmxnet3_tx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int, int);
106 static int vmxnet3_rx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int, int);
107 static void vmxnet3_queues_free(if_ctx_t);
[all …]
H A Dif_vmxvar.h112 if_ctx_t vmx_ctx;
/freebsd/sys/dev/axgbe/
H A Dif_axgbe_pci.c74 static int axgbe_if_attach_pre(if_ctx_t);
75 static int axgbe_if_attach_post(if_ctx_t);
76 static int axgbe_if_detach(if_ctx_t);
77 static void axgbe_if_stop(if_ctx_t);
78 static void axgbe_if_init(if_ctx_t);
81 static int axgbe_if_tx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int, int);
82 static int axgbe_if_rx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int, int);
83 static int axgbe_alloc_channels(if_ctx_t);
85 static void axgbe_if_queues_free(if_ctx_t);
86 static int axgbe_if_tx_queue_intr_enable(if_ctx_t, uint16_t);
[all …]
/freebsd/sys/dev/enetc/
H A Dif_enetc.c89 static void enetc_vlan_register(if_ctx_t, uint16_t);
90 static void enetc_vlan_unregister(if_ctx_t, uint16_t);
92 static uint64_t enetc_get_counter(if_ctx_t, ift_counter);
93 static int enetc_promisc_set(if_ctx_t, int);
94 static int enetc_mtu_set(if_ctx_t, uint32_t);
95 static void enetc_setup_multicast(if_ctx_t);
96 static void enetc_timer(if_ctx_t, uint16_t);
97 static void enetc_update_admin_status(if_ctx_t);
98 static bool enetc_if_needs_restart(if_ctx_t, enum iflib_restart_event);
363 enetc_attach_pre(if_ctx_t ctx) in enetc_attach_pre()
[all …]
H A Denetc.h71 if_ctx_t ctx;
/freebsd/sys/dev/e1000/
H A Dif_em.c397 static int em_if_attach_pre(if_ctx_t);
398 static int em_if_attach_post(if_ctx_t);
399 static int em_if_detach(if_ctx_t);
400 static int em_if_shutdown(if_ctx_t);
401 static int em_if_suspend(if_ctx_t);
402 static int em_if_resume(if_ctx_t);
404 static int em_if_tx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int,
406 static int em_if_rx_queues_alloc(if_ctx_t, caddr_t *, uint64_t *, int,
408 static void em_if_queues_free(if_ctx_t);
410 static uint64_t em_if_get_counter(if_ctx_t, ift_counter);
[all …]
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dif_bnxt.c179 static int bnxt_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs,
181 static int bnxt_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs,
183 static void bnxt_queues_free(if_ctx_t ctx);
186 static int bnxt_attach_pre(if_ctx_t ctx);
187 static int bnxt_attach_post(if_ctx_t ctx);
188 static int bnxt_detach(if_ctx_t ctx);
191 static void bnxt_init(if_ctx_t ctx);
192 static void bnxt_stop(if_ctx_t ctx);
193 static void bnxt_multi_set(if_ctx_t ctx);
194 static int bnxt_mtu_set(if_ctx_t ct
[all...]
/freebsd/sys/dev/mgb/
H A Dif_mgb.c332 mgb_attach_pre(if_ctx_t ctx) in mgb_attach_pre()
458 mgb_attach_post(if_ctx_t ctx) in mgb_attach_post()
471 mgb_detach(if_ctx_t ctx) in mgb_detach()
504 if_ctx_t ctx; in mgb_media_change()
536 mgb_tx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int ntxqs, in mgb_tx_queues_alloc()
560 mgb_rx_queues_alloc(if_ctx_t ctx, caddr_t *vaddrs, uint64_t *paddrs, int nrxqs, in mgb_rx_queues_alloc()
584 mgb_queues_free(if_ctx_t ctx) in mgb_queues_free()
595 mgb_init(if_ctx_t ctx) in mgb_init()
710 mgb_stop(if_ctx_t ctx) in mgb_stop()
815 mgb_msix_intr_assign(if_ctx_t ctx, int msix) in mgb_msix_intr_assign()
[all …]

12