Lines Matching refs:pcch_hdr

94 static struct pcc_header __iomem *pcch_hdr;  variable
129 if (ioread16(&pcch_hdr->status) & CMD_COMPLETE) in pcc_cmd()
158 iowrite16(CMD_GET_FREQ, &pcch_hdr->command); in pcc_get_freq()
168 status = ioread16(&pcch_hdr->status); in pcc_get_freq()
174 iowrite16(0, &pcch_hdr->status); in pcc_get_freq()
175 curr_freq = (((ioread32(&pcch_hdr->nominal) * (output_buffer & 0xff)) in pcc_get_freq()
193 iowrite16(0, &pcch_hdr->status); in pcc_get_freq()
222 / (ioread32(&pcch_hdr->nominal) * 1000)) << 8); in pcc_cpufreq_target()
225 iowrite16(CMD_SET_FREQ, &pcch_hdr->command); in pcc_cpufreq_target()
232 status = ioread16(&pcch_hdr->status); in pcc_cpufreq_target()
233 iowrite16(0, &pcch_hdr->status); in pcc_cpufreq_target()
456 pcch_hdr = pcch_virt_addr; in pcc_cpufreq_evaluate()
458 pr_debug("probe: PCCH header (virtual) addr: 0x%p\n", pcch_hdr); in pcc_cpufreq_evaluate()
463 mem_resource->minimum, ioread32(&pcch_hdr->signature), in pcc_cpufreq_evaluate()
464 ioread16(&pcch_hdr->length), ioread8(&pcch_hdr->major), in pcc_cpufreq_evaluate()
465 ioread8(&pcch_hdr->minor), ioread32(&pcch_hdr->features), in pcc_cpufreq_evaluate()
466 ioread16(&pcch_hdr->command), ioread16(&pcch_hdr->status), in pcc_cpufreq_evaluate()
467 ioread32(&pcch_hdr->latency)); in pcc_cpufreq_evaluate()
474 ioread32(&pcch_hdr->minimum_time), in pcc_cpufreq_evaluate()
475 ioread32(&pcch_hdr->maximum_time), in pcc_cpufreq_evaluate()
476 ioread32(&pcch_hdr->nominal), in pcc_cpufreq_evaluate()
477 ioread32(&pcch_hdr->throttled_frequency), in pcc_cpufreq_evaluate()
478 ioread32(&pcch_hdr->minimum_frequency)); in pcc_cpufreq_evaluate()
527 ioread32(&pcch_hdr->minimum_frequency), in pcc_cpufreq_evaluate()
528 ioread32(&pcch_hdr->nominal)); in pcc_cpufreq_evaluate()
555 ioread32(&pcch_hdr->nominal) * 1000; in pcc_cpufreq_cpu_init()
557 ioread32(&pcch_hdr->minimum_frequency) * 1000; in pcc_cpufreq_cpu_init()