Lines Matching full:error

105 				"Error reading addr %#x reg %#x: %d\n",  in icn8505_read_xfer()
139 "Error writing addr %#x reg %#x: %d\n", in icn8505_write_xfer()
157 int error; in icn8505_read_reg_silent() local
159 error = icn8505_read_xfer(icn8505->client, icn8505->client->addr, reg, in icn8505_read_reg_silent()
161 if (error) in icn8505_read_reg_silent()
162 return error; in icn8505_read_reg_silent()
204 int error; in icn8505_try_fw_upload() local
209 error = icn8505_write_prog_reg(icn8505, 0xcc3355, 0x5a); in icn8505_try_fw_upload()
210 if (error) in icn8505_try_fw_upload()
211 return error; in icn8505_try_fw_upload()
215 error = icn8505_write_prog_reg(icn8505, 0x040400, 0x01); in icn8505_try_fw_upload()
216 if (error) in icn8505_try_fw_upload()
217 return error; in icn8505_try_fw_upload()
221 error = icn8505_read_prog_data(icn8505, 0x040002, buf, 1); in icn8505_try_fw_upload()
222 if (error) in icn8505_try_fw_upload()
223 return error; in icn8505_try_fw_upload()
233 error = icn8505_write_prog_reg(icn8505, 0x40028, 1); in icn8505_try_fw_upload()
234 if (error) in icn8505_try_fw_upload()
235 return error; in icn8505_try_fw_upload()
240 error = icn8505_write_prog_data(icn8505, offset, in icn8505_try_fw_upload()
242 if (error) in icn8505_try_fw_upload()
243 return error; in icn8505_try_fw_upload()
247 error = icn8505_write_prog_reg(icn8505, 0x40028, 0); in icn8505_try_fw_upload()
248 if (error) in icn8505_try_fw_upload()
249 return error; in icn8505_try_fw_upload()
252 error = icn8505_read_prog_data(icn8505, 0x40034, buf, 2); in icn8505_try_fw_upload()
253 if (error) in icn8505_try_fw_upload()
254 return error; in icn8505_try_fw_upload()
261 error = icn8505_read_prog_data(icn8505, 0x4002c, buf, 4); in icn8505_try_fw_upload()
262 if (error) in icn8505_try_fw_upload()
263 return error; in icn8505_try_fw_upload()
272 error = icn8505_write_prog_reg(icn8505, 0x40400, 0x03); in icn8505_try_fw_upload()
273 if (error) in icn8505_try_fw_upload()
274 return error; in icn8505_try_fw_upload()
284 int i, error; in icn8505_upload_fw() local
291 error = firmware_request_platform(&fw, icn8505->firmware_name, dev); in icn8505_upload_fw()
292 if (error) { in icn8505_upload_fw()
293 dev_err(dev, "Firmware request error %d\n", error); in icn8505_upload_fw()
294 return error; in icn8505_upload_fw()
302 error = icn8505_try_fw_upload(icn8505, fw); in icn8505_upload_fw()
303 if (!error) in icn8505_upload_fw()
307 error, i, MAX_FW_UPLOAD_TRIES); in icn8505_upload_fw()
313 return error; in icn8505_upload_fw()
327 int i, error; in icn8505_irq() local
329 error = icn8505_read_data(icn8505, ICN8505_REG_TOUCHDATA, in icn8505_irq()
331 if (error) { in icn8505_irq()
332 dev_err(dev, "Error reading touch data: %d\n", error); in icn8505_irq()
368 int error; in icn8505_probe_acpi() local
371 error = PTR_ERR_OR_ZERO(subsys); in icn8505_probe_acpi()
372 if (error == -ENODATA) in icn8505_probe_acpi()
374 else if (error) in icn8505_probe_acpi()
375 return error; in icn8505_probe_acpi()
390 int error; in icn8505_probe() local
416 error = icn8505_probe_acpi(icn8505, dev); in icn8505_probe()
417 if (error) in icn8505_probe()
418 return error; in icn8505_probe()
420 error = icn8505_upload_fw(icn8505); in icn8505_probe()
421 if (error) in icn8505_probe()
422 return error; in icn8505_probe()
424 error = icn8505_read_data(icn8505, ICN8505_REG_CONFIGDATA, in icn8505_probe()
426 if (error) { in icn8505_probe()
427 dev_err(dev, "Error reading resolution: %d\n", error); in icn8505_probe()
428 return error; in icn8505_probe()
439 dev_err(dev, "Error touchscreen-size-x and/or -y missing\n"); in icn8505_probe()
443 error = input_mt_init_slots(input, ICN8505_MAX_TOUCHES, in icn8505_probe()
445 if (error) in icn8505_probe()
446 return error; in icn8505_probe()
448 error = devm_request_threaded_irq(dev, client->irq, NULL, icn8505_irq, in icn8505_probe()
450 if (error) { in icn8505_probe()
451 dev_err(dev, "Error requesting irq: %d\n", error); in icn8505_probe()
452 return error; in icn8505_probe()
455 error = input_register_device(input); in icn8505_probe()
456 if (error) in icn8505_probe()
457 return error; in icn8505_probe()
477 int error; in icn8505_resume() local
479 error = icn8505_upload_fw(icn8505); in icn8505_resume()
480 if (error) in icn8505_resume()
481 return error; in icn8505_resume()