Lines Matching defs:protocol
40 * @id_table: A protocol/name pair descriptor for the device to be created.
45 * The requested device name MUST NOT be already existent for any protocol;
59 pr_debug("Requesting SCMI device (%s) for protocol %x\n",
70 * Search for the matching protocol rdev list and then search
107 * related protocol list, eventually creating such head if not already
147 * @id_table: A protocol/name pair descriptor for the device to be unrequested.
158 pr_debug("Unrequesting SCMI device (%s) for protocol %x\n",
313 pr_debug("(%s) Destroying SCMI device '%s' for protocol 0x%x (%s)\n",
328 int protocol, const char *name)
334 * If the same protocol/name device already exist under the same parent
337 * each DT defined protocol at probe time, and the concurrent
340 scmi_dev = scmi_child_dev_find(parent, protocol, name);
351 if (protocol == SCMI_PROTOCOL_SYSTEM &&
354 "SCMI SystemPower protocol device must be unique !\n");
376 scmi_dev->protocol_id = protocol;
387 pr_debug("(%s) Created SCMI device '%s' for protocol 0x%x (%s)\n",
389 dev_name(&scmi_dev->dev), protocol, name);
404 * @protocol: The SCMI protocol to be associated with this device
407 * be requested on the SCMI bus for @protocol will be created.
413 * protocol (typically during SCMI core protocol enumeration at probe time).
419 * could have been potentially created for a whole protocol, unless no
420 * device was found to have been requested for that specific protocol.
423 struct device *parent, int protocol,
431 return __scmi_device_create(np, parent, protocol, name);
434 phead = idr_find(&scmi_requested_devices, protocol);
441 /* Walk the list of requested devices for protocol and create them */
452 pr_err("(%s) Failed to create device for protocol 0x%x (%s)\n",
463 void scmi_device_destroy(struct device *parent, int protocol, const char *name)
467 scmi_dev = scmi_child_dev_find(parent, protocol, name);
492 pr_err("SCMI protocol bus register failed (%d)\n", retval);
494 pr_info("SCMI protocol bus registered\n");
514 MODULE_DESCRIPTION("ARM SCMI protocol bus");