Lines Matching refs:kp
1284 static int uvc_v4l2_get_xu_mapping(struct uvc_xu_control_mapping *kp, in uvc_v4l2_get_xu_mapping() argument
1290 __copy_from_user(kp, up, offsetof(typeof(*up), menu_info)) || in uvc_v4l2_get_xu_mapping()
1291 __get_user(kp->menu_count, &up->menu_count)) in uvc_v4l2_get_xu_mapping()
1294 memset(kp->reserved, 0, sizeof(kp->reserved)); in uvc_v4l2_get_xu_mapping()
1296 if (kp->menu_count == 0) { in uvc_v4l2_get_xu_mapping()
1297 kp->menu_info = NULL; in uvc_v4l2_get_xu_mapping()
1303 kp->menu_info = compat_ptr(p); in uvc_v4l2_get_xu_mapping()
1308 static int uvc_v4l2_put_xu_mapping(const struct uvc_xu_control_mapping *kp, in uvc_v4l2_put_xu_mapping() argument
1312 __copy_to_user(up, kp, offsetof(typeof(*up), menu_info)) || in uvc_v4l2_put_xu_mapping()
1313 __put_user(kp->menu_count, &up->menu_count)) in uvc_v4l2_put_xu_mapping()
1330 static int uvc_v4l2_get_xu_query(struct uvc_xu_control_query *kp, in uvc_v4l2_get_xu_query() argument
1336 __copy_from_user(kp, up, offsetof(typeof(*up), data))) in uvc_v4l2_get_xu_query()
1339 if (kp->size == 0) { in uvc_v4l2_get_xu_query()
1340 kp->data = NULL; in uvc_v4l2_get_xu_query()
1346 kp->data = compat_ptr(p); in uvc_v4l2_get_xu_query()
1351 static int uvc_v4l2_put_xu_query(const struct uvc_xu_control_query *kp, in uvc_v4l2_put_xu_query() argument
1355 __copy_to_user(up, kp, offsetof(typeof(*up), data))) in uvc_v4l2_put_xu_query()