Home
last modified time | relevance | path

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

/openbmc/linux/drivers/media/usb/uvc/
H A Duvc_v4l2.c45 map->menu_names = NULL; in uvc_control_add_xu_mapping()
71 size = xmap->menu_count * sizeof(map->menu_names[0]); in uvc_control_add_xu_mapping()
72 map->menu_names = kzalloc(size, GFP_KERNEL); in uvc_control_add_xu_mapping()
73 if (!map->menu_names) { in uvc_control_add_xu_mapping()
80 if (copy_from_user((char *)map->menu_names[i], in uvc_control_add_xu_mapping()
82 sizeof(map->menu_names[i]) - 1)) { in uvc_control_add_xu_mapping()
92 kfree(map->menu_names); in uvc_control_add_xu_mapping()
93 map->menu_names = NULL; in uvc_control_add_xu_mapping()
H A Duvc_ctrl.c402 if (mapping->menu_names) in uvc_mapping_get_menu_name()
403 return mapping->menu_names[idx]; in uvc_mapping_get_menu_name()
2387 map->menu_names = NULL; in __uvc_ctrl_add_mapping()
2407 if (mapping->menu_names && mapping->menu_mask) { in __uvc_ctrl_add_mapping()
2408 size = sizeof(mapping->menu_names[0]) in __uvc_ctrl_add_mapping()
2410 map->menu_names = kmemdup(mapping->menu_names, size, in __uvc_ctrl_add_mapping()
2412 if (!map->menu_names) in __uvc_ctrl_add_mapping()
2437 kfree(map->menu_names); in __uvc_ctrl_add_mapping()
2763 kfree(mapping->menu_names); in uvc_ctrl_cleanup_mappings()
H A Duvcvideo.h122 const char (*menu_names)[UVC_MENU_NAME_LEN]; member