Home
last modified time | relevance | path

Searched refs:flat_buf (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/hwtracing/coresight/
Dcoresight-tmc-etr.c594 struct etr_flat_buf *flat_buf; in tmc_etr_alloc_flat_buf() local
601 flat_buf = kzalloc(sizeof(*flat_buf), GFP_KERNEL); in tmc_etr_alloc_flat_buf()
602 if (!flat_buf) in tmc_etr_alloc_flat_buf()
605 flat_buf->vaddr = dma_alloc_coherent(real_dev, etr_buf->size, in tmc_etr_alloc_flat_buf()
606 &flat_buf->daddr, GFP_KERNEL); in tmc_etr_alloc_flat_buf()
607 if (!flat_buf->vaddr) { in tmc_etr_alloc_flat_buf()
608 kfree(flat_buf); in tmc_etr_alloc_flat_buf()
612 flat_buf->size = etr_buf->size; in tmc_etr_alloc_flat_buf()
613 flat_buf->dev = &drvdata->csdev->dev; in tmc_etr_alloc_flat_buf()
614 etr_buf->hwaddr = flat_buf->daddr; in tmc_etr_alloc_flat_buf()
[all …]