Lines Matching refs:buf_size

126 static bool verify_container(const u8 *buf, size_t buf_size, bool early)  in verify_container()  argument
130 if (buf_size <= CONTAINER_HDR_SZ) { in verify_container()
153 static bool verify_equivalence_table(const u8 *buf, size_t buf_size, bool early) in verify_equivalence_table() argument
158 if (!verify_container(buf, buf_size, early)) in verify_equivalence_table()
170 buf_size -= CONTAINER_HDR_SZ; in verify_equivalence_table()
174 buf_size < equiv_tbl_len) { in verify_equivalence_table()
193 __verify_patch_section(const u8 *buf, size_t buf_size, u32 *sh_psize, bool early) in __verify_patch_section() argument
198 if (buf_size < SECTION_HDR_SIZE) { in __verify_patch_section()
235 static unsigned int __verify_patch_size(u8 family, u32 sh_psize, size_t buf_size) in __verify_patch_size() argument
240 return min_t(u32, sh_psize, buf_size); in __verify_patch_size()
257 if (sh_psize > min_t(u32, buf_size, max_size)) in __verify_patch_size()
272 verify_patch(u8 family, const u8 *buf, size_t buf_size, u32 *patch_size, bool early) in verify_patch() argument
280 if (!__verify_patch_section(buf, buf_size, &sh_psize, early)) in verify_patch()
288 buf_size -= SECTION_HDR_SIZE; in verify_patch()
294 if (buf_size < sh_psize) { in verify_patch()
301 ret = __verify_patch_size(family, sh_psize, buf_size); in verify_patch()
736 static size_t install_equiv_cpu_table(const u8 *buf, size_t buf_size) in install_equiv_cpu_table() argument
741 if (!verify_equivalence_table(buf, buf_size, false)) in install_equiv_cpu_table()