Lines Matching refs:sh_psize
156 __verify_patch_section(const u8 *buf, size_t buf_size, u32 *sh_psize, bool early) in __verify_patch_section() argument
187 *sh_psize = p_size; in __verify_patch_section()
198 static unsigned int __verify_patch_size(u8 family, u32 sh_psize, size_t buf_size) in __verify_patch_size() argument
203 return min_t(u32, sh_psize, buf_size); in __verify_patch_size()
220 if (sh_psize > min_t(u32, buf_size, max_size)) in __verify_patch_size()
223 return sh_psize; in __verify_patch_size()
239 u32 sh_psize; in verify_patch() local
243 if (!__verify_patch_section(buf, buf_size, &sh_psize, early)) in verify_patch()
257 if (buf_size < sh_psize) { in verify_patch()
259 pr_debug("Patch of size %u truncated.\n", sh_psize); in verify_patch()
264 ret = __verify_patch_size(family, sh_psize, buf_size); in verify_patch()
271 *patch_size = sh_psize; in verify_patch()