/external/linux-kselftest/tools/testing/selftests/cpu-hotplug/ |
D | cpu-on-off-test.sh | 26 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then 27 echo $msg cpu hotplug is not supported >&2 32 online_cpus=`cat $SYSFS/devices/system/cpu/online` 40 present_cpus=`cat $SYSFS/devices/system/cpu/present` 46 offline_cpus=`cat $SYSFS/devices/system/cpu/offline` 62 for cpu in $SYSFS/devices/system/cpu/cpu*; do 63 if [ -f $cpu/online ] && grep -q $state $cpu/online; then 64 echo ${cpu##/*/cpu} 81 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online 86 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online [all …]
|
/external/u-boot/arch/arm/dts/ |
D | thunderx-88xx.dtsi | 24 cpu@000 { 25 device_type = "cpu"; 30 cpu@001 { 31 device_type = "cpu"; 36 cpu@002 { 37 device_type = "cpu"; 42 cpu@003 { 43 device_type = "cpu"; 48 cpu@004 { 49 device_type = "cpu"; [all …]
|
D | meson-g12b.dtsi | 17 cpu-map { 20 cpu = <&cpu0>; 24 cpu = <&cpu1>; 30 cpu = <&cpu100>; 34 cpu = <&cpu101>; 38 cpu = <&cpu102>; 42 cpu = <&cpu103>; 47 cpu0: cpu@0 { 48 device_type = "cpu"; 55 cpu1: cpu@1 { [all …]
|
/external/mesa3d/src/broadcom/common/ |
D | v3d_cpu_tiling.h | 31 v3d_load_utile(void *cpu, uint32_t cpu_stride, in v3d_load_utile() argument 52 : [cpu] "+r"(cpu) in v3d_load_utile() 58 void *cpu2 = cpu + 8; in v3d_load_utile() 76 : [cpu] "+r"(cpu), in v3d_load_utile() 101 : [cpu] "+r"(cpu) in v3d_load_utile() 107 void *cpu2 = cpu + 8; in v3d_load_utile() 125 : [cpu] "+r"(cpu), in v3d_load_utile() 135 memcpy(cpu, gpu + gpu_offset, gpu_stride); in v3d_load_utile() 136 cpu += cpu_stride; in v3d_load_utile() 142 void *cpu, uint32_t cpu_stride) in v3d_store_utile() argument [all …]
|
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/include/ |
D | cpuhotplug_hotplug.sh | 72 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 78 $TIME echo 1 > /sys/devices/system/cpu/cpu${CPU}/online 93 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 99 $TIME echo 0 > /sys/devices/system/cpu/cpu${CPU}/online 112 [ -d /sys/devices/system/cpu/cpu0 ] || return -1 113 NUM=`ls /sys/devices/system/cpu/ \ 128 [ -d /sys/devices/system/cpu ] || return 1 129 (cd /sys/devices/system/cpu; ls -d cpu[0-9]*) 156 for cpu in $(seq $range_low $range_high); do 157 if [ -e /sys/devices/system/cpu/cpu$cpu ]; then [all …]
|
/external/chromium-trace/catapult/systrace/systrace/test_data/ |
D | profile-chrome_systrace_perf_chrome_data | 1 …cpu": 2, "comm": "ksoftirqd/2", "tid": 14106, "sf": 539}, {"name": "cycles:HG", "weight": 1132096,…
|
/external/autotest/client/tests/tsc/src/ |
D | sched.h | 16 # define __CPUELT(cpu) ((cpu) / __NCPUBITS) argument 17 # define __CPUMASK(cpu) ((__cpu_mask) 1 << ((cpu) % __NCPUBITS)) argument 33 # define __CPU_SET(cpu, cpusetp) \ argument 34 ((cpusetp)->__bits[__CPUELT (cpu)] |= __CPUMASK (cpu)) 35 # define __CPU_CLR(cpu, cpusetp) \ argument 36 ((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu)) 37 # define __CPU_ISSET(cpu, cpusetp) \ argument 38 (((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0) 42 #define CPU_SET(cpu, cpusetp) __CPU_SET (cpu, cpusetp) argument 43 #define CPU_CLR(cpu, cpusetp) __CPU_CLR (cpu, cpusetp) argument [all …]
|
/external/libchrome/base/ |
D | cpu_unittest.cc | 23 base::CPU cpu; in TEST() local 25 ASSERT_TRUE(cpu.has_mmx()); in TEST() 26 ASSERT_TRUE(cpu.has_sse()); in TEST() 27 ASSERT_TRUE(cpu.has_sse2()); in TEST() 40 if (cpu.has_sse3()) { in TEST() 45 if (cpu.has_ssse3()) { in TEST() 50 if (cpu.has_sse41()) { in TEST() 55 if (cpu.has_sse42()) { in TEST() 60 if (cpu.has_popcnt()) { in TEST() 65 if (cpu.has_avx()) { in TEST() [all …]
|
/external/arm-trusted-firmware/plat/hisilicon/hikey/ |
D | hisi_ipc.c | 37 int hisi_cpus_pd_in_cluster_besides_curr(unsigned int cpu, in hisi_cpus_pd_in_cluster_besides_curr() argument 48 if (cpu == i) in hisi_cpus_pd_in_cluster_besides_curr() 59 int hisi_cpus_powered_off_besides_curr(unsigned int cpu) in hisi_cpus_powered_off_besides_curr() argument 64 return (val == (0x8 << (cpu * 4))); in hisi_cpus_powered_off_besides_curr() 97 void hisi_ipc_cpu_on_off(unsigned int cpu, unsigned int cluster, in hisi_ipc_cpu_on_off() argument 104 offset = cluster * 16 + cpu * 4; in hisi_ipc_cpu_on_off() 106 offset = cluster * 16 + cpu * 4 + 1; in hisi_ipc_cpu_on_off() 116 hisi_ipc_send(cpu_ipc_num[cluster][cpu]); in hisi_ipc_cpu_on_off() 119 void hisi_ipc_cpu_on(unsigned int cpu, unsigned int cluster) in hisi_ipc_cpu_on() argument 121 hisi_ipc_cpu_on_off(cpu, cluster, HISI_IPC_PM_ON); in hisi_ipc_cpu_on() [all …]
|
/external/u-boot/arch/arm/cpu/armv7/sunxi/ |
D | psci.c | 37 #define SUN8I_R40_PWR_CLAMP(cpu) (0x120 + (cpu) * 0x4) argument 103 int cpu) in sunxi_power_switch() argument 114 clrbits_le32(&pwroff, BIT(cpu)); in sunxi_power_switch() 117 setbits_le32(&pwroff, BIT(cpu)); in sunxi_power_switch() 145 static void __secure sunxi_cpu_set_power(int __always_unused cpu, bool on) in sunxi_cpu_set_power() argument 154 static void __secure sunxi_cpu_set_power(int cpu, bool on) in sunxi_cpu_set_power() argument 159 sunxi_power_switch((void *)cpucfg + SUN8I_R40_PWR_CLAMP(cpu), in sunxi_cpu_set_power() 164 static void __secure sunxi_cpu_set_power(int cpu, bool on) in sunxi_cpu_set_power() argument 169 sunxi_power_switch(&prcm->cpu_pwr_clamp[cpu], &prcm->cpu_pwroff, in sunxi_cpu_set_power() 170 on, cpu); in sunxi_cpu_set_power() [all …]
|
/external/google-breakpad/src/client/linux/dump_writer_common/ |
D | seccomp_unwinder.cc | 39 void SeccompUnwinder::PopSeccompStackFrame(RawContextCPU* cpu, in PopSeccompStackFrame() argument 43 uint64_t bp = cpu->rbp; in PopSeccompStackFrame() 86 cpu->rbx = seccomp_stackframe.rbx; in PopSeccompStackFrame() 87 cpu->rcx = seccomp_stackframe.rcx; in PopSeccompStackFrame() 88 cpu->rdx = seccomp_stackframe.rdx; in PopSeccompStackFrame() 89 cpu->rsi = seccomp_stackframe.rsi; in PopSeccompStackFrame() 90 cpu->rdi = seccomp_stackframe.rdi; in PopSeccompStackFrame() 91 cpu->rbp = seccomp_stackframe.rbp; in PopSeccompStackFrame() 92 cpu->rsp = top + 4*sizeof(uint64_t) + 128; in PopSeccompStackFrame() 93 cpu->r8 = seccomp_stackframe.r8; in PopSeccompStackFrame() [all …]
|
/external/arm-trusted-firmware/plat/mediatek/mt8183/drivers/spmc/ |
D | mtspmc.c | 40 void spm_enable_cpu_auto_off(int cluster, int cpu) in spm_enable_cpu_auto_off() argument 42 uintptr_t reg = per_cpu(cluster, cpu, MCUCFG_SPARK); in spm_enable_cpu_auto_off() 48 void spm_disable_cpu_auto_off(int cluster, int cpu) in spm_disable_cpu_auto_off() argument 50 uintptr_t reg = per_cpu(cluster, cpu, MCUCFG_SPARK); in spm_disable_cpu_auto_off() 56 void spm_set_cpu_power_off(int cluster, int cpu) in spm_set_cpu_power_off() argument 58 mmio_clrbits_32(per_cpu(cluster, cpu, SPM_CPU_PWR), PWRCTRL_PWR_ON); in spm_set_cpu_power_off() 73 void mcucfg_set_bootaddr(int cluster, int cpu, uintptr_t bootaddr) in mcucfg_set_bootaddr() argument 81 assert(cpu >= 0 && cpu < 4); in mcucfg_set_bootaddr() 82 reg = mp2_bootreg[cpu]; in mcucfg_set_bootaddr() 84 reg = per_cpu(cluster, cpu, MCUCFG_BOOTADDR); in mcucfg_set_bootaddr() [all …]
|
/external/u-boot/arch/arm/mach-stm32mp/ |
D | psci.c | 33 static inline void psci_set_state(int cpu, u8 state) in psci_set_state() argument 35 psci_state[cpu] = state; in psci_set_state() 50 static void __secure stm32mp_raise_sgi0(int cpu) in stm32mp_raise_sgi0() argument 57 writel((BIT(cpu) << 16), gic_dist_addr + GICD_SGIR); in stm32mp_raise_sgi0() 62 u32 cpu = psci_get_cpu_id(); in psci_arch_cpu_entry() local 64 psci_set_state(cpu, PSCI_AFFINITY_LEVEL_ON); in psci_arch_cpu_entry() 93 u32 cpu = target_affinity & MPIDR_AFF0; in psci_affinity_info() local 101 if (cpu >= STM32MP1_PSCI_NR_CPUS) in psci_affinity_info() 104 return psci_state[cpu]; in psci_affinity_info() 122 u32 cpu = target_cpu & MPIDR_AFF0; in psci_cpu_on() local [all …]
|
/external/ltp/testcases/open_posix_testsuite/include/ |
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 49 fscanf(f, "%d", &cpu); in get_online_cpu_from_sysfs() 52 return cpu; in get_online_cpu_from_sysfs() 58 int cpu = -1; in get_online_cpu_from_cpuinfo() local 74 if (sscanf(line, "processor%*[^0123456789]%d", &cpu) == 1) in get_online_cpu_from_cpuinfo() 79 return cpu; in get_online_cpu_from_cpuinfo() 84 int cpu; in set_affinity_single() local 86 cpu = get_online_cpu_from_sysfs(); in set_affinity_single() [all …]
|
/external/ltp/testcases/kernel/power_management/ |
D | runpwtests03.sh | 31 for cpu in $(seq 0 "${total_cpus}" ) 33 cpufiles=$(find /sys/devices/system/cpu/cpu"${cpu}"/cpufreq/ \ 56 for cpu in $(seq 0 "${total_cpus}" ) 61 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_governor 64 "governor -- ${govr} for cpu${cpu}" 84 for cpu in $(seq 0 "${total_cpus}" ) 87 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_governor 93 for cpu in $(seq 0 "${total_cpus}" ) 98 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_setspeed 101 "to set frequency -- ${freq} for cpu${cpu}" [all …]
|
/external/arm-trusted-firmware/fdts/ |
D | fvp-base-gicv3-psci-common.dtsi | 42 cpu-map { 45 cpu = <&CPU0>; 48 cpu = <&CPU1>; 51 cpu = <&CPU2>; 54 cpu = <&CPU3>; 60 cpu = <&CPU4>; 63 cpu = <&CPU5>; 66 cpu = <&CPU6>; 69 cpu = <&CPU7>; 77 CPU_SLEEP_0: cpu-sleep-0 { [all …]
|
D | fvp-base-gicv2-psci.dts | 44 cpu-map { 47 cpu = <&CPU0>; 50 cpu = <&CPU1>; 53 cpu = <&CPU2>; 56 cpu = <&CPU3>; 62 cpu = <&CPU4>; 65 cpu = <&CPU5>; 68 cpu = <&CPU6>; 71 cpu = <&CPU7>; 79 CPU_SLEEP_0: cpu-sleep-0 { [all …]
|
D | fvp-base-gicv2-psci-aarch32.dts | 44 cpu-map { 47 cpu = <&CPU0>; 50 cpu = <&CPU1>; 53 cpu = <&CPU2>; 56 cpu = <&CPU3>; 62 cpu = <&CPU4>; 65 cpu = <&CPU5>; 68 cpu = <&CPU6>; 71 cpu = <&CPU7>; 79 CPU_SLEEP_0: cpu-sleep-0 { [all …]
|
D | fvp-base-gicv3-psci-aarch32-common.dtsi | 42 cpu-map { 45 cpu = <&CPU0>; 48 cpu = <&CPU1>; 51 cpu = <&CPU2>; 54 cpu = <&CPU3>; 60 cpu = <&CPU4>; 63 cpu = <&CPU5>; 66 cpu = <&CPU6>; 69 cpu = <&CPU7>; 77 CPU_SLEEP_0: cpu-sleep-0 { [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | one_hot_op_test.cc | 66 BM_OneHot(32, 512, 1, cpu); 67 BM_OneHot(64, 512, 1, cpu); 68 BM_OneHot(128, 512, 1, cpu); 70 BM_OneHot(32, 1024, 1, cpu); 71 BM_OneHot(64, 1024, 1, cpu); 72 BM_OneHot(128, 1024, 1, cpu); 74 BM_OneHot(32, 10000, 1, cpu); 75 BM_OneHot(64, 10000, 1, cpu); 76 BM_OneHot(128, 10000, 1, cpu); 78 BM_OneHot(32, 512, 0, cpu); [all …]
|
/external/arm-trusted-firmware/plat/mediatek/mt8183/ |
D | plat_pm.c | 112 #define CPU_IDX(cluster, cpu) ((cluster << 2) + cpu) argument 136 static bool clst_single_pwr(int cluster, int cpu) in clst_single_pwr() argument 140 int my_idx = (cluster << 2) + cpu; in clst_single_pwr() 146 static bool clst_single_on(int cluster, int cpu) in clst_single_on() argument 149 int my_idx = (cluster << 2) + cpu; in clst_single_on() 212 static void mcdi_ctrl_before_hotplug_on(int cluster, int cpu) in mcdi_ctrl_before_hotplug_on() argument 215 mcdi_pause_clr(cluster, CPU_IDX(cluster, cpu), OFF); in mcdi_ctrl_before_hotplug_on() 216 mcdi_pause_set(cluster, CPU_IDX(cluster, cpu), ON); in mcdi_ctrl_before_hotplug_on() 220 static void mcdi_ctrl_before_hotplug_off(int cluster, int cpu, bool cluster_off) in mcdi_ctrl_before_hotplug_off() argument 224 CPU_IDX(cluster, cpu), OFF); in mcdi_ctrl_before_hotplug_off() [all …]
|
/external/arm-trusted-firmware/plat/nvidia/tegra/common/drivers/flowctrl/ |
D | flowctrl.c | 86 unsigned int i, cpu = read_mpidr() & MPIDR_CPU_MASK; in tegra_fc_ccplex_pgexit_lock() local 99 if (i == cpu) in tegra_fc_ccplex_pgexit_lock() 125 int cpu = mpidr & MPIDR_CPU_MASK; in tegra_fc_cpu_powerdn() local 127 VERBOSE("CPU%d powering down...\n", cpu); in tegra_fc_cpu_powerdn() 128 tegra_fc_prepare_suspend(cpu, 0); in tegra_fc_cpu_powerdn() 136 int cpu = mpidr & MPIDR_CPU_MASK; in tegra_fc_cluster_idle() local 141 tegra_fc_cc4_ctrl(cpu, 0); in tegra_fc_cluster_idle() 149 tegra_fc_prepare_suspend(cpu, val); in tegra_fc_cluster_idle() 157 int cpu = mpidr & MPIDR_CPU_MASK; in tegra_fc_cluster_powerdn() local 162 tegra_fc_cc4_ctrl(cpu, 0); in tegra_fc_cluster_powerdn() [all …]
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_bpf_cpu.c | 187 int epfd, cpu; in test() local 195 for (cpu = 0; cpu < len; ++cpu) { in test() 197 ev.data.fd = rcv_fd[cpu]; in test() 198 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev)) in test() 203 for (cpu = 0; cpu < len; ++cpu) { in test() 204 send_from_cpu(cpu, family, proto); in test() 205 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() 209 for (cpu = len - 1; cpu >= 0; --cpu) { in test() 210 send_from_cpu(cpu, family, proto); in test() 211 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() [all …]
|
/external/autotest/client/tests/monotonic_time/src/ |
D | cpuset.c | 19 int cpu; in count_cpus() local 21 for (cpu = 0; cpu < CPU_SETSIZE; cpu++) in count_cpus() 22 if (CPU_ISSET(cpu, cpus)) in count_cpus() 38 int cpu; in parse_cpu_set() local 72 for (cpu = start; cpu <= end; ++cpu) in parse_cpu_set() 73 CPU_SET(cpu, cpus); in parse_cpu_set() 116 int cpu; in show_cpu_set() local 118 for (cpu = 0; cpu < CPU_SETSIZE; cpu++) { in show_cpu_set() 119 if (CPU_ISSET(cpu, cpus)) { in show_cpu_set() 121 start = cpu; in show_cpu_set() [all …]
|
/external/linux-kselftest/tools/testing/selftests/rseq/ |
D | basic_percpu_ops_test.c | 50 int cpu; in rseq_this_cpu_lock() local 55 cpu = rseq_cpu_start(); in rseq_this_cpu_lock() 56 ret = rseq_cmpeqv_storev(&lock->c[cpu].v, in rseq_this_cpu_lock() 57 0, 1, cpu); in rseq_this_cpu_lock() 67 return cpu; in rseq_this_cpu_lock() 70 void rseq_percpu_unlock(struct percpu_lock *lock, int cpu) in rseq_percpu_unlock() argument 72 assert(lock->c[cpu].v == 1); in rseq_percpu_unlock() 77 rseq_smp_store_release(&lock->c[cpu].v, 0); in rseq_percpu_unlock() 83 int i, cpu; in test_percpu_spinlock_thread() local 91 cpu = rseq_this_cpu_lock(&data->lock); in test_percpu_spinlock_thread() [all …]
|