Lines Matching refs:msdu_size
690 u16 msdu_size = atmel_rmem16(priv, atmel_tx(priv, TX_DESC_SIZE_OFFSET, priv->tx_desc_head)); in tx_done_irq() local
695 priv->tx_free_mem += msdu_size; in tx_done_irq()
698 if (priv->tx_buff_head + msdu_size > (priv->host_info.tx_buff_pos + priv->host_info.tx_buff_size)) in tx_done_irq()
701 priv->tx_buff_head += msdu_size; in tx_done_irq()
892 u16 msdu_size, u16 rx_packet_loc, u32 crc) in fast_rx_path() argument
901 msdu_size -= 6; in fast_rx_path()
905 msdu_size -= 4; in fast_rx_path()
908 if (!(skb = dev_alloc_skb(msdu_size + 14))) { in fast_rx_path()
914 skbp = skb_put(skb, msdu_size + 12); in fast_rx_path()
915 atmel_copy_to_host(priv->dev, skbp + 12, rx_packet_loc + 30, msdu_size); in fast_rx_path()
919 crc = crc32_le(crc, skbp + 12, msdu_size); in fast_rx_path()
920 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + 30 + msdu_size, 4); in fast_rx_path()
937 priv->dev->stats.rx_bytes += 12 + msdu_size; in fast_rx_path()
944 static int probe_crc(struct atmel_private *priv, u16 packet_loc, u16 msdu_size) in probe_crc() argument
946 int i = msdu_size - 4; in probe_crc()
949 if (msdu_size < 4) in probe_crc()
965 u16 msdu_size, u16 rx_packet_loc, u32 crc, u16 seq_no, in frag_rx_path() argument
980 msdu_size -= 4; in frag_rx_path()
984 msdu_size -= ETH_ALEN; in frag_rx_path()
992 priv->frag_len = msdu_size; in frag_rx_path()
997 atmel_copy_to_host(priv->dev, &priv->rx_buf[12], rx_packet_loc, msdu_size); in frag_rx_path()
1001 crc = crc32_le(crc, &priv->rx_buf[12], msdu_size); in frag_rx_path()
1002 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + msdu_size, 4); in frag_rx_path()
1014 rx_packet_loc, msdu_size); in frag_rx_path()
1019 msdu_size); in frag_rx_path()
1020 atmel_copy_to_host(priv->dev, (void *)&netcrc, rx_packet_loc + msdu_size, 4); in frag_rx_path()
1028 priv->frag_len += msdu_size; in frag_rx_path()
1060 u16 msdu_size, rx_packet_loc, frame_ctl, seq_control; in rx_done_irq() local
1072 msdu_size = atmel_rmem16(priv, atmel_rx(priv, RX_DESC_MSDU_SIZE_OFFSET, priv->rx_desc_head)); in rx_done_irq()
1075 if (msdu_size < 30) { in rx_done_irq()
1090 priv->do_rx_crc = probe_crc(priv, rx_packet_loc, msdu_size); in rx_done_irq()
1092 priv->do_rx_crc = probe_crc(priv, rx_packet_loc + 24, msdu_size - 24); in rx_done_irq()
1107 msdu_size -= 24; /* header */ in rx_done_irq()
1115 fast_rx_path(priv, &header, msdu_size, rx_packet_loc, crc); in rx_done_irq()
1117 frag_rx_path(priv, &header, msdu_size, rx_packet_loc, crc, in rx_done_irq()
1124 atmel_copy_to_host(priv->dev, (unsigned char *)&priv->rx_buf, rx_packet_loc + 24, msdu_size); in rx_done_irq()
1131 msdu_size -= 4; in rx_done_irq()
1132 crc = crc32_le(crc, (unsigned char *)&priv->rx_buf, msdu_size); in rx_done_irq()
1133 if ((crc ^ 0xffffffff) != (*((u32 *)&priv->rx_buf[msdu_size]))) { in rx_done_irq()
1139 atmel_management_frame(priv, &header, msdu_size, in rx_done_irq()