• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/wan/

Lines Matching defs:dlci

123 	int dlci;
164 static inline void dlci_to_q922(u8 *hdr, u16 dlci)
166 hdr[0] = (dlci >> 2) & 0xFC;
167 hdr[1] = ((dlci << 4) & 0xF0) | 0x01;
177 static inline pvc_device* find_pvc(hdlc_device *hdlc, u16 dlci)
182 if (pvc->dlci == dlci)
184 if (pvc->dlci > dlci)
193 static pvc_device* add_pvc(struct net_device *dev, u16 dlci)
199 if ((*pvc_p)->dlci == dlci)
201 if ((*pvc_p)->dlci > dlci)
213 pvc->dlci = dlci;
275 static int fr_hard_header(struct sk_buff **skb_p, u16 dlci)
336 dlci_to_q922(skb->data, dlci);
399 info.dlci = pvc->dlci;
431 if (!fr_hard_header(&skb, pvc->dlci)) {
451 pvc->dlci,
541 data[i] = pvc->dlci >> 8;
542 data[i + 1] = pvc->dlci & 0xFF;
544 data[i] = (pvc->dlci >> 4) & 0x3F;
545 data[i + 1] = ((pvc->dlci << 3) & 0x78) | 0x80;
798 u16 dlci;
819 dlci = (skb->data[i] << 8) | skb->data[i + 1];
824 dlci = ((skb->data[i] & 0x3F) << 4) |
829 pvc = add_pvc(dev, dlci);
882 u16 dlci;
889 dlci = q922_to_dlci(skb->data);
891 if ((dlci == LMI_CCITT_ANSI_DLCI &&
894 (dlci == LMI_CISCO_DLCI &&
902 pvc = find_pvc(hdlc, dlci);
906 frad->name, dlci);
915 dlci, fh->fecn ? "N" : "FF");
923 dlci, fh->becn ? "N" : "FF");
1068 static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type)
1075 if ((pvc = add_pvc(frad, dlci)) == NULL) {
1101 *(__be16*)dev->dev_addr = htons(dlci);
1102 dlci_to_q922(dev->broadcast, dlci);
1133 static int fr_del_pvc(hdlc_device *hdlc, unsigned int dlci, int type)
1138 if ((pvc = find_pvc(hdlc, dlci)) == NULL)
1273 if (pvc.dlci <= 0 || pvc.dlci >= 1024)
1284 return fr_add_pvc(dev, pvc.dlci, result);
1286 return fr_del_pvc(hdlc, pvc.dlci, result);