| /linux/drivers/md/dm-vdo/ |
| H A D | vdo.c | 7 * This file contains the main entry points for normal operations on a vdo as well as functions for 8 * constructing and destroying vdo instances (in memory). 20 * When vdo_enter_read_only_mode() is called from some vdo thread, if the read_only_error field 25 * notifications are currently disallowed, generally due to the vdo being suspended. In this case, 26 * the nothing more will be done until the vdo is resumed, at which point the notification will be 27 * performed. In any other case, the vdo is already read-only, and there is nothing more to do. 30 #include "vdo.h" 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() 96 * filter_vdos_locked() - Find a vdo in the registry if it exists there. [all …]
|
| H A D | dump.c | 20 #include "vdo.h" 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() [all …]
|
| H A D | vio.h | 18 #include "vdo.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() 104 * @block_count: The size of this vio in vdo blocks. 107 * @vdo: The vdo for this 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() [all …]
|
| H A D | completion.c | 16 #include "vdo.h" 19 * DOC: vdo completions. 21 * Most of vdo's data structures are lock free, each either belonging to a single "zone," or 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 | 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 | statistics.h | 146 /** Counts of error conditions in VDO. */ 148 /* number of times VDO got an invalid dedupe advice PBN from UDS */ 198 /** The statistics of the vdo service. */ 203 /* Number of blocks used for VDO metadata */ 215 /* Number of times the VDO has successfully recovered */ 217 /* Number of times the VDO has recovered from read-only mode */ 219 /* String describing the operating mode of the VDO */ 221 /* Whether the VDO is in recovery mode */ 243 /* The VDO instance */ 255 /* Bios submitted into VDO from above */
|
| H A D | status-codes.h | 17 /* VDO-specific status codes. */ 19 /* base of all VDO errors */ 51 /* the VDO is in read-only mode */ 53 /* the VDO is shutting down */ 73 /* the VDO is not in a state to perform an admin operation */
|
| 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 | Kconfig | 4 tristate "VDO: deduplication and compression target" 16 be called dm-vdo.
|
| H A D | completion.h | 31 void vdo_initialize_completion(struct vdo_completion *completion, struct vdo *vdo, 35 * vdo_reset_completion() - Reset a completion to a clean state, while keeping the type, vdo and
|
| /linux/include/linux/usb/ |
| H A D | pd_vdo.h | 13 * VDO : Vendor Defined Message Object 32 #define VDO(vid, type, ver, custom) \ macro 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 94 * [2] :: Cert Stat VDO 95 * [3] :: (Product | Cable) VDO [all …]
|
| H A D | typec_tbt.h | 17 * @device_mode: Device Discover Mode VDO 18 * @cable_mode: Cable Discover Mode VDO 19 * @enter_vdo: Enter Mode VDO 27 /* TBT3 Device Discover Mode VDO bits */ 38 /* TBT3 Cable Discover Mode VDO bits */ 56 /* TBT3 Device Enter Mode VDO bits */
|
| H A D | typec_altmode.h | 27 * @vdo: VDO returned by Discover Modes USB PD command 40 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); [all …]
|
| H A D | typec_dp.h | 39 * @status: Status Update command VDO content 40 * @conf: Configure command VDO content 67 /* DisplayPort Capabilities VDO bits (returned with Discover Modes) */ 93 /* DisplayPort Status Update VDO bits */ 107 /* DisplayPort Configurations VDO bits */
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | displayport.c | 48 static int ucsi_displayport_enter(struct typec_altmode *alt, u32 *vdo) in ucsi_displayport_enter() argument 94 dp->header = VDO(USB_TYPEC_DP_SID, 1, svdm_version, CMD_ENTER_MODE); in ucsi_displayport_enter() 139 dp->header = VDO(USB_TYPEC_DP_SID, 1, svdm_version, CMD_EXIT_MODE); in ucsi_displayport_exit() 155 * We do not actually have access to the Status Update VDO, so we have to guess 160 u32 cap = dp->alt->vdo; in ucsi_displayport_status_update() 231 dp->header = VDO(USB_TYPEC_DP_SID, 1, svdm_version, cmd); in ucsi_displayport_vdm() 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 D | trace.h | 91 __field(u32, vdo) 97 __entry->vdo = alt->vdo; 99 TP_printk("%s alt mode: svid %04x, mode %d vdo %x", 101 __entry->mode, __entry->vdo)
|
| /linux/Documentation/devicetree/bindings/iommu/ |
| H A D | mediatek,iommu.yaml | 82 - mediatek,mt8188-iommu-vdo # generation two 89 - mediatek,mt8195-iommu-vdo # generation two 169 - mediatek,mt8188-iommu-vdo 173 - mediatek,mt8195-iommu-vdo 186 - mediatek,mt8188-iommu-vdo 190 - mediatek,mt8195-iommu-vdo
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-typec | 37 must be done with either mode VDO or the description. 46 What: /sys/bus/typec/devices/.../vdo 50 Shows the VDO in hexadecimal returned by Discover Modes command
|
| /linux/Documentation/ABI/obsolete/ |
| H A D | sysfs-class-typec | 17 is the actual index to the mode VDO returned by Discover Modes 27 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo 31 Shows the VDO in hexadecimal returned by Discover Modes command
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_typec_altmode.c | 58 static int cros_typec_altmode_enter(struct typec_altmode *alt, u32 *vdo) in cros_typec_altmode_enter() argument 92 adata->header = VDO(adata->sid, 1, svdm_version, CMD_ENTER_MODE); in cros_typec_altmode_enter() 131 adata->header = VDO(adata->sid, 1, svdm_version, CMD_EXIT_MODE); in cros_typec_altmode_exit() 167 adata->header = VDO(adata->sid, 1, svdm_version, cmd); in cros_typec_displayport_vdm() 172 * provided VDO yet so just send back an ACK. in cros_typec_displayport_vdm() 225 adata->header = VDO(adata->sid, 1, svdm_version, cmd); in cros_typec_thunderbolt_vdm()
|
| 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 105 hdr = VDO(amode->svid, 1, SVDM_VER_2_0, CMD_ENTER_MODE); in cros_typec_port_amode_enter() 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/Documentation/devicetree/bindings/connector/ |
| H A D | usb-connector.yaml | 122 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO), 124 definitions and the order of each VDO can be found in 126 chapter 6.4.4.3.1 Discover Identity. User can specify the VDO array via 134 description: An array of u32 with each entry, a Vendor Defined Message Object (VDO), 136 definitions and the order of each VDO can be found in 138 Identity. User can specify the VDO array via VDO_IDH/_CERT/_PRODUCT/_CABLE/_AMA defined in 178 vdo: 180 description: VDO returned by Discover Modes USB PD command. 435 vdo = <0x00001c46>;
|
| /linux/Documentation/devicetree/bindings/memory-controllers/ |
| H A D | mediatek,smi-common.yaml | 41 - mediatek,mt8188-smi-common-vdo 44 - mediatek,mt8195-smi-common-vdo 136 - mediatek,mt8195-smi-common-vdo
|