Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 189) sorted by relevance

12345678

/drivers/input/touchscreen/
Dcyttsp4_core.c365 enum cyttsp4_tch_abs abs; in cyttsp4_si_get_opcfg_data() local
402 for (abs = CY_TCH_X; abs < CY_NUM_TCH_FIELDS; abs++) { in cyttsp4_si_get_opcfg_data()
403 tch = &si->si_ofs.tch_abs[abs]; in cyttsp4_si_get_opcfg_data()
404 tch_old = &si->si_ptrs.opcfg->tch_rec_old[abs]; in cyttsp4_si_get_opcfg_data()
419 for (i = 0; i < CY_NUM_EXT_TCH_FIELDS; abs++, i++) { in cyttsp4_si_get_opcfg_data()
420 tch = &si->si_ofs.tch_abs[abs]; in cyttsp4_si_get_opcfg_data()
430 for (abs = 0; abs < CY_TCH_NUM_ABS; abs++) { in cyttsp4_si_get_opcfg_data()
432 cyttsp4_tch_abs_string[abs]); in cyttsp4_si_get_opcfg_data()
434 si->si_ofs.tch_abs[abs].ofs); in cyttsp4_si_get_opcfg_data()
436 si->si_ofs.tch_abs[abs].size); in cyttsp4_si_get_opcfg_data()
[all …]
Dauo-pixcir-ts.c189 int abs = -1; in auo_pixcir_interrupt() local
230 abs = i; in auo_pixcir_interrupt()
241 if (abs > -1) { in auo_pixcir_interrupt()
242 input_report_abs(ts->input, ABS_X, point[abs].coord_x); in auo_pixcir_interrupt()
243 input_report_abs(ts->input, ABS_Y, point[abs].coord_y); in auo_pixcir_interrupt()
/drivers/input/joystick/
Dadi.c119 char *abs; member
219 char *abs = adi->abs; in adi_decode() local
227 input_report_abs(dev, *abs++, adi_get_bits(adi, 10)); in adi_decode()
230 input_report_abs(dev, *abs++, adi_get_bits(adi, 8)); in adi_decode()
235 input_report_abs(dev, *abs++, ((t >> 2) & 1) - ( t & 1)); in adi_decode()
236 input_report_abs(dev, *abs++, ((t >> 1) & 1) - ((t >> 3) & 1)); in adi_decode()
243 input_report_abs(dev, *abs++, adi_hat_to_axis[t].x); in adi_decode()
244 input_report_abs(dev, *abs++, adi_hat_to_axis[t].y); in adi_decode()
417 adi->abs = adi_abs[t]; in adi_init_input()
436 set_bit(adi->abs[i], input_dev->absbit); in adi_init_input()
[all …]
Dtmdc.c95 char abs; member
116 const signed char *abs; member
131 signed char *abs[2];
199 if (port->abs[i] < 0) in tmdc_parse_packet()
202 input_report_abs(port->dev, port->abs[i], data[tmdc_byte_a[i]]); in tmdc_parse_packet()
298 port->abs = model->axes; in tmdc_setup_port()
306 port->absc = model->abs; in tmdc_setup_port()
336 if (port->abs[i] >= 0) in tmdc_setup_port()
337 input_set_abs_params(input_dev, port->abs[i], 8, 248, 2, 4); in tmdc_setup_port()
Dguillemot.c60 short *abs; member
135 for (i = 0; i < 6 && guillemot->type->abs[i] >= 0; i++) in guillemot_poll()
136 input_report_abs(dev, guillemot->type->abs[i], data[i + 5]); in guillemot_poll()
240 for (i = 0; (t = guillemot->type->abs[i]) >= 0; i++) in guillemot_connect()
Dxpad.c1074 static void xpad_set_up_abs(struct input_dev *input_dev, signed short abs) in xpad_set_up_abs() argument
1077 set_bit(abs, input_dev->absbit); in xpad_set_up_abs()
1079 switch (abs) { in xpad_set_up_abs()
1084 input_set_abs_params(input_dev, abs, -32768, 32767, 16, 128); in xpad_set_up_abs()
1089 input_set_abs_params(input_dev, abs, 0, 1023, 0, 0); in xpad_set_up_abs()
1091 input_set_abs_params(input_dev, abs, 0, 255, 0, 0); in xpad_set_up_abs()
1095 input_set_abs_params(input_dev, abs, -1, 1, 0, 0); in xpad_set_up_abs()
Dinteract.c75 short *abs; member
271 for (i = 0; (t = interact_type[interact->type].abs[i]) >= 0; i++) { in interact_connect()
/drivers/media/platform/vivid/
Dvivid-radio-rx.c87 abs(dev->radio_rx_sig_qual) > 200) { in vivid_radio_rx_read()
99 perc = abs(dev->radio_rx_sig_qual) / 4; in vivid_radio_rx_read()
258 vt->signal = abs(sig_qual) > delta ? 0 : in vivid_radio_rx_g_tuner()
259 0xffff - (abs(sig_qual) * 0xffff) / delta; in vivid_radio_rx_g_tuner()
261 if (abs(sig_qual) > delta) in vivid_radio_rx_g_tuner()
Dvivid-radio-common.c135 if (abs(sig_qual_tx) <= abs(sig_qual)) { in vivid_radio_calc_sig_qual()
/drivers/gpu/drm/nouveau/core/subdev/clock/
Dnvaa.c219 if (abs(core - out) <= in nvaa_clock_calc()
220 abs(core - (clock >> 1))) { in nvaa_clock_calc()
249 if (abs(shader - out) <= in nvaa_clock_calc()
250 abs(shader - clock) && in nvaa_clock_calc()
264 if(abs(vdec - out) <= in nvaa_clock_calc()
265 abs(vdec - clock)) { in nvaa_clock_calc()
Dpllnv04.c109 delta = abs(calcclk - clk); in getMNP_single()
205 delta = abs(calcclkout - clk); in getMNP_double()
/drivers/input/misc/
Dxen-kbdfront.c111 int ret, i, abs; in xenkbd_probe() local
130 if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-abs-pointer", "%d", &abs) < 0) in xenkbd_probe()
131 abs = 0; in xenkbd_probe()
132 if (abs) in xenkbd_probe()
169 if (abs) { in xenkbd_probe()
/drivers/isdn/mISDN/
Ddsp_ecdis.h81 det->channel_level += ((abs(amp) - det->channel_level) >> 5); in echo_can_disable_detector_update()
82 det->notch_level += ((abs(notched) - det->notch_level) >> 4); in echo_can_disable_detector_update()
/drivers/net/wireless/ath/ath9k/
Dar9003_paprd.c87 delta = abs((int) ah->paprd_target_power - (int) power); in ar9003_get_training_power_2g()
114 delta = abs((int) ah->paprd_target_power - (int) power); in ar9003_get_training_power_5g()
582 tmp_abs = abs(x_tilde[i]); in create_pa_curve()
601 abs_val = abs(B1_tmp[i]); in create_pa_curve()
605 abs_val = abs(B2_tmp[i]); in create_pa_curve()
628 Q_scale_B = find_proper_scale(find_expn(abs(scale_B)), 10); in create_pa_curve()
632 Q_beta = find_proper_scale(find_expn(abs(beta_raw)), 10); in create_pa_curve()
633 Q_alpha = find_proper_scale(find_expn(abs(alpha_raw)), 10); in create_pa_curve()
684 Q_beta = find_proper_scale(find_expn(abs(beta_raw)), 10); in create_pa_curve()
685 Q_alpha = find_proper_scale(find_expn(abs(alpha_raw)), 10); in create_pa_curve()
Dar9003_calib.c601 s32 abs_i = abs(in_re), in ar9003_hw_find_mag_approx()
602 abs_q = abs(in_im), in ar9003_hw_find_mag_approx()
861 if ((abs(mp_coeff[i][0]) < abs(mp_max)) || in ar9003_hw_detect_outlier()
862 (abs(mp_coeff[i][0]) < abs(mp_min))) { in ar9003_hw_detect_outlier()
878 if (abs(mp_max - mp_min) > max_delta) { in ar9003_hw_detect_outlier()
879 if (abs(mp_max - mp_avg) > abs(mp_min - mp_avg)) in ar9003_hw_detect_outlier()
/drivers/video/fbdev/core/
Dmodedb.c714 if (abs(db[i].refresh - refresh) < diff) { in fb_find_mode()
715 diff = abs(db[i].refresh - refresh); in fb_find_mode()
731 tdiff = abs(db[i].xres - xres) + in fb_find_mode()
732 abs(db[i].yres - yres); in fb_find_mode()
928 d = abs(cmode->xres - mode->xres) + in fb_find_nearest_mode()
929 abs(cmode->yres - mode->yres); in fb_find_nearest_mode()
932 diff_refresh = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
935 d = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
/drivers/misc/echo/
Decho.c429 ec->ltxacc += abs(tx) - ec->ltx; in oslec_update()
431 ec->lrxacc += abs(rx) - ec->lrx; in oslec_update()
439 ec->lcleanacc += abs(ec->clean) - ec->lclean; in oslec_update()
446 ec->lclean_bgacc += abs(clean_bg) - ec->lclean_bg; in oslec_update()
597 ec->lbgn_acc += abs(ec->clean) - ec->lbgn; in oslec_update()
/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c140 value = abs(val1) * pow_10(-exp); in convert_to_vtf_format()
141 value += abs(val2) / pow_10(6+exp); in convert_to_vtf_format()
143 value = abs(val1) / pow_10(exp); in convert_to_vtf_format()
300 exp = abs(exp); in adjust_exponent_micro()
/drivers/input/
Djoydev.c60 __s16 abs[ABS_CNT]; member
140 if (event.value == joydev->abs[event.number]) in joydev_event()
142 joydev->abs[event.number] = event.value; in joydev_event()
302 event->value = joydev->abs[event->number]; in joydev_generate_startup_event()
349 data.x = (joydev->abs[0] / 256 + 128) >> joydev->glue.JS_CORR.x; in joydev_0x_read()
350 data.y = (joydev->abs[1] / 256 + 128) >> joydev->glue.JS_CORR.y; in joydev_0x_read()
551 joydev->abs[i] = joydev_correct(val, &joydev->corr[i]); in joydev_ioctl_common()
826 joydev->abs[i] = input_abs_get_val(dev, j); in joydev_connect()
842 joydev->abs[i] = in joydev_connect()
/drivers/media/i2c/
Dsaa6752hs.c577 dist_352 = abs(f->width - 352); in saa6752hs_try_mbus_fmt()
578 dist_480 = abs(f->width - 480); in saa6752hs_try_mbus_fmt()
579 dist_720 = abs(f->width - 720); in saa6752hs_try_mbus_fmt()
588 if (abs(f->height - 576) < abs(f->height - 288)) in saa6752hs_try_mbus_fmt()
/drivers/input/mouse/
Dhgpk.c133 avx = abs(x); in hgpk_discard_decay_hack()
134 avy = abs(y); in hgpk_discard_decay_hack()
228 if (abs(x) > 3 || abs(y) > 3) { in hgpk_spewing_hack()
262 if (abs(priv->x_tally) < 3 && abs(priv->y_tally) < 3) { in hgpk_spewing_hack()
/drivers/net/irda/
Dsh_sir.c306 tmp = abs(rate_err_array[i] - rerr); in sh_sir_set_baudrate()
314 if ((SCLK_BASE / 100) < abs(tmp - SCLK_BASE)) in sh_sir_set_baudrate()
350 tmp = abs(rate_err_array[i] - rerr); in sh_sir_set_baudrate()
358 if ((baudrate / 100) < abs(tmp - baudrate)) in sh_sir_set_baudrate()
/drivers/net/wan/
Dsdla.c526 flp->dlci[i] = abs(flp->dlci[i]); in sdla_activate()
548 flp->dlci[i] = -abs(flp->dlci[i]); in sdla_deactivate()
570 if (abs(flp->dlci[i]) == *(short *)(master->dev_addr)) in sdla_assoc()
642 ret = sdla_cmd(slave, SDLA_READ_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, in sdla_dlci_conf()
645 ret = sdla_cmd(slave, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, in sdla_dlci_conf()
957 dlcis[len++] = abs(flp->dlci[i]); in sdla_close()
1025 data.dlci[len++] = abs(flp->dlci[i]); in sdla_open()
1092 …sdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, &dlp->config, sizeof(struct dlci_… in sdla_open()
/drivers/video/fbdev/geode/
Dvideo_gx.c140 min = abs(pll_table[0].pixclock - info->var.pixclock); in gx_set_dclk_frequency()
142 diff = abs(pll_table[i].pixclock - info->var.pixclock); in gx_set_dclk_frequency()
/drivers/hid/
Dhid-speedlink.c55 if (abs(value) >= 256) in speedlink_event()

12345678