Home
last modified time | relevance | path

Searched refs:ppc_md (Results 1 – 25 of 131) sorted by relevance

123456

/Linux-v4.19/arch/powerpc/kernel/
Dsetup_32.c157 if (ppc_md.nvram_read_val) in nvram_read_byte()
158 return ppc_md.nvram_read_val(addr); in nvram_read_byte()
165 if (ppc_md.nvram_write_val) in nvram_write_byte()
166 ppc_md.nvram_write_val(addr, val); in nvram_write_byte()
172 if (ppc_md.nvram_size) in nvram_get_size()
173 return ppc_md.nvram_size(); in nvram_get_size()
180 if (ppc_md.nvram_sync) in nvram_sync()
181 ppc_md.nvram_sync(); in nvram_sync()
190 if (ppc_md.progress) in ppc_init()
191 ppc_md.progress(" ", 0xffff); in ppc_init()
[all …]
Dsetup-common.c82 struct machdep_calls ppc_md; variable
83 EXPORT_SYMBOL(ppc_md);
144 if (ppc_md.machine_shutdown) in machine_shutdown()
145 ppc_md.machine_shutdown(); in machine_shutdown()
159 if (ppc_md.restart) in machine_restart()
160 ppc_md.restart(cmd); in machine_restart()
188 if (ppc_md.halt) in machine_halt()
189 ppc_md.halt(); in machine_halt()
212 if (ppc_md.name) in show_cpuinfo_summary()
213 seq_printf(m, "platform\t: %s\n", ppc_md.name); in show_cpuinfo_summary()
[all …]
Dtime.c665 if (ppc_md.suspend_disable_irqs) in arch_suspend_disable_irqs()
666 ppc_md.suspend_disable_irqs(); in arch_suspend_disable_irqs()
674 if (ppc_md.suspend_enable_irqs) in arch_suspend_enable_irqs()
675 ppc_md.suspend_enable_irqs(); in arch_suspend_enable_irqs()
797 if (!ppc_md.set_rtc_time) in update_persistent_clock64()
802 return ppc_md.set_rtc_time(&tm); in update_persistent_clock64()
814 if (ppc_md.time_init) in __read_persistent_clock()
815 timezone_offset = ppc_md.time_init(); in __read_persistent_clock()
818 if (ppc_md.get_boot_time) { in __read_persistent_clock()
819 ts->tv_sec = ppc_md.get_boot_time() - timezone_offset; in __read_persistent_clock()
[all …]
Dnvram_64.c210 rc = ppc_md.nvram_write((char *)&info, sizeof(info), &tmp_index); in nvram_write_os_partition()
216 rc = ppc_md.nvram_write(buff, length, &tmp_index); in nvram_write_os_partition()
246 rc = ppc_md.nvram_read((char *)&info, sizeof(info), &tmp_index); in nvram_read_partition()
253 rc = ppc_md.nvram_read(buff, length, &tmp_index); in nvram_read_partition()
721 if (ppc_md.nvram_size == NULL) in dev_nvram_llseek()
724 ppc_md.nvram_size()); in dev_nvram_llseek()
735 if (!ppc_md.nvram_size) { in dev_nvram_read()
740 size = ppc_md.nvram_size(); in dev_nvram_read()
760 ret = ppc_md.nvram_read(tmp, count, ppos); in dev_nvram_read()
781 if (!ppc_md.nvram_size) in dev_nvram_write()
[all …]
Didle.c42 ppc_md.power_save = NULL; in powersave_off()
60 if (ppc_md.power_save) { in arch_cpu_idle()
61 ppc_md.power_save(); in arch_cpu_idle()
Dmachine_kexec_64.c152 if (ppc_md.kexec_cpu_down) in kexec_smp_down()
153 ppc_md.kexec_cpu_down(0, 1); in kexec_smp_down()
241 if (ppc_md.kexec_cpu_down) in kexec_prepare_cpus()
242 ppc_md.kexec_cpu_down(0, 0); in kexec_prepare_cpus()
261 if (ppc_md.kexec_cpu_down) in kexec_prepare_cpus()
262 ppc_md.kexec_cpu_down(0, 0); in kexec_prepare_cpus()
Dpci-common.c240 if (ppc_md.pcibios_default_alignment) in pcibios_default_alignment()
241 return ppc_md.pcibios_default_alignment(); in pcibios_default_alignment()
249 if (ppc_md.pcibios_iov_resource_alignment) in pcibios_iov_resource_alignment()
250 return ppc_md.pcibios_iov_resource_alignment(pdev, resno); in pcibios_iov_resource_alignment()
257 if (ppc_md.pcibios_sriov_enable) in pcibios_sriov_enable()
258 return ppc_md.pcibios_sriov_enable(pdev, num_vfs); in pcibios_sriov_enable()
265 if (ppc_md.pcibios_sriov_disable) in pcibios_sriov_disable()
266 return ppc_md.pcibios_sriov_disable(pdev); in pcibios_sriov_disable()
275 if (ppc_md.pcibios_bus_add_device) in pcibios_bus_add_device()
276 ppc_md.pcibios_bus_add_device(pdev); in pcibios_bus_add_device()
[all …]
/Linux-v4.19/arch/powerpc/mm/
Dinit_32.c126 if (ppc_md.progress) in MMU_init()
127 ppc_md.progress("MMU:enter", 0x111); in MMU_init()
165 if (ppc_md.progress) in MMU_init()
166 ppc_md.progress("MMU:hw init", 0x300); in MMU_init()
170 if (ppc_md.progress) in MMU_init()
171 ppc_md.progress("MMU:mapin", 0x301); in MMU_init()
177 if (ppc_md.progress) in MMU_init()
178 ppc_md.progress("MMU:exit", 0x211); in MMU_init()
Dpgtable_64.c210 if (ppc_md.ioremap) in ioremap()
211 return ppc_md.ioremap(addr, size, flags, caller); in ioremap()
220 if (ppc_md.ioremap) in ioremap_wc()
221 return ppc_md.ioremap(addr, size, flags, caller); in ioremap_wc()
242 if (ppc_md.ioremap) in ioremap_prot()
243 return ppc_md.ioremap(addr, size, flags, caller); in ioremap_prot()
271 if (ppc_md.iounmap) in iounmap()
272 ppc_md.iounmap(token); in iounmap()
Dppc_mmu_32.c202 if ( ppc_md.progress ) ppc_md.progress("hash:enter", 0x105); in MMU_init_hw()
226 if ( ppc_md.progress ) ppc_md.progress("hash:find piece", 0x322); in MMU_init_hw()
240 if ( ppc_md.progress ) ppc_md.progress("hash:patch", 0x345); in MMU_init_hw()
273 if ( ppc_md.progress ) ppc_md.progress("hash:done", 0x205); in MMU_init_hw()
/Linux-v4.19/arch/powerpc/platforms/85xx/
Dcorenet_generic.c46 if (ppc_md.get_irq == mpic_get_coreint_irq) in corenet_gen_pic_init()
81 pr_info("%s board\n", ppc_md.name); in corenet_gen_setup_arch()
184 ppc_md.init_IRQ = ehv_pic_init; in corenet_generic_probe()
186 ppc_md.get_irq = ehv_pic_get_irq; in corenet_generic_probe()
187 ppc_md.restart = fsl_hv_restart; in corenet_generic_probe()
189 ppc_md.halt = fsl_hv_halt; in corenet_generic_probe()
Dmpc85xx_cds.c327 if (ppc_md.progress) in mpc85xx_cds_setup_arch()
328 ppc_md.progress("mpc85xx_cds_setup_arch()", 0); in mpc85xx_cds_setup_arch()
343 if (ppc_md.progress) { in mpc85xx_cds_setup_arch()
348 ppc_md.progress(buf, 0); in mpc85xx_cds_setup_arch()
352 ppc_md.pci_irq_fixup = mpc85xx_cds_pci_irq_fixup; in mpc85xx_cds_setup_arch()
353 ppc_md.pci_exclude_device = mpc85xx_exclude_device; in mpc85xx_cds_setup_arch()
/Linux-v4.19/arch/powerpc/platforms/powermac/
Dnvram.c451 buffer[i] = ppc_md.nvram_read_val(offset+i); in lookup_partitions()
532 ppc_md.nvram_read_val = core99_nvram_read_byte; in core99_nvram_setup()
533 ppc_md.nvram_write_val = core99_nvram_write_byte; in core99_nvram_setup()
534 ppc_md.nvram_read = core99_nvram_read; in core99_nvram_setup()
535 ppc_md.nvram_write = core99_nvram_write; in core99_nvram_setup()
536 ppc_md.nvram_size = core99_nvram_size; in core99_nvram_setup()
537 ppc_md.nvram_sync = core99_nvram_sync; in core99_nvram_setup()
538 ppc_md.machine_shutdown = core99_nvram_sync; in core99_nvram_setup()
591 ppc_md.nvram_read_val = direct_nvram_read_byte; in pmac_nvram_init()
592 ppc_md.nvram_write_val = direct_nvram_write_byte; in pmac_nvram_init()
[all …]
Dsmp.c251 if (ppc_md.progress) ppc_md.progress("psurge_quad_init", 0x351); in psurge_quad_init()
334 if (ppc_md.progress) ppc_md.progress("smp_psurge_probe - done", 0x352); in smp_psurge_probe()
354 if (ppc_md.progress) ppc_md.progress("smp_psurge_kick_cpu", 0x353); in smp_psurge_kick_cpu()
401 if (ppc_md.progress) ppc_md.progress("smp_psurge_kick_cpu - done", 0x354); in smp_psurge_kick_cpu()
773 if (ppc_md.progress) ppc_md.progress("smp_core99_probe", 0x345); in smp_core99_probe()
810 if (ppc_md.progress) in smp_core99_kick_cpu()
811 ppc_md.progress("smp_core99_kick_cpu", 0x346); in smp_core99_kick_cpu()
839 if (ppc_md.progress) ppc_md.progress("smp_core99_kick_cpu done", 0x347); in smp_core99_kick_cpu()
909 if (ppc_md.progress) in smp_core99_bringup_done()
910 ppc_md.progress("smp_core99_bringup_done", 0x349); in smp_core99_bringup_done()
[all …]
/Linux-v4.19/arch/powerpc/platforms/chrp/
Dsetup.c322 ppc_md.restart = briq_restart; in chrp_setup_arch()
332 ppc_md.progress = rtas_progress; in chrp_setup_arch()
336 ppc_md.get_boot_time = rtas_get_boot_time; in chrp_setup_arch()
337 ppc_md.get_rtc_time = rtas_get_rtc_time; in chrp_setup_arch()
338 ppc_md.set_rtc_time = rtas_set_rtc_time; in chrp_setup_arch()
364 if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0); in chrp_setup_arch()
454 ppc_md.get_irq = mpic_get_irq; in chrp_find_openpic()
510 if (ppc_md.get_irq == NULL) { in chrp_find_8259()
511 ppc_md.get_irq = i8259_irq; in chrp_find_8259()
541 ppc_md.get_irq = i8259_irq; in chrp_init_IRQ()
[all …]
/Linux-v4.19/arch/powerpc/platforms/embedded6xx/
Dmpc7448_hpc2.c68 if (ppc_md.progress) in mpc7448_hpc2_setup_arch()
69 ppc_md.progress("mpc7448_hpc2_setup_arch():set_bridge", 0); in mpc7448_hpc2_setup_arch()
78 ppc_md.pci_exclude_device = mpc7448_hpc2_exclude_device; in mpc7448_hpc2_setup_arch()
79 if (ppc_md.progress) in mpc7448_hpc2_setup_arch()
80 ppc_md.progress("tsi108: resources set", 0x100); in mpc7448_hpc2_setup_arch()
Dholly.c117 if (ppc_md.progress) in holly_setup_arch()
118 ppc_md.progress("holly_setup_arch():set_bridge", 0); in holly_setup_arch()
129 ppc_md.pci_exclude_device = holly_exclude_device; in holly_setup_arch()
130 if (ppc_md.progress) in holly_setup_arch()
131 ppc_md.progress("tsi108: resources set", 0x100); in holly_setup_arch()
/Linux-v4.19/arch/powerpc/platforms/powernv/
Dsetup.c181 WARN_ON(!ppc_md.get_irq); in pnv_init_IRQ()
373 ppc_md.get_boot_time = opal_get_boot_time; in pnv_setup_machdep_opal()
374 ppc_md.restart = pnv_restart; in pnv_setup_machdep_opal()
376 ppc_md.halt = pnv_halt; in pnv_setup_machdep_opal()
378 ppc_md.machine_check_exception = opal_machine_check; in pnv_setup_machdep_opal()
379 ppc_md.mce_check_early_recovery = opal_mce_check_early_recovery; in pnv_setup_machdep_opal()
380 ppc_md.hmi_exception_early = opal_hmi_exception_early; in pnv_setup_machdep_opal()
381 ppc_md.handle_hmi_exception = opal_handle_hmi_exception; in pnv_setup_machdep_opal()
Dopal-nvram.c113 ppc_md.nvram_read = opal_nvram_read; in opal_nvram_init()
114 ppc_md.nvram_write = opal_nvram_write; in opal_nvram_init()
115 ppc_md.nvram_size = opal_nvram_size; in opal_nvram_init()
/Linux-v4.19/arch/powerpc/sysdev/
Dmmio_nvram.c149 ppc_md.nvram_read_val = mmio_nvram_read_val; in mmio_nvram_init()
150 ppc_md.nvram_write_val = mmio_nvram_write_val; in mmio_nvram_init()
151 ppc_md.nvram_read = mmio_nvram_read; in mmio_nvram_init()
152 ppc_md.nvram_write = mmio_nvram_write; in mmio_nvram_init()
153 ppc_md.nvram_size = mmio_nvram_get_size; in mmio_nvram_init()
/Linux-v4.19/arch/powerpc/include/asm/
Darchrandom.h21 if (ppc_md.get_random_seed) in arch_get_random_seed_long()
22 return ppc_md.get_random_seed(v); in arch_get_random_seed_long()
45 return !!ppc_md.get_random_seed; in arch_has_random_seed()
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dsetup.c446 ppc_md.progress("H_SET_MODE LE exception fail", 0); in pseries_little_endian_exceptions()
761 ppc_md.power_save = pseries_lpar_idle; in pSeries_setup_arch()
762 ppc_md.enable_pmcs = pseries_lpar_enable_pmcs; in pSeries_setup_arch()
764 ppc_md.pcibios_fixup_resources = in pSeries_setup_arch()
766 ppc_md.pcibios_fixup_sriov = in pSeries_setup_arch()
768 ppc_md.pcibios_iov_resource_alignment = in pSeries_setup_arch()
773 ppc_md.enable_pmcs = power4_enable_pmcs; in pSeries_setup_arch()
776 ppc_md.pcibios_root_bridge_prepare = pseries_root_bridge_prepare; in pSeries_setup_arch()
789 ppc_md.progress("Linux ppc64\n", 0); in pSeries_init_panel()
791 ppc_md.progress("Linux ppc64le\n", 0); in pSeries_init_panel()
[all …]
Dnvram.c179 rc = ppc_md.nvram_write((char *)&clear_word, sizeof(int), &tmp_index); in nvram_clear_error_log()
241 ppc_md.nvram_read = pSeries_nvram_read; in pSeries_nvram_init()
242 ppc_md.nvram_write = pSeries_nvram_write; in pSeries_nvram_init()
243 ppc_md.nvram_size = pSeries_nvram_get_size; in pSeries_nvram_init()
/Linux-v4.19/arch/powerpc/platforms/86xx/
Dmpc86xx_hpcn.c64 if (ppc_md.progress) in mpc86xx_hpcn_setup_arch()
65 ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0); in mpc86xx_hpcn_setup_arch()
68 ppc_md.pci_exclude_device = mpc86xx_exclude_device; in mpc86xx_hpcn_setup_arch()
/Linux-v4.19/arch/powerpc/platforms/82xx/
Dpq2fads.c123 if (ppc_md.progress) in pq2fads_setup_arch()
124 ppc_md.progress("pq2fads_setup_arch()", 0); in pq2fads_setup_arch()
158 if (ppc_md.progress) in pq2fads_setup_arch()
159 ppc_md.progress("pq2fads_setup_arch(), finish", 0); in pq2fads_setup_arch()

123456