Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/wireless/realtek/rtw88/
H A Drx.h18 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(26))
20 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(15))
22 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(14))
24 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(27))
26 le32_get_bits(*((__le32 *)(rxdesc) + 0x02), BIT(28))
28 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), GENMASK(13, 0))
30 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), GENMASK(19, 16))
32 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), GENMASK(25, 24))
36 le32_get_bits(*((__le32 *)(rxdesc) + 0x03), GENMASK(6, 0))
38 le32_get_bits(*((__le32 *)(rxdesc) + 0x01), GENMASK(6, 0))
[all …]
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00crypto.c146 struct rxdone_entry_desc *rxdesc) in rt2x00crypto_rx_insert_iv() argument
148 unsigned int payload_len = rxdesc->size - header_length; in rt2x00crypto_rx_insert_iv()
159 switch (rxdesc->cipher) { in rt2x00crypto_rx_insert_iv()
189 if (rxdesc->dev_flags & RXDONE_L2PAD) { in rt2x00crypto_rx_insert_iv()
203 skb_trim(skb, rxdesc->size + iv_len + icv_len); in rt2x00crypto_rx_insert_iv()
213 memcpy(skb->data + transfer, rxdesc->iv, iv_len); in rt2x00crypto_rx_insert_iv()
220 if (!(rxdesc->dev_flags & RXDONE_L2PAD)) { in rt2x00crypto_rx_insert_iv()
239 memcpy(skb->data + transfer, &rxdesc->icv, 4); in rt2x00crypto_rx_insert_iv()
243 rxdesc->size = transfer; in rt2x00crypto_rx_insert_iv()
244 rxdesc->flags &= ~RX_FLAG_IV_STRIPPED; in rt2x00crypto_rx_insert_iv()
H A Drt2x00dev.c697 int signal = rxdesc->signal; in rt2x00lib_rxdone_read_signal()
700 switch (rxdesc->rate_mode) { in rt2x00lib_rxdone_read_signal()
740 struct rxdone_entry_desc rxdesc; in rt2x00lib_rxdone() local
769 memset(&rxdesc, 0, sizeof(rxdesc)); in rt2x00lib_rxdone()
776 if (unlikely(rxdesc.size == 0 || in rt2x00lib_rxdone()
799 &rxdesc); in rt2x00lib_rxdone()
801 (rxdesc.size > header_length) && in rt2x00lib_rxdone()
814 rxdesc.encoding = RX_ENC_HT; in rt2x00lib_rxdone()
852 rx_status->signal = rxdesc.rssi; in rt2x00lib_rxdone()
853 rx_status->flag = rxdesc.flags; in rt2x00lib_rxdone()
[all …]
H A Drt2800mmio.c125 struct rxdone_entry_desc *rxdesc) in rt2800mmio_fill_rxdone() argument
134 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2800mmio_fill_rxdone()
150 rxdesc->flags |= RX_FLAG_IV_STRIPPED; in rt2800mmio_fill_rxdone()
156 rxdesc->flags |= RX_FLAG_MMIC_STRIPPED; in rt2800mmio_fill_rxdone()
158 if (rxdesc->cipher_status == RX_CRYPTO_SUCCESS) { in rt2800mmio_fill_rxdone()
159 rxdesc->flags |= RX_FLAG_DECRYPTED; in rt2800mmio_fill_rxdone()
167 rxdesc->flags |= RX_FLAG_DECRYPTED; in rt2800mmio_fill_rxdone()
169 rxdesc->flags |= RX_FLAG_MMIC_ERROR; in rt2800mmio_fill_rxdone()
174 rxdesc->dev_flags |= RXDONE_MY_BSS; in rt2800mmio_fill_rxdone()
177 rxdesc->dev_flags |= RXDONE_L2PAD; in rt2800mmio_fill_rxdone()
[all …]
H A Drt2x00lib.h202 struct rxdone_entry_desc *rxdesc);
295 struct rxdone_entry_desc *rxdesc);
306 struct rxdone_entry_desc *rxdesc) in rt2x00debug_update_crypto() argument
328 struct rxdone_entry_desc *rxdesc);
364 struct rxdone_entry_desc *rxdesc) in rt2x00crypto_rx_insert_iv() argument
H A Drt2800usb.c482 struct rxdone_entry_desc *rxdesc) in rt2800usb_fill_rxdone() argument
528 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2800usb_fill_rxdone()
539 rxdesc->flags |= RX_FLAG_IV_STRIPPED; in rt2800usb_fill_rxdone()
545 rxdesc->flags |= RX_FLAG_MMIC_STRIPPED; in rt2800usb_fill_rxdone()
547 if (rxdesc->cipher_status == RX_CRYPTO_SUCCESS) { in rt2800usb_fill_rxdone()
548 rxdesc->flags |= RX_FLAG_DECRYPTED; in rt2800usb_fill_rxdone()
556 rxdesc->flags |= RX_FLAG_DECRYPTED; in rt2800usb_fill_rxdone()
558 rxdesc->flags |= RX_FLAG_MMIC_ERROR; in rt2800usb_fill_rxdone()
563 rxdesc->dev_flags |= RXDONE_MY_BSS; in rt2800usb_fill_rxdone()
566 rxdesc->dev_flags |= RXDONE_L2PAD; in rt2800usb_fill_rxdone()
[all …]
H A Drt2500usb.c1217 struct rxdone_entry_desc *rxdesc) in rt2500usb_fill_rxdone() argument
1243 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2500usb_fill_rxdone()
1251 if (rxdesc->cipher != CIPHER_NONE) { in rt2500usb_fill_rxdone()
1254 rxdesc->dev_flags |= RXDONE_CRYPTO_IV; in rt2500usb_fill_rxdone()
1258 rxdesc->flags |= RX_FLAG_MMIC_STRIPPED; in rt2500usb_fill_rxdone()
1260 rxdesc->flags |= RX_FLAG_DECRYPTED; in rt2500usb_fill_rxdone()
1262 rxdesc->flags |= RX_FLAG_MMIC_ERROR; in rt2500usb_fill_rxdone()
1272 rxdesc->rssi = in rt2500usb_fill_rxdone()
1277 rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; in rt2500usb_fill_rxdone()
1281 rxdesc->dev_flags |= RXDONE_MY_BSS; in rt2500usb_fill_rxdone()
[all …]
H A Drt73usb.c1668 struct rxdone_entry_desc *rxdesc) in rt73usb_fill_rxdone() argument
1690 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt73usb_fill_rxdone()
1695 if (rxdesc->cipher != CIPHER_NONE) { in rt73usb_fill_rxdone()
1698 rxdesc->dev_flags |= RXDONE_CRYPTO_IV; in rt73usb_fill_rxdone()
1701 rxdesc->dev_flags |= RXDONE_CRYPTO_ICV; in rt73usb_fill_rxdone()
1708 rxdesc->flags |= RX_FLAG_IV_STRIPPED; in rt73usb_fill_rxdone()
1714 rxdesc->flags |= RX_FLAG_MMIC_STRIPPED; in rt73usb_fill_rxdone()
1717 rxdesc->flags |= RX_FLAG_DECRYPTED; in rt73usb_fill_rxdone()
1719 rxdesc->flags |= RX_FLAG_MMIC_ERROR; in rt73usb_fill_rxdone()
1737 rxdesc->dev_flags |= RXDONE_MY_BSS; in rt73usb_fill_rxdone()
[all …]
H A Drt2x00link.c181 struct rxdone_entry_desc *rxdesc) in rt2x00link_update_stats() argument
206 !(rxdesc->dev_flags & RXDONE_MY_BSS)) in rt2x00link_update_stats()
212 ewma_rssi_add(&link->avg_rssi, -rxdesc->rssi); in rt2x00link_update_stats()
217 ewma_rssi_add(&ant->rssi_ant, -rxdesc->rssi); in rt2x00link_update_stats()
H A Drt61pci.c1995 struct rxdone_entry_desc *rxdesc) in rt61pci_fill_rxdone() argument
2006 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt61pci_fill_rxdone()
2011 if (rxdesc->cipher != CIPHER_NONE) { in rt61pci_fill_rxdone()
2014 rxdesc->dev_flags |= RXDONE_CRYPTO_IV; in rt61pci_fill_rxdone()
2017 rxdesc->dev_flags |= RXDONE_CRYPTO_ICV; in rt61pci_fill_rxdone()
2024 rxdesc->flags |= RX_FLAG_IV_STRIPPED; in rt61pci_fill_rxdone()
2030 rxdesc->flags |= RX_FLAG_MMIC_STRIPPED; in rt61pci_fill_rxdone()
2033 rxdesc->flags |= RX_FLAG_DECRYPTED; in rt61pci_fill_rxdone()
2035 rxdesc->flags |= RX_FLAG_MMIC_ERROR; in rt61pci_fill_rxdone()
2049 rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; in rt61pci_fill_rxdone()
[all …]
H A Drt2400pci.c1208 struct rxdone_entry_desc *rxdesc) in rt2400pci_fill_rxdone() argument
1226 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2400pci_fill_rxdone()
1228 rxdesc->flags |= RX_FLAG_FAILED_PLCP_CRC; in rt2400pci_fill_rxdone()
1251 rxdesc->timestamp = ((u64)rx_high << 32) | rx_low; in rt2400pci_fill_rxdone()
1252 rxdesc->signal = rt2x00_get_field32(word2, RXD_W2_SIGNAL) & ~0x08; in rt2400pci_fill_rxdone()
1253 rxdesc->rssi = rt2x00_get_field32(word3, RXD_W3_RSSI) - in rt2400pci_fill_rxdone()
1255 rxdesc->size = rt2x00_get_field32(word0, RXD_W0_DATABYTE_COUNT); in rt2400pci_fill_rxdone()
1257 rxdesc->dev_flags |= RXDONE_SIGNAL_PLCP; in rt2400pci_fill_rxdone()
1259 rxdesc->dev_flags |= RXDONE_MY_BSS; in rt2400pci_fill_rxdone()
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dtrx.c343 __le32 *rxdesc; in _rtl_rx_process() local
354 rxdesc = (__le32 *)skb->data; in _rtl_rx_process()
357 pkt_len = get_rx_desc_pkt_len(rxdesc); in _rtl_rx_process()
364 stats.icv = (u16)get_rx_desc_icv(rxdesc); in _rtl_rx_process()
365 stats.crc = (u16)get_rx_desc_crc32(rxdesc); in _rtl_rx_process()
371 (get_rx_desc_faggr(rxdesc) == 1)); in _rtl_rx_process()
379 if (get_rx_desc_crc32(rxdesc)) in _rtl_rx_process()
381 if (!get_rx_desc_swdec(rxdesc)) in _rtl_rx_process()
383 if (get_rx_desc_bw(rxdesc)) in _rtl_rx_process()
385 if (get_rx_desc_rx_ht(rxdesc)) in _rtl_rx_process()
[all …]
/openbmc/u-boot/drivers/net/
H A Dcalxedaxgmac.c316 struct xgmac_dma_desc *rxdesc = priv->rx_chain; in init_rx_desc() local
321 desc_init_rx_desc(rxdesc, RX_NUM_DESC, ETH_BUF_SZ); in init_rx_desc()
322 writel((ulong)rxdesc, &regs->rxdesclist); in init_rx_desc()
325 desc_set_buf_addr(rxdesc + i, rxbuffer + (i * ETH_BUF_SZ), in init_rx_desc()
327 desc_set_rx_owner(rxdesc + i); in init_rx_desc()
459 struct xgmac_dma_desc *rxdesc = &priv->rx_chain[currdesc]; in xgmac_rx() local
463 if (desc_get_owner(rxdesc)) in xgmac_rx()
466 length = desc_get_rx_frame_len(rxdesc); in xgmac_rx()
468 net_process_received_packet(desc_get_buf_addr(rxdesc), length); in xgmac_rx()
471 desc_set_rx_owner(rxdesc); in xgmac_rx()
/openbmc/linux/drivers/spi/
H A Dspi-sun6i.c214 struct dma_async_tx_descriptor *rxdesc, *txdesc; in sun6i_spi_prepare_dma() local
217 rxdesc = NULL; in sun6i_spi_prepare_dma()
228 rxdesc = dmaengine_prep_slave_sg(master->dma_rx, in sun6i_spi_prepare_dma()
233 if (!rxdesc) in sun6i_spi_prepare_dma()
235 rxdesc->callback_param = sspi; in sun6i_spi_prepare_dma()
236 rxdesc->callback = sun6i_spi_dma_rx_cb; in sun6i_spi_prepare_dma()
256 if (rxdesc) in sun6i_spi_prepare_dma()
263 dmaengine_submit(rxdesc); in sun6i_spi_prepare_dma()
H A Dspi-at91-usart.c221 struct dma_async_tx_descriptor *rxdesc; in at91_usart_spi_dma_transfer() local
228 rxdesc = dmaengine_prep_slave_sg(rxchan, in at91_usart_spi_dma_transfer()
234 if (!rxdesc) in at91_usart_spi_dma_transfer()
246 rxdesc->callback = dma_callback; in at91_usart_spi_dma_transfer()
247 rxdesc->callback_param = ctlr; in at91_usart_spi_dma_transfer()
249 cookie = rxdesc->tx_submit(rxdesc); in at91_usart_spi_dma_transfer()
H A Dspi-dw-dma.c443 struct dma_async_tx_descriptor *rxdesc; in dw_spi_dma_submit_rx() local
447 rxdesc = dmaengine_prep_slave_sg(dws->rxchan, sgl, nents, in dw_spi_dma_submit_rx()
450 if (!rxdesc) in dw_spi_dma_submit_rx()
453 rxdesc->callback = dw_spi_dma_rx_done; in dw_spi_dma_submit_rx()
454 rxdesc->callback_param = dws; in dw_spi_dma_submit_rx()
456 cookie = dmaengine_submit(rxdesc); in dw_spi_dma_submit_rx()
H A Dspi-rockchip.c450 struct dma_async_tx_descriptor *rxdesc, *txdesc; in rockchip_spi_prepare_dma() local
457 rxdesc = NULL; in rockchip_spi_prepare_dma()
468 rxdesc = dmaengine_prep_slave_sg( in rockchip_spi_prepare_dma()
472 if (!rxdesc) in rockchip_spi_prepare_dma()
475 rxdesc->callback = rockchip_spi_dma_rxcb; in rockchip_spi_prepare_dma()
476 rxdesc->callback_param = ctlr; in rockchip_spi_prepare_dma()
495 if (rxdesc) in rockchip_spi_prepare_dma()
505 if (rxdesc) { in rockchip_spi_prepare_dma()
507 ctlr->dma_rx->cookie = dmaengine_submit(rxdesc); in rockchip_spi_prepare_dma()
H A Dspi-uniphier.c393 struct dma_async_tx_descriptor *rxdesc = NULL, *txdesc = NULL; in uniphier_spi_transfer_one_dma() local
417 rxdesc = dmaengine_prep_slave_sg( in uniphier_spi_transfer_one_dma()
421 if (!rxdesc) in uniphier_spi_transfer_one_dma()
424 rxdesc->callback = uniphier_spi_dma_rxcb; in uniphier_spi_transfer_one_dma()
425 rxdesc->callback_param = master; in uniphier_spi_transfer_one_dma()
430 dmaengine_submit(rxdesc); in uniphier_spi_transfer_one_dma()
465 if (rxdesc) in uniphier_spi_transfer_one_dma()
H A Dspi-img-spfi.c311 struct dma_async_tx_descriptor *rxdesc = NULL, *txdesc = NULL; in img_spfi_start_dma() local
330 rxdesc = dmaengine_prep_slave_sg(spfi->rx_ch, xfer->rx_sg.sgl, in img_spfi_start_dma()
334 if (!rxdesc) in img_spfi_start_dma()
337 rxdesc->callback = img_spfi_dma_rx_cb; in img_spfi_start_dma()
338 rxdesc->callback_param = spfi; in img_spfi_start_dma()
367 dmaengine_submit(rxdesc); in img_spfi_start_dma()
H A Dspi-davinci.c617 struct dma_async_tx_descriptor *rxdesc; in davinci_spi_bufs() local
623 rxdesc = dmaengine_prep_slave_sg(dspi->dma_rx, in davinci_spi_bufs()
626 if (!rxdesc) in davinci_spi_bufs()
645 rxdesc->callback = davinci_spi_dma_rx_callback; in davinci_spi_bufs()
646 rxdesc->callback_param = (void *)dspi; in davinci_spi_bufs()
653 dmaengine_submit(rxdesc); in davinci_spi_bufs()
/openbmc/linux/drivers/net/ethernet/
H A Djme.c708 register struct rxdesc *rxdesc = rxring->desc; in jme_set_clean_rxdesc() local
710 rxdesc += i; in jme_set_clean_rxdesc()
713 rxdesc->dw[0] = 0; in jme_set_clean_rxdesc()
714 rxdesc->dw[1] = 0; in jme_set_clean_rxdesc()
716 rxdesc->desc1.bufaddrl = cpu_to_le32( in jme_set_clean_rxdesc()
720 rxdesc->desc1.flags = RXFLAG_64BIT; in jme_set_clean_rxdesc()
996 struct rxdesc *rxdesc = rxring->desc; in jme_alloc_and_feed_skb() local
1001 rxdesc += idx; in jme_alloc_and_feed_skb()
1050 struct rxdesc *rxdesc; in jme_process_receive() local
1064 rxdesc = rxring->desc; in jme_process_receive()
[all …]
/openbmc/linux/drivers/net/ethernet/renesas/
H A Dsh_eth.c1284 le32_to_cpu(rxdesc->addr), in sh_eth_ring_free()
1358 rxdesc = &mdp->rx_ring[i]; in sh_eth_ring_format()
1374 if (rxdesc) in sh_eth_ring_format()
1587 struct sh_eth_rxdesc *rxdesc; in sh_eth_rx() local
1601 rxdesc = &mdp->rx_ring[entry]; in sh_eth_rx()
1666 rxdesc = &mdp->rx_ring[entry]; in sh_eth_rx()
1672 rxdesc = &mdp->rx_ring[entry]; in sh_eth_rx()
1695 rxdesc->status |= in sh_eth_rx()
2458 struct sh_eth_rxdesc *rxdesc; in sh_eth_tx_timeout() local
2472 rxdesc = &mdp->rx_ring[i]; in sh_eth_tx_timeout()
[all …]
/openbmc/linux/drivers/net/wireless/intersil/hostap/
H A Dhostap_hw.c1921 struct hfa384x_rx_frame rxdesc; in prism2_rx() local
1943 res = hfa384x_from_bap(dev, BAP0, &rxdesc, sizeof(rxdesc)); in prism2_rx()
1955 len = le16_to_cpu(rxdesc.data_len); in prism2_rx()
1956 hdr_len = sizeof(rxdesc); in prism2_rx()
1957 status = le16_to_cpu(rxdesc.status); in prism2_rx()
2021 struct hfa384x_rx_frame *rxdesc; in hostap_rx_skb() local
2026 rx_hdrlen = sizeof(*rxdesc); in hostap_rx_skb()
2027 if (skb->len < sizeof(*rxdesc)) { in hostap_rx_skb()
2041 skb->len >= sizeof(*rxdesc)) in hostap_rx_skb()
2058 stats.rate = rxdesc->rate; in hostap_rx_skb()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-at91-master.c335 struct dma_async_tx_descriptor *rxdesc; in at91_twi_read_data_dma() local
369 rxdesc = dmaengine_prep_slave_sg(chan_rx, dma->sg, 1, DMA_DEV_TO_MEM, in at91_twi_read_data_dma()
371 if (!rxdesc) { in at91_twi_read_data_dma()
376 rxdesc->callback = at91_twi_read_data_dma_callback; in at91_twi_read_data_dma()
377 rxdesc->callback_param = dev; in at91_twi_read_data_dma()
380 dmaengine_submit(rxdesc); in at91_twi_read_data_dma()
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dtrace.h116 __dynamic_array(u8, rxdesc, len)
132 memcpy(__get_dynamic_array(rxdesc), data, len);

12