Searched refs:abs (Results 101 - 125 of 539) sorted by relevance

1234567891011>>

/linux-master/mm/
H A Dmemory-tiers.c664 if (abs(perf->read_latency - default_dram_perf.read_latency) * 10 >
666 abs(perf->write_latency - default_dram_perf.write_latency) * 10 >
668 abs(perf->read_bandwidth - default_dram_perf.read_bandwidth) * 10 >
670 abs(perf->write_bandwidth - default_dram_perf.write_bandwidth) * 10 >
/linux-master/kernel/power/
H A Dsuspend_test.c41 msec = jiffies_to_msecs(abs(nj));
/linux-master/drivers/cpufreq/
H A Dgx-suspmod.c234 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) {
/linux-master/drivers/media/radio/
H A Dradio-sf16fmr2.c174 tc9154a_set_attenuation(fmr2, abs(left - 68), TC9154A_CHANNEL_LEFT);
175 tc9154a_set_attenuation(fmr2, abs(right - 68), TC9154A_CHANNEL_RIGHT);
/linux-master/drivers/hwmon/
H A Dscmi-hwmon.c60 if (abs(scale) > 19)
63 f = __pow10(abs(scale));
H A Dlochnagar-hwmon.c217 power = abs(*val);
224 power *= abs(*val);
/linux-master/drivers/clk/
H A Dclk-wm831x.c143 if (abs(wm831x_fll_auto_rates[i] - rate) <
144 abs(wm831x_fll_auto_rates[best] - rate))
H A Dclk-hsdk-pll.c214 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate))
/linux-master/drivers/power/supply/
H A Dug3105_battery.c251 curr_diff = abs(chip->curr - prev_curr);
255 volt_diff = abs(chip->volt - prev_volt);
/linux-master/drivers/clk/axs10x/
H A Dpll_clock.c166 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate))
/linux-master/drivers/net/ethernet/marvell/octeon_ep/
H A Doctep_ctrl_mbox.c66 return sz - (abs(pi - ci) % sz);
71 return (abs(pi - ci) % sz);
/linux-master/tools/testing/selftests/cgroup/
H A Dtest_kmem.c195 if (abs(sum - current) < MAX_VMSTAT_ERROR) {
383 if (current > 0 && percpu > 0 && abs(current - percpu) <
/linux-master/drivers/input/joystick/
H A Dwalkera0701.c149 if (abs(pulse_time - SYNC_PULSE) < RESERVE) /* new frame sync */
160 } else if (abs(pulse_time - SYNC_PULSE - BIN0_PULSE) <
/linux-master/fs/bcachefs/
H A Dprintbuf.c367 bch2_prt_human_readable_u64(out, abs(v));
398 bch2_prt_units_u64(out, abs(v));
/linux-master/drivers/staging/media/imx/
H A Dimx-media-fim.c158 error = abs(interval - NSEC_PER_USEC * (u64)fim->nominal);
162 error = abs((u32)error / NSEC_PER_USEC);
/linux-master/drivers/input/mouse/
H A Dhgpk.c130 avx = abs(x);
131 avy = abs(y);
225 if (abs(x) > 3 || abs(y) > 3) {
259 if (abs(priv->x_tally) < 3 && abs(priv->y_tally) < 3) {
/linux-master/sound/soc/codecs/
H A Dwm9081.c1055 best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio)
1058 cur_val = abs((wm9081->sysclk_rate /
1072 best_val = abs(wm9081->fs - sample_rates[0].rate);
1075 cur_val = abs(wm9081->fs - sample_rates[i].rate);
1115 best_val = abs(pdata->retune_configs[0].rate - wm9081->fs);
1117 cur_val = abs(pdata->retune_configs[i].rate -
/linux-master/drivers/net/wireless/ath/ath9k/
H A Dar9003_calib.c601 s32 abs_i = abs(in_re),
602 abs_q = abs(in_im),
859 /* find average (exclude max abs value) */
861 if ((abs(mp_coeff[i][0]) < abs(mp_max)) ||
862 (abs(mp_coeff[i][0]) < abs(mp_min))) {
878 if (abs(mp_max - mp_min) > max_delta) {
879 if (abs(mp_max - mp_avg) > abs(mp_mi
[all...]
/linux-master/drivers/net/wireless/broadcom/b43/
H A Dlo.c51 if (unlikely(abs(control->i) > 16 || abs(control->q) > 16)) {
190 pga = abs(10 - lb_gain) / 6;
616 (abs(test_loctl.i) <= 16 && abs(test_loctl.q) <= 16)) {
/linux-master/drivers/input/misc/
H A Duinput.c399 const struct input_absinfo *abs)
403 min = abs->minimum;
404 max = abs->maximum;
408 "%s: invalid abs[%02x] min:%d max:%d\n",
413 if (!check_sub_overflow(max, min, &range) && abs->flat > range) {
416 UINPUT_NAME, code, abs->flat, min, max);
398 uinput_validate_absinfo(struct input_dev *dev, unsigned int code, const struct input_absinfo *abs) argument
/linux-master/drivers/video/fbdev/riva/
H A Driva_hw.c382 if (abs(ainfo->gburst_size) + ((abs(ainfo->wcglwm) + 16 ) & ~0x7) - tmp > max_gfsize)
389 if (abs(ainfo->vburst_size) + (abs(ainfo->wcvlwm + 32) & ~0xf) - tmp> VFIFO_SIZE)
394 if (abs(ainfo->gocc) > max_gfsize)
399 if (abs(ainfo->vocc) > VFIFO_SIZE)
404 if (abs(ainfo->mocc) > MFIFO_SIZE)
409 if (abs(vfsize) > VFIFO_SIZE)
414 if (abs(gfsize) > max_gfsize)
419 if (abs(mfsiz
[all...]
/linux-master/sound/isa/gus/
H A Dgus_main.c282 dma1 = abs(dma1);
285 dma2 = abs(dma2);
294 irq = abs(irq);
/linux-master/drivers/hid/
H A Dhid-playstation.c998 ds->gyro_calib_data[0].sens_denom = abs(gyro_pitch_plus - gyro_pitch_bias) +
999 abs(gyro_pitch_minus - gyro_pitch_bias);
1004 ds->gyro_calib_data[1].sens_denom = abs(gyro_yaw_plus - gyro_yaw_bias) +
1005 abs(gyro_yaw_minus - gyro_yaw_bias);
1010 ds->gyro_calib_data[2].sens_denom = abs(gyro_roll_plus - gyro_roll_bias) +
1011 abs(gyro_roll_minus - gyro_roll_bias);
1855 ds4->gyro_calib_data[0].sens_denom = abs(gyro_pitch_plus - gyro_pitch_bias) +
1856 abs(gyro_pitch_minus - gyro_pitch_bias);
1861 ds4->gyro_calib_data[1].sens_denom = abs(gyro_yaw_plus - gyro_yaw_bias) +
1862 abs(gyro_yaw_minu
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_panel.c82 return abs(fixed_mode_vrefresh - vrefresh) <
83 abs(drm_mode_vrefresh(best_mode) - vrefresh);
229 if (abs(vrefresh - fixed_mode_vrefresh) > 1) {
/linux-master/drivers/net/wireless/mediatek/mt7601u/
H A Dphy.c613 mantisa <<= abs(exp);
927 if ((dev->prev_pwr_diff ^ diff_pwr) < 0 && abs(diff_pwr) < 4096 &&
928 (abs(diff_pwr) > abs(dev->prev_pwr_diff) ||
1048 if (abs(last_offset) >= activate_threshold)
1050 else if (abs(last_offset) <= deactivate_threshold)

Completed in 352 milliseconds

1234567891011>>