Searched refs:abs (Results 1 - 200 of 345) sorted by relevance

12

/linux-4.1.27/arch/x86/tools/
H A Drelocs_common.c14 die("relocs [--abs-syms|--abs-relocs|--reloc-info|--text|--realmode]" \ usage()
36 if (strcmp(arg, "--abs-syms") == 0) { main()
40 if (strcmp(arg, "--abs-relocs") == 0) { main()
/linux-4.1.27/drivers/input/touchscreen/
H A Dcyttsp4_core.c365 enum cyttsp4_tch_abs abs; cyttsp4_si_get_opcfg_data() local
402 for (abs = CY_TCH_X; abs < CY_NUM_TCH_FIELDS; abs++) { cyttsp4_si_get_opcfg_data()
403 tch = &si->si_ofs.tch_abs[abs]; cyttsp4_si_get_opcfg_data()
404 tch_old = &si->si_ptrs.opcfg->tch_rec_old[abs]; cyttsp4_si_get_opcfg_data()
419 for (i = 0; i < CY_NUM_EXT_TCH_FIELDS; abs++, i++) { cyttsp4_si_get_opcfg_data()
420 tch = &si->si_ofs.tch_abs[abs]; cyttsp4_si_get_opcfg_data()
430 for (abs = 0; abs < CY_TCH_NUM_ABS; abs++) { cyttsp4_si_get_opcfg_data()
432 cyttsp4_tch_abs_string[abs]); cyttsp4_si_get_opcfg_data()
434 si->si_ofs.tch_abs[abs].ofs); cyttsp4_si_get_opcfg_data()
436 si->si_ofs.tch_abs[abs].size); cyttsp4_si_get_opcfg_data()
438 si->si_ofs.tch_abs[abs].max); cyttsp4_si_get_opcfg_data()
440 si->si_ofs.tch_abs[abs].bofs); cyttsp4_si_get_opcfg_data()
777 enum cyttsp4_tch_abs abs; cyttsp4_get_touch() local
781 for (abs = CY_TCH_X; abs < CY_TCH_NUM_ABS; abs++) { cyttsp4_get_touch()
782 cyttsp4_get_touch_axis(md, &touch->abs[abs], cyttsp4_get_touch()
783 si->si_ofs.tch_abs[abs].size, cyttsp4_get_touch()
784 si->si_ofs.tch_abs[abs].max, cyttsp4_get_touch()
785 xy_data + si->si_ofs.tch_abs[abs].ofs, cyttsp4_get_touch()
786 si->si_ofs.tch_abs[abs].bofs); cyttsp4_get_touch()
788 cyttsp4_tch_abs_string[abs], cyttsp4_get_touch()
789 touch->abs[abs], touch->abs[abs]); cyttsp4_get_touch()
793 tmp = touch->abs[CY_TCH_X]; cyttsp4_get_touch()
794 touch->abs[CY_TCH_X] = touch->abs[CY_TCH_Y]; cyttsp4_get_touch()
795 touch->abs[CY_TCH_Y] = tmp; cyttsp4_get_touch()
802 touch->abs[CY_TCH_X] = md->si->si_ofs.max_y - cyttsp4_get_touch()
803 touch->abs[CY_TCH_X]; cyttsp4_get_touch()
805 touch->abs[CY_TCH_X] = md->si->si_ofs.max_x - cyttsp4_get_touch()
806 touch->abs[CY_TCH_X]; cyttsp4_get_touch()
810 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_x - cyttsp4_get_touch()
811 touch->abs[CY_TCH_Y]; cyttsp4_get_touch()
813 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_y - cyttsp4_get_touch()
814 touch->abs[CY_TCH_Y]; cyttsp4_get_touch()
821 touch->abs[CY_TCH_X], touch->abs[CY_TCH_X], cyttsp4_get_touch()
822 touch->abs[CY_TCH_Y], touch->abs[CY_TCH_Y]); cyttsp4_get_touch()
852 if ((tch.abs[CY_TCH_T] < md->pdata->frmwrk->abs cyttsp4_get_mt_touches()
854 (tch.abs[CY_TCH_T] > md->pdata->frmwrk->abs cyttsp4_get_mt_touches()
857 __func__, i, tch.abs[CY_TCH_T], cyttsp4_get_mt_touches()
858 md->pdata->frmwrk->abs[(CY_ABS_ID_OST * cyttsp4_get_mt_touches()
864 sig = md->pdata->frmwrk->abs cyttsp4_get_mt_touches()
867 t = tch.abs[CY_TCH_T] - md->pdata->frmwrk->abs cyttsp4_get_mt_touches()
869 if (tch.abs[CY_TCH_E] == CY_EV_LIFTOFF) { cyttsp4_get_mt_touches()
871 __func__, t, tch.abs[CY_TCH_E]); cyttsp4_get_mt_touches()
882 sig = md->pdata->frmwrk->abs[((CY_ABS_X_OST + j) * cyttsp4_get_mt_touches()
886 tch.abs[CY_TCH_X + j]); cyttsp4_get_mt_touches()
895 if (tch.abs[CY_TCH_P] > 0 && tch.abs[CY_TCH_MAJ] == 0) cyttsp4_get_mt_touches()
896 tch.abs[CY_TCH_MAJ] = tch.abs[CY_TCH_MIN] = 1; cyttsp4_get_mt_touches()
900 sig = md->pdata->frmwrk->abs cyttsp4_get_mt_touches()
905 tch.abs[CY_TCH_MAJ + j]); cyttsp4_get_mt_touches()
914 tch.abs[CY_TCH_X], cyttsp4_get_mt_touches()
915 tch.abs[CY_TCH_Y], cyttsp4_get_mt_touches()
916 tch.abs[CY_TCH_P], cyttsp4_get_mt_touches()
917 tch.abs[CY_TCH_MAJ], cyttsp4_get_mt_touches()
918 tch.abs[CY_TCH_MIN], cyttsp4_get_mt_touches()
919 tch.abs[CY_TCH_OR], cyttsp4_get_mt_touches()
920 tch.abs[CY_TCH_E]); cyttsp4_get_mt_touches()
925 tch.abs[CY_TCH_X], cyttsp4_get_mt_touches()
926 tch.abs[CY_TCH_Y], cyttsp4_get_mt_touches()
927 tch.abs[CY_TCH_P], cyttsp4_get_mt_touches()
928 tch.abs[CY_TCH_E]); cyttsp4_get_mt_touches()
1906 signal = md->pdata->frmwrk->abs cyttsp4_setup_input_device()
1910 min = md->pdata->frmwrk->abs cyttsp4_setup_input_device()
1912 max = md->pdata->frmwrk->abs cyttsp4_setup_input_device()
1925 md->pdata->frmwrk->abs cyttsp4_setup_input_device()
1927 md->pdata->frmwrk->abs cyttsp4_setup_input_device()
H A Dcyttsp4_core.h261 int abs[CY_TCH_NUM_ABS]; member in struct:cyttsp4_touch
265 size_t ofs; /* abs byte offset */
390 /* abs settings */
393 /* abs signal capabilities offsets in the frameworks array */
403 /* abs axis signal offsets in the framworks array */
413 CY_NUM_ABS_OST /* number of abs signals */
H A Dauo-pixcir-ts.c189 int abs = -1; auo_pixcir_interrupt() local
230 abs = i; auo_pixcir_interrupt()
241 if (abs > -1) { auo_pixcir_interrupt()
242 input_report_abs(ts->input, ABS_X, point[abs].coord_x); auo_pixcir_interrupt()
243 input_report_abs(ts->input, ABS_Y, point[abs].coord_y); auo_pixcir_interrupt()
H A Dbu21013_ts.c224 (abs(pos_x[0] - pos_x[1]) < DELTA_MIN || bu21013_do_touch_report()
225 abs(pos_y[0] - pos_y[1]) < DELTA_MIN)) { bu21013_do_touch_report()
/linux-4.1.27/drivers/virtio/
H A Dvirtio_input.c154 static void virtinput_cfg_abs(struct virtio_input *vi, int abs) virtinput_cfg_abs() argument
158 virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ABS_INFO, abs); virtinput_cfg_abs()
159 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi); virtinput_cfg_abs()
160 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.max, &ma); virtinput_cfg_abs()
161 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.res, &re); virtinput_cfg_abs()
162 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); virtinput_cfg_abs()
163 virtio_cread(vi->vdev, struct virtio_input_config, u.abs.flat, &fl); virtinput_cfg_abs()
164 input_set_abs_params(vi->idev, abs, mi, ma, fu, fl); virtinput_cfg_abs()
165 input_abs_set_res(vi->idev, abs, re); virtinput_cfg_abs()
205 int abs, err; virtinput_probe() local
285 for (abs = 0; abs < ABS_CNT; abs++) { virtinput_probe()
286 if (!test_bit(abs, vi->idev->absbit)) virtinput_probe()
288 virtinput_cfg_abs(vi, abs); virtinput_probe()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
H A D3945.h337 u16 device_id; /* abs.ofs: 16 */
339 u16 pmc; /* abs.ofs: 20 */
341 u8 mac_address[6]; /* abs.ofs: 42 */
343 u16 board_revision; /* abs.ofs: 106 */
345 u8 board_pba_number[9]; /* abs.ofs: 119 */
347 u16 version; /* abs.ofs: 136 */
348 u8 sku_cap; /* abs.ofs: 138 */
349 u8 leds_mode; /* abs.ofs: 139 */
351 u16 wowlan_mode; /* abs.ofs: 142 */
352 u16 leds_time_interval; /* abs.ofs: 144 */
353 u8 leds_off_time; /* abs.ofs: 146 */
354 u8 leds_on_time; /* abs.ofs: 147 */
355 u8 almgor_m_version; /* abs.ofs: 148 */
356 u8 antenna_switch_type; /* abs.ofs: 149 */
358 u8 sku_id[4]; /* abs.ofs: 192 */
371 u16 band_1_count; /* abs.ofs: 196 */
372 struct il_eeprom_channel band_1_channels[14]; /* abs.ofs: 198 */
379 u16 band_2_count; /* abs.ofs: 226 */
380 struct il_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */
386 u16 band_3_count; /* abs.ofs: 254 */
387 struct il_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */
393 u16 band_4_count; /* abs.ofs: 280 */
394 struct il_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */
400 u16 band_5_count; /* abs.ofs: 304 */
401 struct il_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */
410 /* abs.ofs: 512 */
411 struct il3945_eeprom_temperature_corr corrections; /* abs.ofs: 832 */
/linux-4.1.27/sound/soc/codecs/
H A Drl6231.c62 int red_t = abs(freq_out - freq_in); rl6231_pll_calc()
81 red = abs(in_t - pll_out); rl6231_pll_calc()
92 red = abs(out_t - pll_out); rl6231_pll_calc()
H A Dwm8993.c1246 best_val = abs((wm8993->sysclk_rate / clk_sys_rates[0].ratio) wm8993_hw_params()
1249 cur_val = abs((wm8993->sysclk_rate / wm8993_hw_params()
1263 best_val = abs(wm8993->fs - sample_rates[0].rate); wm8993_hw_params()
1266 cur_val = abs(wm8993->fs - sample_rates[i].rate); wm8993_hw_params()
1310 best_val = abs(wm8993->pdata.retune_configs[0].rate wm8993_hw_params()
1313 cur_val = abs(wm8993->pdata.retune_configs[i].rate wm8993_hw_params()
H A Dwm9081.c1061 best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio) wm9081_hw_params()
1064 cur_val = abs((wm9081->sysclk_rate / wm9081_hw_params()
1078 best_val = abs(wm9081->fs - sample_rates[0].rate); wm9081_hw_params()
1081 cur_val = abs(wm9081->fs - sample_rates[i].rate); wm9081_hw_params()
1121 best_val = abs(pdata->retune_configs[0].rate - wm9081->fs); wm9081_hw_params()
1123 cur_val = abs(pdata->retune_configs[i].rate - wm9081_hw_params()
H A Dak4641.c61 abs(deemph_settings[i] - ak4641->playback_fs) < ak4641_set_deemph()
62 abs(deemph_settings[best] - ak4641->playback_fs)) ak4641_set_deemph()
H A Dcs4271.c270 if (abs(cs4271_deemph[i] - cs4271->rate) < cs4271_set_deemph()
271 abs(cs4271_deemph[val] - cs4271->rate)) cs4271_set_deemph()
H A Dtlv320aic23.c242 return abs(diff_adc) + abs(diff_dac); get_score()
H A Dwm8904.c439 abs(pdata->retune_mobile_cfgs[i].rate wm8904_set_retune_mobile()
442 best_val = abs(pdata->retune_mobile_cfgs[i].rate wm8904_set_retune_mobile()
506 if (abs(deemph_settings[i] - wm8904->fs) < wm8904_set_deemph()
507 abs(deemph_settings[best] - wm8904->fs)) wm8904_set_deemph()
1327 best_val = abs((wm8904->sysclk_rate / clk_sys_rates[0].ratio) wm8904_hw_params()
1330 cur_val = abs((wm8904->sysclk_rate / wm8904_hw_params()
1344 best_val = abs(wm8904->fs - sample_rates[0].rate); wm8904_hw_params()
1347 cur_val = abs(wm8904->fs - sample_rates[i].rate); wm8904_hw_params()
H A Dcs42l52.c759 if (abs(mclk - mclk1) < abs(mclk - mclk2)) { cs42l52_get_clk()
966 if (abs(cs42l52->beep_rate - beep_rates[i]) < cs42l52_beep_work()
967 abs(cs42l52->beep_rate - beep_rates[best])) cs42l52_beep_work()
H A Dwm8903.c421 if (abs(wm8903_deemph[i] - wm8903->fs) < wm8903_set_deemph()
422 abs(wm8903_deemph[best] - wm8903->fs)) wm8903_set_deemph()
1465 best_val = abs(sample_rates[dsp_config].rate - fs); wm8903_hw_params()
1467 cur_val = abs(sample_rates[i].rate - fs); wm8903_hw_params()
1508 best_val = abs((wm8903->sysclk / wm8903_hw_params()
1512 cur_val = abs((wm8903->sysclk / wm8903_hw_params()
H A Des8328.c110 if (abs(deemph_settings[i].rate - es8328->playback_fs) < es8328_set_deemph()
111 abs(deemph_settings[best].rate - es8328->playback_fs)) es8328_set_deemph()
H A Dwm8731.c107 if (abs(wm8731_deemph[i] - wm8731->playback_fs) < wm8731_set_deemph()
108 abs(wm8731_deemph[best] - wm8731->playback_fs)) wm8731_set_deemph()
H A Dwm8955.c374 if (abs(deemph_settings[i] - wm8955->fs) < wm8955_set_deemph()
375 abs(deemph_settings[best] - wm8955->fs)) wm8955_set_deemph()
H A Dwm8961.c524 if (abs(wm8961_srate[i].rate - fs) < wm8961_hw_params()
525 abs(wm8961_srate[best].rate - fs)) wm8961_hw_params()
H A Dwm8983.c749 srate_best = abs(srates[0] - params_rate(params)); wm8983_hw_params()
751 if (abs(srates[i] - params_rate(params)) >= srate_best) wm8983_hw_params()
754 srate_best = abs(srates[i] - params_rate(params)); wm8983_hw_params()
H A Dwm8985.c728 srate_best = abs(srates[0] - params_rate(params)); wm8985_hw_params()
730 if (abs(srates[i] - params_rate(params)) >= srate_best) wm8985_hw_params()
733 srate_best = abs(srates[i] - params_rate(params)); wm8985_hw_params()
H A Dmax98088.c1676 abs(pdata->eq_cfg[i].rate - fs) < best_val) { max98088_setup_eq1()
1678 best_val = abs(pdata->eq_cfg[i].rate - fs); max98088_setup_eq1()
1723 abs(pdata->eq_cfg[i].rate - fs) < best_val) { max98088_setup_eq2()
1725 best_val = abs(pdata->eq_cfg[i].rate - fs); max98088_setup_eq2()
H A Dmax98095.c1790 abs(pdata->eq_cfg[i].rate - fs) < best_val) { max98095_put_eq_enum()
1792 best_val = abs(pdata->eq_cfg[i].rate - fs); max98095_put_eq_enum()
1944 abs(pdata->bq_cfg[i].rate - fs) < best_val) { max98095_put_bq_enum()
1946 best_val = abs(pdata->bq_cfg[i].rate - fs); max98095_put_bq_enum()
H A Dtlv320aic3x.c1110 if (abs(codec_clk - tmp_clk) < aic3x_hw_params()
1111 abs(codec_clk - last_clk)) { aic3x_hw_params()
1138 if (abs(codec_clk - clk) < abs(codec_clk - last_clk)) { aic3x_hw_params()
/linux-4.1.27/include/linux/input/
H A Dmt.h26 * @abs: holds current values of ABS_MT axes for this slot
31 int abs[ABS_MT_LAST - ABS_MT_FIRST + 1]; member in struct:input_mt_slot
59 slot->abs[code - ABS_MT_FIRST] = value; input_mt_set_value()
65 return slot->abs[code - ABS_MT_FIRST]; input_mt_get_value()
/linux-4.1.27/drivers/input/misc/
H A Dxen-kbdfront.c111 int ret, i, abs; xenkbd_probe() local
130 if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-abs-pointer", "%d", &abs) < 0) xenkbd_probe()
131 abs = 0; xenkbd_probe()
132 if (abs) xenkbd_probe()
133 xenbus_printf(XBT_NIL, dev->nodename, "request-abs-pointer", "1"); xenkbd_probe()
169 if (abs) { xenkbd_probe()
320 "feature-abs-pointer", "%d", &val); xenkbd_backend_changed()
325 "request-abs-pointer", "1"); xenkbd_backend_changed()
327 pr_warning("xenkbd: can't request abs-pointer"); xenkbd_backend_changed()
342 /* Set input abs params to match backend screen res */ xenkbd_backend_changed()
H A Daxp20x-pek.c125 err = abs(axp20x_ea->p_time[i].time - val); axp20x_store_ext_attr()
/linux-4.1.27/drivers/input/joystick/
H A Dtmdc.c95 char abs; member in struct:tmdc_model
116 const signed char *abs; member in struct:tmdc_port
131 signed char *abs[2];
199 if (port->abs[i] < 0) tmdc_parse_packet()
202 input_report_abs(port->dev, port->abs[i], data[tmdc_byte_a[i]]); tmdc_parse_packet()
298 port->abs = model->axes; tmdc_setup_port()
306 port->absc = model->abs; tmdc_setup_port()
336 if (port->abs[i] >= 0) tmdc_setup_port()
337 input_set_abs_params(input_dev, port->abs[i], 8, 248, 2, 4); tmdc_setup_port()
H A Dadi.c119 char *abs; member in struct:adi
219 char *abs = adi->abs; adi_decode() local
227 input_report_abs(dev, *abs++, adi_get_bits(adi, 10)); adi_decode()
230 input_report_abs(dev, *abs++, adi_get_bits(adi, 8)); adi_decode()
235 input_report_abs(dev, *abs++, ((t >> 2) & 1) - ( t & 1)); adi_decode()
236 input_report_abs(dev, *abs++, ((t >> 1) & 1) - ((t >> 3) & 1)); adi_decode()
243 input_report_abs(dev, *abs++, adi_hat_to_axis[t].x); adi_decode()
244 input_report_abs(dev, *abs++, adi_hat_to_axis[t].y); adi_decode()
417 adi->abs = adi_abs[t]; adi_init_input()
436 set_bit(adi->abs[i], input_dev->absbit); adi_init_input()
453 t = adi->abs[i]; adi_init_center()
H A Dguillemot.c60 short *abs; member in struct:guillemot_type
135 for (i = 0; i < 6 && guillemot->type->abs[i] >= 0; i++) guillemot_poll()
136 input_report_abs(dev, guillemot->type->abs[i], data[i + 5]); guillemot_poll()
240 for (i = 0; (t = guillemot->type->abs[i]) >= 0; i++) guillemot_connect()
H A Dinteract.c75 short *abs; member in struct:interact_type
271 for (i = 0; (t = interact_type[interact->type].abs[i]) >= 0; i++) { interact_connect()
H A Dwalkera0701.c153 if (abs(pulse_time - SYNC_PULSE) < RESERVE) /* new frame sync */ walkera0701_irq_handler()
164 } else if (abs(pulse_time - SYNC_PULSE - BIN0_PULSE) < walkera0701_irq_handler()
H A Dxpad.c993 static void xpad_set_up_abs(struct input_dev *input_dev, signed short abs) xpad_set_up_abs() argument
996 set_bit(abs, input_dev->absbit); xpad_set_up_abs()
998 switch (abs) { xpad_set_up_abs()
1003 input_set_abs_params(input_dev, abs, -32768, 32767, 16, 128); xpad_set_up_abs()
1008 input_set_abs_params(input_dev, abs, 0, 1023, 0, 0); xpad_set_up_abs()
1010 input_set_abs_params(input_dev, abs, 0, 255, 0, 0); xpad_set_up_abs()
1014 input_set_abs_params(input_dev, abs, -1, 1, 0, 0); xpad_set_up_abs()
/linux-4.1.27/drivers/isdn/mISDN/
H A Ddsp_ecdis.h77 Use abs instead of multiply for speed (is it really faster?). echo_can_disable_detector_update()
81 det->channel_level += ((abs(amp) - det->channel_level) >> 5); echo_can_disable_detector_update()
82 det->notch_level += ((abs(notched) - det->notch_level) >> 4); echo_can_disable_detector_update()
/linux-4.1.27/arch/metag/lib/
H A Ddivsi3.S29 !! A already in D1Ar1, B already in D0Ar2 -> make B abs(B)
34 ABS D1Ar1,D1Ar1 ! abs(A) -> Au
35 ABS D1Re0,D1Re0 ! abs(B) -> Bu
/linux-4.1.27/arch/ia64/include/asm/
H A Dpatch.h18 extern void ia64_patch_imm64 (u64 insn_addr, u64 val); /* patch "movl" w/abs. value*/
/linux-4.1.27/drivers/isdn/hysdn/
H A Dhysdn_pof.h71 #define TAG_ABSDATA 0x1000 /* abs. data */
77 #define TAG_CABSDATA 0x1100 /* crypted abs. data */
/linux-4.1.27/drivers/hid/
H A Dhid-speedlink.c52 * don't. However, catching abs(value)>=256 is restrictive enough not speedlink_event()
55 if (abs(value) >= 256) speedlink_event()
H A Dhid-wiimote-modules.c1670 * via sysfs, or set it explicitly. If data is off more than abs(500), wiimod_pro_in_ext()
1674 if (abs(lx) < 500) wiimod_pro_in_ext()
1676 if (abs(ly) < 500) wiimod_pro_in_ext()
1678 if (abs(rx) < 500) wiimod_pro_in_ext()
1680 if (abs(ry) < 500) wiimod_pro_in_ext()
/linux-4.1.27/arch/powerpc/kernel/
H A Dsmp-tbsync.c145 score = abs(score); smp_generic_give_timebase()
146 score2 = abs(score2); smp_generic_give_timebase()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-radio-rx.c87 abs(dev->radio_rx_sig_qual) > 200) { vivid_radio_rx_read()
98 /* abs(dev->radio_rx_sig_qual) <= 200, map that to a 0-50% range */ vivid_radio_rx_read()
99 perc = abs(dev->radio_rx_sig_qual) / 4; vivid_radio_rx_read()
258 vt->signal = abs(sig_qual) > delta ? 0 : vivid_radio_rx_g_tuner()
259 0xffff - (abs(sig_qual) * 0xffff) / delta; vivid_radio_rx_g_tuner()
261 if (abs(sig_qual) > delta) vivid_radio_rx_g_tuner()
H A Dvivid-radio-common.c135 if (abs(sig_qual_tx) <= abs(sig_qual)) { vivid_radio_calc_sig_qual()
H A Dvivid-rds-gen.c110 (abs(sys_tz.tz_minuteswest) / 30); vivid_rds_generate()
/linux-4.1.27/arch/m68k/fpsp040/
H A Dbindec.S28 | A2. Set X = abs(input).
57 | 10^^(abs(ISCALE)) using a rounding mode which is a
122 | a2: pointer to FP_X; abs(original value) in ext
208 | A2. Set X = abs(input).
214 andil #0x7fffffff,FP_SCR2(%a6) |create abs(X)
332 | of ISCALE, used in A9. Fp1 contains 10^^(abs(ISCALE)) using
398 negl %d0 |and take abs of ISCALE
484 fabsx %fp0 |use abs(X)
629 | fp0: int portion of Y/abs(YINT) adjusted
662 fabsx %fp0 |take abs of YINT
665 | Compare abs(YINT) to 10^(LEN-1) and 10^LEN
668 fabsx %fp0 |take abs of YINT
669 fcmpx %fp2,%fp0 |compare abs(YINT) with 10^(LEN-1)
678 fcmpx %fp2,%fp0 |compare abs(YINT) with 10^LEN
691 | and shouldn't have another; this is to check if abs(YINT) = 10^LEN
707 fabsx %fp0 |get abs(YINT)
708 fcmpx %fp2,%fp0 |check if abs(YINT) = 10^LEN
710 fdivs FTEN,%fp0 |divide abs(YINT) by 10
729 | d2: x/ms 32-bits of mant of abs(YINT)
730 | d3: x/ls 32-bits of mant of abs(YINT)
739 | fp0: int portion of Y/abs(YINT) adjusted
749 fdivx %fp2,%fp0 |divide abs(YINT) by 10^LEN
751 fmovex %fp0,(%a0) |move abs(YINT)/10^LEN to memory
811 | fp0: abs(YINT) adjusted/float(ILOG)
825 fabsx %fp0 |get abs of ILOG
834 fabsx %fp0 |get abs of ILOG
843 fabsx %fp0 |get abs of ILOG
H A Ddecbin.S250 | 5. Check if the exp has crossed zero in #3 above; make the exp abs
288 ble pwrten |if abs(expA) <28, skip ap/st zeros
316 negl %d1 |now its neg; get abs
364 negl %d1 |take abs of exp and clr SE
479 | ( ) fp1: scaling factor - 10**(abs(exp))
H A Dstan.S315 |--If compact form of abs(arg) in d0=$7ffeffff, argument is so large that
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dmcp77.c217 if (abs(core - out) <= abs(core - (clock >> 1))) { mcp77_clk_calc()
245 if (abs(shader - out) <= mcp77_clk_calc()
246 abs(shader - clock) && mcp77_clk_calc()
260 if(abs(vdec - out) <= abs(vdec - clock)) { mcp77_clk_calc()
H A Dpllgt215.c67 err = abs(freq - (info->refclk * N / M / *P)); gt215_pll_calc()
H A Dpllnv04.c108 delta = abs(calcclk - clk); getMNP_single()
204 delta = abs(calcclkout - clk); getMNP_double()
H A Dgf100.c288 if (abs((int)freq - clk0) <= abs((int)freq - clk1)) { calc_clk()
H A Dgk104.c306 if (abs((int)freq - clk0) <= abs((int)freq - clk1)) { calc_clk()
H A Dnv50.c403 if (abs(vdec - freq) <= abs(vdec - out)) { nv50_clk_calc()
H A Dgk20a.c233 delta = abs(lwv - target_clk_f); gk20a_pllg_calc_mnp()
/linux-4.1.27/arch/mips/include/asm/
H A Dmc146818-time.h57 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) mc146818_set_rtc_mmss()
61 if (abs(real_minutes - cmos_minutes) < 30) { mc146818_set_rtc_mmss()
/linux-4.1.27/include/xen/interface/io/
H A Dkbdif.h42 * Capable backend sets feature-abs-pointer in xenstore.
44 * request-abs-update in xenstore.
/linux-4.1.27/arch/sh/boards/mach-sh03/
H A Drtc.c101 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) set_rtc_mmss()
105 if (abs(real_minutes - cmos_minutes) < 30) { set_rtc_mmss()
/linux-4.1.27/lib/
H A Ddiv64.c67 quotient = div_u64_rem(-dividend, abs(divisor), (u32 *)remainder); div_s64_rem()
72 quotient = div_u64_rem(dividend, abs(divisor), (u32 *)remainder); div_s64_rem()
H A Dpercpu_counter.c206 if (abs(count - rhs) > (batch * num_online_cpus())) { __percpu_counter_compare()
/linux-4.1.27/tools/testing/selftests/timers/
H A Draw_skew.c140 printf("%lld.%i(est)", eppm/1000, abs((int)(eppm%1000))); main()
146 printf(" %lld.%i(act)", ppm/1000, abs((int)(ppm%1000))); main()
H A Dnanosleep.c115 /* First check abs time */ nanosleep_test()
H A Dnsleep-lat.c146 printf("Large abs latency: %lld ns :", latency/count); nanosleep_lat_test()
H A Dposix_timers.c70 if (abs(diff - DELAY * USECS_PER_SEC) > USECS_PER_SEC / 2) { check_diff()
/linux-4.1.27/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c140 value = abs(val1) * pow_10(-exp); convert_to_vtf_format()
141 value += abs(val2) / pow_10(6+exp); convert_to_vtf_format()
143 value = abs(val1) / pow_10(exp); convert_to_vtf_format()
300 exp = abs(exp); adjust_exponent_micro()
/linux-4.1.27/include/linux/platform_data/
H A Dcyttsp4.h39 const uint16_t *abs; member in struct:touch_framework
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DUtil.py84 return errno.errorcode[abs(nr)]
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dar9003_paprd.c87 delta = abs((int) ah->paprd_target_power - (int) power); ar9003_get_training_power_2g()
114 delta = abs((int) ah->paprd_target_power - (int) power); ar9003_get_training_power_5g()
582 tmp_abs = abs(x_tilde[i]); create_pa_curve()
601 abs_val = abs(B1_tmp[i]); create_pa_curve()
605 abs_val = abs(B2_tmp[i]); create_pa_curve()
628 Q_scale_B = find_proper_scale(find_expn(abs(scale_B)), 10); create_pa_curve()
632 Q_beta = find_proper_scale(find_expn(abs(beta_raw)), 10); create_pa_curve()
633 Q_alpha = find_proper_scale(find_expn(abs(alpha_raw)), 10); create_pa_curve()
684 Q_beta = find_proper_scale(find_expn(abs(beta_raw)), 10); create_pa_curve()
685 Q_alpha = find_proper_scale(find_expn(abs(alpha_raw)), 10); create_pa_curve()
H A Dar9003_calib.c602 s32 abs_i = abs(in_re), ar9003_hw_find_mag_approx()
603 abs_q = abs(in_im), ar9003_hw_find_mag_approx()
860 /* find average (exclude max abs value) */ ar9003_hw_detect_outlier()
862 if ((abs(mp_coeff[i][0]) < abs(mp_max)) || ar9003_hw_detect_outlier()
863 (abs(mp_coeff[i][0]) < abs(mp_min))) { ar9003_hw_detect_outlier()
879 if (abs(mp_max - mp_min) > max_delta) { ar9003_hw_detect_outlier()
880 if (abs(mp_max - mp_avg) > abs(mp_min - mp_avg)) ar9003_hw_detect_outlier()
H A Dar9002_phy.c319 volatile int tmp_v = abs(cur_vit_mask - bin); ar9002_hw_spur_mitigate()
326 mask_m[abs(cur_vit_mask / 100)] = mask_amt; ar9002_hw_spur_mitigate()
H A Dar9003_aic.c397 ar9003_aic_find_index(0, abs(aic_sram[i].dir_path_gain_lin)) - ar9003_aic_cal_post_process()
400 ar9003_aic_find_index(0, abs(aic_sram[i].quad_path_gain_lin)) - ar9003_aic_cal_post_process()
H A Dar5008_phy.c366 volatile int tmp_v = abs(cur_vit_mask - bin); ar5008_hw_spur_mitigate()
373 mask_m[abs(cur_vit_mask / 100)] = mask_amt; ar5008_hw_spur_mitigate()
/linux-4.1.27/drivers/usb/chipidea/
H A Dci.h139 * @abs: absolute address of the beginning of register window
148 void __iomem *abs; member in struct:hw_bank
295 return ioread32(ci->hw_bank.abs + offset) & mask; hw_read_id_reg()
309 data = (ioread32(ci->hw_bank.abs + offset) & ~mask) hw_write_id_reg()
312 iowrite32(data, ci->hw_bank.abs + offset); hw_write_id_reg()
H A Dci_hdrc_msm.c18 #define MSM_USB_BASE (ci->hw_bank.abs)
H A Dcore.c239 ci->hw_bank.abs = base; hw_device_init()
241 ci->hw_bank.cap = ci->hw_bank.abs; hw_device_init()
251 ci->hw_bank.size = ci->hw_bank.op - ci->hw_bank.abs; hw_device_init()
H A Dhost.c97 hcd->regs = ci->hw_bank.abs; host_start()
/linux-4.1.27/drivers/input/
H A Djoydev.c60 __s16 abs[ABS_CNT]; member in struct:joydev
140 if (event.value == joydev->abs[event.number]) joydev_event()
142 joydev->abs[event.number] = event.value; joydev_event()
302 event->value = joydev->abs[event->number]; joydev_generate_startup_event()
349 data.x = (joydev->abs[0] / 256 + 128) >> joydev->glue.JS_CORR.x; joydev_0x_read()
350 data.y = (joydev->abs[1] / 256 + 128) >> joydev->glue.JS_CORR.y; joydev_0x_read()
551 joydev->abs[i] = joydev_correct(val, &joydev->corr[i]); joydev_ioctl_common()
887 joydev->abs[i] = input_abs_get_val(dev, j); joydev_connect()
903 joydev->abs[i] = joydev_connect()
H A Devdev.c861 struct input_absinfo abs; evdev_do_ioctl() local
1011 abs = dev->absinfo[t]; evdev_do_ioctl()
1013 if (copy_to_user(p, &abs, min_t(size_t, evdev_do_ioctl()
1030 if (copy_from_user(&abs, p, min_t(size_t, evdev_do_ioctl()
1035 abs.resolution = 0; evdev_do_ioctl()
1047 dev->absinfo[t] = abs; evdev_do_ioctl()
H A Dff-memless.c193 difference = abs(value) - envelope_level; apply_envelope()
307 i = apply_envelope(state, abs(new->u.periodic.magnitude), ml_combine_effects()
/linux-4.1.27/arch/mips/dec/
H A Dtime.c95 if (((abs(real_minutes - cmos_minutes) + 15) / 30) & 1) rtc_mips_set_mmss()
99 if (abs(real_minutes - cmos_minutes) < 30) { rtc_mips_set_mmss()
/linux-4.1.27/arch/mn10300/kernel/
H A Drtc.c79 if (((abs(real_minutes - cmos_minutes) + 15) / 30) & 1) set_rtc_mmss()
84 if (abs(real_minutes - cmos_minutes) < 30) { set_rtc_mmss()
/linux-4.1.27/arch/m68k/lib/
H A Ddivsi3.S111 jbsr SYM (__udivsi3) /* divide abs(dividend) by abs(divisor) */
/linux-4.1.27/arch/alpha/lib/
H A Ddivide.S178 cmovlt $24,$28,$24 /* abs($24) */
182 cmovlt $25,$28,$25 /* abs($25) */
H A Dev6-divide.S235 cmovlt $24,$28,$24 /* abs($24) */ # E : Latency 2, extra map slot
241 cmovlt $25,$28,$25 /* abs($25) */ # E : Latency 2, extra map slot
/linux-4.1.27/include/uapi/linux/
H A Dvirtio_input.h65 struct virtio_input_absinfo abs; member in union:virtio_input_config::__anon13773
H A Dinput.h147 #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) /* get abs value/limits */
148 #define EVIOCSABS(abs) _IOW('E', 0xc0 + (abs), struct input_absinfo) /* set abs value/limits */
/linux-4.1.27/drivers/macintosh/
H A Dvia-pmu-backlight.c48 int diff = abs(bl_curve[i] - value); pmu_backlight_curve_lookup()
H A Dtherm_adt746x.c243 if (abs(var - th->last_var[fan_number]) < 2) update_fans_speed()
/linux-4.1.27/arch/x86/boot/compressed/
H A DMakefile68 cmd_relocs = $(CMD_RELOCS) $< > $@;$(CMD_RELOCS) --abs-relocs $<
/linux-4.1.27/drivers/media/common/siano/
H A Dsmsir.c46 ev.duration = abs(samples[i]) * 1000; /* Convert to ns */ sms_ir_event()
/linux-4.1.27/drivers/net/wan/
H A Dsdla.c526 flp->dlci[i] = abs(flp->dlci[i]); sdla_activate()
548 flp->dlci[i] = -abs(flp->dlci[i]); sdla_deactivate()
570 if (abs(flp->dlci[i]) == *(short *)(master->dev_addr)) sdla_assoc()
642 ret = sdla_cmd(slave, SDLA_READ_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, sdla_dlci_conf()
645 ret = sdla_cmd(slave, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, sdla_dlci_conf()
957 dlcis[len++] = abs(flp->dlci[i]); sdla_close()
1025 data.dlci[len++] = abs(flp->dlci[i]); sdla_open()
1092 sdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, &dlp->config, sizeof(struct dlci_conf), NULL, NULL); sdla_open()
/linux-4.1.27/drivers/media/radio/
H A Dradio-sf16fmr2.c173 tc9154a_set_attenuation(fmr2, abs(left - 68), TC9154A_CHANNEL_LEFT); fmr2_s_ctrl()
174 tc9154a_set_attenuation(fmr2, abs(right - 68), TC9154A_CHANNEL_RIGHT); fmr2_s_ctrl()
H A Dtea575x.c444 if (abs(tea->freq - freq) < 16 * spacing || snd_tea575x_s_hw_freq_seek()
/linux-4.1.27/drivers/clk/
H A Dclk-wm831x.c152 if (abs(wm831x_fll_auto_rates[i] - rate) < wm831x_fll_round_rate()
153 abs(wm831x_fll_auto_rates[best] - rate)) wm831x_fll_round_rate()
H A Dclk-axi-clkgen.c174 if (abs(f - fout) < abs(best_f - fout)) { axi_clkgen_calc_params()
H A Dclk-divider.c256 return abs(rate - now) < abs(rate - best); _is_best_div()
H A Dclk-si570.c259 if (div64_u64(abs(rate - data->frequency) * 10000LL, si570_round_rate()
354 if (div64_u64(abs(rate - data->frequency) * 10000LL, si570_set_rate()
H A Dclk-composite.c107 rate_diff = abs(rate - tmp_rate); clk_composite_determine_rate()
H A Dclk-si5351.c1019 err = abs(new_rate - rate); si5351_clkout_round_rate()
1022 new_err = abs(new_rate - rate); si5351_clkout_round_rate()
1050 err = abs(new_rate - rate); si5351_clkout_set_rate()
1053 new_err = abs(new_rate - rate); si5351_clkout_set_rate()
/linux-4.1.27/drivers/video/fbdev/core/
H A Dmodedb.c825 if (abs(db[i].refresh - refresh) < diff) { fb_find_mode()
826 diff = abs(db[i].refresh - refresh); fb_find_mode()
842 tdiff = abs(db[i].xres - xres) + fb_find_mode()
843 abs(db[i].yres - yres); fb_find_mode()
1039 d = abs(cmode->xres - mode->xres) + list_for_each()
1040 abs(cmode->yres - mode->yres); list_for_each()
1043 diff_refresh = abs(cmode->refresh - mode->refresh); list_for_each()
1046 d = abs(cmode->refresh - mode->refresh); list_for_each()
/linux-4.1.27/drivers/video/fbdev/geode/
H A Dvideo_gx.c140 min = abs(pll_table[0].pixclock - info->var.pixclock); gx_set_dclk_frequency()
142 diff = abs(pll_table[i].pixclock - info->var.pixclock); gx_set_dclk_frequency()
H A Dlxfb_ops.c171 min = abs(pll_table[0].freq - freq); lx_set_clock()
174 diff = abs(pll_table[i].freq - freq); lx_set_clock()
/linux-4.1.27/arch/alpha/kernel/
H A Drtc.c161 if (((abs(real_minutes - cmos_minutes) + 15) / 30) & 1) { alpha_rtc_set_mmss()
167 if (abs(real_minutes - cmos_minutes) < 30) { alpha_rtc_set_mmss()
/linux-4.1.27/drivers/media/i2c/
H A Dsaa6752hs.c577 dist_352 = abs(f->width - 352); saa6752hs_try_mbus_fmt()
578 dist_480 = abs(f->width - 480); saa6752hs_try_mbus_fmt()
579 dist_720 = abs(f->width - 720); saa6752hs_try_mbus_fmt()
588 if (abs(f->height - 576) < abs(f->height - 288)) saa6752hs_try_mbus_fmt()
H A Dnoon010pc30.c371 int err = abs(fsize->width - mf->width) noon010_try_frame_size()
372 + abs(fsize->height - mf->height); noon010_try_frame_size()
H A Dsr030pc30.c405 int err = abs(fsize->width - mf->width) sr030pc30_try_frame_size()
406 + abs(fsize->height - mf->height); sr030pc30_try_frame_size()
H A Dov2659.c928 delta = abs(delta); ov2659_pll_calc_params()
1081 int err = abs(fsize->width - mf->width) __ov2659_try_frame_size()
1082 + abs(fsize->height - mf->height); __ov2659_try_frame_size()
H A Ds5k4ecgx.c514 int err = abs(fsize->size.width - mf->width) s5k4ecgx_try_frame_size()
515 + abs(fsize->size.height - mf->height); s5k4ecgx_try_frame_size()
/linux-4.1.27/drivers/misc/echo/
H A Decho.c429 ec->ltxacc += abs(tx) - ec->ltx; oslec_update()
431 ec->lrxacc += abs(rx) - ec->lrx; oslec_update()
439 ec->lcleanacc += abs(ec->clean) - ec->lclean; oslec_update()
446 ec->lclean_bgacc += abs(clean_bg) - ec->lclean_bg; oslec_update()
597 ec->lbgn_acc += abs(ec->clean) - ec->lbgn; oslec_update()
/linux-4.1.27/drivers/video/fbdev/riva/
H A Driva_hw.c383 if (abs(ainfo->gburst_size) + ((abs(ainfo->wcglwm) + 16 ) & ~0x7) - tmp > max_gfsize) nv3_iterate()
390 if (abs(ainfo->vburst_size) + (abs(ainfo->wcvlwm + 32) & ~0xf) - tmp> VFIFO_SIZE) nv3_iterate()
395 if (abs(ainfo->gocc) > max_gfsize) nv3_iterate()
400 if (abs(ainfo->vocc) > VFIFO_SIZE) nv3_iterate()
405 if (abs(ainfo->mocc) > MFIFO_SIZE) nv3_iterate()
410 if (abs(vfsize) > VFIFO_SIZE) nv3_iterate()
415 if (abs(gfsize) > max_gfsize) nv3_iterate()
420 if (abs(mfsize) > MFIFO_SIZE) nv3_iterate()
499 res_info->graphics_lwm = (int)abs(ainfo->wcglwm) + 16; nv3_arb()
500 res_info->video_lwm = (int)abs(ainfo->wcvlwm) + 32; nv3_arb()
/linux-4.1.27/arch/powerpc/platforms/512x/
H A Dmpc512x_shared.c145 delta = abs(pixclock - got); mpc512x_set_pixel_clock()
154 delta = abs(pixclock - got); mpc512x_set_pixel_clock()
175 delta = abs(pixclock - got); mpc512x_set_pixel_clock()
/linux-4.1.27/sound/isa/gus/
H A Dgus_main.c293 dma1 = abs(dma1); snd_gus_init_dma_irq()
296 dma2 = abs(dma2); snd_gus_init_dma_irq()
305 irq = abs(irq); snd_gus_init_dma_irq()
/linux-4.1.27/drivers/media/usb/gspca/
H A Dautogain_functions.c46 steps = abs(desired_avg_lum - avg_lum) / deadzone; gspca_expo_autogain()
/linux-4.1.27/drivers/net/irda/
H A Dsh_sir.c306 tmp = abs(rate_err_array[i] - rerr); sh_sir_set_baudrate()
314 if ((SCLK_BASE / 100) < abs(tmp - SCLK_BASE)) sh_sir_set_baudrate()
350 tmp = abs(rate_err_array[i] - rerr); sh_sir_set_baudrate()
358 if ((baudrate / 100) < abs(tmp - baudrate)) sh_sir_set_baudrate()
/linux-4.1.27/drivers/input/joystick/iforce/
H A Diforce.h96 signed short *abs; member in struct:iforce_device
H A Diforce-main.c393 for (i = 0; iforce->type->abs[i] >= 0; i++) { iforce_init_device()
395 signed short t = iforce->type->abs[i]; iforce_init_device()
/linux-4.1.27/arch/powerpc/platforms/powermac/
H A Dbacklight.c88 int diff = abs(info->bl_curve[i] - value); pmac_backlight_curve_lookup()
/linux-4.1.27/arch/blackfin/lib/
H A Ddivsi3.S45 r1 = abs r1; /* now both positive, r3.30 means "negate result",
/linux-4.1.27/arch/arm/include/debug/
H A Domap2plus.S73 ldr \rp, [\rp, #4] @ abs addr of omap_uart_phys
/linux-4.1.27/arch/arc/kernel/
H A Dmodule.c104 * global data access again is abs 32 bit. apply_relocate_add()
/linux-4.1.27/kernel/power/
H A Dsuspend_test.c42 msec = jiffies_to_msecs(abs(nj)); suspend_test_finish()
/linux-4.1.27/drivers/staging/fbtft/
H A Dfb_agm1264k-fl.c318 if (abs(error_b) >= abs(error_w)) { write_vmem()
/linux-4.1.27/drivers/clk/mmp/
H A Dclk-mix.c236 gap = abs(mix_rate - rate); mmp_clk_mix_determine_rate()
254 gap = abs(mix_rate - rate); mmp_clk_mix_determine_rate()
/linux-4.1.27/drivers/media/dvb-frontends/
H A Dstv6110x.c148 if ((abs((s32)(pCalc - pVal))) < (abs((s32)(pCalcOpt - pVal)))) stv6110x_set_frequency()
H A Dstb0899_algo.c189 if ((lock > 48) && (abs(timing) >= 110)) { stb0899_check_tmg()
226 if (abs(derot_freq) > derot_limit) stb0899_search_tmg()
302 if(abs(derot_freq) > derot_limit) stb0899_search_carrier()
407 if (abs(derot_freq) > derot_limit) stb0899_search_data()
786 while ((1 << i) <= abs(number)) Log2Int()
/linux-4.1.27/arch/powerpc/include/uapi/asm/
H A Delf.h188 #define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO /* lower 16bits of abs. address. */
189 #define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI /* high 16bits of abs. address. */
/linux-4.1.27/drivers/input/mouse/
H A Dhgpk.c133 avx = abs(x); hgpk_discard_decay_hack()
134 avy = abs(y); hgpk_discard_decay_hack()
228 if (abs(x) > 3 || abs(y) > 3) { hgpk_spewing_hack()
262 if (abs(priv->x_tally) < 3 && abs(priv->y_tally) < 3) { hgpk_spewing_hack()
H A Dvsxxxaa.c225 * Low 7 bit of byte 1 are abs(dx), bit 7 is vsxxxaa_handle_REL_packet()
232 * Low 7 bit of byte 2 are abs(dy), bit 7 is vsxxxaa_handle_REL_packet()
H A Dfocaltech.c181 psmouse_err(psmouse, "Invalid finger in abs packet: %d\n", focaltech_process_abs_packet()
/linux-4.1.27/drivers/staging/rtl8188eu/hal/
H A Dphy.c544 delta = abs(thermal_val - dm_odm->RFCalibrateInfo.ThermalValue); rtl88eu_dm_txpower_tracking_callback_thermalmeter()
546 delta = abs(thermal_val - hal_data->EEPROMThermalMeter); rtl88eu_dm_txpower_tracking_callback_thermalmeter()
553 delta_lck = abs(dm_odm->RFCalibrateInfo.ThermalValue_LCK - thermal_val); rtl88eu_dm_txpower_tracking_callback_thermalmeter()
554 delta_iqk = abs(dm_odm->RFCalibrateInfo.ThermalValue_IQK - thermal_val); rtl88eu_dm_txpower_tracking_callback_thermalmeter()
563 delta = abs(hal_data->EEPROMThermalMeter - thermal_val); rtl88eu_dm_txpower_tracking_callback_thermalmeter()
/linux-4.1.27/drivers/net/wireless/b43/
H A Dlo.c64 if (unlikely(abs(control->i) > 16 || abs(control->q) > 16)) { b43_lo_write()
203 pga = abs(10 - lb_gain) / 6; lo_measure_txctl_values()
629 (abs(test_loctl.i) <= 16 && abs(test_loctl.q) <= 16)) { lo_probe_possible_loctls()
/linux-4.1.27/arch/arm/mach-lpc32xx/
H A Dclock.c281 if (abs(pllin_freq - target_freq) <= freqtol) { local_clk_find_pll_cfg()
300 if (abs(target_freq - fclkout) <= freqtol) local_clk_find_pll_cfg()
318 if (abs(target_freq - fclkout) <= local_clk_find_pll_cfg()
338 if (abs(target_freq - fclkout) <= freqtol) local_clk_find_pll_cfg()
358 if (abs(target_freq - fclkout) <= freqtol) local_clk_find_pll_cfg()
/linux-4.1.27/drivers/video/fbdev/via/
H A Dhw.c1399 f = abs(get_pll_output_frequency(f0, cur) - clk); get_pll_config()
1403 if (abs(get_pll_output_frequency(f0, up) - clk) < f) get_pll_config()
1405 else if (abs(get_pll_output_frequency(f0, down) - clk) < f) get_pll_config()
1413 f = abs(get_pll_output_frequency(f0, cur) - clk); get_pll_config()
1414 if (f < abs(get_pll_output_frequency(f0, best) - clk)) get_pll_config()
2021 if (abs(best->refresh - long_refresh) > 3) { viafb_get_refresh()
H A Dviamode.c364 if (!best || abs(modes[i].refresh - refresh) < get_best_mode()
365 abs(best->refresh - refresh)) get_best_mode()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-common.c386 error = abs(size->width - width) + abs(size->height - height); v4l2_find_nearest_format()
/linux-4.1.27/drivers/sh/clk/
H A Dcore.c107 rate_error = abs(freq - rounder->rate); for_each_frequency()
569 return abs(target - *best_freq); clk_round_parent()
/linux-4.1.27/drivers/gpu/drm/i2c/
H A Dch7006_mode.c269 if (abs(freq - mode->mode.clock) < ch7006_setup_pll()
270 abs(best_freq - mode->mode.clock)) { ch7006_setup_pll()
/linux-4.1.27/drivers/cpufreq/
H A Dgx-suspmod.c238 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) { gx_validate_speed()
H A Dfreq_table.c173 diff = abs(freq - target_freq); cpufreq_for_each_valid_entry()
H A Ds3c24xx-cpufreq.c95 int diff_cur = abs(target - c); closer()
96 int diff_new = abs(target - n); closer()
/linux-4.1.27/drivers/acpi/
H A Dsbs.c219 val->intval = abs(battery->rate_now) * acpi_sbs_battery_get_property()
227 val->intval = abs(battery->rate_avg) * acpi_sbs_battery_get_property()
/linux-4.1.27/drivers/gpu/drm/rcar-du/
H A Drcar_du_crtc.c138 if (abs((long)extrate - (long)mode_clock) < rcar_du_crtc_set_display_timing()
139 abs((long)rate - (long)mode_clock)) { rcar_du_crtc_set_display_timing()
/linux-4.1.27/arch/arm/mach-ep93xx/
H A Dclock.c391 if (!found || abs(actual_rate - rate) < rate_err) { calc_clk_div()
398 rate_err = abs(actual_rate - rate); calc_clk_div()
/linux-4.1.27/drivers/hwmon/
H A Dltc4215.c166 const unsigned int power = abs(output_voltage * curr); ltc4215_show_power()
H A Dltc4245.c288 const unsigned int power = abs(output_voltage * curr); ltc4245_show_power()
/linux-4.1.27/drivers/media/platform/
H A Dsh_vou.c556 err = abs(found - geo->in_width); vou_adjust_input()
581 err = abs(found - geo->in_height); vou_adjust_input()
625 err = abs(found - geo->output.width); vou_adjust_output()
655 err = abs(found - geo->output.height); vou_adjust_output()
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dsta_cmdresp.c150 subsc_evt->bcn_l_rssi_cfg.abs_value = abs(priv->bcn_rssi_avg - mwifiex_ret_802_11_rssi_info()
152 subsc_evt->bcn_h_rssi_cfg.abs_value = abs(priv->cqm_rssi_thold); mwifiex_ret_802_11_rssi_info()
154 subsc_evt->bcn_l_rssi_cfg.abs_value = abs(priv->cqm_rssi_thold); mwifiex_ret_802_11_rssi_info()
155 subsc_evt->bcn_h_rssi_cfg.abs_value = abs(priv->bcn_rssi_avg + mwifiex_ret_802_11_rssi_info()
/linux-4.1.27/drivers/spi/
H A Dspi-sh-hspi.c131 tmp = abs(t->speed_hz - rate); hspi_hw_setup()
H A Dspi-pxa2xx.c728 r1 = abs(fref1 / (1 << (24 - fls_long(mul))) / q1 - rate); quark_x1000_get_clk_div()
733 r2 = abs(fref2 / q2 - rate); quark_x1000_get_clk_div()
763 r1 = abs(fssp - rate); quark_x1000_get_clk_div()
/linux-4.1.27/drivers/regulator/
H A Ds2mpa01.c95 return DIV_ROUND_UP(abs(new_volt - old_volt), ramp_delay); s2mpa01_regulator_set_voltage_time_sel()
/linux-4.1.27/drivers/gpu/drm/i915/
H A Dintel_dsi_pll.c201 tmp_error = abs(target_dsi_clk - calc_dsi_clk); dsi_calc_mnp()
/linux-4.1.27/drivers/input/keyboard/
H A Dsun4i-lradc-keys.c104 diff = abs(lradc->chan0_map[i].voltage - voltage); sun4i_lradc_irq()
/linux-4.1.27/arch/sparc/kernel/
H A Dsyscalls.S258 * Also, get abs(errno) to return to the process.
/linux-4.1.27/drivers/video/fbdev/
H A Di740fb.c380 if (abs(f_err) < err_max) { i740_calc_vclk()
386 } while ((abs(f_err) >= err_target) && i740_calc_vclk()
387 ((n <= TARGET_MAX_N) || (abs(err_best) > err_max))); i740_calc_vclk()
389 if (abs(f_err) < err_target) { i740_calc_vclk()
H A Duvesafb.c319 h = abs(par->vbe_modes[i].x_res - xres) + uvesafb_vbe_find_mode()
320 abs(par->vbe_modes[i].y_res - yres) + uvesafb_vbe_find_mode()
321 abs(depth - par->vbe_modes[i].depth); uvesafb_vbe_find_mode()
1389 if (depth == 0 || abs(depth - var->bits_per_pixel) >= 8) uvesafb_check_var()
/linux-4.1.27/drivers/power/
H A Djz4740-battery.c211 if (abs(voltage - jz_battery->voltage) < 50000) { jz_battery_update()
/linux-4.1.27/sound/soc/sh/rcar/
H A Dadg.c152 diff = abs(src_rate - sel_rate[sel] / div); rsnd_adg_set_convert_clk_gen2()
/linux-4.1.27/include/linux/
H A Dkernel.h204 * abs() handles unsigned and signed longs, ints, shorts and chars. For all
205 * input types abs() returns a signed long.
206 * abs() should not be used for 64-bit types (s64, u64, long long) - use abs64()
209 #define abs(x) ({ \ macro
/linux-4.1.27/sound/pci/korg1212/
H A Dkorg1212.c1751 val = abs(val) * (korg1212->volumePhase[i] > 0 ? -1 : 1); snd_korg1212_control_phase_put()
1762 val = abs(val) * (korg1212->volumePhase[i+1] > 0 ? -1 : 1); snd_korg1212_control_phase_put()
1792 u->value.integer.value[0] = abs(korg1212->sharedBufferPtr->volumeData[i]); snd_korg1212_control_volume_get()
1795 u->value.integer.value[1] = abs(korg1212->sharedBufferPtr->volumeData[i+1]); snd_korg1212_control_volume_get()
1817 abs(korg1212->sharedBufferPtr->volumeData[i])) { snd_korg1212_control_volume_put()
1828 abs(korg1212->sharedBufferPtr->volumeData[i+1])) { snd_korg1212_control_volume_put()
/linux-4.1.27/drivers/iio/frequency/
H A Dad9523.c423 use_alt_clk_src = (abs(tmp1 - freq) > abs(tmp2 - freq)); ad9523_set_clock_provider()
/linux-4.1.27/drivers/media/i2c/soc_camera/
H A Dtw9910.c445 tmp = abs(width - scale[i].width) + tw9910_select_norm()
446 abs(height - scale[i].height); tw9910_select_norm()
H A Dov772x.c669 u32 diff = abs(width - ov772x_win_sizes[i].rect.width) ov772x_select_win()
670 + abs(height - ov772x_win_sizes[i].rect.height); ov772x_select_win()
/linux-4.1.27/drivers/media/rc/
H A Dimon.c1216 if (abs(x) > threshold || abs(y) > threshold) { stabilize()
1217 if (abs(y) > abs(x)) stabilize()
1448 if (abs(rel_y) > abs(rel_x)) { imon_pad_to_keys()
1511 if (abs(rel_y) > abs(rel_x)) { imon_pad_to_keys()
/linux-4.1.27/drivers/net/wireless/p54/
H A Deeprom.c624 if (abs(freq - entry[i].freq) < p54_rssi_find()
625 abs(freq - entry[found].freq)) { p54_rssi_find()
/linux-4.1.27/drivers/tty/serial/
H A Dlpc32xx_hs.c235 if (abs(comprate - rate) < rate_diff) { __serial_get_clock_div()
237 rate_diff = abs(comprate - rate); __serial_get_clock_div()
H A Dar933x_uart.c226 diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud); ar933x_uart_get_scale_step()
/linux-4.1.27/kernel/time/
H A Dalarmtimer.c741 * @tsreq: requested sleep time (abs or rel)
779 /* abs timers don't set remaining time or restart */ alarm_timer_nsleep()
/linux-4.1.27/drivers/md/bcache/
H A Dwriteback.c302 int s = min_t(unsigned, abs(nr_sectors), bcache_dev_sectors_dirty_add()
/linux-4.1.27/drivers/media/tuners/
H A Dfc0012.c393 tot_agc_gain = (abs((int_temp >> 5) - 7) - 2 + fc0012_get_rf_strength()
H A Dfc0013.c555 tot_agc_gain = (abs((int_temp >> 5) - 7) - 2 + fc0013_get_rf_strength()
H A Dmt2063.c656 if (abs(zones[i].min_) < abs(bestDiff)) MT2063_ChooseFirstIF()
658 if (abs(zones[i].max_) < abs(bestDiff)) MT2063_ChooseFirstIF()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dquota.c303 if (abs((int)le32_to_cpu(cmd.quotas[i].quota) - iwl_mvm_update_quotas()
/linux-4.1.27/drivers/net/wireless/ath/
H A Ddfs_pri_detector.c40 * @return factor if abs(val - factor*fraction) <= tolerance, 0 otherwise
/linux-4.1.27/arch/x86/kernel/kprobes/
H A Dopt.c346 if (abs(rel) > 0x7fffffff) { arch_prepare_optimized_kprobe()
/linux-4.1.27/arch/microblaze/kernel/
H A Dunwind.c64 return abs((s16)(instr & 0xFFFF)); get_frame_size()
/linux-4.1.27/arch/mips/ar7/
H A Dclock.c118 freq = abs(base / j * i / k - target); approximate()
/linux-4.1.27/fs/ubifs/
H A Dshrinker.c122 abs(time - znode->time) >= age) { shrink_tnc()
/linux-4.1.27/arch/m68k/bvme6000/
H A Dconfig.c240 abs(ov-v) > 80 || bvme6000_gettimeoffset()
/linux-4.1.27/fs/f2fs/
H A Ddebug.c107 dist = abs(vblocks - hblks_per_sec); update_sit_info()
/linux-4.1.27/drivers/misc/lis3lv02d/
H A Dlis3lv02d.c727 lis3->mapped_btns[0] = lis3lv02d_get_axis(abs(lis3->ac.x), btns); lis3lv02d_joystick_enable()
728 lis3->mapped_btns[1] = lis3lv02d_get_axis(abs(lis3->ac.y), btns); lis3lv02d_joystick_enable()
729 lis3->mapped_btns[2] = lis3lv02d_get_axis(abs(lis3->ac.z), btns); lis3lv02d_joystick_enable()
/linux-4.1.27/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-core.c814 int dist = abs(fs->width - fmt->width) + s5c73m3_find_frame_size()
815 abs(fs->height - fmt->height); s5c73m3_find_frame_size()
917 ret = abs(iv->interval.numerator / 1000 - fr_time); __s5c73m3_set_frame_interval()
/linux-4.1.27/sound/soc/davinci/
H A Ddavinci-mcasp.c1042 if (abs(ppm) < DAVINCI_MAX_RATE_ERROR_PPM) davinci_mcasp_hw_rule_rate()
1075 if (abs(ppm) < DAVINCI_MAX_RATE_ERROR_PPM) { davinci_mcasp_hw_rule_format()
1106 if (abs(ppm) < DAVINCI_MAX_RATE_ERROR_PPM) { davinci_mcasp_hw_rule_channels()
/linux-4.1.27/drivers/leds/
H A Dleds-lp55xx-common.c412 usleep_range(1000, 2000); /* 500us abs min. */ lp55xx_init_device()
H A Dleds-tca6507.c240 d = abs(msec - tt); choose_times()
426 d = abs(level - tca->bank[i].level); led_prepare()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-ocores.c234 if (abs(diff) > i2c->bus_clock_khz / 10) { ocores_init()
H A Di2c-octeon.c474 diff = abs(foscl - i2c->twsi_freq); octeon_i2c_setclock()
H A Di2c-sh7760.c416 dff = abs(scl_hz - m1); calc_CCR()
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00link.c150 if (abs(rssi_curr - rssi_old) < 5) rt2x00lib_antenna_diversity_eval()
/linux-4.1.27/drivers/staging/media/lirc/
H A Dlirc_parallel.c174 if (abs(newtimer - default_timer) > default_timer/10) { init_lirc_timer()
/linux-4.1.27/drivers/gpu/drm/gma500/
H A Doaktrail_crtc.c206 this_err = abs(clock.dot - target); mrst_lvds_find_best_pll()
/linux-4.1.27/drivers/clocksource/
H A Dcadence_ttc_timer.c259 if (abs(rate_high - (factor * rate_low)) > MAX_F_ERR) ttc_rate_change_clocksource_cb()
/linux-4.1.27/arch/sparc/lib/
H A DU3memcpy.S110 /* Compute abs((dst & 0x3f) - 0x40) into %g2. This is the number
/linux-4.1.27/drivers/acpi/acpica/
H A Dnsutils.c320 "Returning [%p] (abs) \"\\%s\"\n", acpi_ns_build_internal_name()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_display.c1020 diff = abs(target_clock - (pll->reference_freq * fb_div) / radeon_compute_pll_avivo()
1203 error = abs(current_freq - freq); radeon_compute_pll_legacy()
1204 vco_diff = abs(vco - best_vco); radeon_compute_pll_legacy()
1209 (abs(error - best_error) < 100 && vco_diff < best_vco_diff)))) { radeon_compute_pll_legacy()
/linux-4.1.27/arch/blackfin/kernel/
H A Dbfin_dma.c435 u32 shift = abs(dmod) >> 1; __dma_memcpy()
/linux-4.1.27/arch/arm/nwfpe/
H A Dfpopcode.h135 | 0 | 0 | 1 | 0 | ABS | Absolute value | Fd := abs(Fm) |
/linux-4.1.27/sound/oss/dmasound/
H A Ddmasound_q40.c516 if ((100 * abs(dmasound.soft.speed - freq[i]) / freq[i]) <= catchRadius) Q40Init()
/linux-4.1.27/sound/soc/samsung/
H A Ds3c-i2s-v2.c601 deviation = abs(deviation); s3c_i2sv2_iis_calc_rate()
/linux-4.1.27/drivers/iio/adc/
H A Dat91_adc.c1016 if (abs(st->ts_pendbc - (1 << i)) < abs(st->ts_pendbc - (1 << (i - 1)))) at91_ts_hw_init()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-core.c412 return sprintf(buf, "-%ld.%06u%s\n", abs(vals[0]), iio_format_value()
420 return sprintf(buf, "-%ld.%09u\n", abs(vals[0]), iio_format_value()
/linux-4.1.27/drivers/media/i2c/m5mols/
H A Dm5mols_core.c512 err = abs(fsize->width - mf->width) __find_resolution()
513 + abs(fsize->height - mf->height); __find_resolution()

Completed in 5678 milliseconds

12