Lines Matching refs:rx_buff
210 iobuff_t *rx_buff) in async_bump() argument
222 docopy = ((rx_buff->skb == NULL) || in async_bump()
223 (rx_buff->len < IRDA_RX_COPY_THRESHOLD)); in async_bump()
226 newskb = dev_alloc_skb(docopy ? rx_buff->len + 1 : rx_buff->truesize); in async_bump()
242 skb_copy_to_linear_data(newskb, rx_buff->data, in async_bump()
243 rx_buff->len - 2); in async_bump()
248 dataskb = rx_buff->skb; in async_bump()
250 rx_buff->skb = newskb; in async_bump()
251 rx_buff->head = newskb->data; /* NOT newskb->head */ in async_bump()
256 skb_put(dataskb, rx_buff->len - 2); in async_bump()
266 stats->rx_bytes += rx_buff->len; in async_bump()
269 rx_buff->data = rx_buff->head; in async_bump()
270 rx_buff->len = 0; in async_bump()
282 iobuff_t *rx_buff, __u8 byte) in async_unwrap_bof() argument
284 switch(rx_buff->state) { in async_unwrap_bof()
304 rx_buff->state = BEGIN_FRAME; in async_unwrap_bof()
305 rx_buff->in_frame = TRUE; in async_unwrap_bof()
308 rx_buff->data = rx_buff->head; in async_unwrap_bof()
309 rx_buff->len = 0; in async_unwrap_bof()
310 rx_buff->fcs = INIT_FCS; in async_unwrap_bof()
322 iobuff_t *rx_buff, __u8 byte) in async_unwrap_eof() argument
328 switch(rx_buff->state) { in async_unwrap_eof()
343 rx_buff->state = OUTSIDE_FRAME; in async_unwrap_eof()
344 rx_buff->in_frame = FALSE; in async_unwrap_eof()
349 for(i = 0; i < rx_buff->len; i++) in async_unwrap_eof()
350 rx_buff->fcs = irda_fcs(rx_buff->fcs, in async_unwrap_eof()
351 rx_buff->data[i]); in async_unwrap_eof()
355 if (rx_buff->fcs == GOOD_FCS) { in async_unwrap_eof()
357 async_bump(dev, stats, rx_buff); in async_unwrap_eof()
380 iobuff_t *rx_buff, __u8 byte) in async_unwrap_ce() argument
382 switch(rx_buff->state) { in async_unwrap_ce()
396 rx_buff->state = LINK_ESCAPE; in async_unwrap_ce()
410 iobuff_t *rx_buff, __u8 byte) in async_unwrap_other() argument
412 switch(rx_buff->state) { in async_unwrap_other()
417 if (rx_buff->len < rx_buff->truesize) { in async_unwrap_other()
418 rx_buff->data[rx_buff->len++] = byte; in async_unwrap_other()
420 rx_buff->fcs = irda_fcs(rx_buff->fcs, byte); in async_unwrap_other()
425 rx_buff->state = OUTSIDE_FRAME; in async_unwrap_other()
435 if (rx_buff->len < rx_buff->truesize) { in async_unwrap_other()
436 rx_buff->data[rx_buff->len++] = byte; in async_unwrap_other()
438 rx_buff->fcs = irda_fcs(rx_buff->fcs, byte); in async_unwrap_other()
440 rx_buff->state = INSIDE_FRAME; in async_unwrap_other()
444 rx_buff->state = OUTSIDE_FRAME; in async_unwrap_other()
456 rx_buff->data[rx_buff->len++] = byte; in async_unwrap_other()
458 rx_buff->fcs = irda_fcs(rx_buff->fcs, byte); in async_unwrap_other()
460 rx_buff->state = INSIDE_FRAME; in async_unwrap_other()
474 iobuff_t *rx_buff, __u8 byte) in async_unwrap_char() argument
478 async_unwrap_ce(dev, stats, rx_buff, byte); in async_unwrap_char()
481 async_unwrap_bof(dev, stats, rx_buff, byte); in async_unwrap_char()
484 async_unwrap_eof(dev, stats, rx_buff, byte); in async_unwrap_char()
487 async_unwrap_other(dev, stats, rx_buff, byte); in async_unwrap_char()