Lines Matching refs:kone_settings
92 static void kone_set_settings_checksum(struct kone_settings *settings) in kone_set_settings_checksum()
98 for (i = 0; i < sizeof(struct kone_settings) - 2; ++i, ++address) in kone_set_settings_checksum()
146 struct kone_settings *buf) in kone_get_settings()
149 sizeof(struct kone_settings)); in kone_get_settings()
158 struct kone_settings const *settings) in kone_set_settings()
163 settings, sizeof(struct kone_settings)); in kone_set_settings()
269 if (off >= sizeof(struct kone_settings)) in kone_sysfs_read_settings()
272 if (off + count > sizeof(struct kone_settings)) in kone_sysfs_read_settings()
273 count = sizeof(struct kone_settings) - off; in kone_sysfs_read_settings()
294 struct kone_settings *settings = (struct kone_settings *)buf; in kone_sysfs_write_settings()
297 if (off != 0 || count != sizeof(struct kone_settings)) in kone_sysfs_write_settings()
302 sizeof(struct kone_settings)); in kone_sysfs_write_settings()
315 memcpy(&kone->settings, settings, sizeof(struct kone_settings)); in kone_sysfs_write_settings()
328 return sizeof(struct kone_settings); in kone_sysfs_write_settings()
331 kone_sysfs_write_settings, sizeof(struct kone_settings));