Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-4.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()
/kernel/linux/linux-5.10/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()
Dektf2127.c226 int max_x, max_y; in ektf2127_probe() local
263 max_x = ektf2127_query_dimension(client, true); in ektf2127_probe()
264 if (max_x < 0) in ektf2127_probe()
265 return max_x; in ektf2127_probe()
271 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0); in ektf2127_probe()
Dst1232.c33 u16 max_x; member
160 .max_x = 0x31f, /* 800 - 1 */
169 .max_x = 0x13f, /* 320 - 1 */
247 0, ts->chip_info->max_x, 0, 0); in st1232_ts_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.c308 val = (props->max_x >> 8) & 0xf; in mms114_setup_regs()
314 val = props->max_x & 0xff; in mms114_setup_regs()
319 val = props->max_x & 0xff; in mms114_setup_regs()
408 if (device_property_read_u32(dev, "x-size", &props->max_x)) { in mms114_parse_legacy_bindings()
470 if (!data->props.max_x || !data->props.max_y) { in mms114_probe()
478 0, data->props.max_x, 0, 0); in mms114_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()
Diqs5xx.c487 u16 max_x, max_x_hw; in iqs5xx_axis_init() local
541 if (prop.max_x > max_x_hw) { in iqs5xx_axis_init()
543 prop.max_x, max_x_hw); in iqs5xx_axis_init()
545 } else if (prop.max_x == 0) { in iqs5xx_axis_init()
546 error = iqs5xx_read_word(client, IQS5XX_X_RES, &max_x); in iqs5xx_axis_init()
553 max_x); in iqs5xx_axis_init()
555 max_x = (u16)prop.max_x; in iqs5xx_axis_init()
582 max_x); in iqs5xx_axis_init()
/kernel/linux/linux-4.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()
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.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()
Dmms114.c308 val = (props->max_x >> 8) & 0xf; in mms114_setup_regs()
314 val = props->max_x & 0xff; in mms114_setup_regs()
319 val = props->max_x & 0xff; in mms114_setup_regs()
408 if (device_property_read_u32(dev, "x-size", &props->max_x)) { in mms114_parse_legacy_bindings()
471 if (!data->props.max_x || !data->props.max_y) { in mms114_probe()
479 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()
/kernel/linux/linux-5.10/tools/lib/perf/include/internal/
Dxyarray.h12 size_t max_x; member
33 return xy->max_x; in xyarray__max_x()
/kernel/linux/linux-4.19/tools/perf/util/
Dxyarray.h12 size_t max_x; member
33 return xy->max_x; in xyarray__max_x()
/kernel/linux/linux-4.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()
/kernel/linux/linux-4.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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_compressor.c420 unsigned int max_x = FBC_MAX_X, max_y = FBC_MAX_Y; in dce110_get_required_compressed_surfacesize() local
422 get_max_support_fbc_buffersize(&max_x, &max_y); in dce110_get_required_compressed_surfacesize()
429 …size.preferred_size = size.min_size = align_to_chunks_number_per_line(max_x) * max_y * 4; /* (For… in dce110_get_required_compressed_surfacesize()
445 void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y) in get_max_support_fbc_buffersize() argument
447 *max_x = FBC_MAX_X; in get_max_support_fbc_buffersize()
/kernel/linux/linux-4.19/drivers/input/tablet/
Dwacom_serial4.c177 unsigned int max_x, max_y; member
242 wacom->max_x = 5103; in wacom_handle_model_response()
284 r = sscanf(wacom->data, "~C%u,%u", &wacom->max_x, &wacom->max_y); in wacom_handle_coordinates_response()
512 if (!(wacom->max_x && wacom->max_y)) { in wacom_setup()
579 input_set_abs_params(wacom->dev, ABS_X, 0, wacom->max_x, 0, 0); in wacom_connect()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/input/mouse/
Delan_i2c_core.c65 unsigned int max_x; member
399 "touchscreen-size-x", &data->max_x) || in elan_query_device_parameters()
403 &data->max_x, in elan_query_device_parameters()
409 --data->max_x; in elan_query_device_parameters()
424 data->width_x = data->max_x / x_traces; in elan_query_device_parameters()
439 data->x_res = (data->max_x + 1) / x_mm; in elan_query_device_parameters()
933 if (pos_x > data->max_x || pos_y > data->max_y) { in elan_report_contact()
937 data->max_x, data->max_y); in elan_report_contact()
1151 input_set_abs_params(input, ABS_X, 0, data->max_x, 0, 0); in elan_setup_input_device()
1162 input_set_abs_params(input, ABS_MT_POSITION_X, 0, data->max_x, 0, 0); in elan_setup_input_device()
[all …]

1234