Lines Matching refs:state
79 u16 last; /* The last desc state in a list. */
86 u16 next; /* The next desc state in a list. */
102 /* Per-descriptor state. */
142 /* Per-descriptor state. */
678 /* Store token and indirect buffer state. */
1054 struct vring_desc_state_split *state;
1058 state = kmalloc_array(num, sizeof(struct vring_desc_state_split), GFP_KERNEL);
1059 if (!state)
1066 memset(state, 0, num * sizeof(struct vring_desc_state_split));
1068 vring_split->desc_state = state;
1073 kfree(state);
1375 /* Store token and indirect buffer state. */
1605 struct vring_desc_state_packed *state = NULL;
1609 state = &vq->packed.desc_state[id];
1612 state->data = NULL;
1614 vq->packed.desc_extra[state->last].next = vq->free_head;
1616 vq->vq.num_free += state->num;
1620 for (i = 0; i < state->num; i++) {
1631 desc = state->indir_desc;
1642 state->indir_desc = NULL;
1644 *ctx = state->indir_desc;
1991 struct vring_desc_state_packed *state;
1995 state = kmalloc_array(num, sizeof(struct vring_desc_state_packed), GFP_KERNEL);
1996 if (!state)
1999 memset(state, 0, num * sizeof(struct vring_desc_state_packed));
2005 vring_packed->desc_state = state;
2011 kfree(state);
2454 * This re-enables callbacks; it returns current queue state
2477 * @last_used_idx: virtqueue state (from call to virtqueue_enable_cb_prepare).
2721 * into the reset state. Then call the passed callback to recycle the buffer