Lines Matching refs:xmap
37 struct uvc_xu_control_mapping *xmap) in uvc_ioctl_ctrl_map() argument
47 map->id = xmap->id; in uvc_ioctl_ctrl_map()
48 memcpy(map->name, xmap->name, sizeof map->name); in uvc_ioctl_ctrl_map()
49 memcpy(map->entity, xmap->entity, sizeof map->entity); in uvc_ioctl_ctrl_map()
50 map->selector = xmap->selector; in uvc_ioctl_ctrl_map()
51 map->size = xmap->size; in uvc_ioctl_ctrl_map()
52 map->offset = xmap->offset; in uvc_ioctl_ctrl_map()
53 map->v4l2_type = xmap->v4l2_type; in uvc_ioctl_ctrl_map()
54 map->data_type = xmap->data_type; in uvc_ioctl_ctrl_map()
56 switch (xmap->v4l2_type) { in uvc_ioctl_ctrl_map()
66 if (xmap->menu_count == 0 || in uvc_ioctl_ctrl_map()
67 xmap->menu_count > UVC_MAX_CONTROL_MENU_ENTRIES) { in uvc_ioctl_ctrl_map()
72 size = xmap->menu_count * sizeof(*map->menu_info); in uvc_ioctl_ctrl_map()
79 if (copy_from_user(map->menu_info, xmap->menu_info, size)) { in uvc_ioctl_ctrl_map()
84 map->menu_count = xmap->menu_count; in uvc_ioctl_ctrl_map()
89 "%u.\n", xmap->v4l2_type); in uvc_ioctl_ctrl_map()
1384 struct uvc_xu_control_mapping xmap; in uvc_v4l2_compat_ioctl32() member
1392 ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1395 ret = uvc_ioctl_ctrl_map(handle->chain, &karg.xmap); in uvc_v4l2_compat_ioctl32()
1398 ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()