Home
last modified time | relevance | path

Searched refs:max_y (Results 1 – 25 of 47) sorted by relevance

12

/linux/drivers/input/rmi4/
A Drmi_2d_sensor.c36 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process()
59 obj->y = min(sensor->max_y, obj->y); in rmi_2d_sensor_abs_process()
141 int max_x, max_y; in rmi_2d_sensor_set_input_params() local
152 sensor->max_y = min(sensor->max_y, in rmi_2d_sensor_set_input_params()
158 max_y = sensor->max_y; in rmi_2d_sensor_set_input_params()
160 swap(max_x, max_y); in rmi_2d_sensor_set_input_params()
162 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_y, 0, 0); in rmi_2d_sensor_set_input_params()
166 res_y = (sensor->max_y - sensor->min_y) / sensor->y_mm; in rmi_2d_sensor_set_input_params()
A Drmi_2d_sensor.h53 u16 max_y; member
/linux/drivers/input/touchscreen/
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()
259 input_set_abs_params(pm->dev, ABS_Y, 0, max_y, 0, 0); in pm_connect()
266 ABS_MT_POSITION_Y, 0, max_y, 0, 0); in pm_connect()
A Dst1232.c112 u16 *max_y) in st1232_ts_read_resolution() argument
125 *max_y = (((buf[0] & 0x0007) << 8) | buf[2]) - 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()
310 0, max_y, 0, 0); in st1232_ts_probe()
A Dektf2127.c254 int max_x, max_y; in ektf2127_probe() local
295 max_y = ektf2127_query_dimension(client, false); in ektf2127_probe()
296 if (max_y < 0) in ektf2127_probe()
297 return max_y; in ektf2127_probe()
300 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_y, 0, 0); in ektf2127_probe()
A Dbcm_iproc_tsc.c139 u32 max_y; member
169 .max_y = Y_MAX,
253 y = priv->cfg_params.max_y - y; in iproc_touchscreen_interrupt()
408 of_property_read_u32(np, "touchscreen-size-y", &priv->cfg_params.max_y); in iproc_get_tsc_config()
481 input_set_abs_params(idev, ABS_Y, Y_MIN, priv->cfg_params.max_y, in iproc_ts_probe()
A Ds6sy761.c342 unsigned int *max_x, unsigned int *max_y) in s6sy761_hw_init() argument
368 *max_y = get_unaligned_be16(buffer + 2); 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()
437 input_set_abs_params(sdata->input, ABS_MT_POSITION_Y, 0, max_y, 0, 0); in s6sy761_probe()
A Diqs5xx.c490 u16 max_x, max_y; in iqs5xx_axis_init() local
511 error = iqs5xx_read_word(client, IQS5XX_Y_RES, &max_y); in iqs5xx_axis_init()
516 input_set_abs_params(iqs5xx->input, ABS_MT_POSITION_Y, 0, max_y, 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()
537 if (prop->max_y != max_y) { in iqs5xx_axis_init()
538 error = iqs5xx_write_word(client, IQS5XX_Y_RES, prop->max_y); in iqs5xx_axis_init()
A Dzet6223.c33 u16 max_y; member
165 ts->max_y = get_unaligned_le16(&buf[10]); in zet6223_query_device()
209 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0); in zet6223_probe()
A Dmms114.c319 val |= ((props->max_y >> 8) & 0xf) << 4; in mms114_setup_regs()
423 if (device_property_read_u32(dev, "y-size", &props->max_y)) { in mms114_parse_legacy_bindings()
480 if (!data->props.max_x || !data->props.max_y) { in mms114_probe()
490 0, data->props.max_y, 0, 0); in mms114_probe()
A Dbu21013_ts.c413 u32 max_x = 0, max_y = 0; in bu21013_probe() local
449 device_property_read_u32(&client->dev, "rohm,touch-max-y", &max_y); in bu21013_probe()
452 input_set_abs_params(in_dev, ABS_MT_POSITION_Y, 0, max_y, 0, 0); in bu21013_probe()
A Dmelfas_mip4.c159 unsigned int max_y; member
323 ts->max_y = get_unaligned_le16(&buf[2]); in mip4_query_device()
325 ts->max_x, ts->max_y); in mip4_query_device()
1144 input_set_abs_params(ts->input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0); in mip4_flash_fw()
1146 input_set_abs_params(ts->input, ABS_Y, 0, ts->max_y, 0, 0); in mip4_flash_fw()
1487 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0); in mip4_probe()
A Dcyttsp4_core.c373 si->si_ofs.max_y = merge_bytes((si->si_ptrs.pcfg->res_yh in cyttsp4_si_get_pcfg_data()
671 si->si_ofs.max_y, si->si_ofs.max_y); in cyttsp4_si_put_log_data()
830 touch->abs[CY_TCH_X] = md->si->si_ofs.max_y - in cyttsp4_get_touch()
841 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_y - in cyttsp4_get_touch()
1909 int max_x, max_y, max_p, min, max; in cyttsp4_setup_input_device() local
1920 max_y_tmp = md->si->si_ofs.max_y; in cyttsp4_setup_input_device()
1925 max_y = max_x_tmp - 1; in cyttsp4_setup_input_device()
1928 max_y = max_y_tmp - 1; in cyttsp4_setup_input_device()
1949 max = max_y; in cyttsp4_setup_input_device()
/linux/tools/lib/perf/include/internal/
A Dxyarray.h13 size_t max_y; member
28 if (x >= xy->max_x || y >= xy->max_y) in xyarray__entry()
35 return xy->max_y; in xyarray__max_y()
/linux/drivers/input/mouse/
A Delan_i2c_core.c68 unsigned int max_y; member
439 "touchscreen-size-y", &data->max_y)) { in elan_query_device_parameters()
442 &data->max_y); in elan_query_device_parameters()
448 --data->max_y; in elan_query_device_parameters()
463 data->width_y = data->max_y / y_traces; in elan_query_device_parameters()
478 data->y_res = (data->max_y + 1) / y_mm; in elan_query_device_parameters()
971 if (pos_x > data->max_x || pos_y > data->max_y) { in elan_report_contact()
975 data->max_x, data->max_y); in elan_report_contact()
987 input_report_abs(input, ABS_MT_POSITION_Y, data->max_y - pos_y); in elan_report_contact()
1190 input_set_abs_params(input, ABS_Y, 0, data->max_y, 0, 0); in elan_setup_input_device()
[all …]
A Delan_i2c.h92 unsigned int *max_x, unsigned int *max_y);
A Delan_i2c_smbus.c226 unsigned int *max_x, unsigned int *max_y) in elan_smbus_get_max() argument
240 *max_y = (0xf0 & val[0]) << 4 | val[2]; in elan_smbus_get_max()
/linux/drivers/input/tablet/
A Dwacom_serial4.c172 unsigned int max_x, max_y; member
238 wacom->max_y = 3711; 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()
575 input_set_abs_params(wacom->dev, ABS_Y, 0, wacom->max_y, 0, 0); in wacom_connect()
A Dhanwang.c69 int max_y; member
385 0, hanwang->features->max_y, 4, 0); in hanwang_probe()
/linux/drivers/hid/
A Dhid-asus.c106 int max_y; member
134 .max_y = 1758,
142 .max_y = 1120,
152 .max_y = 1320,
162 .max_y = 1716,
172 .max_y = 1320,
182 .max_y = 1380,
197 y = drvdat->tp->max_y - ((data[0] & CONTACT_Y_MSB_MASK) << 8 | data[2]); in asus_report_contact_down()
788 drvdata->tp->max_y, 0, 0); in asus_input_configured()
A Dhid-elan.c46 u16 max_y; member
138 drvdata->max_y = (dmabuf[4] << 8) | dmabuf[3]; in elan_get_device_params()
180 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, drvdata->max_y, in elan_input_configured()
224 y = drvdata->max_y - in elan_report_mt_slot()
/linux/drivers/input/
A Dtouchscreen.c123 prop->max_y = input_abs_get_max(input, axis_y); in touchscreen_parse_properties()
156 *y = prop->max_y - *y; in touchscreen_apply_prop_to_x_y()
/linux/include/linux/input/
A Dtouchscreen.h14 unsigned int max_y; member
/linux/tools/lib/perf/
A Dxyarray.c17 xy->max_y = ylen; in xyarray__new()
/linux/drivers/gpu/drm/amd/display/dc/dce110/
A Ddce110_compressor.h78 void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y);

Completed in 51 milliseconds

12