Lines Matching refs:spl_params
90 struct spl_params { struct
97 static struct spl_params spl_params = { 0 }; argument
148 spl_params.init_file = params->datafile; in rkcommon_check_params()
150 spl_params.boot_file = strchr(spl_params.init_file, ':'); in rkcommon_check_params()
151 if (spl_params.boot_file) { in rkcommon_check_params()
152 *spl_params.boot_file = '\0'; in rkcommon_check_params()
153 spl_params.boot_file += 1; in rkcommon_check_params()
156 size = rkcommon_get_aligned_size(params, spl_params.init_file); in rkcommon_check_params()
159 spl_params.init_size = size; in rkcommon_check_params()
162 if (spl_params.boot_file) { in rkcommon_check_params()
163 size = rkcommon_get_aligned_size(params, spl_params.boot_file); in rkcommon_check_params()
166 spl_params.boot_size = size; in rkcommon_check_params()
169 if (spl_params.init_size > rkcommon_get_spl_size(params)) { in rkcommon_check_params()
172 spl_params.init_size, rkcommon_get_spl_size(params)); in rkcommon_check_params()
230 hdr->init_size = cpu_to_le16(spl_params.init_size / RK_BLK_SIZE); in rkcommon_set_header0()
240 if (spl_params.boot_file) in rkcommon_set_header0()
241 init_boot_size = spl_params.init_size + spl_params.boot_size; in rkcommon_set_header0()
243 init_boot_size = spl_params.init_size + RK_MAX_BOOT_SIZE; in rkcommon_set_header0()
261 spl_params.init_size); in rkcommon_set_header()
263 if (spl_params.boot_file) { in rkcommon_set_header()
266 spl_params.init_size, in rkcommon_set_header()
267 spl_params.boot_size); in rkcommon_set_header()
441 spl_params.init_size + spl_params.boot_size; in rkcommon_vrec_header()
529 ret = copy_file(params, ifd, spl_params.init_file, in rockchip_copy_image()
530 spl_params.init_size); in rockchip_copy_image()
534 if (spl_params.boot_file) { in rockchip_copy_image()
535 ret = copy_file(params, ifd, spl_params.boot_file, in rockchip_copy_image()
536 spl_params.boot_size); in rockchip_copy_image()