Lines Matching refs:kone_profile
179 struct kone_profile *buf, int number) in kone_get_profile()
190 sizeof(struct kone_profile), USB_CTRL_SET_TIMEOUT); in kone_get_profile()
192 if (len != sizeof(struct kone_profile)) in kone_get_profile()
205 struct kone_profile const *profile, int number) in kone_set_profile()
216 sizeof(struct kone_profile), in kone_set_profile()
219 if (len != sizeof(struct kone_profile)) in kone_set_profile()
342 if (off >= sizeof(struct kone_profile)) in kone_sysfs_read_profilex()
345 if (off + count > sizeof(struct kone_profile)) in kone_sysfs_read_profilex()
346 count = sizeof(struct kone_profile) - off; in kone_sysfs_read_profilex()
362 struct kone_profile *profile; in kone_sysfs_write_profilex()
366 if (off != 0 || count != sizeof(struct kone_profile)) in kone_sysfs_write_profilex()
372 difference = memcmp(buf, profile, sizeof(struct kone_profile)); in kone_sysfs_write_profilex()
375 (struct kone_profile const *)buf, in kone_sysfs_write_profilex()
378 memcpy(profile, buf, sizeof(struct kone_profile)); in kone_sysfs_write_profilex()
385 return sizeof(struct kone_profile); in kone_sysfs_write_profilex()
390 .size = sizeof(struct kone_profile), \