/linux-master/arch/arm/mach-exynos/ |
H A D | platsmp.c | 33 static inline void cpu_leave_lowpower(u32 core_id) argument 52 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); local 57 exynos_cpu_power_down(core_id); 61 if (exynos_pen_release == core_id) { 211 void exynos_core_restart(u32 core_id) argument 224 pr_err("cpu core %u restart failed\n", core_id); 229 val = pmu_raw_readl(EXYNOS_ARM_CORE_STATUS(core_id)); 231 pmu_raw_writel(val, EXYNOS_ARM_CORE_STATUS(core_id)); 233 pmu_raw_writel(EXYNOS_CORE_PO_RESET(core_id), EXYNOS_SWRESET); 267 int exynos_set_boot_addr(u32 core_id, unsigne argument 292 exynos_get_boot_addr(u32 core_id, unsigned long *boot_addr) argument 321 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); local 426 u32 core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); local [all...] |
H A D | exynos.c | 123 unsigned int tmp, core_id; local 125 for (core_id = 0; core_id < num_possible_cpus(); core_id++) { 126 tmp = pmu_raw_readl(EXYNOS_ARM_CORE_OPTION(core_id)); 131 pmu_raw_writel(tmp, EXYNOS_ARM_CORE_OPTION(core_id));
|
H A D | common.h | 159 extern void exynos_core_restart(u32 core_id); 160 extern int exynos_set_boot_addr(u32 core_id, unsigned long boot_addr); 161 extern int exynos_get_boot_addr(u32 core_id, unsigned long *boot_addr);
|
/linux-master/arch/parisc/kernel/ |
H A D | topology.c | 36 if (cpuid_topo->core_id != -1) 47 cpuid_topo->core_id = 0; 57 cpuid_topo->core_id = cpu_topology[cpu].core_id; 59 cpuid_topo->core_id++; 76 cpu_topology[cpuid].core_id,
|
/linux-master/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) argument 341 if (core_id >= skl->cores.count) { 342 dev_err(ctx->dev, "invalid core id: %d\n", core_id); 346 skl->cores.usage_count[core_id]++; 348 if (skl->cores.state[core_id] == SKL_DSP_RESET) { 349 ret = ctx->fw_ops.set_state_D0(ctx, core_id); 351 dev_err(ctx->dev, "unable to get core%d\n", core_id); 358 core_id, skl->cores.state[core_id], 359 skl->cores.usage_count[core_id]); 365 skl_dsp_put_core(struct sst_dsp *ctx, unsigned int core_id) argument [all...] |
H A D | cnl-sst.c | 188 static int cnl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) argument 191 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); 203 cnl->cores.state[core_id] = SKL_DSP_RUNNING; 210 core_id, ret); 214 if (core_id == SKL_DSP_CORE0_ID) { 238 core_id, ret); 242 cnl->cores.state[core_id] = SKL_DSP_RUNNING; 251 static int cnl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) argument 254 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); 266 core_id); [all...] |
H A D | bxt-sst.c | 387 static int bxt_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) argument 392 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); 410 skl->cores.state[core_id] = SKL_DSP_RUNNING; 415 if (core_id == SKL_DSP_CORE0_ID) 424 if (core_id == SKL_DSP_CORE0_ID) { 439 if (core_id == SKL_DSP_CORE0_ID) { 459 if (core_id != SKL_DSP_CORE0_ID) { 467 core_id, ret); 472 skl->cores.state[core_id] = SKL_DSP_RUNNING; 475 if (core_id 482 bxt_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) argument [all...] |
H A D | skl-sst.c | 160 static int skl_set_dsp_D0(struct sst_dsp *ctx, unsigned int core_id) argument 165 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); 168 if (core_id == SKL_DSP_CORE0_ID) { 192 if (core_id != SKL_DSP_CORE0_ID) { 204 core_id); 209 skl->cores.state[core_id] = SKL_DSP_RUNNING; 214 static int skl_set_dsp_D3(struct sst_dsp *ctx, unsigned int core_id) argument 219 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); 226 dev_err(ctx->dev, "set Dx core %d fail: %d\n", core_id, ret); 228 if (core_id [all...] |
H A D | skl-sst-dsp.h | 145 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);
|
/linux-master/sound/soc/intel/avs/ |
H A D | dsp.c | 155 static int avs_dsp_get_core(struct avs_dev *adev, u32 core_id) argument 160 mask = BIT_MASK(core_id); 164 if (core_id >= adev->hw_cfg.dsp_cores) { 169 adev->core_refs[core_id]++; 170 if (adev->core_refs[core_id] == 1) { 190 adev->core_refs[core_id]--; 192 dev_err(adev->dev, "get core %d failed: %d\n", core_id, ret); 196 static int avs_dsp_put_core(struct avs_dev *adev, u32 core_id) argument 201 mask = BIT_MASK(core_id); 205 if (core_id > 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) argument 275 avs_dsp_delete_module(struct avs_dev *adev, u16 module_id, u8 instance_id, u8 ppl_instance_id, u8 core_id) argument [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | cpudata_64.h | 29 unsigned short core_id; member in struct:__anon1137
|
H A D | topology_64.h | 47 #define topology_core_id(cpu) (cpu_data(cpu).core_id)
|
/linux-master/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc_drv.c | 89 int core_id; local 95 core_id = dev->venc_pdata->core_id; 96 if (core_id < 0 || core_id >= NUM_MAX_VCODEC_REG_BASE) { 97 mtk_v4l2_venc_err(ctx, "Invalid core id: %d, ctx id: %d", core_id, ctx->id); 101 mtk_v4l2_venc_dbg(1, ctx, "id: %d, core id: %d", ctx->id, core_id); 103 addr = dev->reg_base[core_id] + MTK_VENC_IRQ_ACK_OFFSET; 105 ctx->irq_status = readl(dev->reg_base[core_id] + 274 dev->reg_base[dev->venc_pdata->core_id] [all...] |
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | vdec_vpu_if.h | 15 * @core_id : core id used to separate different hardware 33 int core_id; member in struct:vdec_vpu_inst
|
/linux-master/arch/powerpc/perf/ |
H A D | imc-pmu.c | 601 int nid, rc = 0, core_id = (cpu / threads_per_core); local 610 mem_info = &core_imc_pmu->mem_info[core_id]; 611 mem_info->id = core_id; 621 core_imc_refc[core_id].id = core_id; 622 spin_lock_init(&core_imc_refc[core_id].lock); 638 int core_id = (cpu / threads_per_core); local 640 mem_info = &core_imc_pmu->mem_info[core_id]; 675 unsigned int core_id; local 716 core_id 763 int rc, core_id; local 816 int core_id, rc; local 1125 int core_id; local 1167 int core_id; local 1209 int core_id = (cpu_id / threads_per_core); local 1360 int core_id = smp_processor_id() / threads_per_core; local 1410 int core_id = smp_processor_id() / threads_per_core; local [all...] |
/linux-master/drivers/virt/nitro_enclaves/ |
H A D | ne_misc_dev.c | 181 int core_id = -1; local 318 core_id = topology_core_id(cpu); 319 if (core_id < 0 || core_id >= ne_cpu_pool.nr_parent_vm_cores) { 321 ne_misc_dev.name, core_id, cpu); 328 cpumask_set_cpu(cpu, ne_cpu_pool.avail_threads_per_core[core_id]); 501 int core_id = -1; local 506 core_id = i; 511 return core_id; 518 * @core_id 527 ne_set_enclave_threads_per_core(struct ne_enclave *ne_enclave, int core_id, u32 vcpu_id) argument 575 int core_id = -1; local 628 int core_id = -1; local 654 int core_id = -1; local [all...] |
/linux-master/arch/arm/kernel/ |
H A D | topology.c | 205 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 1); 210 cpuid_topo->core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); 220 cpuid_topo->core_id = 0; 228 cpu_topology[cpuid].core_id,
|
/linux-master/arch/s390/include/asm/ |
H A D | topology.h | 15 unsigned short core_id; member in struct:cpu_topology_s390 32 #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
|
/linux-master/include/linux/ |
H A D | arch_topology.h | 75 int core_id; member in struct:cpu_topology 89 #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
|
/linux-master/drivers/base/ |
H A D | arch_topology.c | 535 int cluster_id, int core_id) 552 cpu_topology[cpu].core_id = core_id; 574 cpu_topology[cpu].core_id = core_id; 590 int core_id = 0; local 631 core_id++); 799 if (cpuid_topo->core_id != cpu_topo->core_id) 831 cpu_topo->core_id 534 parse_core(struct device_node *core, int package_id, int cluster_id, int core_id) argument [all...] |
/linux-master/arch/x86/kernel/cpu/ |
H A D | topology_amd.c | 67 u32 core_id : 8, // Unique per-socket logical core unit ID member in struct:__anon9 103 tscan->c->topo.cu_id = leaf.core_id; 211 * Adjust the core_id relative to the node when there is more than 215 c->topo.core_id %= tscan->dom_ncpus[TOPO_CORE_DOMAIN] / tscan->amd_nodes_per_pkg;
|
/linux-master/drivers/accel/habanalabs/common/ |
H A D | decoder.c | 55 dev_err(hdev->dev, "Decoder abnormal interrupt %#x, core %d\n", irq_status, dec->core_id); 110 dec->core_id = j;
|
/linux-master/drivers/media/platform/amphion/ |
H A D | vpu_windsor.h | 14 u32 regs_base, void __iomem *regs, u32 core_id);
|
/linux-master/drivers/media/platform/qcom/venus/ |
H A D | pm_helpers.c | 553 u32 core_id) 559 if (inst->clk_data.core_id == core_id && 594 coreid = inst_pos->clk_data.core_id; 640 if (inst->clk_data.core_id != VIDC_CORE_ID_DEFAULT) 657 inst->clk_data.core_id = min_coreid; 661 inst->clk_data.core_id = min_coreid; 666 inst->clk_data.core_id = min_lp_coreid; 692 if (inst->clk_data.core_id & VIDC_CORE_ID_1) { 699 if (inst->clk_data.core_id 552 move_core_to_power_save_mode(struct venus_core *core, u32 core_id) argument [all...] |
/linux-master/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 341 int core_id = effect->id; local 342 struct iforce_core_effect* core_effect = iforce->core_effects + core_id; 343 struct resource* mod1_chunk = &(iforce->core_effects[core_id].mod1_chunk); 344 struct resource* mod2_chunk = &(iforce->core_effects[core_id].mod2_chunk); 411 int core_id = effect->id; local 412 struct iforce_core_effect* core_effect = iforce->core_effects + core_id; 413 struct resource* mod1_chunk = &(iforce->core_effects[core_id].mod1_chunk); 414 struct resource* mod2_chunk = &(iforce->core_effects[core_id].mod2_chunk); 467 int core_id = effect->id; local 468 struct iforce_core_effect* core_effect = iforce->core_effects + core_id; [all...] |