| /drivers/virtio/ |
| A D | virtio_input.c | 172 static void virtinput_cfg_abs(struct virtio_input *vi, int abs) in virtinput_cfg_abs() argument 176 virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ABS_INFO, abs); in virtinput_cfg_abs() 177 virtio_cread_le(vi->vdev, struct virtio_input_config, u.abs.min, &mi); in virtinput_cfg_abs() 178 virtio_cread_le(vi->vdev, struct virtio_input_config, u.abs.max, &ma); in virtinput_cfg_abs() 179 virtio_cread_le(vi->vdev, struct virtio_input_config, u.abs.res, &re); in virtinput_cfg_abs() 182 input_set_abs_params(vi->idev, abs, mi, ma, fu, fl); in virtinput_cfg_abs() 183 input_abs_set_res(vi->idev, abs, re); in virtinput_cfg_abs() 224 int abs, err, nslots; in virtinput_probe() local 304 for (abs = 0; abs < ABS_CNT; abs++) { in virtinput_probe() 305 if (!test_bit(abs, vi->idev->absbit)) in virtinput_probe() [all …]
|
| /drivers/input/touchscreen/ |
| A D | cyttsp5.c | 166 int abs[CY_TCH_NUM_ABS]; member 281 enum cyttsp5_tch_abs abs; in cyttsp5_get_touch_record() local 283 for (abs = CY_TCH_X; abs < CY_TCH_NUM_ABS; abs++) in cyttsp5_get_touch_record() 284 cyttsp5_get_touch_axis(&touch->abs[abs], in cyttsp5_get_touch_record() 286 si->tch_abs[abs].max, in cyttsp5_get_touch_record() 301 memset(tch->abs, 0, sizeof(tch->abs)); in cyttsp5_get_mt_touches() 322 t = tch->abs[CY_TCH_T]; in cyttsp5_get_mt_touches() 329 tch->abs[CY_TCH_X], tch->abs[CY_TCH_Y], in cyttsp5_get_mt_touches() 332 tch->abs[CY_TCH_P]); in cyttsp5_get_mt_touches() 336 tch->abs[CY_TCH_MAJ]); in cyttsp5_get_mt_touches() [all …]
|
| A D | auo-pixcir-ts.c | 191 int abs = -1; in auo_pixcir_interrupt() local 232 abs = i; in auo_pixcir_interrupt() 243 if (abs > -1) { in auo_pixcir_interrupt() 244 input_report_abs(ts->input, ABS_X, point[abs].coord_x); in auo_pixcir_interrupt() 245 input_report_abs(ts->input, ABS_Y, point[abs].coord_y); in auo_pixcir_interrupt()
|
| /drivers/input/joystick/ |
| A D | adi.c | 100 char *abs; member 200 char *abs = adi->abs; in adi_decode() local 208 input_report_abs(dev, *abs++, adi_get_bits(adi, 10)); in adi_decode() 211 input_report_abs(dev, *abs++, adi_get_bits(adi, 8)); in adi_decode() 216 input_report_abs(dev, *abs++, ((t >> 2) & 1) - ( t & 1)); in adi_decode() 217 input_report_abs(dev, *abs++, ((t >> 1) & 1) - ((t >> 3) & 1)); in adi_decode() 224 input_report_abs(dev, *abs++, adi_hat_to_axis[t].x); in adi_decode() 225 input_report_abs(dev, *abs++, adi_hat_to_axis[t].y); in adi_decode() 398 adi->abs = adi_abs[t]; in adi_init_input() 417 set_bit(adi->abs[i], input_dev->absbit); in adi_init_input() [all …]
|
| A D | tmdc.c | 76 char abs; member 97 const signed char *abs; member 112 signed char *abs[2]; 180 if (port->abs[i] < 0) in tmdc_parse_packet() 183 input_report_abs(port->dev, port->abs[i], data[tmdc_byte_a[i]]); in tmdc_parse_packet() 279 port->abs = model->axes; in tmdc_setup_port() 287 port->absc = model->abs; in tmdc_setup_port() 317 if (port->abs[i] >= 0) in tmdc_setup_port() 318 input_set_abs_params(input_dev, port->abs[i], 8, 248, 2, 4); in tmdc_setup_port()
|
| A D | guillemot.c | 41 short *abs; member 116 for (i = 0; i < 6 && guillemot->type->abs[i] >= 0; i++) in guillemot_poll() 117 input_report_abs(dev, guillemot->type->abs[i], data[i + 5]); in guillemot_poll() 221 for (i = 0; (t = guillemot->type->abs[i]) >= 0; i++) in guillemot_connect()
|
| /drivers/media/test-drivers/vivid/ |
| A D | vivid-radio-rx.c | 76 abs(dev->radio_rx_sig_qual) > 200) { in vivid_radio_rx_read() 88 perc = abs(dev->radio_rx_sig_qual) / 4; in vivid_radio_rx_read() 249 vt->signal = abs(sig_qual) > delta ? 0 : in vivid_radio_rx_g_tuner() 250 0xffff - ((unsigned)abs(sig_qual) * 0xffff) / delta; in vivid_radio_rx_g_tuner() 252 if (abs(sig_qual) > delta) in vivid_radio_rx_g_tuner()
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| A D | mcp77.c | 218 if (abs(core - out) <= abs(core - (clock >> 1))) { in mcp77_clk_calc() 246 if (abs(shader - out) <= in mcp77_clk_calc() 247 abs(shader - clock) && in mcp77_clk_calc() 261 if(abs(vdec - out) <= abs(vdec - clock)) { in mcp77_clk_calc()
|
| /drivers/iio/afe/ |
| A D | iio-rescale.c | 86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale() 87 *val = div_s64_rem(tmp, abs(rescale->denominator), &rem); in rescale_process_scale() 89 tmp = (s64)rem * mult + (s64)abs(*val2) * abs(rescale->numerator); in rescale_process_scale() 90 tmp = div_s64(tmp, abs(rescale->denominator)); in rescale_process_scale()
|
| /drivers/net/wireless/ath/ath9k/ |
| A D | ar9003_paprd.c | 87 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()
|
| /drivers/usb/chipidea/ |
| A D | ci.h | 158 void __iomem *abs; member 350 return ioread32(ci->hw_bank.abs + offset) & mask; in hw_read_id_reg() 364 data = (ioread32(ci->hw_bank.abs + offset) & ~mask) in hw_write_id_reg() 367 iowrite32(data, ci->hw_bank.abs + offset); in hw_write_id_reg()
|
| /drivers/isdn/mISDN/ |
| A D | dsp_ecdis.h | 67 det->channel_level += ((abs(amp) - det->channel_level) >> 5); in echo_can_disable_detector_update() 68 det->notch_level += ((abs(notched) - det->notch_level) >> 4); in echo_can_disable_detector_update()
|
| /drivers/thermal/ |
| A D | k3_bandgap.c | 95 int d01 = abs(s0 - s1); in vtm_get_best_value() 96 int d02 = abs(s0 - s2); in vtm_get_best_value() 97 int d12 = abs(s1 - s2); in vtm_get_best_value()
|
| /drivers/video/fbdev/core/ |
| A D | modedb.c | 788 int score = abs(db[i].refresh - refresh); in fb_find_mode() 791 score += abs(db_interlace - interlace); in fb_find_mode() 816 tdiff = abs(db[i].xres - xres) + in fb_find_mode() 817 abs(db[i].yres - yres); in fb_find_mode() 1010 d = abs(cmode->xres - mode->xres) + in fb_find_nearest_mode() 1011 abs(cmode->yres - mode->yres); in fb_find_nearest_mode() 1014 diff_refresh = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode() 1017 d = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
|
| /drivers/net/ethernet/qlogic/qed/ |
| A D | qed_l2.c | 227 p_cid->abs = p_cid->rel; in _qed_eth_queue_to_cid() 248 &p_cid->abs.stats_id); in _qed_eth_queue_to_cid() 252 p_cid->abs.stats_id = p_cid->rel.stats_id; in _qed_eth_queue_to_cid() 272 p_cid->abs.vport_id, in _qed_eth_queue_to_cid() 275 p_cid->abs.queue_id, in _qed_eth_queue_to_cid() 501 cpu_to_le16(p_queue->abs.queue_id); in qed_sp_vport_update_rss() 853 p_cid->abs.queue_id, p_cid->abs.vport_id, p_cid->sb_igu_id); in qed_eth_rxq_start_ramrod() 871 p_ramrod->vport_id = p_cid->abs.vport_id; in qed_eth_rxq_start_ramrod() 996 p_ramrod->vport_id = p_cid->abs.vport_id; in qed_sp_eth_rx_queues_update() 1032 p_ramrod->vport_id = p_cid->abs.vport_id; in qed_eth_pf_rx_queue_stop() [all …]
|
| /drivers/input/misc/ |
| A D | xen-kbdfront.c | 274 unsigned int abs; in xenkbd_probe() local 277 abs = xenbus_read_unsigned(dev->otherend, in xenkbd_probe() 285 if (abs) { in xenkbd_probe() 290 abs = 0; in xenkbd_probe() 303 if (abs) { in xenkbd_probe()
|
| /drivers/phy/freescale/ |
| A D | phy-fsl-samsung-hdmi.c | 429 delta = abs(fout - tmp); in fsl_samsung_hdmi_phy_find_pms() 518 return (abs((long) rate - (long) phy_pll_cfg[i].pixclk) < in fsl_samsung_hdmi_phy_lookup_rate() 519 abs((long) rate - (long) phy_pll_cfg[i+1].pixclk) ? in fsl_samsung_hdmi_phy_lookup_rate() 562 if (abs((long)rate - (long)int_div_clk) < in fsl_samsung_hdmi_phy_find_settings() 563 abs((long)rate - (long)fract_div_phy->pixclk)) { in fsl_samsung_hdmi_phy_find_settings()
|
| /drivers/media/i2c/ |
| A D | saa6752hs.c | 578 dist_352 = abs(f->width - 352); in saa6752hs_set_fmt() 579 dist_480 = abs(f->width - 480); in saa6752hs_set_fmt() 580 dist_720 = abs(f->width - 720); in saa6752hs_set_fmt() 589 if (abs(f->height - 576) < abs(f->height - 288)) in saa6752hs_set_fmt()
|
| /drivers/iio/humidity/ |
| A D | hdc3020.c | 526 s_hyst = div_s64(abs(s_thresh - s_clr), 65535); in hdc3020_write_thresh() 543 s_val = min(abs(s_val), HDC3020_MAX_TEMP_HYST_MICRO); in hdc3020_write_thresh() 568 s_hyst = div_s64(abs(s_thresh - s_clr), 65535); in hdc3020_write_thresh() 572 s_val = min(abs(s_hyst), HDC3020_MAX_HUM_MICRO); in hdc3020_write_thresh() 641 *val = abs(thresh - clr); in hdc3020_read_thresh() 660 *val = abs(thresh - clr); in hdc3020_read_thresh()
|
| /drivers/media/pci/mgb4/ |
| A D | mgb4_cmt.c | 189 return (abs(key - array[l]) < abs(key - array[r])) ? l : r; in freq_srch()
|
| /drivers/net/ethernet/freescale/dpaa/ |
| A D | dpaa_eth_sysfs.c | 66 if (prev && (abs(fq->fqid - prev->fqid) != 1 || in dpaa_eth_show_fqids() 77 if (prev && abs(fq->fqid - prev->fqid) == 1 && in dpaa_eth_show_fqids()
|
| /drivers/ptp/ |
| A D | ptp_dte.c | 37 #define DTE_PPB_ADJ(ppb) (u32)(div64_u64((((u64)abs(ppb) * BIT(28)) +\ 94 if ((delta < 0) && (abs(delta) > ns)) { in dte_write_nco_delta() 144 if (abs(ppb) > ptp_dte->caps.max_adj) { in ptp_dte_adjfine()
|
| /drivers/clk/ |
| A D | clk-sparx5.c | 95 cur_offset = abs(rate - conf->freq); in s5_search_fractional() 129 if (abs(rate - alt1.freq) < in s5_calc_params() 130 abs(rate - alt2.freq)) in s5_calc_params()
|
| /drivers/hid/ |
| A D | hid-sony.c | 592 unsigned int abs = usage->hid & HID_USAGE; in guitar_mapping() local 594 if (abs == GUITAR_TILT_USAGE) { in guitar_mapping() 683 unsigned int abs = usage->hid & HID_USAGE; in navigation_mapping() local 685 if (abs >= ARRAY_SIZE(navigation_absmap)) in navigation_mapping() 688 abs = navigation_absmap[abs]; in navigation_mapping() 690 hid_map_usage_clear(hi, usage, bit, max, EV_ABS, abs); in navigation_mapping() 732 unsigned int abs = usage->hid & HID_USAGE; in sixaxis_mapping() local 734 if (abs >= ARRAY_SIZE(sixaxis_absmap)) in sixaxis_mapping() 737 abs = sixaxis_absmap[abs]; in sixaxis_mapping() 739 hid_map_usage_clear(hi, usage, bit, max, EV_ABS, abs); in sixaxis_mapping()
|
| /drivers/gpu/drm/sun4i/ |
| A D | sun4i_hdmi_ddc_clk.c | 46 if (abs(rate - tmp_rate) < abs(rate - best_rate)) { in sun4i_ddc_calc_divider()
|