Lines Matching refs:RK_BLK_SIZE
309 memset(buf, '\0', RK_INIT_OFFSET * RK_BLK_SIZE); in rkcommon_set_header0()
313 hdr->init_size = spl_params.init_size / RK_BLK_SIZE; in rkcommon_set_header0()
325 hdr->init_size + spl_params.boot_size / RK_BLK_SIZE; in rkcommon_set_header0()
328 hdr->init_size + RK_MAX_BOOT_SIZE / RK_BLK_SIZE; in rkcommon_set_header0()
330 rc4_encode(buf, RK_BLK_SIZE, rc4_key); in rkcommon_set_header0()
342 memset(buf, '\0', RK_INIT_OFFSET * RK_BLK_SIZE); in rkcommon_set_header0_v2()
351 image_sector_count = image_size_array[i] / RK_BLK_SIZE; in rkcommon_set_header0_v2()
355 image_ptr = buf + sector_offset * RK_BLK_SIZE; in rkcommon_set_header0_v2()
423 hdr1_offset = header0->init_offset * RK_BLK_SIZE; in rkcommon_parse_header()
505 init_size = init_size * RK_BLK_SIZE; in rkcommon_print_header()
507 boot_size = boot_size * RK_BLK_SIZE; in rkcommon_print_header()
521 init_size = header0.init_size * RK_BLK_SIZE; in rkcommon_print_header()
522 boot_size = header0.init_boot_size * RK_BLK_SIZE - init_size; in rkcommon_print_header()
539 int step = (remaining > RK_BLK_SIZE) ? RK_BLK_SIZE : remaining; in rkcommon_rc4_encode_spl()
542 offset += RK_BLK_SIZE; in rkcommon_rc4_encode_spl()