Home
last modified time | relevance | path

Searched refs:max_x (Results 1 – 25 of 26) sorted by relevance

12

/drivers/input/touchscreen/
Dpenmount.c203 int max_x, max_y; in pm_connect() local
235 max_x = max_y = 0x3ff; in pm_connect()
242 max_x = max_y = 0x3ff; in pm_connect()
249 max_x = max_y = 0x7ff; in pm_connect()
257 max_x = max_y = 0x3ff; in pm_connect()
262 input_set_abs_params(pm->dev, ABS_X, 0, max_x, 0, 0); in pm_connect()
268 ABS_MT_POSITION_X, 0, max_x, 0, 0); in pm_connect()
Dektf2127.c230 int max_x, max_y; in ektf2127_probe() local
267 max_x = ektf2127_query_dimension(client, true); in ektf2127_probe()
268 if (max_x < 0) in ektf2127_probe()
269 return max_x; in ektf2127_probe()
275 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in ektf2127_probe()
Dbcm_iproc_tsc.c138 u32 max_x; member
168 .max_x = X_MAX,
250 x = priv->cfg_params.max_x - x; in iproc_touchscreen_interrupt()
407 of_property_read_u32(np, "touchscreen-size-x", &priv->cfg_params.max_x); in iproc_get_tsc_config()
479 input_set_abs_params(idev, ABS_X, X_MIN, priv->cfg_params.max_x, in iproc_ts_probe()
Dof_touchscreen.c117 prop->max_x = input_abs_get_max(input, axis); in touchscreen_parse_properties()
136 *x = prop->max_x - *x; in touchscreen_apply_prop_to_x_y()
Dwdt87xx_i2c.c173 u32 max_x; member
467 param->max_x = MAX_UNIT_AXIS; in wdt87xx_get_sysparam()
980 if (x > param->max_x || y > param->max_y) in wdt87xx_report_contact()
1046 wdt->param.max_x, 0, 0); in wdt87xx_ts_create_input_device()
1053 0, wdt->param.max_x, 0, 0); in wdt87xx_ts_create_input_device()
Dtsc200x-core.c462 unsigned int max_x = MAX_12BIT; in tsc200x_probe() local
494 max_x = pdata->ts_x_max; in tsc200x_probe()
566 input_set_abs_params(input_dev, ABS_X, 0, max_x, fudge_x, 0); in tsc200x_probe()
Dmelfas_mip4.c162 unsigned int max_x; member
298 ts->max_x = get_unaligned_le16(&buf[0]); in mip4_query_device()
301 ts->max_x, ts->max_y); in mip4_query_device()
1119 input_set_abs_params(ts->input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in mip4_flash_fw()
1121 input_set_abs_params(ts->input, ABS_X, 0, ts->max_x, 0, 0); in mip4_flash_fw()
1448 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in mip4_probe()
Dcyttsp4_core.c343 si->si_ofs.max_x = merge_bytes((si->si_ptrs.pcfg->res_xh in cyttsp4_si_get_pcfg_data()
633 si->si_ofs.max_x, si->si_ofs.max_x); in cyttsp4_si_put_log_data()
802 touch->abs[CY_TCH_X] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
807 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
1878 int max_x, max_y, max_p, min, max; in cyttsp4_setup_input_device() local
1888 max_x_tmp = md->si->si_ofs.max_x; in cyttsp4_setup_input_device()
1893 max_x = max_y_tmp - 1; in cyttsp4_setup_input_device()
1896 max_x = max_x_tmp - 1; in cyttsp4_setup_input_device()
1916 max = max_x; in cyttsp4_setup_input_device()
Datmel_mxt_ts.c279 unsigned int max_x; member
779 if (data->max_x < 1024) in mxt_proc_t9_message()
1758 data->max_x = get_unaligned_le16(&range.x); in mxt_read_t9_resolution()
1794 data->max_x = get_unaligned_le16(&range_x); in mxt_read_t100_config()
1908 if (data->max_x == 0) in mxt_initialize_input_device()
1909 data->max_x = 1023; in mxt_initialize_input_device()
1915 swap(data->max_x, data->max_y); in mxt_initialize_input_device()
1917 dev_info(dev, "Touchscreen size X%uY%u\n", data->max_x, data->max_y); in mxt_initialize_input_device()
1936 input_set_abs_params(input_dev, ABS_X, 0, data->max_x, 0, 0); in mxt_initialize_input_device()
1970 0, data->max_x, 0, 0); in mxt_initialize_input_device()
Dcyttsp4_core.h285 size_t max_x; member
/drivers/input/rmi4/
Drmi_2d_sensor.c39 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process()
59 obj->x = min(sensor->max_x, obj->x); in rmi_2d_sensor_abs_process()
148 swap(sensor->max_x, sensor->max_y); in rmi_2d_sensor_set_input_params()
152 sensor->max_x = min(sensor->max_x, in rmi_2d_sensor_set_input_params()
161 input_set_abs_params(input, ABS_MT_POSITION_X, 0, sensor->max_x, in rmi_2d_sensor_set_input_params()
167 res_x = (sensor->max_x - sensor->min_x) / sensor->x_mm; in rmi_2d_sensor_set_input_params()
Drmi_f12.c102 sensor->max_x = (buf[offset + 1] << 8) | buf[offset]; in rmi_f12_read_sensor_tuning()
108 sensor->max_x, sensor->max_y); in rmi_f12_read_sensor_tuning()
118 sensor->axis_align.clip_x_high = sensor->max_x in rmi_f12_read_sensor_tuning()
Drmi_2d_sensor.h54 u16 max_x; member
Drmi_f11.c1163 sensor->max_x = max_x_pos; in rmi_f11_initialize()
/drivers/input/tablet/
Dwacom_serial4.c177 unsigned int max_x, max_y; member
241 wacom->max_x = 5103; in wacom_handle_model_response()
282 r = sscanf(wacom->data, "~C%u,%u", &wacom->max_x, &wacom->max_y); in wacom_handle_coordinates_response()
510 if (!(wacom->max_x && wacom->max_y)) { in wacom_setup()
577 input_set_abs_params(wacom->dev, ABS_X, 0, wacom->max_x, 0, 0); in wacom_connect()
Dhanwang.c86 int max_x; member
401 0, hanwang->features->max_x, 4, 0); in hanwang_probe()
/drivers/input/mouse/
Delan_i2c_core.c74 unsigned int max_x; member
355 error = data->ops->get_max(data->client, &data->max_x, &data->max_y); in elan_query_device_parameters()
363 data->width_x = data->max_x / x_traces; in elan_query_device_parameters()
856 if (pos_x > data->max_x || pos_y > data->max_y) { in elan_report_contact()
860 data->max_x, data->max_y); in elan_report_contact()
984 input_set_abs_params(input, ABS_X, 0, data->max_x, 0, 0); in elan_setup_input_device()
993 input_set_abs_params(input, ABS_MT_POSITION_X, 0, data->max_x, 0, 0); in elan_setup_input_device()
1118 data->max_x, data->max_y, in elan_probe()
Delan_i2c.h66 unsigned int *max_x, unsigned int *max_y);
Delan_i2c_smbus.c223 unsigned int *max_x, unsigned int *max_y) in elan_smbus_get_max() argument
236 *max_x = (0x0f & val[0]) << 8 | val[1]; in elan_smbus_get_max()
Delan_i2c_i2c.c315 unsigned int *max_x, unsigned int *max_y) in elan_i2c_get_max() argument
326 *max_x = le16_to_cpup((__le16 *)val) & 0x0fff; in elan_i2c_get_max()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fb.c177 u32 cpp, max_x, max_y; in vmw_fb_dirty_flush() local
201 max_x = par->fb_x + cur_fb->width; in vmw_fb_dirty_flush()
211 dst_x2 = min_t(s32, dst_x2, max_x); in vmw_fb_dirty_flush()
/drivers/hid/
Dhid-rmi.c123 unsigned int max_x; member
1065 data->max_x = data->f11_ctrl_regs[6] | (data->f11_ctrl_regs[7] << 8); in rmi_populate_f11()
1232 input_set_abs_params(input, ABS_MT_POSITION_X, 1, data->max_x, 0, 0); in rmi_input_configured()
1236 res_x = (data->max_x - 1) / data->x_size_mm; in rmi_input_configured()
/drivers/video/fbdev/core/
Dmodedb.c1210 if (specs->max_x && specs->max_y) { in fb_find_best_display()
1214 var.xres = (specs->max_x * 7200)/254; in fb_find_best_display()
Dfbmon.c836 specs->max_x = block[1]; in get_monspecs()
839 if (specs->max_x) in get_monspecs()
840 DPRINTK("%d\n", specs->max_x); in get_monspecs()
/drivers/media/i2c/
Ds5k6aa.c1198 unsigned int max_x, max_y; in s5k6aa_set_selection() local
1218 max_x = (S5K6AA_WIN_WIDTH_MAX - sel->r.width) & ~1; in s5k6aa_set_selection()
1221 sel->r.left = clamp_t(unsigned int, sel->r.left, 0, max_x); in s5k6aa_set_selection()

12