/linux-6.1.9/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 | 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()
|
D | common.h | 151 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);
|
/linux-6.1.9/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 | 261 t->core_id, t->domain, cfg, cfg_size, in avs_copier_create() 285 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_updown_mix_create() 302 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_src_create() 321 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_asrc_create() 340 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_aec_create() 358 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_mux_create() 375 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_wov_create() 392 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_micsel_create() 408 t->core_id, t->domain, &cfg, sizeof(cfg), in avs_modbase_create() 446 t->core_id, t->domain, cfg, cfg_size, in avs_modext_create() [all …]
|
/linux-6.1.9/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.1.9/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.1.9/arch/powerpc/perf/ |
D | imc-pmu.c | 595 int nid, rc = 0, core_id = (cpu / threads_per_core); in core_imc_mem_init() local 604 mem_info = &core_imc_pmu->mem_info[core_id]; in core_imc_mem_init() 605 mem_info->id = core_id; in core_imc_mem_init() 615 core_imc_refc[core_id].id = core_id; in core_imc_mem_init() 616 spin_lock_init(&core_imc_refc[core_id].lock); in core_imc_mem_init() 632 int core_id = (cpu / threads_per_core); in is_core_imc_mem_inited() local 634 mem_info = &core_imc_pmu->mem_info[core_id]; in is_core_imc_mem_inited() 669 unsigned int core_id; in ppc_core_imc_cpu_offline() local 710 core_id = cpu / threads_per_core; in ppc_core_imc_cpu_offline() 711 ref = &core_imc_refc[core_id]; in ppc_core_imc_cpu_offline() [all …]
|
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/ |
D | mtk_vcodec_enc_drv.c | 97 mtk_v4l2_debug(1, "id=%d coreid:%d", ctx->id, dev->venc_pdata->core_id); in mtk_vcodec_enc_irq_handler() 98 addr = dev->reg_base[dev->venc_pdata->core_id] + in mtk_vcodec_enc_irq_handler() 101 ctx->irq_status = readl(dev->reg_base[dev->venc_pdata->core_id] + in mtk_vcodec_enc_irq_handler() 268 dev->reg_base[dev->venc_pdata->core_id] = in mtk_vcodec_probe() 270 if (IS_ERR(dev->reg_base[dev->venc_pdata->core_id])) { in mtk_vcodec_probe() 271 ret = PTR_ERR(dev->reg_base[dev->venc_pdata->core_id]); in mtk_vcodec_probe() 288 dev->enc_irq, ret, dev->venc_pdata->core_id); in mtk_vcodec_probe() 357 dev->venc_pdata->core_id, vfd_enc->num); in mtk_vcodec_probe() 383 .core_id = VENC_SYS, 393 .core_id = VENC_LT_SYS, [all …]
|
/linux-6.1.9/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.1.9/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.1.9/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() 853 cpuid_topo->core_id = cpuid; in store_cpu_topology() 857 cpuid, cpuid_topo->package_id, cpuid_topo->core_id, in store_cpu_topology()
|
/linux-6.1.9/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
|
/linux-6.1.9/drivers/misc/habanalabs/common/ |
D | decoder.c | 46 static void dec_error_intr_work(struct hl_device *hdev, u32 base_addr, u32 core_id) in dec_error_intr_work() argument 53 dev_err(hdev->dev, "Decoder abnormal interrupt %#x, core %d\n", irq_status, core_id); in dec_error_intr_work() 75 dec_error_intr_work(hdev, dec->base_addr, dec->core_id); in dec_completion_abnrm() 102 dec->core_id = j; in hl_dec_init()
|
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/tools/power/x86/intel-speed-select/ |
D | isst-config.c | 61 unsigned short core_id; member 72 short core_id; member 220 static int get_stored_topology_info(int cpu, int *core_id, int *pkg_id, int *die_id) in get_stored_topology_info() argument 242 *core_id = cpu_top.core_id; in get_stored_topology_info() 276 cpu_top.core_id = parse_int_file(0, in store_cpu_topology() 278 if (cpu_top.core_id < 0) in store_cpu_topology() 279 cpu_top.core_id = -1; in store_cpu_topology() 316 int core_id, pkg_id, die_id; in get_physical_package_id() local 318 ret = get_stored_topology_info(cpu, &core_id, &pkg_id, &die_id); in get_physical_package_id() 334 return cpu_map[cpu].core_id; in get_physical_core_id() [all …]
|
/linux-6.1.9/include/linux/ |
D | arch_topology.h | 68 int core_id; member 82 #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
|
/linux-6.1.9/arch/s390/include/asm/ |
D | topology.h | 15 unsigned short core_id; member 32 #define topology_core_id(cpu) (cpu_topology[cpu].core_id)
|