/linux/drivers/net/ethernet/marvell/octeon_ep/ |
H A D | octep_tx.c | 36 struct octep_tx_buffer *tx_buffer; in octep_iq_process_completions() local 48 tx_buffer = iq->buff_info + fi; in octep_iq_process_completions() 49 skb = tx_buffer->skb; in octep_iq_process_completions() 58 if (!tx_buffer->gather) { in octep_iq_process_completions() 59 dma_unmap_single(iq->dev, tx_buffer->dma, in octep_iq_process_completions() 60 tx_buffer->skb->len, DMA_TO_DEVICE); in octep_iq_process_completions() 70 dma_unmap_single(iq->dev, tx_buffer->sglist[0].dma_ptr[0], in octep_iq_process_completions() 71 tx_buffer->sglist[0].len[3], DMA_TO_DEVICE); in octep_iq_process_completions() 75 dma_unmap_page(iq->dev, tx_buffer->sglist[i >> 2].dma_ptr[i & 3], in octep_iq_process_completions() 76 tx_buffer->sglist[i >> 2].len[3 - (i & 3)], DMA_TO_DEVICE); in octep_iq_process_completions() [all …]
|
H A D | octep_main.c | 847 struct octep_tx_buffer *tx_buffer; in octep_start_xmit() local 875 tx_buffer = iq->buff_info + wi; in octep_start_xmit() 876 tx_buffer->skb = skb; in octep_start_xmit() 884 tx_buffer->gather = 0; in octep_start_xmit() 885 tx_buffer->dma = dma_map_single(iq->dev, skb->data, in octep_start_xmit() 887 if (dma_mapping_error(iq->dev, tx_buffer->dma)) in octep_start_xmit() 889 hw_desc->dptr = tx_buffer->dma; in octep_start_xmit() 895 sglist = tx_buffer->sglist; in octep_start_xmit() 899 tx_buffer->gather = 1; in octep_start_xmit() 925 hw_desc->dptr = tx_buffer->sglist_dma; in octep_start_xmit() [all …]
|
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/ |
H A D | octep_vf_tx.c | 37 struct octep_vf_tx_buffer *tx_buffer; in octep_vf_iq_process_completions() local 49 tx_buffer = iq->buff_info + fi; in octep_vf_iq_process_completions() 50 skb = tx_buffer->skb; in octep_vf_iq_process_completions() 59 if (!tx_buffer->gather) { in octep_vf_iq_process_completions() 60 dma_unmap_single(iq->dev, tx_buffer->dma, in octep_vf_iq_process_completions() 61 tx_buffer->skb->len, DMA_TO_DEVICE); in octep_vf_iq_process_completions() 71 dma_unmap_single(iq->dev, tx_buffer->sglist[0].dma_ptr[0], in octep_vf_iq_process_completions() 72 tx_buffer->sglist[0].len[3], DMA_TO_DEVICE); in octep_vf_iq_process_completions() 76 dma_unmap_page(iq->dev, tx_buffer->sglist[i >> 2].dma_ptr[i & 3], in octep_vf_iq_process_completions() 77 tx_buffer->sglist[i >> 2].len[3 - (i & 3)], DMA_TO_DEVICE); in octep_vf_iq_process_completions() [all …]
|
H A D | octep_vf_main.c | 601 struct octep_vf_tx_buffer *tx_buffer; in octep_vf_start_xmit() local 629 tx_buffer = iq->buff_info + wi; in octep_vf_start_xmit() 630 tx_buffer->skb = skb; in octep_vf_start_xmit() 639 tx_buffer->gather = 0; in octep_vf_start_xmit() 640 tx_buffer->dma = dma_map_single(iq->dev, skb->data, in octep_vf_start_xmit() 642 if (dma_mapping_error(iq->dev, tx_buffer->dma)) in octep_vf_start_xmit() 644 hw_desc->dptr = tx_buffer->dma; in octep_vf_start_xmit() 650 sglist = tx_buffer->sglist; in octep_vf_start_xmit() 654 tx_buffer->gather = 1; in octep_vf_start_xmit() 680 hw_desc->dptr = tx_buffer->sglist_dma; in octep_vf_start_xmit() [all …]
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
H A 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 …]
|
/linux/drivers/net/ethernet/dec/tulip/ |
H A 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/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 936 struct fm10k_tx_buffer *tx_buffer; in fm10k_tx_map() local 960 tx_buffer = first; in fm10k_tx_map() 967 dma_unmap_len_set(tx_buffer, len, size); in fm10k_tx_map() 968 dma_unmap_addr_set(tx_buffer, dma, dma); in fm10k_tx_map() 996 tx_buffer = &tx_ring->tx_buffer[i]; in fm10k_tx_map() 1039 tx_buffer = &tx_ring->tx_buffer[i]; in fm10k_tx_map() 1040 fm10k_unmap_and_free_tx_resource(tx_ring, tx_buffer); in fm10k_tx_map() 1041 if (tx_buffer == first) in fm10k_tx_map() 1077 first = &tx_ring->tx_buffer[tx_ring->next_to_use]; in fm10k_xmit_frame_ring() 1182 struct fm10k_tx_buffer *tx_buffer; in fm10k_clean_tx_irq() local [all …]
|
H A 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/sound/soc/sof/ |
H A D | sof-client-ipc-msg-injector.c | 29 void *tx_buffer; member 135 ret = sof_client_ipc_tx_message(cdev, priv->tx_buffer, priv->rx_buffer, in sof_msg_inject_send_message() 159 size = simple_write_to_buffer(priv->tx_buffer, priv->max_msg_size, in sof_msg_inject_dfs_write() 183 struct sof_ipc4_msg *ipc4_msg = priv->tx_buffer; in sof_msg_inject_ipc4_dfs_write() 273 priv->tx_buffer = devm_kmalloc(dev, alloc_size, GFP_KERNEL); in sof_msg_inject_probe() 275 if (!priv->tx_buffer || !priv->rx_buffer) in sof_msg_inject_probe() 281 ipc4_msg = priv->tx_buffer; in sof_msg_inject_probe() 282 ipc4_msg->data_ptr = priv->tx_buffer + sizeof(struct sof_ipc4_msg); in sof_msg_inject_probe()
|
/linux/drivers/net/ethernet/qualcomm/ |
H A D | qca_uart.c | 45 unsigned char *tx_buffer; member 202 pos = qca->tx_buffer; in qcauart_netdev_xmit() 221 written = serdev_device_write_buf(qca->serdev, qca->tx_buffer, in qcauart_netdev_xmit() 222 pos - qca->tx_buffer); in qcauart_netdev_xmit() 224 qca->tx_left = (pos - qca->tx_buffer) - written; in qcauart_netdev_xmit() 225 qca->tx_head = qca->tx_buffer + written; in qcauart_netdev_xmit() 256 qca->tx_buffer = devm_kmalloc(&qca->serdev->dev, len, GFP_KERNEL); in qcauart_netdev_init() 257 if (!qca->tx_buffer) in qcauart_netdev_init()
|
/linux/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ixgbevf_main.c | 267 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_clean_tx_irq() local 276 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_clean_tx_irq() 281 union ixgbe_adv_tx_desc *eop_desc = tx_buffer->next_to_watch; in ixgbevf_clean_tx_irq() 295 tx_buffer->next_to_watch = NULL; in ixgbevf_clean_tx_irq() 298 total_bytes += tx_buffer->bytecount; in ixgbevf_clean_tx_irq() 299 total_packets += tx_buffer->gso_segs; in ixgbevf_clean_tx_irq() 300 if (tx_buffer->tx_flags & IXGBE_TX_FLAGS_IPSEC) in ixgbevf_clean_tx_irq() 305 page_frag_free(tx_buffer->data); in ixgbevf_clean_tx_irq() 307 napi_consume_skb(tx_buffer->skb, napi_budget); in ixgbevf_clean_tx_irq() 311 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_irq() [all …]
|
/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_lib.c | 709 struct wx_tx_buffer *tx_buffer; in wx_clean_tx_irq() local 715 tx_buffer = &tx_ring->tx_buffer_info[i]; in wx_clean_tx_irq() 720 union wx_tx_desc *eop_desc = tx_buffer->next_to_watch; in wx_clean_tx_irq() 734 tx_buffer->next_to_watch = NULL; in wx_clean_tx_irq() 737 total_bytes += tx_buffer->bytecount; in wx_clean_tx_irq() 738 total_packets += tx_buffer->gso_segs; in wx_clean_tx_irq() 741 napi_consume_skb(tx_buffer->skb, napi_budget); in wx_clean_tx_irq() 745 dma_unmap_addr(tx_buffer, dma), in wx_clean_tx_irq() 746 dma_unmap_len(tx_buffer, len), in wx_clean_tx_irq() 750 dma_unmap_len_set(tx_buffer, len, 0); in wx_clean_tx_irq() [all …]
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | tx.c | 211 struct efx_tx_buffer *tx_buffer; in efx_siena_xdp_tx_buffers() local 273 tx_buffer = efx_siena_tx_map_chunk(tx_queue, dma_addr, len); in efx_siena_xdp_tx_buffers() 274 tx_buffer->xdpf = xdpf; in efx_siena_xdp_tx_buffers() 275 tx_buffer->flags = EFX_TX_BUF_XDP | in efx_siena_xdp_tx_buffers() 277 tx_buffer->dma_offset = 0; in efx_siena_xdp_tx_buffers() 278 tx_buffer->unmap_len = len; in efx_siena_xdp_tx_buffers()
|
/linux/drivers/spi/ |
H A D | spidev.c | 79 u8 *tx_buffer; member 127 .tx_buf = spidev->tx_buffer, in spidev_sync_write() 200 missing = copy_from_user(spidev->tx_buffer, buf, count); in spidev_write() 230 tx_buf = spidev->tx_buffer; in spidev_message() 607 if (!spidev->tx_buffer) { in spidev_open() 608 spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open() 609 if (!spidev->tx_buffer) { in spidev_open() 631 kfree(spidev->tx_buffer); in spidev_open() 632 spidev->tx_buffer = NULL; in spidev_open() 656 kfree(spidev->tx_buffer); in spidev_release() [all …]
|
/linux/net/rxrpc/ |
H A D | call_event.c | 83 if (list_empty(&call->tx_buffer)) in rxrpc_resend() 87 txb = list_first_entry(&call->tx_buffer, struct rxrpc_txbuf, call_link); in rxrpc_resend() 106 list_for_each_entry_from(txb, &call->tx_buffer, call_link) { in rxrpc_resend() 131 if (list_is_last(&txb->call_link, &call->tx_buffer)) in rxrpc_resend() 145 list_for_each_entry_from(txb, &call->tx_buffer, call_link) { in rxrpc_resend() 266 list_add_tail(&txb->call_link, &call->tx_buffer); in rxrpc_decant_prepared_tx()
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_txrx.c | 30 struct iavf_tx_buffer *tx_buffer) in iavf_unmap_and_free_tx_resource() argument 32 if (tx_buffer->skb) { in iavf_unmap_and_free_tx_resource() 33 if (tx_buffer->tx_flags & IAVF_TX_FLAGS_FD_SB) in iavf_unmap_and_free_tx_resource() 34 kfree(tx_buffer->raw_buf); in iavf_unmap_and_free_tx_resource() 36 dev_kfree_skb_any(tx_buffer->skb); in iavf_unmap_and_free_tx_resource() 37 if (dma_unmap_len(tx_buffer, len)) in iavf_unmap_and_free_tx_resource() 39 dma_unmap_addr(tx_buffer, dma), in iavf_unmap_and_free_tx_resource() 40 dma_unmap_len(tx_buffer, len), in iavf_unmap_and_free_tx_resource() 42 } else if (dma_unmap_len(tx_buffer, len)) { in iavf_unmap_and_free_tx_resource() 44 dma_unmap_addr(tx_buffer, dma), in iavf_unmap_and_free_tx_resource() [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
H A 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 …]
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_main.c | 4894 struct igb_tx_buffer *tx_buffer = &tx_ring->tx_buffer_info[i]; in igb_clean_tx_ring() local 4900 if (tx_buffer->type == IGB_TYPE_SKB) in igb_clean_tx_ring() 4901 dev_kfree_skb_any(tx_buffer->skb); in igb_clean_tx_ring() 4903 xdp_return_frame(tx_buffer->xdpf); in igb_clean_tx_ring() 4907 dma_unmap_addr(tx_buffer, dma), in igb_clean_tx_ring() 4908 dma_unmap_len(tx_buffer, len), in igb_clean_tx_ring() 4912 eop_desc = tx_buffer->next_to_watch; in igb_clean_tx_ring() 4917 tx_buffer++; in igb_clean_tx_ring() 4922 tx_buffer = tx_ring->tx_buffer_info; in igb_clean_tx_ring() 4927 if (dma_unmap_len(tx_buffer, len)) in igb_clean_tx_ring() [all …]
|
/linux/drivers/s390/net/ |
H A D | lcs.c | 411 card->tx_buffer = NULL; in lcs_setup_card() 1480 *(__u16 *)(card->tx_buffer->data + card->tx_buffer->count) = 0; in __lcs_emit_txbuffer() 1481 card->tx_buffer->count += 2; in __lcs_emit_txbuffer() 1482 lcs_ready_buffer(&card->write, card->tx_buffer); in __lcs_emit_txbuffer() 1483 card->tx_buffer = NULL; in __lcs_emit_txbuffer() 1503 if (card->tx_emitted <= 0 && card->tx_buffer != NULL) in lcs_txbuffer_cb() 1540 if (card->tx_buffer != NULL && in __lcs_start_xmit() 1541 card->tx_buffer->count + sizeof(struct lcs_header) + in __lcs_start_xmit() 1545 if (card->tx_buffer == NULL) { in __lcs_start_xmit() 1547 card->tx_buffer = lcs_get_buffer(&card->write); in __lcs_start_xmit() [all …]
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_main.c | 554 struct ixgbe_tx_buffer *tx_buffer; in ixgbe_print_buffer() local 556 tx_buffer = &ring->tx_buffer_info[ring->next_to_clean]; in ixgbe_print_buffer() 559 (u64)dma_unmap_addr(tx_buffer, dma), in ixgbe_print_buffer() 560 dma_unmap_len(tx_buffer, len), in ixgbe_print_buffer() 561 tx_buffer->next_to_watch, in ixgbe_print_buffer() 562 (u64)tx_buffer->time_stamp); in ixgbe_print_buffer() 575 struct ixgbe_tx_buffer *tx_buffer; in ixgbe_dump() local 676 tx_buffer = &ring->tx_buffer_info[i]; in ixgbe_dump() 678 if (dma_unmap_len(tx_buffer, len) > 0) { in ixgbe_dump() 694 (u64)dma_unmap_addr(tx_buffer, dma), in ixgbe_dump() [all …]
|
/linux/drivers/net/wireless/rsi/ |
H A 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()
|
H A D | rsi_usb.h | 63 u8 *tx_buffer; member
|
/linux/drivers/net/wireless/atmel/ |
H A D | at76c50x-usb.c | 1759 struct at76_tx_buffer *tx_buffer = priv->bulk_out_buffer; in at76_mac80211_tx() local 1800 memset(tx_buffer, 0, sizeof(*tx_buffer)); in at76_mac80211_tx() 1801 tx_buffer->padding = padding; in at76_mac80211_tx() 1802 tx_buffer->wlength = cpu_to_le16(skb->len); in at76_mac80211_tx() 1803 tx_buffer->tx_rate = ieee80211_get_tx_rate(hw, info)->hw_value; in at76_mac80211_tx() 1804 memset(tx_buffer->reserved, 0, sizeof(tx_buffer->reserved)); in at76_mac80211_tx() 1805 memcpy(tx_buffer->packet, skb->data, skb->len); in at76_mac80211_tx() 1808 wiphy_name(priv->hw->wiphy), le16_to_cpu(tx_buffer->wlength), in at76_mac80211_tx() 1809 tx_buffer->padding, tx_buffer->tx_rate); in at76_mac80211_tx() 1812 at76_dbg_dump(DBG_TX_DATA_CONTENT, tx_buffer, submit_len, in at76_mac80211_tx() [all …]
|
/linux/drivers/firmware/arm_ffa/ |
H A D | driver.c | 98 void *tx_buffer; member 460 msg = drv_info->tx_buffer; in ffa_msg_send2() 702 buffer = drv_info->tx_buffer; in ffa_memory_ops() 1758 drv_info->tx_buffer = alloc_pages_exact(rxtx_bufsz, GFP_KERNEL); in ffa_init() 1759 if (!drv_info->tx_buffer) { in ffa_init() 1764 ret = ffa_rxtx_map(virt_to_phys(drv_info->tx_buffer), in ffa_init() 1795 if (drv_info->tx_buffer) in ffa_init() 1796 free_pages_exact(drv_info->tx_buffer, rxtx_bufsz); in ffa_init() 1809 free_pages_exact(drv_info->tx_buffer, drv_info->rxtx_bufsz); in ffa_exit()
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.c | 751 struct i40e_tx_buffer *tx_buffer) in i40e_unmap_and_free_tx_resource() argument 753 if (tx_buffer->skb) { in i40e_unmap_and_free_tx_resource() 754 if (tx_buffer->tx_flags & I40E_TX_FLAGS_FD_SB) in i40e_unmap_and_free_tx_resource() 755 kfree(tx_buffer->raw_buf); in i40e_unmap_and_free_tx_resource() 757 xdp_return_frame(tx_buffer->xdpf); in i40e_unmap_and_free_tx_resource() 759 dev_kfree_skb_any(tx_buffer->skb); in i40e_unmap_and_free_tx_resource() 760 if (dma_unmap_len(tx_buffer, len)) in i40e_unmap_and_free_tx_resource() 762 dma_unmap_addr(tx_buffer, dma), in i40e_unmap_and_free_tx_resource() 763 dma_unmap_len(tx_buffer, len), in i40e_unmap_and_free_tx_resource() 765 } else if (dma_unmap_len(tx_buffer, len)) { in i40e_unmap_and_free_tx_resource() [all …]
|