Lines Matching refs:frame
264 unsigned char *frame; in x25_decode() local
268 frame = skb->data; in x25_decode()
272 switch (frame[2]) { in x25_decode()
286 return frame[2]; in x25_decode()
290 if (frame[2] == X25_RR || in x25_decode()
291 frame[2] == X25_RNR || in x25_decode()
292 frame[2] == X25_REJ) { in x25_decode()
295 frame = skb->data; in x25_decode()
297 *nr = (frame[3] >> 1) & 0x7F; in x25_decode()
298 return frame[2]; in x25_decode()
301 if ((frame[2] & 0x1F) == X25_RR || in x25_decode()
302 (frame[2] & 0x1F) == X25_RNR || in x25_decode()
303 (frame[2] & 0x1F) == X25_REJ) { in x25_decode()
304 *nr = (frame[2] >> 5) & 0x07; in x25_decode()
305 return frame[2] & 0x1F; in x25_decode()
310 if ((frame[2] & 0x01) == X25_DATA) { in x25_decode()
313 frame = skb->data; in x25_decode()
315 *q = (frame[0] & X25_Q_BIT) == X25_Q_BIT; in x25_decode()
316 *d = (frame[0] & X25_D_BIT) == X25_D_BIT; in x25_decode()
317 *m = (frame[3] & X25_EXT_M_BIT) == X25_EXT_M_BIT; in x25_decode()
318 *nr = (frame[3] >> 1) & 0x7F; in x25_decode()
319 *ns = (frame[2] >> 1) & 0x7F; in x25_decode()
323 if ((frame[2] & 0x01) == X25_DATA) { in x25_decode()
324 *q = (frame[0] & X25_Q_BIT) == X25_Q_BIT; in x25_decode()
325 *d = (frame[0] & X25_D_BIT) == X25_D_BIT; in x25_decode()
326 *m = (frame[2] & X25_STD_M_BIT) == X25_STD_M_BIT; in x25_decode()
327 *nr = (frame[2] >> 5) & 0x07; in x25_decode()
328 *ns = (frame[2] >> 1) & 0x07; in x25_decode()
333 pr_debug("invalid PLP frame %3ph\n", frame); in x25_decode()