Home
last modified time | relevance | path

Searched refs:memctl (Results 1 – 25 of 25) sorted by relevance

/external/u-boot/arch/powerpc/cpu/mpc8xx/
Dcpu_init.c23 memctl8xx_t __iomem *memctl = &immr->im_memctl; in cpu_init_f() local
101 clrsetbits_be32(&memctl->memc_br0, ~BR_PS_MSK, BR_V); in cpu_init_f()
128 out_be32(&memctl->memc_or0, CONFIG_SYS_OR0_REMAP); in cpu_init_f()
131 out_be32(&memctl->memc_or1, CONFIG_SYS_OR1_REMAP); in cpu_init_f()
134 out_be32(&memctl->memc_or5, CONFIG_SYS_OR5_REMAP); in cpu_init_f()
138 out_be32(&memctl->memc_br0, CONFIG_SYS_BR0_PRELIM); in cpu_init_f()
139 out_be32(&memctl->memc_or0, CONFIG_SYS_OR0_PRELIM); in cpu_init_f()
142 out_be32(&memctl->memc_or1, CONFIG_SYS_OR1_PRELIM); in cpu_init_f()
143 out_be32(&memctl->memc_br1, CONFIG_SYS_BR1_PRELIM); in cpu_init_f()
147 out_be32(&memctl->memc_or2, CONFIG_SYS_OR2_PRELIM); in cpu_init_f()
[all …]
Dcpu.c106 memctl8xx_t __iomem *memctl = &immap->im_memctl; in checkicache() local
109 u32 k = in_be32(&memctl->memc_br0) & ~0x00007fff; in checkicache()
147 memctl8xx_t __iomem *memctl = &immap->im_memctl; in checkdcache() local
150 u32 k = in_be32(&memctl->memc_br0) & ~0x00007fff; in checkdcache()
183 memctl8xx_t __iomem *memctl = &immap->im_memctl; in upmconfig() local
186 out_be32(&memctl->memc_mdr, table[i]); /* (16-15) */ in upmconfig()
187 out_be32(&memctl->memc_mcr, addr | upm); /* (16-16) */ in upmconfig()
Dimmap.c42 memctl8xx_t __iomem *memctl = &immap->im_memctl; in do_memcinfo() local
44 uint __iomem *p = &memctl->memc_br0; in do_memcinfo()
51 printf("MAR = %08x", in_be32(&memctl->memc_mar)); in do_memcinfo()
52 printf(" MCR = %08x\n", in_be32(&memctl->memc_mcr)); in do_memcinfo()
54 in_be32(&memctl->memc_mamr), in_be32(&memctl->memc_mbmr)); in do_memcinfo()
55 printf("\nMSTAT = %04x\n", in_be16(&memctl->memc_mstat)); in do_memcinfo()
57 in_be16(&memctl->memc_mptpr), in_be32(&memctl->memc_mdr)); in do_memcinfo()
/external/pcre/dist2/src/
Dpcre2_serialize.c84 const pcre2_memctl *memctl = (gcontext != NULL) ? in pcre2_serialize_encode() local
85 &gcontext->memctl : &PRIV(default_compile_context).memctl; in pcre2_serialize_encode()
109 bytes = memctl->malloc(total_size + sizeof(pcre2_memctl), memctl->memory_data); in pcre2_serialize_encode()
113 memcpy(bytes, memctl, sizeof(pcre2_memctl)); in pcre2_serialize_encode()
142 (void)memset(dst_bytes + offsetof(pcre2_real_code, memctl), 0, in pcre2_serialize_encode()
167 const pcre2_memctl *memctl = (gcontext != NULL) ? in pcre2_serialize_decode() local
168 &gcontext->memctl : &PRIV(default_compile_context).memctl; in pcre2_serialize_decode()
192 tables = memctl->malloc(tables_length + sizeof(PCRE2_SIZE), memctl->memory_data); in pcre2_serialize_decode()
219 memctl->free(tables, memctl->memory_data); in pcre2_serialize_decode()
222 memctl->free(codes[j], memctl->memory_data); in pcre2_serialize_decode()
[all …]
Dpcre2_context.c86 PRIV(memctl_malloc)(size_t size, pcre2_memctl *memctl) in PRIV()
89 void *yield = (memctl == NULL)? malloc(size) : in PRIV()
90 memctl->malloc(size, memctl->memory_data); in PRIV()
93 if (memctl == NULL) in PRIV()
99 else *newmemctl = *memctl; in PRIV()
123 gcontext->memctl.malloc = private_malloc; in pcre2_general_context_create()
124 gcontext->memctl.free = private_free; in pcre2_general_context_create()
125 gcontext->memctl.memory_data = memory_data; in pcre2_general_context_create()
230 gcontext->memctl.malloc(sizeof(pcre2_real_general_context), in pcre2_general_context_copy()
231 gcontext->memctl.memory_data); in pcre2_general_context_copy()
[all …]
Dpcre2_jit_misc.c78 PRIV(jit_free)(void *executable_jit, pcre2_memctl *memctl) in PRIV()
82 (void)memctl; in PRIV()
86 void *allocator_data = memctl; in PRIV()
147 jit_stack->stack = sljit_allocate_stack(startsize, maxsize, &jit_stack->memctl); in pcre2_jit_stack_create()
188 sljit_free_stack((struct sljit_stack *)(jit_stack->stack), &jit_stack->memctl); in pcre2_jit_stack_free()
189 jit_stack->memctl.free(jit_stack, jit_stack->memctl.memory_data); in pcre2_jit_stack_free()
Dpcre2_substring.c245 pcre2_memctl *memctl = (pcre2_memctl *)((char *)string - sizeof(pcre2_memctl)); in pcre2_substring_free() local
246 memctl->free(memctl, memctl->memory_data); in pcre2_substring_free()
449 pcre2_memctl *memctl = (pcre2_memctl *)((char *)list - sizeof(pcre2_memctl)); in pcre2_substring_list_free() local
450 memctl->free(memctl, memctl->memory_data); in pcre2_substring_list_free()
Dpcre2_intmodedep.h561 pcre2_memctl memctl; member
567 pcre2_memctl memctl; member
581 pcre2_memctl memctl; member
597 pcre2_memctl memctl; member
618 pcre2_memctl memctl; /* Memory control fields */ member
652 pcre2_memctl memctl; member
760 pcre2_memctl memctl; member
843 pcre2_memctl memctl; /* For general use */ member
891 pcre2_memctl memctl; /* For general use */ member
Dpcre2_match_data.c96 match_data->memctl.free(match_data, match_data->memctl.memory_data); in pcre2_match_data_free()
Dpcre2_maketables.c83 gcontext->memctl.malloc(tables_length, gcontext->memctl.memory_data) :
Dpcre2_compile.c1119 newcode = code->memctl.malloc(code->blocksize, code->memctl.memory_data); in pcre2_code_copy()
1154 newcode = code->memctl.malloc(code->blocksize, code->memctl.memory_data); in pcre2_code_copy_with_tables()
1159 newtables = code->memctl.malloc(tables_length + sizeof(PCRE2_SIZE), in pcre2_code_copy_with_tables()
1160 code->memctl.memory_data); in pcre2_code_copy_with_tables()
1163 code->memctl.free((void *)newcode, code->memctl.memory_data); in pcre2_code_copy_with_tables()
1189 PRIV(jit_free)(code->executable_jit, &code->memctl); in pcre2_code_free()
1202 code->memctl.free((void *)code->tables, code->memctl.memory_data); in pcre2_code_free()
1206 code->memctl.free(code, code->memctl.memory_data); in pcre2_code_free()
4225 cb->cx->memctl.malloc(newsize * sizeof(named_group), in parse_regex()
4226 cb->cx->memctl.memory_data); in parse_regex()
[all …]
Dpcre2_convert.c1176 pcre2_memctl *memctl = in pcre2_converted_pattern_free() local
1178 memctl->free(memctl, memctl->memory_data); in pcre2_converted_pattern_free()
Dpcre2_dfa_match.c427 new = mb->memctl.malloc(newsize*sizeof(int), mb->memctl.memory_data); in more_workspace()
3358 mb->memctl = re->memctl; in pcre2_dfa_match()
3373 mb->memctl = mcontext->memctl; in pcre2_dfa_match()
3858 mb->memctl.free(next, mb->memctl.memory_data); in pcre2_dfa_match()
Dpcre2_match.c644 new = mb->memctl.malloc(newsize, mb->memctl.memory_data); in match()
652 mb->memctl.free(mb->match_frames, mb->memctl.memory_data); in match()
6182 mb->memctl = re->memctl; in pcre2_match()
6184 else mb->memctl = mcontext->memctl; in pcre2_match()
6309 mb->match_frames = mb->memctl.malloc(mb->frame_vector_size, in pcre2_match()
6310 mb->memctl.memory_data); in pcre2_match()
6807 mb->memctl.free(mb->match_frames, mb->memctl.memory_data); in pcre2_match()
Dpcre2_jit_compile.c12027 void *allocator_data = &re->memctl; in jit_compile()
/external/ltp/testcases/kernel/controllers/memctl/
Dmyfunctions.sh50 rmdir /dev/memctl/group* 2> /dev/null
51 umount /dev/memctl 2> /dev/null
52 rmdir /dev/memctl 2> /dev/null
59 if [ -e /dev/memctl ]
63 mkdir /dev/memctl;
65 mkdir /dev/memctl
67 mount -t cgroup -omemory cgroup /dev/memctl 2> /dev/null
76 if [ -e /dev/memctl/group_1 ]
78 rmdir /dev/memctl/group*
86 mkdir /dev/memctl/$group;# 2>/dev/null
[all …]
Drun_memctl_test.sh60 USAGE_FROM_USAGE_IN_BYTES=`cat /dev/memctl/group_1/memory.usage_in_bytes`;
69 SECOND_READ=`cat /dev/memctl/group_1/memory.usage_in_bytes`;
132 MYGROUP=/dev/memctl/group_1;
151 GRP1_MEMUSAGE=`cat /dev/memctl/group_1/memory.usage_in_bytes`;
157 GRP2_MEMUSAGE_OLD=`cat /dev/memctl/group_2/memory.usage_in_bytes`;
164 echo 0 > /dev/memctl/group_2/memory.move_charge_at_immigrate
170 echo ${PID[$i]} >>/dev/memctl/group_2/tasks;
178 GRP2_TASKS=`cat /dev/memctl/group_2/tasks|wc -l`;
191 GRP2_MEMUSAGE_NEW=`cat /dev/memctl/group_2/memory.usage_in_bytes`;
209 GRP2_MEMUSAGE_OLD=`cat /dev/memctl/group_2/memory.usage_in_bytes`;
[all …]
DREADME3 The directory memctl contains the tests related to memory controller.
23 the cleanup once the test finishes. The setup() function creates /dev/memctl
25 creates a number(n) of groups in /dev/memctl. The cleanup function does a
/external/u-boot/board/cssi/MCR3000/
DMCR3000.c91 memctl8xx_t __iomem *memctl = &immap->im_memctl; in dram_init() local
99 out_be16(&memctl->memc_mptpr, 0x0200); in dram_init()
100 out_be32(&memctl->memc_mamr, 0x14904000); in dram_init()
102 out_be32(&memctl->memc_or1, CONFIG_SYS_OR1_PRELIM); in dram_init()
103 out_be32(&memctl->memc_br1, CONFIG_SYS_BR1_PRELIM); in dram_init()
105 out_be32(&memctl->memc_mcr, 0x80002830); in dram_init()
106 out_be32(&memctl->memc_mar, 0x00000088); in dram_init()
107 out_be32(&memctl->memc_mcr, 0x80002038); in dram_init()
/external/ltp/testcases/kernel/controllers/memcg/
DREADME7 contain the regression test, basis operation test and stress test of memctl.
14 of memctl..
/external/u-boot/drivers/usb/host/
Dsl811-hcd.c95 volatile memctl8xx_t *memctl = &immap->im_memctl; in usb_init_kup4x() local
99 memctl = &immap->im_memctl; in usb_init_kup4x()
100 memctl->memc_or7 = 0xFFFF8726; in usb_init_kup4x()
101 memctl->memc_br7 = 0x50000401; /* start at 0x50000000 */ in usb_init_kup4x()
/external/ltp/testcases/kernel/controllers/
DREADME40 memctl
/external/ltp/android/
DAndroid.ltp.mk1305 module_src_files := testcases/kernel/controllers/memctl/myfunctions.sh
1501 module_src_files := testcases/kernel/controllers/memctl/run_memctl_test.sh
/external/pcre/dist2/
DChangeLog158 34. When serializing a pattern, set the memctl, executable_jit, and tables
/external/ltp/
Dgen.bp8748 srcs: ["testcases/kernel/controllers/memctl/memctl_test01.c"],