Lines Matching refs:retval

64 	int retval, i;  in ab8500_rtc_read_time()  local
70 retval = abx500_set_register_interruptible(dev, in ab8500_rtc_read_time()
72 if (retval < 0) in ab8500_rtc_read_time()
73 return retval; in ab8500_rtc_read_time()
77 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time()
79 if (retval < 0) in ab8500_rtc_read_time()
80 return retval; in ab8500_rtc_read_time()
90 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time()
92 if (retval < 0) in ab8500_rtc_read_time()
93 return retval; in ab8500_rtc_read_time()
109 int retval, i; in ab8500_rtc_set_time() local
129 retval = abx500_set_register_interruptible(dev, AB8500_RTC, in ab8500_rtc_set_time()
131 if (retval < 0) in ab8500_rtc_set_time()
132 return retval; in ab8500_rtc_set_time()
142 int retval, i; in ab8500_rtc_read_alarm() local
148 retval = abx500_get_register_interruptible(dev, AB8500_RTC, in ab8500_rtc_read_alarm()
150 if (retval < 0) in ab8500_rtc_read_alarm()
151 return retval; in ab8500_rtc_read_alarm()
161 retval = abx500_get_register_interruptible(dev, AB8500_RTC, in ab8500_rtc_read_alarm()
163 if (retval < 0) in ab8500_rtc_read_alarm()
164 return retval; in ab8500_rtc_read_alarm()
185 int retval, i; in ab8500_rtc_set_alarm() local
197 retval = abx500_set_register_interruptible(dev, AB8500_RTC, in ab8500_rtc_set_alarm()
199 if (retval < 0) in ab8500_rtc_set_alarm()
200 return retval; in ab8500_rtc_set_alarm()
208 int retval; in ab8500_rtc_set_calibration() local
233 retval = abx500_set_register_interruptible(dev, AB8500_RTC, in ab8500_rtc_set_calibration()
236 return retval; in ab8500_rtc_set_calibration()
241 int retval; in ab8500_rtc_get_calibration() local
244 retval = abx500_get_register_interruptible(dev, AB8500_RTC, in ab8500_rtc_get_calibration()
246 if (retval >= 0) { in ab8500_rtc_get_calibration()
258 return retval; in ab8500_rtc_get_calibration()
265 int retval; in ab8500_sysfs_store_rtc_calibration() local
273 retval = ab8500_rtc_set_calibration(dev, calibration); in ab8500_sysfs_store_rtc_calibration()
275 return retval ? retval : count; in ab8500_sysfs_store_rtc_calibration()
281 int retval = 0; in ab8500_sysfs_show_rtc_calibration() local
284 retval = ab8500_rtc_get_calibration(dev, &calibration); in ab8500_sysfs_show_rtc_calibration()
285 if (retval < 0) { in ab8500_sysfs_show_rtc_calibration()
288 return retval; in ab8500_sysfs_show_rtc_calibration()