Lines Matching defs:bandwidth
196 * compute the bandwidth on 16 bits and erroneously sign-extend it to
197 * 32 bits, resulting in a huge bandwidth value. Detect and fix that
207 u32 bandwidth;
214 * Compute a bandwidth estimation by multiplying the frame
220 bandwidth = frame->wWidth * frame->wHeight / 8 * format->bpp;
221 bandwidth *= 10000000 / interval + 1;
222 bandwidth /= 1000;
224 bandwidth /= 8;
225 bandwidth += 12;
228 * The bandwidth estimate is too low for many cameras. Don't use
235 bandwidth = max_t(u32, bandwidth, 1024);
237 ctrl->dwMaxPayloadTransferSize = bandwidth;
401 * Probe control properly, and just return the needed bandwidth. For
402 * that reason, if the needed bandwidth exceeds the maximum available
403 * bandwidth, try to lower the quality.
1928 unsigned int bandwidth;
1933 bandwidth = stream->ctrl.dwMaxPayloadTransferSize;
1935 if (bandwidth == 0) {
1937 "Device requested null bandwidth, defaulting to lowest\n");
1938 bandwidth = 1;
1941 "Device requested %u B/frame bandwidth\n",
1942 bandwidth);
1955 /* Check if the bandwidth is high enough. */
1957 if (psize >= bandwidth && psize <= best_psize) {
1966 "No fast enough alt setting for requested bandwidth\n");
1971 "Selecting alternate setting %u (%u B/frame bandwidth)\n",