Lines Matching +full:- +full:chs
1 // SPDX-License-Identifier: GPL-2.0+
13 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
22 #define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
46 while (toc->section_offset != 0xffffffff in omapimage_verify_header()
47 && toc->section_size != 0xffffffff) { in omapimage_verify_header()
49 offset = cpu_to_be32(toc->section_offset); in omapimage_verify_header()
50 size = cpu_to_be32(toc->section_size); in omapimage_verify_header()
52 offset = toc->section_offset; in omapimage_verify_header()
53 size = toc->section_size; in omapimage_verify_header()
56 return -1; in omapimage_verify_header()
59 return -1; in omapimage_verify_header()
66 static void omapimage_print_section(struct ch_settings *chs) in omapimage_print_section() argument
70 if (chs->section_key) in omapimage_print_section()
81 chs->section_key, in omapimage_print_section()
82 chs->valid, in omapimage_print_section()
83 chs->version, in omapimage_print_section()
84 chs->reserved, in omapimage_print_section()
85 chs->flags); in omapimage_print_section()
95 while (toc->section_offset != 0xffffffff in omapimage_print_header()
96 && toc->section_size != 0xffffffff) { in omapimage_print_header()
98 offset = cpu_to_be32(toc->section_offset); in omapimage_print_header()
99 size = cpu_to_be32(toc->section_size); in omapimage_print_header()
101 offset = toc->section_offset; in omapimage_print_header()
102 size = toc->section_size; in omapimage_print_header()
110 toc->section_name, in omapimage_print_header()
111 toc->section_offset, in omapimage_print_header()
112 toc->section_size); in omapimage_print_header()
123 return member - hdr; in toc_offset()
130 struct ch_settings *chs = (struct ch_settings *) in omapimage_set_header() local
134 toc->section_offset = toc_offset(ptr, chs); in omapimage_set_header()
135 toc->section_size = sizeof(struct ch_settings); in omapimage_set_header()
136 strcpy((char *)toc->section_name, "CHSETTINGS"); in omapimage_set_header()
138 chs->section_key = KEY_CHSETTINGS; in omapimage_set_header()
139 chs->valid = 0; in omapimage_set_header()
140 chs->version = 1; in omapimage_set_header()
141 chs->reserved = 0; in omapimage_set_header()
142 chs->flags = 0; in omapimage_set_header()
147 gph_set_header(gph, sbuf->st_size - OMAP_CH_HDR_SIZE, in omapimage_set_header()
148 params->addr, 0); in omapimage_set_header()
150 if (strncmp(params->imagename, "byteswap", 8) == 0) { in omapimage_set_header()
155 DIV_ROUND_UP(sbuf->st_size, sizeof(uint32_t)); in omapimage_set_header()