/Linux-v4.19/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00crypto.c | 48 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument 56 __set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags); in rt2x00crypto_create_tx_descriptor() 58 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor() 61 __set_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags); in rt2x00crypto_create_tx_descriptor() 63 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor() 64 txdesc->iv_offset = txdesc->header_length; in rt2x00crypto_create_tx_descriptor() 65 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor() 68 __set_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags); in rt2x00crypto_create_tx_descriptor() 71 __set_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags); in rt2x00crypto_create_tx_descriptor() 102 void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument [all …]
|
D | rt2x00queue.c | 188 struct txentry_desc *txdesc) in rt2x00queue_create_tx_descriptor_seq() argument 198 __set_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq() 208 __clear_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq() 225 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_seq() 236 struct txentry_desc *txdesc, in rt2x00queue_create_tx_descriptor_plcp() argument 250 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_plcp() 251 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp() 253 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp() 263 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp() 264 txdesc->u.plcp.service = 0x04; in rt2x00queue_create_tx_descriptor_plcp() [all …]
|
D | rt2x00lib.h | 329 struct txentry_desc *txdesc); 333 struct txentry_desc *txdesc); 335 struct txentry_desc *txdesc); 348 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument 359 struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument 364 struct txentry_desc *txdesc) in rt2x00crypto_tx_remove_iv() argument
|
D | rt2x00dev.c | 319 struct txdone_entry_desc *txdesc, in rt2x00lib_fill_tx_status() argument 327 retry_rates = test_bit(TXDONE_FALLBACK, &txdesc->flags) ? in rt2x00lib_fill_tx_status() 328 (txdesc->retry + 1) : 1; in rt2x00lib_fill_tx_status() 360 if (test_bit(TXDONE_NO_ACK_REQ, &txdesc->flags)) in rt2x00lib_fill_tx_status() 379 if (test_bit(TXDONE_AMPDU, &txdesc->flags) || in rt2x00lib_fill_tx_status() 425 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone_nomatch() argument 455 test_bit(TXDONE_SUCCESS, &txdesc->flags); in rt2x00lib_txdone_nomatch() 457 if (!test_bit(TXDONE_UNKNOWN, &txdesc->flags)) { in rt2x00lib_txdone_nomatch() 464 rt2x00lib_fill_tx_status(rt2x00dev, &txinfo, skbdesc, txdesc, in rt2x00lib_txdone_nomatch() 475 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone() argument [all …]
|
D | rt2400pci.c | 1106 struct txentry_desc *txdesc) in rt2400pci_write_tx_desc() argument 1121 rt2x00_set_field32(&word, TXD_W2_BUFFER_LENGTH, txdesc->length); in rt2400pci_write_tx_desc() 1122 rt2x00_set_field32(&word, TXD_W2_DATABYTE_COUNT, txdesc->length); in rt2400pci_write_tx_desc() 1126 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2400pci_write_tx_desc() 1129 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2400pci_write_tx_desc() 1136 txdesc->u.plcp.length_low); in rt2400pci_write_tx_desc() 1140 txdesc->u.plcp.length_high); in rt2400pci_write_tx_desc() 1154 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2400pci_write_tx_desc() 1156 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2400pci_write_tx_desc() 1158 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2400pci_write_tx_desc() [all …]
|
D | rt61pci.c | 1872 struct txentry_desc *txdesc) in rt61pci_write_tx_desc() argument 1887 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt61pci_write_tx_desc() 1889 test_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags)); in rt61pci_write_tx_desc() 1894 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt61pci_write_tx_desc() 1895 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt61pci_write_tx_desc() 1897 txdesc->u.plcp.length_low); in rt61pci_write_tx_desc() 1899 txdesc->u.plcp.length_high); in rt61pci_write_tx_desc() 1902 if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags)) { in rt61pci_write_tx_desc() 1923 txdesc->length); in rt61pci_write_tx_desc() 1936 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt61pci_write_tx_desc() [all …]
|
D | rt2500usb.c | 1068 struct txentry_desc *txdesc) in rt2500usb_write_tx_desc() argument 1078 rt2x00_set_field32(&word, TXD_W0_RETRY_LIMIT, txdesc->retry_limit); in rt2500usb_write_tx_desc() 1080 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500usb_write_tx_desc() 1082 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2500usb_write_tx_desc() 1084 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2500usb_write_tx_desc() 1086 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt2500usb_write_tx_desc() 1088 test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)); in rt2500usb_write_tx_desc() 1089 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500usb_write_tx_desc() 1090 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length); in rt2500usb_write_tx_desc() 1091 rt2x00_set_field32(&word, TXD_W0_CIPHER, !!txdesc->cipher); in rt2500usb_write_tx_desc() [all …]
|
D | rt2500pci.c | 1259 struct txentry_desc *txdesc) in rt2500pci_write_tx_desc() argument 1281 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500pci_write_tx_desc() 1282 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500pci_write_tx_desc() 1284 txdesc->u.plcp.length_low); in rt2500pci_write_tx_desc() 1286 txdesc->u.plcp.length_high); in rt2500pci_write_tx_desc() 1291 test_bit(ENTRY_TXD_RTS_FRAME, &txdesc->flags)); in rt2500pci_write_tx_desc() 1303 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500pci_write_tx_desc() 1305 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2500pci_write_tx_desc() 1307 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2500pci_write_tx_desc() 1309 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt2500pci_write_tx_desc() [all …]
|
D | rt73usb.c | 1456 struct txentry_desc *txdesc) in rt73usb_write_tx_desc() argument 1467 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); in rt73usb_write_tx_desc() 1470 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt73usb_write_tx_desc() 1472 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt73usb_write_tx_desc() 1474 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt73usb_write_tx_desc() 1476 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt73usb_write_tx_desc() 1477 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt73usb_write_tx_desc() 1479 test_bit(ENTRY_TXD_RETRY_MODE, &txdesc->flags)); in rt73usb_write_tx_desc() 1481 test_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags)); in rt73usb_write_tx_desc() 1483 test_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags)); in rt73usb_write_tx_desc() [all …]
|
D | rt2800lib.h | 193 struct txentry_desc *txdesc); 194 void rt2800_process_rxwi(struct queue_entry *entry, struct rxdone_entry_desc *txdesc); 199 void rt2800_write_beacon(struct queue_entry *entry, struct txentry_desc *txdesc);
|
D | rt2x00.h | 588 struct txentry_desc *txdesc); 590 struct txentry_desc *txdesc); 592 struct txentry_desc *txdesc); 1428 struct txdone_entry_desc *txdesc); 1430 struct txdone_entry_desc *txdesc);
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | trx.c | 461 static void _rtl_fill_usb_tx_desc(u8 *txdesc) in _rtl_fill_usb_tx_desc() argument 463 SET_TX_DESC_OWN(txdesc, 1); in _rtl_fill_usb_tx_desc() 464 SET_TX_DESC_LAST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc() 465 SET_TX_DESC_FIRST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc() 470 static void _rtl_tx_desc_checksum(u8 *txdesc) in _rtl_tx_desc_checksum() argument 472 __le16 *ptr = (__le16 *)txdesc; in _rtl_tx_desc_checksum() 477 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, 0); in _rtl_tx_desc_checksum() 480 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, checksum); in _rtl_tx_desc_checksum() 503 u8 *txdesc; in rtl92cu_tx_fill_desc() local 507 txdesc = skb_push(skb, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_desc() [all …]
|
/Linux-v4.19/drivers/spi/ |
D | spi-dw-mid.c | 153 struct dma_async_tx_descriptor *txdesc; in dw_spi_dma_prepare_tx() local 167 txdesc = dmaengine_prep_slave_sg(dws->txchan, in dw_spi_dma_prepare_tx() 172 if (!txdesc) in dw_spi_dma_prepare_tx() 175 txdesc->callback = dw_spi_dma_tx_done; in dw_spi_dma_prepare_tx() 176 txdesc->callback_param = dws; in dw_spi_dma_prepare_tx() 178 return txdesc; in dw_spi_dma_prepare_tx() 250 struct dma_async_tx_descriptor *txdesc, *rxdesc; in mid_spi_dma_transfer() local 253 txdesc = dw_spi_dma_prepare_tx(dws, xfer); in mid_spi_dma_transfer() 265 if (txdesc) { in mid_spi_dma_transfer() 267 dmaengine_submit(txdesc); in mid_spi_dma_transfer()
|
D | spi-rockchip.c | 446 struct dma_async_tx_descriptor *rxdesc, *txdesc; in rockchip_spi_prepare_dma() local 475 txdesc = NULL; in rockchip_spi_prepare_dma() 486 txdesc = dmaengine_prep_slave_sg( in rockchip_spi_prepare_dma() 490 if (!txdesc) { in rockchip_spi_prepare_dma() 496 txdesc->callback = rockchip_spi_dma_txcb; in rockchip_spi_prepare_dma() 497 txdesc->callback_param = rs; in rockchip_spi_prepare_dma() 509 if (txdesc) { in rockchip_spi_prepare_dma() 513 dmaengine_submit(txdesc); in rockchip_spi_prepare_dma()
|
D | spi-img-spfi.c | 319 struct dma_async_tx_descriptor *rxdesc = NULL, *txdesc = NULL; in img_spfi_start_dma() local 362 txdesc = dmaengine_prep_slave_sg(spfi->tx_ch, xfer->tx_sg.sgl, in img_spfi_start_dma() 366 if (!txdesc) in img_spfi_start_dma() 369 txdesc->callback = img_spfi_dma_tx_cb; in img_spfi_start_dma() 370 txdesc->callback_param = spfi; in img_spfi_start_dma() 383 dmaengine_submit(txdesc); in img_spfi_start_dma()
|
D | spi-davinci.c | 651 struct dma_async_tx_descriptor *txdesc; in davinci_spi_bufs() local 672 txdesc = dmaengine_prep_slave_sg(dspi->dma_tx, in davinci_spi_bufs() 675 if (!txdesc) in davinci_spi_bufs() 680 txdesc->callback = davinci_spi_dma_tx_callback; in davinci_spi_bufs() 681 txdesc->callback_param = (void *)dspi; in davinci_spi_bufs() 687 dmaengine_submit(txdesc); in davinci_spi_bufs()
|
/Linux-v4.19/drivers/i2c/busses/ |
D | i2c-stm32.c | 101 struct dma_async_tx_descriptor *txdesc; in stm32_i2c_prep_dma_xfer() local 125 txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf, in stm32_i2c_prep_dma_xfer() 129 if (!txdesc) { in stm32_i2c_prep_dma_xfer() 137 txdesc->callback = callback; in stm32_i2c_prep_dma_xfer() 138 txdesc->callback_param = dma_async_param; in stm32_i2c_prep_dma_xfer() 139 ret = dma_submit_error(dmaengine_submit(txdesc)); in stm32_i2c_prep_dma_xfer()
|
D | i2c-sh_mobile.c | 554 struct dma_async_tx_descriptor *txdesc; in sh_mobile_i2c_xfer_dma() local 581 txdesc = dmaengine_prep_slave_sg(chan, &pd->sg, 1, in sh_mobile_i2c_xfer_dma() 584 if (!txdesc) { in sh_mobile_i2c_xfer_dma() 590 txdesc->callback = sh_mobile_i2c_dma_callback; in sh_mobile_i2c_xfer_dma() 591 txdesc->callback_param = pd; in sh_mobile_i2c_xfer_dma() 593 cookie = dmaengine_submit(txdesc); in sh_mobile_i2c_xfer_dma()
|
D | i2c-rcar.c | 411 struct dma_async_tx_descriptor *txdesc; in rcar_i2c_dma() local 448 txdesc = dmaengine_prep_slave_sg(chan, &priv->sg, 1, in rcar_i2c_dma() 451 if (!txdesc) { in rcar_i2c_dma() 457 txdesc->callback = rcar_i2c_dma_callback; in rcar_i2c_dma() 458 txdesc->callback_param = priv; in rcar_i2c_dma() 460 cookie = dmaengine_submit(txdesc); in rcar_i2c_dma()
|
D | i2c-at91.c | 304 struct dma_async_tx_descriptor *txdesc; in at91_twi_write_data_dma() local 358 txdesc = dmaengine_prep_slave_sg(chan_tx, dma->sg, sg_len, in at91_twi_write_data_dma() 361 if (!txdesc) { in at91_twi_write_data_dma() 366 txdesc->callback = at91_twi_write_data_dma_callback; in at91_twi_write_data_dma() 367 txdesc->callback_param = dev; in at91_twi_write_data_dma() 370 dmaengine_submit(txdesc); in at91_twi_write_data_dma()
|
/Linux-v4.19/drivers/net/wireless/intersil/hostap/ |
D | hostap_hw.c | 1807 struct hfa384x_tx_frame txdesc; in prism2_tx_80211() local 1828 memset(&txdesc, 0, sizeof(txdesc)); in prism2_tx_80211() 1832 skb_copy_from_linear_data(skb, &txdesc.frame_control, hdr_len); in prism2_tx_80211() 1833 fc = le16_to_cpu(txdesc.frame_control); in prism2_tx_80211() 1834 if (ieee80211_is_data(txdesc.frame_control) && in prism2_tx_80211() 1835 ieee80211_has_a4(txdesc.frame_control) && in prism2_tx_80211() 1838 skb_copy_from_linear_data_offset(skb, hdr_len, txdesc.addr4, in prism2_tx_80211() 1846 txdesc.sw_support = cpu_to_le32(meta->tx_cb_idx); in prism2_tx_80211() 1848 txdesc.tx_control = cpu_to_le16(tx_control); in prism2_tx_80211() 1849 txdesc.tx_rate = meta->rate; in prism2_tx_80211() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/include/ |
D | rtl8188e_xmit.h | 102 #define txdesc_set_ccx_sw_88e(txdesc, value) \ argument 104 ((struct txdesc_88e *)(txdesc))->sw1 = (((value)>>8) & 0x0f); \ 105 ((struct txdesc_88e *)(txdesc))->sw0 = ((value) & 0xff); \
|
/Linux-v4.19/drivers/staging/rtl8712/ |
D | rtl8712_xmit.h | 105 union txdesc { union 106 struct tx_desc txdesc; member
|
/Linux-v4.19/drivers/net/ethernet/ |
D | jme.c | 1443 struct txdesc *txdesc = txring->desc; in jme_tx_clean_tasklet() local 1466 !(txdesc[i].descwb.flags & TXWBFLAG_OWN))) { in jme_tx_clean_tasklet() 1471 err = txdesc[i].descwb.flags & TXWBFLAG_ALLERR; in jme_tx_clean_tasklet() 1475 txdesc[(i + j) & (mask)].dw[0] = 0; in jme_tx_clean_tasklet() 1986 struct txdesc *txdesc, in jme_fill_tx_map() argument 2009 txdesc->dw[0] = 0; in jme_fill_tx_map() 2010 txdesc->dw[1] = 0; in jme_fill_tx_map() 2011 txdesc->desc2.flags = TXFLAG_OWN; in jme_fill_tx_map() 2012 txdesc->desc2.flags |= (hidma) ? TXFLAG_64BIT : 0; in jme_fill_tx_map() 2013 txdesc->desc2.datalen = cpu_to_le16(len); in jme_fill_tx_map() [all …]
|
/Linux-v4.19/drivers/net/ethernet/renesas/ |
D | sh_eth.c | 1264 struct sh_eth_txdesc *txdesc; in sh_eth_tx_free() local 1271 txdesc = &mdp->tx_ring[entry]; in sh_eth_tx_free() 1272 sent = !(txdesc->status & cpu_to_le32(TD_TACT)); in sh_eth_tx_free() 1279 entry, le32_to_cpu(txdesc->status)); in sh_eth_tx_free() 1283 le32_to_cpu(txdesc->addr), in sh_eth_tx_free() 1284 le32_to_cpu(txdesc->len) >> 16, in sh_eth_tx_free() 1290 txdesc->status = cpu_to_le32(TD_TFP); in sh_eth_tx_free() 1292 txdesc->status |= cpu_to_le32(TD_TDLE); in sh_eth_tx_free() 1296 ndev->stats.tx_bytes += le32_to_cpu(txdesc->len) >> 16; in sh_eth_tx_free() 1354 struct sh_eth_txdesc *txdesc = NULL; in sh_eth_ring_format() local [all …]
|