Home
last modified time | relevance | path

Searched refs:core_mask (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.4/sound/soc/intel/skylake/
Dcnl-sst-dsp.c27 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 …]
Dskl-sst-dsp.c52 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 …]
Dbxt-sst.c395 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in bxt_set_dsp_D0() local
419 ret = skl_dsp_core_power_up(ctx, core_mask | in bxt_set_dsp_D0()
422 ret = skl_dsp_core_power_up(ctx, core_mask); in bxt_set_dsp_D0()
438 ret = skl_dsp_start_core(ctx, core_mask); in bxt_set_dsp_D0()
463 dx.core_mask = core_mask; in bxt_set_dsp_D0()
464 dx.dx_mask = core_mask; in bxt_set_dsp_D0()
479 core_mask |= SKL_DSP_CORE_MASK(1); in bxt_set_dsp_D0()
480 skl_dsp_disable_core(ctx, core_mask); in bxt_set_dsp_D0()
490 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in bxt_set_dsp_D3() local
492 dx.core_mask = core_mask; in bxt_set_dsp_D3()
[all …]
Dskl-sst-dsp.h206 int skl_dsp_enable_core(struct sst_dsp *ctx, unsigned int core_mask);
207 int skl_dsp_disable_core(struct sst_dsp *ctx, unsigned int core_mask);
208 int skl_dsp_core_power_up(struct sst_dsp *ctx, unsigned int core_mask);
209 int skl_dsp_core_power_down(struct sst_dsp *ctx, unsigned int core_mask);
211 unsigned int core_mask);
212 int skl_dsp_start_core(struct sst_dsp *ctx, unsigned int core_mask);
Dcnl-sst.c170 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in cnl_set_dsp_D0() local
186 ret = cnl_dsp_enable_core(ctx, core_mask); in cnl_set_dsp_D0()
209 dx.core_mask = core_mask; in cnl_set_dsp_D0()
210 dx.dx_mask = core_mask; in cnl_set_dsp_D0()
224 cnl_dsp_disable_core(ctx, core_mask); in cnl_set_dsp_D0()
232 unsigned int core_mask = SKL_DSP_CORE_MASK(core_id); in cnl_set_dsp_D3() local
236 dx.core_mask = core_mask; in cnl_set_dsp_D3()
254 ret = cnl_dsp_disable_core(ctx, core_mask); in cnl_set_dsp_D3()
Dskl-sst.c165 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()
Dskl-sst-ipc.h30 u32 core_mask; member
/Linux-v5.4/sound/soc/sof/intel/
Dhda-dsp.c27 int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_enter() argument
34 reset = HDA_DSP_ADSPCS_CRST_MASK(core_mask); in hda_dsp_core_reset_enter()
49 if ((adspcs & HDA_DSP_ADSPCS_CRST_MASK(core_mask)) != in hda_dsp_core_reset_enter()
50 HDA_DSP_ADSPCS_CRST_MASK(core_mask)) { in hda_dsp_core_reset_enter()
53 core_mask, adspcs); in hda_dsp_core_reset_enter()
60 int hda_dsp_core_reset_leave(struct snd_sof_dev *sdev, unsigned int core_mask) in hda_dsp_core_reset_leave() argument
69 HDA_DSP_ADSPCS_CRST_MASK(core_mask), in hda_dsp_core_reset_leave()
73 crst = HDA_DSP_ADSPCS_CRST_MASK(core_mask); in hda_dsp_core_reset_leave()
83 if ((adspcs & HDA_DSP_ADSPCS_CRST_MASK(core_mask)) != 0) { in hda_dsp_core_reset_leave()
86 core_mask, adspcs); in hda_dsp_core_reset_leave()
[all …]
Dhda.h443 unsigned int core_mask);
445 unsigned int core_mask);
446 int hda_dsp_core_stall_reset(struct snd_sof_dev *sdev, unsigned int core_mask);
447 int hda_dsp_core_run(struct snd_sof_dev *sdev, unsigned int core_mask);
448 int hda_dsp_core_power_up(struct snd_sof_dev *sdev, unsigned int core_mask);
449 int hda_dsp_enable_core(struct snd_sof_dev *sdev, unsigned int core_mask);
450 int hda_dsp_core_power_down(struct snd_sof_dev *sdev, unsigned int core_mask);
452 unsigned int core_mask);
454 unsigned int core_mask);
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dstf.c162 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-v5.4/drivers/crypto/cavium/cpt/
Dcptpf_main.c152 if (mcode->core_mask & (1 << shift)) { in cpt_load_microcode()
185 mcode->core_mask = GENMASK(mcode->num_cores, 0); in do_cpt_init()
186 cpt_disable_cores(cpt, mcode->core_mask, AE_TYPES, in do_cpt_init()
197 cpt_configure_group(cpt, mcode->group, mcode->core_mask, in do_cpt_init()
200 cpt_enable_cores(cpt, mcode->core_mask, AE_TYPES); in do_cpt_init()
214 mcode->core_mask = GENMASK(mcode->num_cores, 0); in do_cpt_init()
215 cpt_disable_cores(cpt, mcode->core_mask, SE_TYPES, in do_cpt_init()
226 cpt_configure_group(cpt, mcode->group, mcode->core_mask, in do_cpt_init()
229 cpt_enable_cores(cpt, mcode->core_mask, SE_TYPES); in do_cpt_init()
274 mcode->core_mask = 0ULL; in cpt_ucode_load_fw()
Dcptpf.h28 u64 core_mask; member
/Linux-v5.4/drivers/base/
Darch_topology.c436 const cpumask_t *core_mask = cpumask_of_node(cpu_to_node(cpu)); in cpu_coregroup_mask() local
439 if (cpumask_subset(&cpu_topology[cpu].core_sibling, core_mask)) { in cpu_coregroup_mask()
441 core_mask = &cpu_topology[cpu].core_sibling; in cpu_coregroup_mask()
444 if (cpumask_subset(&cpu_topology[cpu].llc_sibling, core_mask)) in cpu_coregroup_mask()
445 core_mask = &cpu_topology[cpu].llc_sibling; in cpu_coregroup_mask()
448 return core_mask; in cpu_coregroup_mask()
/Linux-v5.4/arch/s390/include/asm/
Dtopology.h22 cpumask_t core_mask; member
34 #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_mask)
/Linux-v5.4/sound/soc/sof/
Dops.h69 unsigned int core_mask) in snd_sof_dsp_core_power_up() argument
72 return sof_ops(sdev)->core_power_up(sdev, core_mask); in snd_sof_dsp_core_power_up()
78 unsigned int core_mask) in snd_sof_dsp_core_power_down() argument
81 return sof_ops(sdev)->core_power_down(sdev, core_mask); in snd_sof_dsp_core_power_down()
Dsof-priv.h89 unsigned int core_mask); /* optional */
91 unsigned int core_mask); /* optional */
/Linux-v5.4/arch/mips/cavium-octeon/
Dsmp.c147 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()
Dsetup.c391 return octeon_boot_desc_ptr->core_mask; in octeon_get_boot_coremask()
687 cvmx_coremask_copy(&sysinfo->core_mask, in prom_init()
690 cvmx_coremask_set64(&sysinfo->core_mask, in prom_init()
691 octeon_bootinfo->core_mask); in prom_init()
696 cvmx_coremask_clear_core(&sysinfo->core_mask, i); in prom_init()
/Linux-v5.4/arch/mips/include/asm/octeon/
Dcvmx-sysinfo.h67 struct cvmx_coremask core_mask; member
Docteon.h86 uint32_t core_mask; member
139 uint32_t core_mask;
Dcvmx-bootinfo.h70 uint32_t core_mask; member
153 uint32_t core_mask;
/Linux-v5.4/tools/power/x86/intel-speed-select/
Disst.h176 unsigned long long core_mask,
/Linux-v5.4/arch/s390/kernel/
Dtopology.c256 topo->core_mask = cpu_group_map(&socket_info, cpu); in update_cpu_masks()
491 return &cpu_topology[cpu].core_mask; in cpu_coregroup_mask()
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_n.c14811 u8 core_mask, u8 off, u8 override_id) in wlc_phy_rfctrl_override_nphy_rev7() argument
15065 if ((core_mask == 0) in wlc_phy_rfctrl_override_nphy_rev7()
15066 || (core_mask & (1 << core_num))) { in wlc_phy_rfctrl_override_nphy_rev7()
17168 u8 core_mask, u8 off) in wlc_phy_rfctrl_override_nphy() argument
17284 if ((core_mask == 0) in wlc_phy_rfctrl_override_nphy()
17285 || (core_mask & (1 << core_num))) { in wlc_phy_rfctrl_override_nphy()
17315 core_mask = 0x1; in wlc_phy_rfctrl_override_nphy()
17399 if ((addr != 0xffff) && (core_mask & (1 << core_num))) in wlc_phy_rfctrl_override_nphy()
21375 u8 core_mask, u8 off) in wlc_phy_rfctrl_override_1tomany_nphy() argument
21386 value, core_mask, off, in wlc_phy_rfctrl_override_1tomany_nphy()
[all …]
/Linux-v5.4/arch/s390/numa/
Dmode_emu.c385 cpumask_copy(&top->core_mask, &core_mc(core)->mask); in topology_add_core()

12