/linux-6.1.9/drivers/net/wireless/realtek/rtw88/ |
D | rx.h | 17 #define GET_RX_DESC_PHYST(rxdesc) \ argument 18 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(26)) 19 #define GET_RX_DESC_ICV_ERR(rxdesc) \ argument 20 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(15)) 21 #define GET_RX_DESC_CRC32(rxdesc) \ argument 22 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(14)) 23 #define GET_RX_DESC_SWDEC(rxdesc) \ argument 24 le32_get_bits(*((__le32 *)(rxdesc) + 0x00), BIT(27)) 25 #define GET_RX_DESC_C2H(rxdesc) \ argument 26 le32_get_bits(*((__le32 *)(rxdesc) + 0x02), BIT(28)) [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/ |
D | txrx.h | 189 #define RTW89_GET_RXWD_LONG_RXD(rxdesc) \ argument 190 le32_get_bits((rxdesc)->dword0, BIT(31)) 191 #define RTW89_GET_RXWD_DRV_INFO_SIZE(rxdesc) \ argument 192 le32_get_bits((rxdesc)->dword0, GENMASK(30, 28)) 193 #define RTW89_GET_RXWD_RPKT_TYPE(rxdesc) \ argument 194 le32_get_bits((rxdesc)->dword0, GENMASK(27, 24)) 195 #define RTW89_GET_RXWD_MAC_INFO_VALID(rxdesc) \ argument 196 le32_get_bits((rxdesc)->dword0, BIT(23)) 197 #define RTW89_GET_RXWD_BB_SEL(rxdesc) \ argument 198 le32_get_bits((rxdesc)->dword0, BIT(22)) [all …]
|
/linux-6.1.9/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00crypto.c | 146 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()
|
D | rt2x00dev.c | 598 struct rxdone_entry_desc *rxdesc) in rt2x00lib_rxdone_check_ba() argument 606 if (rxdesc->size < sizeof(*ba) + FCS_LEN) in rt2x00lib_rxdone_check_ba() 642 struct rxdone_entry_desc *rxdesc) in rt2x00lib_rxdone_check_ps() argument 662 if (!(rxdesc->dev_flags & RXDONE_MY_BSS) || in rt2x00lib_rxdone_check_ps() 691 struct rxdone_entry_desc *rxdesc) in rt2x00lib_rxdone_read_signal() argument 696 int signal = rxdesc->signal; in rt2x00lib_rxdone_read_signal() 697 int type = (rxdesc->dev_flags & RXDONE_SIGNAL_MASK); in rt2x00lib_rxdone_read_signal() 699 switch (rxdesc->rate_mode) { in rt2x00lib_rxdone_read_signal() 706 if (rxdesc->dev_flags & RXDONE_SIGNAL_MCS) in rt2x00lib_rxdone_read_signal() 707 signal = RATE_MCS(rxdesc->rate_mode, signal); in rt2x00lib_rxdone_read_signal() [all …]
|
D | rt2800mmio.c | 125 struct rxdone_entry_desc *rxdesc) in rt2800mmio_fill_rxdone() argument 134 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2800mmio_fill_rxdone() 141 rxdesc->cipher_status = rt2x00_get_field32(word, RXD_W3_CIPHER_ERROR); 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() 160 } else if (rxdesc->cipher_status == RX_CRYPTO_FAIL_MIC) { 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() [all …]
|
D | rt2x00lib.h | 202 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
|
D | rt2800usb.c | 482 struct rxdone_entry_desc *rxdesc) in rt2800usb_fill_rxdone() argument 528 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2800usb_fill_rxdone() 530 rxdesc->cipher_status = rt2x00_get_field32(word, RXD_W0_CIPHER_ERROR); 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() 549 } else if (rxdesc->cipher_status == RX_CRYPTO_FAIL_MIC) { 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() [all …]
|
D | rt2500usb.c | 1217 struct rxdone_entry_desc *rxdesc) in rt2500usb_fill_rxdone() argument 1243 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt2500usb_fill_rxdone() 1245 rxdesc->flags |= RX_FLAG_FAILED_PLCP_CRC; in rt2500usb_fill_rxdone() 1247 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER); in rt2500usb_fill_rxdone() 1249 rxdesc->cipher_status = RX_CRYPTO_FAIL_KEY; in rt2500usb_fill_rxdone() 1251 if (rxdesc->cipher != CIPHER_NONE) { in rt2500usb_fill_rxdone() 1252 rxdesc->iv[0] = _rt2x00_desc_read(rxd, 2); in rt2500usb_fill_rxdone() 1253 rxdesc->iv[1] = _rt2x00_desc_read(rxd, 3); 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() [all …]
|
D | rt73usb.c | 1668 struct rxdone_entry_desc *rxdesc) in rt73usb_fill_rxdone() argument 1690 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt73usb_fill_rxdone() 1692 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER_ALG); in rt73usb_fill_rxdone() 1693 rxdesc->cipher_status = rt2x00_get_field32(word0, RXD_W0_CIPHER_ERROR); in rt73usb_fill_rxdone() 1695 if (rxdesc->cipher != CIPHER_NONE) { in rt73usb_fill_rxdone() 1696 rxdesc->iv[0] = _rt2x00_desc_read(rxd, 2); in rt73usb_fill_rxdone() 1697 rxdesc->iv[1] = _rt2x00_desc_read(rxd, 3); in rt73usb_fill_rxdone() 1698 rxdesc->dev_flags |= RXDONE_CRYPTO_IV; in rt73usb_fill_rxdone() 1700 rxdesc->icv = _rt2x00_desc_read(rxd, 4); in rt73usb_fill_rxdone() 1701 rxdesc->dev_flags |= RXDONE_CRYPTO_ICV; in rt73usb_fill_rxdone() [all …]
|
D | rt2x00link.c | 181 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()
|
D | rt61pci.c | 1995 struct rxdone_entry_desc *rxdesc) in rt61pci_fill_rxdone() argument 2006 rxdesc->flags |= RX_FLAG_FAILED_FCS_CRC; in rt61pci_fill_rxdone() 2008 rxdesc->cipher = rt2x00_get_field32(word0, RXD_W0_CIPHER_ALG); in rt61pci_fill_rxdone() 2009 rxdesc->cipher_status = rt2x00_get_field32(word0, RXD_W0_CIPHER_ERROR); in rt61pci_fill_rxdone() 2011 if (rxdesc->cipher != CIPHER_NONE) { in rt61pci_fill_rxdone() 2012 rxdesc->iv[0] = _rt2x00_desc_read(entry_priv->desc, 2); in rt61pci_fill_rxdone() 2013 rxdesc->iv[1] = _rt2x00_desc_read(entry_priv->desc, 3); in rt61pci_fill_rxdone() 2014 rxdesc->dev_flags |= RXDONE_CRYPTO_IV; in rt61pci_fill_rxdone() 2016 rxdesc->icv = _rt2x00_desc_read(entry_priv->desc, 4); in rt61pci_fill_rxdone() 2017 rxdesc->dev_flags |= RXDONE_CRYPTO_ICV; in rt61pci_fill_rxdone() [all …]
|
D | rt2400pci.c | 1208 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()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | trx.c | 343 __le32 *rxdesc; in _rtl_rx_process() local 354 rxdesc = (__le32 *)skb->data; in _rtl_rx_process() 356 drvinfo_len = (get_rx_desc_drvinfo_size(rxdesc) * RTL_RX_DRV_INFO_UNIT); in _rtl_rx_process() 357 pkt_len = get_rx_desc_pkt_len(rxdesc); in _rtl_rx_process() 360 stats.length = (u16)get_rx_desc_pkt_len(rxdesc); in _rtl_rx_process() 361 stats.rx_drvinfo_size = (u8)get_rx_desc_drvinfo_size(rxdesc) * in _rtl_rx_process() 363 stats.rx_bufshift = (u8)(get_rx_desc_shift(rxdesc) & 0x03); 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() 367 stats.decrypted = !get_rx_desc_swdec(rxdesc); in _rtl_rx_process() [all …]
|
/linux-6.1.9/drivers/spi/ |
D | spi-at91-usart.c | 222 struct dma_async_tx_descriptor *rxdesc; in at91_usart_spi_dma_transfer() local 229 rxdesc = dmaengine_prep_slave_sg(rxchan, in at91_usart_spi_dma_transfer() 235 if (!rxdesc) in at91_usart_spi_dma_transfer() 247 rxdesc->callback = dma_callback; in at91_usart_spi_dma_transfer() 248 rxdesc->callback_param = ctlr; in at91_usart_spi_dma_transfer() 250 cookie = rxdesc->tx_submit(rxdesc); in at91_usart_spi_dma_transfer()
|
D | spi-dw-dma.c | 403 struct dma_async_tx_descriptor *rxdesc; in dw_spi_dma_submit_rx() local 407 rxdesc = dmaengine_prep_slave_sg(dws->rxchan, sgl, nents, in dw_spi_dma_submit_rx() 410 if (!rxdesc) in dw_spi_dma_submit_rx() 413 rxdesc->callback = dw_spi_dma_rx_done; in dw_spi_dma_submit_rx() 414 rxdesc->callback_param = dws; in dw_spi_dma_submit_rx() 416 cookie = dmaengine_submit(rxdesc); in dw_spi_dma_submit_rx()
|
D | spi-sun6i.c | 195 struct dma_async_tx_descriptor *rxdesc, *txdesc; in sun6i_spi_prepare_dma() local 198 rxdesc = NULL; in sun6i_spi_prepare_dma() 209 rxdesc = dmaengine_prep_slave_sg(master->dma_rx, in sun6i_spi_prepare_dma() 214 if (!rxdesc) in sun6i_spi_prepare_dma() 235 if (rxdesc) in sun6i_spi_prepare_dma() 242 dmaengine_submit(rxdesc); in sun6i_spi_prepare_dma()
|
D | spi-rockchip.c | 448 struct dma_async_tx_descriptor *rxdesc, *txdesc; in rockchip_spi_prepare_dma() local 455 rxdesc = NULL; in rockchip_spi_prepare_dma() 466 rxdesc = dmaengine_prep_slave_sg( in rockchip_spi_prepare_dma() 470 if (!rxdesc) in rockchip_spi_prepare_dma() 473 rxdesc->callback = rockchip_spi_dma_rxcb; in rockchip_spi_prepare_dma() 474 rxdesc->callback_param = ctlr; in rockchip_spi_prepare_dma() 493 if (rxdesc) in rockchip_spi_prepare_dma() 503 if (rxdesc) { in rockchip_spi_prepare_dma() 505 ctlr->dma_rx->cookie = dmaengine_submit(rxdesc); in rockchip_spi_prepare_dma()
|
D | spi-uniphier.c | 393 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()
|
D | spi-img-spfi.c | 311 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()
|
D | spi-davinci.c | 618 struct dma_async_tx_descriptor *rxdesc; in davinci_spi_bufs() local 624 rxdesc = dmaengine_prep_slave_sg(dspi->dma_rx, in davinci_spi_bufs() 627 if (!rxdesc) in davinci_spi_bufs() 646 rxdesc->callback = davinci_spi_dma_rx_callback; in davinci_spi_bufs() 647 rxdesc->callback_param = (void *)dspi; in davinci_spi_bufs() 654 dmaengine_submit(rxdesc); in davinci_spi_bufs()
|
D | spi-atmel.c | 697 struct dma_async_tx_descriptor *rxdesc; in atmel_spi_next_xfer_dma_submit() local 716 rxdesc = dmaengine_prep_slave_single(rxchan, in atmel_spi_next_xfer_dma_submit() 723 rxdesc = dmaengine_prep_slave_sg(rxchan, in atmel_spi_next_xfer_dma_submit() 730 if (!rxdesc) in atmel_spi_next_xfer_dma_submit() 761 rxdesc->callback = dma_callback; in atmel_spi_next_xfer_dma_submit() 762 rxdesc->callback_param = master; in atmel_spi_next_xfer_dma_submit() 765 cookie = rxdesc->tx_submit(rxdesc); in atmel_spi_next_xfer_dma_submit()
|
/linux-6.1.9/drivers/net/ethernet/ |
D | jme.c | 708 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() 715 rxdesc->desc1.bufaddrh = cpu_to_le32((__u64)rxbi->mapping >> 32); in jme_set_clean_rxdesc() 716 rxdesc->desc1.bufaddrl = cpu_to_le32( in jme_set_clean_rxdesc() 718 rxdesc->desc1.datalen = cpu_to_le16(rxbi->len); in jme_set_clean_rxdesc() 720 rxdesc->desc1.flags = RXFLAG_64BIT; in jme_set_clean_rxdesc() 722 rxdesc->desc1.flags |= RXFLAG_OWN | RXFLAG_INT; in jme_set_clean_rxdesc() 998 struct rxdesc *rxdesc = rxring->desc; in jme_alloc_and_feed_skb() local [all …]
|
/linux-6.1.9/drivers/net/ethernet/renesas/ |
D | sh_eth.c | 1283 struct sh_eth_rxdesc *rxdesc = &mdp->rx_ring[i]; in sh_eth_ring_free() local 1286 le32_to_cpu(rxdesc->addr), in sh_eth_ring_free() 1325 struct sh_eth_rxdesc *rxdesc = NULL; in sh_eth_ring_format() local 1327 int rx_ringsize = sizeof(*rxdesc) * mdp->num_rx_ring; in sh_eth_ring_format() 1360 rxdesc = &mdp->rx_ring[i]; in sh_eth_ring_format() 1361 rxdesc->len = cpu_to_le32(buf_len << 16); in sh_eth_ring_format() 1362 rxdesc->addr = cpu_to_le32(dma_addr); in sh_eth_ring_format() 1363 rxdesc->status = cpu_to_le32(RD_RACT | RD_RFP); in sh_eth_ring_format() 1376 if (rxdesc) in sh_eth_ring_format() 1377 rxdesc->status |= cpu_to_le32(RD_RDLE); in sh_eth_ring_format() [all …]
|
/linux-6.1.9/drivers/net/wireless/intersil/hostap/ |
D | hostap_hw.c | 1921 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() 1975 hostap_dump_rx_header(dev->name, &rxdesc); in prism2_rx() 1988 skb_put_data(skb, &rxdesc, hdr_len); 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() [all …]
|
/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-at91-master.c | 336 struct dma_async_tx_descriptor *rxdesc; in at91_twi_read_data_dma() local 370 rxdesc = dmaengine_prep_slave_sg(chan_rx, dma->sg, 1, DMA_DEV_TO_MEM, in at91_twi_read_data_dma() 372 if (!rxdesc) { in at91_twi_read_data_dma() 377 rxdesc->callback = at91_twi_read_data_dma_callback; in at91_twi_read_data_dma() 378 rxdesc->callback_param = dev; in at91_twi_read_data_dma() 381 dmaengine_submit(rxdesc); in at91_twi_read_data_dma()
|