Lines Matching refs:state
332 memcpy(&msg.payload.state, arg, sizeof(msg.payload.state));
333 msg.size = sizeof(msg.payload.state);
337 memcpy(&msg.payload.state, arg, sizeof(msg.payload.state));
338 msg.size = sizeof(msg.payload.state);
412 if (msg.size != sizeof(msg.payload.state)) {
416 memcpy(arg, &msg.payload.state,
521 struct vhost_vring_state state;
525 state.index = queue_sel;
526 state.num = vring->num;
527 rc = vhost_user_sock(dev, VHOST_USER_SET_VRING_NUM, &state);
532 state.index = queue_sel;
533 state.num = 0; /* no reservation */
534 rc = vhost_user_sock(dev, VHOST_USER_SET_VRING_BASE, &state);
554 struct vhost_vring_state state;
556 state.index = queue_sel;
557 state.num = 0;
559 return vhost_user_sock(dev, VHOST_USER_GET_VRING_BASE, &state);
865 struct vhost_vring_state state;
904 state.index = vq->vq_queue_index;
905 state.num = 1;
908 rc = vhost_user_sock(dev, VHOST_USER_SET_VRING_ENABLE, &state);