Lines Matching defs:name

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;
60 id_table->name, id_table->protocol_id);
65 id_table->name, id_table->protocol_id);
84 if (!strcmp(rdev->id_table->name, id_table->name)) {
87 rdev->id_table->name);
147 * @id_table: A protocol/name pair descriptor for the device to be unrequested.
159 id_table->name, id_table->protocol_id);
167 if (!strcmp(victim->id_table->name, id_table->name)) {
199 if (!id->name)
201 else if (!strcmp(id->name, scmi_dev->name))
227 (id_table->name && !strcmp(sdev->name, id_table->name));
231 int prot_id, const char *name)
237 id_table.name = name;
267 .name = "scmi_protocol",
287 driver->driver.name = driver->name;
293 pr_debug("Registered new scmi driver %s\n", driver->name);
316 scmi_dev->name);
321 kfree_const(scmi_dev->name);
328 int protocol, const char *name)
334 * If the same protocol/name device already exist under the same parent
340 scmi_dev = scmi_child_dev_find(parent, protocol, name);
362 scmi_dev->name = kstrdup_const(name ?: "unknown", GFP_KERNEL);
363 if (!scmi_dev->name) {
370 kfree_const(scmi_dev->name);
389 dev_name(&scmi_dev->dev), protocol, name);
393 kfree_const(scmi_dev->name);
405 * @name: The requested-name of the device to be created; this is optional
406 * and if no @name is provided, all the devices currently known to
415 * Return: The created device (or one of them if @name was NOT provided and
417 * note that NULL indicates an error ONLY in case a specific @name
418 * was provided: when @name param was not provided, a number of devices
424 const char *name)
430 if (name)
431 return __scmi_device_create(np, parent, protocol, name);
447 rdev->id_table->name);
455 rdev->id_table->name);
463 void scmi_device_destroy(struct device *parent, int protocol, const char *name)
467 scmi_dev = scmi_child_dev_find(parent, protocol, name);