| /third_party/mesa3d/src/broadcom/common/ |
| H A D | v3d_cpu_tiling.h | 31 v3d_load_utile(void *cpu, uint32_t cpu_stride, in v3d_load_utile() argument 41 /* Store each 8-byte line to cpu-side destination, in v3d_load_utile() 44 "vst1.8 d0, [%[cpu]], %[cpu_stride]\n" in v3d_load_utile() 45 "vst1.8 d1, [%[cpu]], %[cpu_stride]\n" in v3d_load_utile() 46 "vst1.8 d2, [%[cpu]], %[cpu_stride]\n" in v3d_load_utile() 47 "vst1.8 d3, [%[cpu]], %[cpu_stride]\n" in v3d_load_utile() 48 "vst1.8 d4, [%[cpu]], %[cpu_stride]\n" in v3d_load_utile() 49 "vst1.8 d5, [%[cpu]], %[cpu_stride]\n" in v3d_load_utile() 50 "vst1.8 d6, [%[cpu]], %[cpu_stride]\n" in v3d_load_utile() 51 "vst1.8 d7, [%[cpu]]\ in v3d_load_utile() 141 v3d_store_utile(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride) v3d_store_utile() argument [all...] |
| H A D | v3d_tiling.c | 218 void *cpu, uint32_t cpu_stride, in v3d_move_pixels_unaligned() 227 void *cpu_row = cpu + y * cpu_stride; in v3d_move_pixels_unaligned() 258 void *cpu, uint32_t cpu_stride, in v3d_move_pixels_general_percpp() 280 void *cpu_row = cpu + (y - box->y) * cpu_stride; in v3d_move_pixels_general_percpp() 303 cpu, cpu_stride, in v3d_move_pixels_general_percpp() 342 void *partial_cpu = (cpu + in v3d_move_pixels_general_percpp() 356 void *cpu, uint32_t cpu_stride, in v3d_move_pixels_general() 367 cpu, cpu_stride, in v3d_move_pixels_general() 374 cpu, cpu_stride, in v3d_move_pixels_general() 381 cpu, cpu_strid in v3d_move_pixels_general() 217 v3d_move_pixels_unaligned(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride, int cpp, uint32_t image_h, const struct pipe_box *box, uint32_t (*get_pixel_offset)(uint32_t cpp, uint32_t image_h, uint32_t x, uint32_t y), bool is_load) v3d_move_pixels_unaligned() argument 257 v3d_move_pixels_general_percpp(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride, int cpp, uint32_t image_h, const struct pipe_box *box, uint32_t (*get_pixel_offset)(uint32_t cpp, uint32_t image_h, uint32_t x, uint32_t y), bool is_load) v3d_move_pixels_general_percpp() argument 355 v3d_move_pixels_general(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride, int cpp, uint32_t image_h, const struct pipe_box *box, uint32_t (*get_pixel_offset)(uint32_t cpp, uint32_t image_h, uint32_t x, uint32_t y), bool is_load) v3d_move_pixels_general() argument 404 v3d_move_tiled_image(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride, enum v3d_tiling_mode tiling_format, int cpp, uint32_t image_h, const struct pipe_box *box, bool is_load) v3d_move_tiled_image() argument [all...] |
| /third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/include/ |
| H A D | cpuhotplug_hotplug.sh | 27 CPU=${1#cpu} 66 # $CPU should either be a specific number like 4, or the cpu name, 71 CPU=${1#cpu} 72 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 78 $TIME echo 1 > /sys/devices/system/cpu/cpu${CPU}/online 80 report_timing "Online cpu ${CPU}" 92 CPU=${1#cpu} 93 if [ ! -w /sys/devices/system/cpu/cp [all...] |
| /third_party/ltp/testcases/open_posix_testsuite/include/ |
| H A D | affinity.h | 31 static int set_affinity(int cpu) in set_affinity() argument 36 CPU_SET(cpu, &mask); in set_affinity() 44 int cpu = -1; in get_online_cpu_from_sysfs() local 46 f = fopen("/sys/devices/system/cpu/online", "r"); in get_online_cpu_from_sysfs() 49 if (!fscanf(f, "%d", &cpu)) in get_online_cpu_from_sysfs() 50 cpu = -1; in get_online_cpu_from_sysfs() 53 return cpu; in get_online_cpu_from_sysfs() 59 int cpu = -1; in get_online_cpu_from_cpuinfo() local 75 if (sscanf(line, "processor%*[^0123456789]%d", &cpu) == 1) in get_online_cpu_from_cpuinfo() 80 return cpu; in get_online_cpu_from_cpuinfo() 85 int cpu; set_affinity_single() local [all...] |
| /third_party/ltp/testcases/kernel/power_management/ |
| H A D | runpwtests03.sh | 31 for cpu in $(seq 0 "${total_cpus}" ) 33 cpufiles=$(find /sys/devices/system/cpu/cpu"${cpu}"/cpufreq/ \ 45 echo "${0}: PASS: Checking cpu freq sysfs files" 56 for cpu in $(seq 0 "${total_cpus}" ) 61 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_governor 64 "governor -- ${govr} for cpu [all...] |
| H A D | pm_include.sh | 40 for cpu in $(seq 0 "${total_cpus}" ) 42 cpus[$cpu]=cpu${cpu} 43 phyid[$cpu]=$(cat \ 44 /sys/devices/system/cpu/cpu${cpu}/topology/physical_package_id) 51 echo "${cpus[$j]} -P ${cpus[$k]}" | sed -e "s/cpu//g" 61 for cpu i [all...] |
| /third_party/ltp/testcases/kernel/device-drivers/misc_modules/per_cpu_allocator_module/ |
| H A D | test_per_cpu_allocator_module.c | 88 static unsigned long seed_val(unsigned int cmdno, unsigned int cpu) in seed_val() argument 91 + cmdno + (cmdno << 16) + (cpu << 8) + (cpu << 24); in seed_val() 96 unsigned int cpu; in fill_area() local 98 for_each_possible_cpu(cpu) { in fill_area() 99 unsigned long v = seed_val(cmdno, cpu); in fill_area() 100 unsigned long *up = per_cpu_ptr(p, cpu); in fill_area() 113 unsigned int cpu; in verify_area() local 115 for_each_possible_cpu(cpu) { in verify_area() 116 unsigned long v = seed_val(cmdno, cpu); in verify_area() 195 unsigned int cpu; test_init() local [all...] |
| /third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/functional/ |
| H A D | cpuhotplug01.sh | 26 usage: $0 -c cpu -l loop -n timeon -f timeoff -e timed 29 -c cpu which is specified for testing 31 -n time delay after an online of cpu 32 -f time delay after offline of cpu 59 CPU=${1#cpu} 82 CPU=${1#cpu} 128 tst_brkm TCONF "cpu${CPU_TO_TEST} doesn't support hotplug" 133 tst_brkm TBROK "Could not online cpu $CPU_TO_TEST" 154 for cpu in $( get_hotplug_cpus ); do 155 if [ "$cpu" [all...] |
| /third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
| H A D | cpuset_sched_domains_check.c | 83 unsigned int cpu; in check_sched_domains() local 86 for (cpu = bitmask_first(domains[i]); in check_sched_domains() 87 cpu < bitmask_nbits(domains[i]); in check_sched_domains() 88 cpu = bitmask_next(domains[i], cpu + 1)) { in check_sched_domains() 90 if (cpus[cpu].sched_domain != NULL) { in check_sched_domains() 94 cpus[cpu]. in check_sched_domains() 97 "cpu%d's sched domain is not " in check_sched_domains() 100 cpu, buf1, buf2); in check_sched_domains() 105 if (!bitmask_equal(domains[i], cpus[cpu] in check_sched_domains() [all...] |
| /third_party/ltp/testcases/kernel/controllers/cpuctl_fj/ |
| H A D | run_cpuctl_test_fj.sh | 36 # Create $CPUCTL & mount the cgroup file system with cpu controller 51 mount -t cgroup -o cpu cpuctl "$CPUCTL" || { 52 tst_resm TFAIL "failed to mount cpu subsystem... Exiting" 120 [ -f "$CPUCTL/cpu.shares" ] || { 121 tst_resm TFAIL "Err: No cpu.shares." 125 shares=`cat $CPUCTL/cpu.shares` 160 [ -f "$CPUCTL/tmp/cpu.shares" ] || return 1 162 shares=`cat $CPUCTL/tmp/cpu.shares` 192 [ -f "$CPUCTL/tmp/tmp1/cpu.shares" ] || return 1 194 shares=`cat $CPUCTL/tmp/tmp1/cpu [all...] |
| /third_party/mesa3d/src/gallium/drivers/vc4/ |
| H A D | vc4_tiling_lt.c | 131 void *cpu, uint32_t cpu_stride, in vc4_lt_image_aligned() 145 v3d_load_utile(cpu + (cpu_stride * y + in vc4_lt_image_aligned() 153 cpu + (cpu_stride * y + in vc4_lt_image_aligned() 171 void *cpu, uint32_t cpu_stride, in vc4_lt_image_unaligned() 201 memcpy(cpu + x * cpp, gpu_row + offs_x, cpp); in vc4_lt_image_unaligned() 203 memcpy(gpu_row + offs_x, cpu + x * cpp, cpp); in vc4_lt_image_unaligned() 219 cpu += cpu_stride; in vc4_lt_image_unaligned() 228 void *cpu, uint32_t cpu_stride, in vc4_lt_image_helper() 236 cpu, cpu_stride, in vc4_lt_image_helper() 240 cpu, cpu_strid in vc4_lt_image_helper() 130 vc4_lt_image_aligned(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride, int cpp, const struct pipe_box *box, bool to_cpu) vc4_lt_image_aligned() argument 170 vc4_lt_image_unaligned(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride, int cpp, const struct pipe_box *box, bool to_cpu) vc4_lt_image_unaligned() argument 227 vc4_lt_image_helper(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride, int cpp, const struct pipe_box *box, bool to_cpu) vc4_lt_image_helper() argument 246 vc4_lt_image_cpp_helper(void *gpu, uint32_t gpu_stride, void *cpu, uint32_t cpu_stride, int cpp, const struct pipe_box *box, bool to_cpu) vc4_lt_image_cpp_helper() argument [all...] |
| /third_party/musl/porting/linux/user/src/sched/ |
| H A D | sched_getcpu.c | 27 static long getcpu_init(unsigned *cpu, unsigned *node, void *unused) in getcpu_init() argument 33 return f ? f(cpu, node, unused) : -ENOSYS; in getcpu_init() 43 unsigned cpu; in sched_getcpu() local 48 r = f(&cpu, 0, 0); in sched_getcpu() 49 if (!r) return cpu; in sched_getcpu() 54 r = __syscall(SYS_getcpu, &cpu, 0, 0); in sched_getcpu() 55 if (!r) return cpu; in sched_getcpu()
|
| /third_party/musl/src/sched/ |
| H A D | sched_getcpu.c | 13 static long getcpu_init(unsigned *cpu, unsigned *node, void *unused) in getcpu_init() argument 23 return f ? f(cpu, node, unused) : -ENOSYS; in getcpu_init() 33 unsigned cpu; in sched_getcpu() local 38 r = f(&cpu, 0, 0); in sched_getcpu() 39 if (!r) return cpu; in sched_getcpu() 44 r = __syscall(SYS_getcpu, &cpu, 0, 0); in sched_getcpu() 45 if (!r) return cpu; in sched_getcpu()
|
| /third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/tools/ |
| H A D | cpuhotplug_report_proc_interrupts | 12 foreach my $cpu (sort keys %{$run1->{$irq}}) { 13 printf "%-5s ", $cpu; 19 foreach my $cpu (sort keys %{$run1->{$irq}}) { 20 printf "%-5s ", $run2->{$irq}->{$cpu} - $run1->{$irq}->{$cpu}; 42 foreach my $cpu (@cpus) { 43 $run{"IRQ$irq"}->{"$cpu"} = shift @items;
|
| /third_party/skia/third_party/externals/abseil-cpp/ |
| H A D | generate_def_files.py | 53 def _GenerateDefFile(cpu, is_debug, extra_gn_args=[], suffix=None): 65 'target_cpu = "{}"'.format(cpu), 82 logging.info('[%s - %s] Creating tmp out dir in %s', cpu, flavor, out_dir) 85 logging.info('[%s - %s] gn gen completed', cpu, flavor) 89 logging.info('[%s - %s] autoninja completed', cpu, flavor) 97 logging.info('[%s - %s] Found %d object files.', cpu, flavor, len(obj_files)) 140 logging.info('[%s - %s] Found %d absl symbols.', cpu, flavor, len(absl_symbols)) 144 'symbols_{}_{}_{}.def'.format(cpu, flavor, suffix)) 147 'symbols_{}_{}.def'.format(cpu, flavor)) 157 logging.info('[%s - %s] .def file successfully generated.', cpu, flavo [all...] |
| /third_party/musl/libc-test/src/functionalext/supplement/sched/ |
| H A D | __sched_cpucount.c | 41 for (int cpu = 0; cpu < num_cpus; cpu++) { in __sched_cpucount_0100() 42 CPU_SET_S(cpu, size, cpusetp); in __sched_cpucount_0100() 67 for (int cpu = 0; cpu < num_cpus; cpu++) { in __sched_cpucount_0200() 68 CPU_SET_S(cpu, size, cpusetp); in __sched_cpucount_0200()
|
| /third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/ |
| H A D | vdso_support.cc | 138 long VDSOSupport::GetCPUViaSyscall(unsigned *cpu, // NOLINT(runtime/int) in GetCPUViaSyscall() argument 141 return syscall(SYS_getcpu, cpu, nullptr, nullptr); in GetCPUViaSyscall() 144 static_cast<void>(cpu); // Avoid an unused argument compiler warning. in GetCPUViaSyscall() 151 long VDSOSupport::InitAndGetCPU(unsigned *cpu, // NOLINT(runtime/int) in InitAndGetCPU() argument 156 return (*fn)(cpu, x, y); in InitAndGetCPU() 164 unsigned cpu; in GetCPU() local 165 int ret_code = (*VDSOSupport::getcpu_fn_)(&cpu, nullptr, nullptr); in GetCPU() 166 return ret_code == 0 ? cpu : ret_code; in GetCPU()
|
| /third_party/lzma/C/ |
| H A D | Threads.h | 62 #define CpuSet_Set(p, cpu) *(p) |= ((DWORD_PTR)1 << (cpu))
87 #define CpuSet_Set(p, cpu) CPU_SET(cpu, p)
88 #define CpuSet_IsSet(p, cpu) CPU_ISSET(cpu, p)
94 #define CpuSet_Set(p, cpu) *(p) |= ((UInt64)1 << (cpu))
95 #define CpuSet_IsSet(p, cpu) ((*(p) & ((UInt64)1 << (cpu))) ! [all...] |
| /third_party/mesa3d/src/asahi/lib/ |
| H A D | decode.c | 73 if (mem && mem->ptr.cpu && !mem->ro) { in agxdecode_find_mapped_gpu_mem_containing() 74 mprotect(mem->ptr.cpu, mem->size, PROT_READ); in agxdecode_find_mapped_gpu_mem_containing() 222 return mem->ptr.cpu + gpu_va - mem->ptr.gpu; in __agxdecode_fetch_gpu_mem() 233 mprotect(ro_mappings[i]->ptr.cpu, ro_mappings[i]->size, in agxdecode_map_read_write() 262 hexdump(agxdecode_dump_stream, bo->ptr.cpu, bo->size, false); in agxdecode_dump_bo() 279 uint8_t *end = (uint8_t *) alloc->ptr.cpu + alloc->size; in agxdecode_stateful() 493 agxdecode_decode_segment_list(map->ptr.cpu); in agxdecode_cmdstream() 496 agx_unpack(agxdecode_dump_stream, cmdbuf->ptr.cpu, IOGPU_HEADER, cmd); in agxdecode_cmdstream() 498 agx_unpack(agxdecode_dump_stream, ((uint32_t *) cmdbuf->ptr.cpu) + 160, in agxdecode_cmdstream() 501 DUMP_CL(IOGPU_INTERNAL_PIPELINES, ((uint32_t *) cmdbuf->ptr.cpu) in agxdecode_cmdstream() [all...] |
| /third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
| H A D | libcpuset.c | 135 /* Stashed copy of cpunodemap[], mapping each cpu to its node. */ 184 * which say that for cpu on node N (from the path above), the 1102 * Return 1 if 'cpu' is online, else 0 if offline. Tests the file 1103 * /sys/devices/system/cpu/cpuN/online file for 0 or 1 contents 1104 * were N == cpu number. 1107 char cpu_online(unsigned int cpu) in cpu_online() argument 1113 "/sys/devices/system/cpu/cpu%d/online", cpu); in cpu_online() 1115 return 0; /* oops - guess that cpu' in cpu_online() 1204 unsigned int cpu, mem; rebuild_map() local 1247 unsigned int cpu, mem; load_map() local 1283 unsigned int cpu, mem; store_map() local 1360 unsigned int cpu; cpuset_localcpus() local 1379 unsigned int cpu; cpuset_localmems() local 1675 cpuset_cpumemdist(int cpu, int mem) cpuset_cpumemdist() argument 1708 cpuset_cpu2node(int cpu) cpuset_cpu2node() argument 1938 unsigned int cpu; cpuset_would_crash_kernel() local 2948 cpuset_c_rel_to_sys_cpu(const struct cpuset *cp, int cpu) cpuset_c_rel_to_sys_cpu() argument 2964 cpuset_c_sys_to_rel_cpu(const struct cpuset *cp, int cpu) cpuset_c_sys_to_rel_cpu() argument 3012 cpuset_p_rel_to_sys_cpu(pid_t pid, int cpu) cpuset_p_rel_to_sys_cpu() argument 3028 cpuset_p_sys_to_rel_cpu(pid_t pid, int cpu) cpuset_p_sys_to_rel_cpu() argument 3367 cpuset_cpubind(int cpu) cpuset_cpubind() argument 3406 int cpu = -1; cpuset_latestcpu() local 3648 int cpu, r; cpuset_pin() local [all...] |
| H A D | cpuset.h | 74 * cpuset_cpumemdist(cpu, mem) - [optional] Hardware distance from CPU to Memory Node 75 * cpuset_cpu2node(cpu) - [optional] Return Memory Node closest to cpu 115 * cpuset_c_rel_to_sys_cpu(cp, cpu) - Map cpuset relative cpu to system wide 116 * cpuset_c_sys_to_rel_cpu(cp, cpu) - Map system wide cpu to cpuset relative 119 * cpuset_p_rel_to_sys_cpu(pid, cpu) - Map cpuset relative cpu to system wide 120 * cpuset_p_sys_to_rel_cpu(pid, cpu) [all...] |
| /third_party/vixl/test/ |
| H A D | test-api.cc | 32 #include "cpu-features.h" 446 CPUFeatures cpu(CPUFeatures::kCRC32, CPUFeatures::kSHA1, CPUFeatures::kAES); in TEST() 447 GetCPUFeaturesWrapper top_level(&cpu); in TEST() 449 const CPUFeatures original_outer = cpu; in TEST() 453 VIXL_CHECK(outer.GetCPUFeatures() == &cpu); in TEST() 454 VIXL_CHECK(cpu.Has(CPUFeatures::kCRC32, in TEST() 461 cpu.Combine(CPUFeatures::kSHA1, CPUFeatures::kAtomics); in TEST() 462 VIXL_CHECK(cpu.Has(CPUFeatures::kCRC32, in TEST() 466 VIXL_CHECK(cpu.Has(CPUFeatures::kAtomics)); in TEST() 468 cpu in TEST() [all...] |
| /third_party/ltp/include/lapi/ |
| H A D | cpuset.h | 8 * dynamically sized cpu sets, but provide only static cpu_set_t type 44 #define CPU_SET_S(cpu, size, mask) CPU_SET(cpu, mask) 48 #define CPU_ISSET_S(cpu, size, mask) CPU_ISSET(cpu, mask)
|
| /third_party/mesa3d/src/panfrost/lib/ |
| H A D | pan_scoreboard.h | 182 pan_pack(job->cpu, JOB_HEADER, header) { in panfrost_add_job() 205 scoreboard->first_tiler = (void *)job->cpu; in panfrost_add_job() 214 scoreboard->first_tiler = (void *)job->cpu; in panfrost_add_job() 232 scoreboard->prev_job = (struct mali_job_header_packed *)job->cpu; in panfrost_add_job() 255 pan_section_pack(transfer.cpu, WRITE_VALUE_JOB, HEADER, header) { in panfrost_scoreboard_initialize_tiler() 261 pan_section_pack(transfer.cpu, WRITE_VALUE_JOB, PAYLOAD, payload) { in panfrost_scoreboard_initialize_tiler()
|
| /third_party/node/deps/v8/tools/ |
| H A D | cpu.sh | 6 CPUPATH=/sys/devices/system/cpu 13 echo "$1" > $CPUPATH/cpu$i/cpufreq/scaling_governor 21 echo 1 > $CPUPATH/cpu$i/online 23 echo 0 > $CPUPATH/cpu$i/online
|