/kernel/linux/linux-5.10/arch/arm/mach-exynos/ |
H A D | platsmp.c | 33 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, unsigne argument 294 exynos_get_boot_addr(u32 core_id, unsigned long *boot_addr) exynos_get_boot_addr() argument 323 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); exynos_boot_secondary() local 428 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); exynos_cpu_die() local [all...] |
H A D | exynos.c | 121 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()
|
/kernel/linux/linux-6.6/arch/arm/mach-exynos/ |
H A D | platsmp.c | 33 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() 211 void exynos_core_restart(u32 core_id) in exynos_core_restart() argument 224 pr_err("cpu core %u restart failed\n", core_id); in exynos_core_restart() 229 val = pmu_raw_readl(EXYNOS_ARM_CORE_STATUS(core_id)); in exynos_core_restart() 231 pmu_raw_writel(val, EXYNOS_ARM_CORE_STATUS(core_id)); in exynos_core_restart() 233 pmu_raw_writel(EXYNOS_CORE_PO_RESET(core_id), EXYNOS_SWRESET); in exynos_core_restart() 267 int exynos_set_boot_addr(u32 core_id, unsigne argument 292 exynos_get_boot_addr(u32 core_id, unsigned long *boot_addr) exynos_get_boot_addr() argument 321 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); exynos_boot_secondary() local 426 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); exynos_cpu_die() local [all...] |
H A D | exynos.c | 123 unsigned int tmp, core_id; in exynos_set_delayed_reset_assertion() local 125 for (core_id = 0; core_id < num_possible_cpus(); core_id++) { in exynos_set_delayed_reset_assertion() 126 tmp = pmu_raw_readl(EXYNOS_ARM_CORE_OPTION(core_id)); in exynos_set_delayed_reset_assertion() 131 pmu_raw_writel(tmp, EXYNOS_ARM_CORE_OPTION(core_id)); in exynos_set_delayed_reset_assertion()
|
/kernel/linux/linux-6.6/sound/soc/intel/avs/ |
H A D | dsp.c | 155 static int avs_dsp_get_core(struct avs_dev *adev, u32 core_id) in avs_dsp_get_core() argument 160 mask = BIT_MASK(core_id); in avs_dsp_get_core() 164 if (core_id >= adev->hw_cfg.dsp_cores) { in avs_dsp_get_core() 169 adev->core_refs[core_id]++; in avs_dsp_get_core() 170 if (adev->core_refs[core_id] == 1) { in avs_dsp_get_core() 190 adev->core_refs[core_id]--; in avs_dsp_get_core() 192 dev_err(adev->dev, "get core %d failed: %d\n", core_id, ret); in avs_dsp_get_core() 196 static int avs_dsp_put_core(struct avs_dev *adev, u32 core_id) in avs_dsp_put_core() argument 201 mask = BIT_MASK(core_id); in avs_dsp_put_core() 205 if (core_id > in avs_dsp_put_core() 226 avs_dsp_init_module(struct avs_dev *adev, u16 module_id, u8 ppl_instance_id, u8 core_id, u8 domain, void *param, u32 param_size, u8 *instance_id) avs_dsp_init_module() argument 275 avs_dsp_delete_module(struct avs_dev *adev, u16 module_id, u8 instance_id, u8 ppl_instance_id, u8 core_id) avs_dsp_delete_module() argument [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | topology.c | 46 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()
|
/kernel/linux/linux-5.10/sound/soc/intel/skylake/ |
H A D | skl-sst-dsp.c | 336 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 skl_dsp_put_core(struct sst_dsp *ctx, unsigned int core_id) skl_dsp_put_core() argument [all...] |
H A D | bxt-sst.c | 387 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 in bxt_set_dsp_D0() 482 bxt_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) bxt_set_dsp_D3() argument [all...] |
H A D | cnl-sst.c | 188 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 D | skl-sst.c | 160 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 in skl_set_dsp_D3() [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/skylake/ |
H A D | skl-sst-dsp.c | 336 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 skl_dsp_put_core(struct sst_dsp *ctx, unsigned int core_id) skl_dsp_put_core() argument [all...] |
H A D | bxt-sst.c | 387 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 in bxt_set_dsp_D0() 482 bxt_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) bxt_set_dsp_D3() argument [all...] |
H A D | cnl-sst.c | 188 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 D | skl-sst.c | 160 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 in skl_set_dsp_D3() [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | topology.c | 36 if (cpuid_topo->core_id != -1) in store_cpu_topology() 47 cpuid_topo->core_id = 0; in store_cpu_topology() 57 cpuid_topo->core_id = cpu_topology[cpu].core_id; in store_cpu_topology() 59 cpuid_topo->core_id++; in store_cpu_topology() 76 cpu_topology[cpuid].core_id, in store_cpu_topology()
|
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc_drv.c | 89 int core_id; in mtk_vcodec_enc_irq_handler() local 95 core_id = dev->venc_pdata->core_id; in mtk_vcodec_enc_irq_handler() 96 if (core_id < 0 || core_id >= NUM_MAX_VCODEC_REG_BASE) { in mtk_vcodec_enc_irq_handler() 97 mtk_v4l2_venc_err(ctx, "Invalid core id: %d, ctx id: %d", core_id, ctx->id); in mtk_vcodec_enc_irq_handler() 101 mtk_v4l2_venc_dbg(1, ctx, "id: %d, core id: %d", ctx->id, core_id); in mtk_vcodec_enc_irq_handler() 103 addr = dev->reg_base[core_id] + MTK_VENC_IRQ_ACK_OFFSET; in mtk_vcodec_enc_irq_handler() 105 ctx->irq_status = readl(dev->reg_base[core_id] + in mtk_vcodec_enc_irq_handler() 270 dev->reg_base[dev->venc_pdata->core_id] in mtk_vcodec_probe() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/perf/ |
H A D | imc-pmu.c | 594 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init() local 603 mem_info = &core_imc_pmu->mem_info[core_id]; in core_imc_mem_init() 604 mem_info->id = core_id; in core_imc_mem_init() 614 core_imc_refc[core_id].id = core_id; in core_imc_mem_init() 615 spin_lock_init(&core_imc_refc[core_id].lock); in core_imc_mem_init() 631 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited() local 633 mem_info = &core_imc_pmu->mem_info[core_id]; in is_core_imc_mem_inited() 668 unsigned int core_id; in ppc_core_imc_cpu_offline() local 709 core_id in ppc_core_imc_cpu_offline() 756 int rc, core_id; core_imc_counters_release() local 809 int core_id, rc; core_imc_event_init() local 1117 int core_id; thread_imc_event_add() local 1159 int core_id; thread_imc_event_del() local 1201 int core_id = (cpu_id / threads_per_core); trace_imc_mem_alloc() local 1352 int core_id = smp_processor_id() / threads_per_core; trace_imc_event_add() local 1402 int core_id = smp_processor_id() / threads_per_core; trace_imc_event_del() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/perf/ |
H A D | imc-pmu.c | 601 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init() local 610 mem_info = &core_imc_pmu->mem_info[core_id]; in core_imc_mem_init() 611 mem_info->id = core_id; in core_imc_mem_init() 621 core_imc_refc[core_id].id = core_id; in core_imc_mem_init() 622 spin_lock_init(&core_imc_refc[core_id].lock); in core_imc_mem_init() 638 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited() local 640 mem_info = &core_imc_pmu->mem_info[core_id]; in is_core_imc_mem_inited() 675 unsigned int core_id; in ppc_core_imc_cpu_offline() local 716 core_id in ppc_core_imc_cpu_offline() 763 int rc, core_id; core_imc_counters_release() local 816 int core_id, rc; core_imc_event_init() local 1124 int core_id; thread_imc_event_add() local 1166 int core_id; thread_imc_event_del() local 1208 int core_id = (cpu_id / threads_per_core); trace_imc_mem_alloc() local 1359 int core_id = smp_processor_id() / threads_per_core; trace_imc_event_add() local 1409 int core_id = smp_processor_id() / threads_per_core; trace_imc_event_del() local [all...] |
/kernel/linux/linux-5.10/drivers/virt/nitro_enclaves/ |
H A D | ne_misc_dev.c | 170 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() 507 * @core_id 516 ne_set_enclave_threads_per_core(struct ne_enclave *ne_enclave, int core_id, u32 vcpu_id) ne_set_enclave_threads_per_core() argument 564 int core_id = -1; ne_get_cpu_from_cpu_pool() local 617 int core_id = -1; ne_get_vcpu_core_from_cpu_pool() local 643 int core_id = -1; ne_check_cpu_in_cpu_pool() local [all...] |
/kernel/linux/linux-6.6/drivers/virt/nitro_enclaves/ |
H A D | ne_misc_dev.c | 181 int core_id = -1; in ne_setup_cpu_pool() local 318 core_id = topology_core_id(cpu); in ne_setup_cpu_pool() 319 if (core_id < 0 || core_id >= ne_cpu_pool.nr_parent_vm_cores) { in ne_setup_cpu_pool() 321 ne_misc_dev.name, core_id, cpu); in ne_setup_cpu_pool() 328 cpumask_set_cpu(cpu, ne_cpu_pool.avail_threads_per_core[core_id]); in ne_setup_cpu_pool() 501 int core_id = -1; in ne_get_unused_core_from_cpu_pool() local 506 core_id = i; in ne_get_unused_core_from_cpu_pool() 511 return core_id; in ne_get_unused_core_from_cpu_pool() 518 * @core_id 527 ne_set_enclave_threads_per_core(struct ne_enclave *ne_enclave, int core_id, u32 vcpu_id) ne_set_enclave_threads_per_core() argument 575 int core_id = -1; ne_get_cpu_from_cpu_pool() local 628 int core_id = -1; ne_get_vcpu_core_from_cpu_pool() local 654 int core_id = -1; ne_check_cpu_in_cpu_pool() local [all...] |
/kernel/linux/linux-5.10/drivers/base/ |
H A D | arch_topology.c | 330 int core_id) in parse_core() 346 cpu_topology[cpu].core_id = core_id; in parse_core() 367 cpu_topology[cpu].core_id = core_id; in parse_core() 383 int core_id = 0; in parse_cluster() local 421 ret = parse_core(c, package_id, core_id++); in parse_cluster() 529 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks() 558 cpu_topo->core_id in reset_cpu_topology() 329 parse_core(struct device_node *core, int package_id, int core_id) parse_core() argument [all...] |
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | topology.c | 205 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()
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | topology.c | 205 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()
|
/kernel/linux/linux-6.6/drivers/base/ |
H A D | arch_topology.c | 500 int cluster_id, int core_id) in parse_core() 517 cpu_topology[cpu].core_id = core_id; in parse_core() 539 cpu_topology[cpu].core_id = core_id; in parse_core() 555 int core_id = 0; in parse_cluster() local 596 core_id++); in parse_cluster() 764 if (cpuid_topo->core_id != cpu_topo->core_id) in update_siblings_masks() 796 cpu_topo->core_id in reset_cpu_topology() 499 parse_core(struct device_node *core, int package_id, int cluster_id, int core_id) parse_core() argument [all...] |
/kernel/linux/linux-5.10/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 341 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() [all...] |