Lines Matching full:scmi

3  * System Control and Management Interface (SCMI) Message Protocol driver
5 * SCMI Message Protocol is used between the System Control Processor(SCP)
43 #include <trace/events/scmi.h>
50 /* List of all SCMI devices active in system */
83 * @handle: Reference to the SCMI handle associated to this protocol instance.
91 * Each protocol is initialized independently once for each SCMI platform in
92 * which is defined by DT and implemented by the SCMI server fw.
108 * @name: Name of this SCMI instance
109 * @type: Type of this SCMI instance
120 * struct scmi_info - Structure representing a SCMI instance
125 * @version: SCMI revision information containing protocol version,
127 * @handle: Instance of SCMI handle to send to clients
133 * this SCMI instance: populated on protocol's first attempted
143 * Only SCMI synchronous commands reported by the platform
146 * decision is finally left up to the SCMI drivers.
150 * @bus_nb: A notifier to listen for device bind/unbind on the scmi bus
151 * @dev_req_nb: A notifier to listen for device request/unrequest on the scmi
153 * @devreq_mtx: A mutex to serialize device creation for this SCMI instance
155 * @raw: An opaque reference handle used by SCMI Raw mode.
194 pr_warn("SCMI Protocol 0x%x not found!\n", protocol_id); in scmi_protocol_get()
198 pr_debug("Found SCMI Protocol 0x%x\n", protocol_id); in scmi_protocol_get()
231 pr_err("unable to allocate SCMI idr slot for 0x%x - err %d\n", in scmi_protocol_register()
236 pr_debug("Registered SCMI Protocol 0x%x\n", proto->id); in scmi_protocol_register()
248 pr_debug("Unregistered SCMI Protocol 0x%x\n", proto->id); in scmi_protocol_unregister()
254 * this SCMI instance.
257 * @info: The SCMI instance descriptor
476 * @handle: Pointer to SCMI entity handle
517 * @handle: Pointer to SCMI entity handle
567 * @handle: Pointer to SCMI entity handle
589 * @handle: Pointer to SCMI entity handle
592 * Note that in a regular SCMI stack, usually, a protocol has to be defined in
652 * @handle: Pointer to SCMI entity handle
703 * SCMI transport can deliver such out-of-order responses.
976 * @cinfo: SCMI channel info
1007 * @ph: Pointer to SCMI protocol handle
1111 * @cinfo: SCMI channel info
1138 * @cinfo: SCMI channel info
1163 * @ph: Pointer to SCMI protocol handle
1255 * @ph: Pointer to SCMI protocol handle
1310 * @ph: Pointer to SCMI protocol handle
1366 * version_get() - command to get the revision of the SCMI entity
1368 * @ph: Pointer to SCMI protocol handle
1371 * Updates the SCMI information in the internal data structure.
1767 * A helper to grab the version memory area reference during SCMI Base protocol
1770 * Return: A reference to the version memory area associated to the SCMI
1784 * @info: The reference to the related SCMI instance.
1788 * description, against the specified SCMI instance @info, and initialize it;
1865 * @handle: A reference to the SCMI platform instance.
1904 * @handle: A reference to the SCMI platform instance.
1907 * Register a new user for the requested protocol on the specified SCMI
1919 * @handle: A reference to the SCMI platform instance.
2030 * released, and possibly de-initialized on last user, once the SCMI driver
2065 * released, and possibly de-initialized on last user, once the SCMI driver
2112 * SCMI instance is configured as atomic.
2114 * @handle: A reference to the SCMI platform instance.
2135 * scmi_handle_get() - Get the SCMI handle for a device
2137 * @dev: pointer to device for which we want SCMI handle
2140 * and is expected to be maintained by caller of SCMI protocol library.
2171 * and is expected to be maintained by caller of SCMI protocol library.
2367 "unable to allocate SCMI idr slot err %d\n", ret); in scmi_chan_setup()
2400 * @info: The SCMI instance descriptor.
2404 * borrowing devices from the SCMI drivers; this way channels are initialized
2405 * upfront during core SCMI stack probing and are no more coupled with SCMI
2406 * devices used by SCMI drivers.
2487 /* Skip transport devices and devices of different SCMI instances */ in scmi_bus_notifier()
2636 "SCMI RAW - Error enumerating channels\n"); in scmi_debugfs_raw_mode_setup()
2650 dev_err(info->dev, "Failed to initialize SCMI RAW Mode !\n"); in scmi_debugfs_raw_mode_setup()
2705 "SCMI System wide atomic threshold set to %d us\n", in scmi_probe()
2736 dev_warn(dev, "Failed to setup SCMI debugfs.\n"); in scmi_probe()
2749 dev_info(dev, "SCMI RAW Mode COEX enabled !\n"); in scmi_probe()
2754 dev_err(dev, "SCMI Notifications NOT available.\n"); in scmi_probe()
2762 * Trigger SCMI Base protocol initialization. in scmi_probe()
2764 * SCMI stack is shutdown/unloaded as a whole. in scmi_probe()
2768 dev_err(dev, "unable to communicate with SCMI\n"); in scmi_probe()
2788 dev_err(dev, "SCMI protocol %d not implemented\n", in scmi_probe()
2795 * @active_protocols for this SCMI instance/ in scmi_probe()
2800 dev_err(dev, "SCMI protocol %d already activated. Skip\n", in scmi_probe()
2839 "Still active SCMI users will be forcibly unbound.\n"); in scmi_remove()
2914 { .compatible = "arm,scmi", .data = &scmi_mailbox_desc },
2917 { .compatible = "linaro,scmi-optee", .data = &scmi_optee_desc },
2920 { .compatible = "arm,scmi-smc", .data = &scmi_smc_desc},
2921 { .compatible = "arm,scmi-smc-param", .data = &scmi_smc_desc},
2924 { .compatible = "arm,scmi-virtio", .data = &scmi_virtio_desc},
2933 .name = "arm-scmi",
2971 pr_err("SCMI transport %s FAILED initialization!\n", in __scmi_transports_setup()
2994 d = debugfs_create_dir("scmi", NULL); in scmi_debugfs_init()
2996 pr_err("Could NOT create SCMI top dentry.\n"); in scmi_debugfs_init()
3007 /* Bail out if no SCMI transport was configured */ in scmi_driver_init()
3055 MODULE_ALIAS("platform:arm-scmi");
3057 MODULE_DESCRIPTION("ARM SCMI protocol driver");