Lines Matching refs:item
974 struct sony_nc_value *item = in sony_nc_sysfs_show() local
977 if (!*item->acpiget) in sony_nc_sysfs_show()
980 ret = sony_nc_int_call(sony_nc_acpi_handle, *item->acpiget, NULL, in sony_nc_sysfs_show()
985 if (item->validate) in sony_nc_sysfs_show()
986 value = item->validate(SNC_VALIDATE_OUT, value); in sony_nc_sysfs_show()
997 struct sony_nc_value *item = in sony_nc_sysfs_store() local
1000 if (!item->acpiset) in sony_nc_sysfs_store()
1009 if (item->validate) in sony_nc_sysfs_store()
1010 value = item->validate(SNC_VALIDATE_IN, value); in sony_nc_sysfs_store()
1015 ret = sony_nc_int_call(sony_nc_acpi_handle, *item->acpiset, in sony_nc_sysfs_store()
1020 item->value = value; in sony_nc_sysfs_store()
1021 item->valid = 1; in sony_nc_sysfs_store()
1565 struct sony_nc_value *item; in sony_nc_resume() local
1567 for (item = sony_nc_values; item->name; item++) { in sony_nc_resume()
1570 if (!item->valid) in sony_nc_resume()
1572 ret = sony_nc_int_call(sony_nc_acpi_handle, *item->acpiset, in sony_nc_resume()
1573 &item->value, NULL); in sony_nc_resume()
3152 struct sony_nc_value *item; in sony_nc_add() local
3207 for (item = sony_nc_values; item->name; ++item) { in sony_nc_add()
3209 if (!debug && item->debug) in sony_nc_add()
3213 for (; item->acpiget && *item->acpiget; ++item->acpiget) { in sony_nc_add()
3215 *item->acpiget)) { in sony_nc_add()
3217 item->name, *item->acpiget); in sony_nc_add()
3218 item->devattr.attr.mode |= S_IRUGO; in sony_nc_add()
3224 for (; item->acpiset && *item->acpiset; ++item->acpiset) { in sony_nc_add()
3226 *item->acpiset)) { in sony_nc_add()
3228 item->name, *item->acpiset); in sony_nc_add()
3229 item->devattr.attr.mode |= S_IWUSR; in sony_nc_add()
3234 if (item->devattr.attr.mode != 0) { in sony_nc_add()
3237 &item->devattr); in sony_nc_add()
3247 for (item = sony_nc_values; item->name; ++item) { in sony_nc_add()
3248 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_add()
3267 struct sony_nc_value *item; in sony_nc_remove() local
3273 for (item = sony_nc_values; item->name; ++item) { in sony_nc_remove()
3274 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_remove()