Lines Matching refs:cpc_ptr
143 struct cpc_desc *cpc_ptr = to_cpc_desc(kobj); \
147 ret = access_fn(cpc_ptr->cpu_id, &st_name); \
169 struct cpc_desc *cpc_ptr = to_cpc_desc(kobj); in show_feedback_ctrs() local
173 ret = cppc_get_perf_ctrs(cpc_ptr->cpu_id, &fb_ctrs); in show_feedback_ctrs()
364 static int acpi_get_psd(struct cpc_desc *cpc_ptr, acpi_handle handle) in acpi_get_psd() argument
387 pdomain = &(cpc_ptr->domain_info); in acpi_get_psd()
395 pr_debug("Invalid _PSD data for CPU:%d\n", cpc_ptr->cpu_id); in acpi_get_psd()
400 pr_debug("Unknown _PSD:num_entries for CPU:%d\n", cpc_ptr->cpu_id); in acpi_get_psd()
405 pr_debug("Unknown _PSD:revision for CPU: %d\n", cpc_ptr->cpu_id); in acpi_get_psd()
412 pr_debug("Invalid _PSD:coord_type for CPU:%d\n", cpc_ptr->cpu_id); in acpi_get_psd()
424 struct cpc_desc *cpc_ptr; in acpi_cpc_valid() local
431 cpc_ptr = per_cpu(cpc_desc_ptr, cpu); in acpi_cpc_valid()
432 if (!cpc_ptr) in acpi_cpc_valid()
443 struct cpc_desc *cpc_ptr; in cppc_allow_fast_switch() local
447 cpc_ptr = per_cpu(cpc_desc_ptr, cpu); in cppc_allow_fast_switch()
448 desired_reg = &cpc_ptr->cpc_regs[DESIRED_PERF]; in cppc_allow_fast_switch()
467 struct cpc_desc *cpc_ptr, *match_cpc_ptr; in acpi_get_psd_map() local
476 cpc_ptr = per_cpu(cpc_desc_ptr, cpu); in acpi_get_psd_map()
477 if (!cpc_ptr) in acpi_get_psd_map()
480 pdomain = &(cpc_ptr->domain_info); in acpi_get_psd_map()
668 struct cpc_desc *cpc_ptr; in acpi_cppc_processor_probe() local
693 cpc_ptr = kzalloc(sizeof(struct cpc_desc), GFP_KERNEL); in acpi_cppc_processor_probe()
694 if (!cpc_ptr) { in acpi_cppc_processor_probe()
747 cpc_ptr->num_entries = num_ent; in acpi_cppc_processor_probe()
748 cpc_ptr->version = cpc_rev; in acpi_cppc_processor_probe()
755 cpc_ptr->cpc_regs[i-2].type = ACPI_TYPE_INTEGER; in acpi_cppc_processor_probe()
756 cpc_ptr->cpc_regs[i-2].cpc_entry.int_value = cpc_obj->integer.value; in acpi_cppc_processor_probe()
790 cpc_ptr->cpc_regs[i-2].sys_mem_vaddr = addr; in acpi_cppc_processor_probe()
823 cpc_ptr->cpc_regs[i-2].type = ACPI_TYPE_BUFFER; in acpi_cppc_processor_probe()
824 memcpy(&cpc_ptr->cpc_regs[i-2].cpc_entry.reg, gas_t, sizeof(*gas_t)); in acpi_cppc_processor_probe()
839 cpc_ptr->cpc_regs[i].type = ACPI_TYPE_INTEGER; in acpi_cppc_processor_probe()
840 cpc_ptr->cpc_regs[i].cpc_entry.int_value = 0; in acpi_cppc_processor_probe()
845 cpc_ptr->cpu_id = pr->id; in acpi_cppc_processor_probe()
848 ret = acpi_get_psd(cpc_ptr, handle); in acpi_cppc_processor_probe()
873 per_cpu(cpc_desc_ptr, pr->id) = cpc_ptr; in acpi_cppc_processor_probe()
875 ret = kobject_init_and_add(&cpc_ptr->kobj, &cppc_ktype, &cpu_dev->kobj, in acpi_cppc_processor_probe()
879 kobject_put(&cpc_ptr->kobj); in acpi_cppc_processor_probe()
890 for (i = 2; i < cpc_ptr->num_entries; i++) { in acpi_cppc_processor_probe()
891 void __iomem *addr = cpc_ptr->cpc_regs[i-2].sys_mem_vaddr; in acpi_cppc_processor_probe()
896 kfree(cpc_ptr); in acpi_cppc_processor_probe()
912 struct cpc_desc *cpc_ptr; in acpi_cppc_processor_exit() local
928 cpc_ptr = per_cpu(cpc_desc_ptr, pr->id); in acpi_cppc_processor_exit()
929 if (!cpc_ptr) in acpi_cppc_processor_exit()
933 for (i = 2; i < cpc_ptr->num_entries; i++) { in acpi_cppc_processor_exit()
934 addr = cpc_ptr->cpc_regs[i-2].sys_mem_vaddr; in acpi_cppc_processor_exit()
939 kobject_put(&cpc_ptr->kobj); in acpi_cppc_processor_exit()
940 kfree(cpc_ptr); in acpi_cppc_processor_exit()