Searched defs:tolerance (Results 1 - 10 of 10) sorted by relevance

/drivers/net/wireless/ath/
H A Ddfs_pri_detector.c39 * pde_get_multiple() - get number of multiples considering a given tolerance
40 * @return factor if abs(val - factor*fraction) <= tolerance, 0 otherwise
42 static u32 pde_get_multiple(u32 val, u32 fraction, u32 tolerance) argument
53 if (delta <= tolerance)
54 /* val and fraction are within tolerance */
59 if (remainder > tolerance) {
61 if ((fraction - remainder) <= tolerance)
62 /* remainder is within tolerance */
/drivers/media/rc/img-ir/
H A Dimg-ir-hw.h61 * and is taken care of by the tolerance)
138 * @tolerance: Timing tolerance as a percentage (default 10%).
157 unsigned int tolerance; member in struct:img_ir_decoder
H A Dimg-ir-hw.c159 * @tolerance: Tolerance as a fraction of 128 (roughly percent).
164 * tolerance, and shifts for the register, rounding in the right direction.
169 unsigned int tolerance,
175 /* add a tolerance */
176 min = min - (min*tolerance >> 7);
177 max = max + (max*tolerance >> 7);
189 * @tolerance: Timing tolerance where 0-128 represents 0-100%
197 unsigned int tolerance,
207 tolerance, clock_h
167 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
196 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
283 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...]
/drivers/media/usb/pvrusb2/
H A Dpvrusb2-io.c502 unsigned int tolerance)
508 sp->fail_tolerance = tolerance;
499 pvr2_stream_setup(struct pvr2_stream *sp, struct usb_device *dev, int endpoint, unsigned int tolerance) argument
H A Dpvrusb2-hdw.c73 static int tolerance[PVR_NUM] = { [0 ... PVR_NUM-1] = 0 }; variable
88 module_param_array(tolerance, int, NULL, 0444);
89 MODULE_PARM_DESC(tolerance,"specify stream error tolerance");
1810 tp = tolerance[unit_number];
2258 " setting tolerance %u",
/drivers/hwmon/
H A Dw83792d.c166 0x87, /* (bit3-0)SmartFan Fan1 tolerance */
167 0x87, /* (bit7-4)SmartFan Fan2 tolerance */
168 0x97 /* (bit3-0)SmartFan Fan3 tolerance */
300 u8 tolerance[3]; /* Fan1,2,3 tolerance(Smart Fan I/II) */ member in struct:w83792d_data
817 return sprintf(buf, "%ld\n", (long)data->tolerance[nr-1]);
841 data->tolerance[nr] = tol_tmp;
1586 /* Update Smart Fan I/II tolerance */
1588 data->tolerance[0] = reg_tmp & 0x0f;
1589 data->tolerance[
[all...]
H A Dw83l786ng.c148 u8 tolerance[2]; member in struct:w83l786ng_data
219 /* Update Smart Fan I/II tolerance */
221 data->tolerance[0] = reg_tmp & 0x0f;
222 data->tolerance[1] = (reg_tmp >> 4) & 0x0f;
592 return sprintf(buf, "%ld\n", (long)data->tolerance[nr]);
615 data->tolerance[nr] = tol_tmp;
H A Dw83793.c259 u8 tolerance[3]; /* Temp tolerance(Smart Fan I/II) */ member in struct:w83793_data
792 * If Temp higher or lower than target with this tolerance, w83793
794 * temperature within the tolerance range.
819 val = data->tolerance[index >> 1] >> ((index & 0x01) ? 4 : 0);
872 data->tolerance[i] =
875 data->tolerance[i] &= ~(0x0f << shift);
876 data->tolerance[i] |= TEMP_TO_REG(val, 0, 0x0f) << shift;
878 data->tolerance[i]);
1087 SENSOR_ATTR_2(tolerance##inde
[all...]
H A Dw83627ehf.c489 u8 tolerance[4]; member in struct:w83627ehf_data
750 data->tolerance[i] = fanmodecfg & 0x0f;
758 int pwmcfg = 0, tolerance = 0; /* shut up the compiler */ local
764 /* pwmcfg, tolerance mapped for i=0, i=1 to same reg */
768 tolerance = w83627ehf_read_value(data,
777 data->tolerance[i] = (tolerance >> (i == 1 ? 4 : 0)) & 0x0f;
1499 show_tol_temp(tolerance)
1546 /* Limit tolerance further for NCT6776F */
1560 data->tolerance[n
[all...]
H A Dnct6775.c791 const u16 *REG_WEIGHT_TEMP[3]; /* 0=base, 1=tolerance, 2=step */
2554 /* Limit tolerance as needed */
2570 * Fan speed tolerance is a tricky beast, since the associated register is
2583 int tolerance; local
2592 tolerance = (fan_from_reg16(low, data->fan_div[nr])
2595 return sprintf(buf, "%d\n", tolerance);
2625 /* Limit tolerance as needed */

Completed in 524 milliseconds