Lines Matching refs:rx_buff
177 iobuff_t rx_buff; /* receive unwrap state machine */ member
317 iobuff_t *rx_buff = &stir->rx_buff; in fir_eof() local
318 int len = rx_buff->len - 4; in fir_eof()
331 fcs = ~(crc32_le(~0, rx_buff->data, len)); in fir_eof()
332 if (fcs != get_unaligned_le32(rx_buff->data + len)) { in fir_eof()
348 skb_copy_to_linear_data(nskb, rx_buff->data, len); in fir_eof()
350 nskb = dev_alloc_skb(rx_buff->truesize); in fir_eof()
356 skb = rx_buff->skb; in fir_eof()
357 rx_buff->skb = nskb; in fir_eof()
358 rx_buff->head = nskb->data; in fir_eof()
372 rx_buff->data = rx_buff->head; in fir_eof()
373 rx_buff->len = 0; in fir_eof()
380 iobuff_t *rx_buff = &stir->rx_buff; in stir_fir_chars() local
386 switch(rx_buff->state) { in stir_fir_chars()
392 rx_buff->state = BEGIN_FRAME; in stir_fir_chars()
395 rx_buff->data = rx_buff->head; in stir_fir_chars()
396 rx_buff->len = 0; in stir_fir_chars()
405 rx_buff->state = INSIDE_FRAME; in stir_fir_chars()
413 rx_buff->state = INSIDE_FRAME; in stir_fir_chars()
414 rx_buff->in_frame = TRUE; in stir_fir_chars()
420 rx_buff->state = LINK_ESCAPE; in stir_fir_chars()
428 rx_buff->state = OUTSIDE_FRAME; in stir_fir_chars()
429 rx_buff->in_frame = FALSE; in stir_fir_chars()
437 if (unlikely(rx_buff->len >= rx_buff->truesize)) { in stir_fir_chars()
439 stir->netdev->name, rx_buff->truesize); in stir_fir_chars()
444 rx_buff->data[rx_buff->len++] = byte; in stir_fir_chars()
452 rx_buff->state = OUTSIDE_FRAME; in stir_fir_chars()
453 rx_buff->in_frame = FALSE; in stir_fir_chars()
465 &stir->rx_buff, bytes[i]); in stir_sir_chars()
679 stir->rx_buff.in_frame = FALSE; in receive_start()
680 stir->rx_buff.state = OUTSIDE_FRAME; in receive_start()
692 if (stir->rx_buff.in_frame) in receive_stop()
870 stir->rx_buff.truesize = IRDA_SKB_MAX_MTU; in stir_net_open()
871 stir->rx_buff.skb = dev_alloc_skb(IRDA_SKB_MAX_MTU); in stir_net_open()
872 if (!stir->rx_buff.skb) in stir_net_open()
875 skb_reserve(stir->rx_buff.skb, 1); in stir_net_open()
876 stir->rx_buff.head = stir->rx_buff.skb->data; in stir_net_open()
930 kfree_skb(stir->rx_buff.skb); in stir_net_open()
957 kfree_skb(stir->rx_buff.skb); in stir_net_close()