Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/input/rmi4/
Drmi_2d_sensor.c33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process()
56 obj->x = min(sensor->max_x, obj->x); in rmi_2d_sensor_abs_process()
141 int max_x, max_y; in rmi_2d_sensor_set_input_params() local
147 sensor->max_x = min(sensor->max_x, in rmi_2d_sensor_set_input_params()
157 max_x = sensor->max_x; in rmi_2d_sensor_set_input_params()
160 swap(max_x, max_y); in rmi_2d_sensor_set_input_params()
161 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in rmi_2d_sensor_set_input_params()
165 res_x = (sensor->max_x - sensor->min_x) / sensor->x_mm; in rmi_2d_sensor_set_input_params()
Drmi_2d_sensor.h51 u16 max_x; member
/linux-6.1.9/tools/lib/perf/include/internal/
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-6.1.9/drivers/input/touchscreen/
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()
Dst1232.c111 static int st1232_ts_read_resolution(struct st1232_ts_data *ts, u16 *max_x, in st1232_ts_read_resolution() argument
124 *max_x = (((buf[0] & 0x0070) << 4) | buf[1]) - 1; in st1232_ts_read_resolution()
229 u16 max_x, max_y; in st1232_ts_probe() local
296 error = st1232_ts_read_resolution(ts, &max_x, &max_y); in st1232_ts_probe()
308 0, max_x, 0, 0); in st1232_ts_probe()
Dektf2127.c254 int max_x, max_y; in ektf2127_probe() local
291 max_x = ektf2127_query_dimension(client, true); in ektf2127_probe()
292 if (max_x < 0) in ektf2127_probe()
293 return max_x; in ektf2127_probe()
299 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in ektf2127_probe()
Ds6sy761.c342 unsigned int *max_x, unsigned int *max_y) in s6sy761_hw_init() argument
367 *max_x = get_unaligned_be16(buffer); in s6sy761_hw_init()
396 unsigned int max_x, max_y; in s6sy761_probe() local
423 err = s6sy761_hw_init(sdata, &max_x, &max_y); in s6sy761_probe()
436 input_set_abs_params(sdata->input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in s6sy761_probe()
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()
Dzet6223.c32 u16 max_x; member
164 ts->max_x = get_unaligned_le16(&buf[8]); in zet6223_query_device()
208 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in zet6223_probe()
Dmms114.c318 val = (props->max_x >> 8) & 0xf; in mms114_setup_regs()
324 val = props->max_x & 0xff; in mms114_setup_regs()
329 val = props->max_x & 0xff; in mms114_setup_regs()
418 if (device_property_read_u32(dev, "x-size", &props->max_x)) { in mms114_parse_legacy_bindings()
480 if (!data->props.max_x || !data->props.max_y) { in mms114_probe()
488 0, data->props.max_x, 0, 0); in mms114_probe()
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()
Dbu21013_ts.c413 u32 max_x = 0, max_y = 0; in bu21013_probe() local
448 device_property_read_u32(&client->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()
Dwdt87xx_i2c.c172 u32 max_x; member
466 param->max_x = MAX_UNIT_AXIS; in wdt87xx_get_sysparam()
979 if (x > param->max_x || y > param->max_y) in wdt87xx_report_contact()
1045 wdt->param.max_x, 0, 0); in wdt87xx_ts_create_input_device()
1052 0, wdt->param.max_x, 0, 0); in wdt87xx_ts_create_input_device()
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()
1486 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in mip4_probe()
Dcyttsp4_core.c369 si->si_ofs.max_x = merge_bytes((si->si_ptrs.pcfg->res_xh in cyttsp4_si_get_pcfg_data()
665 si->si_ofs.max_x, si->si_ofs.max_x); in cyttsp4_si_put_log_data()
833 touch->abs[CY_TCH_X] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
838 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
1909 int max_x, max_y, max_p, min, max; in cyttsp4_setup_input_device() local
1919 max_x_tmp = md->si->si_ofs.max_x; in cyttsp4_setup_input_device()
1924 max_x = max_y_tmp - 1; in cyttsp4_setup_input_device()
1927 max_x = max_x_tmp - 1; in cyttsp4_setup_input_device()
1947 max = max_x; in cyttsp4_setup_input_device()
/linux-6.1.9/drivers/input/tablet/
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()
/linux-6.1.9/drivers/input/mouse/
Delan_i2c_core.c67 unsigned int max_x; member
403 "touchscreen-size-x", &data->max_x) || in elan_query_device_parameters()
407 &data->max_x, in elan_query_device_parameters()
413 --data->max_x; in elan_query_device_parameters()
428 data->width_x = data->max_x / x_traces; in elan_query_device_parameters()
443 data->x_res = (data->max_x + 1) / x_mm; in elan_query_device_parameters()
937 if (pos_x > data->max_x || pos_y > data->max_y) { in elan_report_contact()
941 data->max_x, data->max_y); in elan_report_contact()
1155 input_set_abs_params(input, ABS_X, 0, data->max_x, 0, 0); in elan_setup_input_device()
1166 input_set_abs_params(input, ABS_MT_POSITION_X, 0, data->max_x, 0, 0); in elan_setup_input_device()
[all …]
Delan_i2c.h92 unsigned int *max_x, unsigned int *max_y);
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-6.1.9/drivers/hid/
Dhid-asus.c105 int max_x; member
133 .max_x = 2794,
141 .max_x = 2240,
151 .max_x = 2640,
161 .max_x = 3120,
171 .max_x = 2640,
181 .max_x = 2640,
784 drvdata->tp->max_x, 0, 0); in asus_input_configured()
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-6.1.9/drivers/input/
Dtouchscreen.c122 prop->max_x = input_abs_get_max(input, axis_x); in touchscreen_parse_properties()
153 *x = prop->max_x - *x; in touchscreen_apply_prop_to_x_y()
/linux-6.1.9/include/linux/input/
Dtouchscreen.h13 unsigned int max_x; member
/linux-6.1.9/tools/lib/perf/
Dxyarray.c16 xy->max_x = xlen; in xyarray__new()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_compressor.h78 void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y);

12