Lines Matching defs:bandwidth
190 * compute the bandwidth on 16 bits and erroneously sign-extend it to
191 * 32 bits, resulting in a huge bandwidth value. Detect and fix that
201 u32 bandwidth;
207 /* Compute a bandwidth estimation by multiplying the frame
213 bandwidth = frame->wWidth * frame->wHeight / 8 * format->bpp;
214 bandwidth *= 10000000 / interval + 1;
215 bandwidth /= 1000;
217 bandwidth /= 8;
218 bandwidth += 12;
220 /* The bandwidth estimate is too low for many cameras. Don't use
227 bandwidth = max_t(u32, bandwidth, 1024);
229 ctrl->dwMaxPayloadTransferSize = bandwidth;
383 u16 bandwidth;
390 * Probe control properly, and just return the needed bandwidth. For
391 * that reason, if the needed bandwidth exceeds the maximum available
392 * bandwidth, try to lower the quality.
421 bandwidth = probe->dwMaxPayloadTransferSize;
422 if (bandwidth <= stream->maxpsize)
1864 unsigned int bandwidth;
1869 bandwidth = stream->ctrl.dwMaxPayloadTransferSize;
1871 if (bandwidth == 0) {
1873 "bandwidth, defaulting to lowest.\n");
1874 bandwidth = 1;
1877 "B/frame bandwidth.\n", bandwidth);
1890 /* Check if the bandwidth is high enough. */
1892 if (psize >= bandwidth && psize <= best_psize) {
1901 "for requested bandwidth.\n");
1906 "(%u B/frame bandwidth).\n", altsetting, best_psize);