Lines Matching refs:val

68 			       u16 reg, u8 *val, u16 len)  in elan_i2c_read_block()  argument
84 .buf = val, in elan_i2c_read_block()
93 static int elan_i2c_read_cmd(struct i2c_client *client, u16 reg, u8 *val) in elan_i2c_read_cmd() argument
97 retval = elan_i2c_read_block(client, reg, val, ETP_I2C_INF_LENGTH); in elan_i2c_read_cmd()
136 u8 val[256]; in elan_i2c_initialize() local
148 error = i2c_master_recv(client, val, ETP_I2C_INF_LENGTH); in elan_i2c_initialize()
155 val, ETP_I2C_DESC_LENGTH); in elan_i2c_initialize()
162 val, ETP_I2C_REPORT_DESC_LENGTH); in elan_i2c_initialize()
179 u8 val[2]; in elan_i2c_power_control() local
183 error = elan_i2c_read_cmd(client, ETP_I2C_POWER_CMD, val); in elan_i2c_power_control()
191 reg = le16_to_cpup((__le16 *)val); in elan_i2c_power_control()
219 static int elan_i2c_calibrate_result(struct i2c_client *client, u8 *val) in elan_i2c_calibrate_result() argument
221 return elan_i2c_read_block(client, ETP_I2C_CALIBRATE_CMD, val, 1); in elan_i2c_calibrate_result()
228 u8 val[3]; in elan_i2c_get_baseline_data() local
233 val); in elan_i2c_get_baseline_data()
237 *value = le16_to_cpup((__le16 *)val); in elan_i2c_get_baseline_data()
246 u8 val[3]; in elan_i2c_get_version() local
251 val); in elan_i2c_get_version()
258 *version = val[0]; in elan_i2c_get_version()
265 u8 val[3]; in elan_i2c_get_sm_version() local
267 error = elan_i2c_read_cmd(client, ETP_I2C_SM_VERSION_CMD, val); in elan_i2c_get_sm_version()
273 *version = val[0]; in elan_i2c_get_sm_version()
280 u8 val[3]; in elan_i2c_get_product_id() local
282 error = elan_i2c_read_cmd(client, ETP_I2C_UNIQUEID_CMD, val); in elan_i2c_get_product_id()
288 *id = val[0]; in elan_i2c_get_product_id()
296 u8 val[3]; in elan_i2c_get_checksum() local
301 val); in elan_i2c_get_checksum()
308 *csum = le16_to_cpup((__le16 *)val); in elan_i2c_get_checksum()
316 u8 val[3]; in elan_i2c_get_max() local
318 error = elan_i2c_read_cmd(client, ETP_I2C_MAX_X_AXIS_CMD, val); in elan_i2c_get_max()
324 *max_x = le16_to_cpup((__le16 *)val) & 0x0fff; in elan_i2c_get_max()
326 error = elan_i2c_read_cmd(client, ETP_I2C_MAX_Y_AXIS_CMD, val); in elan_i2c_get_max()
332 *max_y = le16_to_cpup((__le16 *)val) & 0x0fff; in elan_i2c_get_max()
341 u8 val[3]; in elan_i2c_get_resolution() local
343 error = elan_i2c_read_cmd(client, ETP_I2C_RESOLUTION_CMD, val); in elan_i2c_get_resolution()
349 *hw_res_x = val[0]; in elan_i2c_get_resolution()
350 *hw_res_y = val[1]; in elan_i2c_get_resolution()
360 u8 val[3]; in elan_i2c_get_num_traces() local
362 error = elan_i2c_read_cmd(client, ETP_I2C_XY_TRACENUM_CMD, val); in elan_i2c_get_num_traces()
368 *x_traces = val[0]; in elan_i2c_get_num_traces()
369 *y_traces = val[1]; in elan_i2c_get_num_traces()
378 u8 val[3]; in elan_i2c_get_pressure_adjustment() local
380 error = elan_i2c_read_cmd(client, ETP_I2C_PRESSURE_CMD, val); in elan_i2c_get_pressure_adjustment()
387 if ((val[0] >> 4) & 0x1) in elan_i2c_get_pressure_adjustment()
399 u8 val[3]; in elan_i2c_iap_get_mode() local
401 error = elan_i2c_read_cmd(client, ETP_I2C_IAP_CTRL_CMD, val); in elan_i2c_iap_get_mode()
409 constant = le16_to_cpup((__le16 *)val); in elan_i2c_iap_get_mode()
450 u8 val[3]; in elan_i2c_prepare_fw_update() local
494 error = elan_i2c_read_cmd(client, ETP_I2C_IAP_CMD, val); in elan_i2c_prepare_fw_update()
501 password = le16_to_cpup((__le16 *)val); in elan_i2c_prepare_fw_update()
515 u8 val[3]; in elan_i2c_write_fw_block() local
535 error = elan_i2c_read_cmd(client, ETP_I2C_IAP_CTRL_CMD, val); in elan_i2c_write_fw_block()
541 result = le16_to_cpup((__le16 *)val); in elan_i2c_write_fw_block()