Home
last modified time | relevance | path

Searched refs:rxdesc (Results 1 – 17 of 17) sorted by relevance

/drivers/net/wireless/rt2x00/
Drt2x00crypto.c152 struct rxdone_entry_desc *rxdesc) in rt2x00crypto_rx_insert_iv() argument
154 unsigned int payload_len = rxdesc->size - header_length; in rt2x00crypto_rx_insert_iv()
164 switch (rxdesc->cipher) { in rt2x00crypto_rx_insert_iv()
196 skb_trim(skb, rxdesc->size + iv_len + icv_len); in rt2x00crypto_rx_insert_iv()
205 memcpy(skb->data + transfer, rxdesc->iv, iv_len); in rt2x00crypto_rx_insert_iv()
228 memcpy(skb->data + transfer, &rxdesc->icv, 4); in rt2x00crypto_rx_insert_iv()
232 rxdesc->size = transfer; in rt2x00crypto_rx_insert_iv()
233 rxdesc->flags &= ~RX_FLAG_IV_STRIPPED; in rt2x00crypto_rx_insert_iv()
Drt2x00dev.c596 struct rxdone_entry_desc rxdesc; in rt2x00lib_rxdone() local
623 memset(&rxdesc, 0, sizeof(rxdesc)); in rt2x00lib_rxdone()
624 rt2x00dev->ops->lib->fill_rxdone(entry, &rxdesc); in rt2x00lib_rxdone()
639 if ((rxdesc.dev_flags & RXDONE_CRYPTO_IV) && in rt2x00lib_rxdone()
640 (rxdesc.flags & RX_FLAG_IV_STRIPPED)) { in rt2x00lib_rxdone()
642 header_length, &rxdesc); in rt2x00lib_rxdone()
647 rxdesc.size); in rt2x00lib_rxdone()
651 skb_trim(entry->skb, rxdesc.size); in rt2x00lib_rxdone()
660 if (((rxdesc.dev_flags & RXDONE_SIGNAL_PLCP) && in rt2x00lib_rxdone()
661 (rate->plcp == rxdesc.signal)) || in rt2x00lib_rxdone()
[all …]
Drt2500usb.c1294 struct rxdone_entry_desc *rxdesc) in rt2500usb_fill_rxdone() argument
1320 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2500usb_fill_rxdone()
1322 rxdesc->flags |= RX_FLAG_FAILED_PLCP_CRC; in rt2500usb_fill_rxdone()
1325 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER); in rt2500usb_fill_rxdone()
1327 rxdesc->cipher_status = RX_CRYPTO_FAIL_KEY; in rt2500usb_fill_rxdone()
1330 if (rxdesc->cipher != CIPHER_NONE) { in rt2500usb_fill_rxdone()
1331 _rt2x00_desc_read(rxd, 2, &rxdesc->iv[0]); in rt2500usb_fill_rxdone()
1332 _rt2x00_desc_read(rxd, 3, &rxdesc->iv[1]); in rt2500usb_fill_rxdone()
1333 rxdesc->dev_flags |= RXDONE_CRYPTO_IV; in rt2500usb_fill_rxdone()
1337 rxdesc->flags |= RX_FLAG_MMIC_STRIPPED; in rt2500usb_fill_rxdone()
[all …]
Drt73usb.c1589 struct rxdone_entry_desc *rxdesc) in rt73usb_fill_rxdone() argument
1611 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt73usb_fill_rxdone()
1614 rxdesc->cipher = in rt73usb_fill_rxdone()
1616 rxdesc->cipher_status = in rt73usb_fill_rxdone()
1620 if (rxdesc->cipher != CIPHER_NONE) { in rt73usb_fill_rxdone()
1621 _rt2x00_desc_read(rxd, 2, &rxdesc->iv[0]); in rt73usb_fill_rxdone()
1622 _rt2x00_desc_read(rxd, 3, &rxdesc->iv[1]); in rt73usb_fill_rxdone()
1623 rxdesc->dev_flags |= RXDONE_CRYPTO_IV; in rt73usb_fill_rxdone()
1625 _rt2x00_desc_read(rxd, 4, &rxdesc->icv); in rt73usb_fill_rxdone()
1626 rxdesc->dev_flags |= RXDONE_CRYPTO_ICV; in rt73usb_fill_rxdone()
[all …]
Drt61pci.c1931 struct rxdone_entry_desc *rxdesc) in rt61pci_fill_rxdone() argument
1942 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt61pci_fill_rxdone()
1945 rxdesc->cipher = in rt61pci_fill_rxdone()
1947 rxdesc->cipher_status = in rt61pci_fill_rxdone()
1951 if (rxdesc->cipher != CIPHER_NONE) { in rt61pci_fill_rxdone()
1952 _rt2x00_desc_read(entry_priv->desc, 2, &rxdesc->iv[0]); in rt61pci_fill_rxdone()
1953 _rt2x00_desc_read(entry_priv->desc, 3, &rxdesc->iv[1]); in rt61pci_fill_rxdone()
1954 rxdesc->dev_flags |= RXDONE_CRYPTO_IV; in rt61pci_fill_rxdone()
1956 _rt2x00_desc_read(entry_priv->desc, 4, &rxdesc->icv); in rt61pci_fill_rxdone()
1957 rxdesc->dev_flags |= RXDONE_CRYPTO_ICV; in rt61pci_fill_rxdone()
[all …]
Drt2x00lib.h218 struct rxdone_entry_desc *rxdesc);
252 struct rxdone_entry_desc *rxdesc) in rt2x00crypto_rx_insert_iv() argument
Drt2400pci.c1122 struct rxdone_entry_desc *rxdesc) in rt2400pci_fill_rxdone() argument
1140 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2400pci_fill_rxdone()
1142 rxdesc->flags |= RX_FLAG_FAILED_PLCP_CRC; in rt2400pci_fill_rxdone()
1165 rxdesc->timestamp = ((u64)rx_high << 32) | rx_low; in rt2400pci_fill_rxdone()
1166 rxdesc->signal = rt2x00_get_field32(word2, RXD_W2_SIGNAL) & ~0x08; in rt2400pci_fill_rxdone()
1167 rxdesc->rssi = rt2x00_get_field32(word2, RXD_W3_RSSI) - in rt2400pci_fill_rxdone()
1169 rxdesc->size = rt2x00_get_field32(word0, RXD_W0_DATABYTE_COUNT); in rt2400pci_fill_rxdone()
1171 rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; in rt2400pci_fill_rxdone()
1173 rxdesc->dev_flags |= RXDONE_MY_BSS; in rt2400pci_fill_rxdone()
Drt2500pci.c1282 struct rxdone_entry_desc *rxdesc) in rt2500pci_fill_rxdone() argument
1292 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2500pci_fill_rxdone()
1294 rxdesc->flags |= RX_FLAG_FAILED_PLCP_CRC; in rt2500pci_fill_rxdone()
1302 rxdesc->signal = rt2x00_get_field32(word2, RXD_W2_SIGNAL); in rt2500pci_fill_rxdone()
1303 rxdesc->rssi = rt2x00_get_field32(word2, RXD_W2_RSSI) - in rt2500pci_fill_rxdone()
1305 rxdesc->size = rt2x00_get_field32(word0, RXD_W0_DATABYTE_COUNT); in rt2500pci_fill_rxdone()
1308 rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; in rt2500pci_fill_rxdone()
1310 rxdesc->dev_flags |= RXDONE_SIGNAL_BITRATE; in rt2500pci_fill_rxdone()
1312 rxdesc->dev_flags |= RXDONE_MY_BSS; in rt2500pci_fill_rxdone()
Drt2x00.h566 struct rxdone_entry_desc *rxdesc);
/drivers/net/
Dsh_eth.c235 struct sh_eth_rxdesc *rxdesc = NULL; in sh_eth_ring_format() local
237 int rx_ringsize = sizeof(*rxdesc) * RX_RING_SIZE; in sh_eth_ring_format()
263 rxdesc = &mdp->rx_ring[i]; in sh_eth_ring_format()
264 rxdesc->addr = (u32)skb->data & ~0x3UL; in sh_eth_ring_format()
265 rxdesc->status = cpu_to_edmac(mdp, RD_RACT | RD_RFP); in sh_eth_ring_format()
268 rxdesc->buffer_length = (mdp->rx_buf_sz + 16) & ~0x0F; in sh_eth_ring_format()
271 ctrl_outl((u32)rxdesc, ioaddr + RDLAR); in sh_eth_ring_format()
273 ctrl_outl((u32)rxdesc, ioaddr + RDFAR); in sh_eth_ring_format()
280 ctrl_outl((u32)rxdesc, ioaddr + RDFXR); in sh_eth_ring_format()
287 rxdesc->status |= cpu_to_edmac(mdp, RD_RDEL); in sh_eth_ring_format()
[all …]
Djme.c658 register struct rxdesc *rxdesc = rxring->desc; in jme_set_clean_rxdesc() local
660 rxdesc += i; in jme_set_clean_rxdesc()
663 rxdesc->dw[0] = 0; in jme_set_clean_rxdesc()
664 rxdesc->dw[1] = 0; in jme_set_clean_rxdesc()
665 rxdesc->desc1.bufaddrh = cpu_to_le32((__u64)rxbi->mapping >> 32); in jme_set_clean_rxdesc()
666 rxdesc->desc1.bufaddrl = cpu_to_le32( in jme_set_clean_rxdesc()
668 rxdesc->desc1.datalen = cpu_to_le16(rxbi->len); in jme_set_clean_rxdesc()
670 rxdesc->desc1.flags = RXFLAG_64BIT; in jme_set_clean_rxdesc()
672 rxdesc->desc1.flags |= RXFLAG_OWN | RXFLAG_INT; in jme_set_clean_rxdesc()
887 struct rxdesc *rxdesc = rxring->desc; in jme_alloc_and_feed_skb() local
[all …]
Dacenic.c1963 struct rx_desc *rxdesc, *retdesc; in ace_rx_int() local
1989 rxdesc = &ap->rx_std_ring[skbidx]; in ace_rx_int()
1995 rxdesc = &ap->rx_jumbo_ring[skbidx]; in ace_rx_int()
2001 rxdesc = &ap->rx_mini_ring[skbidx]; in ace_rx_int()
Djme.h275 struct rxdesc { struct
/drivers/net/wireless/hostap/
Dhostap_hw.c1944 struct hfa384x_rx_frame rxdesc; in prism2_rx() local
1967 res = hfa384x_from_bap(dev, BAP0, &rxdesc, sizeof(rxdesc)); in prism2_rx()
1979 len = le16_to_cpu(rxdesc.data_len); in prism2_rx()
1980 hdr_len = sizeof(rxdesc); in prism2_rx()
1981 status = le16_to_cpu(rxdesc.status); in prism2_rx()
1999 hostap_dump_rx_header(dev->name, &rxdesc); in prism2_rx()
2012 memcpy(skb_put(skb, hdr_len), &rxdesc, hdr_len); in prism2_rx()
2045 struct hfa384x_rx_frame *rxdesc; in hostap_rx_skb() local
2050 rx_hdrlen = sizeof(*rxdesc); in hostap_rx_skb()
2051 if (skb->len < sizeof(*rxdesc)) { in hostap_rx_skb()
[all …]
/drivers/staging/wlan-ng/
Dhfa384x_usb.c4048 hfa384x_rx_frame_t *rxdesc = &(rxfrm->desc); in hfa384x_int_rxmonitor() local
4061 fc = ieee2host16(rxdesc->frame_control); in hfa384x_int_rxmonitor()
4063 datalen = hfa384x2host_16(rxdesc->data_len); in hfa384x_int_rxmonitor()
4092 caphdr->mactime = __cpu_to_be64(rxdesc->time) * 1000; in hfa384x_int_rxmonitor()
4096 caphdr->datarate = htonl(rxdesc->rate); in hfa384x_int_rxmonitor()
4100 caphdr->ssi_signal = htonl(rxdesc->signal); in hfa384x_int_rxmonitor()
4101 caphdr->ssi_noise = htonl(rxdesc->silence); in hfa384x_int_rxmonitor()
4108 memcpy( datap, &(rxdesc->frame_control), hdrlen); in hfa384x_int_rxmonitor()
/drivers/net/wan/lmc/
Dlmc_var.h300 int hang, rxdesc, bad_packet, some_counter; member
/drivers/net/wan/
Dfarsync.c143 struct rxdesc { /* Receive descriptor */ struct
265 struct rxdesc rxDescrRing[FST_MAX_PORTS][NUM_RX_BUFFER];