Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2x00crypto.c48 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument
56 __set_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
58 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
61 __set_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
63 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
64 txdesc->iv_offset = txdesc->header_length; in rt2x00crypto_create_tx_descriptor()
65 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
68 __set_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
71 __set_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags); in rt2x00crypto_create_tx_descriptor()
102 void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument
[all …]
Drt2x00queue.c189 struct txentry_desc *txdesc) in rt2x00queue_create_tx_descriptor_seq() argument
199 __set_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq()
209 __clear_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags); in rt2x00queue_create_tx_descriptor_seq()
226 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_seq()
237 struct txentry_desc *txdesc, in rt2x00queue_create_tx_descriptor_plcp() argument
251 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) in rt2x00queue_create_tx_descriptor_plcp()
252 txdesc->u.plcp.ifs = IFS_BACKOFF; in rt2x00queue_create_tx_descriptor_plcp()
254 txdesc->u.plcp.ifs = IFS_SIFS; in rt2x00queue_create_tx_descriptor_plcp()
264 txdesc->u.plcp.signal = hwrate->plcp; in rt2x00queue_create_tx_descriptor_plcp()
265 txdesc->u.plcp.service = 0x04; in rt2x00queue_create_tx_descriptor_plcp()
[all …]
Drt2x00lib.h352 struct txentry_desc *txdesc);
356 struct txentry_desc *txdesc);
358 struct txentry_desc *txdesc);
371 struct txentry_desc *txdesc) in rt2x00crypto_create_tx_descriptor() argument
382 struct txentry_desc *txdesc) in rt2x00crypto_tx_copy_iv() argument
387 struct txentry_desc *txdesc) in rt2x00crypto_tx_remove_iv() argument
Drt2400pci.c1103 struct txentry_desc *txdesc) in rt2400pci_write_tx_desc() argument
1118 rt2x00_set_field32(&word, TXD_W2_BUFFER_LENGTH, txdesc->length); in rt2400pci_write_tx_desc()
1119 rt2x00_set_field32(&word, TXD_W2_DATABYTE_COUNT, txdesc->length); in rt2400pci_write_tx_desc()
1123 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2400pci_write_tx_desc()
1126 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2400pci_write_tx_desc()
1133 txdesc->u.plcp.length_low); in rt2400pci_write_tx_desc()
1137 txdesc->u.plcp.length_high); in rt2400pci_write_tx_desc()
1151 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2400pci_write_tx_desc()
1153 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2400pci_write_tx_desc()
1155 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2400pci_write_tx_desc()
[all …]
Drt61pci.c1869 struct txentry_desc *txdesc) in rt61pci_write_tx_desc() argument
1884 rt2x00_set_field32(&word, TXD_W1_IV_OFFSET, txdesc->iv_offset); in rt61pci_write_tx_desc()
1886 test_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags)); in rt61pci_write_tx_desc()
1891 rt2x00_set_field32(&word, TXD_W2_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt61pci_write_tx_desc()
1892 rt2x00_set_field32(&word, TXD_W2_PLCP_SERVICE, txdesc->u.plcp.service); in rt61pci_write_tx_desc()
1894 txdesc->u.plcp.length_low); in rt61pci_write_tx_desc()
1896 txdesc->u.plcp.length_high); in rt61pci_write_tx_desc()
1899 if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags)) { in rt61pci_write_tx_desc()
1921 txdesc->length); in rt61pci_write_tx_desc()
1934 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt61pci_write_tx_desc()
[all …]
Drt2500usb.c1077 struct txentry_desc *txdesc) in rt2500usb_write_tx_desc() argument
1087 rt2x00_set_field32(&word, TXD_W0_RETRY_LIMIT, txdesc->retry_limit); in rt2500usb_write_tx_desc()
1089 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500usb_write_tx_desc()
1091 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2500usb_write_tx_desc()
1093 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2500usb_write_tx_desc()
1095 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt2500usb_write_tx_desc()
1097 test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)); in rt2500usb_write_tx_desc()
1098 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt2500usb_write_tx_desc()
1099 rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, txdesc->length); in rt2500usb_write_tx_desc()
1100 rt2x00_set_field32(&word, TXD_W0_CIPHER, !!txdesc->cipher); in rt2500usb_write_tx_desc()
[all …]
Drt2500pci.c1256 struct txentry_desc *txdesc) in rt2500pci_write_tx_desc() argument
1278 rt2x00_set_field32(&word, TXD_W3_PLCP_SIGNAL, txdesc->u.plcp.signal); in rt2500pci_write_tx_desc()
1279 rt2x00_set_field32(&word, TXD_W3_PLCP_SERVICE, txdesc->u.plcp.service); in rt2500pci_write_tx_desc()
1281 txdesc->u.plcp.length_low); in rt2500pci_write_tx_desc()
1283 txdesc->u.plcp.length_high); in rt2500pci_write_tx_desc()
1288 test_bit(ENTRY_TXD_RTS_FRAME, &txdesc->flags)); in rt2500pci_write_tx_desc()
1300 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2500pci_write_tx_desc()
1302 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt2500pci_write_tx_desc()
1304 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2500pci_write_tx_desc()
1306 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt2500pci_write_tx_desc()
[all …]
Drt73usb.c1453 struct txentry_desc *txdesc) in rt73usb_write_tx_desc() argument
1464 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); in rt73usb_write_tx_desc()
1467 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt73usb_write_tx_desc()
1469 test_bit(ENTRY_TXD_ACK, &txdesc->flags)); in rt73usb_write_tx_desc()
1471 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt73usb_write_tx_desc()
1473 (txdesc->rate_mode == RATE_MODE_OFDM)); in rt73usb_write_tx_desc()
1474 rt2x00_set_field32(&word, TXD_W0_IFS, txdesc->u.plcp.ifs); in rt73usb_write_tx_desc()
1476 test_bit(ENTRY_TXD_RETRY_MODE, &txdesc->flags)); in rt73usb_write_tx_desc()
1478 test_bit(ENTRY_TXD_ENCRYPT_MMIC, &txdesc->flags)); in rt73usb_write_tx_desc()
1480 test_bit(ENTRY_TXD_ENCRYPT_PAIRWISE, &txdesc->flags)); in rt73usb_write_tx_desc()
[all …]
Drt2x00dev.c321 struct txdone_entry_desc *txdesc) in rt2x00lib_txdone() argument
379 test_bit(TXDONE_SUCCESS, &txdesc->flags) || in rt2x00lib_txdone()
380 test_bit(TXDONE_UNKNOWN, &txdesc->flags); in rt2x00lib_txdone()
390 retry_rates = test_bit(TXDONE_FALLBACK, &txdesc->flags) ? in rt2x00lib_txdone()
391 (txdesc->retry + 1) : 1; in rt2x00lib_txdone()
439 if (test_bit(TXDONE_AMPDU, &txdesc->flags) || in rt2x00lib_txdone()
496 struct txdone_entry_desc txdesc; in rt2x00lib_txdone_noinfo() local
498 txdesc.flags = 0; in rt2x00lib_txdone_noinfo()
499 __set_bit(status, &txdesc.flags); in rt2x00lib_txdone_noinfo()
500 txdesc.retry = 0; in rt2x00lib_txdone_noinfo()
[all …]
Drt2800lib.h167 struct txentry_desc *txdesc);
168 void rt2800_process_rxwi(struct queue_entry *entry, struct rxdone_entry_desc *txdesc);
172 void rt2800_write_beacon(struct queue_entry *entry, struct txentry_desc *txdesc);
Drt2800mmio.c49 struct txentry_desc *txdesc) in rt2800mmio_write_tx_desc() argument
75 !test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2800mmio_write_tx_desc()
77 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); in rt2800mmio_write_tx_desc()
90 !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags)); in rt2800mmio_write_tx_desc()
Drt2x00.h582 struct txentry_desc *txdesc);
584 struct txentry_desc *txdesc);
586 struct txentry_desc *txdesc);
1409 struct txdone_entry_desc *txdesc);
Drt2800mmio.h132 struct txentry_desc *txdesc);
Drt2800lib.c710 struct txentry_desc *txdesc) in rt2800_write_tx_data() argument
721 test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); in rt2800_write_tx_data()
723 test_bit(ENTRY_TXD_HT_MIMO_PS, &txdesc->flags)); in rt2800_write_tx_data()
726 test_bit(ENTRY_TXD_REQ_TIMESTAMP, &txdesc->flags)); in rt2800_write_tx_data()
728 test_bit(ENTRY_TXD_HT_AMPDU, &txdesc->flags)); in rt2800_write_tx_data()
730 txdesc->u.ht.mpdu_density); in rt2800_write_tx_data()
731 rt2x00_set_field32(&word, TXWI_W0_TX_OP, txdesc->u.ht.txop); in rt2800_write_tx_data()
732 rt2x00_set_field32(&word, TXWI_W0_MCS, txdesc->u.ht.mcs); in rt2800_write_tx_data()
734 test_bit(ENTRY_TXD_HT_BW_40, &txdesc->flags)); in rt2800_write_tx_data()
736 test_bit(ENTRY_TXD_HT_SHORT_GI, &txdesc->flags)); in rt2800_write_tx_data()
[all …]
Drt2800usb.c494 struct txentry_desc *txdesc) in rt2800usb_write_tx_desc() argument
513 !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags)); in rt2800usb_write_tx_desc()
518 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); in rt2800usb_write_tx_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192cu/
Dtrx.c473 static void _rtl_fill_usb_tx_desc(u8 *txdesc) in _rtl_fill_usb_tx_desc() argument
475 SET_TX_DESC_OWN(txdesc, 1); in _rtl_fill_usb_tx_desc()
476 SET_TX_DESC_LAST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc()
477 SET_TX_DESC_FIRST_SEG(txdesc, 1); in _rtl_fill_usb_tx_desc()
482 static void _rtl_tx_desc_checksum(u8 *txdesc) in _rtl_tx_desc_checksum() argument
484 u16 *ptr = (u16 *)txdesc; in _rtl_tx_desc_checksum()
489 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, 0); in _rtl_tx_desc_checksum()
492 SET_TX_DESC_TX_DESC_CHECKSUM(txdesc, checksum); in _rtl_tx_desc_checksum()
515 u8 *txdesc; in rtl92cu_tx_fill_desc() local
519 txdesc = (u8 *)skb_push(skb, RTL_TX_HEADER_SIZE); in rtl92cu_tx_fill_desc()
[all …]
/linux-4.1.27/drivers/spi/
Dspi-dw-mid.c153 struct dma_async_tx_descriptor *txdesc; in dw_spi_dma_prepare_tx() local
167 txdesc = dmaengine_prep_slave_sg(dws->txchan, in dw_spi_dma_prepare_tx()
172 if (!txdesc) in dw_spi_dma_prepare_tx()
175 txdesc->callback = dw_spi_dma_tx_done; in dw_spi_dma_prepare_tx()
176 txdesc->callback_param = dws; in dw_spi_dma_prepare_tx()
178 return txdesc; in dw_spi_dma_prepare_tx()
250 struct dma_async_tx_descriptor *txdesc, *rxdesc; in mid_spi_dma_transfer() local
253 txdesc = dw_spi_dma_prepare_tx(dws, xfer); in mid_spi_dma_transfer()
265 if (txdesc) { in mid_spi_dma_transfer()
267 dmaengine_submit(txdesc); in mid_spi_dma_transfer()
Dspi-rockchip.c440 struct dma_async_tx_descriptor *rxdesc, *txdesc; in rockchip_spi_prepare_dma() local
464 txdesc = NULL; in rockchip_spi_prepare_dma()
472 txdesc = dmaengine_prep_slave_sg( in rockchip_spi_prepare_dma()
477 txdesc->callback = rockchip_spi_dma_txcb; in rockchip_spi_prepare_dma()
478 txdesc->callback_param = rs; in rockchip_spi_prepare_dma()
490 if (txdesc) { in rockchip_spi_prepare_dma()
494 dmaengine_submit(txdesc); in rockchip_spi_prepare_dma()
Dspi-img-spfi.c319 struct dma_async_tx_descriptor *rxdesc = NULL, *txdesc = NULL; in img_spfi_start_dma() local
362 txdesc = dmaengine_prep_slave_sg(spfi->tx_ch, xfer->tx_sg.sgl, in img_spfi_start_dma()
366 if (!txdesc) in img_spfi_start_dma()
369 txdesc->callback = img_spfi_dma_tx_cb; in img_spfi_start_dma()
370 txdesc->callback_param = spfi; in img_spfi_start_dma()
383 dmaengine_submit(txdesc); in img_spfi_start_dma()
Dspi-davinci.c641 struct dma_async_tx_descriptor *txdesc; in davinci_spi_bufs() local
685 txdesc = dmaengine_prep_slave_sg(dspi->dma_tx, in davinci_spi_bufs()
688 if (!txdesc) in davinci_spi_bufs()
693 txdesc->callback = davinci_spi_dma_tx_callback; in davinci_spi_bufs()
694 txdesc->callback_param = (void *)dspi; in davinci_spi_bufs()
700 dmaengine_submit(txdesc); in davinci_spi_bufs()
Dspi-atmel.c551 struct dma_async_tx_descriptor *txdesc; in atmel_spi_next_xfer_dma_submit() local
601 txdesc = dmaengine_prep_slave_sg(txchan, &as->dma.sgtx, 1, in atmel_spi_next_xfer_dma_submit()
604 if (!txdesc) in atmel_spi_next_xfer_dma_submit()
623 cookie = txdesc->tx_submit(txdesc); in atmel_spi_next_xfer_dma_submit()
Dspi-pl022.c951 struct dma_async_tx_descriptor *txdesc; in configure_dma() local
1085 txdesc = dmaengine_prep_slave_sg(txchan, in configure_dma()
1090 if (!txdesc) in configure_dma()
1099 dmaengine_submit(txdesc); in configure_dma()
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_hw.c1809 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-4.1.27/drivers/staging/rtl8723au/include/
Drtl8723a_xmit.h170 #define txdesc_set_ccx_sw_8723a(txdesc, value) \ argument
172 ((struct txdesc_8723a *)(txdesc))->mcsg4_max_len = (((value)>>8) & 0x0f); \
173 ((struct txdesc_8723a *)(txdesc))->mcs15_sgi_max_len= (((value)>>4) & 0x0f); \
174 ((struct txdesc_8723a *)(txdesc))->mcsg6_max_len = ((value) & 0x0f); \
Drtw_xmit.h105 union txdesc { union
106 struct tx_desc txdesc; member
/linux-4.1.27/drivers/staging/rtl8712/
Drtl8712_xmit.h105 union txdesc { union
106 struct tx_desc txdesc; member
Drtl871x_xmit.c191 struct tx_cmd txdesc; in r8712_update_attrib() local
237 _r8712_pktfile_read(&pktfile, (u8 *)&txdesc, TXDESC_SIZE); in r8712_update_attrib()
341 pattrib->priority = (txdesc.txdw1 >> QSEL_SHT) & 0x1f; in r8712_update_attrib()
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Drtl8188e_xmit.h115 #define txdesc_set_ccx_sw_88e(txdesc, value) \ argument
117 ((struct txdesc_88e *)(txdesc))->sw1 = (((value)>>8) & 0x0f); \
118 ((struct txdesc_88e *)(txdesc))->sw0 = ((value) & 0xff); \
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dhtt_tx.c341 struct sk_buff *txdesc = NULL; in ath10k_htt_mgmt_tx() local
365 txdesc = ath10k_htc_alloc_skb(ar, len); in ath10k_htt_mgmt_tx()
366 if (!txdesc) { in ath10k_htt_mgmt_tx()
379 skb_put(txdesc, len); in ath10k_htt_mgmt_tx()
380 cmd = (struct htt_cmd *)txdesc->data; in ath10k_htt_mgmt_tx()
391 res = ath10k_htc_send(&htt->ar->htc, htt->eid, txdesc); in ath10k_htt_mgmt_tx()
400 dev_kfree_skb_any(txdesc); in ath10k_htt_mgmt_tx()
/linux-4.1.27/drivers/net/ethernet/
Djme.c1450 struct txdesc *txdesc = txring->desc; in jme_tx_clean_tasklet() local
1473 !(txdesc[i].descwb.flags & TXWBFLAG_OWN))) { in jme_tx_clean_tasklet()
1478 err = txdesc[i].descwb.flags & TXWBFLAG_ALLERR; in jme_tx_clean_tasklet()
1482 txdesc[(i + j) & (mask)].dw[0] = 0; in jme_tx_clean_tasklet()
1993 struct txdesc *txdesc, in jme_fill_tx_map() argument
2016 txdesc->dw[0] = 0; in jme_fill_tx_map()
2017 txdesc->dw[1] = 0; in jme_fill_tx_map()
2018 txdesc->desc2.flags = TXFLAG_OWN; in jme_fill_tx_map()
2019 txdesc->desc2.flags |= (hidma) ? TXFLAG_64BIT : 0; in jme_fill_tx_map()
2020 txdesc->desc2.datalen = cpu_to_le16(len); in jme_fill_tx_map()
[all …]
Djme.h181 struct txdesc { struct
/linux-4.1.27/drivers/net/ethernet/renesas/
Dsh_eth.c1127 struct sh_eth_txdesc *txdesc = NULL; in sh_eth_ring_format() local
1129 int tx_ringsize = sizeof(*txdesc) * mdp->num_tx_ring; in sh_eth_ring_format()
1183 txdesc = &mdp->tx_ring[i]; in sh_eth_ring_format()
1184 txdesc->status = cpu_to_edmac(mdp, TD_TFP); in sh_eth_ring_format()
1185 txdesc->buffer_length = 0; in sh_eth_ring_format()
1195 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE); in sh_eth_ring_format()
1409 struct sh_eth_txdesc *txdesc; in sh_eth_txfree() local
1415 txdesc = &mdp->tx_ring[entry]; in sh_eth_txfree()
1416 if (txdesc->status & cpu_to_edmac(mdp, TD_TACT)) in sh_eth_txfree()
1422 entry, edmac_to_cpu(mdp, txdesc->status)); in sh_eth_txfree()
[all …]
/linux-4.1.27/drivers/i2c/busses/
Di2c-sh_mobile.c593 struct dma_async_tx_descriptor *txdesc; in sh_mobile_i2c_xfer_dma() local
620 txdesc = dmaengine_prep_slave_sg(chan, &pd->sg, 1, in sh_mobile_i2c_xfer_dma()
623 if (!txdesc) { in sh_mobile_i2c_xfer_dma()
629 txdesc->callback = sh_mobile_i2c_dma_callback; in sh_mobile_i2c_xfer_dma()
630 txdesc->callback_param = pd; in sh_mobile_i2c_xfer_dma()
632 cookie = dmaengine_submit(txdesc); in sh_mobile_i2c_xfer_dma()
Di2c-at91.c234 struct dma_async_tx_descriptor *txdesc; in at91_twi_write_data_dma() local
255 txdesc = dmaengine_prep_slave_sg(chan_tx, &dma->sg, 1, DMA_MEM_TO_DEV, in at91_twi_write_data_dma()
257 if (!txdesc) { in at91_twi_write_data_dma()
262 txdesc->callback = at91_twi_write_data_dma_callback; in at91_twi_write_data_dma()
263 txdesc->callback_param = dev; in at91_twi_write_data_dma()
266 dmaengine_submit(txdesc); in at91_twi_write_data_dma()
Di2c-imx.c359 struct dma_async_tx_descriptor *txdesc; in i2c_imx_dma_xfer() local
370 txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf, in i2c_imx_dma_xfer()
373 if (!txdesc) { in i2c_imx_dma_xfer()
378 txdesc->callback = i2c_imx_dma_callback; in i2c_imx_dma_xfer()
379 txdesc->callback_param = i2c_imx; in i2c_imx_dma_xfer()
380 if (dma_submit_error(dmaengine_submit(txdesc))) { in i2c_imx_dma_xfer()
/linux-4.1.27/drivers/net/ethernet/dlink/
Dsundance.c1077 struct netdev_desc *txdesc = in tx_poll() local
1083 txdesc = &np->tx_ring[entry]; in tx_poll()
1088 np->last_tx = txdesc; in tx_poll()
1091 txdesc->status |= cpu_to_le32(DescIntrOnTx); in tx_poll()
1102 struct netdev_desc *txdesc; in start_tx() local
1108 txdesc = &np->tx_ring[entry]; in start_tx()
1110 txdesc->next_desc = 0; in start_tx()
1111 txdesc->status = cpu_to_le32 ((entry << 2) | DisableAlign); in start_tx()
1112 txdesc->frag[0].addr = cpu_to_le32(dma_map_single(&np->pci_dev->dev, in start_tx()
1115 txdesc->frag[0].addr)) in start_tx()
[all …]
Ddl2k.c604 struct netdev_desc *txdesc; in start_xmit() local
614 txdesc = &np->tx_ring[entry]; in start_xmit()
618 txdesc->status |= in start_xmit()
628 txdesc->fraginfo = cpu_to_le64 (pci_map_single (np->pdev, skb->data, in start_xmit()
631 txdesc->fraginfo |= cpu_to_le64((u64)skb->len << 48); in start_xmit()
636 txdesc->status = cpu_to_le64 (entry | tfc_vlan_tag | in start_xmit()
641 txdesc->status = cpu_to_le64 (entry | tfc_vlan_tag | in start_xmit()
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_drv.c279 # define VMXNET3_TXDESC_GET_GEN(txdesc) get_bitfield32(((const __le32 *) \ argument
280 txdesc) + VMXNET3_TXD_GEN_DWORD_SHIFT, \
282 # define VMXNET3_TXDESC_GET_EOP(txdesc) get_bitfield32(((const __le32 *) \ argument
283 txdesc) + VMXNET3_TXD_EOP_DWORD_SHIFT, \
301 # define VMXNET3_TXDESC_GET_GEN(txdesc) ((txdesc)->gen) argument
302 # define VMXNET3_TXDESC_GET_EOP(txdesc) ((txdesc)->eop) argument
/linux-4.1.27/drivers/net/wan/
Dfarsync.c134 struct txdesc { /* Transmit descriptor */ struct
272 struct txdesc txDescrRing[FST_MAX_PORTS][NUM_TX_BUFFER];