Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/media/platform/renesas/rcar-vin/
Drcar-dma.c1013 if (WARN_ON(vin->buf_hw[slot].buffer)) in rvin_fill_hw_slot()
1018 if (vin->buf_hw[prev].type == HALF_TOP) { in rvin_fill_hw_slot()
1019 vbuf = vin->buf_hw[prev].buffer; in rvin_fill_hw_slot()
1020 vin->buf_hw[slot].buffer = vbuf; in rvin_fill_hw_slot()
1021 vin->buf_hw[slot].type = HALF_BOTTOM; in rvin_fill_hw_slot()
1025 phys_addr = vin->buf_hw[prev].phys + in rvin_fill_hw_slot()
1029 phys_addr = vin->buf_hw[prev].phys + in rvin_fill_hw_slot()
1035 vin->buf_hw[slot].buffer = NULL; in rvin_fill_hw_slot()
1036 vin->buf_hw[slot].type = FULL; in rvin_fill_hw_slot()
1043 vin->buf_hw[slot].buffer = vbuf; in rvin_fill_hw_slot()
[all …]
Drcar-vin.h240 } buf_hw[HW_BUFFER_NUM]; member
/linux-6.12.1/drivers/hwtracing/coresight/
Dcoresight-tmc-etr.c840 static void get_etr_buf_hw(struct device *dev, struct etr_buf_hw *buf_hw) in get_etr_buf_hw() argument
844 buf_hw->has_iommu = iommu_get_domain_for_dev(dev->parent); in get_etr_buf_hw()
845 buf_hw->has_etr_sg = tmc_etr_has_cap(drvdata, TMC_ETR_SG); in get_etr_buf_hw()
846 buf_hw->has_catu = !!tmc_etr_get_catu_device(drvdata); in get_etr_buf_hw()
849 static bool etr_can_use_flat_mode(struct etr_buf_hw *buf_hw, ssize_t etr_buf_size) in etr_can_use_flat_mode() argument
851 bool has_sg = buf_hw->has_catu || buf_hw->has_etr_sg; in etr_can_use_flat_mode()
853 return !has_sg || buf_hw->has_iommu || etr_buf_size < SZ_1M; in etr_can_use_flat_mode()
870 struct etr_buf_hw buf_hw; in tmc_alloc_etr_buf() local
873 get_etr_buf_hw(dev, &buf_hw); in tmc_alloc_etr_buf()
897 if (rc && !pages && etr_can_use_flat_mode(&buf_hw, size)) in tmc_alloc_etr_buf()
[all …]