Lines Matching refs:cfg_params

147 	struct tsc_param cfg_params;  member
222 for (i = 0; i < priv->cfg_params.fifo_threshold; i++) { in iproc_touchscreen_interrupt()
242 if (priv->cfg_params.invert_x) in iproc_touchscreen_interrupt()
243 x = priv->cfg_params.max_x - x; in iproc_touchscreen_interrupt()
245 if (priv->cfg_params.invert_y) in iproc_touchscreen_interrupt()
246 y = priv->cfg_params.max_y - y; in iproc_touchscreen_interrupt()
284 val = priv->cfg_params.fifo_threshold; in iproc_ts_start()
289 val |= priv->cfg_params.scanning_period << SCANNING_PERIOD_SHIFT; in iproc_ts_start()
290 val |= priv->cfg_params.debounce_timeout << DEBOUNCE_TIMEOUT_SHIFT; in iproc_ts_start()
291 val |= priv->cfg_params.settling_timeout << SETTLING_TIMEOUT_SHIFT; in iproc_ts_start()
292 val |= priv->cfg_params.touch_timeout << TOUCH_TIMEOUT_SHIFT; in iproc_ts_start()
301 val |= priv->cfg_params.average_data << TS_CONTROLLER_AVGDATA_SHIFT; in iproc_ts_start()
341 priv->cfg_params = iproc_default_config; in iproc_get_tsc_config()
352 priv->cfg_params.scanning_period = val; in iproc_get_tsc_config()
361 priv->cfg_params.debounce_timeout = val; in iproc_get_tsc_config()
370 priv->cfg_params.settling_timeout = val; in iproc_get_tsc_config()
379 priv->cfg_params.touch_timeout = val; in iproc_get_tsc_config()
387 priv->cfg_params.average_data = val; in iproc_get_tsc_config()
396 priv->cfg_params.fifo_threshold = val; in iproc_get_tsc_config()
400 of_property_read_u32(np, "touchscreen-size-x", &priv->cfg_params.max_x); in iproc_get_tsc_config()
401 of_property_read_u32(np, "touchscreen-size-y", &priv->cfg_params.max_y); in iproc_get_tsc_config()
404 &priv->cfg_params.fuzz_x); in iproc_get_tsc_config()
406 &priv->cfg_params.fuzz_y); in iproc_get_tsc_config()
408 priv->cfg_params.invert_x = in iproc_get_tsc_config()
410 priv->cfg_params.invert_y = in iproc_get_tsc_config()
472 input_set_abs_params(idev, ABS_X, X_MIN, priv->cfg_params.max_x, in iproc_ts_probe()
473 priv->cfg_params.fuzz_x, 0); in iproc_ts_probe()
474 input_set_abs_params(idev, ABS_Y, Y_MIN, priv->cfg_params.max_y, in iproc_ts_probe()
475 priv->cfg_params.fuzz_y, 0); in iproc_ts_probe()