Lines Matching refs:data

209                                const void* data,  in block_cache_complete_read()  argument
215 assert(data_size <= sizeof(entry->data)); in block_cache_complete_read()
238 memcpy(entry->data, data, data_size); in block_cache_complete_read()
241 ret = calculate_mac(entry->key, &entry->mac, entry->data, in block_cache_complete_read()
349 decrypt_data = entry->data; in block_cache_entry_decrypt()
352 iv = (void*)entry->data; in block_cache_entry_decrypt()
397 encrypt_data = entry->data; in block_cache_entry_encrypt()
400 iv = (void*)entry->data; in block_cache_entry_encrypt()
421 ret = calculate_mac(entry->key, &entry->mac, entry->data, in block_cache_entry_encrypt()
449 assert(entry->block_size <= sizeof(entry->data)); in block_cache_entry_clean()
493 block_cache_queue_write(entry, entry->data); in block_cache_entry_clean()
721 assert(dev->block_size <= sizeof(entry->data)); in block_cache_lookup()
895 return entry->data; in block_cache_get_data()
904 static struct block_cache_entry* data_to_block_cache_entry(const void* data) { in data_to_block_cache_entry() argument
907 assert(data); in data_to_block_cache_entry()
908 entry = containerof(data, struct block_cache_entry, data); in data_to_block_cache_entry()
922 const void* data) { in data_to_block_cache_entry_or_null() argument
923 return data ? data_to_block_cache_entry(data) : NULL; in data_to_block_cache_entry_or_null()
1185 void* data; in block_get_no_tr_fail() local
1195 data = block_cache_get_data(tr->fs, tr->fs->dev, block, true, in block_get_no_tr_fail()
1202 return data; in block_get_no_tr_fail()
1223 const void* data; in block_get() local
1232 data = block_get_no_tr_fail(tr, block_mac, iv, ref); in block_get()
1233 if (!data && !tr->failed) { in block_get()
1240 return data; in block_get()
1251 void* block_dirty(struct transaction* tr, const void* data, bool is_tmp) { in block_dirty() argument
1252 struct block_cache_entry* entry = data_to_block_cache_entry(data); in block_dirty()
1278 return (void*)data; in block_dirty()
1300 void block_discard_dirty(const void* data) { in block_discard_dirty() argument
1301 struct block_cache_entry* entry = data_to_block_cache_entry(data); in block_discard_dirty()
1327 block_discard_dirty(entry->data); in block_discard_dirty_by_block()
1343 void* data, in block_put_dirty_etc() argument
1348 struct block_cache_entry* entry = data_to_block_cache_entry(data); in block_put_dirty_etc()
1351 struct iv* iv = (void*)entry->data; /* TODO: support external iv */ in block_put_dirty_etc()
1374 block_put(data, data_ref); in block_put_dirty_etc()
1401 void* data, in block_put_dirty() argument
1407 block_put_dirty_etc(tr, data, data_ref, block_mac, block_mac_ref); in block_put_dirty()
1420 void block_put_dirty_no_mac(void* data, in block_put_dirty_no_mac() argument
1423 struct block_cache_entry* entry = data_to_block_cache_entry(data); in block_put_dirty_no_mac()
1428 block_put_dirty_etc(NULL, data, data_ref, NULL, NULL); in block_put_dirty_no_mac()
1438 void block_put_dirty_discard(void* data, struct obj_ref* data_ref) { in block_put_dirty_discard() argument
1439 block_put_dirty_etc(NULL, data, data_ref, NULL, NULL); in block_put_dirty_discard()
1440 block_discard_dirty(data); in block_put_dirty_discard()
1501 void* data = block_get_write_no_read(tr, block, is_tmp, ref); in block_get_cleared() local
1502 memset(data, 0, MAX_BLOCK_SIZE); in block_get_cleared()
1503 return data; in block_get_cleared()
1557 const void* data, in block_get_copy() argument
1562 struct block_cache_entry* src_entry = data_to_block_cache_entry(data); in block_get_copy()
1568 memcpy(dst_data, data, src_entry->block_size); in block_get_copy()
1585 const void* data, in block_move() argument
1589 struct block_cache_entry* entry = data_to_block_cache_entry(data); in block_move()
1617 return block_dirty(tr, data, is_tmp); in block_move()
1625 void block_put(const void* data, struct obj_ref* ref) { in block_put() argument
1626 struct block_cache_entry* entry = data_to_block_cache_entry(data); in block_put()
1690 data_block_t data_to_block_num(const void* data) { in data_to_block_num() argument
1691 struct block_cache_entry* entry = data_to_block_cache_entry(data); in data_to_block_num()