Home
last modified time | relevance | path

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

12

/linux/drivers/md/dm-vdo/
H A Dvdo.c90 static bool vdo_is_equal(struct vdo *vdo, const void *context) in vdo_is_equal() argument
92 return (vdo == context); in vdo_is_equal()
104 static struct vdo * __must_check filter_vdos_locked(vdo_filter_fn filter, in filter_vdos_locked()
107 struct vdo *vdo; in filter_vdos_locked() local
109 list_for_each_entry(vdo, &registry.links, registration) { in filter_vdos_locked()
110 if (filter(vdo, context)) in filter_vdos_locked()
111 return vdo; in filter_vdos_locked()
122 struct vdo *vdo_find_matching(vdo_filter_fn filter, const void *context) in vdo_find_matching()
124 struct vdo *vdo; in vdo_find_matching() local
127 vdo = filter_vdos_locked(filter, context); in vdo_find_matching()
[all …]
H A Ddump.c55 static void do_dump(struct vdo *vdo, unsigned int dump_options_requested, in do_dump() argument
62 active = get_data_vio_pool_active_requests(vdo->data_vio_pool); in do_dump()
63 maximum = get_data_vio_pool_maximum_requests(vdo->data_vio_pool); in do_dump()
64 outstanding = (atomic64_read(&vdo->stats.bios_submitted) - in do_dump()
65 atomic64_read(&vdo->stats.bios_completed)); in do_dump()
68 vdo_get_device_name(vdo->device_config->owning_target)); in do_dump()
69 if (((dump_options_requested & FLAG_SHOW_QUEUES) != 0) && (vdo->threads != NULL)) { 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()
[all …]
H A Dcompletion.c52 struct vdo *vdo, in vdo_initialize_completion() argument
56 completion->vdo = vdo; in vdo_initialize_completion()
114 struct vdo *vdo = completion->vdo; in vdo_enqueue_completion() local
117 if (VDO_ASSERT(thread_id < vdo->thread_config.thread_count, in vdo_enqueue_completion()
120 vdo->thread_config.thread_count) != VDO_SUCCESS) in vdo_enqueue_completion()
126 vdo_enqueue_work_queue(vdo->threads[thread_id].queue, completion); in vdo_enqueue_completion()
H 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()
197 int __must_check make_vio_pool(struct vdo *vdo, size_t pool_size, size_t block_count,
H 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);
H 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);
H A Dflush.h28 int __must_check vdo_make_flusher(struct vdo *vdo);
38 void vdo_launch_flush(struct vdo *vdo, struct bio *bio);
H A DMakefile5 obj-$(CONFIG_DM_VDO) += dm-vdo.o
7 dm-vdo-objs := \
14 dm-vdo-target.o \
40 vdo.o \
H A Daction-manager.h83 struct vdo *vdo,
H A Dpacker.h101 int __must_check vdo_make_packer(struct vdo *vdo, block_count_t bin_count,
H A Dphysical-zone.h94 int __must_check vdo_make_physical_zones(struct vdo *vdo,
H A Ddedupe.h81 int __must_check vdo_make_hash_zones(struct vdo *vdo, struct hash_zones **zones_ptr);
H A Dcompletion.h31 void vdo_initialize_completion(struct vdo_completion *completion, struct vdo *vdo,
H A Drecovery-journal.h255 nonce_t nonce, struct vdo *vdo,
H A DKconfig16 be called dm-vdo.
/linux/include/linux/usb/
H A Dpd_vdo.h78 #define PD_VDO_VID(vdo) ((vdo) >> 16) argument
79 #define PD_VDO_SVDM(vdo) (((vdo) >> 15) & 1) argument
80 #define PD_VDO_SVDM_VER(vdo) (((vdo) >> 13) & 0x3) argument
81 #define PD_VDO_OPOS(vdo) (((vdo) >> 8) & 0x7) argument
82 #define PD_VDO_CMD(vdo) ((vdo) & 0x1f) argument
83 #define PD_VDO_CMDT(vdo) (((vdo) >> 6) & 0x3) argument
154 #define PD_IDH_PTYPE(vdo) (((vdo) >> 27) & 0x7) argument
155 #define PD_IDH_VID(vdo) ((vdo) & 0xffff) argument
156 #define PD_IDH_MODAL_SUPP(vdo) ((vdo) & (1 << 26)) argument
157 #define PD_IDH_DFP_PTYPE(vdo) (((vdo) >> 23) & 0x7) argument
[all …]
H A Dtypec_altmode.h40 u32 vdo; member
73 int (*enter)(struct typec_altmode *altmode, u32 *vdo);
75 void (*attention)(struct typec_altmode *altmode, u32 vdo);
77 const u32 *vdo, int cnt);
83 int typec_altmode_enter(struct typec_altmode *altmode, u32 *vdo);
85 int typec_altmode_attention(struct typec_altmode *altmode, u32 vdo);
87 const u32 header, const u32 *vdo, int count);
100 int (*enter)(struct typec_altmode *altmode, enum typec_plug_index sop, u32 *vdo);
103 const u32 hdr, const u32 *vdo, int cnt);
106 int typec_cable_altmode_enter(struct typec_altmode *altmode, enum typec_plug_index sop, u32 *vdo);
[all …]
/linux/drivers/usb/typec/altmodes/
H A Dthunderbolt.c141 const u32 *vdo, int count) in tbt_cable_altmode_vdm() argument
190 const u32 hdr, const u32 *vdo, int count) in tbt_altmode_vdm() argument
211 data.device_mode = tbt->alt->vdo; in tbt_altmode_vdm()
214 data.cable_mode = tbt->plug[TYPEC_PLUG_SOP_P]->vdo; in tbt_altmode_vdm()
319 u32 vdo; in tbt_ready() local
347 vdo = tbt->alt->vdo & (TBT_VENDOR_SPECIFIC_B0 | TBT_VENDOR_SPECIFIC_B1); in tbt_ready()
348 vdo |= tbt->alt->vdo & TBT_INTEL_SPECIFIC_B0; in tbt_ready()
349 vdo |= TBT_MODE; in tbt_ready()
354 vdo |= TBT_ENTER_MODE_ACTIVE_CABLE; in tbt_ready()
356 vdo |= TBT_ENTER_MODE_CABLE_SPEED(TBT_CABLE_SPEED(plug->vdo)); in tbt_ready()
[all …]
H A Ddisplayport.c106 signal = DP_CAP_DP_SIGNALLING(dp->port->vdo) & DP_CAP_DP_SIGNALLING(dp->alt->vdo); in dp_altmode_configure()
108 signal &= DP_CAP_DP_SIGNALLING(dp->plug_prime->vdo); in dp_altmode_configure()
117 pin_assign = DP_CAP_UFP_D_PIN_ASSIGN(dp->alt->vdo) & in dp_altmode_configure()
118 DP_CAP_DFP_D_PIN_ASSIGN(dp->port->vdo); in dp_altmode_configure()
121 pin_assign &= DP_CAP_DFP_D_PIN_ASSIGN(dp->plug_prime->vdo); in dp_altmode_configure()
126 pin_assign = DP_CAP_PIN_ASSIGN_UFP_D(dp->alt->vdo) & in dp_altmode_configure()
127 DP_CAP_PIN_ASSIGN_DFP_D(dp->port->vdo); in dp_altmode_configure()
130 pin_assign &= DP_CAP_UFP_D_PIN_ASSIGN(dp->plug_prime->vdo); in dp_altmode_configure()
270 u32 vdo; in dp_altmode_work() local
299 vdo = 1; in dp_altmode_work()
[all …]
/linux/drivers/usb/typec/ucsi/
H A Dtrace.h91 __field(u32, vdo)
97 __entry->vdo = alt->vdo;
101 __entry->mode, __entry->vdo)
H A Ddisplayport.c48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter() argument
160 u32 cap = dp->alt->vdo; in ucsi_displayport_status_update()
322 desc->vdo |= DP_CAP_DP_SIGNALLING(0) | DP_CAP_RECEPTACLE; in ucsi_register_displayport()
325 desc->vdo |= all_assignments << 8; in ucsi_register_displayport()
326 desc->vdo |= all_assignments << 16; in ucsi_register_displayport()
H A Ducsi.c453 if (desc->vdo == USB_TYPEC_NVIDIA_VLINK_DBG_VDO) in ucsi_register_altmode()
597 u16 svid, u32 vdo, int offset) in ucsi_altmode_is_duplicate() argument
605 if (alt_batch[k].svid == svid && alt_batch[k].mid == vdo) { in ucsi_altmode_is_duplicate()
607 vdo, vdo, offset); in ucsi_altmode_is_duplicate()
624 con->partner_altmode[partner_count - 1]->vdo, in ucsi_altmode_is_duplicate()
625 vdo, offset); in ucsi_altmode_is_duplicate()
644 if (altmodes[k]->svid != svid || altmodes[k]->vdo != vdo) in ucsi_altmode_is_duplicate()
648 altmodes[k]->vdo, vdo, offset); in ucsi_altmode_is_duplicate()
725 desc.vdo = altmode_array[i].mid; in ucsi_register_altmodes_nvidia()
795 desc.vdo = alt[j].mid; in ucsi_register_altmodes()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_typec_vdm.c95 static int cros_typec_port_amode_enter(struct typec_altmode *amode, u32 *vdo) in cros_typec_port_amode_enter() argument
121 const u32 *vdo, int cnt) in cros_typec_port_amode_vdm() argument
134 vdm_req.vdm_data[i] = vdo[i-1]; in cros_typec_port_amode_vdm()
/linux/drivers/usb/typec/
H A Dclass.c133 return sysfs_emit(buf, "0x%08x\n", id->vdo[0]); in product_type_vdo1_show()
142 return sysfs_emit(buf, "0x%08x\n", id->vdo[1]); in product_type_vdo2_show()
151 return sysfs_emit(buf, "0x%08x\n", id->vdo[2]); in product_type_vdo3_show()
347 return sprintf(buf, "0x%08x\n", alt->vdo); in vdo_show()
349 static DEVICE_ATTR_RO(vdo);
657 alt->adev.vdo = desc->vdo; in typec_register_altmode()
933 u32 devcap = PD_VDO_UFP_DEVCAP(id->vdo[0]); in typec_partner_set_identity()
942 usb_capability = PD_VDO_DFP_HOSTCAP(id->vdo[0]); in typec_partner_set_identity()
2620 u32 vdo; in typec_port_register_altmodes() local
2637 ret = fwnode_property_read_u32(child, "vdo", &vdo); in typec_port_register_altmodes()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-typec46 What: /sys/bus/typec/devices/.../vdo

12