Home
last modified time | relevance | path

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

12

/xnu-11417.140.69/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;
174 struct kern_nexus *na_nx;
624 struct kern_nexus *, struct kern_nexus_domain_provider *);
646 extern int na_find(struct kern_channel *, struct kern_nexus *,
652 extern int na_connect(struct kern_nexus *, struct kern_channel *,
654 extern void na_disconnect(struct kern_nexus *, struct kern_channel *);
655 extern void na_defunct(struct kern_nexus *, struct kern_channel *,
657 extern int na_connect_spec(struct kern_nexus *, struct kern_channel *,
659 extern void na_disconnect_spec(struct kern_nexus *, struct kern_channel *);
660 extern void na_start_spec(struct kern_nexus *, struct kern_channel *);
[all …]
H A Dnexus.c50 static int nx_cmp(const struct kern_nexus *, const struct kern_nexus *);
51 RB_HEAD(kern_nexus_tree, kern_nexus);
52 RB_PROTOTYPE_SC(static, kern_nexus_tree, kern_nexus, nx_link, nx_cmp);
53 RB_GENERATE(kern_nexus_tree, kern_nexus, nx_link, nx_cmp);
79 static int nx_init_rings(struct kern_nexus *, struct kern_channel *);
80 static void nx_fini_rings(struct kern_nexus *, struct kern_channel *);
81 static int nx_init_slots(struct kern_nexus *, struct __kern_channel_ring *);
82 static void nx_fini_slots(struct kern_nexus *, struct __kern_channel_ring *);
83 static struct kern_nexus *nx_alloc(zalloc_flags_t);
84 static void nx_free(struct kern_nexus *);
[all …]
H A Dos_nexus.h438 struct kern_nexus;
447 typedef struct kern_nexus *kern_nexus_t;
1068 extern errno_t kern_nexus_netif_llink_add(struct kern_nexus *,
1071 extern errno_t kern_nexus_netif_llink_remove(struct kern_nexus *,
/xnu-11417.140.69/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;
361 extern int nx_fsw_na_find(struct kern_nexus *, struct kern_channel *,
364 extern boolean_t nx_fsw_dom_port_is_reserved(struct kern_nexus *nx,
366 extern int nx_fsw_netagent_add(struct kern_nexus *nx);
367 extern int nx_fsw_netagent_remove(struct kern_nexus *nx);
368 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,
196 extern int fsw_netagent_add_remove(struct kern_nexus *nx, boolean_t add);
197 extern void fsw_netagent_update(struct kern_nexus *nx);
H A Dfsw.c113 fsw_attach_vp(struct kern_nexus *nx, struct kern_channel *ch, in fsw_attach_vp()
174 fsw_nx_check(struct nx_flowswitch *fsw, struct kern_nexus *hw_nx) in fsw_nx_check()
644 const struct kern_nexus *nx, int err) in fsw_ctl_attach_log()
752 fsw_netif_port_setup(struct nx_flowswitch *fsw, struct kern_nexus *hw_nx, in fsw_netif_port_setup()
802 fsw_devna_setup(struct nx_flowswitch *fsw, struct kern_nexus *hw_nx) in fsw_devna_setup()
809 fsw_hostna_setup(struct nx_flowswitch *fsw, struct kern_nexus *hw_nx) in fsw_hostna_setup()
831 fsw_ctl_attach(struct kern_nexus *nx, struct proc *p, struct nx_spec_req *nsr) in fsw_ctl_attach()
835 struct kern_nexus *hw_nx = NULL; in fsw_ctl_attach()
939 fsw_ctl_detach(struct kern_nexus *nx, struct proc *p, in fsw_ctl_detach()
1019 fsw_ctl(struct kern_nexus *nx, nxcfg_cmd_t nc_cmd, struct proc *p, in fsw_ctl()
[all …]
H A Dfsw_flow.c40 struct kern_nexus *nx = fsw->fsw_nx; in fsw_flow_add()
344 struct kern_nexus *nx = fsw->fsw_nx; in fsw_flow_del()
/xnu-11417.140.69/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 *,
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-11417.140.69/bsd/skywalk/nexus/netif/
H A Dnx_netif.h262 struct kern_nexus *nif_nx;
506 extern int nx_netif_na_find(struct kern_nexus *, struct kern_channel *,
521 struct kern_nexus *, struct nexus_adapter *);
524 struct kern_nexus *, struct nx_cfg_req *, int, struct proc *,
526 extern int nx_netif_prov_nx_ctor(struct kern_nexus *);
527 extern void nx_netif_prov_nx_dtor(struct kern_nexus *);
528 extern int nx_netif_prov_nx_mem_info(struct kern_nexus *,
530 extern size_t nx_netif_prov_nx_mib_get(struct kern_nexus *nx,
532 extern int nx_netif_prov_nx_stop(struct kern_nexus *);
543 extern void nx_netif_config_interface_advisory(struct kern_nexus *, bool);
[all …]
H A Dnx_netif.c121 static int nx_netif_dom_bind_port(struct kern_nexus *, nexus_port_t *,
123 static int nx_netif_dom_unbind_port(struct kern_nexus *, nexus_port_t);
125 struct kern_nexus *, struct kern_channel *, struct chreq *,
128 struct kern_nexus *, struct kern_channel *);
130 struct kern_nexus *, struct kern_channel *, struct proc *);
132 struct kern_nexus *, struct kern_channel *, boolean_t);
146 static int nx_netif_ctl(struct kern_nexus *, nxcfg_cmd_t, void *,
148 static int nx_netif_ctl_attach(struct kern_nexus *, struct nx_spec_req *,
150 static int nx_netif_ctl_detach(struct kern_nexus *, struct nx_spec_req *);
151 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 *,
947 nx_netif_llink_ext_init_queues(struct kern_nexus *nx, struct netif_llink *llink) in nx_netif_llink_ext_init_queues()
1011 nx_netif_llink_ext_fini_queues(struct kern_nexus *nx, struct netif_llink *llink) in nx_netif_llink_ext_fini_queues()
1050 nx_netif_llink_ext_init_default_queues(struct kern_nexus *nx) in nx_netif_llink_ext_init_default_queues()
1057 nx_netif_llink_ext_fini_default_queues(struct kern_nexus *nx) in nx_netif_llink_ext_fini_default_queues()
H A Dnx_netif_vp.c328 struct kern_nexus *nx = nif->nif_nx; in netif_hwna_setup()
367 struct kern_nexus *nx = nif->nif_nx; in netif_hwna_teardown()
791 struct kern_nexus *nx; in netif_vp_region_params_setup()
913 netif_vp_na_mem_new(struct kern_nexus *nx, struct nexus_adapter *na) in netif_vp_na_mem_new()
934 struct kern_nexus *nx = na->na_nx; in netif_vp_na_dtor()
955 netif_vp_na_create(struct kern_nexus *nx, struct chreq *chr, in netif_vp_na_create()
1171 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-11417.140.69/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 *,
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-11417.140.69/bsd/skywalk/nexus/monitor/
H A Dnx_monitor.c158 static int nx_mon_dom_bind_port(struct kern_nexus *, nexus_port_t *,
160 static int nx_mon_dom_unbind_port(struct kern_nexus *, nexus_port_t);
162 struct kern_nexus *, struct kern_channel *, struct chreq *,
165 struct kern_nexus *, struct kern_channel *);
167 struct kern_nexus *, struct kern_channel *, struct proc *);
169 struct kern_nexus *, struct kern_channel *, boolean_t);
178 struct kern_nexus *, struct nexus_adapter *);
332 nx_mon_dom_bind_port(struct kern_nexus *nx, nexus_port_t *nx_port, in nx_mon_dom_bind_port()
343 nx_mon_dom_unbind_port(struct kern_nexus *nx, nexus_port_t nx_port) in nx_mon_dom_unbind_port()
354 struct kern_nexus *nx, struct kern_channel *ch, struct chreq *chr, in nx_mon_dom_connect()
[all …]
H A Dnx_monitor.h80 extern int nx_monitor_na_find(struct kern_nexus *, struct kern_channel *,
/xnu-11417.140.69/bsd/skywalk/core/
H A Dskywalk_proc_info.c73 struct kern_nexus *nexus; in fill_channelinfo()
/xnu-11417.140.69/bsd/skywalk/channel/
H A Dchannel.c84 static struct kern_channel *ch_find(struct kern_nexus *, nexus_port_t,
86 static int ch_ev_thresh_validate(struct kern_nexus *, enum txrx,
88 static struct kern_channel *ch_connect(struct kern_nexus *, struct chreq *,
1484 ch_find(struct kern_nexus *nx, nexus_port_t port, ring_id_t ring_id) in ch_find()
1547 struct kern_nexus *nx; in ch_open()
1728 ch_open_special(struct kern_nexus *nx, struct chreq *chr, boolean_t nonxref, in ch_open_special()
1816 struct kern_nexus *nx = ch->ch_nexus; in ch_close_common()
1917 ch_ev_thresh_validate(struct kern_nexus *nx, enum txrx t, in ch_ev_thresh_validate()
1968 ch_connect_log1(const struct kern_nexus *nx, const struct ch_info *cinfo, in ch_connect_log1()
2041 ch_connect_log2(const struct kern_nexus *nx, int err) in ch_connect_log2()
[all …]
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_ce_event()
664 struct kern_nexus *nx = ch->ch_nexus; in kern_channel_defunct()
H A Dchannel_var.h138 struct kern_nexus;
144 struct kern_nexus *ch_nexus;
839 extern struct kern_channel *ch_open_special(struct kern_nexus *,

12