Searched refs:class_array (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/usb/gadget/function/
H A Duvc_configfs.c575 struct uvc_descriptor_header **class_array; uvcg_control_class_allow_link() local
590 class_array = uvcg_get_ctl_class_arr(src, opts); uvcg_control_class_allow_link()
591 if (!class_array) uvcg_control_class_allow_link()
593 if (opts->refcnt || class_array[0]) { uvcg_control_class_allow_link()
600 class_array[0] = (struct uvc_descriptor_header *)&target_hdr->desc; uvcg_control_class_allow_link()
616 struct uvc_descriptor_header **class_array; uvcg_control_class_drop_link() local
631 class_array = uvcg_get_ctl_class_arr(src, opts); uvcg_control_class_drop_link()
632 if (!class_array) uvcg_control_class_drop_link()
641 class_array[0] = NULL; uvcg_control_class_drop_link()
2121 struct uvc_descriptor_header ***class_array, **cl_arr; uvcg_streaming_class_allow_link() local
2138 class_array = __uvcg_get_stream_class_arr(src, opts); uvcg_streaming_class_allow_link()
2139 if (!class_array || *class_array || opts->refcnt) { uvcg_streaming_class_allow_link()
2150 *class_array = kcalloc(count, sizeof(void *), GFP_KERNEL); uvcg_streaming_class_allow_link()
2151 if (!*class_array) { uvcg_streaming_class_allow_link()
2158 kfree(*class_array); uvcg_streaming_class_allow_link()
2159 *class_array = NULL; uvcg_streaming_class_allow_link()
2163 cl_arr = *class_array; uvcg_streaming_class_allow_link()
2167 kfree(*class_array); uvcg_streaming_class_allow_link()
2168 *class_array = NULL; uvcg_streaming_class_allow_link()
2194 struct uvc_descriptor_header ***class_array; uvcg_streaming_class_drop_link() local
2209 class_array = __uvcg_get_stream_class_arr(src, opts); uvcg_streaming_class_drop_link()
2210 if (!class_array || !*class_array) uvcg_streaming_class_drop_link()
2220 kfree(**class_array); uvcg_streaming_class_drop_link()
2221 kfree(*class_array); uvcg_streaming_class_drop_link()
2222 *class_array = NULL; uvcg_streaming_class_drop_link()

Completed in 70 milliseconds