Lines Matching refs:cam
366 if (gspca_dev->cam.bulk_nurbs != 0) { in bulk_irq()
537 if (!gspca_dev->cam.needs_full_bandwidth && in which_bandwidth()
668 if (!gspca_dev->cam.bulk) { /* isoc */ in create_urbs()
675 npkt = gspca_dev->cam.npkt; in create_urbs()
685 bsize = gspca_dev->cam.bulk_size; in create_urbs()
689 if (gspca_dev->cam.bulk_nurbs != 0) in create_urbs()
690 nurbs = gspca_dev->cam.bulk_nurbs; in create_urbs()
771 gspca_dev->alt = gspca_dev->cam.bulk ? intf->num_altsetting : 0; in gspca_init_transfer()
777 xfer = gspca_dev->cam.bulk ? USB_ENDPOINT_XFER_BULK in gspca_init_transfer()
822 if (!gspca_dev->cam.no_urb_create) { in gspca_init_transfer()
835 if (gspca_dev->cam.bulk) in gspca_init_transfer()
849 if (gspca_dev->cam.bulk && gspca_dev->cam.bulk_nurbs == 0) in gspca_init_transfer()
901 i = gspca_dev->cam.nmodes - 1; /* take the highest mode */ in gspca_set_default_mode()
903 gspca_dev->pixfmt = gspca_dev->cam.cam_mode[i]; in gspca_set_default_mode()
914 for (i = 0; i < gspca_dev->cam.nmodes; i++) { in wxh_to_mode()
915 if (width == gspca_dev->cam.cam_mode[i].width in wxh_to_mode()
916 && height == gspca_dev->cam.cam_mode[i].height in wxh_to_mode()
917 && pixelformat == gspca_dev->cam.cam_mode[i].pixelformat) in wxh_to_mode()
928 for (i = gspca_dev->cam.nmodes; --i >= 0; ) { in wxh_to_nearest_mode()
929 if (width >= gspca_dev->cam.cam_mode[i].width in wxh_to_nearest_mode()
930 && height >= gspca_dev->cam.cam_mode[i].height in wxh_to_nearest_mode()
931 && pixelformat == gspca_dev->cam.cam_mode[i].pixelformat) in wxh_to_nearest_mode()
934 for (i = gspca_dev->cam.nmodes; --i > 0; ) { in wxh_to_nearest_mode()
935 if (width >= gspca_dev->cam.cam_mode[i].width in wxh_to_nearest_mode()
936 && height >= gspca_dev->cam.cam_mode[i].height) in wxh_to_nearest_mode()
952 while ((modeU < gspca_dev->cam.nmodes) || modeD >= 0) { in gspca_get_mode()
954 if (gspca_dev->cam.cam_mode[modeD].pixelformat in gspca_get_mode()
958 if (++modeU < gspca_dev->cam.nmodes) { in gspca_get_mode()
959 if (gspca_dev->cam.cam_mode[modeU].pixelformat in gspca_get_mode()
1007 for (i = gspca_dev->cam.nmodes; --i >= 0; ) { in vidioc_enum_fmt_vid_cap()
1008 fmt_tb[index] = gspca_dev->cam.cam_mode[i].pixelformat; in vidioc_enum_fmt_vid_cap()
1057 if (gspca_dev->cam.cam_mode[mode].pixelformat in try_fmt_vid_cap()
1066 fmt->fmt.pix = gspca_dev->cam.cam_mode[mode]; in try_fmt_vid_cap()
1108 gspca_dev->pixfmt = gspca_dev->cam.cam_mode[mode]; in vidioc_s_fmt_vid_cap()
1124 for (i = 0; i < gspca_dev->cam.nmodes; i++) { in vidioc_enum_framesizes()
1126 gspca_dev->cam.cam_mode[i].pixelformat) in vidioc_enum_framesizes()
1132 gspca_dev->cam.cam_mode[i].width; in vidioc_enum_framesizes()
1134 gspca_dev->cam.cam_mode[i].height; in vidioc_enum_framesizes()
1155 if (gspca_dev->cam.mode_framerates == NULL || in vidioc_enum_frameintervals()
1156 gspca_dev->cam.mode_framerates[mode].nrates == 0) in vidioc_enum_frameintervals()
1160 gspca_dev->cam.cam_mode[mode].pixelformat) in vidioc_enum_frameintervals()
1163 for (i = 0; i < gspca_dev->cam.mode_framerates[mode].nrates; i++) { in vidioc_enum_frameintervals()
1168 gspca_dev->cam.mode_framerates[mode].rates[i]; in vidioc_enum_frameintervals()
1216 input->status = gspca_dev->cam.input_flags; in vidioc_enum_input()