Home
last modified time | relevance | path

Searched refs:int_to_bcd (Results 1 – 7 of 7) sorted by relevance

/openbmc/libcper/generator/
H A Dcper-generate.c52 header->TimeStamp.Century = int_to_bcd(rand() % 100); in generate_cper_record()
53 header->TimeStamp.Year = int_to_bcd(rand() % 100); in generate_cper_record()
54 header->TimeStamp.Month = int_to_bcd(rand() % 12 + 1); in generate_cper_record()
55 header->TimeStamp.Day = int_to_bcd(rand() % 31 + 1); in generate_cper_record()
56 header->TimeStamp.Hours = int_to_bcd(rand() % 24 + 1); in generate_cper_record()
57 header->TimeStamp.Seconds = int_to_bcd(rand() % 60); in generate_cper_record()
H A Dgen-utils.h23 UINT8 int_to_bcd(int value);
/openbmc/libcper/
H A Dcper-utils.c267 out->Century = int_to_bcd(out->Century); in string_to_timestamp()
268 out->Year = int_to_bcd(out->Year); in string_to_timestamp()
269 out->Month = int_to_bcd(out->Month); in string_to_timestamp()
270 out->Day = int_to_bcd(out->Day); in string_to_timestamp()
271 out->Hours = int_to_bcd(out->Hours); in string_to_timestamp()
272 out->Minutes = int_to_bcd(out->Minutes); in string_to_timestamp()
273 out->Seconds = int_to_bcd(out->Seconds); in string_to_timestamp()
H A Dcommon-utils.c18 UINT8 int_to_bcd(int value) in int_to_bcd() function
H A Dcommon-utils.h7 UINT8 int_to_bcd(int value);
/openbmc/libcper/generator/sections/
H A Dgen-section-pcie.c39 *version = int_to_bcd(minor); in generate_section_pcie()
40 *version |= int_to_bcd(major) << 8; in generate_section_pcie()
/openbmc/libcper/sections/
H A Dcper-section-pcie.c155 UINT32 minor = int_to_bcd( in ir_section_pcie_to_cper()
157 UINT32 major = int_to_bcd( in ir_section_pcie_to_cper()