Home
last modified time | relevance | path

Searched refs:attr_name (Results 1 – 15 of 15) sorted by relevance

/drivers/staging/usbip/userspace/src/
Dusbip_unbind.c50 char attr_name[] = "bConfigurationValue"; in unbind_device() local
104 busid, attr_name); in unbind_device()
109 err("could not open %s/%s: %s", busid, attr_name, in unbind_device()
134 err("could not open %s/%s: %s", busid, attr_name, in unbind_device()
Dutils.c31 char attr_name[] = "match_busid"; in modify_match_busid() local
51 SYSFS_DRIVERS_NAME, USBIP_HOST_DRV_NAME, attr_name); in modify_match_busid()
Dusbip_bind.c52 char attr_name[] = "bind"; in bind_usbip() local
71 USBIP_HOST_DRV_NAME, attr_name); in bind_usbip()
/drivers/char/mwave/
Dmwavedd.c497 #define mwave_show_function(attr_name, format_string, field) \
498 static ssize_t mwave_show_##attr_name(struct device *dev, struct device_attribute *attr, char *buf)…
506 #define mwave_dev_rd_attr(attr_name, format_string, field) \
507 mwave_show_function(attr_name, format_string, field) \
508 static DEVICE_ATTR(attr_name, S_IRUGO, mwave_show_##attr_name, NULL)
/drivers/leds/
Dleds-bd2802.c476 #define BD2802_CONTROL_ATTR(attr_name, name_str) \ argument
477 static ssize_t bd2802_show_##attr_name(struct device *dev, \
483 ret = sprintf(buf, "0x%02x\n", led->attr_name); \
487 static ssize_t bd2802_store_##attr_name(struct device *dev, \
499 led->attr_name = val; \
503 static struct device_attribute bd2802_##attr_name##_attr = { \
508 .show = bd2802_show_##attr_name, \
509 .store = bd2802_store_##attr_name, \
/drivers/media/video/pvrusb2/
Dpvrusb2-sysfs.c64 struct device_attribute attr_name; member
93 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_name); in show_name()
327 sysfs_attr_init(&cip->attr_name.attr); in pvr2_sysfs_add_control()
328 cip->attr_name.attr.name = "name"; in pvr2_sysfs_add_control()
329 cip->attr_name.attr.mode = S_IRUGO; in pvr2_sysfs_add_control()
330 cip->attr_name.show = show_name; in pvr2_sysfs_add_control()
376 cip->attr_gen[acnt++] = &cip->attr_name.attr; in pvr2_sysfs_add_control()
/drivers/base/
Dmemory.c363 #define mem_create_simple_file(mem, attr_name) \ argument
364 device_create_file(&mem->dev, &dev_attr_##attr_name)
365 #define mem_remove_simple_file(mem, attr_name) \ argument
366 device_remove_file(&mem->dev, &dev_attr_##attr_name)
Dbus.c467 for (i = 0; attr_name(bus->dev_attrs[i]); i++) { in device_add_attrs()
483 for (i = 0; attr_name(bus->dev_attrs[i]); i++) in device_remove_attrs()
597 for (i = 0; attr_name(bus->drv_attrs[i]); i++) { in driver_add_attrs()
617 for (i = 0; attr_name(bus->drv_attrs[i]); i++) in driver_remove_attrs()
865 for (i = 0; attr_name(bus->bus_attrs[i]); i++) { in bus_add_attrs()
884 for (i = 0; attr_name(bus->bus_attrs[i]); i++) in bus_remove_attrs()
Dclass.c138 for (i = 0; attr_name(cls->class_attrs[i]); i++) { in add_class_attrs()
157 for (i = 0; attr_name(cls->class_attrs[i]); i++) in remove_class_attrs()
Dcore.c375 for (i = 0; attr_name(attrs[i]); i++) { in device_add_attributes()
393 for (i = 0; attr_name(attrs[i]); i++) in device_remove_attributes()
404 for (i = 0; attr_name(attrs[i]); i++) { in device_add_bin_attributes()
422 for (i = 0; attr_name(attrs[i]); i++) in device_remove_bin_attributes()
/drivers/staging/usbip/userspace/libsrc/
Dusbip_host_driver.c337 char attr_name[] = "usbip_sockfd"; in usbip_host_export_device() local
361 edev->udev.bConfigurationValue, 0, attr_name); in usbip_host_export_device()
/drivers/hwmon/
Dcoretemp.c96 char attr_name[TOTAL_ATTRS][CORETEMP_NAME_LENGTH]; member
353 snprintf(tdata->attr_name[i], CORETEMP_NAME_LENGTH, names[i], in create_core_attrs()
356 tdata->sd_attrs[i].dev_attr.attr.name = tdata->attr_name[i]; in create_core_attrs()
/drivers/thermal/
Dthermal_sys.c50 char attr_name[THERMAL_NAME_LENGTH]; member
796 sprintf(dev->attr_name, "cdev%d_trip_point", dev->id); in thermal_zone_bind_cooling_device()
798 dev->attr.attr.name = dev->attr_name; in thermal_zone_bind_cooling_device()
/drivers/cpuidle/
Dsysfs.c288 &attr_name.attr,
/drivers/net/ethernet/sun/
Dniu.c9491 for (i = 0; attr_name(niu_parent_attributes[i]); i++) { in niu_new_parent()