Lines Matching refs:lmi

333 		if (state(hdlc)->settings.lmi == LMI_NONE)  in pvc_open()
349 if (state(hdlc)->settings.lmi == LMI_NONE) in pvc_close()
461 int lmi = state(hdlc)->settings.lmi; in fr_lmi_send() local
463 int len = lmi == LMI_ANSI ? LMI_ANSI_LENGTH : LMI_CCITT_CISCO_LENGTH; in fr_lmi_send()
464 int stat_len = (lmi == LMI_CISCO) ? 6 : 3; in fr_lmi_send()
482 if (lmi == LMI_CISCO) in fr_lmi_send()
490 if (lmi == LMI_ANSI) in fr_lmi_send()
492 data[i++] = lmi == LMI_CCITT ? LMI_CCITT_REPTYPE : in fr_lmi_send()
496 data[i++] = lmi == LMI_CCITT ? LMI_CCITT_ALIVE : LMI_ANSI_CISCO_ALIVE; in fr_lmi_send()
504 data[i++] = lmi == LMI_CCITT ? LMI_CCITT_PVCSTAT : in fr_lmi_send()
522 if (lmi == LMI_CISCO) { in fr_lmi_send()
561 if (state(hdlc)->settings.lmi == LMI_NONE) { in fr_set_link_state()
638 int lmi = state(hdlc)->settings.lmi; in fr_lmi_recv() local
640 int stat_len = (lmi == LMI_CISCO) ? 6 : 3, reptype, error, no_ram, i; in fr_lmi_recv()
642 if (skb->len < (lmi == LMI_ANSI ? LMI_ANSI_LENGTH : in fr_lmi_recv()
648 if (skb->data[3] != (lmi == LMI_CISCO ? NLPID_CISCO_LMI : in fr_lmi_recv()
666 if (lmi == LMI_ANSI) { in fr_lmi_recv()
677 if (skb->data[i] != (lmi == LMI_CCITT ? LMI_CCITT_REPTYPE : in fr_lmi_recv()
697 if (skb->data[++i] != (lmi == LMI_CCITT ? LMI_CCITT_ALIVE : in fr_lmi_recv()
778 if (skb->data[i] != (lmi == LMI_CCITT ? LMI_CCITT_PVCSTAT : in fr_lmi_recv()
794 if (lmi == LMI_CISCO) { in fr_lmi_recv()
905 (state(hdlc)->settings.lmi == LMI_ANSI || in fr_rx()
906 state(hdlc)->settings.lmi == LMI_CCITT)) || in fr_rx()
908 state(hdlc)->settings.lmi == LMI_CISCO)) { in fr_rx()
1002 if (state(hdlc)->settings.lmi != LMI_NONE) { in fr_start()
1027 if (state(hdlc)->settings.lmi != LMI_NONE) in fr_stop()
1216 if (new_settings.lmi == LMI_DEFAULT) in fr_ioctl()
1217 new_settings.lmi = LMI_ANSI; in fr_ioctl()
1219 if ((new_settings.lmi != LMI_NONE && in fr_ioctl()
1220 new_settings.lmi != LMI_ANSI && in fr_ioctl()
1221 new_settings.lmi != LMI_CCITT && in fr_ioctl()
1222 new_settings.lmi != LMI_CISCO) || in fr_ioctl()