Lines Matching full:error

66 	int error;  in da9063_rtc_read_ct()  local
70 error = DA9063_READ(sc->parent, DA9063_COUNT_S, &sec); in da9063_rtc_read_ct()
71 if (error != 0) in da9063_rtc_read_ct()
72 return (error); in da9063_rtc_read_ct()
76 error = DA9063_READ(sc->parent, DA9063_COUNT_MI, &min); in da9063_rtc_read_ct()
77 if (error != 0) in da9063_rtc_read_ct()
78 return (error); in da9063_rtc_read_ct()
80 error = DA9063_READ(sc->parent, DA9063_COUNT_H, &hour); in da9063_rtc_read_ct()
81 if (error != 0) in da9063_rtc_read_ct()
82 return (error); in da9063_rtc_read_ct()
84 error = DA9063_READ(sc->parent, DA9063_COUNT_D, &day); in da9063_rtc_read_ct()
85 if (error != 0) in da9063_rtc_read_ct()
86 return (error); in da9063_rtc_read_ct()
88 error = DA9063_READ(sc->parent, DA9063_COUNT_MO, &mon); in da9063_rtc_read_ct()
89 if (error != 0) in da9063_rtc_read_ct()
90 return (error); in da9063_rtc_read_ct()
92 error = DA9063_READ(sc->parent, DA9063_COUNT_Y, &year); in da9063_rtc_read_ct()
93 if (error != 0) in da9063_rtc_read_ct()
94 return (error); in da9063_rtc_read_ct()
112 int error; in da9063_rtc_write_ct() local
116 error = DA9063_WRITE(sc->parent, DA9063_COUNT_S, ct->sec); in da9063_rtc_write_ct()
117 if (error != 0) in da9063_rtc_write_ct()
118 return (error); in da9063_rtc_write_ct()
120 error = DA9063_WRITE(sc->parent, DA9063_COUNT_MI, ct->min); in da9063_rtc_write_ct()
121 if (error != 0) in da9063_rtc_write_ct()
122 return (error); in da9063_rtc_write_ct()
124 error = DA9063_WRITE(sc->parent, DA9063_COUNT_H, ct->hour); in da9063_rtc_write_ct()
125 if (error != 0) in da9063_rtc_write_ct()
126 return (error); in da9063_rtc_write_ct()
128 error = DA9063_WRITE(sc->parent, DA9063_COUNT_D, ct->day); in da9063_rtc_write_ct()
129 if (error != 0) in da9063_rtc_write_ct()
130 return (error); in da9063_rtc_write_ct()
132 error = DA9063_WRITE(sc->parent, DA9063_COUNT_MO, ct->mon); in da9063_rtc_write_ct()
133 if (error != 0) in da9063_rtc_write_ct()
134 return (error); in da9063_rtc_write_ct()
136 error = DA9063_WRITE(sc->parent, DA9063_COUNT_Y, in da9063_rtc_write_ct()
139 if (error != 0) in da9063_rtc_write_ct()
140 return (error); in da9063_rtc_write_ct()
150 int error; in da9063_rtc_gettime() local
156 error = da9063_rtc_read_ct(sc, &ct); in da9063_rtc_gettime()
157 if (error != 0) in da9063_rtc_gettime()
158 goto error; in da9063_rtc_gettime()
167 error = da9063_rtc_read_ct(sc, &ct); in da9063_rtc_gettime()
168 if (error != 0) in da9063_rtc_gettime()
169 goto error; in da9063_rtc_gettime()
176 error = clock_ct_to_ts(&ct, ts); in da9063_rtc_gettime()
177 if (error != 0) in da9063_rtc_gettime()
178 return (error); in da9063_rtc_gettime()
182 error: in da9063_rtc_gettime()
184 return (error); in da9063_rtc_gettime()
192 int error; in da9063_rtc_settime() local
204 error = da9063_rtc_write_ct(sc, &ct); in da9063_rtc_settime()
207 return (error); in da9063_rtc_settime()
228 int error; in da9063_rtc_attach() local
236 error = DA9063_MODIFY(sc->parent, DA9063_CONTROL_E, 0, in da9063_rtc_attach()
238 if (error != 0) in da9063_rtc_attach()
239 return (error); in da9063_rtc_attach()
242 error = DA9063_MODIFY(sc->parent, DA9063_EN_32K, 0, in da9063_rtc_attach()
244 if (error != 0) in da9063_rtc_attach()
245 return (error); in da9063_rtc_attach()
248 error = DA9063_MODIFY(sc->parent, DA9063_ALARM_Y, in da9063_rtc_attach()
250 if (error != 0) in da9063_rtc_attach()
251 return (error); in da9063_rtc_attach()