Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/input/rmi4/
Drmi_2d_sensor.c36 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()
144 int max_x, max_y; in rmi_2d_sensor_set_input_params() local
150 sensor->max_x = min(sensor->max_x, in rmi_2d_sensor_set_input_params()
160 max_x = sensor->max_x; in rmi_2d_sensor_set_input_params()
163 swap(max_x, max_y); in rmi_2d_sensor_set_input_params()
164 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in rmi_2d_sensor_set_input_params()
168 res_x = (sensor->max_x - sensor->min_x) / sensor->x_mm; in rmi_2d_sensor_set_input_params()
Drmi_2d_sensor.h54 u16 max_x; member
/Linux-v4.19/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()
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()
Dmms114.c298 val = (props->max_x >> 8) & 0xf; in mms114_setup_regs()
304 val = props->max_x & 0xff; in mms114_setup_regs()
309 val = props->max_x & 0xff; in mms114_setup_regs()
398 if (device_property_read_u32(dev, "x-size", &props->max_x)) { in mms114_parse_legacy_bindings()
463 if (!data->props.max_x || !data->props.max_y) { in mms114_probe()
471 0, data->props.max_x, 0, 0); in mms114_probe()
Dzet6223.c41 u16 max_x; member
173 ts->max_x = get_unaligned_le16(&buf[8]); in zet6223_query_device()
217 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in zet6223_probe()
Dof_touchscreen.c118 prop->max_x = input_abs_get_max(input, axis); in touchscreen_parse_properties()
137 *x = prop->max_x - *x; in touchscreen_apply_prop_to_x_y()
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.c167 unsigned int max_x; member
331 ts->max_x = get_unaligned_le16(&buf[0]); in mip4_query_device()
334 ts->max_x, ts->max_y); in mip4_query_device()
1152 input_set_abs_params(ts->input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in mip4_flash_fw()
1154 input_set_abs_params(ts->input, ABS_X, 0, ts->max_x, 0, 0); in mip4_flash_fw()
1495 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0); in mip4_probe()
Dcyttsp4_core.c365 si->si_ofs.max_x = merge_bytes((si->si_ptrs.pcfg->res_xh in cyttsp4_si_get_pcfg_data()
661 si->si_ofs.max_x, si->si_ofs.max_x); in cyttsp4_si_put_log_data()
830 touch->abs[CY_TCH_X] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
835 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
1906 int max_x, max_y, max_p, min, max; in cyttsp4_setup_input_device() local
1916 max_x_tmp = md->si->si_ofs.max_x; in cyttsp4_setup_input_device()
1921 max_x = max_y_tmp - 1; in cyttsp4_setup_input_device()
1924 max_x = max_x_tmp - 1; in cyttsp4_setup_input_device()
1944 max = max_x; in cyttsp4_setup_input_device()
Dgoodix.c694 if (!ts->prop.max_x || !ts->prop.max_y || !ts->max_touch_num) { in goodix_configure_dev()
696 ts->prop.max_x = GOODIX_MAX_WIDTH - 1; in goodix_configure_dev()
700 ABS_MT_POSITION_X, ts->prop.max_x); in goodix_configure_dev()
/Linux-v4.19/tools/perf/util/
Dxyarray.h11 size_t max_x; member
32 return xy->max_x; in xyarray__max_x()
Dxyarray.c16 xy->max_x = xlen; in xyarray__new()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_compressor.c448 unsigned int max_x = FBC_MAX_X, max_y = FBC_MAX_Y; in dce110_get_required_compressed_surfacesize() local
450 get_max_support_fbc_buffersize(&max_x, &max_y); in dce110_get_required_compressed_surfacesize()
457 …size.preferred_size = size.min_size = align_to_chunks_number_per_line(max_x) * max_y * 4; /* (For… in dce110_get_required_compressed_surfacesize()
473 void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y) in get_max_support_fbc_buffersize() argument
475 *max_x = FBC_MAX_X; in get_max_support_fbc_buffersize()
Ddce110_compressor.h78 void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y);
/Linux-v4.19/drivers/hid/
Dhid-asus.c91 int max_x; member
108 .max_x = 2794,
115 .max_x = 2240,
124 .max_x = 2640,
133 .max_x = 3120,
142 .max_x = 2640,
410 drvdata->tp->max_x, 0, 0); in asus_input_configured()
Dhid-elan.c49 u16 max_x; member
136 drvdata->max_x = (dmabuf[4] << 8) | dmabuf[3]; in elan_get_device_params()
182 input_set_abs_params(input, ABS_MT_POSITION_X, 0, drvdata->max_x, in elan_input_configured()
/Linux-v4.19/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.c82 int max_x; member
397 0, hanwang->features->max_x, 4, 0); in hanwang_probe()
/Linux-v4.19/include/linux/input/
Dtouchscreen.h16 unsigned int max_x; member
/Linux-v4.19/drivers/input/mouse/
Delan_i2c_core.c77 unsigned int max_x; member
373 error = data->ops->get_max(data->client, &data->max_x, &data->max_y); in elan_query_device_parameters()
381 data->width_x = data->max_x / x_traces; in elan_query_device_parameters()
874 if (pos_x > data->max_x || pos_y > data->max_y) { in elan_report_contact()
878 data->max_x, data->max_y); in elan_report_contact()
1069 input_set_abs_params(input, ABS_X, 0, data->max_x, 0, 0); in elan_setup_input_device()
1078 input_set_abs_params(input, ABS_MT_POSITION_X, 0, data->max_x, 0, 0); in elan_setup_input_device()
1199 data->max_x, data->max_y, in elan_probe()
Delan_i2c.h68 unsigned int *max_x, unsigned int *max_y);
Delan_i2c_smbus.c229 unsigned int *max_x, unsigned int *max_y) in elan_smbus_get_max() argument
242 *max_x = (0x0f & val[0]) << 8 | val[1]; in elan_smbus_get_max()

12