Lines Matching defs:rate
779 * - the PLL pre-divider output rate should be in the 4-27MHz range
780 * - the PLL multiplier output rate should be in the 500-1000MHz range
859 unsigned long rate,
894 * Prefer rates above the expected clock rate than
897 if (_rate < rate)
900 if (abs(rate - _rate) < abs(rate - best)) {
906 if (_rate == rate)
923 * @rate: The requested bandwidth per lane in bytes per second.
961 unsigned long rate)
979 ov5640_calc_sys_clk(sensor, rate, &prediv, &mult, &sysdiv);
1003 unsigned long rate,
1007 unsigned long _rate = rate * OV5640_PLL_ROOT_DIV * OV5640_BIT_DIV *
1019 static int ov5640_set_dvp_pclk(struct ov5640_dev *sensor, unsigned long rate)
1024 ov5640_calc_pclk(sensor, rate, &prediv, &mult, &sysdiv, &pll_rdiv,
1541 /* Check to see if the current mode exceeds the max frame rate */
1550 u64 rate;
1552 rate = sensor->current_mode->vtot * sensor->current_mode->htot;
1553 rate *= ov5640_framerates[sensor->current_fr];
1555 return rate;
1739 unsigned long rate;
1760 * the same rate than YUV, so we can just use 16 bpp all the time.
1762 rate = ov5640_calc_pixel_rate(sensor) * 16;
1764 rate = rate / sensor->ep.bus.mipi_csi2.num_data_lanes;
1765 ret = ov5640_set_mipi_pclk(sensor, rate);
1767 rate = rate / sensor->ep.bus.parallel.bus_width;
1768 ret = ov5640_set_dvp_pclk(sensor, rate);
2170 enum ov5640_frame_rate rate = OV5640_15_FPS;
2180 rate = OV5640_60_FPS;
2193 rate = i;
2201 mode = ov5640_find_mode(sensor, rate, width, height, false);
2202 return mode ? rate : -EINVAL;