Lines Matching refs:device

16 #include <linux/device.h>
38 * scmi_protocol_device_request - Helper to request a device
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;
47 * @scmi_requested_devices and then the requested device is advertised to any
59 pr_debug("Requesting SCMI device (%s) for protocol %x\n",
71 * of any existent equally named device...fails if any duplicate found.
96 * requested device entry for this new valid request.
106 * Append the new requested device table descriptor to the head of the
123 pr_err("Failed to save SCMI device - ret:%d\n", ret);
145 * scmi_protocol_device_unrequest - Helper to unrequest a device
147 * @id_table: A protocol/name pair descriptor for the device to be unrequested.
149 * The unrequested device, described by the provided id_table, is at first
158 pr_debug("Unrequesting SCMI device (%s) for protocol %x\n",
208 static int scmi_dev_match(struct device *dev, struct device_driver *drv)
221 static int scmi_match_by_id_table(struct device *dev, void *data)
230 static struct scmi_device *scmi_child_dev_find(struct device *parent,
234 struct device *dev;
246 static int scmi_dev_probe(struct device *dev)
257 static void scmi_dev_remove(struct device *dev)
306 static void scmi_device_release(struct device *dev)
313 pr_debug("(%s) Destroying SCMI device '%s' for protocol 0x%x (%s)\n",
327 __scmi_device_create(struct device_node *np, struct device *parent,
334 * If the same protocol/name device already exist under the same parent
335 * (i.e. SCMI instance) just return the existent device.
345 * Ignore any possible subsequent failures while creating the device
354 "SCMI SystemPower protocol device must be unique !\n");
387 pr_debug("(%s) Created SCMI device '%s' for protocol 0x%x (%s)\n",
402 * @np: A reference to the device node to use for the new device(s)
403 * @parent: The parent device to use identifying a specific SCMI instance
404 * @protocol: The SCMI protocol to be associated with this device
405 * @name: The requested-name of the device to be created; this is optional
409 * This method can be invoked to create a single well-defined device (like
410 * a transport device or a device requested by an SCMI driver loaded after
415 * Return: The created device (or one of them if @name was NOT provided and
416 * multiple devices were created) or NULL if no device was created;
420 * device was found to have been requested for that specific protocol.
423 struct device *parent, int protocol,
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)
473 static int __scmi_devices_unregister(struct device *dev, void *data)