Lines Matching refs:devattr
656 struct device_attribute devattr; /* sysfs attribute */ member
669 .devattr = __ATTR(_name, 0, sony_nc_sysfs_show, sony_nc_sysfs_store), \
831 struct device_attribute devattr; member
871 sysfs_attr_init(&handles->devattr.attr); in sony_nc_handles_setup()
872 handles->devattr.attr.name = "handles"; in sony_nc_handles_setup()
873 handles->devattr.attr.mode = S_IRUGO; in sony_nc_handles_setup()
874 handles->devattr.show = sony_nc_handles_show; in sony_nc_handles_setup()
877 if (device_create_file(&pd->dev, &handles->devattr)) { in sony_nc_handles_setup()
891 device_remove_file(&pd->dev, &handles->devattr); in sony_nc_handles_cleanup()
974 container_of(attr, struct sony_nc_value, devattr); in sony_nc_sysfs_show()
997 container_of(attr, struct sony_nc_value, devattr); in sony_nc_sysfs_store()
3220 item->devattr.attr.mode |= S_IRUGO; in sony_nc_add()
3231 item->devattr.attr.mode |= S_IWUSR; in sony_nc_add()
3236 if (item->devattr.attr.mode != 0) { in sony_nc_add()
3239 &item->devattr); in sony_nc_add()
3250 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_add()
3276 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_remove()