Lines Matching refs:field

689                 if (le64toh(o->object.size) <= offsetof(Object, field.payload))  in journal_file_check_object()
692 offsetof(Object, field.payload), in journal_file_check_object()
696 if (!VALID64(le64toh(o->field.next_hash_offset)) || in journal_file_check_object()
697 !VALID64(le64toh(o->field.head_data_offset))) in journal_file_check_object()
700 le64toh(o->field.next_hash_offset), in journal_file_check_object()
701 le64toh(o->field.head_data_offset), in journal_file_check_object()
1158 o->field.next_hash_offset = o->field.head_data_offset = 0; in journal_file_link_field()
1169 o->field.next_hash_offset = htole64(offset); in journal_file_link_field()
1259 const void *field, uint64_t size, uint64_t hash, in journal_file_find_field_object_with_hash() argument
1267 assert(field && size > 0); in journal_file_find_field_object_with_hash()
1278 osize = offsetof(Object, field.payload) + size; in journal_file_find_field_object_with_hash()
1293 if (le64toh(o->field.hash) == hash && in journal_file_find_field_object_with_hash()
1295 memcmp(o->field.payload, field, size) == 0) { in journal_file_find_field_object_with_hash()
1308 &o->field.next_hash_offset, in journal_file_find_field_object_with_hash()
1337 const void *field, uint64_t size, in journal_file_find_field_object() argument
1341 assert(field && size > 0); in journal_file_find_field_object()
1345 field, size, in journal_file_find_field_object()
1346 journal_file_hash_data(f, field, size), in journal_file_find_field_object()
1502 const void *field, uint64_t size, in journal_file_append_field() argument
1511 assert(field && size > 0); in journal_file_append_field()
1513 if (!journal_field_valid(field, size, true)) in journal_file_append_field()
1516 hash = journal_file_hash_data(f, field, size); in journal_file_append_field()
1518 r = journal_file_find_field_object_with_hash(f, field, size, hash, ret, ret_offset); in journal_file_append_field()
1524 osize = offsetof(Object, field.payload) + size; in journal_file_append_field()
1529 o->field.hash = htole64(hash); in journal_file_append_field()
1530 memcpy(o->field.payload, field, size); in journal_file_append_field()
1632 o->data.next_field_offset = fo->field.head_data_offset; in journal_file_append_data()
1633 fo->field.head_data_offset = le64toh(p); in journal_file_append_data()