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