Lines Matching defs:data
69 void *data; /* Data for callback. */
74 void *data; /* Data for callback. */
238 * unconditionally on data path.
420 void *data,
433 BUG_ON(data == NULL);
538 vq->split.desc_state[head].data = data;
626 /* Clear data ptr. */
627 vq->split.desc_state[head].data = NULL;
713 if (unlikely(!vq->split.desc_state[i].data)) {
718 /* detach_buf_split clears data, so grab it now. */
719 ret = vq->split.desc_state[i].data;
827 if (!vq->split.desc_state[i].data)
829 /* detach_buf_split clears data, so grab it now. */
830 buf = vq->split.desc_state[i].data;
984 void *data,
1070 vq->packed.desc_state[id].data = data;
1098 void *data,
1112 BUG_ON(data == NULL);
1126 in_sgs, data, gfp);
1205 vq->packed.desc_state[id].data = data;
1300 /* Clear data ptr. */
1301 state->data = NULL;
1388 if (unlikely(!vq->packed.desc_state[id].data)) {
1393 /* detach_buf_packed clears data, so grab it now. */
1394 ret = vq->packed.desc_state[id].data;
1548 if (!vq->packed.desc_state[i].data)
1550 /* detach_buf clears data, so grab it now. */
1551 buf = vq->packed.desc_state[i].data;
1710 void *data,
1717 out_sgs, in_sgs, data, ctx, gfp) :
1719 out_sgs, in_sgs, data, ctx, gfp);
1728 * @data: the token identifying the buffer.
1740 void *data,
1753 data, NULL, gfp);
1762 * @data: the token identifying the buffer.
1772 void *data,
1775 return virtqueue_add(vq, &sg, num, 1, 0, data, NULL, gfp);
1784 * @data: the token identifying the buffer.
1794 void *data,
1797 return virtqueue_add(vq, &sg, num, 0, 1, data, NULL, gfp);
1806 * @data: the token identifying the buffer.
1817 void *data,
1821 return virtqueue_add(vq, &sg, num, 0, 1, data, ctx, gfp);
1895 * If the device wrote data into the buffer, @len will be set to the
1897 * beforehand to ensure there's no data leakage in the case of short
1903 * Returns NULL if there are no used buffers, or the "data" token
2029 * Returns NULL or the "data" token handed to virtqueue_add_*().