Lines Matching full:bandwidth
528 /* compute the minimum bandwidth for the current transfer */
531 u32 bandwidth; in which_bandwidth() local
534 bandwidth = gspca_dev->pixfmt.sizeimage; in which_bandwidth()
538 bandwidth < gspca_dev->pixfmt.width * in which_bandwidth()
540 bandwidth = bandwidth * 3 / 8; /* 0.375 */ in which_bandwidth()
547 bandwidth *= parm.parm.capture.timeperframe.denominator; in which_bandwidth()
548 bandwidth /= parm.parm.capture.timeperframe.numerator; in which_bandwidth()
555 bandwidth *= 15; /* 15 fps */ in which_bandwidth()
557 bandwidth *= 30; /* 30 fps */ in which_bandwidth()
560 gspca_dbg(gspca_dev, D_STREAM, "min bandwidth: %d\n", bandwidth); in which_bandwidth()
561 return bandwidth; in which_bandwidth()
568 u32 bandwidth; member
573 * and compute the minimum bandwidth for the image transfer
581 u32 bandwidth, last_bw; in build_isoc_ep_tb() local
591 ep_tb->bandwidth = 2000 * 2000 * 120; in build_isoc_ep_tb()
605 bandwidth = psize * 1000; in build_isoc_ep_tb()
608 bandwidth *= 8; in build_isoc_ep_tb()
609 bandwidth /= 1 << (ep->desc.bInterval - 1); in build_isoc_ep_tb()
610 if (bandwidth <= last_bw) in build_isoc_ep_tb()
612 if (bandwidth < ep_tb->bandwidth) { in build_isoc_ep_tb()
613 ep_tb->bandwidth = bandwidth; in build_isoc_ep_tb()
620 gspca_dbg(gspca_dev, D_STREAM, "alt %d bandwidth %d\n", in build_isoc_ep_tb()
621 ep_tb->alt, ep_tb->bandwidth); in build_isoc_ep_tb()
622 last_bw = ep_tb->bandwidth; in build_isoc_ep_tb()
631 * uses the max full speed iso bandwidth; and in build_isoc_ep_tb()
633 * then skip the highest alt setting to spare bandwidth for the mic in build_isoc_ep_tb()
644 /* get the requested bandwidth and start at the highest atlsetting */ in build_isoc_ep_tb()
645 bandwidth = which_bandwidth(gspca_dev); in build_isoc_ep_tb()
649 if (ep_tb->bandwidth < bandwidth) in build_isoc_ep_tb()
792 /* else, compute the minimum bandwidth in gspca_init_transfer()
873 /* the bandwidth is not wide enough in gspca_init_transfer()
876 gspca_err(gspca_dev, "alt %d - bandwidth not wide enough, trying again\n", in gspca_init_transfer()