Home
last modified time | relevance | path

Searched refs:nx_port (Results 1 – 13 of 13) sorted by relevance

/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_owner.c142 nexus_port_t nx_port, boolean_t if_idle) in flow_owner_bucket_purge_common() argument
145 boolean_t locked = (nx_port == NEXUS_PORT_ANY); in flow_owner_bucket_purge_common()
156 if (fo->fo_nx_port != nx_port && nx_port != NEXUS_PORT_ANY) { in flow_owner_bucket_purge_common()
160 if (!if_idle || nx_port == NEXUS_PORT_ANY) { in flow_owner_bucket_purge_common()
169 ASSERT(nx_port != NEXUS_PORT_ANY || in flow_owner_bucket_purge_common()
175 } else if (nx_port != NEXUS_PORT_ANY) { in flow_owner_bucket_purge_common()
197 nexus_port_t nx_port, struct nexus_adapter *nx_port_na, in flow_owner_bucket_activate_nx_port_common() argument
204 VERIFY(nx_port != NEXUS_PORT_ANY); in flow_owner_bucket_activate_nx_port_common()
208 if (fo->fo_nx_port_destroyed || (fo->fo_nx_port != nx_port)) { in flow_owner_bucket_activate_nx_port_common()
247 boolean_t pid_bound, pid_t pid, nexus_port_t nx_port, in flow_owner_activate_nexus_port() argument
[all …]
H A Dflow_entry.c190 nexus_port_t nx_port = req->nfr_nx_port; in flow_entry_alloc() local
198 ASSERT(nx_port != NEXUS_PORT_ANY); in flow_entry_alloc()
275 if (nx_port == FSW_VP_HOST) { in flow_entry_alloc()
317 fe->fe_nx_port = nx_port; in flow_entry_alloc()
/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/
H A Dfsw_flow.c42 nexus_port_t nx_port = req0->nfr_nx_port; in fsw_flow_add() local
131 if (fo == NULL && nx_port == NEXUS_PORT_ANY) { in fsw_flow_add()
162 &nx_port, &nxb, NULL)) != 0) { in fsw_flow_add()
168 nx_port = NEXUS_PORT_ANY; in fsw_flow_add()
172 ASSERT(nx_port != NEXUS_PORT_ANY); in fsw_flow_add()
178 (int)nx_port); in fsw_flow_add()
199 ASSERT(nx_port != NEXUS_PORT_ANY); in fsw_flow_add()
209 if (__improbable(nx_port >= NX_PORT_CHUNK)) { in fsw_flow_add()
222 (int)nx_port); in fsw_flow_add()
226 if (nx_port != NEXUS_PORT_ANY && in fsw_flow_add()
[all …]
H A Dnx_flowswitch.c592 nx_fsw_dom_port_is_reserved(struct kern_nexus *nx, nexus_port_t nx_port) in nx_fsw_dom_port_is_reserved() argument
595 return nx_port < NEXUS_PORT_FLOW_SWITCH_CLIENT; in nx_fsw_dom_port_is_reserved()
600 nexus_port_t *nx_port) in nx_fsw_dom_find_port() argument
606 ASSERT(nx_port != NULL); in nx_fsw_dom_find_port()
608 port = *nx_port; in nx_fsw_dom_find_port()
635 *nx_port = port; in nx_fsw_dom_find_port()
642 nx_fsw_dom_bind_port(struct kern_nexus *nx, nexus_port_t *nx_port, in nx_fsw_dom_bind_port() argument
650 ASSERT(nx_port != NULL); in nx_fsw_dom_bind_port()
653 port = *nx_port; in nx_fsw_dom_bind_port()
688 ASSERT(*nx_port == NEXUS_PORT_ANY || *nx_port == port); in nx_fsw_dom_bind_port()
[all …]
H A Dfsw_var.h83 nexus_port_t last, nexus_port_t *nx_port);
84 extern int fsw_port_bind(struct nx_flowswitch *fsw, nexus_port_t nx_port,
86 extern int fsw_port_unbind(struct nx_flowswitch *fsw, nexus_port_t nx_port);
101 struct nexus_vp_adapter **vpna, nexus_port_t nx_port, struct proc *p,
104 struct nexus_vp_adapter *vpna, nexus_port_t nx_port, boolean_t defunct);
H A Dfsw.c1271 nexus_port_t nx_port = vpna->vpna_nx_port; in fsw_port_dtor() local
1275 ASSERT(nx_port != NEXUS_PORT_ANY); in fsw_port_dtor()
1288 vpna->vpna_pid, nx_port, FALSE); in fsw_port_dtor()
1292 "purged %u", SK_KVA(fsw), (int)nx_port, in fsw_port_dtor()
1326 struct nexus_vp_adapter **vpna, nexus_port_t nx_port, struct proc *p) in fsw_port_alloc__() argument
1334 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__()
1338 (*vpna)->vpna_nx_port = nx_port; in fsw_port_alloc__()
1360 nx_fsw_dom_port_is_reserved(nx, nx_port) ? in fsw_port_alloc__()
1361 "[reserved] " : "", (int)nx_port, refonly, error); in fsw_port_alloc__()
1365 "(err %d)", SK_KVA(fsw), (int)nx_port, refonly, error); in fsw_port_alloc__()
[all …]
H A Dnx_flowswitch.h310 nexus_port_t nx_port);
/xnu-8019.80.24/bsd/skywalk/nexus/
H A Dnexus.c2496 nexus_port_t last, nexus_port_t *nx_port) in nx_port_find() argument
2501 *nx_port = NEXUS_PORT_ANY; in nx_port_find()
2508 *nx_port = first; in nx_port_find()
2542 *nx_port = (i * NX_PORT_CHUNK) + j; in nx_port_find()
2552 if (*nx_port == NEXUS_PORT_ANY) { in nx_port_find()
2557 *nx_port = nx->nx_num_ports; in nx_port_find()
2563 (int)*nx_port, err); in nx_port_find()
2627 nx_port_alloc(struct kern_nexus *nx, nexus_port_t nx_port, struct nxbind *nxb, in nx_port_alloc() argument
2638 ASSERT(nx_port != NEXUS_PORT_ANY); in nx_port_alloc()
2642 if ((nx_port + 1) > nx->nx_num_ports) { in nx_port_alloc()
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/kpipe/
H A Dnx_kernel_pipe.c251 nx_kpipe_dom_bind_port(struct kern_nexus *nx, nexus_port_t *nx_port, in nx_kpipe_dom_bind_port() argument
258 ASSERT(nx_port != NULL); in nx_kpipe_dom_bind_port()
261 switch (*nx_port) { in nx_kpipe_dom_bind_port()
284 nx_kpipe_dom_unbind_port(struct kern_nexus *nx, nexus_port_t nx_port) in nx_kpipe_dom_unbind_port() argument
289 ASSERT(nx_port != NEXUS_PORT_ANY); in nx_kpipe_dom_unbind_port()
291 switch (nx_port) { in nx_kpipe_dom_unbind_port()
/xnu-8019.80.24/bsd/skywalk/nexus/upipe/
H A Dnx_user_pipe.c446 nx_upipe_dom_bind_port(struct kern_nexus *nx, nexus_port_t *nx_port, in nx_upipe_dom_bind_port() argument
454 ASSERT(nx_port != NULL); in nx_upipe_dom_bind_port()
457 switch (*nx_port) { in nx_upipe_dom_bind_port()
460 if ((*nx_port == NEXUS_PORT_USER_PIPE_CLIENT && in nx_upipe_dom_bind_port()
462 (*nx_port == NEXUS_PORT_USER_PIPE_SERVER && in nx_upipe_dom_bind_port()
470 if (*nx_port == NEXUS_PORT_USER_PIPE_CLIENT) { in nx_upipe_dom_bind_port()
488 nx_upipe_dom_unbind_port(struct kern_nexus *nx, nexus_port_t nx_port) in nx_upipe_dom_unbind_port() argument
494 ASSERT(nx_port != NEXUS_PORT_ANY); in nx_upipe_dom_unbind_port()
496 switch (nx_port) { in nx_upipe_dom_unbind_port()
499 if ((nx_port == NEXUS_PORT_USER_PIPE_CLIENT && in nx_upipe_dom_unbind_port()
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/netif/
H A Dnx_netif_netagent.c303 nexus_port_t nx_port; in nx_netif_netagent_flow_bind() local
344 nx_port = NEXUS_PORT_ANY; in nx_netif_netagent_flow_bind()
345 err = NX_DOM(nx)->nxdom_bind_port(nx, &nx_port, &nxb, npi); in nx_netif_netagent_flow_bind()
360 nfr->nfr_nx_port = nx_port; in nx_netif_netagent_flow_bind()
H A Dnx_netif.c1049 nx_netif_dom_bind_port(struct kern_nexus *nx, nexus_port_t *nx_port, in nx_netif_dom_bind_port() argument
1056 ASSERT(nx_port != NULL); in nx_netif_dom_bind_port()
1059 port = *nx_port; in nx_netif_dom_bind_port()
1089 ASSERT(*nx_port == NEXUS_PORT_ANY || *nx_port == port); in nx_netif_dom_bind_port()
1091 *nx_port = port; in nx_netif_dom_bind_port()
1096 SK_KVA(nif), (int)*nx_port, NX_NETIF_MAXPORTS, in nx_netif_dom_bind_port()
1103 nx_netif_dom_unbind_port(struct kern_nexus *nx, nexus_port_t nx_port) in nx_netif_dom_unbind_port() argument
1108 ASSERT(nx_port != NEXUS_PORT_ANY); in nx_netif_dom_unbind_port()
1111 error = nx_port_unbind(nx, nx_port); in nx_netif_dom_unbind_port()
2762 nexus_port_t nx_port = chr->cr_port; local
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/monitor/
H A Dnx_monitor.c338 nx_mon_dom_bind_port(struct kern_nexus *nx, nexus_port_t *nx_port, in nx_mon_dom_bind_port() argument
341 #pragma unused(nx, nx_port, nxb, info) in nx_mon_dom_bind_port()
349 nx_mon_dom_unbind_port(struct kern_nexus *nx, nexus_port_t nx_port) in nx_mon_dom_unbind_port() argument
351 #pragma unused(nx, nx_port) in nx_mon_dom_unbind_port()