Lines Matching defs:vdc
45 #define VDC_DRIVER_NAME "vdc"
48 * Bit-field values to indicate if parts of the vdc driver are initialised.
71 #define VDC_MD_TIMEOUT "vdc-timeout"
134 * This macro returns the number of Hz that the vdc driver should wait before
148 #define VDC_GET_NEXT_REQ_ID(vdc) ((vdc)->req_id++)
150 #define VDC_GET_DRING_ENTRY_PTR(vdc, idx) \
151 (vd_dring_entry_t *)(uintptr_t)((vdc)->dring_mem_info.vaddr + \
152 (idx * (vdc)->dring_entry_size))
154 #define VDC_MARK_DRING_ENTRY_FREE(vdc, idx) \
157 ASSERT(vdc != NULL); \
158 ASSERT(idx < vdc->dring_len); \
159 ASSERT(vdc->dring_mem_info.vaddr != NULL); \
161 (vdc->dring_mem_info.vaddr + \
162 (idx * vdc->dring_entry_size)); \
168 #define VDC_INIT_DRING_DATA_MSG_IDS(dmsg, vdc) \
169 ASSERT(vdc != NULL); \
170 dmsg.tag.vio_sid = vdc->session_id; \
171 dmsg.seq_num = vdc->seq_num;
184 * The states that the vdc-vds connection can be in.
211 * The states that the vdc instance can be in.
223 * vdc creates a Local (private) descriptor ring the same size as the
273 struct vdc *vdcp; /* Ptr to vdc struct */
288 * vdc soft state structure
290 typedef struct vdc {
302 vdc_lc_state_t lifecycle; /* Current state of the vdc instance */
329 uint64_t req_id_proc; /* Last request ID processed by vdc */