Lines Matching full:protocol
3 * System Control and Management Interface (SCMI) Message Protocol bus layer
42 * @id_table: A protocol/name pair descriptor for the device to be created.
47 * The requested device name MUST NOT be already existent for this protocol;
60 pr_debug("Requesting SCMI device (%s) for protocol %x\n", in scmi_protocol_device_request()
71 * Find the matching protocol rdev list and then search of any in scmi_protocol_device_request()
102 * related protocol list, eventually creating such head if not already in scmi_protocol_device_request()
153 * @id_table: A protocol/name pair descriptor for the device to be unrequested.
164 pr_debug("Unrequesting SCMI device (%s) for protocol %x\n", in scmi_protocol_device_unrequest()
378 pr_debug("(%s) Destroying SCMI device '%s' for protocol 0x%x (%s)\n", in __scmi_device_destroy()
392 int protocol, const char *name) in __scmi_device_create() argument
398 * If the same protocol/name device already exist under the same parent in __scmi_device_create()
401 * each DT defined protocol at probe time, and the concurrent in __scmi_device_create()
404 scmi_dev = scmi_child_dev_find(parent, protocol, name); in __scmi_device_create()
415 if (protocol == SCMI_PROTOCOL_SYSTEM && in __scmi_device_create()
418 "SCMI SystemPower protocol device must be unique !\n"); in __scmi_device_create()
440 scmi_dev->protocol_id = protocol; in __scmi_device_create()
451 pr_debug("(%s) Created SCMI device '%s' for protocol 0x%x (%s)\n", in __scmi_device_create()
453 dev_name(&scmi_dev->dev), protocol, name); in __scmi_device_create()
464 int protocol, const char *name) in _scmi_device_create() argument
468 sdev = __scmi_device_create(np, parent, protocol, name); in _scmi_device_create()
470 pr_err("(%s) Failed to create device for protocol 0x%x (%s)\n", in _scmi_device_create()
471 of_node_full_name(parent->of_node), protocol, name); in _scmi_device_create()
481 * @protocol: The SCMI protocol to be associated with this device
484 * be requested on the SCMI bus for @protocol will be created.
490 * protocol (typically during SCMI core protocol enumeration at probe time).
496 * could have been potentially created for a whole protocol, unless no
497 * device was found to have been requested for that specific protocol.
500 struct device *parent, int protocol, in scmi_device_create() argument
508 return _scmi_device_create(np, parent, protocol, name); in scmi_device_create()
511 phead = idr_find(&scmi_requested_devices, protocol); in scmi_device_create()
518 /* Walk the list of requested devices for protocol and create them */ in scmi_device_create()
535 void scmi_device_destroy(struct device *parent, int protocol, const char *name) in scmi_device_destroy() argument
539 scmi_dev = scmi_child_dev_find(parent, protocol, name); in scmi_device_destroy()
564 pr_err("SCMI protocol bus register failed (%d)\n", retval); in scmi_bus_init()
566 pr_info("SCMI protocol bus registered\n"); in scmi_bus_init()
586 MODULE_DESCRIPTION("ARM SCMI protocol bus");