Lines Matching refs:last_avail_idx
41 u16 *last_avail_idx) in __vringh_get_head() argument
53 if (*last_avail_idx == avail_idx) in __vringh_get_head()
59 i = *last_avail_idx & (vrh->vring.num - 1); in __vringh_get_head()
64 *last_avail_idx, &vrh->vring.avail->ring[i]); in __vringh_get_head()
74 (*last_avail_idx)++; in __vringh_get_head()
561 vrh->last_avail_idx) != 0) { in __vringh_notify_enable()
581 return avail == vrh->last_avail_idx; in __vringh_notify_enable()
672 vrh->last_avail_idx = 0; in vringh_init_user()
713 err = __vringh_get_head(vrh, getu16_user, &vrh->last_avail_idx); in vringh_getdesc_user()
795 vrh->last_avail_idx -= num; in vringh_abandon_user()
946 vrh->last_avail_idx = 0; in vringh_init_kern()
984 err = __vringh_get_head(vrh, getu16_kern, &vrh->last_avail_idx); in vringh_getdesc_kern()
1043 vrh->last_avail_idx -= num; in vringh_abandon_kern()
1488 err = __vringh_get_head(vrh, getu16_iotlb, &vrh->last_avail_idx); in vringh_getdesc_iotlb()
1553 vrh->last_avail_idx -= num; in vringh_abandon_iotlb()