Lines Matching refs:xmap
32 struct uvc_xu_control_mapping *xmap) in uvc_ioctl_ctrl_map() argument
42 map->id = xmap->id; in uvc_ioctl_ctrl_map()
43 memcpy(map->name, xmap->name, sizeof(map->name)); in uvc_ioctl_ctrl_map()
44 memcpy(map->entity, xmap->entity, sizeof(map->entity)); in uvc_ioctl_ctrl_map()
45 map->selector = xmap->selector; in uvc_ioctl_ctrl_map()
46 map->size = xmap->size; in uvc_ioctl_ctrl_map()
47 map->offset = xmap->offset; in uvc_ioctl_ctrl_map()
48 map->v4l2_type = xmap->v4l2_type; in uvc_ioctl_ctrl_map()
49 map->data_type = xmap->data_type; in uvc_ioctl_ctrl_map()
51 switch (xmap->v4l2_type) { in uvc_ioctl_ctrl_map()
61 if (xmap->menu_count == 0 || in uvc_ioctl_ctrl_map()
62 xmap->menu_count > UVC_MAX_CONTROL_MENU_ENTRIES) { in uvc_ioctl_ctrl_map()
67 size = xmap->menu_count * sizeof(*map->menu_info); in uvc_ioctl_ctrl_map()
68 map->menu_info = memdup_user(xmap->menu_info, size); in uvc_ioctl_ctrl_map()
74 map->menu_count = xmap->menu_count; in uvc_ioctl_ctrl_map()
79 "%u.\n", xmap->v4l2_type); in uvc_ioctl_ctrl_map()
1387 struct uvc_xu_control_mapping xmap; in uvc_v4l2_compat_ioctl32() member
1395 ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1398 ret = uvc_ioctl_ctrl_map(handle->chain, &karg.xmap); in uvc_v4l2_compat_ioctl32()
1401 ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()