Home
last modified time | relevance | path

Searched refs:vdo (Results 1 – 25 of 55) sorted by relevance

123

/drivers/md/dm-vdo/
A Dvdo.c104 struct vdo *vdo; in filter_vdos_locked() local
121 struct vdo *vdo; in vdo_find_matching() local
424 thread->vdo = vdo; in vdo_make_thread()
533 struct vdo *vdo; in vdo_make() local
672 void vdo_destroy(struct vdo *vdo) in vdo_destroy() argument
892 vdo->states.vdo.state = vdo_get_state(vdo); in record_vdo()
1023 struct vdo *vdo = listener; in notify_vdo_of_read_only_mode() local
1072 struct vdo *vdo = parent->vdo; in vdo_wait_until_not_entering_read_only_mode() local
1136 struct vdo *vdo = completion->vdo; in make_thread_read_only() local
1200 struct vdo *vdo = parent->vdo; in vdo_allow_read_only_mode_entry() local
[all …]
A Ddm-vdo-target.c1390 struct vdo *vdo = completion->vdo; in pre_load_callback() local
1640 struct vdo *vdo = completion->vdo; in check_may_grow_physical() local
1968 struct vdo *vdo = completion->vdo; in write_super_block_for_suspend() local
1998 struct vdo *vdo = completion->vdo; in suspend_callback() local
2181 struct vdo *vdo = completion->vdo; in load_callback() local
2285 struct vdo *vdo = completion->vdo; in handle_load_error() local
2321 struct vdo *vdo = completion->vdo; in write_super_block_for_resume() local
2351 struct vdo *vdo = completion->vdo; in resume_callback() local
2431 struct vdo *vdo = completion->vdo; in grow_logical_callback() local
2480 struct vdo *vdo = completion->vdo; in handle_logical_growth_error() local
[all …]
A Dvdo.h57 struct vdo *vdo; member
166 struct vdo { struct
275 static inline bool vdo_uses_bio_ack_queue(struct vdo *vdo) in vdo_uses_bio_ack_queue() argument
303 void vdo_destroy(struct vdo *vdo);
311 int __must_check vdo_synchronous_flush(struct vdo *vdo);
315 bool vdo_set_compressing(struct vdo *vdo, bool enable);
317 bool vdo_get_compressing(struct vdo *vdo);
333 int vdo_enable_read_only_entry(struct vdo *vdo);
341 bool __must_check vdo_is_read_only(struct vdo *vdo);
347 void vdo_enter_recovery_mode(struct vdo *vdo);
[all …]
A Dflush.c26 struct vdo *vdo; member
135 int vdo_make_flusher(struct vdo *vdo) in vdo_make_flusher() argument
142 vdo->flusher->vdo = vdo; in vdo_make_flusher()
143 vdo->flusher->thread_id = vdo->thread_config.packer_thread; in vdo_make_flusher()
145 vdo_initialize_completion(&vdo->flusher->completion, vdo, in vdo_make_flusher()
151 vdo->flusher); in vdo_make_flusher()
369 static void initialize_flush(struct vdo_flush *flush, struct vdo *vdo) in initialize_flush() argument
392 void vdo_launch_flush(struct vdo *vdo, struct bio *bio) in vdo_launch_flush() argument
416 initialize_flush(flush, vdo); in vdo_launch_flush()
463 struct vdo *vdo = completion->vdo; in vdo_complete_flush_callback() local
[all …]
A Drepair.c253 struct vdo *vdo = completion->vdo; in finish_repair() local
326 struct vdo *vdo = completion->vdo; in drain_slab_depot() local
640 struct vdo *vdo = completion->vdo; in rebuild_reference_counts() local
797 struct vdo *vdo = completion->vdo; in add_slab_journal_entries() local
855 struct vdo *vdo = completion->vdo; in vdo_replay_into_slab_journals() local
1099 struct vdo *vdo = completion->vdo; in recover_block_map() local
1326 struct vdo *vdo = repair->completion.vdo; in append_sector_entries() local
1406 struct vdo *vdo = repair->completion.vdo; in parse_journal_for_rebuild() local
1456 struct vdo *vdo = repair->completion.vdo; in extract_new_mappings() local
1684 struct vdo *vdo = vio->completion.vdo; in read_journal_endio() local
[all …]
A Ddump.c55 static void do_dump(struct vdo *vdo, unsigned int dump_options_requested, in do_dump() argument
65 atomic64_read(&vdo->stats.bios_completed)); in do_dump()
72 for (id = 0; id < vdo->thread_config.thread_count; id++) in do_dump()
73 vdo_dump_work_queue(vdo->threads[id].queue); in do_dump()
76 vdo_dump_hash_zones(vdo->hash_zones); in do_dump()
77 dump_data_vio_pool(vdo->data_vio_pool, in do_dump()
80 vdo_dump_status(vdo); in do_dump()
130 int vdo_dump(struct vdo *vdo, unsigned int argc, char *const *argv, const char *why) in vdo_dump() argument
138 do_dump(vdo, dump_options_requested, why); in vdo_dump()
143 void vdo_dump_all(struct vdo *vdo, const char *why) in vdo_dump_all() argument
[all …]
A Dlogical-zone.c54 struct vdo *vdo = zones->vdo; in initialize_zone() local
62 if (zone_number < vdo->thread_config.logical_zone_count - 1) in initialize_zone()
65 vdo_initialize_completion(&zone->completion, vdo, in initialize_zone()
70 zone->block_map_zone = &vdo->block_map->zones[zone_number]; in initialize_zone()
77 return vdo_make_default_thread(vdo, zone->thread_id); in initialize_zone()
87 int vdo_make_logical_zones(struct vdo *vdo, struct logical_zones **zones_ptr) in vdo_make_logical_zones() argument
92 zone_count_t zone_count = vdo->thread_config.logical_zone_count; in vdo_make_logical_zones()
102 zones->vdo = vdo; in vdo_make_logical_zones()
113 vdo->thread_config.admin_thread, zones, NULL, in vdo_make_logical_zones()
114 vdo, &zones->manager); in vdo_make_logical_zones()
[all …]
A Dvio.c44 struct vdo *vdo = vio->completion.vdo; in pbn_from_vio_bio() local
78 int allocate_vio_components(struct vdo *vdo, enum vio_type vio_type, in allocate_vio_components() argument
118 int create_multi_block_metadata_vio(struct vdo *vdo, enum vio_type vio_type, in create_multi_block_metadata_vio() argument
176 struct vdo *vdo = vio->completion.vdo; in vdo_set_bio_properties() local
177 struct device_config *config = vdo->device_config; in vdo_set_bio_properties()
179 pbn -= vdo->geometry.bio_offset; in vdo_set_bio_properties()
261 struct vdo *vdo = vio->completion.vdo; in update_vio_error_stats() local
265 atomic64_inc(&vdo->stats.read_only_error_count); in update_vio_error_stats()
269 atomic64_inc(&vdo->stats.no_space_error_count); in update_vio_error_stats()
321 int make_vio_pool(struct vdo *vdo, size_t pool_size, size_t block_count, thread_id_t thread_id, in make_vio_pool() argument
[all …]
A Dcompletion.c52 struct vdo *vdo, in vdo_initialize_completion() argument
56 completion->vdo = vdo; in vdo_initialize_completion()
111 struct vdo *vdo = completion->vdo; in vdo_enqueue_completion() local
114 if (VDO_ASSERT(thread_id < vdo->thread_config.thread_count, in vdo_enqueue_completion()
117 vdo->thread_config.thread_count) != VDO_SUCCESS) in vdo_enqueue_completion()
123 vdo_enqueue_work_queue(vdo->threads[thread_id].queue, completion); in vdo_enqueue_completion()
A Dvio.h58 return vio->completion.vdo->thread_config.bio_threads[vio->bio_zone]; in get_vio_bio_zone_thread_id()
80 int allocate_vio_components(struct vdo *vdo, enum vio_type vio_type,
83 int __must_check create_multi_block_metadata_vio(struct vdo *vdo, enum vio_type vio_type,
88 static inline int __must_check create_metadata_vio(struct vdo *vdo, enum vio_type vio_type, in create_metadata_vio() argument
93 return create_multi_block_metadata_vio(vdo, vio_type, priority, parent, 1, data, in create_metadata_vio()
111 enum vio_priority priority, struct vdo *vdo) in initialize_vio() argument
120 vdo_initialize_completion(&vio->completion, vdo, VIO_COMPLETION); in initialize_vio()
195 int __must_check make_vio_pool(struct vdo *vdo, size_t pool_size, size_t block_count,
A Dio-submitter.c76 struct atomic_statistics *stats = &vio->completion.vdo->stats; in count_all_bios()
109 struct vdo *vdo = vio->completion.vdo; in send_bio_to_device() local
112 atomic64_inc(&vdo->stats.bios_submitted); in send_bio_to_device()
114 bio_set_dev(bio, vdo_get_backing_device(vdo)); in send_bio_to_device()
141 struct io_submitter *submitter = vio->completion.vdo->io_submitter; in get_bio_list()
273 struct vdo *vdo = vio->completion.vdo; in try_bio_map_merge() local
275 &vdo->io_submitter->bio_queue_data[vio->bio_zone]; in try_bio_map_merge()
346 const struct admin_state_code *code = vdo_get_admin_state(completion->vdo); in __submit_metadata_vio()
377 unsigned int max_requests_active, struct vdo *vdo, in vdo_make_io_submitter() argument
419 result = vdo_make_thread(vdo, vdo->thread_config.bio_threads[i], in vdo_make_io_submitter()
[all …]
A Ddata-vio.c244 struct vdo *vdo = vdo_from_data_vio(data_vio); in initialize_lbn_lock() local
259 struct vdo *vdo = vdo_from_data_vio(data_vio); in launch_locked_request() local
273 struct vdo *vdo = vdo_from_data_vio(data_vio); in acknowledge_data_vio() local
423 struct vdo *vdo = vdo_from_data_vio(data_vio); in attempt_logical_block_lock() local
429 if (data_vio->logical.lbn >= vdo->states.vdo.config.logical_blocks) { in attempt_logical_block_lock()
535 static void launch_bio(struct vdo *vdo, struct data_vio *data_vio, struct bio *bio) in launch_bio() argument
787 static int initialize_data_vio(struct data_vio *data_vio, struct vdo *vdo) in initialize_data_vio() argument
842 int make_data_vio_pool(struct vdo *vdo, data_vio_count_t pool_size, in make_data_vio_pool() argument
1000 static void assert_on_vdo_cpu_thread(const struct vdo *vdo, const char *name) in assert_on_vdo_cpu_thread() argument
1278 struct vdo *vdo = vdo_from_data_vio(data_vio); in perform_cleanup_stage() local
[all …]
A Dmessage-stats.h11 int vdo_write_config(struct vdo *vdo, char **buf, unsigned int *maxlen);
12 int vdo_write_stats(struct vdo *vdo, char *buf, unsigned int maxlen);
A Ddump.h11 int vdo_dump(struct vdo *vdo, unsigned int argc, char *const *argv, const char *why);
13 void vdo_dump_all(struct vdo *vdo, const char *why);
A Dflush.h28 int __must_check vdo_make_flusher(struct vdo *vdo);
38 void vdo_launch_flush(struct vdo *vdo, struct bio *bio);
A Dphysical-zone.c325 static int initialize_zone(struct vdo *vdo, struct physical_zones *zones) in initialize_zone() argument
342 zone->thread_id = vdo->thread_config.physical_threads[zone_number]; in initialize_zone()
343 zone->allocator = &vdo->depot->allocators[zone_number]; in initialize_zone()
344 zone->next = &zones->zones[(zone_number + 1) % vdo->thread_config.physical_zone_count]; in initialize_zone()
345 result = vdo_make_default_thread(vdo, zone->thread_id); in initialize_zone()
361 int vdo_make_physical_zones(struct vdo *vdo, struct physical_zones **zones_ptr) in vdo_make_physical_zones() argument
365 zone_count_t zone_count = vdo->thread_config.physical_zone_count; in vdo_make_physical_zones()
376 result = initialize_zone(vdo, zones); in vdo_make_physical_zones()
A Dlogical-zone.h57 struct vdo *vdo; member
66 int __must_check vdo_make_logical_zones(struct vdo *vdo,
A Dslab-depot.c328 if (vdo_is_read_only(depot->vdo)) { in launch_write()
1086 if (vdo_is_read_only(completion->vdo)) { in finish_reference_block_write()
3021 if (vdo_is_read_only(completion->vdo)) { in scrub_next_slab()
3324 if (vdo_is_read_only(completion->vdo)) { in vdo_modify_reference_count()
4060 struct vdo *vdo = depot->vdo; in initialize_block_allocator() local
4069 .nonce = vdo->states.vdo.nonce, in initialize_block_allocator()
4235 int vdo_decode_slab_depot(struct slab_depot_state_2_0 state, struct vdo *vdo, in vdo_decode_slab_depot() argument
4261 depot->vdo = vdo; in vdo_decode_slab_depot()
4544 struct vdo *vdo = vio->completion.vdo; in write_summary_endio() local
4611 struct vdo *vdo = vio->completion.vdo; in load_summary_endio() local
[all …]
A Dblock-map.h51 struct vdo *vdo; member
255 struct vdo *vdo; member
334 block_count_t logical_blocks, struct vdo *vdo,
A Ddedupe.c1603 struct vdo *vdo = vdo_from_data_vio(data_vio); in decode_uds_advice() local
2167 static int initialize_index(struct vdo *vdo, struct hash_zones *zones) in initialize_index() argument
2204 result = vdo_make_thread(vdo, vdo->thread_config.dedupe_thread, &uds_queue_type, in initialize_index()
2214 vdo->thread_config.dedupe_thread); in initialize_index()
2347 static int __must_check initialize_zone(struct vdo *vdo, struct hash_zones *zones, in initialize_zone() argument
2409 int vdo_make_hash_zones(struct vdo *vdo, struct hash_zones **zones_ptr) in vdo_make_hash_zones() argument
2424 result = initialize_index(vdo, zones); in vdo_make_hash_zones()
2434 result = initialize_zone(vdo, zones, z); in vdo_make_hash_zones()
2443 vdo, &zones->manager); in vdo_make_hash_zones()
2625 if (vdo_is_read_only(parent->vdo)) { in vdo_resume_hash_zones()
[all …]
A Dtypes.h211 struct vdo *vdo; member
314 struct vdo *vdo; member
333 struct vdo;
A DMakefile5 obj-$(CONFIG_DM_VDO) += dm-vdo.o
7 dm-vdo-objs := \
14 dm-vdo-target.o \
40 vdo.o \
/drivers/usb/typec/altmodes/
A Dthunderbolt.c43 u32 vdo; in tbt_enter_mode() local
45 vdo = tbt->alt->vdo & (TBT_VENDOR_SPECIFIC_B0 | TBT_VENDOR_SPECIFIC_B1); in tbt_enter_mode()
46 vdo |= tbt->alt->vdo & TBT_INTEL_SPECIFIC_B0; in tbt_enter_mode()
47 vdo |= TBT_MODE; in tbt_enter_mode()
53 vdo |= TBT_ENTER_MODE_CABLE_SPEED(TBT_CABLE_SPEED(plug->vdo)); in tbt_enter_mode()
54 vdo |= plug->vdo & TBT_CABLE_ROUNDED; in tbt_enter_mode()
55 vdo |= plug->vdo & TBT_CABLE_OPTICAL; in tbt_enter_mode()
56 vdo |= plug->vdo & TBT_CABLE_RETIMER; in tbt_enter_mode()
57 vdo |= plug->vdo & TBT_CABLE_LINK_TRAINING; in tbt_enter_mode()
62 tbt->enter_vdo = vdo; in tbt_enter_mode()
[all …]
A Ddisplayport.c113 DP_CAP_DFP_D_PIN_ASSIGN(dp->port->vdo); in dp_altmode_configure()
122 DP_CAP_PIN_ASSIGN_DFP_D(dp->port->vdo); in dp_altmode_configure()
265 u32 vdo; in dp_altmode_work() local
294 vdo = 1; in dp_altmode_work()
349 dp->data.status = vdo; in dp_altmode_attention()
403 dp->data.status = *vdo; in dp_altmode_vdm()
555 cap = DP_CAP_CAPABILITY(dp->alt->vdo); in configuration_store()
591 cap = DP_CAP_CAPABILITY(dp->alt->vdo); in configuration_show()
764 if (!(DP_CAP_PIN_ASSIGN_DFP_D(port->vdo) & in dp_altmode_probe()
766 !(DP_CAP_PIN_ASSIGN_UFP_D(port->vdo) & in dp_altmode_probe()
[all …]
/drivers/usb/typec/
A Dbus.c126 int typec_altmode_enter(struct typec_altmode *adev, u32 *vdo) in typec_altmode_enter() argument
147 return pdev->ops->enter(pdev, vdo); in typec_altmode_enter()
186 int typec_altmode_attention(struct typec_altmode *adev, u32 vdo) in typec_altmode_attention() argument
197 pdev->ops->attention(pdev, vdo); in typec_altmode_attention()
215 const u32 header, const u32 *vdo, int count) in typec_altmode_vdm() argument
233 return pdev->ops->vdm(pdev, header, vdo, count); in typec_altmode_vdm()
259 int typec_cable_altmode_enter(struct typec_altmode *adev, enum typec_plug_index sop, u32 *vdo) in typec_cable_altmode_enter() argument
278 return pdev->cable_ops->enter(pdev, sop, vdo); in typec_cable_altmode_enter()
322 const u32 header, const u32 *vdo, int count) in typec_cable_altmode_vdm() argument
345 return pdev->cable_ops->vdm(pdev, sop, header, vdo, count); in typec_cable_altmode_vdm()

Completed in 84 milliseconds

123