/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/partition_table/ |
H A D | flash_partition_table.c | 52 #define PRODUCT_CFG_DEFAULT_FACTORY_BIN_SIZE 0x96000 /* factory bin size */ 70 table->table[HI_FLASH_PARTITON_BOOT].size = PRODUCT_CFG_DEFAULT_BOOT_SIZE; in hi_flash_partition_init() 72 table->table[HI_FLASH_PARTITON_FACTORY_NV].size = PRODUCT_CFG_DEFAULT_FNV_SIZE; in hi_flash_partition_init() 74 table->table[HI_FLASH_PARTITON_NORMAL_NV].size = PRODUCT_CFG_DEFAULT_NORMAL_NV_SIZE; in hi_flash_partition_init() 76 table->table[HI_FLASH_PARTITON_NORMAL_NV_BACKUP].size = PRODUCT_CFG_DEFAULT_NORMAL_NV_BACKUP_SIZE; in hi_flash_partition_init() 78 table->table[HI_FLASH_PARTITON_KERNEL_A].size = PRODUCT_CFG_DEFAULT_KERNEL_A_SIZE; in hi_flash_partition_init() 80 table->table[HI_FLASH_PARTITON_KERNEL_B].size = PRODUCT_CFG_DEFAULT_KERNEL_B_SIZE; in hi_flash_partition_init() 82 table->table[HI_FLASH_PARTITON_HILINK].size = PRODUCT_CFG_DEFAULT_HILINK_SIZE; in hi_flash_partition_init() 84 table->table[HI_FLASH_PARTITON_FILE_SYSTEM].size = PRODUCT_CFG_DEFAULT_FILE_SYSTEM_SIZE; in hi_flash_partition_init() 86 table->table[HI_FLASH_PARTITON_USR_RESERVE].size in hi_flash_partition_init() 100 hi_get_hilink_partition_table(hi_u32 *addr, hi_u32 *size) hi_get_hilink_partition_table() argument 113 hi_get_hilink_pki_partition_table(hi_u32 *addr, hi_u32 *size) hi_get_hilink_pki_partition_table() argument 126 hi_get_crash_partition_table(hi_u32 *addr, hi_u32 *size) hi_get_crash_partition_table() argument 139 hi_get_fs_partition_table(hi_u32 *addr, hi_u32 *size) hi_get_fs_partition_table() argument 152 hi_get_normal_nv_partition_table(hi_u32 *addr, hi_u32 *size) hi_get_normal_nv_partition_table() argument 165 hi_get_normal_nv_backup_partition_table(hi_u32 *addr, hi_u32 *size) hi_get_normal_nv_backup_partition_table() argument 178 hi_get_usr_partition_table(hi_u32 *addr, hi_u32 *size) hi_get_usr_partition_table() argument 191 hi_get_factory_bin_partition_table(hi_u32 *addr, hi_u32 *size) hi_get_factory_bin_partition_table() argument [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/drivers/efuse/ |
H A D | efuse.c | 18 hi_u32 efuse_start_addr_unaligned_read(hi_u16 start_bit, hi_u16 size, hi_u8 diff_head_read, hi_u8 *data) in efuse_start_addr_unaligned_read() argument 20 if (size == SIZE_8_BITS) { in efuse_start_addr_unaligned_read() 21 if (efuse_read_bits(start_bit, size, data) != HI_ERR_SUCCESS) { in efuse_start_addr_unaligned_read() 26 } else if (size == SIZE_16_BITS) { in efuse_start_addr_unaligned_read() 28 if (efuse_read_bits(start_bit, size, (hi_u8 *)&tmp_data) != HI_ERR_SUCCESS) { in efuse_start_addr_unaligned_read() 38 } else if (size == SIZE_24_BITS) { in efuse_start_addr_unaligned_read() 49 } else if (size == SIZE_72_BITS) { in efuse_start_addr_unaligned_read() 72 hi_u32 efuse_bits_read(hi_u16 start_bit, hi_u16 size, hi_u8 *data, hi_u32 data_len) in efuse_bits_read() argument 81 origine_size = size; in efuse_bits_read() 85 size in efuse_bits_read() 120 hi_u16 size = 0; hi_efuse_read() local 146 hi_u16 size = 0; hi_efuse_write() local 181 efuse_bits_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data) efuse_bits_write() argument 210 hi_u16 size = EFUSE_LOCK_SIZE; hi_efuse_get_lockstat() local [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_mem_validation.c | 19 u32 size; /**< size in bytes of the memory, multiple of page size */ member 24 _mali_osk_errcode_t mali_mem_validation_add_range(u32 start, u32 size) in mali_mem_validation_add_range() argument 34 (0 != (size & (~_MALI_OSK_CPU_PAGE_MASK)))) { in mali_mem_validation_add_range() 40 mali_mem_validator.size = size; in mali_mem_validation_add_range() 41 MALI_DEBUG_PRINT(2, ("Memory Validator installed for Mali physical address base=0x%08X, size=0x%08X\n", in mali_mem_validation_add_range() 42 mali_mem_validator.phys_base, mali_mem_validator.size)); in mali_mem_validation_add_range() 47 _mali_osk_errcode_t mali_mem_validation_check(u32 phys_addr, u32 size) in mali_mem_validation_check() argument [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/drivers/efuse/ |
H A D | efuse.c | 19 hi_u32 efuse_start_addr_unaligned_read(hi_u16 start_bit, hi_u16 size, hi_u8 diff_head_read, hi_u8 *data) in efuse_start_addr_unaligned_read() argument 24 if (size == SIZE_8_BITS) { in efuse_start_addr_unaligned_read() 25 ret = efuse_read_bits(start_bit, size, data); in efuse_start_addr_unaligned_read() 29 } else if (size == SIZE_16_BITS) { in efuse_start_addr_unaligned_read() 31 ret = efuse_read_bits(start_bit, size, (hi_u8 *)&tmp_data); in efuse_start_addr_unaligned_read() 40 } else if (size == SIZE_24_BITS) { in efuse_start_addr_unaligned_read() 50 } else if (size == SIZE_72_BITS) { in efuse_start_addr_unaligned_read() 69 hi_u32 efuse_bits_read(hi_u16 start_bit, hi_u16 size, hi_u8 *data, hi_u32 data_len) in efuse_bits_read() argument 78 origine_size = size; in efuse_bits_read() 83 size in efuse_bits_read() 118 hi_u16 size = 0; hi_efuse_read() local 144 hi_u16 size = 0; hi_efuse_write() local 209 hi_u16 size = EFUSE_LOCK_SIZE; hi_efuse_get_lockstat() local 251 hi_efuse_usr_read(hi_u16 start_bit, hi_u16 size, hi_u8 *key_data) hi_efuse_usr_read() argument 271 hi_efuse_usr_write(hi_u16 start_bit, hi_u16 size, const hi_u8 *key_data) hi_efuse_usr_write() argument [all...] |
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | dma-map-ops.h | 16 void *(*alloc)(struct device *dev, size_t size, dma_addr_t *dma_handle, 18 void (*free)(struct device *dev, size_t size, void *vaddr, 20 struct page *(*alloc_pages)(struct device *dev, size_t size, 23 void (*free_pages)(struct device *dev, size_t size, struct page *vaddr, 25 void *(*alloc_noncoherent)(struct device *dev, size_t size, 28 void (*free_noncoherent)(struct device *dev, size_t size, void *vaddr, 35 dma_addr_t dma_addr, size_t size, unsigned long attrs); 38 unsigned long offset, size_t size, 40 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle, size_t size, 51 size_t size, enu 136 dma_contiguous_reserve_area(phys_addr_t size, phys_addr_t base, phys_addr_t limit, struct cma **res_cma, bool fixed) dma_contiguous_reserve_area() argument 156 dma_alloc_contiguous(struct device *dev, size_t size, gfp_t gfp) dma_alloc_contiguous() argument 161 dma_free_contiguous(struct device *dev, struct page *page, size_t size) dma_free_contiguous() argument 192 dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, dma_addr_t device_addr, size_t size) dma_declare_coherent_memory() argument 203 dma_alloc_from_global_coherent(struct device *dev, ssize_t size, dma_addr_t *dma_handle) dma_alloc_from_global_coherent() argument 213 dma_mmap_from_global_coherent(struct vm_area_struct *vma, void *cpu_addr, size_t size, int *ret) dma_mmap_from_global_coherent() argument 299 arch_sync_dma_for_device(phys_addr_t paddr, size_t size, enum dma_data_direction dir) arch_sync_dma_for_device() argument 309 arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, enum dma_data_direction dir) arch_sync_dma_for_cpu() argument 326 arch_dma_prep_coherent(struct page *page, size_t size) arch_dma_prep_coherent() argument 334 arch_dma_mark_clean(phys_addr_t paddr, size_t size) arch_dma_mark_clean() argument 346 arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, const struct iommu_ops *iommu, bool coherent) arch_setup_dma_ops() argument [all...] |
H A D | memblock.h | 49 * @size: size of the region 55 phys_addr_t size; member 65 * @max: size of the allocated array 66 * @total_size: size of all regions 106 phys_addr_t memblock_find_in_range(phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align); 108 int memblock_add_node(phys_addr_t base, phys_addr_t size, int nid); 109 int memblock_add(phys_addr_t base, phys_addr_t size); 110 int memblock_remove(phys_addr_t base, phys_addr_t size); 111 int memblock_free(phys_addr_t base, phys_addr_t size); 362 memblock_phys_alloc(phys_addr_t size, phys_addr_t align) memblock_phys_alloc() argument 373 memblock_alloc(phys_addr_t size, phys_addr_t align) memblock_alloc() argument 378 memblock_alloc_raw(phys_addr_t size, phys_addr_t align) memblock_alloc_raw() argument 383 memblock_alloc_from(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr) memblock_alloc_from() argument 388 memblock_alloc_low(phys_addr_t size, phys_addr_t align) memblock_alloc_low() argument 393 memblock_alloc_node(phys_addr_t size, phys_addr_t align, int nid) memblock_alloc_node() argument 398 memblock_free_early(phys_addr_t base, phys_addr_t size) memblock_free_early() argument 403 memblock_free_early_nid(phys_addr_t base, phys_addr_t size, int nid) memblock_free_early_nid() argument 408 memblock_free_late(phys_addr_t base, phys_addr_t size) memblock_free_late() argument [all...] |
H A D | dma-mapping.h | 118 dma_addr_t dma_map_page_attrs(struct device *dev, struct page *page, size_t offset, size_t size, 120 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, 126 dma_addr_t dma_map_resource(struct device *dev, phys_addr_t phys_addr, size_t size, enum dma_data_direction dir, 128 void dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, 130 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir); 131 void dma_sync_single_for_device(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir); 134 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, unsigned long attrs); 135 void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs); 136 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs); 137 void dmam_free_coherent(struct device *dev, size_t size, voi 151 dma_map_page_attrs(struct device *dev, struct page *page, size_t offset, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_page_attrs() argument 156 dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_page_attrs() argument 169 dma_map_resource(struct device *dev, phys_addr_t phys_addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_resource() argument 174 dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_resource() argument 178 dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) dma_sync_single_for_cpu() argument 182 dma_sync_single_for_device(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) dma_sync_single_for_device() argument 198 dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, unsigned long attrs) dma_alloc_attrs() argument 203 dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs) dma_free_attrs() argument 206 dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) dmam_alloc_attrs() argument 211 dmam_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle) dmam_free_coherent() argument 214 dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) dma_get_sgtable_attrs() argument 219 dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) dma_mmap_attrs() argument 267 dma_map_single_attrs(struct device *dev, void *ptr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_single_attrs() argument 278 dma_unmap_single_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_single_attrs() argument 284 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t addr, unsigned long offset, size_t size, enum dma_data_direction dir) dma_sync_single_range_for_cpu() argument 290 dma_sync_single_range_for_device(struct device *dev, dma_addr_t addr, unsigned long offset, size_t size, enum dma_data_direction dir) dma_sync_single_range_for_device() argument 384 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) dma_alloc_coherent() argument 389 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle) dma_free_coherent() argument 448 dma_set_max_seg_size(struct device *dev, unsigned int size) dma_set_max_seg_size() argument 518 dmam_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) dmam_alloc_coherent() argument 523 dma_alloc_wc(struct device *dev, size_t size, dma_addr_t *dma_addr, gfp_t gfp) dma_alloc_wc() argument 534 dma_free_wc(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_addr) dma_free_wc() argument 539 dma_mmap_wc(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size) dma_mmap_wc() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/ |
H A D | osal_addr.c | 36 void *osal_ioremap(unsigned long phys_addr, unsigned long size) in osal_ioremap() argument 38 return ioremap(phys_addr, size); in osal_ioremap() 42 void *osal_ioremap_nocache(unsigned long phys_addr, unsigned long size) in osal_ioremap_nocache() argument 45 return ioremap(phys_addr, size); in osal_ioremap_nocache() 47 return ioremap_nocache(phys_addr, size); in osal_ioremap_nocache() 52 void *osal_ioremap_cached(unsigned long phys_addr, unsigned long size) in osal_ioremap_cached() argument 55 return ioremap_cached(phys_addr, size); in osal_ioremap_cached() 57 return ioremap_cache(phys_addr, size); in osal_ioremap_cached() 61 void *osal_ioremap_wc(unsigned long phys_addr, unsigned long size) in osal_ioremap_wc() argument 63 return ioremap_wc(phys_addr, size); in osal_ioremap_wc() 69 osal_iounmap(void *addr, unsigned long size) osal_iounmap() argument 87 osal_access_ok(int type, const void *addr, unsigned long size) osal_access_ok() argument [all...] |
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/ |
H A D | rk_list.cpp | 38 RK_S32 size; member 46 static inline void list_node_init_with_key_and_size(rk_list_node *node, RK_U32 key, RK_S32 size) in list_node_init_with_key_and_size() argument 50 node->size = size; in list_node_init_with_key_and_size() 53 static rk_list_node* create_list(void *data, RK_S32 size, RK_U32 key) in create_list() argument 55 rk_list_node *node = (rk_list_node*)malloc(sizeof(rk_list_node) + size); in create_list() 58 list_node_init_with_key_and_size(node, key, size); in create_list() 59 if (memcpy_s(dst, size, data, size) != EOK) { in create_list() 86 RK_S32 rk_list::add_at_head(void *data, RK_S32 size) in add_at_head() argument 104 add_at_tail(void *data, RK_S32 size) add_at_tail() argument 122 release_list(rk_list_node*node, void *data, RK_S32 size) release_list() argument 151 _list_del_node_no_lock(rk_list_node *node, void *data, RK_S32 size) _list_del_node_no_lock() argument 157 del_at_head(void *data, RK_S32 size) del_at_head() argument 170 del_at_tail(void *data, RK_S32 size) del_at_tail() argument 199 add_by_key(void *data, RK_S32 size, RK_U32 *key) add_by_key() argument 208 del_by_key(void *data, RK_S32 size, RK_U32 key) del_by_key() argument [all...] |
H A D | vpu_mem_legacy.c | 36 commit_memory_handle(vpu_display_mem_pool *p, RK_S32 mem_hdl, RK_S32 size) in commit_memory_handle() argument 41 HDF_LOGD("in pool %p hnl %p size %d", p, mem_hdl, size); in commit_memory_handle() 45 info.size = size & 0x07ffffff; in commit_memory_handle() 46 info.index = (size & 0xf8000000) >> 27; // 27 bit in commit_memory_handle() 48 p_mempool->size = size; in commit_memory_handle() 49 p_mempool->buff_size = size; in commit_memory_handle() 66 ret = (*(mRKMppApi.HdiMppBufferGetWithTag))(p_mempool->group, &buffer, p_mempool->size, MODULE_TA in get_free_memory_vpumem() 163 create_vpu_memory_pool_allocator(vpu_display_mem_pool **ipool, int num, int size) create_vpu_memory_pool_allocator() argument 225 VPUMallocLinear(VPUMemLinear_t *p, RK_U32 size) VPUMallocLinear() argument 240 VPUMallocLinearFromRender(VPUMemLinear_t *p, RK_U32 size, void *ctx) VPUMallocLinearFromRender() argument [all...] |
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/ |
H A D | osal_addr.c | 85 void *osal_kmalloc(unsigned int module_id, unsigned long size, unsigned int osal_gfp_flag) in osal_kmalloc() argument 97 return kmalloc(size, gfp_flag); in osal_kmalloc() 117 void *osal_vmalloc(unsigned int module_id, unsigned long size) in osal_vmalloc() argument 127 return vmalloc(size); in osal_vmalloc() 149 void *osal_ioremap(unsigned long phys_addr, unsigned long size) in osal_ioremap() argument 151 return ioremap(phys_addr, size); in osal_ioremap() 155 void *osal_ioremap_nocache(unsigned long phys_addr, unsigned long size) in osal_ioremap_nocache() argument 158 return ioremap(phys_addr, size); in osal_ioremap_nocache() 160 return ioremap_nocache(phys_addr, size); in osal_ioremap_nocache() 165 void *osal_ioremap_cached(unsigned long phys_addr, unsigned long size) in osal_ioremap_cached() argument 193 osal_access_ok(int type, const void *addr, unsigned long size) osal_access_ok() argument 220 osal_blockmem_vmap(unsigned long phys_addr, unsigned long size) osal_blockmem_vmap() argument 280 osal_blockmem_free(unsigned long phys_addr, unsigned long size) osal_blockmem_free() argument [all...] |
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/include/ |
H A D | osal_ioctl.h | 7 * size of the parameter structure in the lower 14 bits of the 9 * Encoding the size of the parameter structure in the ioctl request 13 * NOTE: This limits the max parameter size to 16kB -1 ! 65 #define _IOC(dir, type, nr, size) \ 69 ((size) << _IOC_SIZESHIFT)) 75 /* provoke compile error for invalid uses of size argument */ 87 #define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size))) 88 #define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size))) [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/ |
H A D | ump_osk_low_level_mem.c | 114 args.size = descriptor->size; in ump_vma_close() 190 _mali_osk_errcode_t _ump_osk_mem_mapregion_map(ump_memory_allocation *descriptor, u32 offset, u32 *phys_addr, unsigned long size) in _ump_osk_mem_mapregion_map() argument 201 retval = remap_pfn_range(vma, ((u32)descriptor->mapping) + offset, (*phys_addr) >> PAGE_SHIFT, size, vma->vm_page_prot) ? _MALI_OSK_ERR_FAULT : _MALI_OSK_ERR_OK;; in _ump_osk_mem_mapregion_map() 203 DBG_MSG(4, ("Mapping virtual to physical memory. ID: %u, vma: 0x%08lx, virtual addr:0x%08lx, physical addr: 0x%08lx, size:%lu, prot:0x%x, vm_flags:0x%x RETVAL: 0x%x\n", in _ump_osk_mem_mapregion_map() 208 size, in _ump_osk_mem_mapregion_map() 220 void _ump_osk_msync(ump_dd_mem *mem, void *virt, u32 offset, u32 size, ump_uk_msync_op op, ump_session_data *session_data) in _ump_osk_msync() argument 226 if ((mem) && (virt != NULL) && (access_ok(virt, size))) { in _ump_osk_msync() 227 __cpuc_flush_dcache_area(virt, size); in _ump_osk_msync() 228 DBG_MSG(3, ("UMP[%02u] Flushing CPU L1 Cache. CPU address: %x, size in _ump_osk_msync() [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | linux_osl.h | 115 #define OSL_PCMCIA_READ_ATTR(osh, offset, buf, size) \ 116 osl_pcmcia_read_attr((osh), (offset), (buf), (size)) 117 #define OSL_PCMCIA_WRITE_ATTR(osh, offset, buf, size) \ 118 osl_pcmcia_write_attr((osh), (offset), (buf), (size)) 119 extern void osl_pcmcia_read_attr(osl_t *osh, uint offset, void *buf, int size); 120 extern void osl_pcmcia_write_attr(osl_t *osh, uint offset, void *buf, int size); 123 #define OSL_PCI_READ_CONFIG(osh, offset, size) \ 124 osl_pci_read_config((osh), (offset), (size)) 125 #define OSL_PCI_WRITE_CONFIG(osh, offset, size, val) \ 126 osl_pci_write_config((osh), (offset), (size), (va 544 size_t size; global() member [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/tde/driver/src/src/ |
H A D | wmalloc.c | 62 static hi_s32 memory_block_init(unit_size size, hi_u16 n_unit_num, hi_void *addr) in memory_block_init() argument 68 if ((size >= UNIT_SIZE_BUTT) || (addr == HI_NULL) || (n_unit_num == 0)) { in memory_block_init() 71 if (size == UNIT_SIZE_CMD) { in memory_block_init() 72 g_stru_mem_block[size].n_unit_size = CMD_SIZE; in memory_block_init() 73 } else if (size == UNIT_SIZE_JOB) { in memory_block_init() 74 g_stru_mem_block[size].n_unit_size = JOB_SIZE; in memory_block_init() 75 } else if (size == UNIT_SIZE_NODE) { in memory_block_init() 76 g_stru_mem_block[size].n_unit_size = NODE_SIZE; in memory_block_init() 77 } else if (size == UNIT_SIZE_FILTER) { in memory_block_init() 78 g_stru_mem_block[size] in memory_block_init() 101 malloc_unit(unit_size size) malloc_unit() argument 131 wmalloc(unsigned long size) wmalloc() argument 168 free_unit(unit_size size, hi_void *ptr) free_unit() argument 207 tde_malloc(hi_u32 size) tde_malloc() argument 353 unit_size size = 0; wgetfreenum() local [all...] |
/device/qemu/hardware/display/ |
H A D | display_gralloc.c | 107 int32_t size; in InitBufferHandle() local 118 size = h * stride; in InitBufferHandle() 122 buffer->hdl.size = size; in InitBufferHandle() 137 while ((shmid = shmget(key, buffer->size, IPC_CREAT | IPC_EXCL | DEFAULT_READ_WRITE_PERMISSIONS)) < 0) { in AllocShm() 159 (void)memset_s(pBase, buffer->size, 0x0, buffer->size); in AllocShm() 182 int32_t size; member 217 mmz.size = buffer->size; in AllocMmz() 360 MmapMmzNoCache(uint64_t paddr, int32_t size) MmapMmzNoCache() argument 378 MmapMmzCache(uint64_t paddr, int32_t size) MmapMmzCache() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/iommu/ |
H A D | dma-iommu.c | 307 * @size: Size of IOVA space 310 * @base and @size should be exact multiples of IOMMU page granularity to 315 static int iommu_dma_init_domain(struct iommu_domain *domain, dma_addr_t base, u64 size, struct device *dev) in iommu_dma_init_domain() argument 328 /* Use the smallest supported page size for IOVA granularity */ in iommu_dma_init_domain() 334 if (base > domain->geometry.aperture_end || base + size <= domain->geometry.aperture_start) { in iommu_dma_init_domain() 387 int iommu_dma_reserve_iova(struct device *dev, dma_addr_t base, u64 size) in iommu_dma_reserve_iova() argument 404 pfn_hi = iova_pfn(iovad, base + size - 1); in iommu_dma_reserve_iova() 467 static dma_addr_t iommu_dma_alloc_iova(struct iommu_domain *domain, size_t size, u64 dma_limit, struct device *dev) in iommu_dma_alloc_iova() argument 474 cookie->msi_iova += size; in iommu_dma_alloc_iova() 475 return cookie->msi_iova - size; in iommu_dma_alloc_iova() 508 iommu_dma_free_iova(struct iommu_dma_cookie *cookie, dma_addr_t iova, size_t size) iommu_dma_free_iova() argument 522 iommu_dma_unmap_ext(struct device *dev, dma_addr_t dma_addr, size_t size) iommu_dma_unmap_ext() argument 544 iommu_dma_map_ext(struct device *dev, phys_addr_t phys, size_t size, int prot, u64 dma_mask) iommu_dma_map_ext() argument 653 iommu_dma_alloc_remap(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, pgprot_t prot, unsigned long attrs) iommu_dma_alloc_remap() argument 740 iommu_dma_mmap_ext(struct page **pages, size_t size, struct vm_area_struct *vma) iommu_dma_mmap_ext() argument 745 iommu_dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction dir) iommu_dma_sync_single_for_cpu() argument 758 iommu_dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction dir) iommu_dma_sync_single_for_device() argument 797 iommu_dma_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, unsigned long attrs) iommu_dma_map_page() argument 812 iommu_dma_unmap_page(struct device *dev, dma_addr_t dma_handle, size_t size, enum dma_data_direction dir, unsigned long attrs) iommu_dma_unmap_page() argument 1017 iommu_dma_map_resource(struct device *dev, phys_addr_t phys, size_t size, enum dma_data_direction dir, unsigned long attrs) iommu_dma_map_resource() argument 1023 iommu_dma_unmap_resource(struct device *dev, dma_addr_t handle, size_t size, enum dma_data_direction dir, unsigned long attrs) iommu_dma_unmap_resource() argument 1029 iommu_dma_free_ext(struct device *dev, size_t size, void *cpu_addr) iommu_dma_free_ext() argument 1063 iommu_dma_free(struct device *dev, size_t size, void *cpu_addr, dma_addr_t handle, unsigned long attrs) iommu_dma_free() argument 1069 iommu_dma_alloc_pages(struct device *dev, size_t size, struct page **pagep, gfp_t gfp, unsigned long attrs) iommu_dma_alloc_pages() argument 1108 iommu_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, unsigned long attrs) iommu_dma_alloc() argument 1140 iommu_dma_alloc_noncoherent(struct device *dev, size_t size, dma_addr_t *handle, enum dma_data_direction dir, gfp_t gfp) iommu_dma_alloc_noncoherent() argument 1156 iommu_dma_free_noncoherent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t handle, enum dma_data_direction dir) iommu_dma_free_noncoherent() argument 1167 iommu_dma_mmap(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) iommu_dma_mmap() argument 1198 iommu_dma_get_sgtable(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) iommu_dma_get_sgtable() argument 1256 iommu_setup_dma_ops(struct device *dev, u64 dma_base, u64 size) iommu_setup_dma_ops() argument 1287 size_t size = cookie_msi_granule(cookie); iommu_dma_get_msi_page() local [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | dhd_custom_memprealloc.c | 138 unsigned long size; member 162 *dhd_wlan_mem_prealloc(int section, unsigned long size) in dhd_wlan_mem_prealloc() argument 177 if (size > WLAN_DHD_INFO_BUF_SIZE) { in dhd_wlan_mem_prealloc() 178 pr_err("request DHD_INFO size(%lu) is bigger than" in dhd_wlan_mem_prealloc() 179 " static size(%d).\n", size, in dhd_wlan_mem_prealloc() 187 if (size > WLAN_DHD_WLFC_BUF_SIZE) { in dhd_wlan_mem_prealloc() 188 pr_err("request DHD_WLFC size(%lu) is bigger than" in dhd_wlan_mem_prealloc() 189 " static size(%d).\n", in dhd_wlan_mem_prealloc() 190 size, WLAN_DHD_WLFC_BUF_SIZ in dhd_wlan_mem_prealloc() [all...] |
H A D | linux_osl.c | 86 static void * osl_sec_dma_ioremap(osl_t *osh, struct page *page, size_t size, 88 static void osl_sec_dma_iounmap(osl_t *osh, void *contig_base_va, size_t size); 93 static sec_mem_elem_t * osl_sec_dma_alloc_mem_elem(osl_t *osh, void *va, uint size, 97 static void *osl_sec_dma_alloc_consistent(osl_t *osh, uint size, uint16 align_bits, 99 static void osl_sec_dma_free_consistent(osl_t *osh, void *va, uint size, dmaaddr_t pa); 223 uint32 size; /* mapping size */ member 248 printk("%s: dhd_map_log(pa)=0x%llx size=%d," in osl_dma_map_dump() 249 " dma_unmap_log(pa)=0x%llx size=%d\n", __FUNCTION__, in osl_dma_map_dump() 304 log->map[idx].size in osl_dma_map_logging() 592 osl_cache_flush(void *va, uint size) osl_cache_flush() argument 605 osl_cache_inv(void *va, uint size) osl_cache_inv() argument 626 osl_pci_read_config(osl_t *osh, uint offset, uint size) osl_pci_read_config() argument 646 osl_pci_write_config(osl_t *osh, uint offset, uint size, uint val) osl_pci_write_config() argument 719 osl_pcmcia_attr(osl_t *osh, uint offset, char *buf, int size, bool write) osl_pcmcia_attr() argument 724 osl_pcmcia_read_attr(osl_t *osh, uint offset, void *buf, int size) osl_pcmcia_read_attr() argument 730 osl_pcmcia_write_attr(osl_t *osh, uint offset, void *buf, int size) osl_pcmcia_write_attr() argument 736 osl_malloc(osl_t *osh, uint size) osl_malloc() argument 792 osl_mallocz(osl_t *osh, uint size) osl_mallocz() argument 806 osl_mfree(osl_t *osh, void *addr, uint size) osl_mfree() argument 843 osl_vmalloc(osl_t *osh, uint size) osl_vmalloc() argument 862 osl_vmallocz(osl_t *osh, uint size) osl_vmallocz() argument 876 osl_vmfree(osl_t *osh, void *addr, uint size) osl_vmfree() argument 919 osl_dma_alloc_consistent(osl_t *osh, uint size, uint16 align_bits, uint *alloced, dmaaddr_t *pap) osl_dma_alloc_consistent() argument 961 osl_dma_free_consistent(osl_t *osh, void *va, uint size, dmaaddr_t pa) osl_dma_free_consistent() argument 993 osl_dma_flush(osl_t *osh, void *va, uint size, int direction, void *p, hnddma_seg_map_t *dmah) osl_dma_flush() argument 999 osl_dma_map(osl_t *osh, void *va, uint size, int direction, void *p, hnddma_seg_map_t *dmah) osl_dma_map() argument 1054 osl_dma_unmap(osl_t *osh, dmaaddr_t pa, uint size, int direction) osl_dma_unmap() argument 1308 osl_pcie_rreg(osl_t *osh, ulong addr, volatile void *v, uint size) osl_pcie_rreg() argument 1341 osl_bpt_rreg(osl_t *osh, ulong addr, volatile void *v, uint size) osl_bpt_rreg() argument 1379 osl_sec_dma_ioremap(osl_t *osh, struct page *page, size_t size, bool iscache, bool isdecr) osl_sec_dma_ioremap() argument 1418 osl_sec_dma_iounmap(osl_t *osh, void *contig_base_va, size_t size) osl_sec_dma_iounmap() argument 1470 osl_sec_dma_alloc_mem_elem(osl_t *osh, void *va, uint size, int direction, struct sec_cma_info *ptr_cma_info, uint offset) osl_sec_dma_alloc_mem_elem() argument 1589 osl_sec_dma_map_txmeta(osl_t *osh, void *va, uint size, int direction, void *p, hnddma_seg_map_t *dmah, void *ptr_cma_info) osl_sec_dma_map_txmeta() argument 1617 osl_sec_dma_map(osl_t *osh, void *va, uint size, int direction, void *p, hnddma_seg_map_t *dmah, void *ptr_cma_info, uint offset) osl_sec_dma_map() argument 1709 osl_sec_dma_dd_map(osl_t *osh, void *va, uint size, int direction, void *p, hnddma_seg_map_t *map) osl_sec_dma_dd_map() argument 1728 osl_sec_dma_unmap(osl_t *osh, dma_addr_t dma_handle, uint size, int direction, void *p, hnddma_seg_map_t *map, void *ptr_cma_info, uint offset) osl_sec_dma_unmap() argument 1850 osl_sec_dma_alloc_consistent(osl_t *osh, uint size, uint16 align_bits, ulong *pap) osl_sec_dma_alloc_consistent() argument 1880 osl_sec_dma_free_consistent(osl_t *osh, void *va, uint size, dmaaddr_t pa) osl_sec_dma_free_consistent() argument [all...] |
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/ |
H A D | iommu.h | 16 TP_PROTO(struct device *dev, u64 dma_base, u64 size), 17 TP_ARGS(dev, dma_base, size)); 20 TP_PROTO(struct device *dev, dma_addr_t iova, size_t size), 21 TP_ARGS(dev, iova, size)); 26 TP_PROTO(struct device *dev, struct iova_domain *iovad, dma_addr_t iova, size_t size), 27 TP_ARGS(dev, iovad, iova, size)); 30 TP_PROTO(dma_addr_t iova, size_t size), 31 TP_ARGS(iova, size)); 34 TP_PROTO(struct iova_domain *iovad, dma_addr_t iova, size_t size), 35 TP_ARGS(iovad, iova, size)); [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/include/ |
H A D | osal_ioctl.h | 23 * size of the parameter structure in the lower 14 bits of the 25 * Encoding the size of the parameter structure in the ioctl request 29 * NOTE: This limits the max parameter size to 16kB -1 ! 99 #define _IOC(dir, type, nr, size) \ 103 ((size) << _IOC_SIZESHIFT)) 109 /* provoke compile error for invalid uses of size argument */ 124 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) 128 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/ |
H A D | osal_ioctl.h | 20 * size of the parameter structure in the lower 14 bits of the 22 * Encoding the size of the parameter structure in the ioctl request 26 * NOTE: This limits the max parameter size to 16kB -1 ! 96 #define _IOC(dir, type, nr, size) \ 100 ((size) << _IOC_SIZESHIFT)) 106 /* provoke compile error for invalid uses of size argument */ 121 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) 125 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/ |
H A D | osal_ioctl.h | 20 * size of the parameter structure in the lower 14 bits of the 22 * Encoding the size of the parameter structure in the ioctl request 26 * NOTE: This limits the max parameter size to 16kB -1 ! 96 #define _IOC(dir, type, nr, size) \ 100 ((size) << _IOC_SIZESHIFT)) 106 /* provoke compile error for invalid uses of size argument */ 121 #define _IOR(type, nr, size) _IOC(_IOC_READ, (type), (nr), (_IOC_TYPECHECK(size))) 125 #define _IOW(type, nr, size) _IOC(_IOC_WRITE, (type), (nr), (_IOC_TYPECHECK(size))) [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/ |
H A D | at_demo_hks.c | 52 hi_void app_hks_get_cert_bin_start_store_addr(hi_u32 *addr, hi_u32 *size) in app_hks_get_cert_bin_start_store_addr() argument 59 *size = CERT_TOTAL_LEN; in app_hks_get_cert_bin_start_store_addr() 72 hi_u32 app_hks_get_cert_store_addr(hi_u32 *addr, hi_u32 *size, hi_u32 cert_index) in app_hks_get_cert_store_addr() argument 74 if (addr == HI_NULL || size == HI_NULL) { in app_hks_get_cert_store_addr() 109 hi_at_printf("cert size invalid:%d\r\n", cert_index); in app_hks_get_cert_store_addr() 115 *size = cert_key_plain_size; in app_hks_get_cert_store_addr() 121 hi_u32 app_hks_get_key_store_addr(hi_u32 *addr, hi_u32 *size, hi_u32 key_index) in app_hks_get_key_store_addr() argument 123 if (addr == HI_NULL || size == HI_NULL) { in app_hks_get_key_store_addr() 134 *size = KEY_LEN; in app_hks_get_key_store_addr() 139 hi_u32 app_hks_get_usr_data_store_addr(hi_u32 *addr, hi_u32 *size) in app_hks_get_usr_data_store_addr() argument 165 hks_set_blob(hi_u8 type, hi_u32 size, hi_char *data, struct hks_blob *hks_blob_param) hks_set_blob() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/ |
H A D | mali_osk_low_level_mem.c | 35 mali_io_address _mali_osk_mem_mapioregion(uintptr_t phys, u32 size, const char *description) in _mali_osk_mem_mapioregion() argument 37 return (mali_io_address)ioremap(phys, size); in _mali_osk_mem_mapioregion() 40 void _mali_osk_mem_unmapioregion(uintptr_t phys, u32 size, mali_io_address virt) in _mali_osk_mem_unmapioregion() argument 45 mali_osk_errcode_t inline _mali_osk_mem_reqregion(uintptr_t phys, u32 size, const char *description) in _mali_osk_mem_reqregion() argument 50 return ((request_mem_region(phys, size, description) == NULL) ? MALI_OSK_ERR_NOMEM : MALI_OSK_ERR_OK); in _mali_osk_mem_reqregion() 54 void inline _mali_osk_mem_unreqregion(uintptr_t phys, u32 size) in _mali_osk_mem_unreqregion() argument 57 release_mem_region(phys, size); in _mali_osk_mem_unreqregion() 81 void _mali_osk_cache_ensure_uncached_range_flushed(void *uncached_mapping, u32 offset, u32 size) in _mali_osk_cache_ensure_uncached_range_flushed() argument 86 u32 _mali_osk_mem_write_safe(void __user *dest, const void __user *src, u32 size) in _mali_osk_mem_write_safe() argument 94 u32 bytes_left_to_copy = size; in _mali_osk_mem_write_safe() [all...] |