Lines Matching refs:error
87 int error; in ttsp_read_block_data() local
91 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
93 if (!error) in ttsp_read_block_data()
105 int error; in ttsp_write_block_data() local
109 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
111 if (!error) in ttsp_write_block_data()
145 int error; in cyttsp_exit_bl_mode() local
153 error = ttsp_write_block_data(ts, CY_REG_BASE, in cyttsp_exit_bl_mode()
155 if (error) in cyttsp_exit_bl_mode()
156 return error; in cyttsp_exit_bl_mode()
161 error = cyttsp_load_bl_regs(ts); in cyttsp_exit_bl_mode()
162 if (error) in cyttsp_exit_bl_mode()
163 return error; in cyttsp_exit_bl_mode()
173 int error; in cyttsp_set_operational_mode() local
175 error = ttsp_send_command(ts, CY_OPERATE_MODE); in cyttsp_set_operational_mode()
176 if (error) in cyttsp_set_operational_mode()
177 return error; in cyttsp_set_operational_mode()
180 error = ttsp_read_block_data(ts, CY_REG_BASE, in cyttsp_set_operational_mode()
182 if (error) in cyttsp_set_operational_mode()
183 return error; in cyttsp_set_operational_mode()
185 error = cyttsp_handshake(ts); in cyttsp_set_operational_mode()
186 if (error) in cyttsp_set_operational_mode()
187 return error; in cyttsp_set_operational_mode()
194 int error; in cyttsp_set_sysinfo_mode() local
199 error = ttsp_send_command(ts, CY_SYSINFO_MODE); in cyttsp_set_sysinfo_mode()
200 if (error) in cyttsp_set_sysinfo_mode()
201 return error; in cyttsp_set_sysinfo_mode()
205 error = ttsp_read_block_data(ts, CY_REG_BASE, sizeof(ts->sysinfo_data), in cyttsp_set_sysinfo_mode()
207 if (error) in cyttsp_set_sysinfo_mode()
208 return error; in cyttsp_set_sysinfo_mode()
210 error = cyttsp_handshake(ts); in cyttsp_set_sysinfo_mode()
211 if (error) in cyttsp_set_sysinfo_mode()
212 return error; in cyttsp_set_sysinfo_mode()
366 int error; in cyttsp_irq() local
374 error = ttsp_read_block_data(ts, CY_REG_BASE, in cyttsp_irq()
376 if (error) in cyttsp_irq()
380 error = cyttsp_handshake(ts); in cyttsp_irq()
381 if (error) in cyttsp_irq()
392 error = cyttsp_exit_bl_mode(ts); in cyttsp_irq()
393 if (error) { in cyttsp_irq()
396 error); in cyttsp_irq()
409 int error; in cyttsp_power_on() local
411 error = cyttsp_soft_reset(ts); in cyttsp_power_on()
412 if (error) in cyttsp_power_on()
413 return error; in cyttsp_power_on()
415 error = cyttsp_load_bl_regs(ts); in cyttsp_power_on()
416 if (error) in cyttsp_power_on()
417 return error; in cyttsp_power_on()
421 error = cyttsp_exit_bl_mode(ts); in cyttsp_power_on()
422 if (error) in cyttsp_power_on()
423 return error; in cyttsp_power_on()
431 error = cyttsp_set_sysinfo_mode(ts); in cyttsp_power_on()
432 if (error) in cyttsp_power_on()
433 return error; in cyttsp_power_on()
435 error = cyttsp_set_sysinfo_regs(ts); in cyttsp_power_on()
436 if (error) in cyttsp_power_on()
437 return error; in cyttsp_power_on()
439 error = cyttsp_set_operational_mode(ts); in cyttsp_power_on()
440 if (error) in cyttsp_power_on()
441 return error; in cyttsp_power_on()
444 error = cyttsp_act_dist_setup(ts); in cyttsp_power_on()
445 if (error) in cyttsp_power_on()
446 return error; in cyttsp_power_on()
455 int error; in cyttsp_enable() local
463 error = ttsp_read_block_data(ts, CY_REG_BASE, in cyttsp_enable()
465 if (error) in cyttsp_enable()
466 return error; in cyttsp_enable()
478 int error; in cyttsp_disable() local
480 error = ttsp_send_command(ts, CY_LOW_POWER_MODE); in cyttsp_disable()
481 if (error) in cyttsp_disable()
482 return error; in cyttsp_disable()
619 int error; in cyttsp_probe() local
636 error = PTR_ERR(ts->reset_gpio); in cyttsp_probe()
637 dev_err(dev, "Failed to request reset gpio, error %d\n", error); in cyttsp_probe()
638 return ERR_PTR(error); in cyttsp_probe()
641 error = cyttsp_parse_properties(ts); in cyttsp_probe()
642 if (error) in cyttsp_probe()
643 return ERR_PTR(error); in cyttsp_probe()
662 error = input_mt_init_slots(input_dev, CY_MAX_ID, 0); in cyttsp_probe()
663 if (error) { in cyttsp_probe()
665 return ERR_PTR(error); in cyttsp_probe()
668 error = devm_request_threaded_irq(dev, ts->irq, NULL, cyttsp_irq, in cyttsp_probe()
671 if (error) { in cyttsp_probe()
673 ts->irq, error); in cyttsp_probe()
674 return ERR_PTR(error); in cyttsp_probe()
681 error = cyttsp_power_on(ts); in cyttsp_probe()
682 if (error) in cyttsp_probe()
683 return ERR_PTR(error); in cyttsp_probe()
685 error = input_register_device(input_dev); in cyttsp_probe()
686 if (error) { in cyttsp_probe()
688 error); in cyttsp_probe()
689 return ERR_PTR(error); in cyttsp_probe()