Home
last modified time | relevance | path

Searched refs:npcb (Results 1 – 7 of 7) sorted by relevance

/mirbsd/src/sys/netnatm/
Dnatm.c83 struct natmpcb *npcb; local
93 npcb = (struct natmpcb *) so->so_pcb;
95 if (npcb == NULL && req != PRU_ATTACH) {
104 if (npcb) {
118 so->so_pcb = (caddr_t) (npcb = npcb_alloc(M_WAITOK));
119 npcb->npcb_socket = so;
129 npcb_free(npcb, NPCB_DESTROY); /* drain */
147 (npcb->npcb_flags & NPCB_FREE) == 0) {
178 if (npcb_add(npcb, ifp, snatm->snatm_vci, snatm->snatm_vpi) != npcb) {
188 ATM_PH_VPI(&api.aph) = npcb->npcb_vpi;
[all …]
Dnatm_pcb.c66 struct natmpcb *npcb; local
68 MALLOC(npcb, struct natmpcb *, sizeof(*npcb), M_PCB, wait);
70 if (npcb) {
71 bzero(npcb, sizeof(*npcb));
72 npcb->npcb_flags = NPCB_FREE;
74 return(npcb);
82 void npcb_free(npcb, op) in npcb_free() argument
84 struct natmpcb *npcb; in npcb_free()
90 if ((npcb->npcb_flags & NPCB_FREE) == 0) {
91 LIST_REMOVE(npcb, pcblist);
[all …]
Dnatm.h128 struct natmpcb *npcb; member
/mirbsd/src/sys/netinet/
Dif_atm.c88 struct natmpcb *npcb = NULL; local
142 npcb = npcb_add(NULL, rt->rt_ifp, ATM_PH_VCI(aph),
144 if (npcb == NULL)
146 npcb->npcb_flags |= NPCB_IP;
147 npcb->ipaddr.s_addr = sin->sin_addr.s_addr;
149 rt->rt_llinfo = (caddr_t) npcb;
170 if (npcb) {
171 npcb_free(npcb, NPCB_DESTROY);
/mirbsd/src/sys/arch/sparc/sparc/
Dvm_machdep.c388 struct pcb *npcb = &p2->p_addr->u_pcb; local
412 bcopy((caddr_t)opcb, (caddr_t)npcb, sizeof(struct pcb));
429 ((int)npcb + USPACE - sizeof(*tf2));
458 rp = (struct rwindow *)((u_int)npcb + TOPFRAMEOFF);
462 npcb->pcb_pc = (int)proc_trampoline - 8;
463 npcb->pcb_sp = (int)rp;
464 npcb->pcb_psr &= ~PSR_CWP; /* Run in window #0 */
465 npcb->pcb_wim = 1; /* Fence at window #1 */
/mirbsd/src/sys/net/
Dif_atmsubr.c300 struct natmpcb *npcb = rxhand; local
302 npcb->npcb_inq++; /* count # in queue */
/mirbsd/src/sys/dev/ic/
Dmidway.c1114 if ((slot = sc->rxvc2slot[ario->npcb->npcb_vci]) == RX_NONE) {
1129 sc->sc_dev.dv_xname, ario->npcb->npcb_vci,