/drivers/input/joystick/ |
D | adi.c | 120 char *abs; member 220 char *abs = adi->abs; in adi_decode() local 228 input_report_abs(dev, *abs++, adi_get_bits(adi, 10)); in adi_decode() 231 input_report_abs(dev, *abs++, adi_get_bits(adi, 8)); in adi_decode() 236 input_report_abs(dev, *abs++, ((t >> 2) & 1) - ( t & 1)); in adi_decode() 237 input_report_abs(dev, *abs++, ((t >> 1) & 1) - ((t >> 3) & 1)); in adi_decode() 244 input_report_abs(dev, *abs++, adi_hat_to_axis[t].x); in adi_decode() 245 input_report_abs(dev, *abs++, adi_hat_to_axis[t].y); in adi_decode() 418 adi->abs = adi_abs[t]; in adi_init_input() 437 set_bit(adi->abs[i], input_dev->absbit); in adi_init_input() [all …]
|
D | tmdc.c | 96 char abs; member 117 const signed char *abs; member 132 signed char *abs[2]; 200 if (port->abs[i] < 0) in tmdc_parse_packet() 203 input_report_abs(port->dev, port->abs[i], data[tmdc_byte_a[i]]); in tmdc_parse_packet() 299 port->abs = model->axes; in tmdc_setup_port() 307 port->absc = model->abs; in tmdc_setup_port() 337 if (port->abs[i] >= 0) in tmdc_setup_port() 338 input_set_abs_params(input_dev, port->abs[i], 8, 248, 2, 4); in tmdc_setup_port()
|
D | guillemot.c | 61 short *abs; member 136 for (i = 0; i < 6 && guillemot->type->abs[i] >= 0; i++) in guillemot_poll() 137 input_report_abs(dev, guillemot->type->abs[i], data[i + 5]); in guillemot_poll() 241 for (i = 0; (t = guillemot->type->abs[i]) >= 0; i++) in guillemot_connect()
|
D | xpad.c | 794 static void xpad_set_up_abs(struct input_dev *input_dev, signed short abs) in xpad_set_up_abs() argument 796 set_bit(abs, input_dev->absbit); in xpad_set_up_abs() 798 switch (abs) { in xpad_set_up_abs() 803 input_set_abs_params(input_dev, abs, -32768, 32767, 16, 128); in xpad_set_up_abs() 807 input_set_abs_params(input_dev, abs, 0, 255, 0, 0); in xpad_set_up_abs() 811 input_set_abs_params(input_dev, abs, -1, 1, 0, 0); in xpad_set_up_abs()
|
D | interact.c | 76 short *abs; member 272 for (i = 0; (t = interact_type[interact->type].abs[i]) >= 0; i++) { in interact_connect()
|
D | walkera0701.c | 157 if (abs(pulse_time - SYNC_PULSE) < RESERVE) /* new frame sync */ in walkera0701_irq_handler() 168 } else if (abs(pulse_time - SYNC_PULSE - BIN0_PULSE) < in walkera0701_irq_handler()
|
/drivers/input/misc/ |
D | xen-kbdfront.c | 110 int ret, i, abs; in xenkbd_probe() local 129 if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-abs-pointer", "%d", &abs) < 0) in xenkbd_probe() 130 abs = 0; in xenkbd_probe() 131 if (abs) in xenkbd_probe() 168 if (abs) { in xenkbd_probe()
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9003_paprd.c | 80 delta = abs((int) ah->paprd_target_power - (int) power); in ar9003_get_training_power_2g() 106 delta = abs((int) ah->paprd_target_power - (int) power); in ar9003_get_training_power_5g() 545 tmp_abs = abs(x_tilde[i]); in create_pa_curve() 564 abs_val = abs(B1_tmp[i]); in create_pa_curve() 568 abs_val = abs(B2_tmp[i]); in create_pa_curve() 591 Q_scale_B = find_proper_scale(find_expn(abs(scale_B)), 10); in create_pa_curve() 595 Q_beta = find_proper_scale(find_expn(abs(beta_raw)), 10); in create_pa_curve() 596 Q_alpha = find_proper_scale(find_expn(abs(alpha_raw)), 10); in create_pa_curve() 647 Q_beta = find_proper_scale(find_expn(abs(beta_raw)), 10); in create_pa_curve() 648 Q_alpha = find_proper_scale(find_expn(abs(alpha_raw)), 10); in create_pa_curve()
|
D | ar9003_calib.c | 379 s32 abs_i = abs(in_re), in ar9003_hw_find_mag_approx() 380 abs_q = abs(in_im), in ar9003_hw_find_mag_approx() 628 if ((abs(mp_coeff[i]) < abs(mp_max)) || in ar9003_hw_detect_outlier() 629 (abs(mp_coeff[i]) < abs(mp_min))) { in ar9003_hw_detect_outlier() 645 if (abs(mp_max - mp_min) > max_delta) { in ar9003_hw_detect_outlier() 646 if (abs(mp_max - mp_avg) > abs(mp_min - mp_avg)) in ar9003_hw_detect_outlier()
|
/drivers/staging/echo/ |
D | echo.c | 415 ec->Ltxacc += abs(tx) - ec->Ltx; in oslec_update() 417 ec->Lrxacc += abs(rx) - ec->Lrx; in oslec_update() 425 ec->Lcleanacc += abs(ec->clean) - ec->Lclean; in oslec_update() 432 ec->Lclean_bgacc += abs(clean_bg) - ec->Lclean_bg; in oslec_update() 583 ec->Lbgn_acc += abs(ec->clean) - ec->Lbgn; in oslec_update()
|
/drivers/isdn/mISDN/ |
D | dsp_ecdis.h | 81 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/video/ |
D | modedb.c | 717 if (abs(db[i].refresh - refresh) < diff) { in fb_find_mode() 718 diff = abs(db[i].refresh - refresh); in fb_find_mode() 734 tdiff = abs(db[i].xres - xres) + in fb_find_mode() 735 abs(db[i].yres - yres); in fb_find_mode() 931 d = abs(cmode->xres - mode->xres) + in fb_find_nearest_mode() 932 abs(cmode->yres - mode->yres); in fb_find_nearest_mode() 935 diff_refresh = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode() 938 d = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
|
/drivers/input/ |
D | joydev.c | 59 __s16 abs[ABS_CNT]; member 142 if (event.value == joydev->abs[event.number]) in joydev_event() 144 joydev->abs[event.number] = event.value; in joydev_event() 323 event->value = joydev->abs[event->number]; in joydev_generate_startup_event() 370 data.x = (joydev->abs[0] / 256 + 128) >> joydev->glue.JS_CORR.x; in joydev_0x_read() 371 data.y = (joydev->abs[1] / 256 + 128) >> joydev->glue.JS_CORR.y; in joydev_0x_read() 572 joydev->abs[i] = joydev_correct(val, &joydev->corr[i]); in joydev_ioctl_common() 856 joydev->abs[i] = input_abs_get_val(dev, j); in joydev_connect() 872 joydev->abs[i] = in joydev_connect()
|
D | evdev.c | 725 struct input_absinfo abs; in evdev_do_ioctl() local 874 abs = dev->absinfo[t]; in evdev_do_ioctl() 876 if (copy_to_user(p, &abs, min_t(size_t, in evdev_do_ioctl() 893 if (copy_from_user(&abs, p, min_t(size_t, in evdev_do_ioctl() 898 abs.resolution = 0; in evdev_do_ioctl() 910 dev->absinfo[t] = abs; in evdev_do_ioctl()
|
/drivers/input/touchscreen/ |
D | auo-pixcir-ts.c | 187 int abs = -1; in auo_pixcir_interrupt() local 228 abs = i; in auo_pixcir_interrupt() 239 if (abs > -1) { in auo_pixcir_interrupt() 240 input_report_abs(ts->input, ABS_X, point[abs].coord_x); in auo_pixcir_interrupt() 241 input_report_abs(ts->input, ABS_Y, point[abs].coord_y); in auo_pixcir_interrupt()
|
/drivers/input/mouse/ |
D | hgpk.c | 133 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/media/video/saa7134/ |
D | saa6752hs.c | 882 dist_352 = abs(f->width - 352); in saa6752hs_s_mbus_fmt() 883 dist_480 = abs(f->width - 480); in saa6752hs_s_mbus_fmt() 884 dist_720 = abs(f->width - 720); in saa6752hs_s_mbus_fmt() 895 if (abs(f->height - 576) < in saa6752hs_s_mbus_fmt() 896 abs(f->height - 288)) { in saa6752hs_s_mbus_fmt()
|
/drivers/net/irda/ |
D | sh_sir.c | 310 tmp = abs(rate_err_array[i] - rerr); in sh_sir_set_baudrate() 318 if ((SCLK_BASE / 100) < abs(tmp - SCLK_BASE)) in sh_sir_set_baudrate() 354 tmp = abs(rate_err_array[i] - rerr); in sh_sir_set_baudrate() 362 if ((baudrate / 100) < abs(tmp - baudrate)) in sh_sir_set_baudrate()
|
/drivers/video/geode/ |
D | video_gx.c | 140 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/media/radio/ |
D | radio-sf16fmr2.c | 163 tc9154a_set_attenuation(fmr2, abs(left - 68), TC9154A_CHANNEL_LEFT); in fmr2_s_ctrl() 164 tc9154a_set_attenuation(fmr2, abs(right - 68), TC9154A_CHANNEL_RIGHT); in fmr2_s_ctrl()
|
/drivers/net/wan/ |
D | sdla.c | 526 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/riva/ |
D | riva_hw.c | 383 if (abs(ainfo->gburst_size) + ((abs(ainfo->wcglwm) + 16 ) & ~0x7) - tmp > max_gfsize) in nv3_iterate() 390 if (abs(ainfo->vburst_size) + (abs(ainfo->wcvlwm + 32) & ~0xf) - tmp> VFIFO_SIZE) in nv3_iterate() 395 if (abs(ainfo->gocc) > max_gfsize) in nv3_iterate() 400 if (abs(ainfo->vocc) > VFIFO_SIZE) in nv3_iterate() 405 if (abs(ainfo->mocc) > MFIFO_SIZE) in nv3_iterate() 410 if (abs(vfsize) > VFIFO_SIZE) in nv3_iterate() 415 if (abs(gfsize) > max_gfsize) in nv3_iterate() 420 if (abs(mfsize) > MFIFO_SIZE) in nv3_iterate() 500 res_info->graphics_lwm = (int)abs(ainfo->wcglwm) + 16; in nv3_arb() 501 res_info->video_lwm = (int)abs(ainfo->wcvlwm) + 32; in nv3_arb()
|
/drivers/hid/ |
D | hid-speedlink.c | 57 if (abs(value) >= 256) in speedlink_event()
|
/drivers/media/video/ |
D | ov772x.c | 692 diff = abs(width - ov772x_win_qvga.width) + in ov772x_select_win() 693 abs(height - ov772x_win_qvga.height); in ov772x_select_win() 698 abs(width - ov772x_win_vga.width) + in ov772x_select_win() 699 abs(height - ov772x_win_vga.height)) in ov772x_select_win()
|
/drivers/cpufreq/ |
D | gx-suspmod.c | 238 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) { in gx_validate_speed()
|