Lines Matching refs:reqbuf
37 idi_assign_req(eicon_REQ *reqbuf, int signet, eicon_chan *chan) in idi_assign_req() argument
45 reqbuf->XBuffer.P[l++] = CAI; in idi_assign_req()
46 reqbuf->XBuffer.P[l++] = 1; in idi_assign_req()
47 reqbuf->XBuffer.P[l++] = 0; in idi_assign_req()
48 reqbuf->XBuffer.P[l++] = KEY; in idi_assign_req()
49 reqbuf->XBuffer.P[l++] = 3; in idi_assign_req()
50 reqbuf->XBuffer.P[l++] = 'I'; in idi_assign_req()
51 reqbuf->XBuffer.P[l++] = '4'; in idi_assign_req()
52 reqbuf->XBuffer.P[l++] = 'L'; in idi_assign_req()
53 reqbuf->XBuffer.P[l++] = SHIFT|6; in idi_assign_req()
54 reqbuf->XBuffer.P[l++] = SIN; in idi_assign_req()
55 reqbuf->XBuffer.P[l++] = 2; in idi_assign_req()
56 reqbuf->XBuffer.P[l++] = 0; in idi_assign_req()
57 reqbuf->XBuffer.P[l++] = 0; in idi_assign_req()
58 reqbuf->XBuffer.P[l++] = 0; /* end */ in idi_assign_req()
59 reqbuf->Req = ASSIGN; in idi_assign_req()
60 reqbuf->ReqCh = 0; in idi_assign_req()
61 reqbuf->ReqId = DSIG_ID; in idi_assign_req()
62 reqbuf->XBuffer.length = l; in idi_assign_req()
63 reqbuf->Reference = 0; /* Sig Entity */ in idi_assign_req()
67 reqbuf->XBuffer.P[l++] = CAI; in idi_assign_req()
68 reqbuf->XBuffer.P[l++] = 1; in idi_assign_req()
69 reqbuf->XBuffer.P[l++] = chan->e.D3Id; in idi_assign_req()
70 reqbuf->XBuffer.P[l++] = LLC; in idi_assign_req()
71 reqbuf->XBuffer.P[l++] = 2; in idi_assign_req()
77 reqbuf->XBuffer.P[l++] = 2; /* transparent */ in idi_assign_req()
82 reqbuf->XBuffer.P[l++] = 5; /* X.75 */ in idi_assign_req()
86 reqbuf->XBuffer.P[l++] = 9; /* V.42 incoming */ in idi_assign_req()
88 reqbuf->XBuffer.P[l++] = 10; /* V.42 */ in idi_assign_req()
93 reqbuf->XBuffer.P[l++] = 3; /* autoconnect on incoming */ in idi_assign_req()
95 reqbuf->XBuffer.P[l++] = 2; /* transparent */ in idi_assign_req()
98 reqbuf->XBuffer.P[l++] = 1; in idi_assign_req()
103 reqbuf->XBuffer.P[l++] = 6; in idi_assign_req()
104 reqbuf->XBuffer.P[l++] = NLC; in idi_assign_req()
105 tmp = idi_fill_in_T30(chan, &reqbuf->XBuffer.P[l+1]); in idi_assign_req()
106 reqbuf->XBuffer.P[l++] = tmp; in idi_assign_req()
112 reqbuf->XBuffer.P[l++] = 4; in idi_assign_req()
114 reqbuf->XBuffer.P[l++] = 0; /* end */ in idi_assign_req()
115 reqbuf->Req = ASSIGN; in idi_assign_req()
116 reqbuf->ReqCh = 0; in idi_assign_req()
117 reqbuf->ReqId = NL_ID; in idi_assign_req()
118 reqbuf->XBuffer.length = l; in idi_assign_req()
119 reqbuf->Reference = 1; /* Net Entity */ in idi_assign_req()
125 idi_put_req(eicon_REQ *reqbuf, int rq, int signet, int Ch) in idi_put_req() argument
127 reqbuf->Req = rq; in idi_put_req()
128 reqbuf->ReqCh = Ch; in idi_put_req()
129 reqbuf->ReqId = 1; in idi_put_req()
130 reqbuf->XBuffer.length = 1; in idi_put_req()
131 reqbuf->XBuffer.P[0] = 0; in idi_put_req()
132 reqbuf->Reference = signet; in idi_put_req()
137 idi_put_suspend_req(eicon_REQ *reqbuf, eicon_chan *chan) in idi_put_suspend_req() argument
139 reqbuf->Req = SUSPEND; in idi_put_suspend_req()
140 reqbuf->ReqCh = 0; in idi_put_suspend_req()
141 reqbuf->ReqId = 1; in idi_put_suspend_req()
142 reqbuf->XBuffer.P[0] = CAI; in idi_put_suspend_req()
143 reqbuf->XBuffer.P[1] = 1; in idi_put_suspend_req()
144 reqbuf->XBuffer.P[2] = chan->No; in idi_put_suspend_req()
145 reqbuf->XBuffer.P[3] = 0; in idi_put_suspend_req()
146 reqbuf->XBuffer.length = 4; in idi_put_suspend_req()
147 reqbuf->Reference = 0; /* Sig Entity */ in idi_put_suspend_req()
152 idi_call_res_req(eicon_REQ *reqbuf, eicon_chan *chan) in idi_call_res_req() argument
155 reqbuf->Req = CALL_RES; in idi_call_res_req()
156 reqbuf->ReqCh = 0; in idi_call_res_req()
157 reqbuf->ReqId = 1; in idi_call_res_req()
158 reqbuf->XBuffer.P[0] = CAI; in idi_call_res_req()
159 reqbuf->XBuffer.P[1] = 6; in idi_call_res_req()
160 reqbuf->XBuffer.P[2] = 9; in idi_call_res_req()
161 reqbuf->XBuffer.P[3] = 0; in idi_call_res_req()
162 reqbuf->XBuffer.P[4] = 0; in idi_call_res_req()
163 reqbuf->XBuffer.P[5] = 0; in idi_call_res_req()
164 reqbuf->XBuffer.P[6] = 32; in idi_call_res_req()
165 reqbuf->XBuffer.P[7] = 0; in idi_call_res_req()
171 reqbuf->XBuffer.P[1] = 1; in idi_call_res_req()
172 reqbuf->XBuffer.P[2] = 0x05; in idi_call_res_req()
176 reqbuf->XBuffer.P[2] = 0x0d; in idi_call_res_req()
177 reqbuf->XBuffer.P[3] = 5; in idi_call_res_req()
178 reqbuf->XBuffer.P[4] = 0; in idi_call_res_req()
181 reqbuf->XBuffer.P[2] = 0x0d; in idi_call_res_req()
182 reqbuf->XBuffer.P[3] = 6; in idi_call_res_req()
183 reqbuf->XBuffer.P[4] = 0; in idi_call_res_req()
186 reqbuf->XBuffer.P[2] = 0x0d; in idi_call_res_req()
187 reqbuf->XBuffer.P[3] = 7; in idi_call_res_req()
188 reqbuf->XBuffer.P[4] = 0; in idi_call_res_req()
191 reqbuf->XBuffer.P[2] = 0x11; in idi_call_res_req()
192 reqbuf->XBuffer.P[3] = 7; in idi_call_res_req()
193 reqbuf->XBuffer.P[4] = 0; in idi_call_res_req()
194 reqbuf->XBuffer.P[5] = 0; in idi_call_res_req()
195 reqbuf->XBuffer.P[6] = 128; in idi_call_res_req()
196 reqbuf->XBuffer.P[7] = 0; in idi_call_res_req()
199 reqbuf->XBuffer.P[2] = 0x10; in idi_call_res_req()
200 reqbuf->XBuffer.P[3] = 0; in idi_call_res_req()
201 reqbuf->XBuffer.P[4] = 0; in idi_call_res_req()
202 reqbuf->XBuffer.P[5] = 0; in idi_call_res_req()
203 reqbuf->XBuffer.P[6] = 128; in idi_call_res_req()
204 reqbuf->XBuffer.P[7] = 0; in idi_call_res_req()
209 reqbuf->XBuffer.P[2] = 22; /* DTMF, audio events on */ in idi_call_res_req()
213 reqbuf->XBuffer.P[8] = 0; in idi_call_res_req()
214 reqbuf->XBuffer.length = l; in idi_call_res_req()
215 reqbuf->Reference = 0; /* Sig Entity */ in idi_call_res_req()
225 eicon_REQ *reqbuf; in idi_do_req() local
243 reqbuf = (eicon_REQ *)skb_put(skb, 270 + sizeof(eicon_REQ)); in idi_do_req()
249 idi_assign_req(reqbuf, layer, chan); in idi_do_req()
253 idi_put_req(reqbuf, REMOVE, layer, 0); in idi_do_req()
256 idi_put_req(reqbuf, INDICATE_REQ, 0, 0); in idi_do_req()
259 idi_put_req(reqbuf, HANGUP, 0, 0); in idi_do_req()
262 idi_put_suspend_req(reqbuf, chan); in idi_do_req()
265 idi_put_req(reqbuf, RESUME, 0 ,0); in idi_do_req()
268 idi_put_req(reqbuf, REJECT, 0 ,0); in idi_do_req()
271 idi_put_req(reqbuf, CALL_ALERT, 0, 0); in idi_do_req()
274 idi_call_res_req(reqbuf, chan); in idi_do_req()
277 idi_put_req(reqbuf, CALL_HOLD, 0, 0); in idi_do_req()
280 idi_put_req(reqbuf, N_CONNECT, 1, 0); in idi_do_req()
283 idi_put_req(reqbuf, N_CONNECT_ACK, 1, 0); in idi_do_req()
286 idi_put_req(reqbuf, N_DISC, 1, chan->e.IndCh); in idi_do_req()
289 idi_put_req(reqbuf, N_DISC_ACK, 1, chan->e.IndCh); in idi_do_req()
444 eicon_REQ *reqbuf; in idi_connect_req() local
465 reqbuf = (eicon_REQ *)skb_put(skb, 270 + sizeof(eicon_REQ)); in idi_connect_req()
466 reqbuf->Req = CALL_REQ; in idi_connect_req()
467 reqbuf->ReqCh = 0; in idi_connect_req()
468 reqbuf->ReqId = 1; in idi_connect_req()
479 reqbuf->XBuffer.P[l++] = CPN; in idi_connect_req()
480 reqbuf->XBuffer.P[l++] = strlen(phone) + 1; in idi_connect_req()
481 reqbuf->XBuffer.P[l++] = 0x81; in idi_connect_req()
483 reqbuf->XBuffer.P[l++] = phone[i] & 0x7f; in idi_connect_req()
485 reqbuf->XBuffer.P[l++] = DSA; in idi_connect_req()
486 reqbuf->XBuffer.P[l++] = strlen(sub) + 2; in idi_connect_req()
487 reqbuf->XBuffer.P[l++] = 0x80; /* NSAP coded */ in idi_connect_req()
488 reqbuf->XBuffer.P[l++] = 0x50; /* local IDI format */ in idi_connect_req()
490 reqbuf->XBuffer.P[l++] = *sub++ & 0x7f; in idi_connect_req()
502 reqbuf->XBuffer.P[l++] = OAD; in idi_connect_req()
503 reqbuf->XBuffer.P[l++] = strlen(eazmsn) + 2; in idi_connect_req()
504 reqbuf->XBuffer.P[l++] = 0x01; in idi_connect_req()
505 reqbuf->XBuffer.P[l++] = 0x80; in idi_connect_req()
507 reqbuf->XBuffer.P[l++] = eazmsn[i] & 0x7f; in idi_connect_req()
509 reqbuf->XBuffer.P[l++] = OSA; in idi_connect_req()
510 reqbuf->XBuffer.P[l++] = strlen(sub) + 2; in idi_connect_req()
511 reqbuf->XBuffer.P[l++] = 0x80; /* NSAP coded */ in idi_connect_req()
512 reqbuf->XBuffer.P[l++] = 0x50; /* local IDI format */ in idi_connect_req()
514 reqbuf->XBuffer.P[l++] = *sub++ & 0x7f; in idi_connect_req()
518 reqbuf->XBuffer.P[l++] = SHIFT|6; in idi_connect_req()
519 reqbuf->XBuffer.P[l++] = SIN; in idi_connect_req()
520 reqbuf->XBuffer.P[l++] = 2; in idi_connect_req()
521 reqbuf->XBuffer.P[l++] = si1; in idi_connect_req()
522 reqbuf->XBuffer.P[l++] = si2; in idi_connect_req()
525 reqbuf->XBuffer.P[l++] = BC; in idi_connect_req()
526 reqbuf->XBuffer.P[l++] = tmp; in idi_connect_req()
528 reqbuf->XBuffer.P[l++] = bc[i]; in idi_connect_req()
530 reqbuf->XBuffer.P[l++] = HLC; in idi_connect_req()
531 reqbuf->XBuffer.P[l++] = tmp; in idi_connect_req()
533 reqbuf->XBuffer.P[l++] = hlc[i]; in idi_connect_req()
537 reqbuf->XBuffer.P[l++] = CAI; in idi_connect_req()
538 reqbuf->XBuffer.P[l++] = 6; in idi_connect_req()
539 reqbuf->XBuffer.P[l++] = 0x09; in idi_connect_req()
540 reqbuf->XBuffer.P[l++] = 0; in idi_connect_req()
541 reqbuf->XBuffer.P[l++] = 0; in idi_connect_req()
542 reqbuf->XBuffer.P[l++] = 0; in idi_connect_req()
543 reqbuf->XBuffer.P[l++] = 32; in idi_connect_req()
544 reqbuf->XBuffer.P[l++] = 0; in idi_connect_req()
550 reqbuf->XBuffer.P[l-6] = 5; in idi_connect_req()
551 reqbuf->XBuffer.P[l-7] = 1; in idi_connect_req()
555 reqbuf->XBuffer.P[l-7] = 3; in idi_connect_req()
556 reqbuf->XBuffer.P[l-6] = 0x0d; in idi_connect_req()
557 reqbuf->XBuffer.P[l-5] = 5; in idi_connect_req()
558 reqbuf->XBuffer.P[l-4] = 0; in idi_connect_req()
562 reqbuf->XBuffer.P[l-7] = 3; in idi_connect_req()
563 reqbuf->XBuffer.P[l-6] = 0x0d; in idi_connect_req()
564 reqbuf->XBuffer.P[l-5] = 6; in idi_connect_req()
565 reqbuf->XBuffer.P[l-4] = 0; in idi_connect_req()
569 reqbuf->XBuffer.P[l-7] = 3; in idi_connect_req()
570 reqbuf->XBuffer.P[l-6] = 0x0d; in idi_connect_req()
571 reqbuf->XBuffer.P[l-5] = 7; in idi_connect_req()
572 reqbuf->XBuffer.P[l-4] = 0; in idi_connect_req()
576 reqbuf->XBuffer.P[l-6] = 0x11; in idi_connect_req()
577 reqbuf->XBuffer.P[l-5] = 7; in idi_connect_req()
578 reqbuf->XBuffer.P[l-4] = 0; in idi_connect_req()
579 reqbuf->XBuffer.P[l-3] = 0; in idi_connect_req()
580 reqbuf->XBuffer.P[l-2] = 128; in idi_connect_req()
581 reqbuf->XBuffer.P[l-1] = 0; in idi_connect_req()
584 reqbuf->XBuffer.P[l-6] = 0x10; in idi_connect_req()
585 reqbuf->XBuffer.P[l-5] = 0; in idi_connect_req()
586 reqbuf->XBuffer.P[l-4] = 0; in idi_connect_req()
587 reqbuf->XBuffer.P[l-3] = 0; in idi_connect_req()
588 reqbuf->XBuffer.P[l-2] = 128; in idi_connect_req()
589 reqbuf->XBuffer.P[l-1] = 0; in idi_connect_req()
594 reqbuf->XBuffer.P[l-6] = 22; /* DTMF, audio events on */ in idi_connect_req()
599 reqbuf->XBuffer.P[l++] = 0; /* end */ in idi_connect_req()
600 reqbuf->XBuffer.length = l; in idi_connect_req()
601 reqbuf->Reference = 0; /* Sig Entity */ in idi_connect_req()
1135 eicon_REQ *reqbuf; in idi_send_edata() local
1159 reqbuf = (eicon_REQ *)skb_put(skb, sizeof(eicon_t30_s) + sizeof(eicon_REQ)); in idi_send_edata()
1161 reqbuf->Req = N_EDATA; in idi_send_edata()
1162 reqbuf->ReqCh = chan->e.IndCh; in idi_send_edata()
1163 reqbuf->ReqId = 1; in idi_send_edata()
1165 reqbuf->XBuffer.length = idi_fill_in_T30(chan, reqbuf->XBuffer.P); in idi_send_edata()
1166 reqbuf->Reference = 1; /* Net Entity */ in idi_send_edata()
2137 eicon_REQ *reqbuf; in idi_send_udata() local
2162 reqbuf = (eicon_REQ *)skb_put(skb, 1 + len + sizeof(eicon_REQ)); in idi_send_udata()
2164 reqbuf->Req = N_UDATA; in idi_send_udata()
2165 reqbuf->ReqCh = chan->e.IndCh; in idi_send_udata()
2166 reqbuf->ReqId = 1; in idi_send_udata()
2168 reqbuf->XBuffer.length = len + 1; in idi_send_udata()
2169 reqbuf->XBuffer.P[0] = UReq; in idi_send_udata()
2170 memcpy(&reqbuf->XBuffer.P[1], buffer, len); in idi_send_udata()
2171 reqbuf->Reference = 1; /* Net Entity */ in idi_send_udata()
2937 eicon_REQ *reqbuf; in idi_send_data() local
2985 reqbuf = (eicon_REQ *)skb_put(xmit_skb, plen + sizeof(eicon_REQ)); in idi_send_data()
2987 reqbuf->Req = N_MDATA; in idi_send_data()
2989 reqbuf->Req = N_DATA; in idi_send_data()
2992 reqbuf->ReqCh = chan->e.IndCh; in idi_send_data()
2993 reqbuf->ReqId = 1; in idi_send_data()
2994 memcpy(&reqbuf->XBuffer.P, skb->data + offset, plen); in idi_send_data()
2995 reqbuf->XBuffer.length = plen; in idi_send_data()
2996 reqbuf->Reference = 1; /* Net Entity */ in idi_send_data()
3019 eicon_REQ *reqbuf; in eicon_idi_manage_assign() local
3040 reqbuf = (eicon_REQ *)skb_put(skb, 270 + sizeof(eicon_REQ)); in eicon_idi_manage_assign()
3042 reqbuf->XBuffer.P[0] = 0; in eicon_idi_manage_assign()
3043 reqbuf->Req = ASSIGN; in eicon_idi_manage_assign()
3044 reqbuf->ReqCh = 0; in eicon_idi_manage_assign()
3045 reqbuf->ReqId = MAN_ID; in eicon_idi_manage_assign()
3046 reqbuf->XBuffer.length = 1; in eicon_idi_manage_assign()
3047 reqbuf->Reference = 2; /* Man Entity */ in eicon_idi_manage_assign()
3061 eicon_REQ *reqbuf; in eicon_idi_manage_remove() local
3082 reqbuf = (eicon_REQ *)skb_put(skb, 270 + sizeof(eicon_REQ)); in eicon_idi_manage_remove()
3084 reqbuf->Req = REMOVE; in eicon_idi_manage_remove()
3085 reqbuf->ReqCh = 0; in eicon_idi_manage_remove()
3086 reqbuf->ReqId = 1; in eicon_idi_manage_remove()
3087 reqbuf->XBuffer.length = 0; in eicon_idi_manage_remove()
3088 reqbuf->Reference = 2; /* Man Entity */ in eicon_idi_manage_remove()
3106 eicon_REQ *reqbuf; in eicon_idi_manage() local
3161 reqbuf = (eicon_REQ *)skb_put(skb, 270 + sizeof(eicon_REQ)); in eicon_idi_manage()
3163 reqbuf->XBuffer.P[l++] = ESC; in eicon_idi_manage()
3164 reqbuf->XBuffer.P[l++] = 6; in eicon_idi_manage()
3165 reqbuf->XBuffer.P[l++] = 0x80; in eicon_idi_manage()
3167 reqbuf->XBuffer.P[l++] = manbuf->data[i]; in eicon_idi_manage()
3168 reqbuf->XBuffer.P[1] = manbuf->length[0] + 1; in eicon_idi_manage()
3170 reqbuf->XBuffer.P[l++] = 0; in eicon_idi_manage()
3171 reqbuf->Req = (manbuf->count) ? manbuf->count : MAN_READ; in eicon_idi_manage()
3172 reqbuf->ReqCh = 0; in eicon_idi_manage()
3173 reqbuf->ReqId = 1; in eicon_idi_manage()
3174 reqbuf->XBuffer.length = l; in eicon_idi_manage()
3175 reqbuf->Reference = 2; /* Man Entity */ in eicon_idi_manage()