Home
last modified time | relevance | path

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

12

/drivers/net/wireless/realtek/rtw88/
Dtx.h12 #define SET_TX_DESC_TXPKTSIZE(txdesc, value) \ argument
13 le32p_replace_bits((__le32 *)(txdesc) + 0x00, value, GENMASK(15, 0))
14 #define SET_TX_DESC_OFFSET(txdesc, value) \ argument
15 le32p_replace_bits((__le32 *)(txdesc) + 0x00, value, GENMASK(23, 16))
16 #define SET_TX_DESC_PKT_OFFSET(txdesc, value) \ argument
17 le32p_replace_bits((__le32 *)(txdesc) + 0x01, value, GENMASK(28, 24))
18 #define SET_TX_DESC_QSEL(txdesc, value) \ argument
19 le32p_replace_bits((__le32 *)(txdesc) + 0x01, value, GENMASK(12, 8))
20 #define SET_TX_DESC_BMC(txdesc, value) \ argument
21 le32p_replace_bits((__le32 *)(txdesc) + 0x00, value, BIT(24))
[all …]
Dtx.c37 __le32 *txdesc = (__le32 *)skb->data; in rtw_tx_fill_tx_desc() local
39 SET_TX_DESC_TXPKTSIZE(txdesc, pkt_info->tx_pkt_size); in rtw_tx_fill_tx_desc()
40 SET_TX_DESC_OFFSET(txdesc, pkt_info->offset); in rtw_tx_fill_tx_desc()
41 SET_TX_DESC_PKT_OFFSET(txdesc, pkt_info->pkt_offset); in rtw_tx_fill_tx_desc()
42 SET_TX_DESC_QSEL(txdesc, pkt_info->qsel); in rtw_tx_fill_tx_desc()
43 SET_TX_DESC_BMC(txdesc, pkt_info->bmc); in rtw_tx_fill_tx_desc()
44 SET_TX_DESC_RATE_ID(txdesc, pkt_info->rate_id); in rtw_tx_fill_tx_desc()
45 SET_TX_DESC_DATARATE(txdesc, pkt_info->rate); in rtw_tx_fill_tx_desc()
46 SET_TX_DESC_DISDATAFB(txdesc, pkt_info->dis_rate_fallback); in rtw_tx_fill_tx_desc()
47 SET_TX_DESC_USE_RATE(txdesc, pkt_info->use_rate); in rtw_tx_fill_tx_desc()
[all …]
/drivers/net/wireless/ralink/rt2x00/
Drt2x00queue.c178 struct txentry_desc *txdesc) in rt2x00queue_create_tx_descriptor_seq() argument
188 __set_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq()
199 __set_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq()
204 __clear_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq()
218 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_seq()
229 struct txentry_desc *txdesc, in rt2x00queue_create_tx_descriptor_plcp() argument
243 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_plcp()
244 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp()
246 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp()
256 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp()
[all …]
Drt2x00crypto.c37 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument
45 __set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
47 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
50 __set_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
52 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
53 txdesc->iv_offset = txdesc->header_length; in rt2x00crypto_create_tx_descriptor()
54 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
57 __set_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
60 __set_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
91 void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument
[all …]
Drt2x00lib.h318 struct txentry_desc *txdesc);
322 struct txentry_desc *txdesc);
324 struct txentry_desc *txdesc);
337 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument
348 struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument
353 struct txentry_desc *txdesc) in rt2x00crypto_tx_remove_iv() argument
Drt2x00dev.c308 struct txdone_entry_desc *txdesc, in rt2x00lib_fill_tx_status() argument
316 retry_rates = test_bit(TXDONE_FALLBACK, &txdesc->flags) ? in rt2x00lib_fill_tx_status()
317 (txdesc->retry + 1) : 1; in rt2x00lib_fill_tx_status()
349 if (test_bit(TXDONE_NO_ACK_REQ, &txdesc->flags)) in rt2x00lib_fill_tx_status()
368 if (test_bit(TXDONE_AMPDU, &txdesc->flags) || in rt2x00lib_fill_tx_status()
411 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone_nomatch() argument
441 test_bit(TXDONE_SUCCESS, &txdesc->flags); in rt2x00lib_txdone_nomatch()
443 if (!test_bit(TXDONE_UNKNOWN, &txdesc->flags)) { in rt2x00lib_txdone_nomatch()
450 rt2x00lib_fill_tx_status(rt2x00dev, &txinfo, skbdesc, txdesc, in rt2x00lib_txdone_nomatch()
461 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone() argument
[all …]
Drt2400pci.c1095 struct txentry_desc *txdesc) in rt2400pci_write_tx_desc() argument
1110 rt2x00_set_field32(&word, TXD_W2_BUFFER_LENGTH, txdesc->length); in rt2400pci_write_tx_desc()
1111 rt2x00_set_field32(&word, TXD_W2_DATABYTE_COUNT, txdesc->length); in rt2400pci_write_tx_desc()
1115 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2400pci_write_tx_desc()
1118 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2400pci_write_tx_desc()
1125 txdesc->u.plcp.length_low); in rt2400pci_write_tx_desc()
1129 txdesc->u.plcp.length_high); in rt2400pci_write_tx_desc()
1143 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2400pci_write_tx_desc()
1145 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2400pci_write_tx_desc()
1147 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2400pci_write_tx_desc()
[all …]
Drt61pci.c1776 struct txentry_desc *txdesc) in rt61pci_write_tx_desc() argument
1791 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt61pci_write_tx_desc()
1793 test_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags)); in rt61pci_write_tx_desc()
1798 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt61pci_write_tx_desc()
1799 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt61pci_write_tx_desc()
1801 txdesc->u.plcp.length_low); in rt61pci_write_tx_desc()
1803 txdesc->u.plcp.length_high); in rt61pci_write_tx_desc()
1806 if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags)) { in rt61pci_write_tx_desc()
1827 txdesc->length); in rt61pci_write_tx_desc()
1840 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt61pci_write_tx_desc()
[all …]
Drt2500usb.c1057 struct txentry_desc *txdesc) in rt2500usb_write_tx_desc() argument
1067 rt2x00_set_field32(&word, TXD_W0_RETRY_LIMIT, txdesc->retry_limit); in rt2500usb_write_tx_desc()
1069 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500usb_write_tx_desc()
1071 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2500usb_write_tx_desc()
1073 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2500usb_write_tx_desc()
1075 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt2500usb_write_tx_desc()
1077 test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)); in rt2500usb_write_tx_desc()
1078 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500usb_write_tx_desc()
1079 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length); in rt2500usb_write_tx_desc()
1080 rt2x00_set_field32(&word, TXD_W0_CIPHER, !!txdesc->cipher); in rt2500usb_write_tx_desc()
[all …]
Drt2500pci.c1248 struct txentry_desc *txdesc) in rt2500pci_write_tx_desc() argument
1270 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500pci_write_tx_desc()
1271 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500pci_write_tx_desc()
1273 txdesc->u.plcp.length_low); in rt2500pci_write_tx_desc()
1275 txdesc->u.plcp.length_high); in rt2500pci_write_tx_desc()
1280 test_bit(ENTRY_TXD_RTS_FRAME, &txdesc->flags)); in rt2500pci_write_tx_desc()
1292 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500pci_write_tx_desc()
1294 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2500pci_write_tx_desc()
1296 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2500pci_write_tx_desc()
1298 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt2500pci_write_tx_desc()
[all …]
Drt73usb.c1445 struct txentry_desc *txdesc) in rt73usb_write_tx_desc() argument
1456 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); in rt73usb_write_tx_desc()
1459 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt73usb_write_tx_desc()
1461 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt73usb_write_tx_desc()
1463 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt73usb_write_tx_desc()
1465 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt73usb_write_tx_desc()
1466 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt73usb_write_tx_desc()
1468 test_bit(ENTRY_TXD_RETRY_MODE, &txdesc->flags)); in rt73usb_write_tx_desc()
1470 test_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags)); in rt73usb_write_tx_desc()
1472 test_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags)); in rt73usb_write_tx_desc()
[all …]
Drt2800lib.h190 struct txentry_desc *txdesc);
191 void rt2800_process_rxwi(struct queue_entry *entry, struct rxdone_entry_desc *txdesc);
202 void rt2800_write_beacon(struct queue_entry *entry, struct txentry_desc *txdesc);
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dtrx.c444 static void _rtl_fill_usb_tx_desc(__le32 *txdesc) in _rtl_fill_usb_tx_desc() argument
446 set_tx_desc_own(txdesc, 1); in _rtl_fill_usb_tx_desc()
447 set_tx_desc_last_seg(txdesc, 1); in _rtl_fill_usb_tx_desc()
448 set_tx_desc_first_seg(txdesc, 1); in _rtl_fill_usb_tx_desc()
454 static void _rtl_tx_desc_checksum(__le32 *txdesc) in _rtl_tx_desc_checksum() argument
456 __le16 *ptr = (__le16 *)txdesc; in _rtl_tx_desc_checksum()
461 set_tx_desc_tx_desc_checksum(txdesc, 0); in _rtl_tx_desc_checksum()
464 set_tx_desc_tx_desc_checksum(txdesc, checksum); in _rtl_tx_desc_checksum()
488 __le32 *txdesc; in rtl92cu_tx_fill_desc() local
493 txdesc = (__le32 *)txdesc8; in rtl92cu_tx_fill_desc()
[all …]
/drivers/staging/rtl8712/
Dhal_init.c166 struct tx_desc *txdesc; in rtl8712_dl_fw() local
184 txdesc = (struct tx_desc *)(tmpchar + FWBUFF_ALIGN_SZ - in rtl8712_dl_fw()
186 payload = (u8 *)(txdesc) + txdscp_sz; in rtl8712_dl_fw()
193 memset(txdesc, 0, TXDESC_SIZE); in rtl8712_dl_fw()
198 txdesc->txdw0 |= cpu_to_le32(BIT(28)); in rtl8712_dl_fw()
200 txdesc->txdw0 |= cpu_to_le32(dump_imem_sz & in rtl8712_dl_fw()
205 (u8 *)txdesc); in rtl8712_dl_fw()
222 memset(txdesc, 0, TXDESC_SIZE); in rtl8712_dl_fw()
227 txdesc->txdw0 |= cpu_to_le32(BIT(28)); in rtl8712_dl_fw()
229 txdesc->txdw0 |= cpu_to_le32(dump_emem_sz & in rtl8712_dl_fw()
[all …]
Drtl8712_xmit.h90 union txdesc { union
91 struct tx_desc txdesc; member
/drivers/net/wireless/intersil/hostap/
Dhostap_hw.c1791 struct hfa384x_tx_frame txdesc; in prism2_tx_80211() local
1812 memset(&txdesc, 0, sizeof(txdesc)); in prism2_tx_80211()
1816 skb_copy_from_linear_data(skb, &txdesc.frame_control, hdr_len); in prism2_tx_80211()
1817 if (ieee80211_is_data(txdesc.frame_control) && in prism2_tx_80211()
1818 ieee80211_has_a4(txdesc.frame_control) && in prism2_tx_80211()
1821 skb_copy_from_linear_data_offset(skb, hdr_len, txdesc.addr4, in prism2_tx_80211()
1829 txdesc.sw_support = cpu_to_le32(meta->tx_cb_idx); in prism2_tx_80211()
1831 txdesc.tx_control = cpu_to_le16(tx_control); in prism2_tx_80211()
1832 txdesc.tx_rate = meta->rate; in prism2_tx_80211()
1835 txdesc.data_len = cpu_to_le16(data_len); in prism2_tx_80211()
[all …]
/drivers/i2c/busses/
Di2c-stm32.c104 struct dma_async_tx_descriptor *txdesc; in stm32_i2c_prep_dma_xfer() local
128 txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf, in stm32_i2c_prep_dma_xfer()
132 if (!txdesc) { in stm32_i2c_prep_dma_xfer()
140 txdesc->callback = callback; in stm32_i2c_prep_dma_xfer()
141 txdesc->callback_param = dma_async_param; in stm32_i2c_prep_dma_xfer()
142 ret = dma_submit_error(dmaengine_submit(txdesc)); in stm32_i2c_prep_dma_xfer()
Di2c-at91-master.c197 struct dma_async_tx_descriptor *txdesc; in at91_twi_write_data_dma() local
251 txdesc = dmaengine_prep_slave_sg(chan_tx, dma->sg, sg_len, in at91_twi_write_data_dma()
254 if (!txdesc) { in at91_twi_write_data_dma()
259 txdesc->callback = at91_twi_write_data_dma_callback; in at91_twi_write_data_dma()
260 txdesc->callback_param = dev; in at91_twi_write_data_dma()
263 dmaengine_submit(txdesc); in at91_twi_write_data_dma()
/drivers/staging/r8188eu/include/
Drtl8188e_xmit.h96 #define txdesc_set_ccx_sw_88e(txdesc, value) \ argument
98 ((struct txdesc_88e *)(txdesc))->sw1 = (((value)>>8) & 0x0f); \
99 ((struct txdesc_88e *)(txdesc))->sw0 = ((value) & 0xff); \
/drivers/net/ethernet/
Djme.c1416 struct txdesc *txdesc = txring->desc; in jme_tx_clean_tasklet() local
1439 !(txdesc[i].descwb.flags & TXWBFLAG_OWN))) { in jme_tx_clean_tasklet()
1444 err = txdesc[i].descwb.flags & TXWBFLAG_ALLERR; in jme_tx_clean_tasklet()
1448 txdesc[(i + j) & (mask)].dw[0] = 0; in jme_tx_clean_tasklet()
1953 struct txdesc *txdesc, in jme_fill_tx_map() argument
1970 txdesc->dw[0] = 0; in jme_fill_tx_map()
1971 txdesc->dw[1] = 0; in jme_fill_tx_map()
1972 txdesc->desc2.flags = TXFLAG_OWN; in jme_fill_tx_map()
1973 txdesc->desc2.flags |= (hidma) ? TXFLAG_64BIT : 0; in jme_fill_tx_map()
1974 txdesc->desc2.datalen = cpu_to_le16(len); in jme_fill_tx_map()
[all …]
/drivers/spi/
Dspi-dw-dma.c290 struct dma_async_tx_descriptor *txdesc; in dw_spi_dma_submit_tx() local
294 txdesc = dmaengine_prep_slave_sg(dws->txchan, sgl, nents, in dw_spi_dma_submit_tx()
297 if (!txdesc) in dw_spi_dma_submit_tx()
300 txdesc->callback = dw_spi_dma_tx_done; in dw_spi_dma_submit_tx()
301 txdesc->callback_param = dws; in dw_spi_dma_submit_tx()
303 cookie = dmaengine_submit(txdesc); in dw_spi_dma_submit_tx()
Dspi-img-spfi.c311 struct dma_async_tx_descriptor *rxdesc = NULL, *txdesc = NULL; in img_spfi_start_dma() local
354 txdesc = dmaengine_prep_slave_sg(spfi->tx_ch, xfer->tx_sg.sgl, in img_spfi_start_dma()
358 if (!txdesc) in img_spfi_start_dma()
361 txdesc->callback = img_spfi_dma_tx_cb; in img_spfi_start_dma()
362 txdesc->callback_param = spfi; in img_spfi_start_dma()
375 dmaengine_submit(txdesc); in img_spfi_start_dma()
Dspi-rockchip.c444 struct dma_async_tx_descriptor *rxdesc, *txdesc; in rockchip_spi_prepare_dma() local
473 txdesc = NULL; in rockchip_spi_prepare_dma()
484 txdesc = dmaengine_prep_slave_sg( in rockchip_spi_prepare_dma()
488 if (!txdesc) { in rockchip_spi_prepare_dma()
494 txdesc->callback = rockchip_spi_dma_txcb; in rockchip_spi_prepare_dma()
495 txdesc->callback_param = ctlr; in rockchip_spi_prepare_dma()
510 if (txdesc) { in rockchip_spi_prepare_dma()
512 dmaengine_submit(txdesc); in rockchip_spi_prepare_dma()
Dspi-uniphier.c393 struct dma_async_tx_descriptor *rxdesc = NULL, *txdesc = NULL; in uniphier_spi_transfer_one_dma() local
444 txdesc = dmaengine_prep_slave_sg( in uniphier_spi_transfer_one_dma()
448 if (!txdesc) in uniphier_spi_transfer_one_dma()
451 txdesc->callback = uniphier_spi_dma_txcb; in uniphier_spi_transfer_one_dma()
452 txdesc->callback_param = master; in uniphier_spi_transfer_one_dma()
457 dmaengine_submit(txdesc); in uniphier_spi_transfer_one_dma()
/drivers/net/ethernet/renesas/
Dsh_eth.c1234 struct sh_eth_txdesc *txdesc; in sh_eth_tx_free() local
1241 txdesc = &mdp->tx_ring[entry]; in sh_eth_tx_free()
1242 sent = !(txdesc->status & cpu_to_le32(TD_TACT)); in sh_eth_tx_free()
1249 entry, le32_to_cpu(txdesc->status)); in sh_eth_tx_free()
1253 le32_to_cpu(txdesc->addr), in sh_eth_tx_free()
1254 le32_to_cpu(txdesc->len) >> 16, in sh_eth_tx_free()
1260 txdesc->status = cpu_to_le32(TD_TFP); in sh_eth_tx_free()
1262 txdesc->status |= cpu_to_le32(TD_TDLE); in sh_eth_tx_free()
1266 ndev->stats.tx_bytes += le32_to_cpu(txdesc->len) >> 16; in sh_eth_tx_free()
1324 struct sh_eth_txdesc *txdesc = NULL; in sh_eth_ring_format() local
[all …]

12