Lines Matching refs:p

81 findie(u_char *p, int size, u_char ie, int wanted_set)  in findie()  argument
84 u_char *pend = p + size; in findie()
87 p++; in findie()
88 l = (*p++) & 0xf; in findie()
89 p += l; in findie()
90 p++; in findie()
94 while (p < pend) { in findie()
95 if ((*p & 0xf0) == 0x90) { in findie()
96 codeset = *p & 0x07; in findie()
97 if (!(*p & 0x08)) in findie()
100 if (*p & 0x80) in findie()
101 p++; in findie()
104 if (*p == ie) in findie()
106 if ((pend - p) < 2) in findie()
108 if (*(p + 1) > (pend - (p + 2))) in findie()
110 return (p); in findie()
113 if (*p > ie) in findie()
116 p++; in findie()
117 l = *p++; in findie()
118 p += l; in findie()
126 getcallref(u_char *p) in getcallref() argument
130 p++; /* prot discr */ in getcallref()
131 if (*p & 0xfe) /* wrong callref BRI only 1 octet*/ in getcallref()
133 l = 0xf & *p++; /* callref length */ in getcallref()
136 cr = *p++; in getcallref()
238 struct l3_process *p = st->l3.proc; in getl3proc() local
240 while (p) in getl3proc()
241 if (p->callref == cr) in getl3proc()
242 return (p); in getl3proc()
244 p = p->next; in getl3proc()
251 struct l3_process *p, *np; in new_l3_process() local
253 if (!(p = kmalloc(sizeof(struct l3_process), GFP_ATOMIC))) { in new_l3_process()
258 st->l3.proc = p; in new_l3_process()
263 np->next = p; in new_l3_process()
265 p->next = NULL; in new_l3_process()
266 p->debug = st->l3.debug; in new_l3_process()
267 p->callref = cr; in new_l3_process()
268 p->state = 0; in new_l3_process()
269 p->chan = NULL; in new_l3_process()
270 p->st = st; in new_l3_process()
271 p->N303 = st->l3.N303; in new_l3_process()
272 L3InitTimer(p, &p->timer); in new_l3_process()
273 return (p); in new_l3_process()
277 release_l3_process(struct l3_process *p) in release_l3_process() argument
281 if (!p) in release_l3_process()
283 np = p->st->l3.proc; in release_l3_process()
285 if (np == p) { in release_l3_process()
286 StopAllL3Timer(p); in release_l3_process()
289 else if (!(p->st->l3.proc = np->next) && in release_l3_process()
290 !test_bit(FLG_PTP, &p->st->l2.flag)) { in release_l3_process()
291 if (p->debug) in release_l3_process()
292 l3_debug(p->st, "release_l3_process: last process"); in release_l3_process()
293 if (skb_queue_empty(&p->st->l3.squeue)) { in release_l3_process()
294 if (p->debug) in release_l3_process()
295 l3_debug(p->st, "release_l3_process: release link"); in release_l3_process()
296 if (p->st->protocol != ISDN_PTYPE_NI1) in release_l3_process()
297 FsmEvent(&p->st->l3.l3m, EV_RELEASE_REQ, NULL); in release_l3_process()
299 FsmEvent(&p->st->l3.l3m, EV_RELEASE_IND, NULL); in release_l3_process()
301 if (p->debug) in release_l3_process()
302 l3_debug(p->st, "release_l3_process: not release link"); in release_l3_process()
305 kfree(p); in release_l3_process()
311 printk(KERN_ERR "HiSax internal L3 error CR(%d) not in list\n", p->callref); in release_l3_process()
312 l3_debug(p->st, "HiSax internal L3 error CR(%d) not in list", p->callref); in release_l3_process()
318 struct l3_process *p = st->l3.proc; in l3ml3p() local
321 while (p) { in l3ml3p()
323 np = p->next; in l3ml3p()
324 st->l3.l3ml3(st, pr, p); in l3ml3p()
325 p = np; in l3ml3p()