Lines Matching refs:msdu_size
692 u16 msdu_size = atmel_rmem16(priv, atmel_tx(priv, TX_DESC_SIZE_OFFSET, priv->tx_desc_head)); in tx_done_irq() local
697 priv->tx_free_mem += msdu_size; in tx_done_irq()
700 if (priv->tx_buff_head + msdu_size > (priv->host_info.tx_buff_pos + priv->host_info.tx_buff_size)) in tx_done_irq()
703 priv->tx_buff_head += msdu_size; in tx_done_irq()
895 u16 msdu_size, u16 rx_packet_loc, u32 crc) in fast_rx_path() argument
904 msdu_size -= 6; in fast_rx_path()
908 msdu_size -= 4; in fast_rx_path()
911 if (!(skb = dev_alloc_skb(msdu_size + 14))) { in fast_rx_path()
917 skbp = skb_put(skb, msdu_size + 12); in fast_rx_path()
918 atmel_copy_to_host(priv->dev, skbp + 12, rx_packet_loc + 30, msdu_size); in fast_rx_path()
922 crc = crc32_le(crc, skbp + 12, msdu_size); in fast_rx_path()
923 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + 30 + msdu_size, 4); in fast_rx_path()
940 priv->dev->stats.rx_bytes += 12 + msdu_size; in fast_rx_path()
947 static int probe_crc(struct atmel_private *priv, u16 packet_loc, u16 msdu_size) in probe_crc() argument
949 int i = msdu_size - 4; in probe_crc()
952 if (msdu_size < 4) in probe_crc()
968 u16 msdu_size, u16 rx_packet_loc, u32 crc, u16 seq_no, in frag_rx_path() argument
983 msdu_size -= 4; in frag_rx_path()
987 msdu_size -= 6; in frag_rx_path()
995 priv->frag_len = msdu_size; in frag_rx_path()
1000 atmel_copy_to_host(priv->dev, &priv->rx_buf[12], rx_packet_loc, msdu_size); in frag_rx_path()
1004 crc = crc32_le(crc, &priv->rx_buf[12], msdu_size); in frag_rx_path()
1005 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + msdu_size, 4); in frag_rx_path()
1017 rx_packet_loc, msdu_size); in frag_rx_path()
1022 msdu_size); in frag_rx_path()
1023 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + msdu_size, 4); in frag_rx_path()
1031 priv->frag_len += msdu_size; in frag_rx_path()
1064 u16 msdu_size, rx_packet_loc, frame_ctl, seq_control; in rx_done_irq() local
1076 msdu_size = atmel_rmem16(priv, atmel_rx(priv, RX_DESC_MSDU_SIZE_OFFSET, priv->rx_desc_head)); in rx_done_irq()
1079 if (msdu_size < 30) { in rx_done_irq()
1094 priv->do_rx_crc = probe_crc(priv, rx_packet_loc, msdu_size); in rx_done_irq()
1096 priv->do_rx_crc = probe_crc(priv, rx_packet_loc + 24, msdu_size - 24); in rx_done_irq()
1111 msdu_size -= 24; /* header */ in rx_done_irq()
1119 fast_rx_path(priv, &header, msdu_size, rx_packet_loc, crc); in rx_done_irq()
1121 frag_rx_path(priv, &header, msdu_size, rx_packet_loc, crc, in rx_done_irq()
1128 atmel_copy_to_host(priv->dev, (unsigned char *)&priv->rx_buf, rx_packet_loc + 24, msdu_size); in rx_done_irq()
1135 msdu_size -= 4; in rx_done_irq()
1136 crc = crc32_le(crc, (unsigned char *)&priv->rx_buf, msdu_size); in rx_done_irq()
1137 if ((crc ^ 0xffffffff) != (*((u32 *)&priv->rx_buf[msdu_size]))) { in rx_done_irq()
1143 atmel_management_frame(priv, &header, msdu_size, in rx_done_irq()