/Linux-v5.4/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 648 struct atl1e_tx_buffer *tx_buffer = NULL; in atl1e_clean_tx_ring() local 652 if (tx_ring->desc == NULL || tx_ring->tx_buffer == NULL) in atl1e_clean_tx_ring() 658 tx_buffer = &tx_ring->tx_buffer[index]; in atl1e_clean_tx_ring() 659 if (tx_buffer->dma) { in atl1e_clean_tx_ring() 660 if (tx_buffer->flags & ATL1E_TX_PCIMAP_SINGLE) in atl1e_clean_tx_ring() 661 pci_unmap_single(pdev, tx_buffer->dma, in atl1e_clean_tx_ring() 662 tx_buffer->length, PCI_DMA_TODEVICE); in atl1e_clean_tx_ring() 663 else if (tx_buffer->flags & ATL1E_TX_PCIMAP_PAGE) in atl1e_clean_tx_ring() 664 pci_unmap_page(pdev, tx_buffer->dma, in atl1e_clean_tx_ring() 665 tx_buffer->length, PCI_DMA_TODEVICE); in atl1e_clean_tx_ring() [all …]
|
/Linux-v5.4/drivers/net/ethernet/dec/tulip/ |
D | xircom_cb.c | 80 __le32 *tx_buffer; member 240 private->tx_buffer = dma_alloc_coherent(d, 8192, in xircom_probe() 243 if (private->tx_buffer == NULL) in xircom_probe() 290 dma_free_coherent(d, 8192, private->tx_buffer, private->tx_dma_handle); in xircom_probe() 317 dma_free_coherent(d, 8192, card->tx_buffer, card->tx_dma_handle); in xircom_remove() 338 card->tx_buffer[0], card->tx_buffer[4]); in xircom_interrupt() 395 if (card->tx_buffer[4*desc]==0) { in xircom_start_xmit() 399 memset(&card->tx_buffer[bufferoffsets[desc]/4],0,1536); in xircom_start_xmit() 401 &(card->tx_buffer[bufferoffsets[desc] / 4]), in xircom_start_xmit() 406 card->tx_buffer[4*desc+1] = cpu_to_le32(skb->len); in xircom_start_xmit() [all …]
|
/Linux-v5.4/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 947 struct fm10k_tx_buffer *tx_buffer; in fm10k_tx_map() local 971 tx_buffer = first; in fm10k_tx_map() 978 dma_unmap_len_set(tx_buffer, len, size); in fm10k_tx_map() 979 dma_unmap_addr_set(tx_buffer, dma, dma); in fm10k_tx_map() 1007 tx_buffer = &tx_ring->tx_buffer[i]; in fm10k_tx_map() 1050 tx_buffer = &tx_ring->tx_buffer[i]; in fm10k_tx_map() 1051 fm10k_unmap_and_free_tx_resource(tx_ring, tx_buffer); in fm10k_tx_map() 1052 if (tx_buffer == first) in fm10k_tx_map() 1088 first = &tx_ring->tx_buffer[tx_ring->next_to_use]; in fm10k_xmit_frame_ring() 1193 struct fm10k_tx_buffer *tx_buffer; in fm10k_clean_tx_irq() local [all …]
|
D | fm10k_netdev.c | 22 tx_ring->tx_buffer = vzalloc(size); in fm10k_setup_tx_resources() 23 if (!tx_ring->tx_buffer) in fm10k_setup_tx_resources() 40 vfree(tx_ring->tx_buffer); in fm10k_setup_tx_resources() 41 tx_ring->tx_buffer = NULL; in fm10k_setup_tx_resources() 145 struct fm10k_tx_buffer *tx_buffer) in fm10k_unmap_and_free_tx_resource() argument 147 if (tx_buffer->skb) { in fm10k_unmap_and_free_tx_resource() 148 dev_kfree_skb_any(tx_buffer->skb); in fm10k_unmap_and_free_tx_resource() 149 if (dma_unmap_len(tx_buffer, len)) in fm10k_unmap_and_free_tx_resource() 151 dma_unmap_addr(tx_buffer, dma), in fm10k_unmap_and_free_tx_resource() 152 dma_unmap_len(tx_buffer, len), in fm10k_unmap_and_free_tx_resource() [all …]
|
/Linux-v5.4/drivers/net/ethernet/qualcomm/ |
D | qca_uart.c | 59 unsigned char *tx_buffer; member 217 pos = qca->tx_buffer; in qcauart_netdev_xmit() 236 written = serdev_device_write_buf(qca->serdev, qca->tx_buffer, in qcauart_netdev_xmit() 237 pos - qca->tx_buffer); in qcauart_netdev_xmit() 239 qca->tx_left = (pos - qca->tx_buffer) - written; in qcauart_netdev_xmit() 240 qca->tx_head = qca->tx_buffer + written; in qcauart_netdev_xmit() 271 qca->tx_buffer = devm_kmalloc(&qca->serdev->dev, len, GFP_KERNEL); in qcauart_netdev_init() 272 if (!qca->tx_buffer) in qcauart_netdev_init()
|
/Linux-v5.4/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 270 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_clean_tx_irq() local 279 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_clean_tx_irq() 284 union ixgbe_adv_tx_desc *eop_desc = tx_buffer->next_to_watch; in ixgbevf_clean_tx_irq() 298 tx_buffer->next_to_watch = NULL; in ixgbevf_clean_tx_irq() 301 total_bytes += tx_buffer->bytecount; in ixgbevf_clean_tx_irq() 302 total_packets += tx_buffer->gso_segs; in ixgbevf_clean_tx_irq() 303 if (tx_buffer->tx_flags & IXGBE_TX_FLAGS_IPSEC) in ixgbevf_clean_tx_irq() 308 page_frag_free(tx_buffer->data); in ixgbevf_clean_tx_irq() 310 napi_consume_skb(tx_buffer->skb, napi_budget); in ixgbevf_clean_tx_irq() 314 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_irq() [all …]
|
/Linux-v5.4/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 222 struct igc_tx_buffer *tx_buffer = &tx_ring->tx_buffer_info[i]; in igc_clean_tx_ring() local 228 dev_kfree_skb_any(tx_buffer->skb); in igc_clean_tx_ring() 232 dma_unmap_addr(tx_buffer, dma), in igc_clean_tx_ring() 233 dma_unmap_len(tx_buffer, len), in igc_clean_tx_ring() 237 eop_desc = tx_buffer->next_to_watch; in igc_clean_tx_ring() 242 tx_buffer++; in igc_clean_tx_ring() 247 tx_buffer = tx_ring->tx_buffer_info; in igc_clean_tx_ring() 252 if (dma_unmap_len(tx_buffer, len)) in igc_clean_tx_ring() 254 dma_unmap_addr(tx_buffer, dma), in igc_clean_tx_ring() 255 dma_unmap_len(tx_buffer, len), in igc_clean_tx_ring() [all …]
|
/Linux-v5.4/drivers/spi/ |
D | spidev.c | 76 u8 *tx_buffer; member 115 .tx_buf = spidev->tx_buffer, in spidev_sync_write() 188 missing = copy_from_user(spidev->tx_buffer, buf, count); in spidev_write() 218 tx_buf = spidev->tx_buffer; in spidev_message() 567 if (!spidev->tx_buffer) { in spidev_open() 568 spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open() 569 if (!spidev->tx_buffer) { in spidev_open() 593 kfree(spidev->tx_buffer); in spidev_open() 594 spidev->tx_buffer = NULL; in spidev_open() 613 kfree(spidev->tx_buffer); in spidev_release() [all …]
|
/Linux-v5.4/drivers/tty/serial/ |
D | ifx6x60.c | 434 unsigned char *tx_buffer; in ifx_spi_prepare_tx_buffer() local 436 tx_buffer = ifx_dev->tx_buffer; in ifx_spi_prepare_tx_buffer() 439 tx_buffer += IFX_SPI_HEADER_OVERHEAD; in ifx_spi_prepare_tx_buffer() 454 tx_buffer, temp_count, in ifx_spi_prepare_tx_buffer() 458 tx_buffer += temp_count; in ifx_spi_prepare_tx_buffer() 469 ifx_spi_setup_spi_header(ifx_dev->tx_buffer, in ifx_spi_prepare_tx_buffer() 473 ifx_dev->swap_buf((ifx_dev->tx_buffer), tx_count, in ifx_spi_prepare_tx_buffer() 474 &ifx_dev->tx_buffer[IFX_SPI_TRANSFER_SIZE]); in ifx_spi_prepare_tx_buffer() 756 ifx_dev->spi_xfer.tx_buf = ifx_dev->tx_buffer; in ifx_spi_io() 933 ifx_dev->tx_buffer, in ifx_spi_free_device() [all …]
|
D | ifx6x60.h | 84 unsigned char *tx_buffer; member
|
/Linux-v5.4/drivers/staging/vt6656/ |
D | rxtx.c | 687 struct vnt_tx_buffer *tx_buffer, in vnt_generate_tx_parameter() argument 696 &tx_buffer->tx_head.tx_rts.tx.mic.hdr; in vnt_generate_tx_parameter() 698 return vnt_rxtx_rts(tx_context, &tx_buffer->tx_head, in vnt_generate_tx_parameter() 703 *mic_hdr = &tx_buffer->tx_head.tx_cts.tx.mic.hdr; in vnt_generate_tx_parameter() 705 return vnt_rxtx_cts(tx_context, &tx_buffer->tx_head, need_mic); in vnt_generate_tx_parameter() 709 *mic_hdr = &tx_buffer->tx_head.tx_ab.tx.mic.hdr; in vnt_generate_tx_parameter() 711 return vnt_rxtx_ab(tx_context, &tx_buffer->tx_head, need_rts, need_mic); in vnt_generate_tx_parameter() 794 struct vnt_tx_buffer *tx_buffer; in vnt_tx_packet() local 844 tx_buffer = (struct vnt_tx_buffer *)tx_context->data; in vnt_tx_packet() 845 tx_buffer_head = &tx_buffer->fifo_head; in vnt_tx_packet() [all …]
|
/Linux-v5.4/drivers/s390/net/ |
D | lcs.c | 418 card->tx_buffer = NULL; in lcs_setup_card() 1486 *(__u16 *)(card->tx_buffer->data + card->tx_buffer->count) = 0; in __lcs_emit_txbuffer() 1487 card->tx_buffer->count += 2; in __lcs_emit_txbuffer() 1488 lcs_ready_buffer(&card->write, card->tx_buffer); in __lcs_emit_txbuffer() 1489 card->tx_buffer = NULL; in __lcs_emit_txbuffer() 1509 if (card->tx_emitted <= 0 && card->tx_buffer != NULL) in lcs_txbuffer_cb() 1547 if (card->tx_buffer != NULL && in __lcs_start_xmit() 1548 card->tx_buffer->count + sizeof(struct lcs_header) + in __lcs_start_xmit() 1552 if (card->tx_buffer == NULL) { in __lcs_start_xmit() 1554 card->tx_buffer = lcs_get_buffer(&card->write); in __lcs_start_xmit() [all …]
|
/Linux-v5.4/drivers/net/ethernet/intel/iavf/ |
D | iavf_txrx.c | 28 struct iavf_tx_buffer *tx_buffer) in iavf_unmap_and_free_tx_resource() argument 30 if (tx_buffer->skb) { in iavf_unmap_and_free_tx_resource() 31 if (tx_buffer->tx_flags & IAVF_TX_FLAGS_FD_SB) in iavf_unmap_and_free_tx_resource() 32 kfree(tx_buffer->raw_buf); in iavf_unmap_and_free_tx_resource() 34 dev_kfree_skb_any(tx_buffer->skb); in iavf_unmap_and_free_tx_resource() 35 if (dma_unmap_len(tx_buffer, len)) in iavf_unmap_and_free_tx_resource() 37 dma_unmap_addr(tx_buffer, dma), in iavf_unmap_and_free_tx_resource() 38 dma_unmap_len(tx_buffer, len), in iavf_unmap_and_free_tx_resource() 40 } else if (dma_unmap_len(tx_buffer, len)) { in iavf_unmap_and_free_tx_resource() 42 dma_unmap_addr(tx_buffer, dma), in iavf_unmap_and_free_tx_resource() [all …]
|
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 552 struct ixgbe_tx_buffer *tx_buffer; in ixgbe_print_buffer() local 554 tx_buffer = &ring->tx_buffer_info[ring->next_to_clean]; in ixgbe_print_buffer() 557 (u64)dma_unmap_addr(tx_buffer, dma), in ixgbe_print_buffer() 558 dma_unmap_len(tx_buffer, len), in ixgbe_print_buffer() 559 tx_buffer->next_to_watch, in ixgbe_print_buffer() 560 (u64)tx_buffer->time_stamp); in ixgbe_print_buffer() 573 struct ixgbe_tx_buffer *tx_buffer; in ixgbe_dump() local 674 tx_buffer = &ring->tx_buffer_info[i]; in ixgbe_dump() 676 if (dma_unmap_len(tx_buffer, len) > 0) { in ixgbe_dump() 692 (u64)dma_unmap_addr(tx_buffer, dma), in ixgbe_dump() [all …]
|
/Linux-v5.4/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 4623 struct igb_tx_buffer *tx_buffer = &tx_ring->tx_buffer_info[i]; in igb_clean_tx_ring() local 4629 dev_kfree_skb_any(tx_buffer->skb); in igb_clean_tx_ring() 4633 dma_unmap_addr(tx_buffer, dma), in igb_clean_tx_ring() 4634 dma_unmap_len(tx_buffer, len), in igb_clean_tx_ring() 4638 eop_desc = tx_buffer->next_to_watch; in igb_clean_tx_ring() 4643 tx_buffer++; in igb_clean_tx_ring() 4648 tx_buffer = tx_ring->tx_buffer_info; in igb_clean_tx_ring() 4653 if (dma_unmap_len(tx_buffer, len)) in igb_clean_tx_ring() 4655 dma_unmap_addr(tx_buffer, dma), in igb_clean_tx_ring() 4656 dma_unmap_len(tx_buffer, len), in igb_clean_tx_ring() [all …]
|
/Linux-v5.4/drivers/net/wireless/rsi/ |
D | rsi_91x_usb.c | 50 u8 *seg = dev->tx_buffer; in rsi_usb_card_write() 546 kfree(dev->tx_buffer); in rsi_deinit_usb_interface() 615 rsi_dev->tx_buffer = kmalloc(2048, GFP_KERNEL); in rsi_init_usb_interface() 616 if (!rsi_dev->tx_buffer) { in rsi_init_usb_interface() 645 kfree(rsi_dev->tx_buffer); in rsi_init_usb_interface()
|
D | rsi_usb.h | 61 u8 *tx_buffer; member
|
/Linux-v5.4/drivers/staging/wilc1000/ |
D | wilc_wlan.c | 487 u8 *txb = wilc->tx_buffer; in wilc_wlan_handle_txq() 1013 kfree(wilc->tx_buffer); in wilc_wlan_cleanup() 1014 wilc->tx_buffer = NULL; in wilc_wlan_cleanup() 1238 if (!wilc->tx_buffer) in wilc_wlan_init() 1239 wilc->tx_buffer = kmalloc(WILC_TX_BUFF_SIZE, GFP_KERNEL); in wilc_wlan_init() 1241 if (!wilc->tx_buffer) { in wilc_wlan_init() 1265 kfree(wilc->tx_buffer); in wilc_wlan_init() 1266 wilc->tx_buffer = NULL; in wilc_wlan_init()
|
/Linux-v5.4/drivers/net/wireless/atmel/ |
D | at76c50x-usb.c | 1766 struct at76_tx_buffer *tx_buffer = priv->bulk_out_buffer; in at76_mac80211_tx() local 1807 memset(tx_buffer, 0, sizeof(*tx_buffer)); in at76_mac80211_tx() 1808 tx_buffer->padding = padding; in at76_mac80211_tx() 1809 tx_buffer->wlength = cpu_to_le16(skb->len); in at76_mac80211_tx() 1810 tx_buffer->tx_rate = ieee80211_get_tx_rate(hw, info)->hw_value; in at76_mac80211_tx() 1811 memset(tx_buffer->reserved, 0, sizeof(tx_buffer->reserved)); in at76_mac80211_tx() 1812 memcpy(tx_buffer->packet, skb->data, skb->len); in at76_mac80211_tx() 1815 wiphy_name(priv->hw->wiphy), le16_to_cpu(tx_buffer->wlength), in at76_mac80211_tx() 1816 tx_buffer->padding, tx_buffer->tx_rate); in at76_mac80211_tx() 1819 at76_dbg_dump(DBG_TX_DATA_CONTENT, tx_buffer, submit_len, in at76_mac80211_tx() [all …]
|
/Linux-v5.4/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 602 struct i40e_tx_buffer *tx_buffer) in i40e_unmap_and_free_tx_resource() argument 604 if (tx_buffer->skb) { in i40e_unmap_and_free_tx_resource() 605 if (tx_buffer->tx_flags & I40E_TX_FLAGS_FD_SB) in i40e_unmap_and_free_tx_resource() 606 kfree(tx_buffer->raw_buf); in i40e_unmap_and_free_tx_resource() 608 xdp_return_frame(tx_buffer->xdpf); in i40e_unmap_and_free_tx_resource() 610 dev_kfree_skb_any(tx_buffer->skb); in i40e_unmap_and_free_tx_resource() 611 if (dma_unmap_len(tx_buffer, len)) in i40e_unmap_and_free_tx_resource() 613 dma_unmap_addr(tx_buffer, dma), in i40e_unmap_and_free_tx_resource() 614 dma_unmap_len(tx_buffer, len), in i40e_unmap_and_free_tx_resource() 616 } else if (dma_unmap_len(tx_buffer, len)) { in i40e_unmap_and_free_tx_resource() [all …]
|
/Linux-v5.4/drivers/media/rc/ |
D | ene_ir.h | 215 unsigned *tx_buffer; /* input samples buffer*/ member
|
D | ene_ir.c | 603 dev->tx_buffer = NULL; in ene_tx_disable() 614 if (!dev->tx_buffer) { in ene_tx_sample() 635 sample = dev->tx_buffer[dev->tx_pos++]; in ene_tx_sample() 961 dev->tx_buffer = buf; in ene_transmit()
|
/Linux-v5.4/drivers/net/wan/ |
D | fsl_ucc_hdlc.c | 289 priv->tx_buffer = bd_buffer + RX_BD_RING_LEN * MAX_RX_BUF_LENGTH; in uhdlc_init() 403 memcpy(priv->tx_buffer + (be32_to_cpu(bd->buf) - priv->dma_tx_addr), in ucc_hdlc_tx() 478 memset(priv->tx_buffer + in hdlc_tx_done() 786 if (priv->tx_buffer) { in uhdlc_memclean() 789 priv->tx_buffer, priv->dma_tx_addr); in uhdlc_memclean() 790 priv->tx_buffer = NULL; in uhdlc_memclean()
|
D | fsl_ucc_hdlc.h | 79 u8 *tx_buffer; member
|
/Linux-v5.4/drivers/input/keyboard/ |
D | applespi.c | 366 u8 *tx_buffer; member 582 wr_t->tx_buf = applespi->tx_buffer; in applespi_setup_write_txfrs() 732 applespi->tx_buffer, in applespi_async_write_complete() 751 struct spi_packet *packet = (struct spi_packet *)applespi->tx_buffer; in applespi_send_cmd_msg() 1653 applespi->tx_buffer = devm_kmalloc(&spi->dev, APPLESPI_PACKET_SIZE, in applespi_probe() 1663 if (!applespi->tx_buffer || !applespi->tx_status || in applespi_probe()
|