Lines Matching refs:td

120 static void build_key(struct dm_thin_device *td, enum lock_space ls,  in build_key()  argument
124 key->dev = dm_thin_dev_id(td); in build_key()
129 static void build_data_key(struct dm_thin_device *td, dm_block_t b, in build_data_key() argument
132 build_key(td, PHYSICAL, b, b + 1llu, key); in build_data_key()
135 static void build_virtual_key(struct dm_thin_device *td, dm_block_t b, in build_virtual_key() argument
138 build_key(td, VIRTUAL, b, b + 1llu, key); in build_virtual_key()
304 struct dm_thin_device *td; member
699 dm_thin_changed_this_transaction(tc->td); in bio_triggers_commit()
728 if (dm_thin_aborted_changes(tc->td)) { in issue()
934 r = dm_thin_insert_block(tc->td, m->virt_begin, m->data_block); in process_prepared_mapping()
988 r = dm_thin_remove_range(tc->td, m->cell->key.block_begin, m->cell->key.block_end); in process_prepared_discard_no_passdown()
1051 r = dm_thin_remove_range(tc->td, m->virt_begin, m->virt_end); in process_prepared_discard_passdown()
1516 r = dm_thin_find_mapped_range(tc->td, begin, end, &virt_begin, &virt_end, in break_up_discard_bio()
1525 build_key(tc->td, PHYSICAL, data_begin, data_begin + (virt_end - virt_begin), &data_key); in break_up_discard_bio()
1597 build_key(tc->td, VIRTUAL, begin, end, &virt_key); in process_discard_bio()
1693 build_data_key(tc->td, lookup_result->block, &key); in process_shared_bio()
1776 r = dm_thin_find_block(tc->td, block, 1, &lookup_result); in process_cell()
1829 build_virtual_key(tc->td, block, &key); in process_bio()
1844 r = dm_thin_find_block(tc->td, block, 1, &lookup_result); in __process_bio_read_only()
2541 struct dm_thin_device *td = tc->td; in thin_bio_map() local
2568 build_virtual_key(tc->td, block, &key); in thin_bio_map()
2572 r = dm_thin_find_block(td, block, 0, &result); in thin_bio_map()
2598 build_data_key(tc->td, result.block, &key); in thin_bio_map()
3935 dm_pool_close_thin_device(tc->td); in thin_dtr()
4028 r = dm_pool_open_thin_device(tc->pool->pmd, tc->dev_id, &tc->td); in thin_ctr()
4077 dm_pool_close_thin_device(tc->td); in thin_ctr()
4186 if (!tc->td) in thin_status()
4191 r = dm_thin_get_mapped_count(tc->td, &mapped); in thin_status()
4197 r = dm_thin_get_highest_mapped_block(tc->td, &highest); in thin_status()