/linux-6.1.9/sound/soc/intel/skylake/ |
D | cnl-sst-dsp.c | 27 cnl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_set_reset_state() argument 31 CNL_ADSP_REG_ADSPCS, CNL_ADSPCS_CRST(core_mask), in cnl_dsp_core_set_reset_state() 32 CNL_ADSPCS_CRST(core_mask)); in cnl_dsp_core_set_reset_state() 37 CNL_ADSPCS_CRST(core_mask), in cnl_dsp_core_set_reset_state() 38 CNL_ADSPCS_CRST(core_mask), in cnl_dsp_core_set_reset_state() 44 cnl_dsp_core_unset_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in cnl_dsp_core_unset_reset_state() argument 48 CNL_ADSPCS_CRST(core_mask), 0); in cnl_dsp_core_unset_reset_state() 53 CNL_ADSPCS_CRST(core_mask), in cnl_dsp_core_unset_reset_state() 59 static bool is_cnl_dsp_core_enable(struct sst_dsp *ctx, unsigned int core_mask) in is_cnl_dsp_core_enable() argument 66 is_enable = (val & CNL_ADSPCS_CPA(core_mask)) && in is_cnl_dsp_core_enable() [all …]
|
D | skl-sst-dsp.c | 52 unsigned int core_mask, en_cores_mask; in skl_dsp_get_enabled_cores() local 55 core_mask = SKL_DSP_CORES_MASK(skl->cores.count); in skl_dsp_get_enabled_cores() 60 en_cores_mask = (val & SKL_ADSPCS_CPA_MASK(core_mask)) >> in skl_dsp_get_enabled_cores() 64 en_cores_mask &= (~val & SKL_ADSPCS_CRST_MASK(core_mask)) >> in skl_dsp_get_enabled_cores() 68 en_cores_mask &= (~val & SKL_ADSPCS_CSTALL_MASK(core_mask)) >> in skl_dsp_get_enabled_cores() 70 en_cores_mask &= core_mask; in skl_dsp_get_enabled_cores() 78 skl_dsp_core_set_reset_state(struct sst_dsp *ctx, unsigned int core_mask) in skl_dsp_core_set_reset_state() argument 84 SKL_ADSP_REG_ADSPCS, SKL_ADSPCS_CRST_MASK(core_mask), in skl_dsp_core_set_reset_state() 85 SKL_ADSPCS_CRST_MASK(core_mask)); in skl_dsp_core_set_reset_state() 90 SKL_ADSPCS_CRST_MASK(core_mask), in skl_dsp_core_set_reset_state() [all …]
|
D | bxt-sst.c | 392 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in bxt_set_dsp_D0() local 416 ret = skl_dsp_core_power_up(ctx, core_mask | in bxt_set_dsp_D0() 419 ret = skl_dsp_core_power_up(ctx, core_mask); in bxt_set_dsp_D0() 435 ret = skl_dsp_start_core(ctx, core_mask); in bxt_set_dsp_D0() 460 dx.core_mask = core_mask; in bxt_set_dsp_D0() 461 dx.dx_mask = core_mask; in bxt_set_dsp_D0() 476 core_mask |= SKL_DSP_CORE_MASK(1); in bxt_set_dsp_D0() 477 skl_dsp_disable_core(ctx, core_mask); in bxt_set_dsp_D0() 487 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in bxt_set_dsp_D3() local 489 dx.core_mask = core_mask; in bxt_set_dsp_D3() [all …]
|
D | skl-sst-dsp.h | 208 int skl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core_mask); 209 int skl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask); 210 int skl_dsp_core_power_up(struct sst_dsp *ctx, unsigned int core_mask); 211 int skl_dsp_core_power_down(struct sst_dsp *ctx, unsigned int core_mask); 213 unsigned int core_mask); 214 int skl_dsp_start_core(struct sst_dsp *ctx, unsigned int core_mask);
|
D | cnl-sst.c | 191 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in cnl_set_dsp_D0() local 207 ret = cnl_dsp_enable_core(ctx, core_mask); in cnl_set_dsp_D0() 231 dx.core_mask = core_mask; in cnl_set_dsp_D0() 232 dx.dx_mask = core_mask; in cnl_set_dsp_D0() 246 cnl_dsp_disable_core(ctx, core_mask); in cnl_set_dsp_D0() 254 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in cnl_set_dsp_D3() local 258 dx.core_mask = core_mask; in cnl_set_dsp_D3() 276 ret = cnl_dsp_disable_core(ctx, core_mask); in cnl_set_dsp_D3()
|
D | skl-sst.c | 165 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in skl_set_dsp_D0() local 193 ret = skl_dsp_enable_core(ctx, core_mask); in skl_set_dsp_D0() 197 dx.core_mask = core_mask; in skl_set_dsp_D0() 198 dx.dx_mask = core_mask; in skl_set_dsp_D0() 205 skl_dsp_disable_core(ctx, core_mask); in skl_set_dsp_D0() 219 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in skl_set_dsp_D3() local 221 dx.core_mask = core_mask; in skl_set_dsp_D3() 236 ret = skl_dsp_disable_core(ctx, core_mask); in skl_set_dsp_D3()
|
D | cnl-sst-dsp.h | 85 int cnl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core_mask); 86 int cnl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask);
|
/linux-6.1.9/sound/soc/sof/intel/ |
D | hda-dsp.c | 38 static int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument 45 reset = HDA_DSP_ADSPCS_CRST_MASK(core_mask); in hda_dsp_core_reset_enter() 66 if ((adspcs & HDA_DSP_ADSPCS_CRST_MASK(core_mask)) != in hda_dsp_core_reset_enter() 67 HDA_DSP_ADSPCS_CRST_MASK(core_mask)) { in hda_dsp_core_reset_enter() 70 core_mask, adspcs); in hda_dsp_core_reset_enter() 77 static int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument 86 HDA_DSP_ADSPCS_CRST_MASK(core_mask), in hda_dsp_core_reset_leave() 90 crst = HDA_DSP_ADSPCS_CRST_MASK(core_mask); in hda_dsp_core_reset_leave() 107 if ((adspcs & HDA_DSP_ADSPCS_CRST_MASK(core_mask)) != 0) { in hda_dsp_core_reset_leave() 110 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 | 565 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask); 566 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask); 567 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask); 569 unsigned int core_mask); 574 bool hda_dsp_core_is_enabled(struct snd_sof_dev *sdev, unsigned int core_mask); 850 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
|
/linux-6.1.9/sound/soc/intel/avs/ |
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 | 155 int avs_dsp_core_power(struct avs_dev *adev, u32 core_mask, bool power); 156 int avs_dsp_core_reset(struct avs_dev *adev, u32 core_mask, bool reset); 157 int avs_dsp_core_stall(struct avs_dev *adev, u32 core_mask, bool stall); 158 int avs_dsp_core_enable(struct avs_dev *adev, u32 core_mask); 159 int avs_dsp_core_disable(struct avs_dev *adev, u32 core_mask);
|
D | messages.h | 324 u32 core_mask; /* which cores are subject for power transition */ member 328 int avs_ipc_set_dx(struct avs_dev *adev, u32 core_mask, bool powerup); 364 u32 core_mask; member 371 u32 core_mask; member
|
/linux-6.1.9/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.1.9/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 371 core_mask = (u64)data << 32; in init_core_mask() 378 core_mask |= data; in init_core_mask() 387 core_mask = data; in init_core_mask() 392 if (!core_mask) in init_core_mask() 395 bitmap_from_u64(priv->core_mask, core_mask); in init_core_mask() 402 unsigned long core_max = find_last_bit(priv->core_mask, CORE_NUMS_MAX); in create_temp_label() 409 for_each_set_bit(i, priv->core_mask, CORE_NUMS_MAX) { in create_temp_label() [all …]
|
/linux-6.1.9/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.1.9/drivers/gpu/drm/panfrost/ |
D | panfrost_gpu.c | 320 u64 core_mask = U64_MAX; in panfrost_gpu_power_on() local 332 core_mask = ~(pfdev->features.l2_present - 1) & in panfrost_gpu_power_on() 335 hweight64(core_mask), in panfrost_gpu_power_on() 338 gpu_write(pfdev, L2_PWRON_LO, pfdev->features.l2_present & core_mask); in panfrost_gpu_power_on() 340 val, val == (pfdev->features.l2_present & core_mask), in panfrost_gpu_power_on() 346 pfdev->features.shader_present & core_mask); in panfrost_gpu_power_on() 348 val, val == (pfdev->features.shader_present & core_mask), in panfrost_gpu_power_on()
|
/linux-6.1.9/drivers/base/ |
D | arch_topology.c | 694 const cpumask_t *core_mask = cpumask_of_node(cpu_to_node(cpu)); in cpu_coregroup_mask() local 697 if (cpumask_subset(&cpu_topology[cpu].core_sibling, core_mask)) { in cpu_coregroup_mask() 699 core_mask = &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask() 703 if (cpumask_subset(&cpu_topology[cpu].llc_sibling, core_mask)) in cpu_coregroup_mask() 704 core_mask = &cpu_topology[cpu].llc_sibling; in cpu_coregroup_mask() 713 cpumask_subset(core_mask, &cpu_topology[cpu].cluster_sibling)) in cpu_coregroup_mask() 714 core_mask = &cpu_topology[cpu].cluster_sibling; in cpu_coregroup_mask() 716 return core_mask; in cpu_coregroup_mask()
|
/linux-6.1.9/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.1.9/arch/mips/cavium-octeon/ |
D | smp.c | 147 int core_mask = octeon_get_boot_coremask(); in octeon_smp_setup() local 163 if ((id != coreid) && cvmx_coremask_is_core_set(&sysinfo->core_mask, id)) { in octeon_smp_setup() 180 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.1.9/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;
|
/linux-6.1.9/arch/s390/kernel/ |
D | topology.c | 258 cpu_group_map(&topo->core_mask, &socket_info, cpu); in update_cpu_masks() 273 pkg_first = cpumask_first(&topo->core_mask); in update_cpu_masks() 276 for_each_cpu(sibling, &topo->core_mask) { in update_cpu_masks() 505 return &cpu_topology[cpu].core_mask; in cpu_coregroup_mask()
|