Home
last modified time | relevance | path

Searched refs:mmz (Results 1 - 15 of 15) sorted by relevance

/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/mmz/
H A Dhisi_allocator.c64 hil_mmz_t *mmz, in find_fixed_region()
80 start = mmz_align2(mmz->phys_start, align); in find_fixed_region()
83 list_for_each_entry(p, &mmz->mmb_list, list) { in find_fixed_region()
92 if (list_first_entry(&mmz->mmb_list, typeof(*p), list) == p) { in find_fixed_region()
102 /* if aglin is larger than mmz->nbytes, it would trigger the BUG_ON */ in find_fixed_region()
104 if (osal_list_is_last(&p->list, &mmz->mmb_list)) { in find_fixed_region()
105 blank_len = mmz->phys_start + mmz->nbytes - start; in find_fixed_region()
137 if ((mmz_grain_align(start + len) <= (mmz->phys_start + mmz in find_fixed_region()
63 find_fixed_region(unsigned long *region_len, hil_mmz_t *mmz, unsigned long size, unsigned long align) find_fixed_region() argument
154 find_fixed_region_from_highaddr(unsigned long *region_len, hil_mmz_t *mmz, unsigned long size, unsigned long align) find_fixed_region_from_highaddr() argument
233 hil_mmz_t *mmz = NULL; __mmb_alloc() local
306 hil_mmz_t *mmz = NULL; __mmb_alloc_v2() local
[all...]
H A Dcma_allocator.c133 hil_mmz_t *mmz = NULL; in __mmb_alloc() local
164 begin_list_for_each_mmz(mmz, gfp, mmz_name) in __mmb_alloc()
166 if ((_user_mmz != NULL) && (_user_mmz != mmz)) { in __mmb_alloc()
170 page = dma_alloc_from_contiguous(mmz->cma_dev, count, order, 0); in __mmb_alloc()
174 fixed_mmz = mmz; in __mmb_alloc()
218 dma_release_from_contiguous(mmz->cma_dev, page, count); in __mmb_alloc()
230 hil_mmz_t *mmz = NULL; in __mmb_alloc_v2() local
251 begin_list_for_each_mmz(mmz, gfp, mmz_name) in __mmb_alloc_v2()
252 if ((_user_mmz != NULL) && (_user_mmz != mmz)) in __mmb_alloc_v2()
255 if (mmz in __mmb_alloc_v2()
318 hil_mmz_t *mmz = mmb->zone; __mmb_free() local
[all...]
H A Dmedia_mem.c78 __setup("mmz=", parse_kern_cmdline);
98 module_param_string(mmz, g_setup_zones, MMZ_SETUP_CMDLINE_LEN, 0600);
101 MODULE_PARM_DESC(mmz, "mmz_allocator=allocator mmz=name,0,start,size,type,eqsize:[others] map_mmz=start,size:[others]");
289 osal_trace(KERN_ERR "%d mmbs not free, mmz<%s> can not be unregistered!\n", in hil_mmz_unregister()
915 osal_trace(KERN_ERR "%d mmbs not free, mmz<%s> can not be unregistered!\n",
938 char *argv[2]; /* 2: map mmz has two arguments */
940 for (i = 0; i < 2; i++) { /* 2: map mmz has two arguments */
1163 osal_trace(KERN_ERR "Create mmz proc fail!\n");
/device/qemu/hardware/display/
H A Ddisplay_gralloc.c167 MMZ_CACHE = 1, /* allocate mmz with cache attribute */
168 MMZ_NOCACHE, /* allocate mmz with nocache attribute */
169 MMZ_FREE, /* free mmz */
196 #define MMZ_NODE "/dev/mmz"
216 MmzMemory mmz = {0}; in AllocMmz() local
217 mmz.size = buffer->size; in AllocMmz()
220 printf("req size(%#x), ret:%d \n", buffer->size, SendCmd(MMZ_CACHE_TYPE, (uintptr_t)&mmz)); in AllocMmz()
221 printf("vaddr %#x, paddr: %#x\n", mmz.vaddr, mmz.paddr); in AllocMmz()
225 printf("req size(%#x), ret:%d \n", buffer->size, SendCmd(MMZ_NOCACHE_TYPE, (uintptr_t)&mmz)); in AllocMmz()
246 MmzMemory mmz = {0}; FreeMmz() local
254 MmzMemory mmz = {0}; MmzFlushCache() local
263 MmzMemory mmz = {0}; MmzInvalidateCache() local
362 MmzMemory mmz = {0}; MmapMmzNoCache() local
371 MmzMemory mmz = {0}; UnmapMmz() local
380 MmzMemory mmz = {0}; MmapMmzCache() local
[all...]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/
H A DMakefile51 -I$(COMMON_DIR)/api/mmz \
55 -I$(COMMON_DIR)/drv/mmz \
168 $(MOD_NAME_MMZ)-y := mmz/drv_mmz_ext_k.o \
169 mmz/drv_mmz_intf.o \
170 mmz/drv_mmz_userdev.o \
171 mmz/drv_media_mem.o
173 $(MOD_NAME_MMZ)-y := mmz/drv_mmz_ext_k.o \
174 mmz/drv_mmz_intf.o \
175 mmz/drv_tzsmmu.o \
176 mmz/drv_mmz_userde
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
H A DMakefile46 osal_notifier.o osal_platform.o ./himedia/base.o ./himedia/himedia.o ./mmz/media_mem.o \
47 ./mmz/mmz_userdev.o ./mmz/hisi_allocator.o
49 hi_osal-$(CONFIG_CMA) += ./mmz/cma_allocator.o
50 hi_osal-$(CONFIG_CMA) += ./mmz/cmpi_mm.o
59 @rm ./mmz/*.o -f
/device/qemu/drivers/char/
H A DMakefile34 LOCAL_SRCS := mmz/mmz.c
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/
H A Ddrv_media_mem.c318 hi_mmz_error(" %d mmbs not free, mmz<%s> can not be deregistered!\n", losts, zone->name); in hil_mmz_unregister()
541 static int mmb_add_to_rbtree(hil_mmb_t *mmb, hil_mmz_t *mmz, int iommu) in mmb_add_to_rbtree() argument
543 struct rb_node **p = &mmz->root.rb_node; in mmb_add_to_rbtree()
562 rb_insert_color(&mmb->s_node, &mmz->root); in mmb_add_to_rbtree()
579 rb_insert_color(&mmb->node, &mmz->root); in mmb_add_to_rbtree()
594 hil_mmz_t *mmz = NULL; in list_for_each_mmz() local
611 mmz = p; in list_for_each_mmz()
616 return mmz; in list_for_each_mmz()
722 static int hil_mmb_init(hil_mmb_t *mmb, hil_mmz_t *mmz, unsigned int size, unsigned int align, int flag) in hil_mmb_init() argument
732 iommu = mmz in hil_mmb_init()
767 hil_mmz_t *mmz = NULL; hil_mmb_alloc() local
1269 hil_mmz_t *mmz = NULL; hil_mmb_cma_mapto_iommu() local
1327 hil_mmz_t *mmz = NULL; hil_mmb_cma_unmapfrom_iommu() local
1705 hil_mmz_t *mmz = NULL; hil_mmz_find() local
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_liteos/mpp/module_init/src/
H A Dhi_module_param.h131 char mmz[MMZ_SETUP_CMDLINE_LENGTH]; member
H A Dsdk_init.c55 snprintf(stMMZ_Param.mmz, MMZ_SETUP_CMDLINE_LENGTH, "anonymous,0,0x%llx,%dM", g_mmz_start, g_mmz_size); in MMZ_init()
59 dprintf("mmz param= %s\n", stMMZ_Param.mmz); in MMZ_init()
/device/soc/hisilicon/hi3518ev300/mpp/module_init/src/
H A Dhi_module_param.h126 char mmz[MMZ_SETUP_CMDLINE_LENGTH]; member
H A Dsdk_init.c72 snprintf(stMMZ_Param.mmz, MMZ_SETUP_CMDLINE_LENGTH, "anonymous,0,0x%llx,%dM", g_mmz_start, g_mmz_size); in MMZ_init()
77 dprintf("mmz param= %s\n", stMMZ_Param.mmz); in MMZ_init()
/device/soc/hisilicon/hi3516dv300/sdk_linux/out/ko/
H A Dload3516dv300_user22 mmz_start=0x88000000; # mmz start addr
23 mmz_size=384M; # 384M, mmz size
41 #insmod hi_osal.ko anony=1 mmz_allocator=hisi mmz=anonymous,0,$mmz_start,$mmz_size || report_error
42 insmod hi_osal.ko anony=1 mmz_allocator=hisi mmz=anonymous,0,0xA8000000,384M
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/include/
H A Dosal_mmz.h226 char mmz[MMZ_SETUP_CMDLINE_LEN]; member
285 /* for mmz userdev */
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/
H A Dosal_mmz.h223 char mmz[MMZ_SETUP_CMDLINE_LEN]; member
282 /* for mmz userdev */

Completed in 13 milliseconds