Home
last modified time | relevance | path

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

123456

/OK3568_Linux_fs/kernel/arch/arm/mach-exynos/
H A Dplatsmp.c33 static inline void cpu_leave_lowpower(u32 core_id) in cpu_leave_lowpower() argument
52 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in platform_do_lowpower() local
57 exynos_cpu_power_down(core_id); in platform_do_lowpower()
61 if (exynos_pen_release == core_id) { in platform_do_lowpower()
213 void exynos_core_restart(u32 core_id) in exynos_core_restart() argument
226 pr_err("cpu core %u restart failed\n", core_id); in exynos_core_restart()
231 val = pmu_raw_readl(EXYNOS_ARM_CORE_STATUS(core_id)); in exynos_core_restart()
233 pmu_raw_writel(val, EXYNOS_ARM_CORE_STATUS(core_id)); in exynos_core_restart()
235 pmu_raw_writel(EXYNOS_CORE_PO_RESET(core_id), EXYNOS_SWRESET); in exynos_core_restart()
269 int exynos_set_boot_addr(u32 core_id, unsigned long boot_addr) in exynos_set_boot_addr() argument
[all …]
H A Dexynos.c121 unsigned int tmp, core_id; in exynos_set_delayed_reset_assertion() local
123 for (core_id = 0; core_id < num_possible_cpus(); core_id++) { in exynos_set_delayed_reset_assertion()
124 tmp = pmu_raw_readl(EXYNOS_ARM_CORE_OPTION(core_id)); in exynos_set_delayed_reset_assertion()
129 pmu_raw_writel(tmp, EXYNOS_ARM_CORE_OPTION(core_id)); in exynos_set_delayed_reset_assertion()
H A Dcommon.h151 extern void exynos_core_restart(u32 core_id);
152 extern int exynos_set_boot_addr(u32 core_id, unsigned long boot_addr);
153 extern int exynos_get_boot_addr(u32 core_id, unsigned long *boot_addr);
/OK3568_Linux_fs/kernel/sound/soc/intel/skylake/
H A Dskl-sst-dsp.c336 int skl_dsp_get_core(struct sst_dsp *ctx, unsigned int core_id) in skl_dsp_get_core() argument
341 if (core_id >= skl->cores.count) { in skl_dsp_get_core()
342 dev_err(ctx->dev, "invalid core id: %d\n", core_id); in skl_dsp_get_core()
346 skl->cores.usage_count[core_id]++; in skl_dsp_get_core()
348 if (skl->cores.state[core_id] == SKL_DSP_RESET) { in skl_dsp_get_core()
349 ret = ctx->fw_ops.set_state_D0(ctx, core_id); in skl_dsp_get_core()
351 dev_err(ctx->dev, "unable to get core%d\n", core_id); in skl_dsp_get_core()
358 core_id, skl->cores.state[core_id], in skl_dsp_get_core()
359 skl->cores.usage_count[core_id]); in skl_dsp_get_core()
365 int skl_dsp_put_core(struct sst_dsp *ctx, unsigned int core_id) in skl_dsp_put_core() argument
[all …]
H A Dcnl-sst.c188 static int cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in cnl_set_dsp_D0() argument
191 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in cnl_set_dsp_D0()
203 cnl->cores.state[core_id] = SKL_DSP_RUNNING; in cnl_set_dsp_D0()
210 core_id, ret); in cnl_set_dsp_D0()
214 if (core_id == SKL_DSP_CORE0_ID) { in cnl_set_dsp_D0()
238 core_id, ret); in cnl_set_dsp_D0()
242 cnl->cores.state[core_id] = SKL_DSP_RUNNING; in cnl_set_dsp_D0()
251 static int cnl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) in cnl_set_dsp_D3() argument
254 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in cnl_set_dsp_D3()
266 core_id); in cnl_set_dsp_D3()
[all …]
H A Dbxt-sst.c387 static int bxt_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in bxt_set_dsp_D0() argument
392 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in bxt_set_dsp_D0()
410 skl->cores.state[core_id] = SKL_DSP_RUNNING; in bxt_set_dsp_D0()
415 if (core_id == SKL_DSP_CORE0_ID) in bxt_set_dsp_D0()
424 if (core_id == SKL_DSP_CORE0_ID) { in bxt_set_dsp_D0()
439 if (core_id == SKL_DSP_CORE0_ID) { in bxt_set_dsp_D0()
459 if (core_id != SKL_DSP_CORE0_ID) { in bxt_set_dsp_D0()
467 core_id, ret); in bxt_set_dsp_D0()
472 skl->cores.state[core_id] = SKL_DSP_RUNNING; in bxt_set_dsp_D0()
475 if (core_id == SKL_DSP_CORE0_ID) in bxt_set_dsp_D0()
[all …]
H A Dskl-sst.c160 static int skl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) in skl_set_dsp_D0() argument
165 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in skl_set_dsp_D0()
168 if (core_id == SKL_DSP_CORE0_ID) { in skl_set_dsp_D0()
192 if (core_id != SKL_DSP_CORE0_ID) { in skl_set_dsp_D0()
204 core_id); in skl_set_dsp_D0()
209 skl->cores.state[core_id] = SKL_DSP_RUNNING; in skl_set_dsp_D0()
214 static int skl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) in skl_set_dsp_D3() argument
219 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in skl_set_dsp_D3()
226 dev_err(ctx->dev, "set Dx core %d fail: %d\n", core_id, ret); in skl_set_dsp_D3()
228 if (core_id == SKL_DSP_CORE0_ID) { in skl_set_dsp_D3()
[all …]
H A Dskl-sst-dsp.h145 int (*set_state_D0)(struct sst_dsp *ctx, unsigned int core_id);
146 int (*set_state_D3)(struct sst_dsp *ctx, unsigned int core_id);
221 int skl_dsp_get_core(struct sst_dsp *ctx, unsigned int core_id);
222 int skl_dsp_put_core(struct sst_dsp *ctx, unsigned int core_id);
/OK3568_Linux_fs/kernel/arch/parisc/kernel/
H A Dtopology.c46 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks()
71 if (cpuid_topo->core_id != -1) in store_cpu_topology()
76 cpuid_topo->core_id = 0; in store_cpu_topology()
86 cpuid_topo->core_id = cpu_topology[cpu].core_id; in store_cpu_topology()
88 cpuid_topo->core_id++; in store_cpu_topology()
106 cpu_topology[cpuid].core_id, in store_cpu_topology()
132 cpu_topo->core_id = -1; in init_cpu_topology()
/OK3568_Linux_fs/u-boot/arch/arm/mach-exynos/
H A Dlowlevel_init.c123 uint32_t tmp, core_id, core_config; in power_down_core() local
131 mrc_mpafr(core_id); in power_down_core()
132 tmp = core_id & 0x3; in power_down_core()
133 core_id = (core_id >> 6) & ~3; in power_down_core()
134 core_id |= tmp; in power_down_core()
135 core_id &= 0x3f; in power_down_core()
138 core_config = (core_id * CPU_CONFIG_STATUS_OFFSET); in power_down_core()
/OK3568_Linux_fs/u-boot/arch/arm/mach-keystone/
H A Dcmd_mon.c72 int rcode = 0, core_id, on; in do_mon_power() local
80 core_id = simple_strtoul(argv[1], NULL, 16); in do_mon_power()
84 rcode = mon_power_on(core_id, fn); in do_mon_power()
86 rcode = mon_power_off(core_id); in do_mon_power()
90 printf("core %d powered on successfully\n", core_id); in do_mon_power()
92 printf("core %d power on failure\n", core_id); in do_mon_power()
94 printf("core %d powered off successfully\n", core_id); in do_mon_power()
H A Dmon.c35 int mon_power_on(int core_id, void *ep) in mon_power_on() argument
48 : "r" (core_id), "r" (ep) in mon_power_on()
53 int mon_power_off(int core_id) in mon_power_off() argument
65 : "r" (core_id) in mon_power_off()
/OK3568_Linux_fs/kernel/arch/powerpc/perf/
H A Dimc-pmu.c588 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init() local
597 mem_info = &core_imc_pmu->mem_info[core_id]; in core_imc_mem_init()
598 mem_info->id = core_id; in core_imc_mem_init()
609 core_imc_refc[core_id].id = core_id; in core_imc_mem_init()
610 mutex_init(&core_imc_refc[core_id].lock); in core_imc_mem_init()
626 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited() local
628 mem_info = &core_imc_pmu->mem_info[core_id]; in is_core_imc_mem_inited()
663 unsigned int core_id; in ppc_core_imc_cpu_offline() local
705 core_id = cpu / threads_per_core; in ppc_core_imc_cpu_offline()
706 ref = &core_imc_refc[core_id]; in ppc_core_imc_cpu_offline()
[all …]
/OK3568_Linux_fs/kernel/drivers/virt/nitro_enclaves/
H A Dne_misc_dev.c170 int core_id = -1; in ne_setup_cpu_pool() local
307 core_id = topology_core_id(cpu); in ne_setup_cpu_pool()
308 if (core_id < 0 || core_id >= ne_cpu_pool.nr_parent_vm_cores) { in ne_setup_cpu_pool()
310 ne_misc_dev.name, core_id, cpu); in ne_setup_cpu_pool()
317 cpumask_set_cpu(cpu, ne_cpu_pool.avail_threads_per_core[core_id]); in ne_setup_cpu_pool()
490 int core_id = -1; in ne_get_unused_core_from_cpu_pool() local
495 core_id = i; in ne_get_unused_core_from_cpu_pool()
500 return core_id; in ne_get_unused_core_from_cpu_pool()
517 int core_id, u32 vcpu_id) in ne_set_enclave_threads_per_core() argument
521 if (core_id < 0 && vcpu_id == 0) { in ne_set_enclave_threads_per_core()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/linux/
H A Dmali_linux_trace.h132 …TP_PROTO(pid_t pid, unsigned int active, unsigned int core_type, unsigned int core_id, unsigned in…
134 TP_ARGS(pid, active, core_type, core_id, frame_builder_id, flush_id),
140 __field(unsigned int, core_id)
149 __entry->core_id = core_id;
154 …ve ? "S" : "F", __entry->pid, __entry->core_type ? "GP" : "PP", __entry->core_id, __entry->flush_i…
H A Dmali_osk_profiling.c499 int core_id, counter_index, counter_number, counter_id; in _mali_profiling_global_counters_init() local
519 for (core_id = 0; core_id < num_gp_cores; core_id ++) { in _mali_profiling_global_counters_init()
520 global_mali_profiling_counters[counter_index].counter_id = ACTIVITY_VP_0 + core_id; in _mali_profiling_global_counters_init()
522 …i_profiling_counters[counter_index].counter_name), "ARM_Mali-%s_VP_%d_active", mali_name, core_id); in _mali_profiling_global_counters_init()
526 …global_mali_profiling_counters[counter_index].counter_id = COUNTER_VP_0_C0 + (2 * core_id) + count… in _mali_profiling_global_counters_init()
528 …nters[counter_index].counter_name), "ARM_Mali-%s_VP_%d_cnt%d", mali_name, core_id, counter_number); in _mali_profiling_global_counters_init()
533 for (core_id = 0; core_id < num_pp_cores; core_id++) { in _mali_profiling_global_counters_init()
535 global_mali_profiling_counters[counter_index].counter_id = ACTIVITY_FP_0 + core_id; in _mali_profiling_global_counters_init()
537 …i_profiling_counters[counter_index].counter_name), "ARM_Mali-%s_FP_%d_active", mali_name, core_id); in _mali_profiling_global_counters_init()
541 …global_mali_profiling_counters[counter_index].counter_id = COUNTER_FP_0_C0 + (2 * core_id) + count… in _mali_profiling_global_counters_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/base/
H A Darch_topology.c341 int core_id) in parse_core() argument
357 cpu_topology[cpu].core_id = core_id; in parse_core()
378 cpu_topology[cpu].core_id = core_id; in parse_core()
394 int core_id = 0; in parse_cluster() local
432 ret = parse_core(c, package_id, core_id++); in parse_cluster()
540 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks()
569 cpu_topo->core_id = -1; in reset_cpu_topology()
619 cpuid_topo->core_id = cpuid; in store_cpu_topology()
623 cpuid, cpuid_topo->package_id, cpuid_topo->core_id, in store_cpu_topology()
/OK3568_Linux_fs/u-boot/arch/arm/mach-imx/
H A Dimx_bootaux.c11 static int __arch_auxiliary_core_up(u32 core_id, u32 boot_private_data) in __arch_auxiliary_core_up() argument
17 int arch_auxiliary_core_up(u32 core_id, u32 boot_private_data)
21 static int __arch_auxiliary_core_check_up(u32 core_id) in __arch_auxiliary_core_check_up() argument
27 int arch_auxiliary_core_check_up(u32 core_id)
/OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/
H A Dmpp_vepu2.c321 s32 core_id; in vepu_prepare() local
332 clear_bit(mpp->core_id, &core_idle); in vepu_prepare()
335 core_id = find_first_bit(&core_idle, ccu->core_num); in vepu_prepare()
336 if (core_id >= ARRAY_SIZE(ccu->cores)) { in vepu_prepare()
338 mpp_dbg_core("core %d all busy %lx\n", core_id, ccu->core_idle); in vepu_prepare()
342 core_id = array_index_nospec(core_id, MPP_MAX_CORE_NUM); in vepu_prepare()
343 clear_bit(core_id, &ccu->core_idle); in vepu_prepare()
344 mpp_task->mpp = ccu->cores[core_id]; in vepu_prepare()
345 mpp_task->core_id = core_id; in vepu_prepare()
348 ccu->core_num, core_id, core_idle, ccu->core_idle); in vepu_prepare()
[all …]
H A Dmpp_rkvenc2.c1000 s32 core_id; in rkvenc2_prepare() local
1015 core_id = find_first_bit(&core_idle, core_id_max + 1); in rkvenc2_prepare()
1017 if (core_id >= core_id_max + 1 || !queue->cores[core_id]) { in rkvenc2_prepare()
1019 mpp_dbg_core("core %d all busy %lx\n", core_id, core_idle); in rkvenc2_prepare()
1023 clear_bit(core_id, &queue->core_idle); in rkvenc2_prepare()
1024 mpp_task->mpp = queue->cores[core_id]; in rkvenc2_prepare()
1025 mpp_task->core_id = core_id; in rkvenc2_prepare()
1027 mpp_dbg_core("core %d set idle %lx -> %lx\n", core_id, in rkvenc2_prepare()
1042 int core_id = enc->mpp.core_id; in rkvenc2_patch_dchs() local
1049 if (core_id >= RKVENC_MAX_CORE_NUM) { in rkvenc2_patch_dchs()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/kernel/
H A Dtopology.c205 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); in store_cpu_topology()
210 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); in store_cpu_topology()
220 cpuid_topo->core_id = 0; in store_cpu_topology()
228 cpu_topology[cpuid].core_id, in store_cpu_topology()
/OK3568_Linux_fs/kernel/drivers/input/joystick/iforce/
H A Diforce-ff.c341 int core_id = effect->id; in iforce_upload_periodic() local
342 struct iforce_core_effect* core_effect = iforce->core_effects + core_id; in iforce_upload_periodic()
343 struct resource* mod1_chunk = &(iforce->core_effects[core_id].mod1_chunk); in iforce_upload_periodic()
344 struct resource* mod2_chunk = &(iforce->core_effects[core_id].mod2_chunk); in iforce_upload_periodic()
411 int core_id = effect->id; in iforce_upload_constant() local
412 struct iforce_core_effect* core_effect = iforce->core_effects + core_id; in iforce_upload_constant()
413 struct resource* mod1_chunk = &(iforce->core_effects[core_id].mod1_chunk); in iforce_upload_constant()
414 struct resource* mod2_chunk = &(iforce->core_effects[core_id].mod2_chunk); in iforce_upload_constant()
467 int core_id = effect->id; in iforce_upload_condition() local
468 struct iforce_core_effect* core_effect = iforce->core_effects + core_id; in iforce_upload_condition()
/OK3568_Linux_fs/kernel/sound/soc/intel/catpt/
H A Ddsp.c497 u8 core_id; member
528 hdr->core_id = cdev->spec->core_id; in catpt_coredump()
549 hdr->core_id = cdev->spec->core_id; in catpt_coredump()
559 hdr->core_id = cdev->spec->core_id; in catpt_coredump()
569 hdr->core_id = cdev->spec->core_id; in catpt_coredump()
/OK3568_Linux_fs/u-boot/arch/arm/mach-keystone/include/mach/
H A Dmon.h14 int mon_power_on(int core_id, void *ep);
15 int mon_power_off(int core_id);
/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Damd_energy.c54 int core_id; member
111 if (data->core_id >= data->nr_cpus) in read_accumulate()
112 data->core_id = 0; in read_accumulate()
114 cpu = data->core_id; in read_accumulate()
118 data->core_id++; in read_accumulate()

123456