Lines Matching refs:header

51   struct gconvcache_header *header;  in __gconv_load_cache()  local
112 header = (struct gconvcache_header *) gconv_cache; in __gconv_load_cache()
113 if (__builtin_expect (header->magic, GCONVCACHE_MAGIC) != GCONVCACHE_MAGIC in __gconv_load_cache()
114 || __builtin_expect (header->string_offset >= cache_size, 0) in __gconv_load_cache()
115 || __builtin_expect (header->hash_offset >= cache_size, 0) in __gconv_load_cache()
116 || __builtin_expect (header->hash_size == 0, 0) in __gconv_load_cache()
117 || __builtin_expect ((header->hash_offset in __gconv_load_cache()
118 + header->hash_size * sizeof (struct hash_entry)) in __gconv_load_cache()
120 || __builtin_expect (header->module_offset >= cache_size, 0) in __gconv_load_cache()
121 || __builtin_expect (header->otherconv_offset > cache_size, 0)) in __gconv_load_cache()
148 const struct gconvcache_header *header; in find_module_idx() local
153 header = (const struct gconvcache_header *) gconv_cache; in find_module_idx()
154 strtab = (char *) gconv_cache + header->string_offset; in find_module_idx()
156 + header->hash_offset); in find_module_idx()
159 idx = hval % header->hash_size; in find_module_idx()
160 hval2 = 1 + hval % (header->hash_size - 2); in find_module_idx()
162 limit = cache_size - header->string_offset; in find_module_idx()
171 if ((idx += hval2) >= header->hash_size) in find_module_idx()
172 idx -= header->hash_size; in find_module_idx()
248 const struct gconvcache_header *header; in __gconv_lookup_cache() local
261 header = (const struct gconvcache_header *) gconv_cache; in __gconv_lookup_cache()
262 strtab = (char *) gconv_cache + header->string_offset; in __gconv_lookup_cache()
264 + header->module_offset); in __gconv_lookup_cache()
267 || (header->module_offset + (fromidx + 1) * sizeof (struct module_entry) in __gconv_lookup_cache()
273 || (header->module_offset + (toidx + 1) * sizeof (struct module_entry) in __gconv_lookup_cache()
293 + header->otherconv_offset in __gconv_lookup_cache()