Lines Matching refs:kone_profile
182 struct kone_profile *buf, int number) in kone_get_profile()
193 sizeof(struct kone_profile), USB_CTRL_SET_TIMEOUT); in kone_get_profile()
195 if (len != sizeof(struct kone_profile)) in kone_get_profile()
208 struct kone_profile const *profile, int number) in kone_set_profile()
219 sizeof(struct kone_profile), in kone_set_profile()
222 if (len != sizeof(struct kone_profile)) in kone_set_profile()
348 if (off >= sizeof(struct kone_profile)) in kone_sysfs_read_profilex()
351 if (off + count > sizeof(struct kone_profile)) in kone_sysfs_read_profilex()
352 count = sizeof(struct kone_profile) - off; in kone_sysfs_read_profilex()
369 struct kone_profile *profile; in kone_sysfs_write_profilex()
373 if (off != 0 || count != sizeof(struct kone_profile)) in kone_sysfs_write_profilex()
379 difference = memcmp(buf, profile, sizeof(struct kone_profile)); in kone_sysfs_write_profilex()
382 (struct kone_profile const *)buf, in kone_sysfs_write_profilex()
385 memcpy(profile, buf, sizeof(struct kone_profile)); in kone_sysfs_write_profilex()
392 return sizeof(struct kone_profile); in kone_sysfs_write_profilex()
397 .size = sizeof(struct kone_profile), \