OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:bintobcd
(Results
1 - 25
of
37
) sorted by relevancy
1
2
/src/sys/arch/sparc64/dev/
bq4802_ebus.c
166
regs[BQ4802_SEC] =
bintobcd
(dt->dt_sec);
167
regs[BQ4802_MIN] =
bintobcd
(dt->dt_min);
172
regs[BQ4802_HOUR] =
bintobcd
(val);
173
regs[BQ4802_WDAY] =
bintobcd
(dt->dt_wday);
174
regs[BQ4802_DAY] =
bintobcd
(dt->dt_day);
175
regs[BQ4802_MONTH] =
bintobcd
(dt->dt_mon);
176
regs[BQ4802_YEAR] =
bintobcd
(dt->dt_year % 100);
177
regs[BQ4802_CENT] =
bintobcd
(dt->dt_year / 100);
/src/sys/arch/arm/marvell/
mvsocrtc.c
159
reg = (
bintobcd
(dt->dt_sec) << MVSOCRTC_SECOND_OFFSET) |
160
(
bintobcd
(dt->dt_min) << MVSOCRTC_MINUTE_OFFSET) |
161
(
bintobcd
(dt->dt_hour) << MVSOCRTC_HOUR_OFFSET) |
162
(
bintobcd
(dt->dt_wday) << MVSOCRTC_WDAY_OFFSET);
167
reg = (
bintobcd
(dt->dt_day) << MVSOCRTC_DAY_OFFSET) |
168
(
bintobcd
(dt->dt_mon) << MVSOCRTC_MONTH_OFFSET) |
169
(
bintobcd
(dt->dt_year % 100) << MVSOCRTC_YEAR_OFFSET);
/src/sys/arch/sgimips/dev/
dsclock.c
172
regs[DS1286_SEC] =
bintobcd
(dt->dt_sec);
173
regs[DS1286_MIN] =
bintobcd
(dt->dt_min);
174
regs[DS1286_HOUR] =
bintobcd
(dt->dt_hour) & DS1286_HOUR_24HR_MASK;
175
regs[DS1286_DOW] =
bintobcd
(dt->dt_wday);
176
regs[DS1286_DOM] =
bintobcd
(dt->dt_day);
180
regs[DS1286_MONTH] |=
bintobcd
(dt->dt_mon) & DS1286_MONTH_MASK;
182
regs[DS1286_YEAR] =
bintobcd
(TO_IRIX_YEAR(dt->dt_year));
dpclock.c
212
regs[DP8573A_SECOND] =
bintobcd
(dt->dt_sec);
213
regs[DP8573A_MINUTE] =
bintobcd
(dt->dt_min);
214
regs[DP8573A_HOUR] =
bintobcd
(dt->dt_hour) & DP8573A_HOUR_24HR_MASK;
215
regs[DP8573A_DOW] =
bintobcd
(dt->dt_wday);
216
regs[DP8573A_DOM] =
bintobcd
(dt->dt_day);
217
regs[DP8573A_MONTH] =
bintobcd
(dt->dt_mon);
218
regs[DP8573A_YEAR] =
bintobcd
(TO_IRIX_YEAR(dt->dt_year));
/src/sys/dev/ic/
mk48txx.c
177
(*sc->sc_nvwr)(sc, clkoff + MK48TXX_ISEC,
bintobcd
(dt->dt_sec));
178
(*sc->sc_nvwr)(sc, clkoff + MK48TXX_IMIN,
bintobcd
(dt->dt_min));
179
(*sc->sc_nvwr)(sc, clkoff + MK48TXX_IHOUR,
bintobcd
(dt->dt_hour));
180
(*sc->sc_nvwr)(sc, clkoff + MK48TXX_IWDAY,
bintobcd
(dt->dt_wday));
181
(*sc->sc_nvwr)(sc, clkoff + MK48TXX_IDAY,
bintobcd
(dt->dt_day));
182
(*sc->sc_nvwr)(sc, clkoff + MK48TXX_IMON,
bintobcd
(dt->dt_mon));
183
(*sc->sc_nvwr)(sc, clkoff + MK48TXX_IYEAR,
bintobcd
(year));
190
&& (csr & MK48TXX_CSR_CENT_MASK) !=
bintobcd
(cent)) {
192
csr |= MK48TXX_CSR_CENT_MASK &
bintobcd
(cent);
/src/sys/arch/next68k/next68k/
rtc.c
327
rtc_write(RTC_SEC,
bintobcd
(dt->dt_sec));
328
rtc_write(RTC_MIN,
bintobcd
(dt->dt_min));
333
rtc_write(RTC_HRS,
bintobcd
(12) | 0x80);
336
rtc_write(RTC_HRS,
bintobcd
(dt->dt_hour) | 0x80);
338
rtc_write(RTC_HRS,
bintobcd
(12) | 0x80 | 0x20);
342
bintobcd
(dt->dt_hour - 12) | 0x80 | 0x20);
346
rtc_write(RTC_HRS,
bintobcd
(dt->dt_hour));
348
rtc_write(RTC_DAY,
bintobcd
(dt->dt_wday));
349
rtc_write(RTC_DATE,
bintobcd
(dt->dt_day));
350
rtc_write(RTC_MON,
bintobcd
(dt->dt_mon))
[
all
...]
/src/sys/arch/sgimips/mace/
mcclock_mace.c
210
regs[DS1687_SOFT_SEC] =
bintobcd
(dt->dt_sec);
211
regs[DS1687_SOFT_MIN] =
bintobcd
(dt->dt_min);
212
regs[DS1687_SOFT_HOUR] =
bintobcd
(dt->dt_hour);
213
regs[DS1687_SOFT_DOW] =
bintobcd
(dt->dt_wday);
214
regs[DS1687_SOFT_DOM] =
bintobcd
(dt->dt_day);
215
regs[DS1687_SOFT_MONTH] =
bintobcd
(dt->dt_mon);
216
regs[DS1687_SOFT_YEAR] =
bintobcd
(dt->dt_year % 100);
217
regs[DS1687_SOFT_CENTURY] =
bintobcd
(dt->dt_year / 100);
/src/sys/arch/x86/isa/
rtc.c
313
mc146818_write(NULL, centb,
bintobcd
(clockcentury));
357
rtclk[MC_SEC] =
bintobcd
(dt->dt_sec);
358
rtclk[MC_MIN] =
bintobcd
(dt->dt_min);
359
rtclk[MC_HOUR] =
bintobcd
(dt->dt_hour);
361
rtclk[MC_YEAR] =
bintobcd
(dt->dt_year % 100);
362
rtclk[MC_MONTH] =
bintobcd
(dt->dt_mon);
363
rtclk[MC_DOM] =
bintobcd
(dt->dt_day);
372
century =
bintobcd
(dt->dt_year / 100);
/src/sys/arch/evbmips/sbmips/
rtc.c
163
WRITERTC(sc, X1241REG_HR,
bintobcd
(ymdhms->dt_hour) | X1241REG_HR_MIL);
164
WRITERTC(sc, X1241REG_MN,
bintobcd
(ymdhms->dt_min));
165
WRITERTC(sc, X1241REG_SC,
bintobcd
(ymdhms->dt_sec));
171
WRITERTC(sc, X1241REG_MO,
bintobcd
(ymdhms->dt_mon));
172
WRITERTC(sc, X1241REG_DT,
bintobcd
(ymdhms->dt_day));
173
WRITERTC(sc, X1241REG_YR,
bintobcd
(year));
174
WRITERTC(sc, X1241REG_Y2K,
bintobcd
(y2k));
268
hour =
bintobcd
(ymdhms->dt_hour);
273
WRITERTC(sc, M41T81_SEC,
bintobcd
(ymdhms->dt_sec));
274
WRITERTC(sc, M41T81_MIN,
bintobcd
(ymdhms->dt_min))
[
all
...]
/src/sys/arch/sbmips/sbmips/
rtc.c
163
WRITERTC(sc, X1241REG_HR,
bintobcd
(ymdhms->dt_hour) | X1241REG_HR_MIL);
164
WRITERTC(sc, X1241REG_MN,
bintobcd
(ymdhms->dt_min));
165
WRITERTC(sc, X1241REG_SC,
bintobcd
(ymdhms->dt_sec));
171
WRITERTC(sc, X1241REG_MO,
bintobcd
(ymdhms->dt_mon));
172
WRITERTC(sc, X1241REG_DT,
bintobcd
(ymdhms->dt_day));
173
WRITERTC(sc, X1241REG_YR,
bintobcd
(year));
174
WRITERTC(sc, X1241REG_Y2K,
bintobcd
(y2k));
268
hour =
bintobcd
(ymdhms->dt_hour);
273
WRITERTC(sc, M41T81_SEC,
bintobcd
(ymdhms->dt_sec));
274
WRITERTC(sc, M41T81_MIN,
bintobcd
(ymdhms->dt_min))
[
all
...]
/src/sys/arch/arm/s3c2xx0/
s3c2440_rtc.c
158
bus_space_write_1(sc->sc_iot, sc->sc_ioh, RTC_BCDSEC,
bintobcd
(dt->dt_sec));
159
bus_space_write_1(sc->sc_iot, sc->sc_ioh, RTC_BCDMIN,
bintobcd
(dt->dt_min));
160
bus_space_write_1(sc->sc_iot, sc->sc_ioh, RTC_BCDHOUR,
bintobcd
(dt->dt_hour));
161
bus_space_write_1(sc->sc_iot, sc->sc_ioh, RTC_BCDDATE,
bintobcd
(dt->dt_day));
162
bus_space_write_1(sc->sc_iot, sc->sc_ioh, RTC_BCDDAY,
bintobcd
(dt->dt_wday));
163
bus_space_write_1(sc->sc_iot, sc->sc_ioh, RTC_BCDMON,
bintobcd
(dt->dt_mon));
164
bus_space_write_1(sc->sc_iot, sc->sc_ioh, RTC_BCDYEAR,
bintobcd
(dt->dt_year-SSRTC_YEAR_ZERO));
/src/sys/arch/evbppc/walnut/dev/
ds1743.c
237
ds1743_write(sc, DS_SECONDS,
bintobcd
(dt->dt_sec) & 0x7f);
238
ds1743_write(sc, DS_MINUTES,
bintobcd
(dt->dt_min) & 0x7f);
239
ds1743_write(sc, DS_HOURS,
bintobcd
(dt->dt_hour) & 0x3f);
240
ds1743_write(sc, DS_DATE,
bintobcd
(dt->dt_day) & 0x3f);
241
ds1743_write(sc, DS_MONTH,
bintobcd
(dt->dt_mon) & 0x1f);
242
ds1743_write(sc, DS_YEAR,
bintobcd
(dt->dt_year % 100));
244
|
bintobcd
(dt->dt_year / 100)));
/src/sys/arch/hp300/stand/mkboot/
mkboot.c
72
#define
bintobcd
(bin) ((((bin) / 10) << 4) | ((bin) % 10))
macro
297
*toc++ =
bintobcd
(tm->tm_mon + 1);
298
*toc++ =
bintobcd
(tm->tm_mday);
299
*toc++ =
bintobcd
(tm->tm_year);
300
*toc++ =
bintobcd
(tm->tm_hour);
301
*toc++ =
bintobcd
(tm->tm_min);
302
*toc =
bintobcd
(tm->tm_sec);
/src/sys/arch/luna68k/dev/
timekeeper.c
152
chiptime[MK_SEC] =
bintobcd
(dt->dt_sec);
153
chiptime[MK_MIN] =
bintobcd
(dt->dt_min);
154
chiptime[MK_HOUR] =
bintobcd
(dt->dt_hour);
155
chiptime[MK_DOW] =
bintobcd
(dt->dt_wday);
156
chiptime[MK_DOM] =
bintobcd
(dt->dt_day);
157
chiptime[MK_MONTH] =
bintobcd
(dt->dt_mon);
158
chiptime[MK_YEAR] =
bintobcd
(dt->dt_year - YEAR0);
/src/sys/dev/i2c/
ac100.c
245
ac100_write(sc, AC100_RTC_SEC_REG,
bintobcd
(dt->dt_sec) & 0x7f);
246
ac100_write(sc, AC100_RTC_MIN_REG,
bintobcd
(dt->dt_min) & 0x7f);
247
ac100_write(sc, AC100_RTC_HOU_REG,
bintobcd
(dt->dt_hour) & 0x3f);
248
ac100_write(sc, AC100_RTC_WEE_REG,
bintobcd
(dt->dt_wday) & 0x7);
249
ac100_write(sc, AC100_RTC_DAY_REG,
bintobcd
(dt->dt_day) & 0x3f);
250
ac100_write(sc, AC100_RTC_MON_REG,
bintobcd
(dt->dt_mon) & 0x1f);
252
bintobcd
(dt->dt_year - POSIX_BASE_YEAR) & 0xff);
pcf8563.c
180
bcd[PCF8563_R_SECOND] =
bintobcd
(dt->dt_sec);
181
bcd[PCF8563_R_MINUTE] =
bintobcd
(dt->dt_min);
182
bcd[PCF8563_R_HOUR] =
bintobcd
(dt->dt_hour);
183
bcd[PCF8563_R_DAY] =
bintobcd
(dt->dt_day);
184
bcd[PCF8563_R_WEEKDAY] =
bintobcd
(dt->dt_wday);
185
bcd[PCF8563_R_MONTH] =
bintobcd
(dt->dt_mon);
186
bcd[PCF8563_R_YEAR] =
bintobcd
(dt->dt_year % 100);
r2025.c
178
bcd[R2025_REG_SEC] =
bintobcd
(dt->dt_sec) & R2025_REG_SEC_MASK;
179
bcd[R2025_REG_MIN] =
bintobcd
(dt->dt_min) & R2025_REG_MIN_MASK;
180
bcd[R2025_REG_HOUR] =
bintobcd
(dt->dt_hour) & R2025_REG_HOUR_MASK;
181
bcd[R2025_REG_WDAY] =
bintobcd
(dt->dt_wday) & R2025_REG_WDAY_MASK;
182
bcd[R2025_REG_DAY] =
bintobcd
(dt->dt_day) & R2025_REG_DAY_MASK;
183
bcd[R2025_REG_MON] = (
bintobcd
(dt->dt_mon) & R2025_REG_MON_MASK)
185
bcd[R2025_REG_YEAR] =
bintobcd
(dt->dt_year % 100) & R2025_REG_YEAR_MASK;
rs5c372.c
202
bcd[RS5C372_SECONDS] =
bintobcd
(dt->dt_sec);
203
bcd[RS5C372_MINUTES] =
bintobcd
(dt->dt_min);
204
bcd[RS5C372_HOURS] =
bintobcd
(dt->dt_hour);
205
bcd[RS5C372_DATE] =
bintobcd
(dt->dt_day);
206
bcd[RS5C372_DAY] =
bintobcd
(dt->dt_wday);
207
bcd[RS5C372_MONTH] =
bintobcd
(dt->dt_mon);
208
bcd[RS5C372_YEAR] =
bintobcd
(dt->dt_year % 100);
s390.c
158
bcd[S390_RT1_SECOND] =
bintobcd
(dt->dt_sec);
159
bcd[S390_RT1_MINUTE] =
bintobcd
(dt->dt_min);
160
bcd[S390_RT1_HOUR] =
bintobcd
(dt->dt_hour);
161
bcd[S390_RT1_DAY] =
bintobcd
(dt->dt_day);
162
bcd[S390_RT1_WDAY] =
bintobcd
(dt->dt_wday);
163
bcd[S390_RT1_MONTH] =
bintobcd
(dt->dt_mon);
164
bcd[S390_RT1_YEAR] =
bintobcd
(dt->dt_year % 100);
m41t00.c
315
bcd[M41T00_SEC] =
bintobcd
(dt->dt_sec);
316
bcd[M41T00_MIN] =
bintobcd
(dt->dt_min);
317
bcd[M41T00_CENHR] =
bintobcd
(dt->dt_hour);
318
bcd[M41T00_DATE] =
bintobcd
(dt->dt_day);
319
bcd[M41T00_DAY] =
bintobcd
(dt->dt_wday);
320
bcd[M41T00_MONTH] =
bintobcd
(dt->dt_mon);
321
bcd[M41T00_YEAR] =
bintobcd
(dt->dt_year % 100);
m41st84.c
429
bcd[M41ST84_REG_CSEC] =
bintobcd
(0); /* must always write as 0 */
430
bcd[M41ST84_REG_SEC] =
bintobcd
(dt->dt_sec);
431
bcd[M41ST84_REG_MIN] =
bintobcd
(dt->dt_min);
432
bcd[M41ST84_REG_CENHR] =
bintobcd
(dt->dt_hour);
433
bcd[M41ST84_REG_DATE] =
bintobcd
(dt->dt_day);
434
bcd[M41ST84_REG_DAY] =
bintobcd
(dt->dt_wday);
435
bcd[M41ST84_REG_MONTH] =
bintobcd
(dt->dt_mon);
436
bcd[M41ST84_REG_YEAR] =
bintobcd
((dt->dt_year - POSIX_BASE_YEAR) % 100);
max6900.c
346
bcd[MAX6900_BURST_SECOND] =
bintobcd
(dt->dt_sec);
347
bcd[MAX6900_BURST_MINUTE] =
bintobcd
(dt->dt_min);
348
bcd[MAX6900_BURST_HOUR] =
bintobcd
(dt->dt_hour) & MAX6900_HOUR_24MASK;
349
bcd[MAX6900_BURST_DATE] =
bintobcd
(dt->dt_day);
350
bcd[MAX6900_BURST_WDAY] =
bintobcd
(dt->dt_wday);
351
bcd[MAX6900_BURST_MONTH] =
bintobcd
(dt->dt_mon);
352
bcd[MAX6900_BURST_YEAR] =
bintobcd
(dt->dt_year % 100);
354
bcd[MAX6900_BURST_CONTROL] =
bintobcd
(dt->dt_year / 100);
x1226.c
347
bcd[X1226_REG_SC - X1226_REG_RTC_BASE] =
bintobcd
(dt->dt_sec);
348
bcd[X1226_REG_MN - X1226_REG_RTC_BASE] =
bintobcd
(dt->dt_min);
349
bcd[X1226_REG_HR - X1226_REG_RTC_BASE] =
bintobcd
(dt->dt_hour)
351
bcd[X1226_REG_DW - X1226_REG_RTC_BASE] =
bintobcd
(dt->dt_wday);
352
bcd[X1226_REG_DT - X1226_REG_RTC_BASE] =
bintobcd
(dt->dt_day);
353
bcd[X1226_REG_MO - X1226_REG_RTC_BASE] =
bintobcd
(dt->dt_mon);
354
bcd[X1226_REG_YR - X1226_REG_RTC_BASE] =
bintobcd
(dt->dt_year % 100);
355
bcd[X1226_REG_Y2K - X1226_REG_RTC_BASE] =
bintobcd
(dt->dt_year / 100);
em3027.c
432
w.sec =
bintobcd
(dt->dt_sec);
433
w.min =
bintobcd
(dt->dt_min);
434
w.hour =
bintobcd
(dt->dt_hour);
435
w.day =
bintobcd
(dt->dt_day);
436
w.wday =
bintobcd
(dt->dt_wday + 1);
437
w.mon =
bintobcd
(dt->dt_mon);
438
w.year =
bintobcd
(dt->dt_year - EM3027_BASE_YEAR);
/src/sys/dev/
clock_subr.h
65
bintobcd
(unsigned int bin)
function
Completed in 30 milliseconds
1
2
Indexes created Sun May 17 00:24:36 UTC 2026