/device/soc/esp/esp32/components/soc/ |
D | memory_layout_utils.c | 59 return (int)r_a->start - (int)r_b->start; in s_compare_reserved_regions() 71 reserved[0].start = (intptr_t)layout->dram0_rtos_reserved_start; in s_prepare_reserved_regions() 89 reserved[i].start, reserved[i].end); in s_prepare_reserved_regions() 90 … reserved[i].start = reserved[i].start & ~3; /* expand all reserved areas to word boundaries */ in s_prepare_reserved_regions() 92 assert(reserved[i].start <= reserved[i].end); in s_prepare_reserved_regions() 94 assert(reserved[i + 1].start > reserved[i].start); in s_prepare_reserved_regions() 95 if (reserved[i].end > reserved[i + 1].start) { in s_prepare_reserved_regions() 98 reserved[i].start, reserved[i].end, reserved[i + 1].start, in s_prepare_reserved_regions() 126 … ESP_EARLY_LOGV(TAG, "Examining memory region 0x%08x - 0x%08x", in.start, in.start + in.size); in soc_get_available_memory_regions() 127 intptr_t in_start = in.start; in soc_get_available_memory_regions() [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/include/linux/amlogic/media/utils/ |
D | vdec_reg.h | 96 #define WRITE_VREG_BITS(r, val, start, len) \ argument 97 WRITE_VREG(r, (READ_VREG(r) & ~(((1L<<(len))-1)<<(start)))|\ 98 ((unsigned int)((val)&((1L<<(len))-1)) << (start))) 105 #define WRITE_HREG_BITS(r, val, start, len) \ argument 106 WRITE_HREG(r, (READ_HREG(r) & ~(((1L<<(len))-1)<<(start)))|\ 107 ((unsigned int)((val)&((1L<<(len))-1)) << (start))) 114 #define WRITE_SEC_REG_BITS(r, val, start, len) \ argument 115 WRITE_SEC_REG(r, (READ_SEC_REG(r) & ~(((1L<<(len))-1)<<(start)))|\ 116 ((unsigned int)((val)&((1L<<(len))-1)) << (start))) 120 #define WRITE_MPEG_REG_BITS(r, val, start, len) \ argument [all …]
|
/device/soc/esp/esp32/components/heap/ |
D | heap_caps_init.c | 32 size_t heap_size = region->end - region->start; in register_heap() 34 region->heap = multi_heap_register((void *)region->start, heap_size); in register_heap() 72 if (b->start == (intptr_t)(a->start + a->size) && b->type == a->type ) { in heap_caps_init() 74 b->start = a->start; in heap_caps_init() 106 heap->start = region->start; in heap_caps_init() 107 heap->end = region->start + region->size; in heap_caps_init() 118 region->start, region->size, region->size / 1024, type->name); in heap_caps_init() 155 esp_err_t heap_caps_add_region(intptr_t start, intptr_t end) in heap_caps_add_region() argument 157 if (start == 0) { in heap_caps_add_region() 164 if (region->start <= start && (intptr_t)(region->start + region->size) > start) { in heap_caps_add_region() [all …]
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
D | asn1write.h | 60 int mbedtls_asn1_write_len( unsigned char **p, unsigned char *start, 74 int mbedtls_asn1_write_tag( unsigned char **p, unsigned char *start, 90 int mbedtls_asn1_write_raw_buffer( unsigned char **p, unsigned char *start, 107 int mbedtls_asn1_write_mpi( unsigned char **p, unsigned char *start, 123 int mbedtls_asn1_write_null( unsigned char **p, unsigned char *start ); 139 int mbedtls_asn1_write_oid( unsigned char **p, unsigned char *start, 158 unsigned char *start, 175 int mbedtls_asn1_write_bool( unsigned char **p, unsigned char *start, 191 int mbedtls_asn1_write_int( unsigned char **p, unsigned char *start, int val ); 210 int mbedtls_asn1_write_tagged_string( unsigned char **p, unsigned char *start, [all …]
|
/device/soc/amlogic/a311d/soc/amlogic/ge2d/ |
D | ge2d_io.h | 117 static inline uint32_t ge2d_reg_get_bits(uint32_t reg, const uint32_t start, const uint32_t len) in ge2d_reg_get_bits() argument 121 val = (ge2d_reg_read(reg) >> (start)) & ((1L << (len)) - 1); in ge2d_reg_get_bits() 125 static inline void ge2d_reg_set_bits(uint32_t reg, const uint32_t value, const uint32_t start, cons… in ge2d_reg_set_bits() argument 128 … ((ge2d_reg_read(reg) & ~(((1L << (len)) - 1) << (start))) | (((value) & ((1L << (len)) - 1)) << (… in ge2d_reg_set_bits() 150 unsigned int start, unsigned int len) in ge2d_set_pwr_tbl_bits() argument 154 ge2d_c_setb(reg, val, start, len); in ge2d_set_pwr_tbl_bits() 157 ge2d_ao_setb(reg, val, start, len); in ge2d_set_pwr_tbl_bits() 160 ge2d_hiu_setb(reg, val, start, len); in ge2d_set_pwr_tbl_bits() 163 power_ctrl_sleep(val ? 0 : 1, start); in ge2d_set_pwr_tbl_bits() 166 power_ctrl_iso(val ? 0 : 1, start); in ge2d_set_pwr_tbl_bits() [all …]
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/mmz/ |
D | hisi_allocator.c | 68 unsigned long start; in find_fixed_region() local 80 start = mmz_align2(mmz->phys_start, align); in find_fixed_region() 93 blank_len = p->phys_addr - start; in find_fixed_region() 96 fixed_start = start; in find_fixed_region() 101 start = mmz_align2((p->phys_addr + p->length), align); in find_fixed_region() 105 blank_len = mmz->phys_start + mmz->nbytes - start; in find_fixed_region() 108 fixed_start = start; in find_fixed_region() 123 if ((start + len) > next->phys_addr) { in find_fixed_region() 125 start, len, next->phys_addr); in find_fixed_region() 128 blank_len = next->phys_addr - start; in find_fixed_region() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
D | mali_memory_virtual.c | 42 if (node->vm_node.start < iter_node->vm_node.start) { in _mali_vma_offset_add_rb() 44 } else if (node->vm_node.start > iter_node->vm_node.start) { in _mali_vma_offset_add_rb() 93 …uct mali_vma_node *mali_vma_offset_search(struct mali_allocation_manager *mgr, unsigned long start, in mali_vma_offset_search() argument 106 offset = node->vm_node.start; in mali_vma_offset_search() 107 if (start >= offset) { in mali_vma_offset_search() 110 if (start == offset) { in mali_vma_offset_search() 119 offset = best->vm_node.start + best->vm_node.size; in mali_vma_offset_search() 120 if (offset <= start + pages) { in mali_vma_offset_search()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/ |
D | mali_memory_virtual.c | 42 if (node->vm_node.start < iter_node->vm_node.start) in _mali_vma_offset_add_rb() 44 else if (node->vm_node.start > iter_node->vm_node.start) in _mali_vma_offset_add_rb() 95 unsigned long start, unsigned long pages) in mali_vma_offset_search() argument 107 offset = node->vm_node.start; in mali_vma_offset_search() 108 if (start >= offset) { in mali_vma_offset_search() 111 if (start == offset) in mali_vma_offset_search() 119 offset = best->vm_node.start + best->vm_node.size; in mali_vma_offset_search() 120 if (offset <= start + pages) in mali_vma_offset_search()
|
/device/soc/esp/esp32/components/spi_flash/ |
D | flash_mmap.c | 194 int start; in spi_flash_mmap_pages() local 198 for (start = region_begin; start < end; ++start) { in spi_flash_mmap_pages() 202 for (pos = start; pos < start + page_count; ++pos, ++pageno) { in spi_flash_mmap_pages() 211 if (pos - start == page_count) { in spi_flash_mmap_pages() 216 if (start == end) { in spi_flash_mmap_pages() 222 for (int i = start; i != start + page_count; ++i, ++pageno) { in spi_flash_mmap_pages() 255 new_entry->page = start; in spi_flash_mmap_pages() 259 temp_ptr = (void*) (region_addr + (start - region_begin) * SPI_FLASH_MMU_PAGE_SIZE); in spi_flash_mmap_pages() 415 int start, end, page_delta; in spi_flash_phys2cache() local 419 start = SOC_MMU_DROM0_PAGES_START; in spi_flash_phys2cache() [all …]
|
D | esp_flash_api.c | 80 esp_err_t (*start)(esp_flash_t *chip); member 89 .start = spiflash_start_default, 109 if (chip->os_func != NULL && chip->os_func->start != NULL) { in spiflash_start_default() 110 esp_err_t err = chip->os_func->start(chip->os_func_data); in spiflash_start_default() 151 esp_err_t acquire_err = rom_spiflash_api_funcs->start(chip); in flash_end_flush_cache() 219 err = rom_spiflash_api_funcs->start(chip); in esp_flash_init() 239 esp_err_t err = rom_spiflash_api_funcs->start(chip); in read_id_core() 302 err = rom_spiflash_api_funcs->start(chip); in detect_spi_flash_chip() 353 err = rom_spiflash_api_funcs->start(chip); in esp_flash_get_size() 379 err = rom_spiflash_api_funcs->start(chip); in esp_flash_erase_chip() [all …]
|
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6750/ |
D | hpm_sysctl_drv.c | 40 uint8_t start, in _sysctl_cpu_get_gpr() argument 47 || !count || start > size || count > size in _sysctl_cpu_get_gpr() 48 || (start + count) > size) { in _sysctl_cpu_get_gpr() 52 *(data + i) = ptr->CPU[cpu].GPR[start + i]; in _sysctl_cpu_get_gpr() 58 uint8_t start, in sysctl_cpu0_get_gpr() argument 62 return _sysctl_cpu_get_gpr(ptr, 0, start, count, data); in sysctl_cpu0_get_gpr() 66 uint8_t start, in sysctl_cpu1_get_gpr() argument 70 return _sysctl_cpu_get_gpr(ptr, 1, start, count, data); in sysctl_cpu1_get_gpr() 75 uint8_t start, in _sysctl_cpu_set_gpr() argument 82 || !count || start > size || count > size in _sysctl_cpu_set_gpr() [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/src/platform/ |
D | system_profiler.c | 31 uint64_t time_diff( struct timespec start, struct timespec end ) in time_diff() argument 34 if ( ( end.tv_nsec - start.tv_nsec ) < 0 ) { in time_diff() 35 temp.tv_sec = end.tv_sec - start.tv_sec - 1; in time_diff() 36 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in time_diff() 38 temp.tv_sec = end.tv_sec - start.tv_sec; in time_diff() 39 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in time_diff()
|
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6360/ |
D | hpm_sysctl_drv.c | 36 static hpm_stat_t _sysctl_cpu_get_gpr(SYSCTL_Type *ptr, uint8_t cpu, uint8_t start, uint8_t count, … in _sysctl_cpu_get_gpr() argument 39 if (!sysctl_valid_cpu_index(cpu) || (data == NULL) || !count || start > size || count > size || in _sysctl_cpu_get_gpr() 40 (start + count) > size) { in _sysctl_cpu_get_gpr() 44 *(data + i) = ptr->CPU[cpu].GPR[start + i]; in _sysctl_cpu_get_gpr() 49 hpm_stat_t sysctl_cpu0_get_gpr(SYSCTL_Type *ptr, uint8_t start, uint8_t count, uint32_t *data) in sysctl_cpu0_get_gpr() argument 51 return _sysctl_cpu_get_gpr(ptr, 0, start, count, data); in sysctl_cpu0_get_gpr() 54 hpm_stat_t sysctl_cpu1_get_gpr(SYSCTL_Type *ptr, uint8_t start, uint8_t count, uint32_t *data) in sysctl_cpu1_get_gpr() argument 56 return _sysctl_cpu_get_gpr(ptr, 1, start, count, data); in sysctl_cpu1_get_gpr() 59 static hpm_stat_t _sysctl_cpu_set_gpr(SYSCTL_Type *ptr, uint8_t cpu, uint8_t start, uint8_t count, … in _sysctl_cpu_set_gpr() argument 62 if (!sysctl_valid_cpu_index(cpu) || (data == NULL) || !count || start > size || count > size || in _sysctl_cpu_set_gpr() [all …]
|
/device/board/hpmicro/hpm6750evk2/liteos_m/littlefs/ |
D | hpm_littlefs_drv.c | 98 uint32_t start = 0; in SelfTest() local 112 for (start = 0; start < testSize; start += wsetp) { in SelfTest() 113 offset = ctx->startOffset + block * cfg->blockSize + start; in SelfTest() 114 HpmLittlefsProg(cfg->partNo, (UINT32 *)&offset, (const void *)(wbuf + start), wsetp); in SelfTest() 117 for (start = 0; start < testSize; start += rsetp) { in SelfTest() 118 offset = ctx->startOffset + block * cfg->blockSize + start; in SelfTest() 119 HpmLittlefsRead(cfg->partNo, (UINT32 *)&offset, (void *)(rbuf + start), rsetp); in SelfTest()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/hal/phydm/ |
D | phydm_mp.c | 41 u8 start = RF_PATH_A, end = RF_PATH_A; in phydm_mp_set_single_tone_jgr3() local 51 start = path; in phydm_mp_set_single_tone_jgr3() 55 start = RF_PATH_A; in phydm_mp_set_single_tone_jgr3() 60 start = RF_PATH_A; in phydm_mp_set_single_tone_jgr3() 64 start = RF_PATH_A; in phydm_mp_set_single_tone_jgr3() 68 start = RF_PATH_B; in phydm_mp_set_single_tone_jgr3() 72 start = RF_PATH_B; in phydm_mp_set_single_tone_jgr3() 76 start = RF_PATH_C; in phydm_mp_set_single_tone_jgr3() 80 start = RF_PATH_A; in phydm_mp_set_single_tone_jgr3() 84 start = RF_PATH_A; in phydm_mp_set_single_tone_jgr3() [all …]
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/ |
D | drv_hash_v100.c | 152 sha_start start; in drv_hash_mhash_non_support_sha_start() local 165 start.u32 = hash_read(REG_START); in drv_hash_mhash_non_support_sha_start() 166 start.bits.sha_start = 0x01; in drv_hash_mhash_non_support_sha_start() 167 hash_write(REG_START, start.u32); in drv_hash_mhash_non_support_sha_start() 168 hi_log_info("REG_START: 0x%x\n", start.u32); in drv_hash_mhash_non_support_sha_start() 238 sha_start start; in drv_hash_start() local 254 start.u32 = hash_read(REG_START); in drv_hash_start() 255 start.bits.sha_start = 0x01; in drv_hash_start() 256 hash_write(REG_START, start.u32); in drv_hash_start() 257 hi_log_info("REG_START: 0x%x\n", start.u32); in drv_hash_start()
|
/device/soc/telink/b91/adapter/hals/update/ |
D | hal_hota_board.c | 118 unsigned int start = in HotaHalRead() local 121 unsigned int end = start + bufLen; in HotaHalRead() 122 if ((start > g_ota_state.first_invalid_byte) || (end > g_ota_state.first_invalid_byte)) { in HotaHalRead() 123 printf("ERROR: Exceed flash size start: %u end: %u\r\n", start, end); in HotaHalRead() 128 flash_read_page(start, bufLen, buffer); in HotaHalRead() 148 unsigned int start = in HotaHalWrite() local 154 OtaPartitionClear(start & (~(OTA_PARTITION_SIZE - 1))); in HotaHalWrite() 157 unsigned int end = start + bufLen; in HotaHalWrite() 158 if ((start > g_ota_state.first_invalid_byte) || (end > g_ota_state.first_invalid_byte)) { in HotaHalWrite() 159 printf("ERROR: Exceed flash size start: %u end: %u\r\n", start, end); in HotaHalWrite() [all …]
|
/device/soc/rockchip/rk3588/hardware/codec/jpeg/src/ |
D | codec_jpeg_helper.cpp | 88 int8_t *start = buffer; in DessambleJpeg() local 90 while (start < end) { in DessambleJpeg() 91 JpegMarker marker = (JpegMarker)FindMarker(start); in DessambleJpeg() 92 start += 2; // 2: marker len in DessambleJpeg() 98 start += DessambleSof(start, decInfo); in DessambleJpeg() 101 start += DessambleDht(start, decInfo); in DessambleJpeg() 104 start += DessambleSos(start, decInfo); in DessambleJpeg() 106 auto len = DessambleCompressData(start, compressBuffer, comBufLen); in DessambleJpeg() 111 start += len; in DessambleJpeg() 116 start += DessambleDqt(start, decInfo); in DessambleJpeg() [all …]
|
/device/soc/rockchip/rk3568/hardware/codec/jpeg/src/ |
D | codec_jpeg_helper.cpp | 88 int8_t *start = buffer; in DessambleJpeg() local 90 while (start < end) { in DessambleJpeg() 91 JpegMarker marker = (JpegMarker)FindMarker(start); in DessambleJpeg() 92 start += 2; // 2: marker len in DessambleJpeg() 98 start += DessambleSof(start, decInfo); in DessambleJpeg() 101 start += DessambleDht(start, decInfo); in DessambleJpeg() 104 start += DessambleSos(start, decInfo); in DessambleJpeg() 106 auto len = DessambleCompressData(start, compressBuffer, comBufLen); in DessambleJpeg() 111 start += len; in DessambleJpeg() 116 start += DessambleDqt(start, decInfo); in DessambleJpeg() [all …]
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/debug/ |
D | mali_kbase_debug_ktrace.c | 209 u32 start; in kbasep_ktrace_dump() local 217 start = kbdev->ktrace.first_out; in kbasep_ktrace_dump() 220 while (start != end) { in kbasep_ktrace_dump() 221 struct kbase_ktrace_msg *trace_msg = &kbdev->ktrace.rbuf[start]; in kbasep_ktrace_dump() 225 start = (start + 1) & KBASE_KTRACE_MASK; in kbasep_ktrace_dump() 237 u32 start; member 254 i = state->start + *pos; in kbasep_ktrace_seq_start() 255 if ((state->end >= state->start && i >= state->end) || i >= state->end + KBASE_KTRACE_SIZE) { in kbasep_ktrace_seq_start() 277 i = (state->start + *pos) & KBASE_KTRACE_MASK; in kbasep_ktrace_seq_next() 302 .start = kbasep_ktrace_seq_start, [all …]
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/debug/ |
D | mali_kbase_debug_ktrace.c | 218 u32 start; in kbasep_ktrace_dump() local 226 start = kbdev->ktrace.first_out; in kbasep_ktrace_dump() 229 while (start != end) { in kbasep_ktrace_dump() 230 struct kbase_ktrace_msg *trace_msg = &kbdev->ktrace.rbuf[start]; in kbasep_ktrace_dump() 234 start = (start + 1) & KBASE_KTRACE_MASK; in kbasep_ktrace_dump() 246 u32 start; member 261 i = state->start + *pos; in kbasep_ktrace_seq_start() 262 if ((state->end >= state->start && i >= state->end) || in kbasep_ktrace_seq_start() 283 i = (state->start + *pos) & KBASE_KTRACE_MASK; in kbasep_ktrace_seq_next() 306 .start = kbasep_ktrace_seq_start, [all …]
|
/device/board/isoftstone/yangfan/common/seetafaceengine/opencv2/3rdparty/carotene/hal/ |
D | tegra_hal.hpp | 51 …const_cast<char *>(reinterpret_cast<const char *>(base)) + static_cast<size_t>(range.start) * step) 99 CAROTENE_NS::func(CAROTENE_NS::Size2D(width, range.end-range.start), __VA_ARGS__); \ 877 CAROTENE_NS::func(CAROTENE_NS::Size2D(range.end-range.start, 1), __VA_ARGS__); \ 915 …Op_Invoker(split2, split2, 1, 2, 0, RANGE_DATA(ST, src1_data, 2*sizeof(ST)), range.end-range.start, 916 … RANGE_DATA(DT, dst1_data, sizeof(DT)), range.end-range.start, 917 … RANGE_DATA(DT, dst2_data, sizeof(DT)), range.end-range.start) 918 …Op_Invoker(split3, split3, 1, 3, 0, RANGE_DATA(ST, src1_data, 3*sizeof(ST)), range.end-range.start, 919 … RANGE_DATA(DT, dst1_data, sizeof(DT)), range.end-range.start, 920 … RANGE_DATA(DT, dst2_data, sizeof(DT)), range.end-range.start, 921 … RANGE_DATA(DT, dst3_data, sizeof(DT)), range.end-range.start) [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/ |
D | rga_dma_buf.c | 56 unsigned long start, end; in rga_buf_size_cal() local 70 start = yrgb_addr >> PAGE_SHIFT; in rga_buf_size_cal() 73 pageCount = end - start; in rga_buf_size_cal() 79 start = yrgb_addr >> PAGE_SHIFT; in rga_buf_size_cal() 82 pageCount = end - start; in rga_buf_size_cal() 96 start = yrgb_addr >> PAGE_SHIFT; in rga_buf_size_cal() 99 pageCount = end - start; in rga_buf_size_cal() 108 start = min(yrgb_addr, uv_addr); in rga_buf_size_cal() 109 start >>= PAGE_SHIFT; in rga_buf_size_cal() 112 pageCount = end - start; in rga_buf_size_cal() [all …]
|
/device/soc/esp/esp32/components/spi_flash/sim/ |
D | SpiFlash.cpp | 165 int start = 0; in write() local 173 start = dest_addr / this->get_sector_size(); in write() 174 end = size > 0 ? (dest_addr + size - 1) / this->get_sector_size() : start; in write() 176 for (int i = start; i <= end; i++) { in write() 203 int start = 0; in read() local 211 start = src_addr / this->get_sector_size(); in read() 212 end = size > 0 ? (src_addr + size - 1) / this->get_sector_size() : start; in read() 214 for (int i = start; i <= end; i++) { in read()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
D | mali_kbase_platform_fake.c | 59 linux_resources[0].start = io_resources->io_memory_region.start; in kbasep_config_parse_io_resources() 63 linux_resources[1].start = io_resources->job_irq_number; in kbasep_config_parse_io_resources() 67 linux_resources[2].start = io_resources->mmu_irq_number; in kbasep_config_parse_io_resources() 71 linux_resources[3].start = io_resources->gpu_irq_number; in kbasep_config_parse_io_resources()
|