• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/isdn/hisax/

Lines Matching +defs:ident +defs:id

45 /* get a new invoke id for remote operations. */
55 retval = p->prot.dss1.last_invoke_id + 1; /* try new id */
71 /* free a used invoke id */
73 static void free_invoke_id(struct PStack *p, unsigned char id)
76 if (!id) return; /* 0 = invalid value */
78 p->prot.dss1.invoke_used[id >> 3] &= ~(1 << (id & 7));
110 /* search a process with invoke id id and dummy callref */
113 l3dss1_search_dummy_proc(struct PStack *st, int id)
116 if (!id) return(NULL);
119 { if ((pc->callref == -1) && (pc->prot.dss1.invoke_id == id))
128 /* and a return result is delivered. id specifies the invoke id. */
131 l3dss1_dummy_return_result(struct PStack *st, int id, u_char *p, u_char nlen)
136 if ((pc = l3dss1_search_dummy_proc(st, id)))
150 pc->prot.dss1.invoke_id = 0; /* reset id */
156 l3_debug(st, "dummy return result id=0x%x result len=%d",id,nlen);
161 /* and a return error is delivered. id specifies the invoke id. */
164 l3dss1_dummy_error_return(struct PStack *st, int id, ulong error)
169 if ((pc = l3dss1_search_dummy_proc(st, id)))
183 pc->prot.dss1.invoke_id = 0; /* reset id */
189 l3_debug(st, "dummy return error id=0x%x error=0x%lx",id,error);
194 /* and a invoke is delivered. id specifies the invoke id. */
197 l3dss1_dummy_invoke(struct PStack *st, int cr, int id,
198 int ident, u_char *p, u_char nlen)
202 l3_debug(st, "dummy invoke %s id=0x%x ident=0x%x datalen=%d",
203 (cr == -1) ? "local" : "broadcast",id,ident,nlen);
210 ic.parm.dss1_io.hl_id = id;
212 ic.parm.dss1_io.proc = ident;
226 int ident, id;
311 l3_debug(st, "invoke id length format 2");
321 id = 0;
323 { id = (id << 8) | (*p++ & 0xFF); /* invoke identifier */
346 ident = 0;
348 ident = (ident << 8) | (*p++ & 0xFF);
353 { l3dss1_dummy_invoke(st, cr, id, ident, p, nlen);
376 switch (ident) {
379 ident = 0;
382 ident = (ident << 8) | *p++;
385 if (ident > pc->para.chargeinfo) {
386 pc->para.chargeinfo = ident;
402 ident = 0;
405 ident = (ident << 8) | *p++;
408 if (ident > pc->para.chargeinfo) {
409 pc->para.chargeinfo = ident;
419 l3_debug(st, "invoke break invalid ident %02x",ident);
433 l3dss1_dummy_return_result(st, id, p, nlen);
436 if ((pc->prot.dss1.invoke_id) && (pc->prot.dss1.invoke_id == id))
478 l3dss1_dummy_error_return(st, id, err_ret);
481 if ((pc->prot.dss1.invoke_id) && (pc->prot.dss1.invoke_id == id))
1434 int id, ret;
1436 if ((id = l3dss1_get_channel_id(pc, skb)) >= 0) {
1437 if ((0 == id) || ((3 == id) && (0x10 == pc->para.moderate))) {
1439 l3_debug(pc->st, "setup answer with wrong chid %x", id);
1444 pc->para.bchannel = id;
1447 l3_debug(pc->st, "setup answer wrong chid (ret %d)", id);
1448 if (id == -1)
1473 int id, ret;
1475 if ((id = l3dss1_get_channel_id(pc, skb)) >= 0) {
1476 if ((0 == id) || ((3 == id) && (0x10 == pc->para.moderate))) {
1478 l3_debug(pc->st, "setup answer with wrong chid %x", id);
1483 pc->para.bchannel = id;
1486 l3_debug(pc->st, "setup answer wrong chid (ret %d)", id);
1487 if (id == -1)
1591 int id;
1670 if ((id = l3dss1_get_channel_id(pc, skb)) >= 0) {
1671 if ((pc->para.bchannel = id)) {
1672 if ((3 == id) && (0x10 == pc->para.moderate)) {
1675 id);
1688 l3_debug(pc->st, "setup with wrong chid ret %d", id);
1689 if (id == -1)
2119 *p++ = 0x02; /* invoke id tag, integer */
2121 *p++ = pc->prot.dss1.invoke_id; /* invoke id */
2168 { u_char id;
2185 if (!(id = new_invoke_id(st)))
2186 return(0); /* first get a invoke id -> return if no available */
2195 *p++ = 0x02; /* invoke id tag */
2197 *p++ = id; /* invoke id */
2208 { free_invoke_id(st, id);
2211 pc->prot.dss1.ll_id = ic->parm.dss1_io.ll_id; /* remember id */
2215 { free_invoke_id(st, id);
2222 { pc->prot.dss1.invoke_id = id; /* remember id */
2227 ic->parm.dss1_io.hl_id = id; /* return id */
2237 { l3_debug(st, "l3dss1_cmd_global abort unknown id");
2266 pc->prot.dss1.invoke_id = 0; /* reset id */
2616 int id, ret;
2618 if ((id = l3dss1_get_channel_id(pc, skb)) > 0) {
2619 if ((0 == id) || ((3 == id) && (0x10 == pc->para.moderate))) {
2621 l3_debug(pc->st, "resume ack with wrong chid %x", id);
2626 pc->para.bchannel = id;
2629 l3_debug(pc->st, "resume ack without chid (ret %d)", id);