| /drivers/media/rc/img-ir/ |
| A D | img-ir-hw.c | 176 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 320 if (!decoder->tolerance) in img_ir_decoder_preprocess() 321 decoder->tolerance = 10; /* percent */ in img_ir_decoder_preprocess() 323 decoder->tolerance = decoder->tolerance * 128 / 100; in img_ir_decoder_preprocess() [all …]
|
| A D | img-ir-rc5.c | 58 .tolerance = 16,
|
| A D | img-ir-rc6.c | 80 .tolerance = 20,
|
| A D | img-ir-sharp.c | 80 .tolerance = 20, /* 20% */
|
| A D | img-ir-hw.h | 167 unsigned int tolerance; member
|
| /drivers/net/wireless/ath/ |
| A D | dfs_pri_detector.c | 44 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/gpu/drm/loongson/ |
| A D | lsdc_pixpll.c | 198 const unsigned int tolerance = 1000; in lsdc_pixel_pll_compute() local 199 unsigned int min = tolerance; in lsdc_pixel_pll_compute() 239 if (min < tolerance) { in lsdc_pixel_pll_compute()
|
| /drivers/hwmon/ |
| A D | w83l786ng.c | 134 u8 tolerance[2]; member 207 data->tolerance[0] = reg_tmp & 0x0f; in w83l786ng_update_device() 208 data->tolerance[1] = (reg_tmp >> 4) & 0x0f; in w83l786ng_update_device() 578 return sprintf(buf, "%ld\n", (long)data->tolerance[nr]); in show_tolerance() 601 data->tolerance[nr] = tol_tmp; in store_tolerance()
|
| A D | w83793.c | 245 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,\ 1992 for (i = 0; i < ARRAY_SIZE(data->tolerance); i++) { in w83793_update_nonvolatile() 1993 data->tolerance[i] = in w83793_update_nonvolatile()
|
| A D | w83627ehf.c | 358 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()
|
| A D | w83792d.c | 281 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() 1563 data->tolerance[0] = reg_tmp & 0x0f; in w83792d_update_device() 1564 data->tolerance[1] = (reg_tmp >> 4) & 0x0f; in w83792d_update_device() 1565 data->tolerance[2] = w83792d_read_value(client, in w83792d_update_device()
|
| A D | nct6775-core.c | 2987 int target, tolerance = 0; in show_speed_tolerance() local 3005 tolerance = (fan_from_reg16(low, data->fan_div[nr]) in show_speed_tolerance() 3009 return sprintf(buf, "%d\n", tolerance); in show_speed_tolerance()
|
| /drivers/gpu/drm/amd/display/dc/dce/ |
| A D | dce_clock_source.c | 200 uint32_t tolerance) in calc_fb_divider_checking_tolerance() argument 235 if (abs_err <= tolerance) { in calc_fb_divider_checking_tolerance() 262 uint32_t tolerance; in calc_pll_dividers_in_range() local 266 tolerance = (pll_settings->adjusted_pix_clk_100hz * err_tolerance) / in calc_pll_dividers_in_range() 268 if (tolerance < CALC_PLL_CLK_SRC_ERR_TOLERANCE) in calc_pll_dividers_in_range() 269 tolerance = CALC_PLL_CLK_SRC_ERR_TOLERANCE; in calc_pll_dividers_in_range() 284 tolerance)) { in calc_pll_dividers_in_range()
|
| /drivers/media/usb/pvrusb2/ |
| A D | pvrusb2-io.h | 38 unsigned int tolerance);
|
| A D | pvrusb2-io.c | 481 unsigned int tolerance) in pvr2_stream_setup() argument 487 sp->fail_tolerance = tolerance; in pvr2_stream_setup()
|
| A D | pvrusb2-hdw.c | 59 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/ |
| A D | nuvoton-cir.c | 170 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/ |
| A D | serial-tegra.c | 103 s32 tolerance; member 358 tup->baud_tolerance[i].tolerance) / 10000); in tegra_get_tolerance_rate() 1485 tup->baud_tolerance[index].tolerance = in tegra_uart_parse_dt()
|
| /drivers/media/dvb-core/ |
| A D | dvb_frontend.c | 897 u32 *tolerance) in dvb_frontend_get_frequency_limits() argument 931 if (tolerance) in dvb_frontend_get_frequency_limits() 932 *tolerance = fe->ops.info.frequency_tolerance_hz / kHz; in dvb_frontend_get_frequency_limits() 936 if (tolerance) in dvb_frontend_get_frequency_limits() 937 *tolerance = fe->ops.info.frequency_tolerance_hz; in dvb_frontend_get_frequency_limits()
|
| /drivers/net/wireless/realtek/rtw89/ |
| A D | chan.c | 2634 u16 tolerance; in rtw89_mcc_track() local 2653 tolerance = -pattern->tob_aux; in rtw89_mcc_track() 2655 tolerance = pattern->toa_aux; in rtw89_mcc_track() 2661 tolerance = -pattern->toa_aux; in rtw89_mcc_track() 2663 tolerance = pattern->tob_aux; in rtw89_mcc_track() 2668 if (diff <= tolerance) in rtw89_mcc_track()
|
| /drivers/tty/serial/8250/ |
| A D | 8250_port.c | 2579 unsigned int tolerance = port->uartclk / 100; in serial8250_get_baud_rate() local 2590 max = (port->uartclk + tolerance) / 4; in serial8250_get_baud_rate() 2593 max = (port->uartclk + tolerance) / 16; in serial8250_get_baud_rate()
|
| /drivers/ufs/core/ |
| A D | ufshcd.c | 759 void ufshcd_delay_us(unsigned long us, unsigned long tolerance) in ufshcd_delay_us() argument 767 usleep_range(us, us + tolerance); in ufshcd_delay_us()
|