Home
last modified time | relevance | path

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

12

/linux/drivers/input/touchscreen/
H A Dpenmount.c199 int max_x, max_y; in pm_connect() local
231 max_x = max_y = 0x3ff; in pm_connect()
238 max_x = max_y = 0x3ff; in pm_connect()
245 max_x = max_y = 0x7ff; in pm_connect()
253 max_x = max_y = 0x3ff; in pm_connect()
258 input_set_abs_params(pm->dev, ABS_X, 0, max_x, 0, 0); in pm_connect()
264 ABS_MT_POSITION_X, 0, max_x, 0, 0); in pm_connect()
H A Dst1232.c113 static int st1232_ts_read_resolution(struct st1232_ts_data *ts, u16 *max_x, in st1232_ts_read_resolution() argument
126 *max_x = (((buf[0] & 0x0070) << 4) | buf[1]) - 1; in st1232_ts_read_resolution()
236 u16 max_x, max_y; in st1232_ts_probe() local
315 &max_x, &max_y); in st1232_ts_probe()
318 error = st1232_ts_read_resolution(ts, &max_x, &max_y); in st1232_ts_probe()
327 0, max_x, 0, 0); in st1232_ts_probe()
H A Dektf2127.c260 int max_x, max_y; in ektf2127_probe() local
293 max_x = ektf2127_query_dimension(client, true); in ektf2127_probe()
294 if (max_x < 0) in ektf2127_probe()
295 return max_x; in ektf2127_probe()
301 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in ektf2127_probe()
H A Ds6sy761.c339 unsigned int *max_x, unsigned int *max_y) in s6sy761_hw_init() argument
364 *max_x = get_unaligned_be16(buffer); in s6sy761_hw_init()
392 unsigned int max_x, max_y; in s6sy761_probe() local
419 err = s6sy761_hw_init(sdata, &max_x, &max_y); in s6sy761_probe()
432 input_set_abs_params(sdata->input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in s6sy761_probe()
H A Dbcm_iproc_tsc.c131 u32 max_x; member
161 .max_x = X_MAX,
243 x = priv->cfg_params.max_x - x; in iproc_touchscreen_interrupt()
400 of_property_read_u32(np, "touchscreen-size-x", &priv->cfg_params.max_x); in iproc_get_tsc_config()
472 input_set_abs_params(idev, ABS_X, X_MIN, priv->cfg_params.max_x, in iproc_ts_probe()
H A Diqs5xx.c490 u16 max_x, max_y; in iqs5xx_axis_init() local
507 error = iqs5xx_read_word(client, IQS5XX_X_RES, &max_x); in iqs5xx_axis_init()
515 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in iqs5xx_axis_init()
525 if (prop->max_x >= U16_MAX || prop->max_y >= U16_MAX) { in iqs5xx_axis_init()
527 prop->max_x, prop->max_y); in iqs5xx_axis_init()
531 if (prop->max_x != max_x) { in iqs5xx_axis_init()
532 error = iqs5xx_write_word(client, IQS5XX_X_RES, prop->max_x); in iqs5xx_axis_init()
H A Dzet6223.c30 u16 max_x; member
162 ts->max_x = get_unaligned_le16(&buf[8]); in zet6223_query_device()
205 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in zet6223_probe()
H A Dhynitron_cstxxx.c382 if (!ts_data->prop.max_x || !ts_data->prop.max_y) { in cst3xx_input_dev_int()
385 ts_data->prop.max_x, ts_data->prop.max_y); in cst3xx_input_dev_int()
386 ts_data->prop.max_x = 1152; in cst3xx_input_dev_int()
389 ABS_MT_POSITION_X, ts_data->prop.max_x); in cst3xx_input_dev_int()
H A Dmms114.c354 val = (props->max_x >> 8) & 0xf; in mms114_setup_regs()
360 val = props->max_x & 0xff; in mms114_setup_regs()
365 val = props->max_x & 0xff; in mms114_setup_regs()
454 if (device_property_read_u32(dev, "x-size", &props->max_x)) { in mms114_parse_legacy_bindings()
552 if (!data->props.max_x || !data->props.max_y) { in mms114_probe()
560 0, data->props.max_x, 0, 0); in mms114_probe()
H A Dbu21013_ts.c412 u32 max_x = 0, max_y = 0; in bu21013_probe() local
448 device_property_read_u32(dev, "rohm,touch-max-x", &max_x); in bu21013_probe()
451 input_set_abs_params(in_dev, ABS_MT_POSITION_X, 0, max_x, 0, 0); in bu21013_probe()
H A Dwdt87xx_i2c.c172 u32 max_x; member
466 param->max_x = MAX_UNIT_AXIS; in wdt87xx_get_sysparam()
976 if (x > param->max_x || y > param->max_y) in wdt87xx_report_contact()
1042 wdt->param.max_x, 0, 0); in wdt87xx_ts_create_input_device()
1049 0, wdt->param.max_x, 0, 0); in wdt87xx_ts_create_input_device()
H A Dmelfas_mip4.c158 unsigned int max_x; member
322 ts->max_x = get_unaligned_le16(&buf[0]); in mip4_query_device()
325 ts->max_x, ts->max_y); in mip4_query_device()
1143 input_set_abs_params(ts->input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in mip4_flash_fw()
1145 input_set_abs_params(ts->input, ABS_X, 0, ts->max_x, 0, 0); in mip4_flash_fw()
1479 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in mip4_probe()
H A Dzforce_ts.c248 error = zforce_resolution(ts, ts->prop.max_x, ts->prop.max_y); in zforce_start()
326 if (point.coord_x > ts->prop.max_x || in zforce_touch_event()
764 if (ts->prop.max_x == 0 || ts->prop.max_y == 0) in zforce_probe()
H A Diqs7211.c1175 __le16 max_x; member
2170 0, le16_to_cpu(iqs7211->tp_config.max_x), 0, 0); in iqs7211_register_tp()
2183 if (prop->max_x >= U16_MAX || prop->max_y >= U16_MAX) { in iqs7211_register_tp()
2185 prop->max_x, prop->max_y); in iqs7211_register_tp()
2189 iqs7211->tp_config.max_x = cpu_to_le16(prop->max_x); in iqs7211_register_tp()
/linux/tools/lib/perf/include/internal/
H A Dxyarray.h12 size_t max_x; member
28 if (x >= xy->max_x || y >= xy->max_y) in xyarray__entry()
40 return xy->max_x; in xyarray__max_x()
/linux/drivers/input/tablet/
H A Dwacom_serial4.c172 unsigned int max_x, max_y; member
237 wacom->max_x = 5103; in wacom_handle_model_response()
279 r = sscanf(wacom->data, "~C%u,%u", &wacom->max_x, &wacom->max_y); in wacom_handle_coordinates_response()
507 if (!(wacom->max_x && wacom->max_y)) { in wacom_setup()
574 input_set_abs_params(wacom->dev, ABS_X, 0, wacom->max_x, 0, 0); in wacom_connect()
H A Dhanwang.c65 int max_x; member
380 0, hanwang->features->max_x, 4, 0); in hanwang_probe()
/linux/drivers/hid/
H A Dhid-asus.c113 int max_x; member
141 .max_x = 2794,
149 .max_x = 2240,
159 .max_x = 2640,
169 .max_x = 3120,
179 .max_x = 2640,
189 .max_x = 2640,
898 drvdata->tp->max_x, 0, 0); in asus_input_configured()
H A Dhid-elan.c45 u16 max_x; member
132 drvdata->max_x = (dmabuf[4] << 8) | dmabuf[3]; in elan_get_device_params()
178 input_set_abs_params(input, ABS_MT_POSITION_X, 0, drvdata->max_x, in elan_input_configured()
/linux/include/linux/input/
H A Dtouchscreen.h13 unsigned int max_x; member
/linux/tools/lib/perf/
H A Dxyarray.c16 xy->max_x = xlen; in xyarray__new()
/linux/drivers/input/rmi4/
H A Drmi_f12.c103 sensor->max_x = (buf[offset + 1] << 8) | buf[offset]; in rmi_f12_read_sensor_tuning()
109 sensor->max_x, sensor->max_y); in rmi_f12_read_sensor_tuning()
144 sensor->x_mm = sensor->max_x / dpm_resolution; in rmi_f12_read_sensor_tuning()
/linux/drivers/input/mouse/
H A Delan_i2c.h92 unsigned int *max_x, unsigned int *max_y);
H A Delan_i2c_smbus.c226 unsigned int *max_x, unsigned int *max_y) in elan_smbus_get_max() argument
239 *max_x = (0x0f & val[0]) << 8 | val[1]; in elan_smbus_get_max()
/linux/samples/vfio-mdev/
H A Dmbochs.c106 u32 max_x; member
113 .max_x = 800,
119 .max_x = 1920,
125 .max_x = 0,
548 mdev_state->edid_regs.max_xres = type->max_x; in mbochs_init_dev()

12