/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/osal/ |
D | drv_osal_sys_linux.c | 104 …mem->dma_virt = dma_alloc_coherent(dev, mem->dma_size, (dma_addr_t *)(&addr_u64(mem->dma_addr)), G… in cipher_dma_alloc_coherent() 109 addr_u64(mem->mmz_addr) = addr_u64(mem->dma_addr); in cipher_dma_alloc_coherent() 114 addr_u64(g_local_map_table[i].dma) = addr_u64(mem->dma_addr); in cipher_dma_alloc_coherent() 118 i, addr_u64(mem->dma_addr), mem->dma_virt); in cipher_dma_alloc_coherent() 154 dma_free_coherent(dev, mem->dma_size, mem->dma_virt, (dma_addr_t)addr_u64(mem->dma_addr)); in cipher_dma_free_coherent() 158 …(g_local_map_table[i].valid && addr_u64(g_local_map_table[i].dma) == addr_u64(mem_temp.dma_addr)) { in cipher_dma_free_coherent() 163 i, addr_u64(mem_temp.dma_addr), mem_temp.dma_virt); in cipher_dma_free_coherent() 205 addr_u64(mem->dma_addr) = addr_u64(mem->mmz_addr); in hash_mem_alloc_remap() 208 addr_u64(mem->mmz_addr), addr_u64(mem->dma_addr), mem->dma_virt, size); in hash_mem_alloc_remap() 215 addr_u64(g_local_map_table[i].dma) = addr_u64(mem->dma_addr); in hash_mem_alloc_remap() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/iommu/ |
D | sunxi-iommu-debug.c | 104 dma_addr_t dma_addr; in iommu_debug_profiling_fast_dma_api_show() local 127 dma_addr = dma_map_single_attrs( in iommu_debug_profiling_fast_dma_api_show() 134 if (dma_mapping_error(dev, dma_addr)) { in iommu_debug_profiling_fast_dma_api_show() 141 dev, dma_addr, SZ_4K, DMA_TO_DEVICE, in iommu_debug_profiling_fast_dma_api_show() 215 dma_addr_t dma_addr; 226 dma_addr = dma_map_single(dev, virt, SZ_8K, DMA_TO_DEVICE); 227 if (dma_addr == 0) { 244 dma_addr = dma_map_single(dev, virt, SZ_8K, DMA_TO_DEVICE); 251 dma_addr = dma_map_single(dev, virt, SZ_4K, DMA_TO_DEVICE); 255 for (dma_addr = 0; dma_addr < max; dma_addr += SZ_8K) [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/ |
D | common.c | 37 buf->dma_addr = sg_dma_address(sg_tbl->sgl); in rkcif_alloc_buffer() 40 buf->dma_addr = *((dma_addr_t *)g_ops->cookie(mem_priv)); in rkcif_alloc_buffer() 58 (u32)buf->dma_addr, (u32)buf->dma_addr + buf->size, buf->size); in rkcif_alloc_buffer() 73 (u32)buf->dma_addr, (u32)buf->dma_addr + buf->size); in rkcif_free_buffer() 114 buf->dma_addr = sg_dma_address(sg->sgl); in rkcif_alloc_page_dummy_buf() 119 (u32)buf->dma_addr, ret, buf->size); in rkcif_alloc_page_dummy_buf() 167 (u32)buf->dma_addr, buf->size); in rkcif_alloc_common_dummy_buf()
|
/device/board/isoftstone/yangfan/kernel/src/driv/media/cif/ |
D | common.c | 37 buf->dma_addr = sg_dma_address(sg_tbl->sgl); in rkcif_alloc_buffer() 40 buf->dma_addr = *((dma_addr_t *)g_ops->cookie(mem_priv)); in rkcif_alloc_buffer() 58 (u32)buf->dma_addr, (u32)buf->dma_addr + buf->size, buf->size); in rkcif_alloc_buffer() 73 (u32)buf->dma_addr, (u32)buf->dma_addr + buf->size); in rkcif_free_buffer() 114 buf->dma_addr = sg_dma_address(sg->sgl); in rkcif_alloc_page_dummy_buf() 119 (u32)buf->dma_addr, ret, buf->size); in rkcif_alloc_page_dummy_buf() 167 (u32)buf->dma_addr, buf->size); in rkcif_alloc_common_dummy_buf()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/ |
D | common.c | 36 buf->dma_addr = sg_dma_address(sg_tbl->sgl); in rkcif_alloc_buffer() 39 buf->dma_addr = *((dma_addr_t *)g_ops->cookie(mem_priv)); in rkcif_alloc_buffer() 56 …4l2_dbg(1, rkcif_debug, &dev->v4l2_dev, "%s buf:0x%x~0x%x size:%d\n", __func__, (u32)buf->dma_addr, in rkcif_alloc_buffer() 57 (u32)buf->dma_addr + buf->size, buf->size); in rkcif_alloc_buffer() 69 v4l2_dbg(1, rkcif_debug, &dev->v4l2_dev, "%s buf:0x%x~0x%x\n", __func__, (u32)buf->dma_addr, in rkcif_free_buffer() 70 (u32)buf->dma_addr + buf->size); in rkcif_free_buffer() 116 buf->dma_addr = sg_dma_address(sg->sgl); in rkcif_alloc_page_dummy_buf() 119 …rkcif_debug, &dev->v4l2_dev, "%s buf:0x%x map cnt:%d size:%d\n", __func__, (u32)buf->dma_addr, ret, in rkcif_alloc_page_dummy_buf() 169 …(1, rkcif_debug, &dev->v4l2_dev, "%s buf:0x%x size:%d\n", __func__, (u32)buf->dma_addr, buf->size); in rkcif_alloc_common_dummy_buf()
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
D | dma-mapping.h | 96 void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr); 99 static inline void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in debug_dma_mapping_error() argument 108 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument 110 debug_dma_mapping_error(dev, dma_addr); in dma_mapping_error() 112 if (dma_addr == DMA_MAPPING_ERROR) { in dma_mapping_error() 138 …e_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size, 140 …s(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, 148 bool dma_need_sync(struct device *dev, dma_addr_t dma_addr); 194 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error() argument 214 …ma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, in dma_get_sgtable_attrs() argument [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/amvdec_ports/ |
D | aml_vcodec_util.c | 48 &mem->dma_addr, GFP_KERNEL, 0); in aml_vcodec_mem_alloc() 59 v4l_dbg(ctx, V4L_DEBUG_CODEC_PRINFO, "dma: 0x%lx\n", (ulong) mem->dma_addr); in aml_vcodec_mem_alloc() 81 v4l_dbg(ctx, V4L_DEBUG_CODEC_PRINFO, "dma: 0x%lx\n", (ulong) mem->dma_addr); in aml_vcodec_mem_free() 84 dma_free_coherent(dev, size, mem->vaddr, mem->dma_addr); in aml_vcodec_mem_free() 86 mem->dma_addr = 0; in aml_vcodec_mem_free()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/drm/ |
D | sunxi_drm_gem.c | 36 if (sunxi_gem_obj->dma_addr) { in sunxi_drm_alloc_buf() 72 &sunxi_gem_obj->dma_addr, GFP_KERNEL, in sunxi_drm_alloc_buf() 80 sunxi_gem_obj->dma_addr, sunxi_gem_obj->size, in sunxi_drm_alloc_buf() 97 (unsigned long)sunxi_gem_obj->dma_addr, sunxi_gem_obj->size); in sunxi_drm_alloc_buf() 105 sunxi_gem_obj->dma_addr, sunxi_gem_obj->dma_attrs); in sunxi_drm_alloc_buf() 116 if (!sunxi_gem_obj->dma_addr) { in sunxi_drm_free_buf() 122 (unsigned long)sunxi_gem_obj->dma_addr, sunxi_gem_obj->size); in sunxi_drm_free_buf() 125 (dma_addr_t)sunxi_gem_obj->dma_addr, in sunxi_drm_free_buf() 139 (unsigned long)sunxi_gem_obj->dma_addr, in sunxi_gem_dump() 155 (unsigned long)sunxi_gem_obj->dma_addr + offset, in sunxi_drm_gem_show() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/driv/media/ispp/ |
D | params_v20.c | 35 dma_addr_t dma_addr; in fec_config() local 73 dma_addr = params_vdev->buf_fec[buf_idx].dma_addr; in fec_config() 74 val = dma_addr + fec_data->meshxf_oft; in fec_config() 76 val = dma_addr + fec_data->meshyf_oft; in fec_config() 78 val = dma_addr + fec_data->meshxi_oft; in fec_config() 80 val = dma_addr + fec_data->meshyi_oft; in fec_config()
|
D | params.c | 145 u32 val, dma_addr = params->buf_fec[i].dma_addr; in rkispp_param_init_fecbuf() local 147 val = dma_addr + fec_data->meshxf_oft; in rkispp_param_init_fecbuf() 149 val = dma_addr + fec_data->meshyf_oft; in rkispp_param_init_fecbuf() 151 val = dma_addr + fec_data->meshxi_oft; in rkispp_param_init_fecbuf() 153 val = dma_addr + fec_data->meshyi_oft; in rkispp_param_init_fecbuf() 158 __func__, i, params->buf_fec[i].dma_fd, ¶ms->buf_fec[i].dma_addr, in rkispp_param_init_fecbuf()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
D | params_v20.c | 34 dma_addr_t dma_addr; in fec_config() local 71 dma_addr = params_vdev->buf_fec[buf_idx].dma_addr; in fec_config() 72 val = dma_addr + fec_data->meshxf_oft; in fec_config() 74 val = dma_addr + fec_data->meshyf_oft; in fec_config() 76 val = dma_addr + fec_data->meshxi_oft; in fec_config() 78 val = dma_addr + fec_data->meshyi_oft; in fec_config()
|
D | params.c | 140 u32 val, dma_addr = params->buf_fec[i].dma_addr; in rkispp_param_init_fecbuf() local 142 val = dma_addr + fec_data->meshxf_oft; in rkispp_param_init_fecbuf() 144 val = dma_addr + fec_data->meshyf_oft; in rkispp_param_init_fecbuf() 146 val = dma_addr + fec_data->meshxi_oft; in rkispp_param_init_fecbuf() 148 val = dma_addr + fec_data->meshyi_oft; in rkispp_param_init_fecbuf() 153 …params->buf_fec[i].dma_fd, ¶ms->buf_fec[i].dma_addr, fec_data->meshxf_oft, fec_data->meshyf_of… in rkispp_param_init_fecbuf()
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/ |
D | params_v20.c | 35 dma_addr_t dma_addr; in fec_config() local 73 dma_addr = params_vdev->buf_fec[buf_idx].dma_addr; in fec_config() 74 val = dma_addr + fec_data->meshxf_oft; in fec_config() 76 val = dma_addr + fec_data->meshyf_oft; in fec_config() 78 val = dma_addr + fec_data->meshxi_oft; in fec_config() 80 val = dma_addr + fec_data->meshyi_oft; in fec_config()
|
D | params.c | 145 u32 val, dma_addr = params->buf_fec[i].dma_addr; in rkispp_param_init_fecbuf() local 147 val = dma_addr + fec_data->meshxf_oft; in rkispp_param_init_fecbuf() 149 val = dma_addr + fec_data->meshyf_oft; in rkispp_param_init_fecbuf() 151 val = dma_addr + fec_data->meshxi_oft; in rkispp_param_init_fecbuf() 153 val = dma_addr + fec_data->meshyi_oft; in rkispp_param_init_fecbuf() 158 __func__, i, params->buf_fec[i].dma_fd, ¶ms->buf_fec[i].dma_addr, in rkispp_param_init_fecbuf()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/parser/demux/hw_demux/ |
D | hwdemux_inject.c | 156 dma_addr_t dma_addr = 0; in _hwdmx_inject_write() local 166 dma_addr = in _hwdmx_inject_write() 171 dma_addr)) in _hwdmx_inject_write() 183 WRITE_PARSER_REG(PARSER_FETCH_ADDR, dma_addr); in _hwdmx_inject_write() 184 dma_unmap_single(hwdemux_get_dma_device(), dma_addr, in _hwdmx_inject_write()
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
D | common.c | 144 buf->dma_addr = sg_dma_address(sg_tbl->sgl); in rkisp_alloc_buffer() 147 buf->dma_addr = *((dma_addr_t *)g_ops->cookie(mem_priv)); in rkisp_alloc_buffer() 165 (u32)buf->dma_addr, (u32)buf->dma_addr + buf->size, buf->size); in rkisp_alloc_buffer() 180 (u32)buf->dma_addr, (u32)buf->dma_addr + buf->size); in rkisp_free_buffer() 277 dummy_buf->dma_addr = sg_dma_address(sg->sgl); in rkisp_alloc_page_dummy_buf() 282 (u32)dummy_buf->dma_addr, ret, size); in rkisp_alloc_page_dummy_buf() 350 (u32)dummy_buf->dma_addr, dummy_buf->size); in rkisp_alloc_common_dummy_buf()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
D | common.c | 146 buf->dma_addr = sg_dma_address(sg_tbl->sgl); in rkisp_alloc_buffer() 149 buf->dma_addr = *((dma_addr_t *)g_ops->cookie(mem_priv)); in rkisp_alloc_buffer() 166 …4l2_dbg(1, rkisp_debug, &dev->v4l2_dev, "%s buf:0x%x~0x%x size:%d\n", __func__, (u32)buf->dma_addr, in rkisp_alloc_buffer() 167 (u32)buf->dma_addr + buf->size, buf->size); in rkisp_alloc_buffer() 179 v4l2_dbg(1, rkisp_debug, &dev->v4l2_dev, "%s buf:0x%x~0x%x\n", __func__, (u32)buf->dma_addr, in rkisp_free_buffer() 180 (u32)buf->dma_addr + buf->size); in rkisp_free_buffer() 283 dummy_buf->dma_addr = sg_dma_address(sg->sgl); in rkisp_alloc_page_dummy_buf() 286 …kisp_debug, &dev->v4l2_dev, "%s buf:0x%x map cnt:%d size:%d\n", __func__, (u32)dummy_buf->dma_addr, in rkisp_alloc_page_dummy_buf() 357 …l2_dbg(1, rkisp_debug, &dev->v4l2_dev, "%s buf:0x%x size:%d\n", __func__, (u32)dummy_buf->dma_addr, in rkisp_alloc_common_dummy_buf()
|
/device/board/isoftstone/yangfan/kernel/src/driv/media/isp/ |
D | common.c | 144 buf->dma_addr = sg_dma_address(sg_tbl->sgl); in rkisp_alloc_buffer() 147 buf->dma_addr = *((dma_addr_t *)g_ops->cookie(mem_priv)); in rkisp_alloc_buffer() 165 (u32)buf->dma_addr, (u32)buf->dma_addr + buf->size, buf->size); in rkisp_alloc_buffer() 180 (u32)buf->dma_addr, (u32)buf->dma_addr + buf->size); in rkisp_free_buffer() 277 dummy_buf->dma_addr = sg_dma_address(sg->sgl); in rkisp_alloc_page_dummy_buf() 282 (u32)dummy_buf->dma_addr, ret, size); in rkisp_alloc_page_dummy_buf() 350 (u32)dummy_buf->dma_addr, dummy_buf->size); in rkisp_alloc_common_dummy_buf()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/vin-vipp/ |
D | vipp_reg.h | 191 void vipp_set_osd_para_load_addr(unsigned int id, unsigned long dma_addr); 193 void vipp_set_osd_stat_load_addr(unsigned int id, unsigned long dma_addr); 194 void vipp_set_osd_bm_load_addr(unsigned int id, unsigned long dma_addr); 195 void vipp_set_reg_load_addr(unsigned int id, unsigned long dma_addr);
|
/device/soc/chipsea/cst85/liteos_m/sdk/modules/wifi/macif/ |
D | rwnx_utils.h | 105 dma_addr_t dma_addr; member 134 dma_addr_t dma_addr; member 149 dma_addr_t dma_addr; member
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/ |
D | disp_private.c | 168 item->dma_addr = sg_dma_address(sgt->sgl); in disp_dma_map_core() 319 fb_addr[0] = fb->dma_addr; in disp_set_fb_info() 341 fb_addr[1] = fb->dma_addr + y_size; /* u */ in disp_set_fb_info() 342 fb_addr[2] = fb->dma_addr + y_size + u_size; /* v */ in disp_set_fb_info() 347 fb_addr[1] = fb->dma_addr + y_size + u_size; in disp_set_fb_info() 348 fb_addr[2] = fb->dma_addr + y_size; /* u */ in disp_set_fb_info() 355 fb_addr[0] = fb->dma_addr; in disp_set_fb_info() 356 fb_addr[1] = fb->dma_addr; in disp_set_fb_info() 357 fb_addr[2] = fb->dma_addr; in disp_set_fb_info()
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/vin-stat/ |
D | vin_h3a.c | 152 mm->dma_addr = buf->dma_addr; in isp_stat_bufs_free() 155 buf->dma_addr = NULL; in isp_stat_bufs_free() 198 buf->dma_addr = mm->dma_addr; in isp_stat_bufs_alloc() 200 if (!buf->virt_addr || !buf->dma_addr) { in isp_stat_bufs_alloc() 295 dma_addr_t dma_addr; in isp_stat_buf_process() local 304 dma_addr = (dma_addr_t)(stat->active_buf->dma_addr); in isp_stat_buf_process() 305 bsp_isp_set_statistics_addr(stat->isp->id, dma_addr); in isp_stat_buf_process()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/parser/ |
D | rmparser.c | 179 dma_addr_t dma_addr = 0; in _rmparser_write() local 186 dma_addr = in _rmparser_write() 190 if (dma_mapping_error(amports_get_dma_device(), dma_addr)) in _rmparser_write() 198 WRITE_PARSER_REG(PARSER_FETCH_ADDR, dma_addr); in _rmparser_write() 201 dma_unmap_single(amports_get_dma_device(), dma_addr, in _rmparser_write()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/ |
D | mali_kbase_mem_pool.c | 161 dma_addr_t dma_addr; in kbase_mem_alloc_page() local 181 dma_addr = dma_map_page(dev, p, 0, PAGE_SIZE, DMA_BIDIRECTIONAL); in kbase_mem_alloc_page() 182 if (dma_mapping_error(dev, dma_addr)) { in kbase_mem_alloc_page() 187 WARN_ON(dma_addr != page_to_phys(p)); in kbase_mem_alloc_page() 189 kbase_set_dma_addr(p, dma_addr); in kbase_mem_alloc_page() 198 dma_addr_t dma_addr = kbase_dma_addr(p); in kbase_mem_pool_free_page() local 200 dma_unmap_page(dev, dma_addr, PAGE_SIZE, DMA_BIDIRECTIONAL); in kbase_mem_pool_free_page()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/ |
D | mali_kbase_mem_pool.c | 150 dma_addr_t dma_addr; in kbase_mem_alloc_page() local 170 dma_addr = dma_map_page(dev, p, 0, PAGE_SIZE, DMA_BIDIRECTIONAL); in kbase_mem_alloc_page() 171 if (dma_mapping_error(dev, dma_addr)) { in kbase_mem_alloc_page() 176 WARN_ON(dma_addr != page_to_phys(p)); in kbase_mem_alloc_page() 178 kbase_set_dma_addr(p, dma_addr); in kbase_mem_alloc_page() 186 dma_addr_t dma_addr = kbase_dma_addr(p); in kbase_mem_pool_free_page() local 188 dma_unmap_page(dev, dma_addr, PAGE_SIZE, DMA_BIDIRECTIONAL); in kbase_mem_pool_free_page()
|