/linux-6.12.1/sound/soc/intel/avs/ |
D | tgl.c | 11 static int avs_tgl_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power) in avs_tgl_dsp_core_power() argument 13 core_mask &= AVS_MAIN_CORE_MASK; in avs_tgl_dsp_core_power() 15 if (!core_mask) in avs_tgl_dsp_core_power() 17 return avs_dsp_core_power(adev, core_mask, power); in avs_tgl_dsp_core_power() 20 static int avs_tgl_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset) in avs_tgl_dsp_core_reset() argument 22 core_mask &= AVS_MAIN_CORE_MASK; in avs_tgl_dsp_core_reset() 24 if (!core_mask) in avs_tgl_dsp_core_reset() 26 return avs_dsp_core_reset(adev, core_mask, reset); in avs_tgl_dsp_core_reset() 29 static int avs_tgl_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall) in avs_tgl_dsp_core_stall() argument 31 core_mask &= AVS_MAIN_CORE_MASK; in avs_tgl_dsp_core_stall() [all …]
|
D | dsp.c | 18 int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power) in avs_dsp_core_power() argument 24 trace_avs_dsp_core_op(value, core_mask, "power", power); in avs_dsp_core_power() 26 mask = AVS_ADSPCS_SPA_MASK(core_mask); in avs_dsp_core_power() 33 mask = AVS_ADSPCS_CPA_MASK(core_mask); in avs_dsp_core_power() 42 core_mask, power ? "on" : "off", ret); in avs_dsp_core_power() 47 int avs_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset) in avs_dsp_core_reset() argument 53 trace_avs_dsp_core_op(value, core_mask, "reset", reset); in avs_dsp_core_reset() 55 mask = AVS_ADSPCS_CRST_MASK(core_mask); in avs_dsp_core_reset() 66 core_mask, reset ? "enter" : "exit", ret); in avs_dsp_core_reset() 71 int avs_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall) in avs_dsp_core_stall() argument [all …]
|
D | avs.h | 184 int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power); 185 int avs_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset); 186 int avs_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall); 187 int avs_dsp_core_enable(struct avs_dev *adev, u32 core_mask); 188 int avs_dsp_core_disable(struct avs_dev *adev, u32 core_mask);
|
D | messages.h | 340 u32 core_mask; /* which cores are subject for power transition */ member 345 int avs_ipc_set_dx(struct avs_dev *adev, u32 core_mask, bool powerup); 382 u32 core_mask; member 390 u32 core_mask; member
|
D | messages.c | 356 int avs_ipc_set_dx(struct avs_dev *adev, u32 core_mask, bool powerup) in avs_ipc_set_dx() argument 362 dx.core_mask = core_mask; in avs_ipc_set_dx() 363 dx.dx_mask = powerup ? core_mask : 0; in avs_ipc_set_dx()
|
D | ipc.c | 98 unsigned int core_mask; in avs_dsp_recovery() local 136 core_mask = GENMASK(adev->hw_cfg.dsp_cores - 1, 0); in avs_dsp_recovery() 137 avs_dsp_core_disable(adev, core_mask); in avs_dsp_recovery()
|
D | skl.c | 91 info->core_mask = resource_mask; in avs_skl_enable_logs()
|
/linux-6.12.1/sound/soc/sof/intel/ |
D | hda-dsp.c | 129 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument 136 reset = HDA_DSP_ADSPCS_CRST_MASK(core_mask); in hda_dsp_core_reset_enter() 157 if ((adspcs & HDA_DSP_ADSPCS_CRST_MASK(core_mask)) != in hda_dsp_core_reset_enter() 158 HDA_DSP_ADSPCS_CRST_MASK(core_mask)) { in hda_dsp_core_reset_enter() 161 core_mask, adspcs); in hda_dsp_core_reset_enter() 168 static int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument 177 HDA_DSP_ADSPCS_CRST_MASK(core_mask), in hda_dsp_core_reset_leave() 181 crst = HDA_DSP_ADSPCS_CRST_MASK(core_mask); in hda_dsp_core_reset_leave() 198 if ((adspcs & HDA_DSP_ADSPCS_CRST_MASK(core_mask)) != 0) { in hda_dsp_core_reset_leave() 201 core_mask, adspcs); in hda_dsp_core_reset_leave() [all …]
|
D | icl.c | 30 static int icl_dsp_core_stall(struct snd_sof_dev *sdev, unsigned int core_mask) in icl_dsp_core_stall() argument 36 core_mask &= chip->host_managed_cores_mask; in icl_dsp_core_stall() 37 if (!core_mask) { in icl_dsp_core_stall() 44 HDA_DSP_ADSPCS_CSTALL_MASK(core_mask), in icl_dsp_core_stall() 45 HDA_DSP_ADSPCS_CSTALL_MASK(core_mask)); in icl_dsp_core_stall()
|
D | hda.h | 592 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask); 593 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask); 594 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask); 596 unsigned int core_mask); 601 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask); 966 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
|
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | stf.c | 162 u8 core_mask) in brcms_c_stf_txcore_set() argument 165 wlc->pub->unit, Nsts, core_mask); in brcms_c_stf_txcore_set() 167 if (hweight8(core_mask) > wlc->stf->txstreams) in brcms_c_stf_txcore_set() 168 core_mask = 0; in brcms_c_stf_txcore_set() 170 if ((hweight8(core_mask) == wlc->stf->txstreams) && in brcms_c_stf_txcore_set() 171 ((core_mask & ~wlc->stf->txchain) in brcms_c_stf_txcore_set() 172 || !(core_mask & wlc->stf->txchain))) in brcms_c_stf_txcore_set() 173 core_mask = wlc->stf->txchain; in brcms_c_stf_txcore_set() 175 wlc->stf->txcore[Nsts] = core_mask; in brcms_c_stf_txcore_set() 181 wlc->stf->phytxant = core_mask << PHY_TXC_ANT_SHIFT; in brcms_c_stf_txcore_set() [all …]
|
/linux-6.12.1/drivers/hwmon/peci/ |
D | cputemp.c | 67 DECLARE_BITMAP(core_mask, CORE_NUMS_MAX); 348 if (test_bit(channel - channel_core, priv->core_mask)) in cputemp_is_visible() 358 u64 core_mask; in init_core_mask() local 372 core_mask = (u64)data << 32; in init_core_mask() 379 core_mask |= data; in init_core_mask() 388 core_mask = data; in init_core_mask() 393 if (!core_mask) in init_core_mask() 396 bitmap_from_u64(priv->core_mask, core_mask); in init_core_mask() 403 unsigned long core_max = find_last_bit(priv->core_mask, CORE_NUMS_MAX); in create_temp_label() 410 for_each_set_bit(i, priv->core_mask, CORE_NUMS_MAX) { in create_temp_label() [all …]
|
/linux-6.12.1/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 385 u64 core_mask; in panfrost_get_core_mask() local 397 core_mask = ~(pfdev->features.l2_present - 1) & in panfrost_get_core_mask() 400 hweight64(core_mask), in panfrost_get_core_mask() 403 return core_mask; in panfrost_get_core_mask() 410 u64 core_mask; in panfrost_gpu_power_on() local 413 core_mask = panfrost_get_core_mask(pfdev); in panfrost_gpu_power_on() 415 gpu_write(pfdev, L2_PWRON_LO, pfdev->features.l2_present & core_mask); in panfrost_gpu_power_on() 417 val, val == (pfdev->features.l2_present & core_mask), in panfrost_gpu_power_on() 423 pfdev->features.shader_present & core_mask); in panfrost_gpu_power_on() 425 val, val == (pfdev->features.shader_present & core_mask), in panfrost_gpu_power_on()
|
/linux-6.12.1/drivers/crypto/cavium/cpt/ |
D | cptpf_main.c | 151 if (mcode->core_mask & (1 << shift)) { in cpt_load_microcode() 184 mcode->core_mask = GENMASK(mcode->num_cores, 0); in do_cpt_init() 185 cpt_disable_cores(cpt, mcode->core_mask, AE_TYPES, in do_cpt_init() 196 cpt_configure_group(cpt, mcode->group, mcode->core_mask, in do_cpt_init() 199 cpt_enable_cores(cpt, mcode->core_mask, AE_TYPES); in do_cpt_init() 213 mcode->core_mask = GENMASK(mcode->num_cores, 0); in do_cpt_init() 214 cpt_disable_cores(cpt, mcode->core_mask, SE_TYPES, in do_cpt_init() 225 cpt_configure_group(cpt, mcode->group, mcode->core_mask, in do_cpt_init() 228 cpt_enable_cores(cpt, mcode->core_mask, SE_TYPES); in do_cpt_init() 275 mcode->core_mask = 0ULL; in cpt_ucode_load_fw()
|
D | cptpf.h | 28 u64 core_mask; member
|
/linux-6.12.1/drivers/base/ |
D | arch_topology.c | 732 const cpumask_t *core_mask = cpumask_of_node(cpu_to_node(cpu)); in cpu_coregroup_mask() local 735 if (cpumask_subset(&cpu_topology[cpu].core_sibling, core_mask)) { in cpu_coregroup_mask() 737 core_mask = &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() 741 if (cpumask_subset(&cpu_topology[cpu].llc_sibling, core_mask)) in cpu_coregroup_mask() 742 core_mask = &cpu_topology[cpu].llc_sibling; in cpu_coregroup_mask() 751 cpumask_subset(core_mask, &cpu_topology[cpu].cluster_sibling)) in cpu_coregroup_mask() 752 core_mask = &cpu_topology[cpu].cluster_sibling; in cpu_coregroup_mask() 754 return core_mask; in cpu_coregroup_mask()
|
/linux-6.12.1/arch/s390/include/asm/ |
D | topology.h | 22 cpumask_t core_mask; member 33 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_mask)
|
/linux-6.12.1/arch/mips/cavium-octeon/ |
D | smp.c | 148 int core_mask = octeon_get_boot_coremask(); in octeon_smp_setup() local 164 if ((id != coreid) && cvmx_coremask_is_core_set(&sysinfo->core_mask, id)) { in octeon_smp_setup() 181 if (!(core_mask & (1 << id))) { in octeon_smp_setup()
|
D | setup.c | 391 return octeon_boot_desc_ptr->core_mask; in octeon_get_boot_coremask() 684 cvmx_coremask_copy(&sysinfo->core_mask, in prom_init() 687 cvmx_coremask_set64(&sysinfo->core_mask, in prom_init() 688 octeon_bootinfo->core_mask); in prom_init() 693 cvmx_coremask_clear_core(&sysinfo->core_mask, i); in prom_init()
|
/linux-6.12.1/arch/mips/include/asm/octeon/ |
D | cvmx-sysinfo.h | 67 struct cvmx_coremask core_mask; member
|
D | octeon.h | 85 uint32_t core_mask; member 138 uint32_t core_mask;
|
D | cvmx-bootinfo.h | 70 uint32_t core_mask; member 153 uint32_t core_mask;
|
/linux-6.12.1/arch/s390/kernel/ |
D | topology.c | 263 cpu_group_map(&topo->core_mask, &socket_info, cpu); in update_cpu_masks() 279 pkg_first = cpumask_first(&topo->core_mask); in update_cpu_masks() 282 for_each_cpu(sibling, &topo->core_mask) { in update_cpu_masks() 518 return &cpu_topology[cpu].core_mask; in cpu_coregroup_mask()
|
/linux-6.12.1/drivers/gpu/drm/panthor/ |
D | panthor_gpu.c | 361 u64 core_mask = ~(ptdev->gpu_info.l2_present - 1) & in panthor_gpu_l2_power_on() local 364 hweight64(core_mask), in panthor_gpu_l2_power_on()
|
/linux-6.12.1/sound/soc/sof/ |
D | sof-audio.c | 93 for_each_set_bit(i, &spipe->core_mask, sdev->num_cores) { in sof_widget_free_unlocked() 174 for_each_set_bit(i, &spipe->core_mask, sdev->num_cores) { in sof_widget_setup_unlocked() 228 for_each_set_bit(j, &spipe->core_mask, sdev->num_cores) { in sof_widget_setup_unlocked()
|