Home
last modified time | relevance | path

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

123

/linux-6.1.9/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 …]
/linux-6.1.9/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.c307 struct txdone_entry_desc *txdesc, in rt2x00lib_fill_tx_status() argument
315 retry_rates = test_bit(TXDONE_FALLBACK, &txdesc->flags) ? in rt2x00lib_fill_tx_status()
316 (txdesc->retry + 1) : 1; in rt2x00lib_fill_tx_status()
348 if (test_bit(TXDONE_NO_ACK_REQ, &txdesc->flags)) in rt2x00lib_fill_tx_status()
367 if (test_bit(TXDONE_AMPDU, &txdesc->flags) || in rt2x00lib_fill_tx_status()
410 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone_nomatch() argument
440 test_bit(TXDONE_SUCCESS, &txdesc->flags); in rt2x00lib_txdone_nomatch()
442 if (!test_bit(TXDONE_UNKNOWN, &txdesc->flags)) { in rt2x00lib_txdone_nomatch()
449 rt2x00lib_fill_tx_status(rt2x00dev, &txinfo, skbdesc, txdesc, in rt2x00lib_txdone_nomatch()
460 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.h200 struct txentry_desc *txdesc);
201 void rt2800_process_rxwi(struct queue_entry *entry, struct rxdone_entry_desc *txdesc);
212 void rt2800_write_beacon(struct queue_entry *entry, struct txentry_desc *txdesc);
/linux-6.1.9/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-6.1.9/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
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/wireless/intersil/hostap/
Dhostap_hw.c1794 struct hfa384x_tx_frame txdesc; in prism2_tx_80211() local
1815 memset(&txdesc, 0, sizeof(txdesc)); in prism2_tx_80211()
1818 hdr_len = sizeof(txdesc.header); in prism2_tx_80211()
1820 skb_copy_from_linear_data(skb, &txdesc.header, hdr_len); in prism2_tx_80211()
1821 if (ieee80211_is_data(txdesc.frame_control) && in prism2_tx_80211()
1822 ieee80211_has_a4(txdesc.frame_control) && in prism2_tx_80211()
1825 skb_copy_from_linear_data_offset(skb, hdr_len, txdesc.addr4, in prism2_tx_80211()
1833 txdesc.sw_support = cpu_to_le32(meta->tx_cb_idx); in prism2_tx_80211()
1835 txdesc.tx_control = cpu_to_le16(tx_control); in prism2_tx_80211()
1836 txdesc.tx_rate = meta->rate; in prism2_tx_80211()
[all …]
/linux-6.1.9/drivers/staging/r8188eu/include/
Drtl8188e_xmit.h92 #define txdesc_set_ccx_sw_88e(txdesc, value) \ argument
94 ((struct txdesc_88e *)(txdesc))->sw1 = (((value)>>8) & 0x0f); \
95 ((struct txdesc_88e *)(txdesc))->sw0 = ((value) & 0xff); \
/linux-6.1.9/drivers/net/ethernet/
Djme.c1417 struct txdesc *txdesc = txring->desc; in jme_tx_clean_tasklet() local
1440 !(txdesc[i].descwb.flags & TXWBFLAG_OWN))) { in jme_tx_clean_tasklet()
1445 err = txdesc[i].descwb.flags & TXWBFLAG_ALLERR; in jme_tx_clean_tasklet()
1449 txdesc[(i + j) & (mask)].dw[0] = 0; in jme_tx_clean_tasklet()
1954 struct txdesc *txdesc, in jme_fill_tx_map() argument
1971 txdesc->dw[0] = 0; in jme_fill_tx_map()
1972 txdesc->dw[1] = 0; in jme_fill_tx_map()
1973 txdesc->desc2.flags = TXFLAG_OWN; in jme_fill_tx_map()
1974 txdesc->desc2.flags |= (hidma) ? TXFLAG_64BIT : 0; in jme_fill_tx_map()
1975 txdesc->desc2.datalen = cpu_to_le16(len); in jme_fill_tx_map()
[all …]
/linux-6.1.9/drivers/spi/
Dspi-dw-dma.c302 struct dma_async_tx_descriptor *txdesc; in dw_spi_dma_submit_tx() local
306 txdesc = dmaengine_prep_slave_sg(dws->txchan, sgl, nents, in dw_spi_dma_submit_tx()
309 if (!txdesc) in dw_spi_dma_submit_tx()
312 txdesc->callback = dw_spi_dma_tx_done; in dw_spi_dma_submit_tx()
313 txdesc->callback_param = dws; in dw_spi_dma_submit_tx()
315 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.c448 struct dma_async_tx_descriptor *rxdesc, *txdesc; in rockchip_spi_prepare_dma() local
477 txdesc = NULL; in rockchip_spi_prepare_dma()
488 txdesc = dmaengine_prep_slave_sg( in rockchip_spi_prepare_dma()
492 if (!txdesc) { in rockchip_spi_prepare_dma()
498 txdesc->callback = rockchip_spi_dma_txcb; in rockchip_spi_prepare_dma()
499 txdesc->callback_param = ctlr; in rockchip_spi_prepare_dma()
514 if (txdesc) { in rockchip_spi_prepare_dma()
516 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-sun6i.c195 struct dma_async_tx_descriptor *rxdesc, *txdesc; in sun6i_spi_prepare_dma() local
218 txdesc = NULL; in sun6i_spi_prepare_dma()
229 txdesc = dmaengine_prep_slave_sg(master->dma_tx, in sun6i_spi_prepare_dma()
234 if (!txdesc) { in sun6i_spi_prepare_dma()
247 dmaengine_submit(txdesc); in sun6i_spi_prepare_dma()
/linux-6.1.9/drivers/net/ethernet/sunplus/
Dspl2sw_driver.c71 struct spl2sw_mac_desc *txdesc; in spl2sw_ethernet_start_xmit() local
103 txdesc = &comm->tx_desc[tx_pos]; in spl2sw_ethernet_start_xmit()
117 txdesc->addr1 = skbinfo->mapping; in spl2sw_ethernet_start_xmit()
118 txdesc->cmd2 = cmd2; in spl2sw_ethernet_start_xmit()
120 txdesc->cmd1 = cmd1; in spl2sw_ethernet_start_xmit()

123