Lines Matching refs:error
83 int error; in ttsp_read_block_data() local
87 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
89 if (!error) in ttsp_read_block_data()
101 int error; in ttsp_write_block_data() local
105 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
107 if (!error) in ttsp_write_block_data()
141 int error; in cyttsp_exit_bl_mode() local
149 error = ttsp_write_block_data(ts, CY_REG_BASE, in cyttsp_exit_bl_mode()
151 if (error) in cyttsp_exit_bl_mode()
152 return error; in cyttsp_exit_bl_mode()
157 error = cyttsp_load_bl_regs(ts); in cyttsp_exit_bl_mode()
158 if (error) in cyttsp_exit_bl_mode()
159 return error; in cyttsp_exit_bl_mode()
169 int error; in cyttsp_set_operational_mode() local
171 error = ttsp_send_command(ts, CY_OPERATE_MODE); in cyttsp_set_operational_mode()
172 if (error) in cyttsp_set_operational_mode()
173 return error; in cyttsp_set_operational_mode()
176 error = ttsp_read_block_data(ts, CY_REG_BASE, in cyttsp_set_operational_mode()
178 if (error) in cyttsp_set_operational_mode()
179 return error; in cyttsp_set_operational_mode()
181 error = cyttsp_handshake(ts); in cyttsp_set_operational_mode()
182 if (error) in cyttsp_set_operational_mode()
183 return error; in cyttsp_set_operational_mode()
190 int error; in cyttsp_set_sysinfo_mode() local
195 error = ttsp_send_command(ts, CY_SYSINFO_MODE); in cyttsp_set_sysinfo_mode()
196 if (error) in cyttsp_set_sysinfo_mode()
197 return error; in cyttsp_set_sysinfo_mode()
201 error = ttsp_read_block_data(ts, CY_REG_BASE, sizeof(ts->sysinfo_data), in cyttsp_set_sysinfo_mode()
203 if (error) in cyttsp_set_sysinfo_mode()
204 return error; in cyttsp_set_sysinfo_mode()
206 error = cyttsp_handshake(ts); in cyttsp_set_sysinfo_mode()
207 if (error) in cyttsp_set_sysinfo_mode()
208 return error; in cyttsp_set_sysinfo_mode()
352 int error; in cyttsp_irq() local
360 error = ttsp_read_block_data(ts, CY_REG_BASE, in cyttsp_irq()
362 if (error) in cyttsp_irq()
366 error = cyttsp_handshake(ts); in cyttsp_irq()
367 if (error) in cyttsp_irq()
378 error = cyttsp_exit_bl_mode(ts); in cyttsp_irq()
379 if (error) { in cyttsp_irq()
382 error); in cyttsp_irq()
395 int error; in cyttsp_power_on() local
397 error = cyttsp_soft_reset(ts); in cyttsp_power_on()
398 if (error) in cyttsp_power_on()
399 return error; in cyttsp_power_on()
401 error = cyttsp_load_bl_regs(ts); in cyttsp_power_on()
402 if (error) in cyttsp_power_on()
403 return error; in cyttsp_power_on()
407 error = cyttsp_exit_bl_mode(ts); in cyttsp_power_on()
408 if (error) in cyttsp_power_on()
409 return error; in cyttsp_power_on()
417 error = cyttsp_set_sysinfo_mode(ts); in cyttsp_power_on()
418 if (error) in cyttsp_power_on()
419 return error; in cyttsp_power_on()
421 error = cyttsp_set_sysinfo_regs(ts); in cyttsp_power_on()
422 if (error) in cyttsp_power_on()
423 return error; in cyttsp_power_on()
425 error = cyttsp_set_operational_mode(ts); in cyttsp_power_on()
426 if (error) in cyttsp_power_on()
427 return error; in cyttsp_power_on()
430 error = cyttsp_act_dist_setup(ts); in cyttsp_power_on()
431 if (error) in cyttsp_power_on()
432 return error; in cyttsp_power_on()
441 int error; in cyttsp_enable() local
449 error = ttsp_read_block_data(ts, CY_REG_BASE, in cyttsp_enable()
451 if (error) in cyttsp_enable()
452 return error; in cyttsp_enable()
464 int error; in cyttsp_disable() local
466 error = ttsp_send_command(ts, CY_LOW_POWER_MODE); in cyttsp_disable()
467 if (error) in cyttsp_disable()
468 return error; in cyttsp_disable()
537 int error; in cyttsp_probe() local
540 error = -EINVAL; in cyttsp_probe()
547 error = -ENOMEM; in cyttsp_probe()
561 error = pdata->init(); in cyttsp_probe()
562 if (error) { in cyttsp_probe()
564 error); in cyttsp_probe()
589 error = request_threaded_irq(ts->irq, NULL, cyttsp_irq, in cyttsp_probe()
592 if (error) { in cyttsp_probe()
594 ts->irq, error); in cyttsp_probe()
600 error = cyttsp_power_on(ts); in cyttsp_probe()
601 if (error) in cyttsp_probe()
604 error = input_register_device(input_dev); in cyttsp_probe()
605 if (error) { in cyttsp_probe()
607 error); in cyttsp_probe()
622 return ERR_PTR(error); in cyttsp_probe()