Lines Matching refs:item
973 struct sony_nc_value *item = in sony_nc_sysfs_show() local
976 if (!*item->acpiget) in sony_nc_sysfs_show()
979 ret = sony_nc_int_call(sony_nc_acpi_handle, *item->acpiget, NULL, in sony_nc_sysfs_show()
984 if (item->validate) in sony_nc_sysfs_show()
985 value = item->validate(SNC_VALIDATE_OUT, value); in sony_nc_sysfs_show()
996 struct sony_nc_value *item = in sony_nc_sysfs_store() local
999 if (!item->acpiset) in sony_nc_sysfs_store()
1008 if (item->validate) in sony_nc_sysfs_store()
1009 value = item->validate(SNC_VALIDATE_IN, value); in sony_nc_sysfs_store()
1014 ret = sony_nc_int_call(sony_nc_acpi_handle, *item->acpiset, in sony_nc_sysfs_store()
1019 item->value = value; in sony_nc_sysfs_store()
1020 item->valid = 1; in sony_nc_sysfs_store()
1563 struct sony_nc_value *item; in sony_nc_resume() local
1565 for (item = sony_nc_values; item->name; item++) { in sony_nc_resume()
1568 if (!item->valid) in sony_nc_resume()
1570 ret = sony_nc_int_call(sony_nc_acpi_handle, *item->acpiset, in sony_nc_resume()
1571 &item->value, NULL); in sony_nc_resume()
3150 struct sony_nc_value *item; in sony_nc_add() local
3209 for (item = sony_nc_values; item->name; ++item) { in sony_nc_add()
3211 if (!debug && item->debug) in sony_nc_add()
3215 for (; item->acpiget && *item->acpiget; ++item->acpiget) { in sony_nc_add()
3217 *item->acpiget)) { in sony_nc_add()
3219 item->name, *item->acpiget); in sony_nc_add()
3220 item->devattr.attr.mode |= S_IRUGO; in sony_nc_add()
3226 for (; item->acpiset && *item->acpiset; ++item->acpiset) { in sony_nc_add()
3228 *item->acpiset)) { in sony_nc_add()
3230 item->name, *item->acpiset); 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()
3249 for (item = sony_nc_values; item->name; ++item) { in sony_nc_add()
3250 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_add()
3269 struct sony_nc_value *item; in sony_nc_remove() local
3275 for (item = sony_nc_values; item->name; ++item) { in sony_nc_remove()
3276 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_remove()