Home
last modified time | relevance | path

Searched refs:secs (Results 1 – 25 of 50) sorted by relevance

12

/openbmc/u-boot/drivers/rtc/
H A Dmxsrtc.c18 int mxs_rtc_set_time(uint32_t secs) in mxs_rtc_set_time() argument
23 writel(secs, &rtc_regs->hw_rtc_seconds); in mxs_rtc_set_time()
42 uint32_t secs; in rtc_get() local
44 secs = readl(&rtc_regs->hw_rtc_seconds); in rtc_get()
45 rtc_to_tm(secs, time); in rtc_get()
52 uint32_t secs; in rtc_set() local
54 secs = rtc_mktime(time); in rtc_set()
56 return mxs_rtc_set_time(secs); in rtc_set()
H A Drtc-lib.c40 unsigned int month, year, secs; in rtc_to_tm() local
43 days = div_u64_rem(time, 86400, &secs); in rtc_to_tm()
70 tm->tm_hour = secs / 3600; in rtc_to_tm()
71 secs -= tm->tm_hour * 3600; in rtc_to_tm()
72 tm->tm_min = secs / 60; in rtc_to_tm()
73 tm->tm_sec = secs - tm->tm_min * 60; in rtc_to_tm()
/openbmc/qemu/hw/block/
H A Dhd-geometry.c120 int cylinders, heads, secs, translation; in hd_geometry_guess() local
130 } else if (guess_disk_lchs(blk, &cylinders, &heads, &secs) < 0) { in hd_geometry_guess()
146 *psecs = secs; in hd_geometry_guess()
162 int hd_bios_chs_auto_trans(uint32_t cyls, uint32_t heads, uint32_t secs) in hd_bios_chs_auto_trans() argument
164 return cyls <= 1024 && heads <= 16 && secs <= 63 in hd_bios_chs_auto_trans()
H A Dblock.c261 if (!conf->cyls && !conf->heads && !conf->secs) { in blkconf_geometry()
263 &conf->cyls, &conf->heads, &conf->secs, in blkconf_geometry()
266 *ptrans = hd_bios_chs_auto_trans(conf->cyls, conf->heads, conf->secs); in blkconf_geometry()
268 if (conf->cyls || conf->heads || conf->secs) { in blkconf_geometry()
277 if (conf->secs < 1 || conf->secs > secs_max) { in blkconf_geometry()
/openbmc/u-boot/board/gateworks/gw_ventana/
H A Dgsc.c183 unsigned long secs = 0; in do_gsc_sleep() local
188 secs = simple_strtoul(argv[1], NULL, 10); in do_gsc_sleep()
189 printf("GSC Sleeping for %ld seconds\n", secs); in do_gsc_sleep()
192 reg = (secs >> 24) & 0xff; in do_gsc_sleep()
195 reg = (secs >> 16) & 0xff; in do_gsc_sleep()
198 reg = (secs >> 8) & 0xff; in do_gsc_sleep()
201 reg = secs & 0xff; in do_gsc_sleep()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/libbpf/files/
H A D0001-libbpf-check-for-empty-BTF-data-section-in-btf_parse.patch32 + if (!secs.btf_data->d_buf) {
38 if (secs.btf_base_data) {
39 dist_base_btf = btf_new(secs.btf_base_data->d_buf, secs.btf_base_data->d_size,
/openbmc/u-boot/arch/arm/include/asm/ti-common/
H A Domap_wdt.h24 #define GET_WLDR_VAL(secs) (0xffffffff - ((secs) * (32768/(1<<PTV))) + 1) argument
/openbmc/qemu/include/hw/block/
H A Dblock.h30 uint32_t cyls, heads, secs; member
78 DEFINE_PROP_UINT32("secs", _state, _conf.secs, 0), \
108 int hd_bios_chs_auto_trans(uint32_t cyls, uint32_t heads, uint32_t secs);
/openbmc/openbmc-tools/dbus-vis/
H A Dipmi_capture.js211 function QueueDbusMonitorFileSize(secs = 5) { argument
215 QueueDbusMonitorFileSize(secs);
216 }, secs * 1000);
244 function QueueBMCConsoleHello(secs = 3) { argument
250 QueueBMCConsoleHello(secs);
255 }, secs * 1000);
/openbmc/qemu/hw/ide/
H A Dide-bus.c87 int16_t *cyls, int8_t *heads, int8_t *secs) in ide_get_geometry() argument
97 *secs = s->sectors; in ide_get_geometry()
/openbmc/qemu/chardev/
H A Dchar-mux.c59 int secs; in mux_chr_write() local
66 secs = ti / 1000; in mux_chr_write()
69 secs / 3600, in mux_chr_write()
70 (secs / 60) % 60, in mux_chr_write()
71 secs % 60, in mux_chr_write()
/openbmc/phosphor-certificate-manager/
H A Dx509_utils.cpp126 int secs = 0; in validateCertificateStartDate() local
133 ASN1_TIME_diff(&days, &secs, epoch.get(), notBefore); in validateCertificateStartDate()
135 if (days < 0 || secs < 0) in validateCertificateStartDate()
H A Dcertificate.cpp537 int secs = 0; in populateProperties() local
545 ASN1_TIME_diff(&days, &secs, epoch.get(), notAfter); in populateProperties()
546 validNotAfter((days * dayToSeconds) + secs); in populateProperties()
549 ASN1_TIME_diff(&days, &secs, epoch.get(), notBefore); in populateProperties()
550 validNotBefore((days * dayToSeconds) + secs); in populateProperties()
/openbmc/phosphor-power/phosphor-regulators/src/
H A Djournal.cpp161 time_t secs = usec / 1000000; in getTimeStamp() local
164 struct tm* timeStruct = localtime(&secs); in getTimeStamp()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Djournal.cpp163 time_t secs = usec / 1000000; in getTimeStamp() local
166 struct tm* timeStruct = gmtime(&secs); in getTimeStamp()
/openbmc/openbmc/poky/scripts/
H A Dbuildstats-diff122 def hms_time(secs): argument
124 h = int(secs / 3600)
125 m = int((secs % 3600) / 60)
126 s = secs % 60
/openbmc/qemu/hw/core/
H A Dloader.c1410 static GList *add_romsec_to_list(GList *secs, hwaddr base, int se) in add_romsec_to_list() argument
1415 return g_list_prepend(secs, cand); in add_romsec_to_list()
1424 GList *it, *secs = NULL; in rom_find_largest_gap_between() local
1442 secs = add_romsec_to_list(secs, rom->addr, 1); in rom_find_largest_gap_between()
1445 secs = add_romsec_to_list(secs, rom->addr + rom->romsize, -1); in rom_find_largest_gap_between()
1450 secs = add_romsec_to_list(secs, base + size, 1); in rom_find_largest_gap_between()
1452 secs = g_list_sort_with_data(secs, sort_secs, NULL); in rom_find_largest_gap_between()
1454 for (it = g_list_first(secs); it; it = g_list_next(it)) { in rom_find_largest_gap_between()
1468 g_list_free_full(secs, g_free); in rom_find_largest_gap_between()
/openbmc/qemu/include/hw/ide/
H A Dide-bus.h39 int16_t *cyls, int8_t *heads, int8_t *secs);
/openbmc/u-boot/net/
H A Dlink_local.c82 static inline unsigned random_delay_ms(unsigned secs) in random_delay_ms() argument
84 return rand_r(&seed) % (secs * 1000); in random_delay_ms()
/openbmc/qemu/tests/qtest/
H A Dhd-geo-test.c28 static char *create_test_img(int secs) in create_test_img() argument
35 ret = ftruncate(fd, (off_t)secs * 512); in create_test_img()
47 int cyls, heads, secs, trans; member
122 int s = expected_chst->secs; in test_cmos_drive_cyl()
345 int secs = img_secs[backend_small]; in test_ide_drive_user() local
346 const CHST expected_chst = { secs / (4 * 32) , 4, 32, trans }; in test_ide_drive_user()
353 expected_chst.secs); in test_ide_drive_user()
/openbmc/phosphor-fan-presence/monitor/
H A Dfan_error.cpp287 time_t secs = usec / 1000000; in getTimeStamp() local
290 struct tm* timeStruct = localtime(&secs); in getTimeStamp()
/openbmc/qemu/hw/cxl/
H A Dcxl-mailbox-utils.c1752 int secs = 0; in get_sanitize_duration() local
1755 secs = 4; in get_sanitize_duration()
1757 secs = 8; in get_sanitize_duration()
1759 secs = 15; in get_sanitize_duration()
1761 secs = 30; in get_sanitize_duration()
1763 secs = 60; in get_sanitize_duration()
1765 secs = 2 * 60; in get_sanitize_duration()
1767 secs = 4 * 60; in get_sanitize_duration()
1769 secs = 8 * 60; in get_sanitize_duration()
1771 secs = 15 * 60; in get_sanitize_duration()
[all …]
/openbmc/qemu/block/
H A Dvvfat.c345 static int sector2CHS(mbr_chs_t *chs, int spos, int cyls, int heads, int secs) in sector2CHS() argument
348 sector = spos % secs; spos /= secs; in sector2CHS()
365 static void init_mbr(BDRVVVFATState *s, int cyls, int heads, int secs) in init_mbr() argument
381 cyls, heads, secs); in init_mbr()
383 cyls, heads, secs); in init_mbr()
896 const char *dirname, int heads, int secs, in init_directories() argument
1029 bootsector->sectors_per_track = cpu_to_le16(secs); in init_directories()
1140 int cyls, heads, secs; in vvfat_open() local
1186 secs = 36; in vvfat_open()
1189 secs = s->fat_type == 12 ? 18 : 36; in vvfat_open()
[all …]
H A Dqapi.c750 int64_t secs; in bdrv_snapshot_dump() local
760 secs = sn->vm_clock_nsec / 1000000000; in bdrv_snapshot_dump()
763 (int)(secs / 3600), in bdrv_snapshot_dump()
764 (int)((secs / 60) % 60), in bdrv_snapshot_dump()
765 (int)(secs % 60), in bdrv_snapshot_dump()
/openbmc/openpower-occ-control/
H A Docc_ffdc.cpp370 time_t secs = usec / 1000000; in getTimeStamp() local
373 struct tm* timeStruct = localtime(&secs); in getTimeStamp()

12