| /linux/drivers/md/dm-vdo/ |
| H A D | vdo.c | 90 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, ®istry.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 D | dump.c | 55 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 D | completion.c | 52 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 D | vio.h | 58 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 D | message-stats.h | 11 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 D | dump.h | 11 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 D | flush.h | 28 int __must_check vdo_make_flusher(struct vdo *vdo); 38 void vdo_launch_flush(struct vdo *vdo, struct bio *bio);
|
| H A D | Makefile | 5 obj-$(CONFIG_DM_VDO) += dm-vdo.o 7 dm-vdo-objs := \ 14 dm-vdo-target.o \ 40 vdo.o \
|
| H A D | action-manager.h | 83 struct vdo *vdo,
|
| H A D | packer.h | 101 int __must_check vdo_make_packer(struct vdo *vdo, block_count_t bin_count,
|
| H A D | physical-zone.h | 94 int __must_check vdo_make_physical_zones(struct vdo *vdo,
|
| H A D | dedupe.h | 81 int __must_check vdo_make_hash_zones(struct vdo *vdo, struct hash_zones **zones_ptr);
|
| H A D | completion.h | 31 void vdo_initialize_completion(struct vdo_completion *completion, struct vdo *vdo,
|
| H A D | recovery-journal.h | 255 nonce_t nonce, struct vdo *vdo,
|
| H A D | Kconfig | 16 be called dm-vdo.
|
| /linux/include/linux/usb/ |
| H A D | pd_vdo.h | 78 #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 …]
|
| /linux/drivers/usb/typec/altmodes/ |
| H A D | thunderbolt.c | 141 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 D | displayport.c | 106 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 D | trace.h | 91 __field(u32, vdo) 97 __entry->vdo = alt->vdo; 101 __entry->mode, __entry->vdo)
|
| H A D | displayport.c | 48 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() 323 desc->vdo |= DP_CAP_DP_SIGNALLING(0) | DP_CAP_RECEPTACLE; in ucsi_register_displayport() 326 desc->vdo |= all_assignments << 8; in ucsi_register_displayport() 327 desc->vdo |= all_assignments << 16; in ucsi_register_displayport()
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_typec_vdm.c | 95 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 D | class.c | 133 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() 2619 u32 vdo; in typec_port_register_altmodes() local 2636 ret = fwnode_property_read_u32(child, "vdo", &vdo); in typec_port_register_altmodes() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-typec | 46 What: /sys/bus/typec/devices/.../vdo
|
| /linux/Documentation/ABI/obsolete/ |
| H A D | sysfs-class-typec | 27 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 1855 u32 vdo = p[VDO_INDEX_IDH]; in svdm_consume_identity() local 1863 port->partner_ident.id_header = vdo; in svdm_consume_identity() 1871 PD_IDH_VID(vdo), in svdm_consume_identity() 1897 port->cable_ident.vdo[0] = p[VDO_INDEX_CABLE_1]; in svdm_consume_identity_sop_prime() 1908 port->cable_ident.vdo[1] = p[VDO_INDEX_CABLE_2]; in svdm_consume_identity_sop_prime() 2013 paltmode->vdo = p[i]; in svdm_consume_modes() 2017 paltmode->mode, paltmode->vdo); in svdm_consume_modes() 3081 static int tcpm_altmode_enter(struct typec_altmode *altmode, u32 *vdo) in tcpm_altmode_enter() argument 3091 header = VDO(altmode->svid, vdo ? 2 : 1, svdm_version, CMD_ENTER_MODE); in tcpm_altmode_enter() 3094 return tcpm_queue_vdm_unlocked(port, header, vdo, vdo ? 1 : 0, TCPC_TX_SOP); in tcpm_altmode_enter() [all …]
|