Home
last modified time | relevance | path

Searched refs:txdesc (Results 1 – 18 of 18) sorted by relevance

/drivers/net/wireless/rt2x00/
Drt2x00queue.c152 struct txentry_desc *txdesc) in rt2x00queue_create_tx_descriptor() argument
166 memset(txdesc, 0, sizeof(*txdesc)); in rt2x00queue_create_tx_descriptor()
171 txdesc->queue = entry->queue->qid; in rt2x00queue_create_tx_descriptor()
172 txdesc->cw_min = entry->queue->cw_min; in rt2x00queue_create_tx_descriptor()
173 txdesc->cw_max = entry->queue->cw_max; in rt2x00queue_create_tx_descriptor()
174 txdesc->aifs = entry->queue->aifs; in rt2x00queue_create_tx_descriptor()
183 __set_bit(ENTRY_TXD_ACK, &txdesc->flags); in rt2x00queue_create_tx_descriptor()
188 rt2x00crypto_create_tx_descriptor(entry, txdesc); in rt2x00queue_create_tx_descriptor()
202 __set_bit(ENTRY_TXD_BURST, &txdesc->flags); in rt2x00queue_create_tx_descriptor()
204 __set_bit(ENTRY_TXD_RTS_FRAME, &txdesc->flags); in rt2x00queue_create_tx_descriptor()
[all …]
Drt2x00crypto.c50 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument
55 __set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
57 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
60 __set_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
62 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
63 txdesc->iv_offset = ieee80211_get_hdrlen_from_skb(entry->skb); in rt2x00crypto_create_tx_descriptor()
66 __set_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
69 __set_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
Drt61pci.c1753 struct txentry_desc *txdesc) in rt61pci_write_tx_desc() argument
1763 rt2x00_set_field32(&word, TXD_W1_HOST_Q_ID, txdesc->queue); in rt61pci_write_tx_desc()
1764 rt2x00_set_field32(&word, TXD_W1_AIFSN, txdesc->aifs); in rt61pci_write_tx_desc()
1765 rt2x00_set_field32(&word, TXD_W1_CWMIN, txdesc->cw_min); in rt61pci_write_tx_desc()
1766 rt2x00_set_field32(&word, TXD_W1_CWMAX, txdesc->cw_max); in rt61pci_write_tx_desc()
1767 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt61pci_write_tx_desc()
1769 test_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags)); in rt61pci_write_tx_desc()
1774 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->signal); in rt61pci_write_tx_desc()
1775 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->service); in rt61pci_write_tx_desc()
1776 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_LOW, txdesc->length_low); in rt61pci_write_tx_desc()
[all …]
Drt2500pci.c1165 struct txentry_desc *txdesc) in rt2500pci_write_tx_desc() argument
1181 rt2x00_set_field32(&word, TXD_W2_AIFS, txdesc->aifs); in rt2500pci_write_tx_desc()
1182 rt2x00_set_field32(&word, TXD_W2_CWMIN, txdesc->cw_min); in rt2500pci_write_tx_desc()
1183 rt2x00_set_field32(&word, TXD_W2_CWMAX, txdesc->cw_max); in rt2500pci_write_tx_desc()
1187 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->signal); in rt2500pci_write_tx_desc()
1188 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->service); in rt2500pci_write_tx_desc()
1189 rt2x00_set_field32(&word, TXD_W3_PLCP_LENGTH_LOW, txdesc->length_low); in rt2500pci_write_tx_desc()
1190 rt2x00_set_field32(&word, TXD_W3_PLCP_LENGTH_HIGH, txdesc->length_high); in rt2500pci_write_tx_desc()
1195 test_bit(ENTRY_TXD_RTS_FRAME, &txdesc->flags)); in rt2500pci_write_tx_desc()
1202 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500pci_write_tx_desc()
[all …]
Drt2400pci.c1004 struct txentry_desc *txdesc) in rt2400pci_write_tx_desc() argument
1024 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->signal); in rt2400pci_write_tx_desc()
1027 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->service); in rt2400pci_write_tx_desc()
1033 rt2x00_set_field32(&word, TXD_W4_PLCP_LENGTH_LOW, txdesc->length_low); in rt2400pci_write_tx_desc()
1036 rt2x00_set_field32(&word, TXD_W4_PLCP_LENGTH_HIGH, txdesc->length_high); in rt2400pci_write_tx_desc()
1045 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2400pci_write_tx_desc()
1047 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2400pci_write_tx_desc()
1049 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2400pci_write_tx_desc()
1051 test_bit(ENTRY_TXD_RTS_FRAME, &txdesc->flags)); in rt2400pci_write_tx_desc()
1052 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->ifs); in rt2400pci_write_tx_desc()
[all …]
Drt73usb.c1404 struct txentry_desc *txdesc) in rt73usb_write_tx_desc() argument
1414 rt2x00_set_field32(&word, TXD_W1_HOST_Q_ID, txdesc->queue); in rt73usb_write_tx_desc()
1415 rt2x00_set_field32(&word, TXD_W1_AIFSN, txdesc->aifs); in rt73usb_write_tx_desc()
1416 rt2x00_set_field32(&word, TXD_W1_CWMIN, txdesc->cw_min); in rt73usb_write_tx_desc()
1417 rt2x00_set_field32(&word, TXD_W1_CWMAX, txdesc->cw_max); in rt73usb_write_tx_desc()
1418 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt73usb_write_tx_desc()
1420 test_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags)); in rt73usb_write_tx_desc()
1424 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->signal); in rt73usb_write_tx_desc()
1425 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->service); in rt73usb_write_tx_desc()
1426 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_LOW, txdesc->length_low); in rt73usb_write_tx_desc()
[all …]
Drt2500usb.c1142 struct txentry_desc *txdesc) in rt2500usb_write_tx_desc() argument
1152 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt2500usb_write_tx_desc()
1153 rt2x00_set_field32(&word, TXD_W1_AIFS, txdesc->aifs); in rt2500usb_write_tx_desc()
1154 rt2x00_set_field32(&word, TXD_W1_CWMIN, txdesc->cw_min); in rt2500usb_write_tx_desc()
1155 rt2x00_set_field32(&word, TXD_W1_CWMAX, txdesc->cw_max); in rt2500usb_write_tx_desc()
1159 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->signal); in rt2500usb_write_tx_desc()
1160 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->service); in rt2500usb_write_tx_desc()
1161 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_LOW, txdesc->length_low); in rt2500usb_write_tx_desc()
1162 rt2x00_set_field32(&word, TXD_W2_PLCP_LENGTH_HIGH, txdesc->length_high); in rt2500usb_write_tx_desc()
1165 if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags)) { in rt2500usb_write_tx_desc()
[all …]
Drt2x00usb.c186 struct txdone_entry_desc txdesc; in rt2x00usb_interrupt_txdone() local
201 txdesc.flags = 0; in rt2x00usb_interrupt_txdone()
203 __set_bit(TXDONE_UNKNOWN, &txdesc.flags); in rt2x00usb_interrupt_txdone()
205 __set_bit(TXDONE_FAILURE, &txdesc.flags); in rt2x00usb_interrupt_txdone()
206 txdesc.retry = 0; in rt2x00usb_interrupt_txdone()
208 rt2x00lib_txdone(entry, &txdesc); in rt2x00usb_interrupt_txdone()
Drt2x00dev.c498 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone() argument
530 test_bit(TXDONE_SUCCESS, &txdesc->flags); in rt2x00lib_txdone()
532 test_bit(TXDONE_FAILURE, &txdesc->flags); in rt2x00lib_txdone()
544 tx_info->status.rates[0].count = txdesc->retry + 1; in rt2x00lib_txdone()
548 if (test_bit(TXDONE_SUCCESS, &txdesc->flags)) in rt2x00lib_txdone()
550 else if (test_bit(TXDONE_FAILURE, &txdesc->flags)) in rt2x00lib_txdone()
555 if (test_bit(TXDONE_SUCCESS, &txdesc->flags)) in rt2x00lib_txdone()
557 else if (test_bit(TXDONE_FAILURE, &txdesc->flags)) in rt2x00lib_txdone()
Drt2x00lib.h211 struct txentry_desc *txdesc);
226 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument
Drt2x00.h555 struct txentry_desc *txdesc);
961 struct txdone_entry_desc *txdesc);
/drivers/net/wireless/hostap/
Dhostap_hw.c1816 struct hfa384x_tx_frame txdesc; in prism2_tx_80211() local
1837 memset(&txdesc, 0, sizeof(txdesc)); in prism2_tx_80211()
1841 skb_copy_from_linear_data(skb, &txdesc.frame_control, hdr_len); in prism2_tx_80211()
1842 fc = le16_to_cpu(txdesc.frame_control); in prism2_tx_80211()
1847 skb_copy_from_linear_data_offset(skb, hdr_len, txdesc.addr4, in prism2_tx_80211()
1855 txdesc.sw_support = cpu_to_le32(meta->tx_cb_idx); in prism2_tx_80211()
1857 txdesc.tx_control = cpu_to_le16(tx_control); in prism2_tx_80211()
1858 txdesc.tx_rate = meta->rate; in prism2_tx_80211()
1861 txdesc.data_len = cpu_to_le16(data_len); in prism2_tx_80211()
1862 txdesc.len = cpu_to_be16(data_len); in prism2_tx_80211()
[all …]
/drivers/net/
Dsh_eth.c236 struct sh_eth_txdesc *txdesc = NULL; in sh_eth_ring_format() local
238 int tx_ringsize = sizeof(*txdesc) * TX_RING_SIZE; in sh_eth_ring_format()
294 txdesc = &mdp->tx_ring[i]; in sh_eth_ring_format()
295 txdesc->status = cpu_to_edmac(mdp, TD_TFP); in sh_eth_ring_format()
296 txdesc->buffer_length = 0; in sh_eth_ring_format()
299 ctrl_outl((u32)txdesc, ioaddr + TDLAR); in sh_eth_ring_format()
301 ctrl_outl((u32)txdesc, ioaddr + TDFAR); in sh_eth_ring_format()
308 ctrl_outl((u32)txdesc, ioaddr + TDFXR); in sh_eth_ring_format()
312 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE); in sh_eth_ring_format()
473 struct sh_eth_txdesc *txdesc; in sh_eth_txfree() local
[all …]
Djme.c1316 struct txdesc *txdesc = txring->desc; in jme_tx_clean_tasklet() local
1339 !(txdesc[i].descwb.flags & TXWBFLAG_OWN))) { in jme_tx_clean_tasklet()
1344 err = txdesc[i].descwb.flags & TXWBFLAG_ALLERR; in jme_tx_clean_tasklet()
1348 txdesc[(i + j) & (mask)].dw[0] = 0; in jme_tx_clean_tasklet()
1690 struct txdesc *txdesc, in jme_fill_tx_map() argument
1710 txdesc->dw[0] = 0; in jme_fill_tx_map()
1711 txdesc->dw[1] = 0; in jme_fill_tx_map()
1712 txdesc->desc2.flags = TXFLAG_OWN; in jme_fill_tx_map()
1713 txdesc->desc2.flags |= (hidma) ? TXFLAG_64BIT : 0; in jme_fill_tx_map()
1714 txdesc->desc2.datalen = cpu_to_le16(len); in jme_fill_tx_map()
[all …]
Dsundance.c1034 struct netdev_desc *txdesc = in tx_poll() local
1040 txdesc = &np->tx_ring[entry]; in tx_poll()
1045 np->last_tx = txdesc; in tx_poll()
1048 txdesc->status |= cpu_to_le32(DescIntrOnTx); in tx_poll()
1060 struct netdev_desc *txdesc; in start_tx() local
1066 txdesc = &np->tx_ring[entry]; in start_tx()
1068 txdesc->next_desc = 0; in start_tx()
1069 txdesc->status = cpu_to_le32 ((entry << 2) | DisableAlign); in start_tx()
1070 txdesc->frag[0].addr = cpu_to_le32 (pci_map_single (np->pci_dev, skb->data, in start_tx()
1073 txdesc->frag[0].length = cpu_to_le32 (skb->len | LastFrag); in start_tx()
Ddl2k.c606 struct netdev_desc *txdesc; in start_xmit() local
618 txdesc = &np->tx_ring[entry]; in start_xmit()
622 txdesc->status |= in start_xmit()
632 txdesc->fraginfo = cpu_to_le64 (pci_map_single (np->pdev, skb->data, in start_xmit()
635 txdesc->fraginfo |= cpu_to_le64((u64)skb->len << 48); in start_xmit()
640 txdesc->status = cpu_to_le64 (entry | tfc_vlan_tag | in start_xmit()
645 txdesc->status = cpu_to_le64 (entry | tfc_vlan_tag | in start_xmit()
Djme.h180 struct txdesc { struct
/drivers/net/wan/
Dfarsync.c128 struct txdesc { /* Transmit descriptor */ struct
266 struct txdesc txDescrRing[FST_MAX_PORTS][NUM_TX_BUFFER];