Lines Matching refs:cpc_ptr
139 struct cpc_desc *cpc_ptr = to_cpc_desc(kobj); \
143 ret = access_fn(cpc_ptr->cpu_id, &st_name); \
165 struct cpc_desc *cpc_ptr = to_cpc_desc(kobj); in show_feedback_ctrs() local
169 ret = cppc_get_perf_ctrs(cpc_ptr->cpu_id, &fb_ctrs); in show_feedback_ctrs()
358 static int acpi_get_psd(struct cpc_desc *cpc_ptr, acpi_handle handle) in acpi_get_psd() argument
381 pdomain = &(cpc_ptr->domain_info); in acpi_get_psd()
389 pr_debug("Invalid _PSD data for CPU:%d\n", cpc_ptr->cpu_id); in acpi_get_psd()
394 pr_debug("Unknown _PSD:num_entries for CPU:%d\n", cpc_ptr->cpu_id); in acpi_get_psd()
399 pr_debug("Unknown _PSD:revision for CPU: %d\n", cpc_ptr->cpu_id); in acpi_get_psd()
406 pr_debug("Invalid _PSD:coord_type for CPU:%d\n", cpc_ptr->cpu_id); in acpi_get_psd()
431 struct cpc_desc *cpc_ptr, *match_cpc_ptr; in acpi_get_psd_map() local
448 cpc_ptr = per_cpu(cpc_desc_ptr, i); in acpi_get_psd_map()
449 if (!cpc_ptr) { in acpi_get_psd_map()
454 pdomain = &(cpc_ptr->domain_info); in acpi_get_psd_map()
720 struct cpc_desc *cpc_ptr; in acpi_cppc_processor_probe() local
739 cpc_ptr = kzalloc(sizeof(struct cpc_desc), GFP_KERNEL); in acpi_cppc_processor_probe()
740 if (!cpc_ptr) { in acpi_cppc_processor_probe()
754 cpc_ptr->num_entries = num_ent; in acpi_cppc_processor_probe()
765 cpc_ptr->version = cpc_rev; in acpi_cppc_processor_probe()
775 cpc_ptr->cpc_regs[i-2].type = ACPI_TYPE_INTEGER; in acpi_cppc_processor_probe()
776 cpc_ptr->cpc_regs[i-2].cpc_entry.int_value = cpc_obj->integer.value; in acpi_cppc_processor_probe()
803 cpc_ptr->cpc_regs[i-2].sys_mem_vaddr = addr; in acpi_cppc_processor_probe()
813 cpc_ptr->cpc_regs[i-2].type = ACPI_TYPE_BUFFER; in acpi_cppc_processor_probe()
814 memcpy(&cpc_ptr->cpc_regs[i-2].cpc_entry.reg, gas_t, sizeof(*gas_t)); in acpi_cppc_processor_probe()
828 cpc_ptr->cpc_regs[i].type = ACPI_TYPE_INTEGER; in acpi_cppc_processor_probe()
829 cpc_ptr->cpc_regs[i].cpc_entry.int_value = 0; in acpi_cppc_processor_probe()
834 cpc_ptr->cpu_id = pr->id; in acpi_cppc_processor_probe()
837 ret = acpi_get_psd(cpc_ptr, handle); in acpi_cppc_processor_probe()
862 per_cpu(cpc_desc_ptr, pr->id) = cpc_ptr; in acpi_cppc_processor_probe()
864 ret = kobject_init_and_add(&cpc_ptr->kobj, &cppc_ktype, &cpu_dev->kobj, in acpi_cppc_processor_probe()
876 for (i = 2; i < cpc_ptr->num_entries; i++) { in acpi_cppc_processor_probe()
877 void __iomem *addr = cpc_ptr->cpc_regs[i-2].sys_mem_vaddr; in acpi_cppc_processor_probe()
882 kfree(cpc_ptr); in acpi_cppc_processor_probe()
898 struct cpc_desc *cpc_ptr; in acpi_cppc_processor_exit() local
914 cpc_ptr = per_cpu(cpc_desc_ptr, pr->id); in acpi_cppc_processor_exit()
915 if (!cpc_ptr) in acpi_cppc_processor_exit()
919 for (i = 2; i < cpc_ptr->num_entries; i++) { in acpi_cppc_processor_exit()
920 addr = cpc_ptr->cpc_regs[i-2].sys_mem_vaddr; in acpi_cppc_processor_exit()
925 kobject_put(&cpc_ptr->kobj); in acpi_cppc_processor_exit()
926 kfree(cpc_ptr); in acpi_cppc_processor_exit()