• Home
  • Raw
  • Download

Lines Matching refs:entry

62 #define IS_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0)  argument
149 ext3_xattr_check_names(struct ext3_xattr_entry *entry, void *end) in ext3_xattr_check_names() argument
151 while (!IS_LAST_ENTRY(entry)) { in ext3_xattr_check_names()
152 struct ext3_xattr_entry *next = EXT3_XATTR_NEXT(entry); in ext3_xattr_check_names()
155 entry = next; in ext3_xattr_check_names()
173 ext3_xattr_check_entry(struct ext3_xattr_entry *entry, size_t size) in ext3_xattr_check_entry() argument
175 size_t value_size = le32_to_cpu(entry->e_value_size); in ext3_xattr_check_entry()
177 if (entry->e_value_block != 0 || value_size > size || in ext3_xattr_check_entry()
178 le16_to_cpu(entry->e_value_offs) + value_size > size) in ext3_xattr_check_entry()
187 struct ext3_xattr_entry *entry; in ext3_xattr_find_entry() local
194 entry = *pentry; in ext3_xattr_find_entry()
195 for (; !IS_LAST_ENTRY(entry); entry = EXT3_XATTR_NEXT(entry)) { in ext3_xattr_find_entry()
196 cmp = name_index - entry->e_name_index; in ext3_xattr_find_entry()
198 cmp = name_len - entry->e_name_len; in ext3_xattr_find_entry()
200 cmp = memcmp(name, entry->e_name, name_len); in ext3_xattr_find_entry()
204 *pentry = entry; in ext3_xattr_find_entry()
205 if (!cmp && ext3_xattr_check_entry(entry, size)) in ext3_xattr_find_entry()
215 struct ext3_xattr_entry *entry; in ext3_xattr_block_get() local
239 entry = BFIRST(bh); in ext3_xattr_block_get()
240 error = ext3_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext3_xattr_block_get()
245 size = le32_to_cpu(entry->e_value_size); in ext3_xattr_block_get()
250 memcpy(buffer, bh->b_data + le16_to_cpu(entry->e_value_offs), in ext3_xattr_block_get()
265 struct ext3_xattr_entry *entry; in ext3_xattr_ibody_get() local
279 entry = IFIRST(header); in ext3_xattr_ibody_get()
281 error = ext3_xattr_check_names(entry, end); in ext3_xattr_ibody_get()
284 error = ext3_xattr_find_entry(&entry, name_index, name, in ext3_xattr_ibody_get()
285 end - (void *)entry, 0); in ext3_xattr_ibody_get()
288 size = le32_to_cpu(entry->e_value_size); in ext3_xattr_ibody_get()
294 le16_to_cpu(entry->e_value_offs), size); in ext3_xattr_ibody_get()
330 ext3_xattr_list_entries(struct dentry *dentry, struct ext3_xattr_entry *entry, in ext3_xattr_list_entries() argument
335 for (; !IS_LAST_ENTRY(entry); entry = EXT3_XATTR_NEXT(entry)) { in ext3_xattr_list_entries()
337 ext3_xattr_handler(entry->e_name_index); in ext3_xattr_list_entries()
341 entry->e_name, in ext3_xattr_list_entries()
342 entry->e_name_len, in ext3_xattr_list_entries()
1257 struct ext3_xattr_entry *entry) in ext3_xattr_hash_entry() argument
1260 char *name = entry->e_name; in ext3_xattr_hash_entry()
1263 for (n=0; n < entry->e_name_len; n++) { in ext3_xattr_hash_entry()
1269 if (entry->e_value_block == 0 && entry->e_value_size != 0) { in ext3_xattr_hash_entry()
1271 le16_to_cpu(entry->e_value_offs)); in ext3_xattr_hash_entry()
1272 for (n = (le32_to_cpu(entry->e_value_size) + in ext3_xattr_hash_entry()
1279 entry->e_hash = cpu_to_le32(hash); in ext3_xattr_hash_entry()
1293 struct ext3_xattr_entry *entry) in ext3_xattr_rehash() argument
1298 ext3_xattr_hash_entry(header, entry); in ext3_xattr_rehash()