Lines Matching refs:uint16_t
68 uint16_t flags;
70 uint16_t next;
74 uint16_t flags;
75 uint16_t idx;
76 uint16_t ring[];
88 uint16_t flags;
89 uint16_t idx;
112 * uint16_t avail_flags;
113 * uint16_t avail_idx;
114 * uint16_t available[num];
115 * uint16_t used_event_idx;
121 * uint16_t used_flags;
122 * uint16_t used_idx;
124 * uint16_t avail_event_idx;
130 #define vring_avail_event(vr) (*(uint16_t *)&(vr)->used->ring[(vr)->num])
138 vr->used = (struct vring_used *)(((unsigned long)&vr->avail->ring[num] + sizeof(uint16_t)
144 return ((sizeof(struct vring_desc) * num + sizeof(uint16_t) * (3 + num)
146 + sizeof(uint16_t) * 3 + sizeof(struct vring_used_elem) * num;
153 static inline int vring_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old)
160 return (uint16_t)(new_idx - event_idx - 1) < (uint16_t)(new_idx - old);