/drivers/net/wireless/rtlwifi/rtl8192cu/ |
D | trx.c | 475 static void _rtl_fill_usb_tx_desc(u8 *txdesc) in _rtl_fill_usb_tx_desc() argument 477 SET_TX_DESC_OWN(txdesc, 1); in _rtl_fill_usb_tx_desc() 478 SET_TX_DESC_LAST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc() 479 SET_TX_DESC_FIRST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc() 484 static void _rtl_tx_desc_checksum(u8 *txdesc) in _rtl_tx_desc_checksum() argument 486 u16 *ptr = (u16 *)txdesc; in _rtl_tx_desc_checksum() 491 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, 0); in _rtl_tx_desc_checksum() 494 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, checksum); in _rtl_tx_desc_checksum() 517 u8 *txdesc; in rtl92cu_tx_fill_desc() local 521 txdesc = (u8 *)skb_push(skb, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_desc() [all …]
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00crypto.c | 50 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument 58 __set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags); in rt2x00crypto_create_tx_descriptor() 60 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor() 63 __set_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags); in rt2x00crypto_create_tx_descriptor() 65 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor() 66 txdesc->iv_offset = txdesc->header_length; in rt2x00crypto_create_tx_descriptor() 67 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor() 70 __set_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags); in rt2x00crypto_create_tx_descriptor() 73 __set_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags); in rt2x00crypto_create_tx_descriptor() 104 void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument [all …]
|
D | rt2x00queue.c | 217 struct txentry_desc *txdesc) in rt2x00queue_create_tx_descriptor_seq() argument 227 __set_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq() 237 __clear_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq() 254 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_seq() 265 struct txentry_desc *txdesc, in rt2x00queue_create_tx_descriptor_plcp() argument 279 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_plcp() 280 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp() 282 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp() 292 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp() 293 txdesc->u.plcp.service = 0x04; in rt2x00queue_create_tx_descriptor_plcp() [all …]
|
D | rt2x00lib.h | 354 struct txentry_desc *txdesc); 358 struct txentry_desc *txdesc); 360 struct txentry_desc *txdesc); 373 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument 384 struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument 389 struct txentry_desc *txdesc) in rt2x00crypto_tx_remove_iv() argument
|
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() 1924 txdesc->length); in rt61pci_write_tx_desc() 1937 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt61pci_write_tx_desc() [all …]
|
D | rt2500usb.c | 1082 struct txentry_desc *txdesc) in rt2500usb_write_tx_desc() argument 1092 rt2x00_set_field32(&word, TXD_W0_RETRY_LIMIT, txdesc->retry_limit); in rt2500usb_write_tx_desc() 1094 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500usb_write_tx_desc() 1096 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2500usb_write_tx_desc() 1098 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2500usb_write_tx_desc() 1100 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt2500usb_write_tx_desc() 1102 test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)); in rt2500usb_write_tx_desc() 1103 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500usb_write_tx_desc() 1104 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length); in rt2500usb_write_tx_desc() 1105 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 | rt2x00dev.c | 319 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone() argument 377 test_bit(TXDONE_SUCCESS, &txdesc->flags) || in rt2x00lib_txdone() 378 test_bit(TXDONE_UNKNOWN, &txdesc->flags); in rt2x00lib_txdone() 388 retry_rates = test_bit(TXDONE_FALLBACK, &txdesc->flags) ? in rt2x00lib_txdone() 389 (txdesc->retry + 1) : 1; in rt2x00lib_txdone() 437 if (test_bit(TXDONE_AMPDU, &txdesc->flags) || in rt2x00lib_txdone() 494 struct txdone_entry_desc txdesc; in rt2x00lib_txdone_noinfo() local 496 txdesc.flags = 0; in rt2x00lib_txdone_noinfo() 497 __set_bit(status, &txdesc.flags); in rt2x00lib_txdone_noinfo() 498 txdesc.retry = 0; in rt2x00lib_txdone_noinfo() [all …]
|
D | rt2800lib.h | 169 struct txentry_desc *txdesc); 170 void rt2800_process_rxwi(struct queue_entry *entry, struct rxdone_entry_desc *txdesc); 174 void rt2800_write_beacon(struct queue_entry *entry, struct txentry_desc *txdesc);
|
D | rt2800lib.c | 541 struct txentry_desc *txdesc) in rt2800_write_tx_data() argument 552 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2800_write_tx_data() 554 test_bit(ENTRY_TXD_HT_MIMO_PS, &txdesc->flags)); in rt2800_write_tx_data() 557 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2800_write_tx_data() 559 test_bit(ENTRY_TXD_HT_AMPDU, &txdesc->flags)); in rt2800_write_tx_data() 561 txdesc->u.ht.mpdu_density); in rt2800_write_tx_data() 562 rt2x00_set_field32(&word, TXWI_W0_TX_OP, txdesc->u.ht.txop); in rt2800_write_tx_data() 563 rt2x00_set_field32(&word, TXWI_W0_MCS, txdesc->u.ht.mcs); in rt2800_write_tx_data() 565 test_bit(ENTRY_TXD_HT_BW_40, &txdesc->flags)); in rt2800_write_tx_data() 567 test_bit(ENTRY_TXD_HT_SHORT_GI, &txdesc->flags)); in rt2800_write_tx_data() [all …]
|
D | rt2x00.h | 593 struct txentry_desc *txdesc); 595 struct txentry_desc *txdesc); 597 struct txentry_desc *txdesc); 1330 struct txdone_entry_desc *txdesc);
|
D | rt2800pci.c | 634 struct txentry_desc *txdesc) in rt2800pci_write_tx_desc() argument 659 !test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2800pci_write_tx_desc() 661 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); in rt2800pci_write_tx_desc() 674 !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags)); in rt2800pci_write_tx_desc()
|
D | rt2800usb.c | 455 struct txentry_desc *txdesc) in rt2800usb_write_tx_desc() argument 474 !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags)); in rt2800usb_write_tx_desc() 479 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); in rt2800usb_write_tx_desc()
|
/drivers/net/wireless/hostap/ |
D | hostap_hw.c | 1809 struct hfa384x_tx_frame txdesc; in prism2_tx_80211() local 1830 memset(&txdesc, 0, sizeof(txdesc)); in prism2_tx_80211() 1834 skb_copy_from_linear_data(skb, &txdesc.frame_control, hdr_len); in prism2_tx_80211() 1835 fc = le16_to_cpu(txdesc.frame_control); in prism2_tx_80211() 1836 if (ieee80211_is_data(txdesc.frame_control) && in prism2_tx_80211() 1837 ieee80211_has_a4(txdesc.frame_control) && in prism2_tx_80211() 1840 skb_copy_from_linear_data_offset(skb, hdr_len, txdesc.addr4, in prism2_tx_80211() 1848 txdesc.sw_support = cpu_to_le32(meta->tx_cb_idx); in prism2_tx_80211() 1850 txdesc.tx_control = cpu_to_le16(tx_control); in prism2_tx_80211() 1851 txdesc.tx_rate = meta->rate; in prism2_tx_80211() [all …]
|
/drivers/spi/ |
D | spi-dw-mid.c | 112 struct dma_async_tx_descriptor *txdesc = NULL, *rxdesc = NULL; in mid_spi_dma_transfer() local 149 txdesc = dmaengine_prep_slave_sg(txchan, in mid_spi_dma_transfer() 154 txdesc->callback = dw_spi_dma_done; in mid_spi_dma_transfer() 155 txdesc->callback_param = dws; in mid_spi_dma_transfer() 182 txdesc->tx_submit(txdesc); in mid_spi_dma_transfer()
|
D | spi-davinci.c | 583 struct dma_async_tx_descriptor *txdesc; in davinci_spi_bufs() local 627 txdesc = dmaengine_prep_slave_sg(dspi->dma_tx, in davinci_spi_bufs() 630 if (!txdesc) in davinci_spi_bufs() 635 txdesc->callback = davinci_spi_dma_tx_callback; in davinci_spi_bufs() 636 txdesc->callback_param = (void *)dspi; in davinci_spi_bufs() 642 dmaengine_submit(txdesc); in davinci_spi_bufs()
|
D | spi-atmel.c | 557 struct dma_async_tx_descriptor *txdesc; in atmel_spi_next_xfer_dma_submit() local 610 txdesc = txchan->device->device_prep_slave_sg(txchan, in atmel_spi_next_xfer_dma_submit() 616 if (!txdesc) in atmel_spi_next_xfer_dma_submit() 635 cookie = txdesc->tx_submit(txdesc); in atmel_spi_next_xfer_dma_submit()
|
/drivers/net/ethernet/ |
D | jme.c | 1450 struct txdesc *txdesc = txring->desc; in jme_tx_clean_tasklet() local 1473 !(txdesc[i].descwb.flags & TXWBFLAG_OWN))) { in jme_tx_clean_tasklet() 1478 err = txdesc[i].descwb.flags & TXWBFLAG_ALLERR; in jme_tx_clean_tasklet() 1482 txdesc[(i + j) & (mask)].dw[0] = 0; in jme_tx_clean_tasklet() 1993 struct txdesc *txdesc, in jme_fill_tx_map() argument 2013 txdesc->dw[0] = 0; in jme_fill_tx_map() 2014 txdesc->dw[1] = 0; in jme_fill_tx_map() 2015 txdesc->desc2.flags = TXFLAG_OWN; in jme_fill_tx_map() 2016 txdesc->desc2.flags |= (hidma) ? TXFLAG_64BIT : 0; in jme_fill_tx_map() 2017 txdesc->desc2.datalen = cpu_to_le16(len); in jme_fill_tx_map() [all …]
|
/drivers/staging/rtl8712/ |
D | rtl8712_xmit.h | 105 union txdesc { union 106 struct tx_desc txdesc; member
|
/drivers/net/ethernet/renesas/ |
D | sh_eth.c | 1125 struct sh_eth_txdesc *txdesc = NULL; in sh_eth_ring_format() local 1127 int tx_ringsize = sizeof(*txdesc) * mdp->num_tx_ring; in sh_eth_ring_format() 1171 txdesc = &mdp->tx_ring[i]; in sh_eth_ring_format() 1172 txdesc->status = cpu_to_edmac(mdp, TD_TFP); in sh_eth_ring_format() 1173 txdesc->buffer_length = 0; in sh_eth_ring_format() 1182 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE); in sh_eth_ring_format() 1363 struct sh_eth_txdesc *txdesc; in sh_eth_txfree() local 1369 txdesc = &mdp->tx_ring[entry]; in sh_eth_txfree() 1370 if (txdesc->status & cpu_to_edmac(mdp, TD_TACT)) in sh_eth_txfree() 1374 dma_unmap_single(&ndev->dev, txdesc->addr, in sh_eth_txfree() [all …]
|
/drivers/i2c/busses/ |
D | i2c-at91.c | 222 struct dma_async_tx_descriptor *txdesc; in at91_twi_write_data_dma() local 243 txdesc = dmaengine_prep_slave_sg(chan_tx, &dma->sg, 1, DMA_MEM_TO_DEV, in at91_twi_write_data_dma() 245 if (!txdesc) { in at91_twi_write_data_dma() 250 txdesc->callback = at91_twi_write_data_dma_callback; in at91_twi_write_data_dma() 251 txdesc->callback_param = dev; in at91_twi_write_data_dma() 254 dmaengine_submit(txdesc); in at91_twi_write_data_dma()
|
/drivers/net/ethernet/dlink/ |
D | sundance.c | 1064 struct netdev_desc *txdesc = in tx_poll() local 1070 txdesc = &np->tx_ring[entry]; in tx_poll() 1075 np->last_tx = txdesc; in tx_poll() 1078 txdesc->status |= cpu_to_le32(DescIntrOnTx); in tx_poll() 1089 struct netdev_desc *txdesc; in start_tx() local 1095 txdesc = &np->tx_ring[entry]; in start_tx() 1097 txdesc->next_desc = 0; in start_tx() 1098 txdesc->status = cpu_to_le32 ((entry << 2) | DisableAlign); in start_tx() 1099 txdesc->frag[0].addr = cpu_to_le32(dma_map_single(&np->pci_dev->dev, in start_tx() 1102 txdesc->frag[0].addr)) in start_tx() [all …]
|
D | dl2k.c | 604 struct netdev_desc *txdesc; in start_xmit() local 614 txdesc = &np->tx_ring[entry]; in start_xmit() 618 txdesc->status |= in start_xmit() 628 txdesc->fraginfo = cpu_to_le64 (pci_map_single (np->pdev, skb->data, in start_xmit() 631 txdesc->fraginfo |= cpu_to_le64((u64)skb->len << 48); in start_xmit() 636 txdesc->status = cpu_to_le64 (entry | tfc_vlan_tag | in start_xmit() 641 txdesc->status = cpu_to_le64 (entry | tfc_vlan_tag | in start_xmit()
|