/drivers/soc/tegra/ |
D | flowctrl.c | 51 u32 flowctrl_read_cpu_csr(unsigned int cpuid) in flowctrl_read_cpu_csr() argument 53 u8 offset = flowctrl_offset_cpu_csr[cpuid]; in flowctrl_read_cpu_csr() 62 void flowctrl_write_cpu_csr(unsigned int cpuid, u32 value) in flowctrl_write_cpu_csr() argument 64 return flowctrl_update(flowctrl_offset_cpu_csr[cpuid], value); in flowctrl_write_cpu_csr() 67 void flowctrl_write_cpu_halt(unsigned int cpuid, u32 value) in flowctrl_write_cpu_halt() argument 69 return flowctrl_update(flowctrl_offset_halt_cpu[cpuid], value); in flowctrl_write_cpu_halt() 72 void flowctrl_cpu_suspend_enter(unsigned int cpuid) in flowctrl_cpu_suspend_enter() argument 77 reg = flowctrl_read_cpu_csr(cpuid); in flowctrl_cpu_suspend_enter() 85 reg |= TEGRA20_FLOW_CTRL_CSR_WFE_CPU0 << cpuid; in flowctrl_cpu_suspend_enter() 106 reg |= TEGRA20_FLOW_CTRL_CSR_WFE_CPU0 << cpuid; in flowctrl_cpu_suspend_enter() [all …]
|
/drivers/firmware/psci/ |
D | psci.c | 219 static int __psci_cpu_on(u32 fn, unsigned long cpuid, unsigned long entry_point) in __psci_cpu_on() argument 223 err = invoke_psci_fn(fn, cpuid, entry_point, 0); in __psci_cpu_on() 227 static int psci_0_1_cpu_on(unsigned long cpuid, unsigned long entry_point) in psci_0_1_cpu_on() argument 229 return __psci_cpu_on(psci_0_1_function_ids.cpu_on, cpuid, entry_point); in psci_0_1_cpu_on() 232 static int psci_0_2_cpu_on(unsigned long cpuid, unsigned long entry_point) in psci_0_2_cpu_on() argument 234 return __psci_cpu_on(PSCI_FN_NATIVE(0_2, CPU_ON), cpuid, entry_point); in psci_0_2_cpu_on() 237 static int __psci_migrate(u32 fn, unsigned long cpuid) in __psci_migrate() argument 241 err = invoke_psci_fn(fn, cpuid, 0, 0); in __psci_migrate() 245 static int psci_0_1_migrate(unsigned long cpuid) in psci_0_1_migrate() argument 247 return __psci_migrate(psci_0_1_function_ids.migrate, cpuid); in psci_0_1_migrate() [all …]
|
/drivers/clocksource/ |
D | timer-riscv.c | 95 int cpuid, hartid, error; in riscv_timer_init_dt() local 106 cpuid = riscv_hartid_to_cpuid(hartid); in riscv_timer_init_dt() 107 if (cpuid < 0) { in riscv_timer_init_dt() 109 return cpuid; in riscv_timer_init_dt() 112 if (cpuid != smp_processor_id()) in riscv_timer_init_dt() 135 __func__, cpuid, hartid); in riscv_timer_init_dt() 139 error, cpuid); in riscv_timer_init_dt()
|
/drivers/hwtracing/coresight/ |
D | coresight-cti-platform.c | 178 int cpuid = 0; in cti_plat_create_v8_connections() local 183 cpuid = cti_plat_get_cpu_at_node(dev_fwnode(dev)); in cti_plat_create_v8_connections() 184 if (cpuid < 0) { in cti_plat_create_v8_connections() 189 cti_dev->cpu = cpuid; in cti_plat_create_v8_connections() 204 scnprintf(cpu_name_str, sizeof(cpu_name_str), "cpu%d", cpuid); in cti_plat_create_v8_connections() 345 int cpuid = -1, err = 0; in cti_plat_create_connection() local 392 cpuid = cti_plat_get_cpu_at_node(fwnode); in cti_plat_create_connection() 393 if (cpuid >= 0) { in cti_plat_create_connection() 394 drvdata->ctidev.cpu = cpuid; in cti_plat_create_connection() 395 scnprintf(cpu_name_str, sizeof(cpu_name_str), "cpu%d", cpuid); in cti_plat_create_connection()
|
/drivers/scsi/qla2xxx/ |
D | qla_inline.h | 330 qla_cpu_update(struct qla_qpair *qpair, uint16_t cpuid) in qla_cpu_update() argument 332 qpair->cpuid = cpuid; in qla_cpu_update() 338 h->cpuid = qpair->cpuid; in qla_cpu_update() 580 int cpuid = raw_smp_processor_id(); in qla_mapq_nvme_select_qpair() local 582 if (qpair->cpuid != cpuid && in qla_mapq_nvme_select_qpair() 583 ha->qp_cpu_map[cpuid]) { in qla_mapq_nvme_select_qpair() 584 qpair = ha->qp_cpu_map[cpuid]; in qla_mapq_nvme_select_qpair() 602 qpair->cpuid = cpumask_first(mask); in qla_mapq_init_qp_cpu_map() 606 msix->cpuid = qpair->cpuid; in qla_mapq_init_qp_cpu_map()
|
/drivers/base/ |
D | arch_topology.c | 620 void update_siblings_masks(unsigned int cpuid) in update_siblings_masks() argument 622 struct cpu_topology *cpu_topo, *cpuid_topo = &cpu_topology[cpuid]; in update_siblings_masks() 631 cpumask_set_cpu(cpuid, &cpu_topo->llc_sibling); in update_siblings_masks() 637 cpumask_set_cpu(cpuid, &cpu_topo->core_sibling); in update_siblings_masks() 643 cpumask_set_cpu(cpuid, &cpu_topo->thread_sibling); in update_siblings_masks() 711 void store_cpu_topology(unsigned int cpuid) in store_cpu_topology() argument 713 struct cpu_topology *cpuid_topo = &cpu_topology[cpuid]; in store_cpu_topology() 719 cpuid_topo->core_id = cpuid; in store_cpu_topology() 720 cpuid_topo->package_id = cpu_to_node(cpuid); in store_cpu_topology() 723 cpuid, cpuid_topo->package_id, cpuid_topo->core_id, in store_cpu_topology() [all …]
|
D | cpu.c | 41 int cpuid = cpu->dev.id; in change_cpu_under_node() local 42 unregister_cpu_under_node(cpuid, from_nid); in change_cpu_under_node() 43 register_cpu_under_node(cpuid, to_nid); in change_cpu_under_node() 50 int cpuid = dev->id; in cpu_subsys_online() local 54 from_nid = cpu_to_node(cpuid); in cpu_subsys_online() 63 to_nid = cpu_to_node(cpuid); in cpu_subsys_online()
|
/drivers/soc/samsung/ |
D | exynos-asv.c | 83 int ret, cpuid; in exynos_asv_update_opps() local 85 for_each_possible_cpu(cpuid) { in exynos_asv_update_opps() 88 cpu = get_cpu_device(cpuid); in exynos_asv_update_opps() 102 cpuid); in exynos_asv_update_opps()
|
/drivers/irqchip/ |
D | irq-armada-370-xp.c | 124 #define ARMADA_370_XP_INT_IRQ_FIQ_MASK(cpuid) ((BIT(0) | BIT(8)) << cpuid) argument 311 unsigned long cpuid; in armada_xp_mpic_perf_init() local 320 cpuid = cpu_logical_map(smp_processor_id()); in armada_xp_mpic_perf_init() 323 writel(ARMADA_370_XP_INT_CAUSE_PERF(cpuid), in armada_xp_mpic_perf_init() 612 unsigned long irqmap, irqn, irqsrc, cpuid; in armada_370_xp_mpic_handle_cascade_irq() local 617 cpuid = cpu_logical_map(smp_processor_id()); in armada_370_xp_mpic_handle_cascade_irq() 626 if (!(irqsrc & ARMADA_370_XP_INT_IRQ_FIQ_MASK(cpuid))) in armada_370_xp_mpic_handle_cascade_irq()
|
D | irq-vf610-mscm-ir.c | 183 int ret, cpuid; in vf610_mscm_ir_of_init() local 209 regmap_read(mscm_cp_regmap, MSCM_CPxNUM, &cpuid); in vf610_mscm_ir_of_init() 210 mscm_ir_data->cpu_mask = 0x1 << cpuid; in vf610_mscm_ir_of_init()
|
/drivers/acpi/ |
D | processor_pdc.c | 23 int cpuid, type; in processor_physically_present() local 62 cpuid = acpi_get_cpuid(handle, type, acpi_id); in processor_physically_present() 64 return !invalid_logical_cpuid(cpuid); in processor_physically_present()
|
/drivers/cpufreq/ |
D | p4-clockmod.c | 158 int cpuid = 0; in cpufreq_p4_cpu_init() local 166 cpuid = (c->x86 << 8) | (c->x86_model << 4) | c->x86_stepping; in cpufreq_p4_cpu_init() 167 switch (cpuid) { in cpufreq_p4_cpu_init()
|
D | pmac64-cpufreq.c | 481 struct device_node *cpuid = NULL, *hwclock = NULL; in g5_pm72_cpufreq_init() local 491 cpuid = of_find_node_by_path("/u3@0,f8000000/i2c@f8001000/cpuid@a0"); in g5_pm72_cpufreq_init() 492 if (cpuid != NULL) in g5_pm72_cpufreq_init() 493 eeprom = of_get_property(cpuid, "cpuid", NULL); in g5_pm72_cpufreq_init() 641 of_node_put(cpuid); in g5_pm72_cpufreq_init()
|
D | longrun.c | 143 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_get() 211 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_determine_freqs() 222 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_determine_freqs()
|
D | powernow-k7.c | 50 u32 cpuid; member 139 cpuid(0x80000007, &eax, &ebx, &ecx, &edx); in check_powernow() 444 pst->cpuid, pst->fsbspeed, pst->maxfid, pst->startvid); in print_pst_entry() 497 if ((etuple == pst->cpuid) && in powernow_decode_bios()
|
D | acpi-cpufreq.c | 181 static int check_est_cpu(unsigned int cpuid) in check_est_cpu() argument 183 struct cpuinfo_x86 *cpu = &cpu_data(cpuid); in check_est_cpu() 188 static int check_amd_hwpstate_cpu(unsigned int cpuid) in check_amd_hwpstate_cpu() argument 190 struct cpuinfo_x86 *cpu = &cpu_data(cpuid); in check_amd_hwpstate_cpu()
|
/drivers/perf/ |
D | arm_pmu_platform.c | 30 unsigned int cpuid = read_cpuid_id(); in probe_current_pmu() local 36 if ((cpuid & info->mask) != info->cpuid) in probe_current_pmu()
|
D | arm_pmu_acpi.c | 190 unsigned long cpuid = read_cpuid_id(); in arm_pmu_acpi_find_alloc_pmu() local 196 if (!pmu || pmu->acpi_cpuid != cpuid) in arm_pmu_acpi_find_alloc_pmu() 209 pmu->acpi_cpuid = cpuid; in arm_pmu_acpi_find_alloc_pmu()
|
/drivers/misc/sgi-xp/ |
D | xp_uv.c | 84 xp_cpu_to_nasid_uv(int cpuid) in xp_cpu_to_nasid_uv() argument 87 return UV_PNODE_TO_NASID(uv_cpu_to_pnode(cpuid)); in xp_cpu_to_nasid_uv()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_lan_hmc.h | 21 u16 cpuid; /* bigger than needed, see above for reason */ member 61 u8 cpuid; member
|
/drivers/soc/ux500/ |
D | ux500-soc-id.c | 85 unsigned int cpuid = read_cpuid_id(); in ux500_setup_id() local 89 switch (cpuid) { in ux500_setup_id()
|
/drivers/edac/ |
D | mce_amd.c | 941 unsigned int fam = x86_family(m->cpuid); in decode_mc4_mce() 999 unsigned int fam = x86_family(m->cpuid); in decode_mc5_mce() 1123 unsigned int fam = x86_family(m->cpuid); in amd_decode_mce() 1133 fam, x86_model(m->cpuid), x86_stepping(m->cpuid), in amd_decode_mce()
|
/drivers/xen/ |
D | pcpu.c | 79 .u.cpu_ol.cpuid = cpu_id, in xen_pcpu_down() 90 .u.cpu_ol.cpuid = cpu_id, in xen_pcpu_up()
|
/drivers/firmware/efi/ |
D | cper-x86.c | 270 print_hex_dump(pfx, "", DUMP_PREFIX_OFFSET, 16, 4, proc->cpuid, in cper_print_proc_ia() 271 sizeof(proc->cpuid), 0); in cper_print_proc_ia()
|
/drivers/hwmon/ |
D | ibmpowernv.c | 195 int cpuid = get_logical_cpu(id); in make_sensor_label() local 197 if (cpuid >= 0) in make_sensor_label() 204 cpuid); in make_sensor_label()
|