Home
last modified time | relevance | path

Searched refs:tx_buffer (Results 1 – 25 of 58) sorted by relevance

123

/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_tx.c37 struct octep_tx_buffer *tx_buffer; in octep_iq_process_completions() local
49 tx_buffer = iq->buff_info + fi; in octep_iq_process_completions()
50 skb = tx_buffer->skb; in octep_iq_process_completions()
59 if (!tx_buffer->gather) { in octep_iq_process_completions()
60 dma_unmap_single(iq->dev, tx_buffer->dma, in octep_iq_process_completions()
61 tx_buffer->skb->len, DMA_TO_DEVICE); in octep_iq_process_completions()
71 dma_unmap_single(iq->dev, tx_buffer->sglist[0].dma_ptr[0], in octep_iq_process_completions()
72 tx_buffer->sglist[0].len[3], DMA_TO_DEVICE); in octep_iq_process_completions()
76 dma_unmap_page(iq->dev, tx_buffer->sglist[i >> 2].dma_ptr[i & 3], in octep_iq_process_completions()
77 tx_buffer->sglist[i >> 2].len[3 - (i & 3)], DMA_TO_DEVICE); in octep_iq_process_completions()
[all …]
H A Doctep_main.c631 struct octep_tx_buffer *tx_buffer; in octep_start_xmit() local
659 tx_buffer = iq->buff_info + wi; in octep_start_xmit()
660 tx_buffer->skb = skb; in octep_start_xmit()
667 tx_buffer->gather = 0; in octep_start_xmit()
668 tx_buffer->dma = dma_map_single(iq->dev, skb->data, in octep_start_xmit()
670 if (dma_mapping_error(iq->dev, tx_buffer->dma)) in octep_start_xmit()
672 hw_desc->dptr = tx_buffer->dma; in octep_start_xmit()
678 sglist = tx_buffer->sglist; in octep_start_xmit()
682 tx_buffer->gather = 1; in octep_start_xmit()
689 dma_sync_single_for_cpu(iq->dev, tx_buffer->sglist_dma, in octep_start_xmit()
[all …]
/openbmc/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c643 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 …]
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Dxircom_cb.c80 __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 …]
/openbmc/linux/drivers/staging/vt6656/
H A Drxtx.c291 static bool vnt_fill_txkey(struct vnt_tx_buffer *tx_buffer, struct sk_buff *skb) in vnt_fill_txkey() argument
293 struct vnt_tx_fifo_head *fifo = &tx_buffer->fifo_head; in vnt_fill_txkey()
328 mic_hdr = &tx_buffer->tx_head.tx_rts.tx.mic.hdr; in vnt_fill_txkey()
330 mic_hdr = &tx_buffer->tx_head.tx_cts.tx.mic.hdr; in vnt_fill_txkey()
332 mic_hdr = &tx_buffer->tx_head.tx_ab.tx.mic.hdr; in vnt_fill_txkey()
376 struct vnt_tx_buffer *tx_buffer = tx_context->tx_buffer; in vnt_rxtx_rts() local
377 union vnt_tx_head *tx_head = &tx_buffer->tx_head; in vnt_rxtx_rts()
389 if (vnt_fill_txkey(tx_buffer, tx_context->skb)) in vnt_rxtx_rts()
399 struct vnt_tx_buffer *tx_buffer = tx_context->tx_buffer; in vnt_rxtx_cts() local
400 union vnt_tx_head *tx_head = &tx_buffer->tx_head; in vnt_rxtx_cts()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c937 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 …]
H A Dfm10k_netdev.c22 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 …]
/openbmc/qemu/hw/net/fsl_etsec/
H A Drings.c165 etsec->tx_buffer = g_realloc(etsec->tx_buffer, in tx_padding_and_crc()
168 memset(etsec->tx_buffer + etsec->tx_buffer_len, 0x0, add); in tx_padding_and_crc()
177 uint8_t flags = (uint8_t)(*etsec->tx_buffer); in process_tx_fcb()
179 uint8_t l3_header_offset = (uint8_t)*(etsec->tx_buffer + 3); in process_tx_fcb()
181 uint8_t l4_header_offset = (uint8_t)*(etsec->tx_buffer + 2); in process_tx_fcb()
183 uint8_t *l3_header = etsec->tx_buffer + 8 + l3_header_offset; in process_tx_fcb()
215 net_checksum_calculate(etsec->tx_buffer + 8, in process_tx_fcb()
239 etsec->tx_buffer = g_realloc(etsec->tx_buffer, in process_tx_bd()
241 tmp_buff = etsec->tx_buffer + etsec->tx_buffer_len; in process_tx_bd()
272 qemu_hexdump(stderr, "", etsec->tx_buffer, etsec->tx_buffer_len); in process_tx_bd()
[all …]
/openbmc/linux/sound/soc/sof/
H A Dsof-client-ipc-msg-injector.c29 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()
/openbmc/linux/drivers/net/ethernet/qualcomm/
H A Dqca_uart.c58 unsigned char *tx_buffer; member
216 pos = qca->tx_buffer; in qcauart_netdev_xmit()
235 written = serdev_device_write_buf(qca->serdev, qca->tx_buffer, in qcauart_netdev_xmit()
236 pos - qca->tx_buffer); in qcauart_netdev_xmit()
238 qca->tx_left = (pos - qca->tx_buffer) - written; in qcauart_netdev_xmit()
239 qca->tx_head = qca->tx_buffer + written; in qcauart_netdev_xmit()
270 qca->tx_buffer = devm_kmalloc(&qca->serdev->dev, len, GFP_KERNEL); in qcauart_netdev_init()
271 if (!qca->tx_buffer) in qcauart_netdev_init()
/openbmc/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_lib.c709 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 …]
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c268 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 …]
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dtx.c211 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()
/openbmc/qemu/hw/net/
H A Dmipsnet.c40 uint8_t tx_buffer[MAX_ETH_FRAME_SIZE]; member
56 memset(s->tx_buffer, 0, MAX_ETH_FRAME_SIZE); in mipsnet_reset()
193 s->tx_buffer[s->tx_written++] = val; in mipsnet_ioport_write()
199 s->tx_buffer, s->tx_written); in mipsnet_ioport_write()
229 VMSTATE_BUFFER(tx_buffer, MIPSnetState),
/openbmc/linux/drivers/spi/
H A Dspidev.c79 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()
613 if (!spidev->tx_buffer) { in spidev_open()
614 spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open()
615 if (!spidev->tx_buffer) { in spidev_open()
637 kfree(spidev->tx_buffer); in spidev_open()
638 spidev->tx_buffer = NULL; in spidev_open()
662 kfree(spidev->tx_buffer); in spidev_release()
[all …]
/openbmc/linux/net/rxrpc/
H A Dcall_event.c130 if (list_empty(&call->tx_buffer)) in rxrpc_resend()
133 if (list_empty(&call->tx_buffer)) in rxrpc_resend()
137 txb = list_first_entry(&call->tx_buffer, struct rxrpc_txbuf, call_link); in rxrpc_resend()
156 list_for_each_entry_from(txb, &call->tx_buffer, call_link) { in rxrpc_resend()
177 if (list_is_last(&txb->call_link, &call->tx_buffer)) in rxrpc_resend()
193 list_for_each_entry_from(txb, &call->tx_buffer, call_link) { in rxrpc_resend()
321 list_add_tail(&txb->call_link, &call->tx_buffer); in rxrpc_decant_prepared_tx()
/openbmc/u-boot/drivers/net/
H A Drtl8139.c177 static unsigned char tx_buffer[TX_BUF_SIZE] __attribute__((aligned(4))); variable
411 memcpy((char *)tx_buffer, (char *)packet, (int)length); in rtl_transmit()
418 tx_buffer[len++] = '\0'; in rtl_transmit()
421 flush_cache((unsigned long)tx_buffer, length); in rtl_transmit()
422 outl(phys_to_bus((int)tx_buffer), ioaddr + TxAddr0 + cur_tx*4); in rtl_transmit()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dtx.c424 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()
/openbmc/linux/drivers/firmware/arm_ffa/
H A Ddriver.c84 void *tx_buffer; member
501 buffer = drv_info->tx_buffer; in ffa_memory_ops()
740 drv_info->tx_buffer = alloc_pages_exact(RXTX_BUFFER_SIZE, GFP_KERNEL); in ffa_init()
741 if (!drv_info->tx_buffer) { in ffa_init()
746 ret = ffa_rxtx_map(virt_to_phys(drv_info->tx_buffer), in ffa_init()
763 if (drv_info->tx_buffer) in ffa_init()
764 free_pages_exact(drv_info->tx_buffer, RXTX_BUFFER_SIZE); in ffa_init()
777 free_pages_exact(drv_info->tx_buffer, RXTX_BUFFER_SIZE); in ffa_exit()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_main.c197 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 …]
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A Digb_main.c4919 struct igb_tx_buffer *tx_buffer = &tx_ring->tx_buffer_info[i]; in igb_clean_tx_ring() local
4925 if (tx_buffer->type == IGB_TYPE_SKB) in igb_clean_tx_ring()
4926 dev_kfree_skb_any(tx_buffer->skb); in igb_clean_tx_ring()
4928 xdp_return_frame(tx_buffer->xdpf); in igb_clean_tx_ring()
4932 dma_unmap_addr(tx_buffer, dma), in igb_clean_tx_ring()
4933 dma_unmap_len(tx_buffer, len), in igb_clean_tx_ring()
4937 eop_desc = tx_buffer->next_to_watch; in igb_clean_tx_ring()
4942 tx_buffer++; in igb_clean_tx_ring()
4947 tx_buffer = tx_ring->tx_buffer_info; in igb_clean_tx_ring()
4952 if (dma_unmap_len(tx_buffer, len)) in igb_clean_tx_ring()
[all …]
/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_guest.c63 void *tx_buffer; member
153 struct vmci_data_in_out_header *buffer_header = dev->tx_buffer; in vmci_write_data()
556 if (vmci_dev->tx_buffer != NULL) in vmci_free_dg_buffers()
559 vmci_dev->tx_buffer, in vmci_free_dg_buffers()
640 vmci_dev->tx_buffer = dma_alloc_coherent(&pdev->dev, VMCI_DMA_DG_BUFFER_SIZE, in vmci_guest_probe_device()
643 if (!vmci_dev->tx_buffer) { in vmci_guest_probe_device()
/openbmc/linux/drivers/s390/net/
H A Dlcs.c413 card->tx_buffer = NULL; in lcs_setup_card()
1482 *(__u16 *)(card->tx_buffer->data + card->tx_buffer->count) = 0; in __lcs_emit_txbuffer()
1483 card->tx_buffer->count += 2; in __lcs_emit_txbuffer()
1484 lcs_ready_buffer(&card->write, card->tx_buffer); in __lcs_emit_txbuffer()
1485 card->tx_buffer = NULL; in __lcs_emit_txbuffer()
1505 if (card->tx_emitted <= 0 && card->tx_buffer != NULL) in lcs_txbuffer_cb()
1542 if (card->tx_buffer != NULL && in __lcs_start_xmit()
1543 card->tx_buffer->count + sizeof(struct lcs_header) + in __lcs_start_xmit()
1547 if (card->tx_buffer == NULL) { in __lcs_start_xmit()
1549 card->tx_buffer = lcs_get_buffer(&card->write); in __lcs_start_xmit()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.c29 struct iavf_tx_buffer *tx_buffer) in iavf_unmap_and_free_tx_resource() argument
31 if (tx_buffer->skb) { in iavf_unmap_and_free_tx_resource()
32 if (tx_buffer->tx_flags & IAVF_TX_FLAGS_FD_SB) in iavf_unmap_and_free_tx_resource()
33 kfree(tx_buffer->raw_buf); in iavf_unmap_and_free_tx_resource()
35 dev_kfree_skb_any(tx_buffer->skb); in iavf_unmap_and_free_tx_resource()
36 if (dma_unmap_len(tx_buffer, len)) in iavf_unmap_and_free_tx_resource()
38 dma_unmap_addr(tx_buffer, dma), in iavf_unmap_and_free_tx_resource()
39 dma_unmap_len(tx_buffer, len), in iavf_unmap_and_free_tx_resource()
41 } else if (dma_unmap_len(tx_buffer, len)) { in iavf_unmap_and_free_tx_resource()
43 dma_unmap_addr(tx_buffer, dma), in iavf_unmap_and_free_tx_resource()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c554 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 …]

123