Lines Matching refs:error
73 int error; in ttsp_read_block_data() local
77 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
79 if (!error) in ttsp_read_block_data()
91 int error; in ttsp_write_block_data() local
95 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
97 if (!error) in ttsp_write_block_data()
131 int error; in cyttsp_exit_bl_mode() local
139 error = ttsp_write_block_data(ts, CY_REG_BASE, in cyttsp_exit_bl_mode()
141 if (error) in cyttsp_exit_bl_mode()
142 return error; in cyttsp_exit_bl_mode()
147 error = cyttsp_load_bl_regs(ts); in cyttsp_exit_bl_mode()
148 if (error) in cyttsp_exit_bl_mode()
149 return error; in cyttsp_exit_bl_mode()
159 int error; in cyttsp_set_operational_mode() local
161 error = ttsp_send_command(ts, CY_OPERATE_MODE); in cyttsp_set_operational_mode()
162 if (error) in cyttsp_set_operational_mode()
163 return error; in cyttsp_set_operational_mode()
166 error = ttsp_read_block_data(ts, CY_REG_BASE, in cyttsp_set_operational_mode()
168 if (error) in cyttsp_set_operational_mode()
169 return error; in cyttsp_set_operational_mode()
171 error = cyttsp_handshake(ts); in cyttsp_set_operational_mode()
172 if (error) in cyttsp_set_operational_mode()
173 return error; in cyttsp_set_operational_mode()
180 int error; in cyttsp_set_sysinfo_mode() local
185 error = ttsp_send_command(ts, CY_SYSINFO_MODE); in cyttsp_set_sysinfo_mode()
186 if (error) in cyttsp_set_sysinfo_mode()
187 return error; in cyttsp_set_sysinfo_mode()
191 error = ttsp_read_block_data(ts, CY_REG_BASE, sizeof(ts->sysinfo_data), in cyttsp_set_sysinfo_mode()
193 if (error) in cyttsp_set_sysinfo_mode()
194 return error; in cyttsp_set_sysinfo_mode()
196 error = cyttsp_handshake(ts); in cyttsp_set_sysinfo_mode()
197 if (error) in cyttsp_set_sysinfo_mode()
198 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()
605 int error; in cyttsp_probe() local
622 error = PTR_ERR(ts->reset_gpio); in cyttsp_probe()
623 dev_err(dev, "Failed to request reset gpio, error %d\n", error); in cyttsp_probe()
624 return ERR_PTR(error); in cyttsp_probe()
627 error = cyttsp_parse_properties(ts); in cyttsp_probe()
628 if (error) in cyttsp_probe()
629 return ERR_PTR(error); in cyttsp_probe()
648 error = input_mt_init_slots(input_dev, CY_MAX_ID, 0); in cyttsp_probe()
649 if (error) { in cyttsp_probe()
651 return ERR_PTR(error); in cyttsp_probe()
654 error = devm_request_threaded_irq(dev, ts->irq, NULL, cyttsp_irq, in cyttsp_probe()
657 if (error) { in cyttsp_probe()
659 ts->irq, error); in cyttsp_probe()
660 return ERR_PTR(error); in cyttsp_probe()
667 error = cyttsp_power_on(ts); in cyttsp_probe()
668 if (error) in cyttsp_probe()
669 return ERR_PTR(error); in cyttsp_probe()
671 error = input_register_device(input_dev); in cyttsp_probe()
672 if (error) { in cyttsp_probe()
674 error); in cyttsp_probe()
675 return ERR_PTR(error); in cyttsp_probe()