Lines Matching refs:RK_BLK_SIZE
313 memset(buf, '\0', RK_INIT_OFFSET * RK_BLK_SIZE); in rkcommon_set_header0()
317 hdr->init_size = spl_params.init_size / RK_BLK_SIZE; in rkcommon_set_header0()
329 hdr->init_size + spl_params.boot_size / RK_BLK_SIZE; in rkcommon_set_header0()
332 hdr->init_size + RK_MAX_BOOT_SIZE / RK_BLK_SIZE; in rkcommon_set_header0()
334 rc4_encode(buf, RK_BLK_SIZE, rc4_key); in rkcommon_set_header0()
346 memset(buf, '\0', RK_INIT_OFFSET * RK_BLK_SIZE); in rkcommon_set_header0_v2()
355 image_sector_count = image_size_array[i] / RK_BLK_SIZE; in rkcommon_set_header0_v2()
359 image_ptr = buf + sector_offset * RK_BLK_SIZE; in rkcommon_set_header0_v2()
427 hdr1_offset = header0->init_offset * RK_BLK_SIZE; in rkcommon_parse_header()
509 init_size = init_size * RK_BLK_SIZE; in rkcommon_print_header()
511 boot_size = boot_size * RK_BLK_SIZE; in rkcommon_print_header()
525 init_size = header0.init_size * RK_BLK_SIZE; in rkcommon_print_header()
526 boot_size = header0.init_boot_size * RK_BLK_SIZE - init_size; in rkcommon_print_header()
543 int step = (remaining > RK_BLK_SIZE) ? RK_BLK_SIZE : remaining; in rkcommon_rc4_encode_spl()
546 offset += RK_BLK_SIZE; in rkcommon_rc4_encode_spl()