Home
last modified time | relevance | path

Searched refs:kern_nexus (Results 1 – 25 of 41) sorted by relevance

12

/xnu-12377.61.12/bsd/skywalk/nexus/
H A Dnexus_var.h209 struct kern_nexus { struct
217 STAILQ_ENTRY(kern_nexus) nx_prov_link; argument
218 RB_ENTRY(kern_nexus) nx_link;
259 STAILQ_HEAD(, kern_nexus) nxprov_nx_head;
316 struct kern_nexus *, struct nexus_adapter *);
318 struct kern_nexus *, struct nx_cfg_req *, int,
320 int (*dp_cb_nx_ctor)(struct kern_nexus *);
321 void (*dp_cb_nx_dtor)(struct kern_nexus *);
322 int (*dp_cb_nx_mem_info)(struct kern_nexus *,
324 size_t (*dp_cb_nx_mib_get)(struct kern_nexus *,
[all …]
H A Dnexus_adapter.h65 struct kern_nexus;
171 struct kern_nexus *na_nx;
621 struct kern_nexus *, struct kern_nexus_domain_provider *);
643 extern int na_find(struct kern_channel *, struct kern_nexus *, struct chreq *,
648 extern int na_connect(struct kern_nexus *, struct kern_channel *,
650 extern void na_disconnect(struct kern_nexus *, struct kern_channel *);
651 extern void na_defunct(struct kern_nexus *, struct kern_channel *,
653 extern int na_connect_spec(struct kern_nexus *, struct kern_channel *,
655 extern void na_disconnect_spec(struct kern_nexus *, struct kern_channel *);
656 extern void na_start_spec(struct kern_nexus *, struct kern_channel *);
[all …]
H A Dnexus.c52 static int nx_cmp(const struct kern_nexus *, const struct kern_nexus *);
53 RB_HEAD(kern_nexus_tree, kern_nexus);
54 RB_PROTOTYPE_SC(static, kern_nexus_tree, kern_nexus, nx_link, nx_cmp);
55 RB_GENERATE(kern_nexus_tree, kern_nexus, nx_link, nx_cmp);
81 static int nx_init_rings(struct kern_nexus *, struct kern_channel *);
82 static void nx_fini_rings(struct kern_nexus *, struct kern_channel *);
83 static int nx_init_slots(struct kern_nexus *, struct __kern_channel_ring *);
84 static void nx_fini_slots(struct kern_nexus *, struct __kern_channel_ring *);
85 static struct kern_nexus *nx_alloc(zalloc_flags_t);
86 static void nx_free(struct kern_nexus *);
[all …]
H A Dos_nexus.h432 struct kern_nexus;
441 typedef struct kern_nexus *kern_nexus_t;
1077 extern errno_t kern_nexus_netif_llink_add(struct kern_nexus *,
1080 extern errno_t kern_nexus_netif_llink_remove(struct kern_nexus *,
/xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/
H A Dnx_flowswitch.c97 static int nx_fsw_dom_find_port(struct kern_nexus *, boolean_t, nexus_port_t *);
98 static int nx_fsw_dom_bind_port(struct kern_nexus *, nexus_port_t *,
100 static int nx_fsw_dom_unbind_port(struct kern_nexus *, nexus_port_t);
102 struct kern_nexus *, struct kern_channel *, struct chreq *,
105 struct kern_nexus *, struct kern_channel *);
107 struct kern_nexus *, struct kern_channel *, struct proc *);
109 struct kern_nexus *, struct kern_channel *, boolean_t);
118 struct kern_nexus *, struct nexus_adapter *);
120 struct kern_nexus *, struct nx_cfg_req *, int, struct proc *,
123 static int nx_fsw_prov_nx_ctor(struct kern_nexus *);
[all …]
H A Dnx_flowswitch.h211 struct kern_nexus *fsw_nx;
364 extern int nx_fsw_na_find(struct kern_nexus *, struct kern_channel *,
367 extern boolean_t nx_fsw_dom_port_is_reserved(struct kern_nexus *nx,
369 extern int nx_fsw_netagent_add(struct kern_nexus *nx);
370 extern int nx_fsw_netagent_remove(struct kern_nexus *nx);
371 extern void nx_fsw_netagent_update(struct kern_nexus *nx);
H A Dfsw_var.h91 extern int fsw_attach_vp(struct kern_nexus *nx, struct kern_channel *ch,
94 extern int fsw_ctl(struct kern_nexus *nx, nxcfg_cmd_t nc_cmd, struct proc *p,
96 extern int fsw_ctl_detach(struct kern_nexus *nx, struct proc *p,
122 extern int fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr,
198 extern int fsw_netagent_add_remove(struct kern_nexus *nx, boolean_t add);
199 extern void fsw_netagent_update(struct kern_nexus *nx);
H A Dfsw.c116 fsw_attach_vp(struct kern_nexus *nx, struct kern_channel *ch, in fsw_attach_vp()
177 fsw_nx_check(struct nx_flowswitch *fsw, struct kern_nexus *hw_nx) in fsw_nx_check()
647 const struct kern_nexus *nx, int err) in fsw_ctl_attach_log()
755 fsw_netif_port_setup(struct nx_flowswitch *fsw, struct kern_nexus *hw_nx, in fsw_netif_port_setup()
805 fsw_devna_setup(struct nx_flowswitch *fsw, struct kern_nexus *hw_nx) in fsw_devna_setup()
812 fsw_hostna_setup(struct nx_flowswitch *fsw, struct kern_nexus *hw_nx) in fsw_hostna_setup()
834 fsw_ctl_attach(struct kern_nexus *nx, struct proc *p, struct nx_spec_req *nsr) in fsw_ctl_attach()
838 struct kern_nexus *hw_nx = NULL; in fsw_ctl_attach()
942 fsw_ctl_detach(struct kern_nexus *nx, struct proc *p, in fsw_ctl_detach()
1022 fsw_ctl(struct kern_nexus *nx, nxcfg_cmd_t nc_cmd, struct proc *p, in fsw_ctl()
[all …]
H A Dfsw_flow.c41 struct kern_nexus *nx = fsw->fsw_nx; in fsw_flow_add()
386 struct kern_nexus *nx = fsw->fsw_nx; in fsw_flow_del()
H A Dfsw_vp.c335 fsw_vp_na_create(struct kern_nexus *nx, struct chreq *chr, struct proc *p, in fsw_vp_na_create()
621 struct kern_nexus *nx = fsw->fsw_nx; in fsw_find_port_vpna()
/xnu-12377.61.12/bsd/skywalk/nexus/kpipe/
H A Dnx_kernel_pipe.c81 static int nx_kpipe_dom_bind_port(struct kern_nexus *, nexus_port_t *,
83 static int nx_kpipe_dom_unbind_port(struct kern_nexus *, nexus_port_t);
85 struct kern_nexus *, struct kern_channel *, struct chreq *, struct nxbind *,
88 struct kern_nexus *, struct kern_channel *);
90 struct kern_nexus *, struct kern_channel *, struct proc *);
92 struct kern_nexus *, struct kern_channel *, boolean_t);
102 struct kern_nexus *, struct nexus_adapter *);
104 static int nx_kpipe_prov_nx_ctor(struct kern_nexus *);
105 static void nx_kpipe_prov_nx_dtor(struct kern_nexus *);
106 static int nx_kpipe_prov_nx_mem_info(struct kern_nexus *,
[all …]
H A Dnx_kernel_pipe.h75 extern int nx_kpipe_na_find(struct kern_nexus *, struct kern_channel *,
/xnu-12377.61.12/bsd/skywalk/nexus/netif/
H A Dnx_netif.h268 struct kern_nexus *nif_nx;
514 extern int nx_netif_na_find(struct kern_nexus *, struct kern_channel *,
529 struct kern_nexus *, struct nexus_adapter *);
532 struct kern_nexus *, struct nx_cfg_req *, int, struct proc *,
534 extern int nx_netif_prov_nx_ctor(struct kern_nexus *);
535 extern void nx_netif_prov_nx_dtor(struct kern_nexus *);
536 extern int nx_netif_prov_nx_mem_info(struct kern_nexus *,
538 extern size_t nx_netif_prov_nx_mib_get(struct kern_nexus *nx,
540 extern int nx_netif_prov_nx_stop(struct kern_nexus *);
551 extern void nx_netif_config_interface_advisory(struct kern_nexus *, bool);
[all …]
H A Dnx_netif.c122 static int nx_netif_dom_bind_port(struct kern_nexus *, nexus_port_t *,
124 static int nx_netif_dom_unbind_port(struct kern_nexus *, nexus_port_t);
126 struct kern_nexus *, struct kern_channel *, struct chreq *, struct nxbind *,
129 struct kern_nexus *, struct kern_channel *);
131 struct kern_nexus *, struct kern_channel *, struct proc *);
133 struct kern_nexus *, struct kern_channel *, boolean_t);
147 static int nx_netif_ctl(struct kern_nexus *, nxcfg_cmd_t, void *,
149 static int nx_netif_ctl_attach(struct kern_nexus *, struct nx_spec_req *,
151 static int nx_netif_ctl_detach(struct kern_nexus *, struct nx_spec_req *);
152 static int nx_netif_attach(struct kern_nexus *, struct ifnet *);
[all …]
H A Dnx_netif_compat.h78 extern int nx_netif_compat_attach(struct kern_nexus *nx, struct ifnet *ifp);
H A Dnx_netif_llink.c67 static int nx_netif_llink_ext_init_queues(struct kern_nexus *,
69 static void nx_netif_llink_ext_fini_queues(struct kern_nexus *,
982 nx_netif_llink_ext_init_queues(struct kern_nexus *nx, struct netif_llink *llink) in nx_netif_llink_ext_init_queues()
1046 nx_netif_llink_ext_fini_queues(struct kern_nexus *nx, struct netif_llink *llink) in nx_netif_llink_ext_fini_queues()
1085 nx_netif_llink_ext_init_default_queues(struct kern_nexus *nx) in nx_netif_llink_ext_init_default_queues()
1092 nx_netif_llink_ext_fini_default_queues(struct kern_nexus *nx) in nx_netif_llink_ext_fini_default_queues()
H A Dnx_netif_vp.c319 struct kern_nexus *nx = nif->nif_nx; in netif_hwna_setup()
367 struct kern_nexus *nx = nif->nif_nx; in netif_hwna_teardown()
794 struct kern_nexus *nx; in netif_vp_region_params_setup()
916 netif_vp_na_mem_new(struct kern_nexus *nx, struct nexus_adapter *na) in netif_vp_na_mem_new()
937 struct kern_nexus *nx = na->na_nx; in netif_vp_na_dtor()
958 netif_vp_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_vp_na_create()
1174 struct kern_nexus *nx = netif->nif_nx; in nx_netif_find_port_vpna()
H A Dnx_netif_filter_vp.c310 struct kern_nexus *nx = na->na_nx; in netif_filter_na_mem_new()
485 struct kern_nexus *nx = na->na_nx; in netif_filter_na_dtor()
516 netif_filter_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_filter_na_create()
/xnu-12377.61.12/bsd/skywalk/nexus/upipe/
H A Dnx_user_pipe.c89 static int nx_upipe_dom_bind_port(struct kern_nexus *, nexus_port_t *,
91 static int nx_upipe_dom_unbind_port(struct kern_nexus *, nexus_port_t);
93 struct kern_nexus *, struct kern_channel *, struct chreq *, struct nxbind *,
96 struct kern_nexus *, struct kern_channel *);
98 struct kern_nexus *, struct kern_channel *, struct proc *);
100 struct kern_nexus *, struct kern_channel *, boolean_t);
110 struct kern_nexus *, struct nexus_adapter *);
112 static int nx_upipe_prov_nx_ctor(struct kern_nexus *);
113 static void nx_upipe_prov_nx_dtor(struct kern_nexus *);
331 struct kern_nexus *nx, struct nexus_adapter *na) in nx_upipe_prov_mem_new()
[all …]
H A Dnx_user_pipe.h98 extern int nx_upipe_na_find(struct kern_nexus *, struct kern_channel *,
/xnu-12377.61.12/bsd/skywalk/core/
H A Dskywalk_proc_info.c64 struct kern_nexus *nexus; in fill_channelinfo()
/xnu-12377.61.12/bsd/skywalk/channel/
H A Dchannel.c86 static struct kern_channel *ch_find(struct kern_nexus *, nexus_port_t,
88 static int ch_ev_thresh_validate(struct kern_nexus *, enum txrx,
90 static struct kern_channel *ch_connect(struct kern_nexus *, struct chreq *,
1485 ch_find(struct kern_nexus *nx, nexus_port_t port, ring_id_t ring_id) in ch_find()
1545 struct kern_nexus *nx; in ch_open()
1688 ch_open_special(struct kern_nexus *nx, struct chreq *chr, boolean_t nonxref, in ch_open_special()
1774 struct kern_nexus *nx = ch->ch_nexus; in ch_close_common()
1875 ch_ev_thresh_validate(struct kern_nexus *nx, enum txrx t, in ch_ev_thresh_validate()
1926 ch_connect_log1(const struct kern_nexus *nx, const struct ch_info *cinfo, in ch_connect_log1()
1999 ch_connect_log2(const struct kern_nexus *nx, int err) in ch_connect_log2()
[all …]
H A Dchannel_var.h139 struct kern_nexus;
145 struct kern_nexus *ch_nexus;
797 extern struct kern_channel *ch_open_special(struct kern_nexus *,
H A Dchannel_kern.c466 struct kern_nexus *fsw_nx; in _kern_channel_flowadv_signal()
552 struct kern_nexus *fsw_nx; in kern_channel_flowadv_report_congestion_event()
664 struct kern_nexus *nx = ch->ch_nexus; in kern_channel_defunct()
H A Dkern_channel_event.c87 struct kern_nexus *nx; in __notif_dest_by_nx_uuid()

12