Home
last modified time | relevance | path

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

/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()
2436 map->menu_names = NULL; in __uvc_ctrl_add_mapping()
2456 if (mapping->menu_names && mapping->menu_mask) { in __uvc_ctrl_add_mapping()
2457 size = sizeof(mapping->menu_names[0]) in __uvc_ctrl_add_mapping()
2459 map->menu_names = kmemdup(mapping->menu_names, size, in __uvc_ctrl_add_mapping()
2461 if (!map->menu_names) in __uvc_ctrl_add_mapping()
2486 kfree(map->menu_names); in __uvc_ctrl_add_mapping()
2783 kfree(mapping->menu_names); in uvc_ctrl_cleanup_mappings()
H A Duvcvideo.h124 const char (*menu_names)[UVC_MENU_NAME_LEN]; member