• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wan/

Lines Matching defs:dlci

125 	int dlci;
167 static inline void dlci_to_q922(u8 *hdr, u16 dlci)
169 hdr[0] = (dlci >> 2) & 0xFC;
170 hdr[1] = ((dlci << 4) & 0xF0) | 0x01;
186 static inline pvc_device* find_pvc(hdlc_device *hdlc, u16 dlci)
191 if (pvc->dlci == dlci)
193 if (pvc->dlci > dlci)
202 static pvc_device* add_pvc(struct net_device *dev, u16 dlci)
208 if ((*pvc_p)->dlci == dlci)
210 if ((*pvc_p)->dlci > dlci)
223 pvc->dlci = dlci;
285 static int fr_hard_header(struct sk_buff **skb_p, u16 dlci)
346 dlci_to_q922(skb->data, dlci);
409 info.dlci = pvc->dlci;
450 if (!fr_hard_header(&skb, pvc->dlci)) {
482 pvc->dlci,
572 data[i] = pvc->dlci >> 8;
573 data[i + 1] = pvc->dlci & 0xFF;
575 data[i] = (pvc->dlci >> 4) & 0x3F;
576 data[i + 1] = ((pvc->dlci << 3) & 0x78) | 0x80;
829 u16 dlci;
850 dlci = (skb->data[i] << 8) | skb->data[i + 1];
855 dlci = ((skb->data[i] & 0x3F) << 4) |
860 pvc = add_pvc(dev, dlci);
913 u16 dlci;
920 dlci = q922_to_dlci(skb->data);
922 if ((dlci == LMI_CCITT_ANSI_DLCI &&
925 (dlci == LMI_CISCO_DLCI &&
933 pvc = find_pvc(hdlc, dlci);
937 frad->name, dlci);
946 dlci, fh->fecn ? "N" : "FF");
954 dlci, fh->becn ? "N" : "FF");
1090 static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type)
1101 if ((pvc = add_pvc(frad, dlci)) == NULL) {
1130 *(__be16*)dev->dev_addr = htons(dlci);
1131 dlci_to_q922(dev->broadcast, dlci);
1167 static int fr_del_pvc(hdlc_device *hdlc, unsigned int dlci, int type)
1172 if ((pvc = find_pvc(hdlc, dlci)) == NULL)
1308 if (pvc.dlci <= 0 || pvc.dlci >= 1024)
1319 return fr_add_pvc(dev, pvc.dlci, result);
1321 return fr_del_pvc(hdlc, pvc.dlci, result);