Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/drivers/input/rmi4/
H A 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()
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da228e/
H A Dda228e_core.c46 static short max_x, max_y, max_z; in da228e_temp_calibrate_detect_static() local
64 max_x = min_x = temp_x[1]; in da228e_temp_calibrate_detect_static()
78 max_x = (max_x > temp_x[i]) ? max_x:temp_x[i]; in da228e_temp_calibrate_detect_static()
90 delta_sum = abs(max_x - min_x) + abs(max_y - min_y) + in da228e_temp_calibrate_detect_static()
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da215s/
H A Dda215s_core.c49 static short max_x, max_y, max_z; in da215s_temp_calibrate_detect_static() local
67 max_x = min_x = temp_x[1]; in da215s_temp_calibrate_detect_static()
81 max_x = (max_x > temp_x[i]) ? max_x:temp_x[i]; in da215s_temp_calibrate_detect_static()
93 delta_sum = abs(max_x - min_x) + abs(max_y - min_y) + abs(max_z - min_z); in da215s_temp_calibrate_detect_static()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H 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()
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()
H A Dcy8c_touchpad.c40 int max_x; member
57 .max_x = 0xfe,
117 if (pos.cur_x <= cdef->max_x && pos.cur_y <= cdef->max_y) { in cy8ctouch_ts_worker()
164 if (ts->cdef->max_x > 0) { in cy8ctouch_init()
167 ABS_X, 0, ts->cdef->max_x, 0, 0); in cy8ctouch_init()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dgslx680.c182 int max_x; member
236 .max_x = SCREEN_MAX_X,
247 .max_x = SCREEN_MAX_X_TVE,
873 int max_x = ts->ts_cfg->max_x; in report_data() local
881 if (x > max_x || y > max_y) { in report_data()
926 input_report_abs(ts->input, ABS_MT_POSITION_X, max_x - x); in report_data()
1396 int max_x = ts->ts_cfg->max_x; in gslX680_ts_init() local
1466 input_set_abs_params(input_device, ABS_MT_POSITION_X, 0, max_x, in gslX680_ts_init()
H A Dof_touchscreen.c121 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()
/OK3568_Linux_fs/kernel/tools/lib/perf/include/internal/
H A Dxyarray.h12 size_t max_x; member
33 return xy->max_x; in xyarray__max_x()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce110/
H A 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()
/OK3568_Linux_fs/kernel/drivers/input/mouse/
H A Delan_i2c_core.c65 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 …]
/OK3568_Linux_fs/kernel/drivers/input/tablet/
H A 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()
/OK3568_Linux_fs/kernel/drivers/hid/
H A Dhid-asus.c102 int max_x; member
130 .max_x = 2794,
138 .max_x = 2240,
148 .max_x = 2640,
158 .max_x = 3120,
168 .max_x = 2640,
178 .max_x = 2640,
688 drvdata->tp->max_x, 0, 0); in asus_input_configured()
H A 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()
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/stb/
H A Dstb_image_resize.h1257 int max_x = input_w + stbir_info->horizontal_filter_pixel_margin; in stbir__decode_scanline() local
1266 for (; x < max_x; x++) in stbir__decode_scanline()
1275 for (; x < max_x; x++) in stbir__decode_scanline()
1285 for (; x < max_x; x++) in stbir__decode_scanline()
1298 for (; x < max_x; x++) in stbir__decode_scanline()
1308 for (; x < max_x; x++) in stbir__decode_scanline()
1321 for (; x < max_x; x++) in stbir__decode_scanline()
1331 for (; x < max_x; x++) in stbir__decode_scanline()
1344 for (; x < max_x; x++) in stbir__decode_scanline()
1354 for (; x < max_x; x++) in stbir__decode_scanline()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/librknn_api_android_demo/include/stb/
H A Dstb_image_resize.h1257 int max_x = input_w + stbir_info->horizontal_filter_pixel_margin; in stbir__decode_scanline() local
1266 for (; x < max_x; x++) in stbir__decode_scanline()
1275 for (; x < max_x; x++) in stbir__decode_scanline()
1285 for (; x < max_x; x++) in stbir__decode_scanline()
1298 for (; x < max_x; x++) in stbir__decode_scanline()
1308 for (; x < max_x; x++) in stbir__decode_scanline()
1321 for (; x < max_x; x++) in stbir__decode_scanline()
1331 for (; x < max_x; x++) in stbir__decode_scanline()
1344 for (; x < max_x; x++) in stbir__decode_scanline()
1354 for (; x < max_x; x++) in stbir__decode_scanline()
[all …]
/OK3568_Linux_fs/kernel/include/linux/input/
H A Dtouchscreen.h13 unsigned int max_x; member
/OK3568_Linux_fs/kernel/tools/lib/perf/
H A Dxyarray.c16 xy->max_x = xlen; in xyarray__new()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dxyarray.c16 xy->max_x = xlen; in xyarray__new()

123