Lines Matching refs:frame
99 unsigned char *frame; in ax25_decode() local
102 frame = skb->data; in ax25_decode()
106 if ((frame[0] & AX25_S) == 0) { in ax25_decode()
108 *ns = (frame[0] >> 1) & 0x07; in ax25_decode()
109 *nr = (frame[0] >> 5) & 0x07; in ax25_decode()
110 *pf = frame[0] & AX25_PF; in ax25_decode()
111 } else if ((frame[0] & AX25_U) == 1) { /* S frame - take out PF/NR */ in ax25_decode()
112 frametype = frame[0] & 0x0F; in ax25_decode()
113 *nr = (frame[0] >> 5) & 0x07; in ax25_decode()
114 *pf = frame[0] & AX25_PF; in ax25_decode()
115 } else if ((frame[0] & AX25_U) == 3) { /* U frame - take out PF */ in ax25_decode()
116 frametype = frame[0] & ~AX25_PF; in ax25_decode()
117 *pf = frame[0] & AX25_PF; in ax25_decode()
121 if ((frame[0] & AX25_S) == 0) { in ax25_decode()
123 *ns = (frame[0] >> 1) & 0x7F; in ax25_decode()
124 *nr = (frame[1] >> 1) & 0x7F; in ax25_decode()
125 *pf = frame[1] & AX25_EPF; in ax25_decode()
127 } else if ((frame[0] & AX25_U) == 1) { /* S frame - take out PF/NR */ in ax25_decode()
128 frametype = frame[0] & 0x0F; in ax25_decode()
129 *nr = (frame[1] >> 1) & 0x7F; in ax25_decode()
130 *pf = frame[1] & AX25_EPF; in ax25_decode()
132 } else if ((frame[0] & AX25_U) == 3) { /* U frame - take out PF */ in ax25_decode()
133 frametype = frame[0] & ~AX25_PF; in ax25_decode()
134 *pf = frame[0] & AX25_PF; in ax25_decode()