Home
last modified time | relevance | path

Searched refs:tolerance (Results 1 – 21 of 21) sorted by relevance

/drivers/media/rc/img-ir/
Dimg-ir-hw.c176 unsigned int tolerance, in img_ir_timing_range_convert() argument
183 min = min - (min*tolerance >> 7); in img_ir_timing_range_convert()
184 max = max + (max*tolerance >> 7); in img_ir_timing_range_convert()
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()
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()
[all …]
Dimg-ir-rc5.c58 .tolerance = 16,
Dimg-ir-rc6.c80 .tolerance = 20,
Dimg-ir-sharp.c80 .tolerance = 20, /* 20% */
Dimg-ir-hw.h167 unsigned int tolerance; member
/drivers/net/wireless/ath/
Ddfs_pri_detector.c44 static u32 pde_get_multiple(u32 val, u32 fraction, u32 tolerance) in pde_get_multiple() argument
55 if (delta <= tolerance) in pde_get_multiple()
61 if (remainder > tolerance) { in pde_get_multiple()
63 if ((fraction - remainder) <= tolerance) in pde_get_multiple()
/drivers/hwmon/
Dw83l786ng.c135 u8 tolerance[2]; member
208 data->tolerance[0] = reg_tmp & 0x0f; in w83l786ng_update_device()
209 data->tolerance[1] = (reg_tmp >> 4) & 0x0f; in w83l786ng_update_device()
579 return sprintf(buf, "%ld\n", (long)data->tolerance[nr]); in show_tolerance()
602 data->tolerance[nr] = tol_tmp; in store_tolerance()
Dw83793.c245 u8 tolerance[3]; /* Temp tolerance(Smart Fan I/II) */ member
804 val = data->tolerance[index >> 1] >> ((index & 0x01) ? 4 : 0); in show_sf_ctrl()
857 data->tolerance[i] = in store_sf_ctrl()
860 data->tolerance[i] &= ~(0x0f << shift); in store_sf_ctrl()
861 data->tolerance[i] |= TEMP_TO_REG(val, 0, 0x0f) << shift; in store_sf_ctrl()
863 data->tolerance[i]); in store_sf_ctrl()
1072 SENSOR_ATTR_2(tolerance##index, S_IRUGO | S_IWUSR, show_sf_ctrl,\
1995 for (i = 0; i < ARRAY_SIZE(data->tolerance); i++) { in w83793_update_nonvolatile()
1996 data->tolerance[i] = in w83793_update_nonvolatile()
Dw83627ehf.c358 u8 tolerance[4]; member
540 int pwmcfg = 0, tolerance = 0; /* shut up the compiler */ in w83627ehf_update_pwm() local
550 tolerance = w83627ehf_read_value(data, in w83627ehf_update_pwm()
559 data->tolerance[i] = (tolerance >> (i == 1 ? 4 : 0)) & 0x0f; in w83627ehf_update_pwm()
881 show_tol_temp(tolerance)
932 data->tolerance[nr] = val; in store_tolerance()
Dw83792d.c281 u8 tolerance[3]; /* Fan1,2,3 tolerance(Smart Fan I/II) */ member
797 return sprintf(buf, "%ld\n", (long)data->tolerance[nr-1]); in show_tolerance()
821 data->tolerance[nr] = tol_tmp; in store_tolerance()
1565 data->tolerance[0] = reg_tmp & 0x0f; in w83792d_update_device()
1566 data->tolerance[1] = (reg_tmp >> 4) & 0x0f; in w83792d_update_device()
1567 data->tolerance[2] = w83792d_read_value(client, in w83792d_update_device()
Dnct6775.c2971 int tolerance = 0; in show_speed_tolerance() local
2984 tolerance = (fan_from_reg16(low, data->fan_div[nr]) in show_speed_tolerance()
2988 return sprintf(buf, "%d\n", tolerance); in show_speed_tolerance()
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_clock_source.c198 uint32_t tolerance) in calc_fb_divider_checking_tolerance() argument
233 if (abs_err <= tolerance) { in calc_fb_divider_checking_tolerance()
260 uint32_t tolerance; in calc_pll_dividers_in_range() local
264 tolerance = (pll_settings->adjusted_pix_clk_100hz * err_tolerance) / in calc_pll_dividers_in_range()
266 if (tolerance < CALC_PLL_CLK_SRC_ERR_TOLERANCE) in calc_pll_dividers_in_range()
267 tolerance = CALC_PLL_CLK_SRC_ERR_TOLERANCE; in calc_pll_dividers_in_range()
282 tolerance)) { in calc_pll_dividers_in_range()
/drivers/media/usb/pvrusb2/
Dpvrusb2-io.h38 unsigned int tolerance);
Dpvrusb2-io.c481 unsigned int tolerance) in pvr2_stream_setup() argument
487 sp->fail_tolerance = tolerance; in pvr2_stream_setup()
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]; in get_default_error_tolerance()
/drivers/media/rc/
Dnuvoton-cir.c170 u8 tolerance, config; in nvt_write_wakeup_codes() local
176 tolerance = DIV_ROUND_UP(count, 10); in nvt_write_wakeup_codes()
182 nvt_cir_wake_reg_write(nvt, tolerance, CIR_WAKE_FIFO_CMP_TOL); in nvt_write_wakeup_codes()
/drivers/tty/serial/
Dserial-tegra.c104 s32 tolerance; member
359 tup->baud_tolerance[i].tolerance) / 10000); in tegra_get_tolerance_rate()
1502 tup->baud_tolerance[index].tolerance = in tegra_uart_parse_dt()
/drivers/media/dvb-core/
Ddvb_frontend.c902 u32 *tolerance) in dvb_frontend_get_frequency_limits() argument
935 if (tolerance) in dvb_frontend_get_frequency_limits()
936 *tolerance = fe->ops.info.frequency_tolerance_hz / kHz; in dvb_frontend_get_frequency_limits()
940 if (tolerance) in dvb_frontend_get_frequency_limits()
941 *tolerance = fe->ops.info.frequency_tolerance_hz; in dvb_frontend_get_frequency_limits()
/drivers/tty/serial/8250/
D8250_port.c2678 unsigned int tolerance = port->uartclk / 100; in serial8250_get_baud_rate() local
2689 max = (port->uartclk + tolerance) / 4; in serial8250_get_baud_rate()
2692 max = (port->uartclk + tolerance) / 16; in serial8250_get_baud_rate()
/drivers/scsi/ufs/
Dufshcd.h1091 void ufshcd_delay_us(unsigned long us, unsigned long tolerance);
Dufshcd.c641 void ufshcd_delay_us(unsigned long us, unsigned long tolerance) in ufshcd_delay_us() argument
649 usleep_range(us, us + tolerance); in ufshcd_delay_us()