Home
last modified time | relevance | path

Searched refs:menu_mapping (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/media/usb/uvc/
H A Duvc_v4l2.c46 map->menu_mapping = NULL; in uvc_control_add_xu_mapping()
50 size = xmap->menu_count * sizeof(*map->menu_mapping); in uvc_control_add_xu_mapping()
51 map->menu_mapping = kzalloc(size, GFP_KERNEL); in uvc_control_add_xu_mapping()
52 if (!map->menu_mapping) { in uvc_control_add_xu_mapping()
58 if (copy_from_user((u32 *)&map->menu_mapping[i], in uvc_control_add_xu_mapping()
60 sizeof(map->menu_mapping[i]))) { in uvc_control_add_xu_mapping()
94 kfree(map->menu_mapping); in uvc_control_add_xu_mapping()
95 map->menu_mapping = NULL; in uvc_control_add_xu_mapping()
H A Duvc_ctrl.c390 if (mapping->menu_mapping) in uvc_mapping_get_menu_value()
391 return mapping->menu_mapping[idx]; in uvc_mapping_get_menu_value()
555 .menu_mapping = exposure_auto_mapping,
2388 map->menu_mapping = NULL; in __uvc_ctrl_add_mapping()
2399 if (mapping->menu_mapping && mapping->menu_mask) { in __uvc_ctrl_add_mapping()
2400 size = sizeof(mapping->menu_mapping[0]) in __uvc_ctrl_add_mapping()
2402 map->menu_mapping = kmemdup(mapping->menu_mapping, size, in __uvc_ctrl_add_mapping()
2404 if (!map->menu_mapping) in __uvc_ctrl_add_mapping()
2438 kfree(map->menu_mapping); in __uvc_ctrl_add_mapping()
2764 kfree(mapping->menu_mapping); in uvc_ctrl_cleanup_mappings()
H A Duvcvideo.h121 const u32 *menu_mapping; member