Home
last modified time | relevance | path

Searched refs:buf_dma (Results 1 – 25 of 59) sorted by relevance

123

/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_rxtx.c76 dma_addr_t buf_dma; member
120 buf->buf_dma = DMA_MAPPING_ERROR; in prestera_sdma_buf_init()
173 dma_unmap_single(dev, buf->buf_dma, buf->skb->len, in prestera_sdma_rx_skb_alloc()
176 buf->buf_dma = dma; in prestera_sdma_rx_skb_alloc()
190 dma_addr_t buf_dma = buf->buf_dma; in prestera_sdma_rx_skb_get() local
197 buf->buf_dma = buf_dma; in prestera_sdma_rx_skb_get()
207 prestera_sdma_rx_desc_init(sdma, buf->desc, buf->buf_dma); in prestera_sdma_rx_skb_get()
358 if (buf->buf_dma != DMA_MAPPING_ERROR) in prestera_sdma_rx_fini()
360 buf->buf_dma, buf->skb->len, in prestera_sdma_rx_fini()
403 next->buf_dma); in prestera_sdma_rx_init()
[all …]
/openbmc/linux/drivers/media/pci/mantis/
H A Dmantis_dma.c51 (unsigned long) mantis->buf_dma, in mantis_dma_exit()
56 mantis->buf_cpu, mantis->buf_dma); in mantis_dma_exit()
82 &mantis->buf_dma, GFP_KERNEL); in mantis_alloc_buffers()
91 (unsigned long) mantis->buf_dma, in mantis_alloc_buffers()
161 RISC_INSTR(risc_pos, mantis->buf_dma + buf_pos); in mantis_risc_program()
/openbmc/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_prueth.c110 dma_addr_t buf_dma, next_desc_dma; in prueth_xmit_free() local
116 cppi5_hdesc_get_obuf(first_desc, &buf_dma, &buf_dma_len); in prueth_xmit_free()
117 k3_udma_glue_tx_cppi5_to_dma_addr(tx_chn->tx_chn, &buf_dma); in prueth_xmit_free()
119 dma_unmap_single(tx_chn->dma_dev, buf_dma, buf_dma_len, in prueth_xmit_free()
127 cppi5_hdesc_get_obuf(next_desc, &buf_dma, &buf_dma_len); in prueth_xmit_free()
128 k3_udma_glue_tx_cppi5_to_dma_addr(tx_chn->tx_chn, &buf_dma); in prueth_xmit_free()
130 dma_unmap_page(tx_chn->dma_dev, buf_dma, buf_dma_len, in prueth_xmit_free()
450 dma_addr_t buf_dma; in prueth_dma_rx_push() local
460 buf_dma = dma_map_single(rx_chn->dma_dev, skb->data, pkt_len, DMA_FROM_DEVICE); in prueth_dma_rx_push()
461 if (unlikely(dma_mapping_error(rx_chn->dma_dev, buf_dma))) { in prueth_dma_rx_push()
[all …]
/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.c313 dma_addr_t buf_dma; in am65_cpsw_nuss_rx_push() local
323 buf_dma = dma_map_single(rx_chn->dma_dev, skb->data, pkt_len, in am65_cpsw_nuss_rx_push()
325 if (unlikely(dma_mapping_error(rx_chn->dma_dev, buf_dma))) { in am65_cpsw_nuss_rx_push()
333 k3_udma_glue_rx_dma_to_cppi5_addr(rx_chn->rx_chn, &buf_dma); in am65_cpsw_nuss_rx_push()
334 cppi5_hdesc_attach_buf(desc_rx, buf_dma, skb_tailroom(skb), buf_dma, skb_tailroom(skb)); in am65_cpsw_nuss_rx_push()
654 dma_addr_t buf_dma; in am65_cpsw_nuss_rx_cleanup() local
661 cppi5_hdesc_get_obuf(desc_rx, &buf_dma, &buf_dma_len); in am65_cpsw_nuss_rx_cleanup()
662 k3_udma_glue_rx_cppi5_to_dma_addr(rx_chn->rx_chn, &buf_dma); in am65_cpsw_nuss_rx_cleanup()
664 dma_unmap_single(rx_chn->dma_dev, buf_dma, buf_dma_len, DMA_FROM_DEVICE); in am65_cpsw_nuss_rx_cleanup()
725 dma_addr_t desc_dma, buf_dma; in am65_cpsw_nuss_rx_packets() local
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_trace.h107 __field(dma_addr_t, buf_dma)
117 __entry->buf_dma = ring->desc_cb[ring->next_to_clean].dma;
126 __entry->ntc, &__entry->desc_dma, &__entry->buf_dma,
/openbmc/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas.h57 hisi_sas_status_buf_addr((slot)->buf_dma)
62 #define hisi_sas_cmd_hdr_addr_dma(slot) hisi_sas_cmd_hdr_addr((slot)->buf_dma)
67 #define hisi_sas_sge_addr_dma(slot) hisi_sas_sge_addr((slot)->buf_dma)
72 #define hisi_sas_sge_dif_addr_dma(slot) hisi_sas_sge_dif_addr((slot)->buf_dma)
255 dma_addr_t buf_dma; member
/openbmc/linux/drivers/spi/
H A Dspi-mtk-snfi.c875 dma_addr_t buf_dma; in mtk_snand_read_page_cache() local
936 buf_dma = dma_map_single(snf->dev, buf, dma_len, DMA_FROM_DEVICE); in mtk_snand_read_page_cache()
937 ret = dma_mapping_error(snf->dev, buf_dma); in mtk_snand_read_page_cache()
942 nfi_write32(snf, NFI_STRADDR, buf_dma); in mtk_snand_read_page_cache()
996 dma_unmap_single(snf->dev, buf_dma, dma_len, DMA_FROM_DEVICE); in mtk_snand_read_page_cache()
1036 dma_unmap_single(snf->dev, buf_dma, dma_len, DMA_FROM_DEVICE); in mtk_snand_read_page_cache()
1067 dma_addr_t buf_dma; in mtk_snand_write_page_cache() local
1126 buf_dma = dma_map_single(snf->dev, snf->buf, dma_len, DMA_TO_DEVICE); in mtk_snand_write_page_cache()
1127 ret = dma_mapping_error(snf->dev, buf_dma); in mtk_snand_write_page_cache()
1132 nfi_write32(snf, NFI_STRADDR, buf_dma); in mtk_snand_write_page_cache()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlxbf_gige/
H A Dmlxbf_gige_main.c32 dma_addr_t *buf_dma, in mlxbf_gige_alloc_skb() argument
56 *buf_dma = dma_map_single(priv->dev, skb->data, map_len, dir); in mlxbf_gige_alloc_skb()
57 if (dma_mapping_error(priv->dev, *buf_dma)) { in mlxbf_gige_alloc_skb()
59 *buf_dma = (dma_addr_t)0; in mlxbf_gige_alloc_skb()
H A Dmlxbf_gige.h201 dma_addr_t *buf_dma,
/openbmc/linux/drivers/net/can/usb/
H A Dmcba_usb.c631 dma_addr_t buf_dma; in mcba_usb_start() local
641 GFP_KERNEL, &buf_dma); in mcba_usb_start()
649 urb->transfer_dma = buf_dma; in mcba_usb_start()
662 buf, buf_dma); in mcba_usb_start()
668 priv->rxbuf_dma[i] = buf_dma; in mcba_usb_start()
H A Dusb_8dev.c726 dma_addr_t buf_dma; in usb_8dev_start() local
736 &buf_dma); in usb_8dev_start()
744 urb->transfer_dma = buf_dma; in usb_8dev_start()
764 priv->rxbuf_dma[i] = buf_dma; in usb_8dev_start()
H A Dems_usb.c598 dma_addr_t buf_dma; in ems_usb_start() local
608 &buf_dma); in ems_usb_start()
616 urb->transfer_dma = buf_dma; in ems_usb_start()
634 dev->rxbuf_dma[i] = buf_dma; in ems_usb_start()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dintel-nand-controller.c296 dma_addr_t buf_dma; in ebu_dma_start() local
310 buf_dma = dma_map_single(chan->device->dev, (void *)buf, len, dir); in ebu_dma_start()
311 if (dma_mapping_error(chan->device->dev, buf_dma)) { in ebu_dma_start()
317 tx = dmaengine_prep_slave_single(chan, buf_dma, len, dir, flags); in ebu_dma_start()
350 dma_unmap_single(ebu_host->dev, buf_dma, len, dir); in ebu_dma_start()
/openbmc/linux/drivers/crypto/caam/
H A Dcaamhash.c114 dma_addr_t buf_dma; member
174 state->buf_dma = dma_map_single(jrdev, state->buf, buflen, in buf_map_to_sec4_sg()
176 if (dma_mapping_error(jrdev, state->buf_dma)) { in buf_map_to_sec4_sg()
178 state->buf_dma = 0; in buf_map_to_sec4_sg()
182 dma_to_sec4_sg_one(sec4_sg, state->buf_dma, buflen, 0); in buf_map_to_sec4_sg()
564 if (state->buf_dma) { in ahash_unmap()
565 dma_unmap_single(dev, state->buf_dma, state->buflen, in ahash_unmap()
567 state->buf_dma = 0; in ahash_unmap()
1092 state->buf_dma = 0; in ahash_digest()
1169 state->buf_dma = dma_map_single(jrdev, buf, buflen, in ahash_final_no_ctx()
[all …]
/openbmc/linux/drivers/media/pci/bt8xx/
H A Dbt878.c71 bt->buf_dma); in bt878_mem_free()
88 &bt->buf_dma, GFP_KERNEL); in bt878_mem_alloc()
168 RISC_INSTR(bt->buf_dma + buf_pos); in bt878_risc_program()
H A Dbt878.h116 dma_addr_t buf_dma; member
/openbmc/linux/drivers/net/can/usb/kvaser_usb/
H A Dkvaser_usb_core.c376 dma_addr_t buf_dma; in kvaser_usb_setup_rx_urbs() local
385 GFP_KERNEL, &buf_dma); in kvaser_usb_setup_rx_urbs()
400 urb->transfer_dma = buf_dma; in kvaser_usb_setup_rx_urbs()
409 buf_dma); in kvaser_usb_setup_rx_urbs()
415 dev->rxbuf_dma[i] = buf_dma; in kvaser_usb_setup_rx_urbs()
/openbmc/linux/drivers/usb/musb/
H A Dcppi_dma.h88 dma_addr_t buf_dma; member
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Depn.c67 writel(ep->buf_dma, ep->epn.regs + AST_VHUB_EP_DESC_BASE); in ast_vhub_epn_kick()
781 ep->buf, ep->buf_dma); in ast_vhub_epn_dispose()
836 &ep->buf_dma, GFP_KERNEL); in ast_vhub_alloc_epn()
843 ep->epn.descs_dma = ep->buf_dma + AST_VHUB_EPn_MAX_PACKET; in ast_vhub_alloc_epn()
/openbmc/linux/drivers/staging/vt6655/
H A Ddesc.h221 dma_addr_t buf_dma; member
/openbmc/u-boot/drivers/usb/dwc3/
H A Dep0.c49 static int dwc3_ep0_start_trans(struct dwc3 *dwc, u8 epnum, dma_addr_t buf_dma, in dwc3_ep0_start_trans() argument
69 trb->bpl = lower_32_bits(buf_dma); in dwc3_ep0_start_trans()
70 trb->bph = upper_32_bits(buf_dma); in dwc3_ep0_start_trans()
83 dwc3_flush_cache((uintptr_t)buf_dma, len); in dwc3_ep0_start_trans()
/openbmc/linux/drivers/input/misc/
H A Dati_remote2.c190 dma_addr_t buf_dma[2]; member
633 ar2->buf[i] = usb_alloc_coherent(udev, 4, GFP_KERNEL, &ar2->buf_dma[i]); in ati_remote2_urb_init()
648 ar2->urb[i]->transfer_dma = ar2->buf_dma[i]; in ati_remote2_urb_init()
661 usb_free_coherent(ar2->udev, 4, ar2->buf[i], ar2->buf_dma[i]); in ati_remote2_urb_cleanup()
/openbmc/linux/drivers/staging/qlge/
H A Dqlge_mpi.c784 dma_addr_t buf_dma; in qlge_dump_risc_ram_area() local
787 word_count * sizeof(u32), &buf_dma, in qlge_dump_risc_ram_area()
792 status = qlge_mb_dump_ram(qdev, buf_dma, ram_addr, word_count); in qlge_dump_risc_ram_area()
797 buf_dma); in qlge_dump_risc_ram_area()
/openbmc/linux/drivers/net/ethernet/pasemi/
H A Dpasemi_mac.h40 dma_addr_t buf_dma; member
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dqla_mid.c1142 dma_addr_t buf_dma; in qla_get_buf() local
1165 buf = dma_pool_zalloc(ha->fcp_cmnd_dma_pool, GFP_ATOMIC, &buf_dma); in qla_get_buf()
1173 dsc->buf_dma = qp->buf_pool.dma_array[tag] = buf_dma; in qla_get_buf()
1177 dsc->buf_dma = qp->buf_pool.dma_array[tag]; in qla_get_buf()

123