Searched refs:npcb (Results 1 - 8 of 8) sorted by relevance

/netbsd-6-1-5-RELEASE/sys/netnatm/
H A Dnatm_pcb.c56 * npcb_alloc: allocate a npcb [in the free state]
64 struct natmpcb *npcb; local
66 npcb = malloc(sizeof(*npcb), M_PCB, wait);
69 if (wait == M_WAITOK && npcb == NULL) panic("npcb_alloc: malloc didn't wait");
72 if (npcb) {
73 memset(npcb, 0, sizeof(*npcb));
74 npcb->npcb_flags = NPCB_FREE;
76 return(npcb);
[all...]
H A Dnatm.c75 struct natmpcb *npcb; local
85 npcb = (struct natmpcb *) so->so_pcb;
87 if (npcb == NULL && req != PRU_ATTACH) {
96 if (npcb) {
110 so->so_pcb = (void *) (npcb = npcb_alloc(M_WAITOK));
111 npcb->npcb_socket = so;
121 npcb_free(npcb, NPCB_DESTROY); /* drain */
132 * validate nam and npcb
141 (npcb->npcb_flags & NPCB_FREE) == 0) {
172 if (npcb_add(npcb, if
337 struct natmpcb *npcb; local
[all...]
H A Dnatm.h124 struct natmpcb *npcb; member in struct:atm_rawioctl
/netbsd-6-1-5-RELEASE/sys/arch/sparc64/sparc64/
H A Dvm_machdep.c167 struct pcb *npcb = lwp_getpcb(l); local
170 rp = (struct rwindow *)((u_long)npcb + TOPFRAMEOFF);
174 npcb->pcb_pc = (long)setfunc_trampoline - 8;
175 npcb->pcb_sp = (long)rp - STACK_OFFSET;
201 struct pcb *npcb = lwp_getpcb(l2); local
239 memcpy(npcb, opcb, sizeof(struct pcb));
254 ((long)npcb + USPACE - sizeof(*tf2));
275 rp = (struct rwindow *)((u_long)npcb + TOPFRAMEOFF);
282 npcb->pcb_pc = (long)lwp_trampoline - 8;
283 npcb
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/sparc/sparc/
H A Dvm_machdep.c193 struct pcb *npcb = lwp_getpcb(l2); local
217 memcpy((void *)npcb, (void *)opcb, sizeof(struct pcb));
252 ((int)npcb + USPACE - sizeof(*tf2));
279 rp = (struct rwindow *)((u_int)npcb + TOPFRAMEOFF);
285 npcb->pcb_pc = (int)lwp_trampoline - 8;
286 npcb->pcb_sp = (int)rp;
287 npcb->pcb_psr &= ~PSR_CWP; /* Run in window #0 */
288 npcb->pcb_wim = 1; /* Fence at window #1 */
/netbsd-6-1-5-RELEASE/sys/netinet/
H A Dif_atm.c82 struct natmpcb *npcb = NULL; local
145 npcb = npcb_add(NULL, rt->rt_ifp, ATM_PH_VCI(aph),
147 if (npcb == NULL)
149 npcb->npcb_flags |= NPCB_IP;
150 npcb->ipaddr.s_addr = sin->sin_addr.s_addr;
151 /* XXX: move npcb to llinfo when ATM ARP is ready */
152 rt->rt_llinfo = (void *) npcb;
172 if (npcb) {
173 npcb_free(npcb, NPCB_DESTROY);
/netbsd-6-1-5-RELEASE/sys/net/
H A Dif_atmsubr.c241 struct natmpcb *npcb = rxhand; local
243 npcb->npcb_inq++; /* count # in queue */
/netbsd-6-1-5-RELEASE/sys/dev/ic/
H A Dmidway.c1121 if ((slot = sc->rxvc2slot[ario->npcb->npcb_vci]) == RX_NONE) {
1136 device_xname(sc->sc_dev), ario->npcb->npcb_vci,

Completed in 97 milliseconds