/linux-6.6.21/arch/arm/mach-exynos/ |
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, unsigned long boot_addr) in exynos_set_boot_addr() argument [all …]
|
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()
|
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-6.6.21/sound/soc/intel/avs/ |
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 >= adev->hw_cfg.dsp_cores) { in avs_dsp_put_core() [all …]
|
D | path.c | 262 t->core_id, t->domain, cfg, cfg_size, in avs_copier_create() 320 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, t->core_id, in avs_peakvol_create() 345 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_updown_mix_create() 362 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_src_create() 381 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_asrc_create() 400 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_aec_create() 418 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_mux_create() 435 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_wov_create() 452 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_micsel_create() 468 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_modbase_create() [all …]
|
/linux-6.6.21/sound/soc/intel/skylake/ |
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 int skl_dsp_put_core(struct sst_dsp *ctx, unsigned int core_id) in skl_dsp_put_core() argument [all …]
|
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 …]
|
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 == SKL_DSP_CORE0_ID) in bxt_set_dsp_D0() [all …]
|
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 == SKL_DSP_CORE0_ID) { in skl_set_dsp_D3() [all …]
|
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-6.6.21/drivers/media/platform/mediatek/vcodec/encoder/ |
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() 272 if (IS_ERR(dev->reg_base[dev->venc_pdata->core_id])) { in mtk_vcodec_probe() 273 ret = PTR_ERR(dev->reg_base[dev->venc_pdata->core_id]); in mtk_vcodec_probe() [all …]
|
/linux-6.6.21/arch/parisc/kernel/ |
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()
|
/linux-6.6.21/arch/powerpc/perf/ |
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 = cpu / threads_per_core; in ppc_core_imc_cpu_offline() 717 ref = &core_imc_refc[core_id]; in ppc_core_imc_cpu_offline() [all …]
|
/linux-6.6.21/drivers/virt/nitro_enclaves/ |
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() 528 int core_id, u32 vcpu_id) in ne_set_enclave_threads_per_core() argument 532 if (core_id < 0 && vcpu_id == 0) { in ne_set_enclave_threads_per_core() [all …]
|
/linux-6.6.21/Documentation/ABI/testing/ |
D | sysfs-devices-hisi_ptt | 1 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune 11 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_cpl 21 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_np 31 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/qos_tx_p 41 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/rx_alloc_buf_level 52 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/tune/tx_alloc_buf_level 63 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters 74 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/multiselect 82 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/root_port_filters/<bdf> 89 What: /sys/devices/hisi_ptt<sicl_id>_<core_id>/requester_filters [all …]
|
/linux-6.6.21/arch/arm/kernel/ |
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()
|
/linux-6.6.21/drivers/base/ |
D | arch_topology.c | 500 int cluster_id, int core_id) in parse_core() argument 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 = -1; in reset_cpu_topology() 862 cpuid_topo->core_id = cpuid; in store_cpu_topology() 866 cpuid, cpuid_topo->package_id, cpuid_topo->core_id, in store_cpu_topology()
|
/linux-6.6.21/drivers/input/joystick/iforce/ |
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()
|
/linux-6.6.21/drivers/media/platform/qcom/venus/ |
D | pm_helpers.c | 553 u32 core_id) in move_core_to_power_save_mode() argument 559 if (inst->clk_data.core_id == core_id && in move_core_to_power_save_mode() 594 coreid = inst_pos->clk_data.core_id; in min_loaded_core() 640 if (inst->clk_data.core_id != VIDC_CORE_ID_DEFAULT) in decide_core() 657 inst->clk_data.core_id = min_coreid; in decide_core() 661 inst->clk_data.core_id = min_coreid; in decide_core() 666 inst->clk_data.core_id = min_lp_coreid; in decide_core() 692 if (inst->clk_data.core_id & VIDC_CORE_ID_1) { in acquire_core() 699 if (inst->clk_data.core_id & VIDC_CORE_ID_2) { in acquire_core() 718 if (inst->clk_data.core_id & VIDC_CORE_ID_1) { in release_core() [all …]
|
/linux-6.6.21/sound/soc/intel/catpt/ |
D | dsp.c | 451 u8 core_id; member 482 hdr->core_id = cdev->spec->core_id; in catpt_coredump() 503 hdr->core_id = cdev->spec->core_id; in catpt_coredump() 513 hdr->core_id = cdev->spec->core_id; in catpt_coredump() 523 hdr->core_id = cdev->spec->core_id; in catpt_coredump()
|
/linux-6.6.21/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_dev.c | 65 return sysfs_emit(buf, "0x%08x\n", mdev->chip.core_id); in core_id_show() 67 static DEVICE_ATTR_RO(core_id); 228 MALIDP_CORE_ID_PRODUCT_ID(mdev->chip.core_id), in komeda_dev_create() 229 MALIDP_CORE_ID_MAJOR(mdev->chip.core_id), in komeda_dev_create() 230 MALIDP_CORE_ID_MINOR(mdev->chip.core_id)); in komeda_dev_create()
|
/linux-6.6.21/include/linux/ |
D | arch_topology.h | 68 int core_id; member 82 #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
|
/linux-6.6.21/arch/s390/include/asm/ |
D | topology.h | 15 unsigned short core_id; member 32 #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
|
/linux-6.6.21/tools/power/x86/intel-speed-select/ |
D | isst-config.c | 60 unsigned short core_id; member 72 short core_id; member 239 static int get_stored_topology_info(int cpu, int *core_id, int *pkg_id, int *die_id) in get_stored_topology_info() argument 261 *core_id = cpu_top.core_id; in get_stored_topology_info() 295 cpu_top.core_id = parse_int_file(0, in store_cpu_topology() 297 if (cpu_top.core_id < 0) in store_cpu_topology() 298 cpu_top.core_id = -1; in store_cpu_topology() 335 int core_id, pkg_id, die_id; in get_physical_package_id() local 337 ret = get_stored_topology_info(cpu, &core_id, &pkg_id, &die_id); in get_physical_package_id() 353 return cpu_map[cpu].core_id; in get_physical_core_id() [all …]
|
D | isst-core-mbox.c | 139 int clos_id, core_id, ret = 0; in _send_mbox_command() local 150 core_id = parameter & 0xff; in _send_mbox_command() 152 cpu, PQR_ASSOC_OFFSET + core_id * 4, write, in _send_mbox_command() 997 int core_id, ret; in mbox_clos_get_assoc_status() local 999 core_id = find_phy_core_num(id->cpu); in mbox_clos_get_assoc_status() 1000 param = core_id; in mbox_clos_get_assoc_status() 1018 int core_id, ret; in mbox_clos_associate() local 1021 core_id = find_phy_core_num(id->cpu); in mbox_clos_associate() 1022 param = BIT(MBOX_CMD_WRITE_BIT) | core_id; in mbox_clos_associate()
|