/drivers/input/rmi4/ |
D | rmi_2d_sensor.c | 33 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()
|
D | rmi_2d_sensor.h | 51 u16 max_x; member
|
/drivers/input/touchscreen/ |
D | penmount.c | 199 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()
|
D | ektf2127.c | 226 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()
|
D | st1232.c | 33 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()
|
D | mms114.c | 308 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()
|
D | bcm_iproc_tsc.c | 138 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()
|
D | s6sy761.c | 342 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()
|
D | iqs5xx.c | 487 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()
|
D | zet6223.c | 32 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()
|
D | of_touchscreen.c | 121 prop->max_x = input_abs_get_max(input, axis_x); in touchscreen_parse_properties() 152 *x = prop->max_x - *x; in touchscreen_apply_prop_to_x_y()
|
D | bu21013_ts.c | 413 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()
|
D | wdt87xx_i2c.c | 172 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()
|
D | melfas_mip4.c | 158 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()
|
D | cyttsp4_core.c | 355 si->si_ofs.max_x = merge_bytes((si->si_ptrs.pcfg->res_xh in cyttsp4_si_get_pcfg_data() 651 si->si_ofs.max_x, si->si_ofs.max_x); in cyttsp4_si_put_log_data() 819 touch->abs[CY_TCH_X] = md->si->si_ofs.max_x - in cyttsp4_get_touch() 824 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_x - in cyttsp4_get_touch() 1895 int max_x, max_y, max_p, min, max; in cyttsp4_setup_input_device() local 1905 max_x_tmp = md->si->si_ofs.max_x; in cyttsp4_setup_input_device() 1910 max_x = max_y_tmp - 1; in cyttsp4_setup_input_device() 1913 max_x = max_x_tmp - 1; in cyttsp4_setup_input_device() 1933 max = max_x; in cyttsp4_setup_input_device()
|
D | atmel_mxt_ts.c | 288 unsigned int max_x; member 799 if (data->max_x < 1024) in mxt_proc_t9_message() 1884 data->max_x = get_unaligned_le16(&range.x); in mxt_read_t9_resolution() 1920 data->max_x = get_unaligned_le16(&range_x); in mxt_read_t100_config() 2032 if (data->max_x == 0) in mxt_initialize_input_device() 2033 data->max_x = 1023; in mxt_initialize_input_device() 2039 swap(data->max_x, data->max_y); in mxt_initialize_input_device() 2041 dev_info(dev, "Touchscreen size X%uY%u\n", data->max_x, data->max_y); in mxt_initialize_input_device() 2058 input_set_abs_params(input_dev, ABS_X, 0, data->max_x, 0, 0); in mxt_initialize_input_device() 2092 0, data->max_x, 0, 0); in mxt_initialize_input_device()
|
/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_compressor.c | 420 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()
|
D | dce110_compressor.h | 78 void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y);
|
/drivers/input/mouse/ |
D | elan_i2c_core.c | 65 unsigned int max_x; member 365 "touchscreen-size-x", &data->max_x) || in elan_query_device_parameters() 369 &data->max_x, in elan_query_device_parameters() 375 --data->max_x; in elan_query_device_parameters() 390 data->width_x = data->max_x / x_traces; in elan_query_device_parameters() 405 data->x_res = (data->max_x + 1) / x_mm; in elan_query_device_parameters() 899 if (pos_x > data->max_x || pos_y > data->max_y) { in elan_report_contact() 903 data->max_x, data->max_y); in elan_report_contact() 1117 input_set_abs_params(input, ABS_X, 0, data->max_x, 0, 0); in elan_setup_input_device() 1128 input_set_abs_params(input, ABS_MT_POSITION_X, 0, data->max_x, 0, 0); in elan_setup_input_device() [all …]
|
D | elan_i2c.h | 86 unsigned int *max_x, unsigned int *max_y);
|
D | elan_i2c_smbus.c | 226 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()
|
/drivers/input/tablet/ |
D | wacom_serial4.c | 172 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()
|
D | hanwang.c | 68 int max_x; member 383 0, hanwang->features->max_x, 4, 0); in hanwang_probe()
|
/drivers/hid/ |
D | hid-asus.c | 103 int max_x; member 131 .max_x = 2794, 139 .max_x = 2240, 149 .max_x = 2640, 159 .max_x = 3120, 169 .max_x = 2640, 179 .max_x = 2640, 708 drvdata->tp->max_x, 0, 0); in asus_input_configured()
|
D | hid-elan.c | 45 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()
|