tag | line | file | source code |
ippp_table | 563 | drivers/isdn/isdn_net.c | if (ippp_table[lp->ppp_minor].mpppcfg & |
ippp_table | 565 | drivers/isdn/isdn_net.c | if (ippp_table[lp->ppp_minor].mpppcfg & |
ippp_table | 1116 | drivers/isdn/isdn_net.c | if (ippp_table[lp->ppp_minor].mpppcfg & |
ippp_table | 1118 | drivers/isdn/isdn_net.c | if (ippp_table[lp->ppp_minor].mpppcfg & |
ippp_table | 72 | drivers/isdn/isdn_ppp.c | struct ippp_struct *ippp_table = (struct ippp_struct *) 0; |
ippp_table | 106 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "isdn_ppp_free %d %lx %lx\n", lp->ppp_minor, (long) lp,(long) ippp_table[lp->ppp_minor].lp); |
ippp_table | 108 | drivers/isdn/isdn_ppp.c | ippp_table[lp->ppp_minor].lp = NULL; |
ippp_table | 129 | drivers/isdn/isdn_ppp.c | if (ippp_table[i].state == IPPP_OPEN) { /* OPEN, but not connected! */ |
ippp_table | 143 | drivers/isdn/isdn_ppp.c | ippp_table[lp->ppp_minor].lp = lp; |
ippp_table | 147 | drivers/isdn/isdn_ppp.c | ippp_table[lp->ppp_minor].unit = unit; |
ippp_table | 149 | drivers/isdn/isdn_ppp.c | ippp_table[lp->ppp_minor].state = IPPP_OPEN | IPPP_CONNECT | IPPP_NOBLOCK; |
ippp_table | 156 | drivers/isdn/isdn_ppp.c | if (ippp_table[lp->ppp_minor].wq) |
ippp_table | 157 | drivers/isdn/isdn_ppp.c | wake_up_interruptible(&ippp_table[lp->ppp_minor].wq); |
ippp_table | 167 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor].state && ippp_table[minor].wq) |
ippp_table | 168 | drivers/isdn/isdn_ppp.c | wake_up_interruptible(&ippp_table[minor].wq); |
ippp_table | 170 | drivers/isdn/isdn_ppp.c | ippp_table[minor].state = IPPP_CLOSEWAIT; |
ippp_table | 181 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "ippp, open, minor: %d state: %04x\n", minor,ippp_table[minor].state); |
ippp_table | 183 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor].state) |
ippp_table | 186 | drivers/isdn/isdn_ppp.c | ippp_table[minor].lp = 0; |
ippp_table | 187 | drivers/isdn/isdn_ppp.c | ippp_table[minor].mp_seqno = 0; /* MP sequence number */ |
ippp_table | 188 | drivers/isdn/isdn_ppp.c | ippp_table[minor].pppcfg = 0; /* ppp configuration */ |
ippp_table | 189 | drivers/isdn/isdn_ppp.c | ippp_table[minor].mpppcfg = 0; /* mppp configuration */ |
ippp_table | 190 | drivers/isdn/isdn_ppp.c | ippp_table[minor].range = 0x1000000; /* MP: 24 bit range */ |
ippp_table | 191 | drivers/isdn/isdn_ppp.c | ippp_table[minor].last_link_seqno = -1; /* MP: maybe set to Bundle-MIN, when joining a bundle ?? */ |
ippp_table | 192 | drivers/isdn/isdn_ppp.c | ippp_table[minor].unit = -1; /* set, when we have our interface */ |
ippp_table | 193 | drivers/isdn/isdn_ppp.c | ippp_table[minor].mru = 1524; /* MRU, default 1524 */ |
ippp_table | 194 | drivers/isdn/isdn_ppp.c | ippp_table[minor].maxcid = 16; /* VJ: maxcid */ |
ippp_table | 195 | drivers/isdn/isdn_ppp.c | ippp_table[minor].tk = current; |
ippp_table | 196 | drivers/isdn/isdn_ppp.c | ippp_table[minor].wq = NULL; /* read() wait queue */ |
ippp_table | 197 | drivers/isdn/isdn_ppp.c | ippp_table[minor].wq1 = NULL; /* select() wait queue */ |
ippp_table | 198 | drivers/isdn/isdn_ppp.c | ippp_table[minor].first = ippp_table[minor].rq + NUM_RCV_BUFFS - 1; /* receive queue */ |
ippp_table | 199 | drivers/isdn/isdn_ppp.c | ippp_table[minor].last = ippp_table[minor].rq; |
ippp_table | 204 | drivers/isdn/isdn_ppp.c | ippp_table[minor].cbuf = kmalloc(ippp_table[minor].mru + PPP_HARD_HDR_LEN + 2, GFP_KERNEL); |
ippp_table | 206 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor].cbuf == NULL) { |
ippp_table | 210 | drivers/isdn/isdn_ppp.c | ippp_table[minor].slcomp = slhc_init(16, 16); /* not necessary for 2. link in bundle */ |
ippp_table | 213 | drivers/isdn/isdn_ppp.c | ippp_table[minor].state = IPPP_OPEN; |
ippp_table | 226 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG "ippp: release, minor: %d %lx\n", minor, (long) ippp_table[minor].lp); |
ippp_table | 229 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor].lp) { /* a lp address says: this link is still up */ |
ippp_table | 232 | drivers/isdn/isdn_ppp.c | if(&p->local == ippp_table[minor].lp) |
ippp_table | 238 | drivers/isdn/isdn_ppp.c | p = ippp_table[minor].lp->netdev; |
ippp_table | 240 | drivers/isdn/isdn_ppp.c | ippp_table[minor].lp->ppp_minor = -1; |
ippp_table | 242 | drivers/isdn/isdn_ppp.c | ippp_table[minor].lp = NULL; |
ippp_table | 245 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor].rq[i].buf) |
ippp_table | 246 | drivers/isdn/isdn_ppp.c | kfree(ippp_table[minor].rq[i].buf); |
ippp_table | 250 | drivers/isdn/isdn_ppp.c | slhc_free(ippp_table[minor].slcomp); |
ippp_table | 251 | drivers/isdn/isdn_ppp.c | kfree(ippp_table[minor].cbuf); |
ippp_table | 254 | drivers/isdn/isdn_ppp.c | ippp_table[minor].state = 0; |
ippp_table | 282 | drivers/isdn/isdn_ppp.c | printk(KERN_DEBUG " state: %x\n",ippp_table[minor].state); |
ippp_table | 285 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor].state & IPPP_OPEN)) |
ippp_table | 299 | drivers/isdn/isdn_ppp.c | (int) minor, (int) ippp_table[minor].unit, (int) val); |
ippp_table | 306 | drivers/isdn/isdn_ppp.c | if ((r = set_arg((void *) arg, ippp_table[minor].unit))) |
ippp_table | 310 | drivers/isdn/isdn_ppp.c | if ((r = set_arg((void *) arg, ippp_table[minor].mpppcfg))) |
ippp_table | 316 | drivers/isdn/isdn_ppp.c | ippp_table[minor].mpppcfg = val; |
ippp_table | 319 | drivers/isdn/isdn_ppp.c | if ((r = set_arg((void *) arg, ippp_table[minor].pppcfg))) |
ippp_table | 326 | drivers/isdn/isdn_ppp.c | if (val & SC_ENABLE_IP && !(ippp_table[minor].pppcfg & SC_ENABLE_IP)) { |
ippp_table | 327 | drivers/isdn/isdn_ppp.c | ippp_table[minor].lp->netdev->dev.tbusy = 0; |
ippp_table | 330 | drivers/isdn/isdn_ppp.c | ippp_table[minor].pppcfg = val; |
ippp_table | 341 | drivers/isdn/isdn_ppp.c | ippp_table[minor].mru = val; |
ippp_table | 350 | drivers/isdn/isdn_ppp.c | ippp_table[minor].maxcid = val; |
ippp_table | 371 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor].state & IPPP_OPEN)) |
ippp_table | 378 | drivers/isdn/isdn_ppp.c | bl = ippp_table[minor].last; |
ippp_table | 379 | drivers/isdn/isdn_ppp.c | bf = ippp_table[minor].first; |
ippp_table | 380 | drivers/isdn/isdn_ppp.c | if (bf->next == bl && !(ippp_table[minor].state & IPPP_NOBLOCK)) { |
ippp_table | 381 | drivers/isdn/isdn_ppp.c | select_wait(&ippp_table[minor].wq, st); |
ippp_table | 385 | drivers/isdn/isdn_ppp.c | ippp_table[minor].state &= ~IPPP_NOBLOCK; |
ippp_table | 392 | drivers/isdn/isdn_ppp.c | select_wait(&ippp_table[minor].wq1, st); |
ippp_table | 411 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor].state & IPPP_CONNECT)) { |
ippp_table | 418 | drivers/isdn/isdn_ppp.c | bf = ippp_table[minor].first; |
ippp_table | 419 | drivers/isdn/isdn_ppp.c | bl = ippp_table[minor].last; |
ippp_table | 425 | drivers/isdn/isdn_ppp.c | ippp_table[minor].first = bf; |
ippp_table | 437 | drivers/isdn/isdn_ppp.c | ippp_table[minor].last = bl->next; |
ippp_table | 440 | drivers/isdn/isdn_ppp.c | if (ippp_table[minor].wq) |
ippp_table | 441 | drivers/isdn/isdn_ppp.c | wake_up_interruptible(&ippp_table[minor].wq); |
ippp_table | 453 | drivers/isdn/isdn_ppp.c | struct ippp_struct *c = &ippp_table[minor]; |
ippp_table | 458 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor].state & IPPP_OPEN)) |
ippp_table | 491 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[minor].state & IPPP_CONNECT)) |
ippp_table | 494 | drivers/isdn/isdn_ppp.c | lp = ippp_table[minor].lp; |
ippp_table | 521 | drivers/isdn/isdn_ppp.c | if (!(ippp_table = (struct ippp_struct *) |
ippp_table | 526 | drivers/isdn/isdn_ppp.c | memset((char *) ippp_table, 0, sizeof(struct ippp_struct) * ISDN_MAX_CHANNELS); |
ippp_table | 528 | drivers/isdn/isdn_ppp.c | ippp_table[i].state = 0; |
ippp_table | 529 | drivers/isdn/isdn_ppp.c | ippp_table[i].first = ippp_table[i].rq + NUM_RCV_BUFFS - 1; |
ippp_table | 530 | drivers/isdn/isdn_ppp.c | ippp_table[i].last = ippp_table[i].rq; |
ippp_table | 533 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].buf = NULL; |
ippp_table | 534 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].last = ippp_table[i].rq + |
ippp_table | 536 | drivers/isdn/isdn_ppp.c | ippp_table[i].rq[j].next = ippp_table[i].rq + (j + 1) % NUM_RCV_BUFFS; |
ippp_table | 544 | drivers/isdn/isdn_ppp.c | kfree(ippp_table); |
ippp_table | 559 | drivers/isdn/isdn_ppp.c | else if (ippp_table[lp->ppp_minor].pppcfg & SC_REJ_COMP_AC) |
ippp_table | 563 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[lp->ppp_minor].mpppcfg & SC_REJ_MP_PROT)) { |
ippp_table | 582 | drivers/isdn/isdn_ppp.c | if (!(ippp_table[lp->ppp_minor].mpppcfg & SC_IN_SHORT_SEQ)) { |
ippp_table | 590 | drivers/isdn/isdn_ppp.c | if ((tseq = ippp_table[lp->ppp_minor].last_link_seqno) >= sqno) { |
ippp_table | 591 | drivers/isdn/isdn_ppp.c | int range = ippp_table[lp->ppp_minor].range; |
ippp_table | 596 | drivers/isdn/isdn_ppp.c | ippp_table[lp->ppp_minor].last_link_seqno = sqno; |
ippp_table | 599 | drivers/isdn/isdn_ppp.c | ippp_table[lp->ppp_minor].last_link_seqno = sqno; |
ippp_table | 602 | drivers/isdn/isdn_ppp.c | if (ippp_table[lpq->ppp_minor].last_link_seqno > min_sqno) |
ippp_table | 603 | drivers/isdn/isdn_ppp.c | min_sqno = ippp_table[lpq->ppp_minor].last_link_seqno; |
ippp_table | 608 | drivers/isdn/isdn_ppp.c | if (min_sqno >= ippp_table[lpq->ppp_minor].range) { /* OK, every link overflowed */ |
ippp_table | 609 | drivers/isdn/isdn_ppp.c | int mask = ippp_table[lpq->ppp_minor].range - 1; /* range is a power of 2 */ |
ippp_table | 622 | drivers/isdn/isdn_ppp.c | ippp_table[lpq->ppp_minor].last_link_seqno &= mask; |
ippp_table | 732 | drivers/isdn/isdn_ppp.c | slhc_remember(ippp_table[net_dev->local.ppp_minor].slcomp, skb->data, skb->len); |
ippp_table | 755 | drivers/isdn/isdn_ppp.c | pkt_len = slhc_uncompress(ippp_table[net_dev->local.ppp_minor].slcomp, |
ippp_table | 795 | drivers/isdn/isdn_ppp.c | struct ippp_struct *ipt = ippp_table + lp->ppp_minor; |
ippp_table | 796 | drivers/isdn/isdn_ppp.c | struct ippp_struct *ipts = ippp_table + lp->netdev->local.ppp_minor; |
ippp_table | 914 | drivers/isdn/isdn_ppp.c | nlp = ippp_table[minor].lp; |
ippp_table | 926 | drivers/isdn/isdn_ppp.c | ippp_table[nlp->ppp_minor].unit = ippp_table[lp->ppp_minor].unit; |
ippp_table | 928 | drivers/isdn/isdn_ppp.c | ippp_table[nlp->ppp_minor].pppcfg |= ippp_table[lp->ppp_minor].pppcfg & |
ippp_table | 931 | drivers/isdn/isdn_ppp.c | ippp_table[nlp->ppp_minor].mpppcfg |= ippp_table[lp->ppp_minor].mpppcfg & |
ippp_table | 934 | drivers/isdn/isdn_ppp.c | if (ippp_table[nlp->ppp_minor].mpppcfg != ippp_table[lp->ppp_minor].mpppcfg) { |
ippp_table | 936 | drivers/isdn/isdn_ppp.c | ippp_table[nlp->ppp_minor].mpppcfg, ippp_table[lp->ppp_minor].mpppcfg); |
ippp_table | 44 | drivers/isdn/isdn_ppp.h | extern struct ippp_struct *ippp_table; |