Lines Matching full:tolerance

166  * @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, in img_ir_timing_range_convert() argument
182 /* add a tolerance */ in img_ir_timing_range_convert()
183 min = min - (min*tolerance >> 7); in img_ir_timing_range_convert()
184 max = max + (max*tolerance >> 7); in img_ir_timing_range_convert()
196 * @tolerance: Timing tolerance where 0-128 represents 0-100%
204 unsigned int tolerance, in img_ir_symbol_timing() argument
214 tolerance, clock_hz, pd_shift); in img_ir_symbol_timing()
216 tolerance, clock_hz, w_shift); in img_ir_symbol_timing()
287 * @tolerance: Timing tolerance where 0-128 represents 0-100%
292 unsigned int tolerance, in img_ir_timings_convert() argument
296 regs->ldr = img_ir_symbol_timing(&timings->ldr, tolerance, clock_hz, in img_ir_timings_convert()
299 regs->s00 = img_ir_symbol_timing(&timings->s00, tolerance, clock_hz, in img_ir_timings_convert()
301 regs->s01 = img_ir_symbol_timing(&timings->s01, tolerance, clock_hz, in img_ir_timings_convert()
303 regs->s10 = img_ir_symbol_timing(&timings->s10, tolerance, clock_hz, in img_ir_timings_convert()
305 regs->s11 = img_ir_symbol_timing(&timings->s11, tolerance, clock_hz, in img_ir_timings_convert()
319 /* default tolerance */ in img_ir_decoder_preprocess()
320 if (!decoder->tolerance) in img_ir_decoder_preprocess()
321 decoder->tolerance = 10; /* percent */ in img_ir_decoder_preprocess()
322 /* and convert tolerance to fraction out of 128 */ in img_ir_decoder_preprocess()
323 decoder->tolerance = decoder->tolerance * 128 / 100; in img_ir_decoder_preprocess()
353 decoder->tolerance, clock_hz); in img_ir_decoder_convert()
358 &decoder->rtimings, decoder->tolerance, in img_ir_decoder_convert()
858 /* update timer, but allowing for 1/8th tolerance */ in img_ir_handle_data()