Home
last modified time | relevance | path

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

12

/Linux-v5.4/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.c38 __le32 *txdesc = (__le32 *)skb->data; in rtw_tx_fill_tx_desc() local
40 SET_TX_DESC_TXPKTSIZE(txdesc, pkt_info->tx_pkt_size); in rtw_tx_fill_tx_desc()
41 SET_TX_DESC_OFFSET(txdesc, pkt_info->offset); in rtw_tx_fill_tx_desc()
42 SET_TX_DESC_PKT_OFFSET(txdesc, pkt_info->pkt_offset); in rtw_tx_fill_tx_desc()
43 SET_TX_DESC_QSEL(txdesc, pkt_info->qsel); in rtw_tx_fill_tx_desc()
44 SET_TX_DESC_BMC(txdesc, pkt_info->bmc); in rtw_tx_fill_tx_desc()
45 SET_TX_DESC_RATE_ID(txdesc, pkt_info->rate_id); in rtw_tx_fill_tx_desc()
46 SET_TX_DESC_DATARATE(txdesc, pkt_info->rate); in rtw_tx_fill_tx_desc()
47 SET_TX_DESC_DISDATAFB(txdesc, pkt_info->dis_rate_fallback); in rtw_tx_fill_tx_desc()
48 SET_TX_DESC_USE_RATE(txdesc, pkt_info->use_rate); in rtw_tx_fill_tx_desc()
[all …]
/Linux-v5.4/drivers/net/wireless/ralink/rt2x00/
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 …]
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 …]
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);
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/staging/rtl8712/
Dhal_init.c155 struct tx_desc *txdesc; in rtl8712_dl_fw() local
173 txdesc = (struct tx_desc *)(tmpchar + FWBUFF_ALIGN_SZ - in rtl8712_dl_fw()
175 payload = (u8 *)(txdesc) + txdscp_sz; in rtl8712_dl_fw()
182 memset(txdesc, 0, TXDESC_SIZE); in rtl8712_dl_fw()
187 txdesc->txdw0 |= cpu_to_le32(BIT(28)); in rtl8712_dl_fw()
189 txdesc->txdw0 |= cpu_to_le32(dump_imem_sz & in rtl8712_dl_fw()
194 (u8 *)txdesc); in rtl8712_dl_fw()
211 memset(txdesc, 0, TXDESC_SIZE); in rtl8712_dl_fw()
216 txdesc->txdw0 |= cpu_to_le32(BIT(28)); in rtl8712_dl_fw()
218 txdesc->txdw0 |= cpu_to_le32(dump_emem_sz & in rtl8712_dl_fw()
[all …]
Drtl8712_xmit.h93 union txdesc { union
94 struct tx_desc txdesc; member
/Linux-v5.4/drivers/spi/
Dspi-dw-mid.c145 struct dma_async_tx_descriptor *txdesc; in dw_spi_dma_prepare_tx() local
159 txdesc = dmaengine_prep_slave_sg(dws->txchan, in dw_spi_dma_prepare_tx()
164 if (!txdesc) in dw_spi_dma_prepare_tx()
167 txdesc->callback = dw_spi_dma_tx_done; in dw_spi_dma_prepare_tx()
168 txdesc->callback_param = dws; in dw_spi_dma_prepare_tx()
170 return txdesc; in dw_spi_dma_prepare_tx()
242 struct dma_async_tx_descriptor *txdesc, *rxdesc; in mid_spi_dma_transfer() local
245 txdesc = dw_spi_dma_prepare_tx(dws, xfer); in mid_spi_dma_transfer()
257 if (txdesc) { in mid_spi_dma_transfer()
259 dmaengine_submit(txdesc); in mid_spi_dma_transfer()
Dspi-rockchip.c388 struct dma_async_tx_descriptor *rxdesc, *txdesc; in rockchip_spi_prepare_dma() local
414 txdesc = NULL; in rockchip_spi_prepare_dma()
425 txdesc = dmaengine_prep_slave_sg( in rockchip_spi_prepare_dma()
429 if (!txdesc) { in rockchip_spi_prepare_dma()
435 txdesc->callback = rockchip_spi_dma_txcb; in rockchip_spi_prepare_dma()
436 txdesc->callback_param = master; in rockchip_spi_prepare_dma()
448 if (txdesc) { in rockchip_spi_prepare_dma()
450 dmaengine_submit(txdesc); in rockchip_spi_prepare_dma()
Dspi-at91-usart.c223 struct dma_async_tx_descriptor *txdesc; in at91_usart_spi_dma_transfer() local
238 txdesc = dmaengine_prep_slave_sg(txchan, in at91_usart_spi_dma_transfer()
244 if (!txdesc) in at91_usart_spi_dma_transfer()
254 cookie = txdesc->tx_submit(txdesc); in at91_usart_spi_dma_transfer()
Dspi-img-spfi.c316 struct dma_async_tx_descriptor *rxdesc = NULL, *txdesc = NULL; in img_spfi_start_dma() local
359 txdesc = dmaengine_prep_slave_sg(spfi->tx_ch, xfer->tx_sg.sgl, in img_spfi_start_dma()
363 if (!txdesc) in img_spfi_start_dma()
366 txdesc->callback = img_spfi_dma_tx_cb; in img_spfi_start_dma()
367 txdesc->callback_param = spfi; in img_spfi_start_dma()
380 dmaengine_submit(txdesc); in img_spfi_start_dma()
/Linux-v5.4/drivers/i2c/busses/
Di2c-stm32.c100 struct dma_async_tx_descriptor *txdesc; in stm32_i2c_prep_dma_xfer() local
124 txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf, in stm32_i2c_prep_dma_xfer()
128 if (!txdesc) { in stm32_i2c_prep_dma_xfer()
136 txdesc->callback = callback; in stm32_i2c_prep_dma_xfer()
137 txdesc->callback_param = dma_async_param; in stm32_i2c_prep_dma_xfer()
138 ret = dma_submit_error(dmaengine_submit(txdesc)); in stm32_i2c_prep_dma_xfer()
Di2c-at91-master.c158 struct dma_async_tx_descriptor *txdesc; in at91_twi_write_data_dma() local
212 txdesc = dmaengine_prep_slave_sg(chan_tx, dma->sg, sg_len, in at91_twi_write_data_dma()
215 if (!txdesc) { in at91_twi_write_data_dma()
220 txdesc->callback = at91_twi_write_data_dma_callback; in at91_twi_write_data_dma()
221 txdesc->callback_param = dev; in at91_twi_write_data_dma()
224 dmaengine_submit(txdesc); in at91_twi_write_data_dma()
Di2c-sh_mobile.c522 struct dma_async_tx_descriptor *txdesc; in sh_mobile_i2c_xfer_dma() local
549 txdesc = dmaengine_prep_slave_sg(chan, &pd->sg, 1, in sh_mobile_i2c_xfer_dma()
552 if (!txdesc) { in sh_mobile_i2c_xfer_dma()
558 txdesc->callback = sh_mobile_i2c_dma_callback; in sh_mobile_i2c_xfer_dma()
559 txdesc->callback_param = pd; in sh_mobile_i2c_xfer_dma()
561 cookie = dmaengine_submit(txdesc); in sh_mobile_i2c_xfer_dma()
/Linux-v5.4/drivers/net/wireless/intersil/hostap/
Dhostap_hw.c1803 struct hfa384x_tx_frame txdesc; in prism2_tx_80211() local
1824 memset(&txdesc, 0, sizeof(txdesc)); in prism2_tx_80211()
1828 skb_copy_from_linear_data(skb, &txdesc.frame_control, hdr_len); in prism2_tx_80211()
1829 fc = le16_to_cpu(txdesc.frame_control); in prism2_tx_80211()
1830 if (ieee80211_is_data(txdesc.frame_control) && in prism2_tx_80211()
1831 ieee80211_has_a4(txdesc.frame_control) && in prism2_tx_80211()
1834 skb_copy_from_linear_data_offset(skb, hdr_len, txdesc.addr4, in prism2_tx_80211()
1842 txdesc.sw_support = cpu_to_le32(meta->tx_cb_idx); in prism2_tx_80211()
1844 txdesc.tx_control = cpu_to_le16(tx_control); in prism2_tx_80211()
1845 txdesc.tx_rate = meta->rate; in prism2_tx_80211()
[all …]
/Linux-v5.4/drivers/staging/rtl8188eu/include/
Drtl8188e_xmit.h102 #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-v5.4/drivers/net/ethernet/
Djme.c1424 struct txdesc *txdesc = txring->desc; in jme_tx_clean_tasklet() local
1447 !(txdesc[i].descwb.flags & TXWBFLAG_OWN))) { in jme_tx_clean_tasklet()
1452 err = txdesc[i].descwb.flags & TXWBFLAG_ALLERR; in jme_tx_clean_tasklet()
1456 txdesc[(i + j) & (mask)].dw[0] = 0; in jme_tx_clean_tasklet()
1967 struct txdesc *txdesc, in jme_fill_tx_map() argument
1990 txdesc->dw[0] = 0; in jme_fill_tx_map()
1991 txdesc->dw[1] = 0; in jme_fill_tx_map()
1992 txdesc->desc2.flags = TXFLAG_OWN; in jme_fill_tx_map()
1993 txdesc->desc2.flags |= (hidma) ? TXFLAG_64BIT : 0; in jme_fill_tx_map()
1994 txdesc->desc2.datalen = cpu_to_le16(len); in jme_fill_tx_map()
[all …]

12