Lines Matching refs:name

133  *					   resource by name
137 * @name: name of the resource
144 const char *name)
148 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
293 * platform_get_resource_byname - get a resource for a device by name
296 * @name: resource name
300 const char *name)
307 if (unlikely(!r->name))
310 if (type == resource_type(r) && !strcmp(r->name, name))
318 const char *name)
324 ret = of_irq_get_byname(dev->dev.of_node, name);
329 r = platform_get_resource_byname(dev, IORESOURCE_IRQ, name);
339 * platform_get_irq_byname - get an IRQ for a device by name
341 * @name: IRQ name
343 * Get an IRQ like platform_get_irq(), but then by name rather then by index.
347 int platform_get_irq_byname(struct platform_device *dev, const char *name)
351 ret = __platform_get_irq_byname(dev, name);
353 dev_err(&dev->dev, "IRQ %s not found\n", name);
360 * platform_get_irq_byname_optional - get an optional IRQ for a device by name
362 * @name: IRQ name
364 * Get an optional IRQ by name like platform_get_irq_byname(). Except that it
370 const char *name)
372 return __platform_get_irq_byname(dev, name);
400 char name[];
448 * @name: base name of the device we're adding
454 struct platform_device *platform_device_alloc(const char *name, int id)
458 pa = kzalloc(sizeof(*pa) + strlen(name) + 1, GFP_KERNEL);
460 strcpy(pa->name, name);
461 pa->pdev.name = pa->name;
565 dev_set_name(&pdev->dev, "%s.%d", pdev->name, pdev->id);
568 dev_set_name(&pdev->dev, "%s", pdev->name);
581 dev_set_name(&pdev->dev, "%s.%d.auto", pdev->name, pdev->id);
588 if (r->name == NULL)
589 r->name = dev_name(&pdev->dev);
702 pdev = platform_device_alloc(pdevinfo->name, pdevinfo->id);
857 drv->driver.name, __func__);
926 pdev = platform_device_alloc(driver->driver.name, -1);
1040 return sysfs_emit(buf, "platform:%s\n", pdev->name);
1119 pdev->name);
1127 while (id->name[0]) {
1128 if (strcmp(pdev->name, id->name) == 0) {
1143 * "<name><instance>", where <name> is a short description of the type of
1146 * "<name>". So, extract the <name> from the platform_device structure,
1147 * and compare it against the name of the driver. Return whether they match
1157 return !strcmp(pdev->driver_override, drv->name);
1171 /* fall-back to driver name match */
1172 return (strcmp(pdev->name, drv->name) == 0);
1341 .name = "platform",