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)
44 #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.
98 * Each protocol is initialized independently once for each SCMI platform in
99 * which is defined by DT and implemented by the SCMI server fw.
117 * @name: Name of this SCMI instance
118 * @type: Type of this SCMI instance
131 * struct scmi_info - Structure representing a SCMI instance
136 * @version: SCMI revision information containing protocol version,
138 * @handle: Instance of SCMI handle to send to clients
144 * this SCMI instance: populated on protocol's first attempted
154 * Only SCMI synchronous commands reported by the platform
157 * decision is finally left up to the SCMI drivers.
161 * @bus_nb: A notifier to listen for device bind/unbind on the scmi bus
162 * @dev_req_nb: A notifier to listen for device request/unrequest on the scmi
164 * @devreq_mtx: A mutex to serialize device creation for this SCMI instance
166 * @raw: An opaque reference handle used by SCMI Raw mode.
298 pr_warn("SCMI Protocol 0x%x not found!\n", protocol_id); in scmi_protocol_get()
302 pr_debug("Found SCMI Protocol 0x%x\n", protocol_id); in scmi_protocol_get()
305 pr_info("Loaded SCMI Vendor Protocol 0x%x - %s %s %X\n", in scmi_protocol_get()
371 pr_err("unable to allocate SCMI protocol slot for 0x%x - err %d\n", in scmi_protocol_register()
376 pr_debug("Registered SCMI Protocol 0x%x\n", proto->id); in scmi_protocol_register()
394 pr_debug("Unregistered SCMI Protocol 0x%x\n", proto->id); in scmi_protocol_unregister()
400 * this SCMI instance.
403 * @info: The SCMI instance descriptor
622 * @handle: Pointer to SCMI entity handle
663 * @handle: Pointer to SCMI entity handle
713 * @handle: Pointer to SCMI entity handle
735 * @handle: Pointer to SCMI entity handle
738 * Note that in a regular SCMI stack, usually, a protocol has to be defined in
798 * @handle: Pointer to SCMI entity handle
888 * SCMI transport can deliver such out-of-order responses.
1176 * @cinfo: SCMI channel info
1209 * @ph: Pointer to SCMI protocol handle
1312 * @cinfo: SCMI channel info
1339 * @cinfo: SCMI channel info
1364 * @ph: Pointer to SCMI protocol handle
1462 * @ph: Pointer to SCMI protocol handle
1517 * @ph: Pointer to SCMI protocol handle
1573 * version_get() - command to get the revision of the SCMI entity
1575 * @ph: Pointer to SCMI protocol handle
1578 * Updates the SCMI information in the internal data structure.
2032 * A helper to grab the version memory area reference during SCMI Base protocol
2035 * Return: A reference to the version memory area associated to the SCMI
2087 * @info: The reference to the related SCMI instance.
2091 * description, against the specified SCMI instance @info, and initialize it;
2184 * @handle: A reference to the SCMI platform instance.
2223 * @handle: A reference to the SCMI platform instance.
2226 * Register a new user for the requested protocol on the specified SCMI
2238 * @handle: A reference to the SCMI platform instance.
2349 * released, and possibly de-initialized on last user, once the SCMI driver
2384 * released, and possibly de-initialized on last user, once the SCMI driver
2431 * SCMI instance is configured as atomic.
2433 * @handle: A reference to the SCMI platform instance.
2454 * scmi_handle_get() - Get the SCMI handle for a device
2456 * @dev: pointer to device for which we want SCMI handle
2459 * and is expected to be maintained by caller of SCMI protocol library.
2490 * and is expected to be maintained by caller of SCMI protocol library.
2686 "unable to allocate SCMI idr slot err %d\n", ret); in scmi_chan_setup()
2723 * @info: The SCMI instance descriptor.
2727 * borrowing devices from the SCMI drivers; this way channels are initialized
2728 * upfront during core SCMI stack probing and are no more coupled with SCMI
2729 * devices used by SCMI drivers.
2808 /* Skip transport devices and devices of different SCMI instances */ in scmi_bus_notifier()
3009 "SCMI RAW - Error enumerating channels\n"); in scmi_debugfs_raw_mode_setup()
3023 dev_err(info->dev, "Failed to initialize SCMI RAW Mode !\n"); in scmi_debugfs_raw_mode_setup()
3056 dev_info(dev, "SCMI max-rx-timeout: %dms\n", in scmi_transport_setup()
3113 "SCMI System wide atomic threshold set to %d us\n", in scmi_probe()
3146 dev_warn(dev, "Failed to setup SCMI debugfs.\n"); in scmi_probe()
3159 dev_info(dev, "SCMI RAW Mode COEX enabled !\n"); in scmi_probe()
3164 dev_err(dev, "SCMI Notifications NOT available.\n"); in scmi_probe()
3172 * Trigger SCMI Base protocol initialization. in scmi_probe()
3174 * SCMI stack is shutdown/unloaded as a whole. in scmi_probe()
3178 err_str = "unable to communicate with SCMI\n"; in scmi_probe()
3200 dev_err(dev, "SCMI protocol %d not implemented\n", in scmi_probe()
3207 * @active_protocols for this SCMI instance/ in scmi_probe()
3212 dev_err(dev, "SCMI protocol %d already activated. Skip\n", in scmi_probe()
3253 "Still active SCMI users will be forcibly unbound.\n"); in scmi_remove()
3325 .name = "arm-scmi",
3337 d = debugfs_create_dir("scmi", NULL); in scmi_debugfs_init()
3339 pr_err("Could NOT create SCMI top dentry.\n"); in scmi_debugfs_init()
3348 /* Bail out if no SCMI transport was configured */ in scmi_driver_init()
3397 MODULE_ALIAS("platform:arm-scmi");
3399 MODULE_DESCRIPTION("ARM SCMI protocol driver");