Searched refs:opal (Results 1 - 47 of 47) sorted by relevance

/linux-4.1.27/arch/powerpc/platforms/powernv/
H A Dopal.c12 #define pr_fmt(fmt) "opal: " fmt
30 #include <asm/opal.h>
36 /* /sys/firmware/opal */
39 struct opal { struct
43 } opal; variable in typeref:struct:opal
86 if (depth != 1 || strcmp(uname, "ibm,opal") != 0) early_init_dt_scan_opal()
89 basep = of_get_flat_dt_prop(node, "opal-base-address", &basesz); early_init_dt_scan_opal()
90 entryp = of_get_flat_dt_prop(node, "opal-entry-address", &entrysz); early_init_dt_scan_opal()
91 sizep = of_get_flat_dt_prop(node, "opal-runtime-size", &runtimesz); early_init_dt_scan_opal()
96 opal.base = of_read_number(basep, basesz/4); early_init_dt_scan_opal()
97 opal.entry = of_read_number(entryp, entrysz/4); early_init_dt_scan_opal()
98 opal.size = of_read_number(sizep, runtimesz/4); early_init_dt_scan_opal()
101 opal.base, basep, basesz); early_init_dt_scan_opal()
103 opal.entry, entryp, entrysz); early_init_dt_scan_opal()
105 opal.size, sizep, runtimesz); early_init_dt_scan_opal()
108 if (of_flat_dt_is_compatible(node, "ibm,opal-v3")) { early_init_dt_scan_opal()
112 } else if (of_flat_dt_is_compatible(node, "ibm,opal-v2")) { early_init_dt_scan_opal()
135 if (depth != 1 || strcmp(uname, "ibm,opal") != 0) early_init_dt_scan_recoverable_ranges()
339 * TODO: pre-allocate a message buffer depending on opal-msg-size opal_handle_message()
346 /* No opal message pending. */ opal_handle_message()
352 pr_warning("%s: Failed to retrieve opal message, err=%lld\n", opal_handle_message()
403 if (!opal.entry) opal_get_chars()
423 if (!opal.entry) opal_put_chars()
431 * appear to work on opal v1, so we just assume there is opal_put_chars()
547 * call opal hmi handler. Pass paca address as token. opal_hmi_exception_early()
567 * if Yes, then call opal_poll_events to pull opal messages and opal_handle_hmi_exception()
596 if (!opal.base || !opal.size) opal_mce_check_early_recovery()
599 if ((regs->nip >= opal.base) && opal_mce_check_early_recovery()
600 (regs->nip <= (opal.base + opal.size))) opal_mce_check_early_recovery()
626 opal_kobj = kobject_create_and_add("opal", firmware_kobj); opal_sysfs_init()
628 pr_warn("kobject_create_and_add opal failed\n"); opal_sysfs_init()
652 fw = of_find_node_by_path("/ibm,opal/firmware"); opal_export_symmap()
701 if (of_device_is_compatible(np, "ibm,opal-flash")) opal_flash_init()
710 if (of_device_is_compatible(np, "ibm,opal-ipmi")) opal_ipmi_init()
718 for_each_compatible_node(np, NULL, "ibm,opal-i2c") opal_i2c_create_devs()
728 irqs = of_get_property(opal_node, "opal-interrupts", &irqlen); opal_irq_init()
749 rc = request_irq(virq, opal_interrupt, 0, "opal", NULL); opal_irq_init()
790 opal_node = of_find_node_by_path("/ibm,opal"); opal_init()
798 consoles = of_find_node_by_path("/ibm,opal/consoles"); opal_init()
819 /* Create "opal" kobject under /sys/firmware */
885 /* Convert a region of vmalloc memory to an opal sg list */ opal_vmalloc_to_sg_list()
H A Dopal-rtc.c21 #include <asm/opal.h>
72 rtc = of_find_node_by_path("/ibm,opal/rtc"); opal_time_init()
74 pdev = of_platform_device_create(rtc, "opal-rtc", NULL); opal_time_init()
79 pdev = platform_device_register_simple("opal-rtc", -1, opal_time_init()
H A Dopal-sensor.c24 #include <asm/opal.h>
85 sensor = of_find_node_by_path("/ibm,opal/sensors"); opal_sensor_init()
91 pdev = of_platform_device_create(sensor, "opal-sensor", NULL); opal_sensor_init()
H A Dopal-nvram.c18 #include <asm/opal.h>
80 np = of_find_compatible_node(NULL, NULL, "ibm,opal-nvram"); opal_nvram_init()
H A Dopal-wrappers.S16 #include <asm/opal.h>
79 LOAD_REG_ADDR(r11,opal); \
142 LOAD_REG_ADDR(r11,opal)
161 * Make opal call in realmode. This is a generic function to be called
166 * r0 - opal token
172 /* Set opal return address */
183 LOAD_REG_ADDR(r11,opal)
H A Dopal-msglog.c13 #include <asm/opal.h>
104 if (of_property_read_u64(opal_node, "ibm,opal-memcons", &mcaddr)) { opal_msglog_init()
105 pr_warn("OPAL: Property ibm,opal-memcons not found, no message log\n"); opal_msglog_init()
H A Dopal-async.c24 #include <asm/opal.h>
160 opal_node = of_find_node_by_path("/ibm,opal"); opal_async_comp_init()
167 async = of_get_property(opal_node, "opal-msg-async-num", NULL); opal_async_comp_init()
169 pr_err("%s: %s has no opal-msg-async-num\n", opal_async_comp_init()
H A Dopal-power.c16 #include <asm/opal.h>
H A Dopal-tracepoints.c20 * directly in the TOC so we can check if the opal tracepoints are
H A Dpci-p5ioc2.c31 #include <asm/opal.h>
61 "ibm,opal-msi-ranges", NULL); pnv_pci_init_p5ioc2_msis()
109 prop64 = of_get_property(np, "ibm,opal-phbid", NULL); pnv_pci_init_p5ioc2_phb()
111 pr_err(" Missing \"ibm,opal-phbid\" property !\n"); pnv_pci_init_p5ioc2_phb()
189 prop64 = of_get_property(np, "ibm,opal-hubid", NULL); pnv_pci_init_p5ioc2_hub()
191 pr_err(" Missing \"ibm,opal-hubid\" property !\n"); pnv_pci_init_p5ioc2_hub()
H A Dopal-memory-errors.c31 #include <asm/opal.h>
97 * opal_memory_err_event - notifier handler that queues up the opal message
H A Dopal-sysparam.c27 #include <asm/opal.h>
161 pr_warn("SYSPARAM: opal kobject is not available\n"); opal_sys_param_init()
179 sysparam = of_find_node_by_path("/ibm,opal/sysparams"); opal_sys_param_init()
185 if (!of_device_is_compatible(sysparam, "ibm,opal-sysparams")) { opal_sys_param_init()
H A Dsetup.c35 #include <asm/opal.h>
408 power_mgt = of_find_node_by_path("/ibm,opal/power-mgt"); pnv_init_idle_states()
410 pr_warn("opal: PowerMgmt Node not found\n"); pnv_init_idle_states()
H A Dopal-flash.c25 #include <asm/opal.h>
515 * We create these files under /sys/firmware/opal.
560 /* Make sure /sys/firmware/opal directory is created */ opal_flash_update_init()
562 pr_warn("FLASH: opal kobject is not available\n"); opal_flash_update_init()
H A Dopal-xscom.c20 #include <asm/opal.h>
H A Dopal-elog.c21 #include <asm/opal.h>
315 /* We are now ready to pull error logs from opal. */ opal_elog_init()
H A Dopal-hmi.c29 #include <asm/opal.h>
H A Dsubcore.c23 #include <asm/opal.h>
111 * opal.
H A Dpci-ioda.c34 #include <asm/opal.h>
374 r = of_get_property(dn, "ibm,opal-m64-window", NULL); pnv_ioda_parse_m64_window()
376 pr_info(" No <ibm,opal-m64-window> on %s\n", pnv_ioda_parse_m64_window()
1825 swinvp = of_get_property(phb->hose->dn, "ibm,opal-tce-kill", NULL); pnv_pci_ioda_setup_dma_pe()
1966 swinvp = of_get_property(phb->hose->dn, "ibm,opal-tce-kill", NULL); pnv_pci_ioda2_setup_dma_pe()
2327 "ibm,opal-msi-ranges", NULL); pnv_pci_init_ioda_msis()
2666 prop64 = of_get_property(np, "ibm,opal-phbid", NULL); pnv_pci_init_ioda_phb()
2668 pr_err(" Missing \"ibm,opal-phbid\" property !\n"); pnv_pci_init_ioda_phb()
2719 prop32 = of_get_property(np, "ibm,opal-num-pes", NULL); pnv_pci_init_ioda_phb()
2722 prop32 = of_get_property(np, "ibm,opal-reserved-pe", NULL); pnv_pci_init_ioda_phb()
2765 rc = opal_pci_set_phb_mem_window(opal->phb_id, pnv_pci_init_ioda_phb()
2857 prop64 = of_get_property(np, "ibm,opal-hubid", NULL); pnv_pci_init_ioda_hub()
2859 pr_err(" Missing \"ibm,opal-hubid\" property !\n"); pnv_pci_init_ioda_hub()
H A Dsmp.c31 #include <asm/opal.h>
H A Dopal-dump.c19 #include <asm/opal.h>
H A Dopal-lpc.c22 #include <asm/opal.h>
H A Dpci.c31 #include <asm/opal.h>
H A Deeh-powernv.c36 #include <asm/opal.h>
/linux-4.1.27/drivers/tty/hvc/
H A Dhvc_opal.c2 * opal driver interface to hvc_console.c
38 #include <asm/opal.h>
45 { .name = "serial", .compatible = "ibm,opal-console-raw" },
46 { .name = "serial", .compatible = "ibm,opal-console-hvsi" },
187 if (of_device_is_compatible(dev->dev.of_node, "ibm,opal-console-raw")) { hvc_opal_probe()
191 "ibm,opal-console-hvsi")) { hvc_opal_probe()
349 /* If the console wasn't in /chosen, try /ibm,opal */ hvc_opal_init_early()
351 struct device_node *opal, *np; hvc_opal_init_early() local
356 opal = of_find_node_by_path("/ibm,opal/consoles"); hvc_opal_init_early()
357 if (opal) hvc_opal_init_early()
359 if (!opal) { hvc_opal_init_early()
360 opal = of_find_node_by_path("/ibm,opal"); hvc_opal_init_early()
361 if (opal) hvc_opal_init_early()
365 if (!opal) hvc_opal_init_early()
367 for_each_child_of_node(opal, np) { for_each_child_of_node()
373 of_node_put(opal);
384 if (of_device_is_compatible(stdout_node, "ibm,opal-console-raw")) {
389 else if (of_device_is_compatible(stdout_node,"ibm,opal-console-hvsi")) {
/linux-4.1.27/drivers/hwmon/
H A Dibmpowernv.c31 #include <asm/opal.h>
65 {"fan", "ibm,opal-sensor-cooling-fan"},
66 {"temp", "ibm,opal-sensor-amb-temp"},
67 {"in", "ibm,opal-sensor-power-supply"},
68 {"power", "ibm,opal-sensor-power"}
252 if (!of_device_is_compatible(np, "ibm,opal-sensor")) get_sensor_type()
286 struct device_node *opal, *np; populate_attr_groups() local
289 opal = of_find_node_by_path("/ibm,opal/sensors"); for_each_child_of_node()
290 for_each_child_of_node(opal, np) { for_each_child_of_node()
309 of_node_put(opal);
352 struct device_node *opal, *np; create_device_attrs() local
359 opal = of_find_node_by_path("/ibm,opal/sensors"); create_device_attrs()
367 for_each_child_of_node(opal, np) { for_each_child_of_node()
436 of_node_put(opal);
471 .name = "opal-sensor",
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-opal.c29 #include <asm/opal.h>
222 rc = of_property_read_u32(pdev->dev.of_node, "ibm,opal-id", &opal_id); i2c_opal_probe()
224 dev_err(&pdev->dev, "Missing ibm,opal-id property !\n"); i2c_opal_probe()
241 strlcpy(adapter->name, "opal", sizeof(adapter->name)); i2c_opal_probe()
262 .compatible = "ibm,opal-i2c",
272 .name = "i2c-opal",
H A DMakefile110 obj-$(CONFIG_I2C_OPAL) += i2c-opal.o
/linux-4.1.27/drivers/cpuidle/
H A Dcpuidle-powernv.c20 #include <asm/opal.h>
169 power_mgt = of_find_node_by_path("/ibm,opal/power-mgt"); powernv_add_idle_states()
171 pr_warn("opal: PowerMgmt Node not found\n"); powernv_add_idle_states()
/linux-4.1.27/drivers/rtc/
H A Drtc-opal.c21 #define DRVNAME "rtc-opal"
30 #include <asm/opal.h>
220 .compatible = "ibm,opal-rtc",
228 .name = "opal-rtc",
H A DMakefile100 obj-$(CONFIG_RTC_DRV_OPAL) += rtc-opal.o
/linux-4.1.27/arch/powerpc/include/asm/
H A Dopal.h15 #include <asm/opal-api.h>
24 /* /sys/firmware/opal */
27 /* /ibm,opal */
H A Dopal-api.h268 OPAL_THREAD_UNAVAILABLE = 0x2 /* opal-v3 */
/linux-4.1.27/drivers/char/ipmi/
H A Dipmi_powernv.c19 #include <asm/opal.h>
290 { .compatible = "ibm,opal-ipmi" },
/linux-4.1.27/arch/powerpc/kernel/
H A Didle_power7.S20 #include <asm/opal.h>
276 /* Invoke opal call to handle hmi */ \
280 li r0,OPAL_HANDLE_HMI; /* Pass opal token argument*/ \
H A Dprom_init.c45 #include <asm/opal.h>
1286 opal_node = call_prom("finddevice", 1, 1, ADDR("/ibm,opal")); prom_instantiate_opal()
1292 prom_getprop(opal_node, "opal-runtime-size", &val64, sizeof(val64)); prom_instantiate_opal()
1297 prom_getprop(opal_node, "opal-runtime-alignment", &val64,sizeof(val64)); prom_instantiate_opal()
1306 opal_inst = call_prom("open", 1, 1, ADDR("/ibm,opal")); prom_instantiate_opal()
1308 prom_printf("opening opal package failed (%x)\n", opal_inst); prom_instantiate_opal()
1312 prom_printf("instantiating opal at 0x%x...", base); prom_instantiate_opal()
1315 ADDR("load-opal-runtime"), prom_instantiate_opal()
1328 prom_debug("opal base = 0x%x\n", base); prom_instantiate_opal()
1329 prom_debug("opal align = 0x%x\n", align); prom_instantiate_opal()
1330 prom_debug("opal entry = 0x%x\n", entry); prom_instantiate_opal()
1331 prom_debug("opal size = 0x%x\n", (long)size); prom_instantiate_opal()
1333 prom_setprop(opal_node, "/ibm,opal", "opal-base-address", prom_instantiate_opal()
1335 prom_setprop(opal_node, "/ibm,opal", "opal-entry-address", prom_instantiate_opal()
1844 if (PHANDLE_VALID(call_prom("finddevice", 1, 1, ADDR("/ibm,opal")))) prom_find_machine_type()
H A Dmce_power.c256 * exception with SRR0 pointing inside opal. If that is the mce_handle_ue_error()
H A Dprom.c56 #include <asm/opal.h>
H A Dasm-offsets.c51 #include <asm/opal.h>
H A Dhead_64.S765 LOAD_REG_ADDR(r11, opal)
H A Dexceptions-64s.S1464 * returning from kernel or opal call.
/linux-4.1.27/arch/powerpc/sysdev/xics/
H A Dics-opal.c31 #include <asm/opal.h>
/linux-4.1.27/arch/powerpc/kvm/
H A Dbook3s_hv_ras.c14 #include <asm/opal.h>
/linux-4.1.27/drivers/cpufreq/
H A Dpowernv-cpufreq.c71 power_mgt = of_find_node_by_path("/ibm,opal/power-mgt"); init_powernv_pstates()
/linux-4.1.27/fs/pstore/
H A Dinode.c368 sprintf(name, "powerpc-opal-%s-%lld", psname, id); pstore_mkfile()
/linux-4.1.27/drivers/misc/cxl/
H A Dpci.c20 #include <asm/opal.h>
466 /* pciex node: ibm,opal-m64-window = <0x3d058 0x0 0x3d058 0x0 0x8 0x0>; */ switch_card_to_cxl()
/linux-4.1.27/arch/powerpc/mm/
H A Dnuma.c300 root = of_find_node_by_path("/ibm,opal"); find_min_common_depth()

Completed in 712 milliseconds