/linux-3.4.99/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 | 205 struct txentry_desc *txdesc) in rt2x00queue_create_tx_descriptor_seq() argument 215 __set_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq() 231 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_seq() 242 struct txentry_desc *txdesc, in rt2x00queue_create_tx_descriptor_plcp() argument 256 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_plcp() 257 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp() 259 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp() 269 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp() 270 txdesc->u.plcp.service = 0x04; in rt2x00queue_create_tx_descriptor_plcp() 273 txdesc->u.plcp.length_high = (data_length >> 6) & 0x3f; 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 | 1104 struct txentry_desc *txdesc) in rt2400pci_write_tx_desc() argument 1119 rt2x00_set_field32(&word, TXD_W2_BUFFER_LENGTH, txdesc->length); in rt2400pci_write_tx_desc() 1120 rt2x00_set_field32(&word, TXD_W2_DATABYTE_COUNT, txdesc->length); in rt2400pci_write_tx_desc() 1124 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2400pci_write_tx_desc() 1127 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2400pci_write_tx_desc() 1134 txdesc->u.plcp.length_low); in rt2400pci_write_tx_desc() 1138 txdesc->u.plcp.length_high); in rt2400pci_write_tx_desc() 1152 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2400pci_write_tx_desc() 1154 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2400pci_write_tx_desc() 1156 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2400pci_write_tx_desc() [all …]
|
D | rt61pci.c | 1868 struct txentry_desc *txdesc) in rt61pci_write_tx_desc() argument 1883 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt61pci_write_tx_desc() 1885 test_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags)); in rt61pci_write_tx_desc() 1890 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt61pci_write_tx_desc() 1891 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt61pci_write_tx_desc() 1893 txdesc->u.plcp.length_low); in rt61pci_write_tx_desc() 1895 txdesc->u.plcp.length_high); in rt61pci_write_tx_desc() 1898 if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags)) { in rt61pci_write_tx_desc() 1920 txdesc->length); in rt61pci_write_tx_desc() 1933 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 | 1258 struct txentry_desc *txdesc) in rt2500pci_write_tx_desc() argument 1280 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500pci_write_tx_desc() 1281 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500pci_write_tx_desc() 1283 txdesc->u.plcp.length_low); in rt2500pci_write_tx_desc() 1285 txdesc->u.plcp.length_high); in rt2500pci_write_tx_desc() 1290 test_bit(ENTRY_TXD_RTS_FRAME, &txdesc->flags)); in rt2500pci_write_tx_desc() 1302 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500pci_write_tx_desc() 1304 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2500pci_write_tx_desc() 1306 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2500pci_write_tx_desc() 1308 (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 | 274 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone() argument 329 test_bit(TXDONE_SUCCESS, &txdesc->flags) || in rt2x00lib_txdone() 330 test_bit(TXDONE_UNKNOWN, &txdesc->flags); in rt2x00lib_txdone() 340 retry_rates = test_bit(TXDONE_FALLBACK, &txdesc->flags) ? in rt2x00lib_txdone() 341 (txdesc->retry + 1) : 1; in rt2x00lib_txdone() 389 if (test_bit(TXDONE_AMPDU, &txdesc->flags) || in rt2x00lib_txdone() 446 struct txdone_entry_desc txdesc; in rt2x00lib_txdone_noinfo() local 448 txdesc.flags = 0; in rt2x00lib_txdone_noinfo() 449 __set_bit(status, &txdesc.flags); in rt2x00lib_txdone_noinfo() 450 txdesc.retry = 0; in rt2x00lib_txdone_noinfo() [all …]
|
D | rt2800lib.h | 152 struct txentry_desc *txdesc); 153 void rt2800_process_rxwi(struct queue_entry *entry, struct rxdone_entry_desc *txdesc); 157 void rt2800_write_beacon(struct queue_entry *entry, struct txentry_desc *txdesc);
|
D | rt2800lib.c | 458 struct txentry_desc *txdesc) in rt2800_write_tx_data() argument 468 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2800_write_tx_data() 470 test_bit(ENTRY_TXD_HT_MIMO_PS, &txdesc->flags)); in rt2800_write_tx_data() 473 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2800_write_tx_data() 475 test_bit(ENTRY_TXD_HT_AMPDU, &txdesc->flags)); in rt2800_write_tx_data() 477 txdesc->u.ht.mpdu_density); in rt2800_write_tx_data() 478 rt2x00_set_field32(&word, TXWI_W0_TX_OP, txdesc->u.ht.txop); in rt2800_write_tx_data() 479 rt2x00_set_field32(&word, TXWI_W0_MCS, txdesc->u.ht.mcs); in rt2800_write_tx_data() 481 test_bit(ENTRY_TXD_HT_BW_40, &txdesc->flags)); in rt2800_write_tx_data() 483 test_bit(ENTRY_TXD_HT_SHORT_GI, &txdesc->flags)); in rt2800_write_tx_data() [all …]
|
D | rt2x00.h | 603 struct txentry_desc *txdesc); 605 struct txentry_desc *txdesc); 607 struct txentry_desc *txdesc); 1281 struct txdone_entry_desc *txdesc);
|
D | rt2800pci.c | 604 struct txentry_desc *txdesc) in rt2800pci_write_tx_desc() argument 629 !test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2800pci_write_tx_desc() 631 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); in rt2800pci_write_tx_desc() 644 !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()
|
/linux-3.4.99/drivers/net/wireless/rtlwifi/rtl8192cu/ |
D | trx.c | 476 static void _rtl_fill_usb_tx_desc(u8 *txdesc) in _rtl_fill_usb_tx_desc() argument 478 SET_TX_DESC_OWN(txdesc, 1); in _rtl_fill_usb_tx_desc() 479 SET_TX_DESC_LAST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc() 480 SET_TX_DESC_FIRST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc() 485 static void _rtl_tx_desc_checksum(u8 *txdesc) in _rtl_tx_desc_checksum() argument 487 u16 *ptr = (u16 *)txdesc; in _rtl_tx_desc_checksum() 492 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, 0); in _rtl_tx_desc_checksum() 495 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, cpu_to_le16(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 …]
|
/linux-3.4.99/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 …]
|
/linux-3.4.99/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-pl022.c | 901 struct dma_async_tx_descriptor *txdesc; in configure_dma() local 1035 txdesc = dmaengine_prep_slave_sg(txchan, in configure_dma() 1040 if (!txdesc) in configure_dma() 1049 dmaengine_submit(txdesc); in configure_dma()
|
/linux-3.4.99/drivers/staging/rtl8712/ |
D | rtl8712_xmit.h | 105 union txdesc { union 106 struct tx_desc txdesc; member
|
D | rtl871x_xmit.c | 193 struct tx_cmd txdesc; in r8712_update_attrib() local 240 i = _r8712_pktfile_read(&pktfile, (u8 *)&txdesc, TXDESC_SIZE); in r8712_update_attrib() 343 pattrib->priority = (txdesc.txdw1 >> QSEL_SHT) & 0x1f; in r8712_update_attrib()
|
/linux-3.4.99/drivers/net/ethernet/renesas/ |
D | sh_eth.c | 659 struct sh_eth_txdesc *txdesc = NULL; in sh_eth_ring_format() local 661 int tx_ringsize = sizeof(*txdesc) * TX_RING_SIZE; in sh_eth_ring_format() 705 txdesc = &mdp->tx_ring[i]; in sh_eth_ring_format() 706 txdesc->status = cpu_to_edmac(mdp, TD_TFP); in sh_eth_ring_format() 707 txdesc->buffer_length = 0; in sh_eth_ring_format() 716 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE); in sh_eth_ring_format() 879 struct sh_eth_txdesc *txdesc; in sh_eth_txfree() local 885 txdesc = &mdp->tx_ring[entry]; in sh_eth_txfree() 886 if (txdesc->status & cpu_to_edmac(mdp, TD_TACT)) in sh_eth_txfree() 890 dma_unmap_single(&ndev->dev, txdesc->addr, in sh_eth_txfree() [all …]
|
/linux-3.4.99/drivers/net/ethernet/ |
D | jme.c | 1449 struct txdesc *txdesc = txring->desc; in jme_tx_clean_tasklet() local 1472 !(txdesc[i].descwb.flags & TXWBFLAG_OWN))) { in jme_tx_clean_tasklet() 1477 err = txdesc[i].descwb.flags & TXWBFLAG_ALLERR; in jme_tx_clean_tasklet() 1481 txdesc[(i + j) & (mask)].dw[0] = 0; in jme_tx_clean_tasklet() 1988 struct txdesc *txdesc, in jme_fill_tx_map() argument 2008 txdesc->dw[0] = 0; in jme_fill_tx_map() 2009 txdesc->dw[1] = 0; in jme_fill_tx_map() 2010 txdesc->desc2.flags = TXFLAG_OWN; in jme_fill_tx_map() 2011 txdesc->desc2.flags |= (hidma) ? TXFLAG_64BIT : 0; in jme_fill_tx_map() 2012 txdesc->desc2.datalen = cpu_to_le16(len); in jme_fill_tx_map() [all …]
|
/linux-3.4.99/drivers/net/ethernet/dlink/ |
D | sundance.c | 1053 struct netdev_desc *txdesc = in tx_poll() local 1059 txdesc = &np->tx_ring[entry]; in tx_poll() 1064 np->last_tx = txdesc; in tx_poll() 1067 txdesc->status |= cpu_to_le32(DescIntrOnTx); in tx_poll() 1078 struct netdev_desc *txdesc; in start_tx() local 1084 txdesc = &np->tx_ring[entry]; in start_tx() 1086 txdesc->next_desc = 0; in start_tx() 1087 txdesc->status = cpu_to_le32 ((entry << 2) | DisableAlign); in start_tx() 1088 txdesc->frag[0].addr = cpu_to_le32(dma_map_single(&np->pci_dev->dev, in start_tx() 1091 txdesc->frag[0].addr)) in start_tx() [all …]
|
D | dl2k.c | 605 struct netdev_desc *txdesc; in start_xmit() local 617 txdesc = &np->tx_ring[entry]; in start_xmit() 621 txdesc->status |= in start_xmit() 631 txdesc->fraginfo = cpu_to_le64 (pci_map_single (np->pdev, skb->data, in start_xmit() 634 txdesc->fraginfo |= cpu_to_le64((u64)skb->len << 48); in start_xmit() 639 txdesc->status = cpu_to_le64 (entry | tfc_vlan_tag | in start_xmit() 644 txdesc->status = cpu_to_le64 (entry | tfc_vlan_tag | in start_xmit()
|
/linux-3.4.99/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 286 # define VMXNET3_TXDESC_GET_GEN(txdesc) get_bitfield32(((const __le32 *) \ argument 287 txdesc) + VMXNET3_TXD_GEN_DWORD_SHIFT, \ 289 # define VMXNET3_TXDESC_GET_EOP(txdesc) get_bitfield32(((const __le32 *) \ argument 290 txdesc) + VMXNET3_TXD_EOP_DWORD_SHIFT, \ 308 # define VMXNET3_TXDESC_GET_GEN(txdesc) ((txdesc)->gen) argument 309 # define VMXNET3_TXDESC_GET_EOP(txdesc) ((txdesc)->eop) argument
|