/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 643 struct atl1e_tx_buffer *tx_buffer = NULL; in atl1e_clean_tx_ring() local 647 if (tx_ring->desc == NULL || tx_ring->tx_buffer == NULL) in atl1e_clean_tx_ring() 653 tx_buffer = &tx_ring->tx_buffer[index]; in atl1e_clean_tx_ring() 654 if (tx_buffer->dma) { in atl1e_clean_tx_ring() 655 if (tx_buffer->flags & ATL1E_TX_PCIMAP_SINGLE) in atl1e_clean_tx_ring() 656 dma_unmap_single(&pdev->dev, tx_buffer->dma, in atl1e_clean_tx_ring() 657 tx_buffer->length, in atl1e_clean_tx_ring() 659 else if (tx_buffer->flags & ATL1E_TX_PCIMAP_PAGE) in atl1e_clean_tx_ring() 660 dma_unmap_page(&pdev->dev, tx_buffer->dma, in atl1e_clean_tx_ring() 661 tx_buffer->length, in atl1e_clean_tx_ring() [all …]
|
/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 …]
|
/drivers/staging/vt6656/ |
D | rxtx.c | 293 static bool vnt_fill_txkey(struct vnt_tx_buffer *tx_buffer, struct sk_buff *skb) in vnt_fill_txkey() argument 295 struct vnt_tx_fifo_head *fifo = &tx_buffer->fifo_head; in vnt_fill_txkey() 330 mic_hdr = &tx_buffer->tx_head.tx_rts.tx.mic.hdr; in vnt_fill_txkey() 332 mic_hdr = &tx_buffer->tx_head.tx_cts.tx.mic.hdr; in vnt_fill_txkey() 334 mic_hdr = &tx_buffer->tx_head.tx_ab.tx.mic.hdr; in vnt_fill_txkey() 380 struct vnt_tx_buffer *tx_buffer = tx_context->tx_buffer; in vnt_rxtx_rts() local 381 union vnt_tx_head *tx_head = &tx_buffer->tx_head; in vnt_rxtx_rts() 393 if (vnt_fill_txkey(tx_buffer, tx_context->skb)) in vnt_rxtx_rts() 403 struct vnt_tx_buffer *tx_buffer = tx_context->tx_buffer; in vnt_rxtx_cts() local 404 union vnt_tx_head *tx_head = &tx_buffer->tx_head; in vnt_rxtx_cts() [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 937 struct fm10k_tx_buffer *tx_buffer; in fm10k_tx_map() local 961 tx_buffer = first; in fm10k_tx_map() 968 dma_unmap_len_set(tx_buffer, len, size); in fm10k_tx_map() 969 dma_unmap_addr_set(tx_buffer, dma, dma); in fm10k_tx_map() 997 tx_buffer = &tx_ring->tx_buffer[i]; in fm10k_tx_map() 1040 tx_buffer = &tx_ring->tx_buffer[i]; in fm10k_tx_map() 1041 fm10k_unmap_and_free_tx_resource(tx_ring, tx_buffer); in fm10k_tx_map() 1042 if (tx_buffer == first) in fm10k_tx_map() 1078 first = &tx_ring->tx_buffer[tx_ring->next_to_use]; in fm10k_xmit_frame_ring() 1183 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 …]
|
/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()
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 268 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_clean_tx_irq() local 277 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_clean_tx_irq() 282 union ixgbe_adv_tx_desc *eop_desc = tx_buffer->next_to_watch; in ixgbevf_clean_tx_irq() 296 tx_buffer->next_to_watch = NULL; in ixgbevf_clean_tx_irq() 299 total_bytes += tx_buffer->bytecount; in ixgbevf_clean_tx_irq() 300 total_packets += tx_buffer->gso_segs; in ixgbevf_clean_tx_irq() 301 if (tx_buffer->tx_flags & IXGBE_TX_FLAGS_IPSEC) in ixgbevf_clean_tx_irq() 306 page_frag_free(tx_buffer->data); in ixgbevf_clean_tx_irq() 308 napi_consume_skb(tx_buffer->skb, napi_budget); in ixgbevf_clean_tx_irq() 312 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_irq() [all …]
|
/drivers/spi/ |
D | spidev.c | 77 u8 *tx_buffer; member 116 .tx_buf = spidev->tx_buffer, in spidev_sync_write() 189 missing = copy_from_user(spidev->tx_buffer, buf, count); in spidev_write() 219 tx_buf = spidev->tx_buffer; in spidev_message() 592 if (!spidev->tx_buffer) { in spidev_open() 593 spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open() 594 if (!spidev->tx_buffer) { in spidev_open() 616 kfree(spidev->tx_buffer); in spidev_open() 617 spidev->tx_buffer = NULL; in spidev_open() 641 kfree(spidev->tx_buffer); in spidev_release() [all …]
|
/drivers/firmware/arm_ffa/ |
D | driver.c | 84 void *tx_buffer; member 464 buffer = drv_info->tx_buffer; in ffa_memory_ops() 655 drv_info->tx_buffer = alloc_pages_exact(RXTX_BUFFER_SIZE, GFP_KERNEL); in ffa_init() 656 if (!drv_info->tx_buffer) { in ffa_init() 661 ret = ffa_rxtx_map(virt_to_phys(drv_info->tx_buffer), in ffa_init() 676 if (drv_info->tx_buffer) in ffa_init() 677 free_pages_exact(drv_info->tx_buffer, RXTX_BUFFER_SIZE); in ffa_init() 690 free_pages_exact(drv_info->tx_buffer, RXTX_BUFFER_SIZE); in ffa_exit()
|
/drivers/net/ethernet/sfc/ |
D | tx.c | 424 struct efx_tx_buffer *tx_buffer; in efx_xdp_tx_buffers() local 486 tx_buffer = efx_tx_map_chunk(tx_queue, dma_addr, len); in efx_xdp_tx_buffers() 487 tx_buffer->xdpf = xdpf; in efx_xdp_tx_buffers() 488 tx_buffer->flags = EFX_TX_BUF_XDP | in efx_xdp_tx_buffers() 490 tx_buffer->dma_offset = 0; in efx_xdp_tx_buffers() 491 tx_buffer->unmap_len = len; in efx_xdp_tx_buffers()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 4830 struct igb_tx_buffer *tx_buffer = &tx_ring->tx_buffer_info[i]; in igb_clean_tx_ring() local 4836 if (tx_buffer->type == IGB_TYPE_SKB) in igb_clean_tx_ring() 4837 dev_kfree_skb_any(tx_buffer->skb); in igb_clean_tx_ring() 4839 xdp_return_frame(tx_buffer->xdpf); in igb_clean_tx_ring() 4843 dma_unmap_addr(tx_buffer, dma), in igb_clean_tx_ring() 4844 dma_unmap_len(tx_buffer, len), in igb_clean_tx_ring() 4848 eop_desc = tx_buffer->next_to_watch; in igb_clean_tx_ring() 4853 tx_buffer++; in igb_clean_tx_ring() 4858 tx_buffer = tx_ring->tx_buffer_info; in igb_clean_tx_ring() 4863 if (dma_unmap_len(tx_buffer, len)) in igb_clean_tx_ring() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 197 struct igc_tx_buffer *tx_buffer = &tx_ring->tx_buffer_info[i]; in igc_clean_tx_ring() local 203 switch (tx_buffer->type) { in igc_clean_tx_ring() 208 xdp_return_frame(tx_buffer->xdpf); in igc_clean_tx_ring() 209 igc_unmap_tx_buffer(tx_ring->dev, tx_buffer); in igc_clean_tx_ring() 212 dev_kfree_skb_any(tx_buffer->skb); in igc_clean_tx_ring() 213 igc_unmap_tx_buffer(tx_ring->dev, tx_buffer); in igc_clean_tx_ring() 221 eop_desc = tx_buffer->next_to_watch; in igc_clean_tx_ring() 226 tx_buffer++; in igc_clean_tx_ring() 231 tx_buffer = tx_ring->tx_buffer_info; in igc_clean_tx_ring() 236 if (dma_unmap_len(tx_buffer, len)) in igc_clean_tx_ring() [all …]
|
/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() 1546 if (card->tx_buffer != NULL && in __lcs_start_xmit() 1547 card->tx_buffer->count + sizeof(struct lcs_header) + in __lcs_start_xmit() 1551 if (card->tx_buffer == NULL) { in __lcs_start_xmit() 1553 card->tx_buffer = lcs_get_buffer(&card->write); in __lcs_start_xmit() [all …]
|
/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 …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 550 struct ixgbe_tx_buffer *tx_buffer; in ixgbe_print_buffer() local 552 tx_buffer = &ring->tx_buffer_info[ring->next_to_clean]; in ixgbe_print_buffer() 555 (u64)dma_unmap_addr(tx_buffer, dma), in ixgbe_print_buffer() 556 dma_unmap_len(tx_buffer, len), in ixgbe_print_buffer() 557 tx_buffer->next_to_watch, in ixgbe_print_buffer() 558 (u64)tx_buffer->time_stamp); in ixgbe_print_buffer() 571 struct ixgbe_tx_buffer *tx_buffer; in ixgbe_dump() local 672 tx_buffer = &ring->tx_buffer_info[i]; in ixgbe_dump() 674 if (dma_unmap_len(tx_buffer, len) > 0) { in ixgbe_dump() 690 (u64)dma_unmap_addr(tx_buffer, dma), in ixgbe_dump() [all …]
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_usb.c | 48 u8 *seg = dev->tx_buffer; in rsi_usb_card_write() 570 kfree(dev->tx_buffer); in rsi_deinit_usb_interface() 639 rsi_dev->tx_buffer = kmalloc(2048, GFP_KERNEL); in rsi_init_usb_interface() 640 if (!rsi_dev->tx_buffer) { in rsi_init_usb_interface() 669 kfree(rsi_dev->tx_buffer); in rsi_init_usb_interface()
|
D | rsi_usb.h | 63 u8 *tx_buffer; member
|
/drivers/net/wireless/atmel/ |
D | at76c50x-usb.c | 1765 struct at76_tx_buffer *tx_buffer = priv->bulk_out_buffer; in at76_mac80211_tx() local 1806 memset(tx_buffer, 0, sizeof(*tx_buffer)); in at76_mac80211_tx() 1807 tx_buffer->padding = padding; in at76_mac80211_tx() 1808 tx_buffer->wlength = cpu_to_le16(skb->len); in at76_mac80211_tx() 1809 tx_buffer->tx_rate = ieee80211_get_tx_rate(hw, info)->hw_value; in at76_mac80211_tx() 1810 memset(tx_buffer->reserved, 0, sizeof(tx_buffer->reserved)); in at76_mac80211_tx() 1811 memcpy(tx_buffer->packet, skb->data, skb->len); in at76_mac80211_tx() 1814 wiphy_name(priv->hw->wiphy), le16_to_cpu(tx_buffer->wlength), in at76_mac80211_tx() 1815 tx_buffer->padding, tx_buffer->tx_rate); in at76_mac80211_tx() 1818 at76_dbg_dump(DBG_TX_DATA_CONTENT, tx_buffer, submit_len, in at76_mac80211_tx() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 757 struct i40e_tx_buffer *tx_buffer) in i40e_unmap_and_free_tx_resource() argument 759 if (tx_buffer->skb) { in i40e_unmap_and_free_tx_resource() 760 if (tx_buffer->tx_flags & I40E_TX_FLAGS_FD_SB) in i40e_unmap_and_free_tx_resource() 761 kfree(tx_buffer->raw_buf); in i40e_unmap_and_free_tx_resource() 763 xdp_return_frame(tx_buffer->xdpf); in i40e_unmap_and_free_tx_resource() 765 dev_kfree_skb_any(tx_buffer->skb); in i40e_unmap_and_free_tx_resource() 766 if (dma_unmap_len(tx_buffer, len)) in i40e_unmap_and_free_tx_resource() 768 dma_unmap_addr(tx_buffer, dma), in i40e_unmap_and_free_tx_resource() 769 dma_unmap_len(tx_buffer, len), in i40e_unmap_and_free_tx_resource() 771 } else if (dma_unmap_len(tx_buffer, len)) { in i40e_unmap_and_free_tx_resource() [all …]
|
/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 708 u8 *txb = wilc->tx_buffer; in wilc_wlan_handle_txq() 1227 kfree(wilc->tx_buffer); in wilc_wlan_cleanup() 1228 wilc->tx_buffer = NULL; in wilc_wlan_cleanup() 1468 if (!wilc->tx_buffer) in wilc_wlan_init() 1469 wilc->tx_buffer = kmalloc(WILC_TX_BUFF_SIZE, GFP_KERNEL); in wilc_wlan_init() 1471 if (!wilc->tx_buffer) { in wilc_wlan_init() 1496 kfree(wilc->tx_buffer); in wilc_wlan_init() 1497 wilc->tx_buffer = NULL; in wilc_wlan_init()
|
/drivers/net/wan/ |
D | fsl_ucc_hdlc.c | 300 priv->tx_buffer = bd_buffer + RX_BD_RING_LEN * MAX_RX_BUF_LENGTH; in uhdlc_init() 414 memcpy(priv->tx_buffer + (be32_to_cpu(bd->buf) - priv->dma_tx_addr), in ucc_hdlc_tx() 489 memset(priv->tx_buffer + in hdlc_tx_done() 796 if (priv->tx_buffer) { in uhdlc_memclean() 799 priv->tx_buffer, priv->dma_tx_addr); in uhdlc_memclean() 800 priv->tx_buffer = NULL; in uhdlc_memclean()
|
D | fsl_ucc_hdlc.h | 79 u8 *tx_buffer; member
|
/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()
|
/drivers/input/keyboard/ |
D | applespi.c | 376 u8 *tx_buffer; member 595 wr_t->tx_buf = applespi->tx_buffer; in applespi_setup_write_txfrs() 746 applespi->tx_buffer, in applespi_async_write_complete() 767 struct spi_packet *packet = (struct spi_packet *)applespi->tx_buffer; in applespi_send_cmd_msg() 1677 applespi->tx_buffer = devm_kmalloc(&spi->dev, APPLESPI_PACKET_SIZE, in applespi_probe() 1687 if (!applespi->tx_buffer || !applespi->tx_status || in applespi_probe()
|