Lines Matching refs:retval
63 int retval = 0; in reset_one_function() local
70 retval = fh->reset(fn); in reset_one_function()
71 if (retval < 0) in reset_one_function()
73 retval); in reset_one_function()
76 return retval; in reset_one_function()
82 int retval = 0; in configure_one_function() local
89 retval = fh->config(fn); in configure_one_function()
90 if (retval < 0) in configure_one_function()
92 retval); in configure_one_function()
95 return retval; in configure_one_function()
102 int retval; in rmi_driver_process_reset_requests() local
105 retval = reset_one_function(entry); in rmi_driver_process_reset_requests()
106 if (retval < 0) in rmi_driver_process_reset_requests()
107 return retval; in rmi_driver_process_reset_requests()
117 int retval; in rmi_driver_process_config_requests() local
120 retval = configure_one_function(entry); in rmi_driver_process_config_requests()
121 if (retval < 0) in rmi_driver_process_config_requests()
122 return retval; in rmi_driver_process_config_requests()
259 int retval = 0; in suspend_one_function() local
266 retval = fh->suspend(fn); in suspend_one_function()
267 if (retval < 0) in suspend_one_function()
269 retval); in suspend_one_function()
272 return retval; in suspend_one_function()
279 int retval; in rmi_suspend_functions() local
282 retval = suspend_one_function(entry); in rmi_suspend_functions()
283 if (retval < 0) in rmi_suspend_functions()
284 return retval; in rmi_suspend_functions()
293 int retval = 0; in resume_one_function() local
300 retval = fh->resume(fn); in resume_one_function()
301 if (retval < 0) in resume_one_function()
303 retval); in resume_one_function()
306 return retval; in resume_one_function()
313 int retval; in rmi_resume_functions() local
316 retval = resume_one_function(entry); in rmi_resume_functions()
317 if (retval < 0) in rmi_resume_functions()
318 return retval; in rmi_resume_functions()
326 int retval = 0; in rmi_enable_sensor() local
328 retval = rmi_driver_process_config_requests(rmi_dev); in rmi_enable_sensor()
329 if (retval < 0) in rmi_enable_sensor()
330 return retval; in rmi_enable_sensor()
514 int retval; in rmi_scan_pdt_page() local
524 retval = callback(rmi_dev, ctx, &pdt_entry); in rmi_scan_pdt_page()
525 if (retval != RMI_SCAN_CONTINUE) in rmi_scan_pdt_page()
526 return retval; in rmi_scan_pdt_page()
548 int retval = RMI_SCAN_DONE; in rmi_scan_pdt() local
551 retval = rmi_scan_pdt_page(rmi_dev, page, &empty_pages, in rmi_scan_pdt()
553 if (retval != RMI_SCAN_CONTINUE) in rmi_scan_pdt()
557 return retval < 0 ? retval : 0; in rmi_scan_pdt()
882 int retval; in rmi_enable_irq() local
892 retval = disable_irq_wake(irq); in rmi_enable_irq()
893 if (retval) in rmi_enable_irq()
896 retval); in rmi_enable_irq()
917 int retval, count; in rmi_disable_irq() local
927 retval = enable_irq_wake(irq); in rmi_disable_irq()
928 if (retval) in rmi_disable_irq()
931 retval); in rmi_disable_irq()
947 int retval; in rmi_driver_suspend() local
949 retval = rmi_suspend_functions(rmi_dev); in rmi_driver_suspend()
950 if (retval) in rmi_driver_suspend()
952 retval); in rmi_driver_suspend()
955 return retval; in rmi_driver_suspend()
961 int retval; in rmi_driver_resume() local
965 retval = rmi_resume_functions(rmi_dev); in rmi_driver_resume()
966 if (retval) in rmi_driver_resume()
968 retval); in rmi_driver_resume()
970 return retval; in rmi_driver_resume()
994 int retval; in rmi_driver_of_probe() local
996 retval = rmi_of_property_read_u32(dev, &pdata->reset_delay_ms, in rmi_driver_of_probe()
998 if (retval) in rmi_driver_of_probe()
999 return retval; in rmi_driver_of_probe()
1018 int retval; in rmi_probe_interrupts() local
1029 retval = rmi_scan_pdt(rmi_dev, &irq_count, rmi_count_irqs); in rmi_probe_interrupts()
1030 if (retval < 0) { in rmi_probe_interrupts()
1031 dev_err(dev, "IRQ counting failed with code %d.\n", retval); in rmi_probe_interrupts()
1032 return retval; in rmi_probe_interrupts()
1062 return retval; in rmi_probe_interrupts()
1070 int retval; in rmi_init_functions() local
1073 retval = rmi_scan_pdt(rmi_dev, &irq_count, rmi_create_function); in rmi_init_functions()
1074 if (retval < 0) { in rmi_init_functions()
1076 retval); in rmi_init_functions()
1082 retval = -EINVAL; in rmi_init_functions()
1086 retval = rmi_read_block(rmi_dev, in rmi_init_functions()
1089 if (retval < 0) { in rmi_init_functions()
1099 return retval; in rmi_init_functions()
1108 int retval; in rmi_driver_probe() local
1125 retval = rmi_driver_of_probe(rmi_dev->xport->dev, pdata); in rmi_driver_probe()
1126 if (retval) in rmi_driver_probe()
1127 return retval; in rmi_driver_probe()
1159 retval = rmi_scan_pdt(rmi_dev, NULL, rmi_initial_reset); in rmi_driver_probe()
1160 if (retval < 0) in rmi_driver_probe()
1163 retval = rmi_read(rmi_dev, PDT_PROPERTIES_LOCATION, &data->pdt_props); in rmi_driver_probe()
1164 if (retval < 0) { in rmi_driver_probe()
1170 PDT_PROPERTIES_LOCATION, retval); in rmi_driver_probe()
1176 retval = rmi_probe_interrupts(data); in rmi_driver_probe()
1177 if (retval) in rmi_driver_probe()
1194 retval = -ENOMEM; in rmi_driver_probe()
1202 retval = rmi_init_functions(data); in rmi_driver_probe()
1203 if (retval) in rmi_driver_probe()
1206 retval = rmi_f34_create_sysfs(rmi_dev); in rmi_driver_probe()
1207 if (retval) in rmi_driver_probe()
1213 retval = input_register_device(data->input); in rmi_driver_probe()
1214 if (retval) { in rmi_driver_probe()
1222 retval = rmi_irq_init(rmi_dev); in rmi_driver_probe()
1223 if (retval < 0) in rmi_driver_probe()
1228 retval = rmi_enable_sensor(rmi_dev); in rmi_driver_probe()
1229 if (retval) in rmi_driver_probe()
1240 return retval; in rmi_driver_probe()