Searched refs:tolerance (Results 1 - 25 of 44) sorted by path

12

/linux-master/drivers/media/rc/img-ir/
H A Dimg-ir-hw.h57 * and is taken care of by the tolerance)
148 * @tolerance: Timing tolerance as a percentage (default 10%).
167 unsigned int tolerance; member in struct:img_ir_decoder
H A Dimg-ir-rc5.c58 .tolerance = 16,
H A Dimg-ir-rc6.c80 .tolerance = 20,
H A Dimg-ir-sharp.c80 .tolerance = 20, /* 20% */
H A Dimg-ir-hw.c166 * @tolerance: Tolerance as a fraction of 128 (roughly percent).
171 * tolerance, and shifts for the register, rounding in the right direction.
176 unsigned int tolerance,
182 /* add a tolerance */
183 min = min - (min*tolerance >> 7);
184 max = max + (max*tolerance >> 7);
196 * @tolerance: Timing tolerance where 0-128 represents 0-100%
204 unsigned int tolerance,
214 tolerance, clock_h
174 img_ir_timing_range_convert(struct img_ir_timing_range *out, const struct img_ir_timing_range *in, unsigned int tolerance, unsigned long clock_hz, unsigned int shift) argument
203 img_ir_symbol_timing(const struct img_ir_symbol_timing *timing, unsigned int tolerance, unsigned long clock_hz, unsigned int pd_shift, unsigned int w_shift) argument
290 img_ir_timings_convert(struct img_ir_timing_regvals *regs, const struct img_ir_timings *timings, unsigned int tolerance, unsigned int clock_hz) argument
[all...]
/linux-master/drivers/media/usb/pvrusb2/
H A Dpvrusb2-io.c481 unsigned int tolerance)
487 sp->fail_tolerance = tolerance;
478 pvr2_stream_setup(struct pvr2_stream *sp, struct usb_device *dev, int endpoint, unsigned int tolerance) argument
H A Dpvrusb2-io.h38 unsigned int tolerance);
H A Dpvrusb2-hdw.c59 static int tolerance[PVR_NUM] = { [0 ... PVR_NUM-1] = 0 }; variable
74 module_param_array(tolerance, int, NULL, 0444);
75 MODULE_PARM_DESC(tolerance,"specify stream error tolerance");
1790 tp = tolerance[unit_number];
2239 "pvr2_hdw_setup: video stream %p setting tolerance %u",
/linux-master/arch/alpha/kernel/
H A Dosf_sys.c1168 long tolerance; /* clock frequency tolerance (ppm) member in struct:timex32
H A Dtime.c398 unsigned long cycle_freq, tolerance;
426 tolerance = cycle_freq / 4000;
430 if ((unsigned long)diff > tolerance) {
393 unsigned long cycle_freq, tolerance; local
/linux-master/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_clock_source.c182 * checking for tolerance.
187 * @tolerance: Tolerance for Calculated Pixel Clock to be within
191 * if calculated values are within required tolerance
192 * It returns - true if error is within tolerance
193 * - false if error is not within tolerance
200 uint32_t tolerance)
235 if (abs_err <= tolerance) {
262 uint32_t tolerance; local
266 tolerance = (pll_settings->adjusted_pix_clk_100hz * err_tolerance) /
268 if (tolerance < CALC_PLL_CLK_SRC_ERR_TOLERANC
195 calc_fb_divider_checking_tolerance( struct calc_pll_clock_source *calc_pll_cs, struct pll_settings *pll_settings, uint32_t ref_divider, uint32_t post_divider, uint32_t tolerance) argument
[all...]
/linux-master/drivers/gpu/drm/loongson/
H A Dlsdc_pixpll.c198 const unsigned int tolerance = 1000; local
199 unsigned int min = tolerance;
239 if (min < tolerance) {
/linux-master/drivers/hwmon/
H A Dnct6775-core.c2961 /* Limit tolerance as needed */
2975 * Fan speed tolerance is a tricky beast, since the associated register is
2978 * A fan speed tolerance only makes sense if a fan target speed has been
2988 int target, tolerance = 0; local
3006 tolerance = (fan_from_reg16(low, data->fan_div[nr])
3010 return sprintf(buf, "%d\n", tolerance);
3038 /* Limit tolerance as needed */
H A Dw83627ehf.c358 u8 tolerance[4]; member in struct:w83627ehf_data
540 int pwmcfg = 0, tolerance = 0; /* shut up the compiler */ local
546 /* pwmcfg, tolerance mapped for i=0, i=1 to same reg */
550 tolerance = w83627ehf_read_value(data,
559 data->tolerance[i] = (tolerance >> (i == 1 ? 4 : 0)) & 0x0f;
881 show_tol_temp(tolerance)
932 data->tolerance[nr] = val;
H A Dw83792d.c153 0x87, /* (bit3-0)SmartFan Fan1 tolerance */
154 0x87, /* (bit7-4)SmartFan Fan2 tolerance */
155 0x97 /* (bit3-0)SmartFan Fan3 tolerance */
281 u8 tolerance[3]; /* Fan1,2,3 tolerance(Smart Fan I/II) */ member in struct:w83792d_data
797 return sprintf(buf, "%ld\n", (long)data->tolerance[nr-1]);
821 data->tolerance[nr] = tol_tmp;
1561 /* Update Smart Fan I/II tolerance */
1563 data->tolerance[0] = reg_tmp & 0x0f;
1564 data->tolerance[
[all...]
H A Dw83793.c245 u8 tolerance[3]; /* Temp tolerance(Smart Fan I/II) */ member in struct:w83793_data
777 * If Temp higher or lower than target with this tolerance, w83793
779 * temperature within the tolerance range.
804 val = data->tolerance[index >> 1] >> ((index & 0x01) ? 4 : 0);
857 data->tolerance[i] =
860 data->tolerance[i] &= ~(0x0f << shift);
861 data->tolerance[i] |= TEMP_TO_REG(val, 0, 0x0f) << shift;
863 data->tolerance[i]);
1072 SENSOR_ATTR_2(tolerance##inde
[all...]
H A Dw83l786ng.c134 u8 tolerance[2]; member in struct:w83l786ng_data
205 /* Update Smart Fan I/II tolerance */
207 data->tolerance[0] = reg_tmp & 0x0f;
208 data->tolerance[1] = (reg_tmp >> 4) & 0x0f;
578 return sprintf(buf, "%ld\n", (long)data->tolerance[nr]);
601 data->tolerance[nr] = tol_tmp;
/linux-master/drivers/media/dvb-core/
H A Ddvb_frontend.c897 u32 *tolerance)
931 if (tolerance)
932 *tolerance = fe->ops.info.frequency_tolerance_hz / kHz;
936 if (tolerance)
937 *tolerance = fe->ops.info.frequency_tolerance_hz;
895 dvb_frontend_get_frequency_limits(struct dvb_frontend *fe, u32 *freq_min, u32 *freq_max, u32 *tolerance) argument
/linux-master/drivers/media/rc/
H A Dnuvoton-cir.c170 u8 tolerance, config; local
175 /* hardcode the tolerance to 10% */
176 tolerance = DIV_ROUND_UP(count, 10);
182 nvt_cir_wake_reg_write(nvt, tolerance, CIR_WAKE_FIFO_CMP_TOL);
660 /* Skip last value for better comparison tolerance */
/linux-master/drivers/net/wireless/ath/
H A Ddfs_pri_detector.c41 * pde_get_multiple() - get number of multiples considering a given tolerance
42 * Return value: factor if abs(val - factor*fraction) <= tolerance, 0 otherwise
44 static u32 pde_get_multiple(u32 val, u32 fraction, u32 tolerance) argument
55 if (delta <= tolerance)
56 /* val and fraction are within tolerance */
61 if (remainder > tolerance) {
63 if ((fraction - remainder) <= tolerance)
64 /* remainder is within tolerance */
/linux-master/drivers/net/wireless/realtek/rtw89/
H A Dchan.c1996 s16 tolerance; local
2007 tolerance = -pattern->tob_aux;
2009 tolerance = pattern->toa_aux;
2013 tolerance = -pattern->toa_aux;
2015 tolerance = pattern->tob_aux;
2018 if (diff <= tolerance)
/linux-master/drivers/tty/serial/8250/
H A D8250_port.c2654 unsigned int tolerance = port->uartclk / 100; local
2665 max = (port->uartclk + tolerance) / 4;
2668 max = (port->uartclk + tolerance) / 16;
2673 * Allow 1% tolerance at the upper limit so uart clks marginally
/linux-master/drivers/tty/serial/
H A Dserial-tegra.c86 * @error_tolerance_low_range: Lowest number in the error tolerance range
87 * @error_tolerance_high_range: Highest number in the error tolerance range
103 s32 tolerance; member in struct:tegra_baud_tolerance
358 tup->baud_tolerance[i].tolerance) / 10000);
1480 tup->baud_tolerance[index].tolerance =
/linux-master/drivers/ufs/core/
H A Dufshcd.c698 void ufshcd_delay_us(unsigned long us, unsigned long tolerance) argument
706 usleep_range(us, us + tolerance);
/linux-master/fs/btrfs/
H A Dvolumes.c6053 int tolerance; local
6088 for (tolerance = 0; tolerance < 2; tolerance++) {
6090 (tolerance || map->stripes[preferred_mirror].dev != srcdev))
6094 (tolerance || map->stripes[i].dev != srcdev))
7500 "chunk %llu missing %d devices, max tolerance is %d for writable mount",

Completed in 799 milliseconds

12