Lines Matching refs:xmap
31 const struct uvc_xu_control_mapping *xmap) in uvc_control_add_xu_mapping() argument
41 if (xmap->menu_count == 0 || in uvc_control_add_xu_mapping()
42 xmap->menu_count > UVC_MAX_CONTROL_MENU_ENTRIES) in uvc_control_add_xu_mapping()
48 map->menu_mask = GENMASK(xmap->menu_count - 1, 0); in uvc_control_add_xu_mapping()
50 size = xmap->menu_count * sizeof(*map->menu_mapping); in uvc_control_add_xu_mapping()
57 for (i = 0; i < xmap->menu_count ; i++) { in uvc_control_add_xu_mapping()
59 &xmap->menu_info[i].value, in uvc_control_add_xu_mapping()
71 size = xmap->menu_count * sizeof(map->menu_names[0]); in uvc_control_add_xu_mapping()
78 for (i = 0; i < xmap->menu_count ; i++) { in uvc_control_add_xu_mapping()
81 xmap->menu_info[i].name, in uvc_control_add_xu_mapping()
104 struct uvc_xu_control_mapping *xmap) in uvc_ioctl_xu_ctrl_map() argument
113 map->id = xmap->id; in uvc_ioctl_xu_ctrl_map()
116 if (xmap->name[0] == '\0') { in uvc_ioctl_xu_ctrl_map()
120 xmap->name[sizeof(xmap->name) - 1] = '\0'; in uvc_ioctl_xu_ctrl_map()
121 map->name = xmap->name; in uvc_ioctl_xu_ctrl_map()
123 memcpy(map->entity, xmap->entity, sizeof(map->entity)); in uvc_ioctl_xu_ctrl_map()
124 map->selector = xmap->selector; in uvc_ioctl_xu_ctrl_map()
125 map->size = xmap->size; in uvc_ioctl_xu_ctrl_map()
126 map->offset = xmap->offset; in uvc_ioctl_xu_ctrl_map()
127 map->v4l2_type = xmap->v4l2_type; in uvc_ioctl_xu_ctrl_map()
128 map->data_type = xmap->data_type; in uvc_ioctl_xu_ctrl_map()
130 switch (xmap->v4l2_type) { in uvc_ioctl_xu_ctrl_map()
138 ret = uvc_control_add_xu_mapping(chain, map, xmap); in uvc_ioctl_xu_ctrl_map()
143 "Unsupported V4L2 control type %u\n", xmap->v4l2_type); in uvc_ioctl_xu_ctrl_map()
1471 struct uvc_xu_control_mapping xmap; in uvc_v4l2_compat_ioctl32() member
1479 ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()
1482 ret = uvc_ioctl_xu_ctrl_map(handle->chain, &karg.xmap); in uvc_v4l2_compat_ioctl32()
1485 ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); in uvc_v4l2_compat_ioctl32()