Lines Matching +full:0 +full:- +full:mon
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
50 #define RX8803_TIME 0x0
51 #define RX8803_FLAGS 0xE
52 #define RX8803_CTRL 0xF
54 #define RX8803_FLAGS_V1F BIT(0)
57 #define RX8803_CTRL_DISABLE BIT(0)
68 uint8_t mon; member
74 {NULL, 0},
93 if (rc != 0) in rx8803_check_status()
101 return (0); in rx8803_check_status()
112 if (rc != 0) in rx8803_gettime()
119 if (rc != 0) in rx8803_gettime()
122 bcd.nsec = 0; in rx8803_gettime()
123 bcd.sec = data.sec & 0x7F; in rx8803_gettime()
124 bcd.min = data.min & 0x7F; in rx8803_gettime()
125 bcd.hour = data.hour & 0x3F; in rx8803_gettime()
126 bcd.dow = flsl(data.dow & 0x7F) - 1; in rx8803_gettime()
127 bcd.day = data.day & 0x3F; in rx8803_gettime()
128 bcd.mon = (data.mon & 0x1F); in rx8803_gettime()
145 ts->tv_sec -= utc_offset(); in rx8803_settime()
154 data.mon = bcd.mon; in rx8803_settime()
157 if (ts->tv_nsec > HALF_OF_SEC_NS) in rx8803_settime()
162 if (rc != 0) in rx8803_settime()
168 if (rc != 0) in rx8803_settime()
176 if (rc != 0) in rx8803_settime()
182 if (rc != 0) in rx8803_settime()
187 if (rc != 0) in rx8803_settime()
202 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) in rx8803_probe()
215 clock_register_flags(dev, 1000000, 0); in rx8803_attach()
218 return (0); in rx8803_attach()
228 return (0); in rx8803_detach()
245 0, /* We don't need softc for this one. */