Home
last modified time | relevance | path

Searched refs:RK_BLK_SIZE (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/tools/
H A Drkcommon.c161 memset(buf, '\0', RK_INIT_OFFSET * RK_BLK_SIZE); in rkcommon_set_header0()
166 hdr->init_size = DIV_ROUND_UP(file_size, RK_BLK_SIZE); in rkcommon_set_header0()
183 hdr->init_boot_size = hdr->init_size + RK_MAX_BOOT_SIZE / RK_BLK_SIZE; in rkcommon_set_header0()
185 rc4_encode(buf, RK_BLK_SIZE, rc4_key); in rkcommon_set_header0()
241 hdr1_offset = header0->init_offset * RK_BLK_SIZE; in rkcommon_parse_header()
315 printf("Data Size: %d bytes\n", header0.init_size * RK_BLK_SIZE); in rkcommon_print_header()
323 int step = (remaining > RK_BLK_SIZE) ? RK_BLK_SIZE : remaining; in rkcommon_rc4_encode_spl()
326 offset += RK_BLK_SIZE; in rkcommon_rc4_encode_spl()
H A Drkcommon.h11 RK_BLK_SIZE = 512, enumerator
15 RK_SPL_HDR_START = RK_INIT_OFFSET * RK_BLK_SIZE,
H A Drkspi.c16 RKSPI_SECT_LEN = RK_BLK_SIZE * 4,