Lines Matching refs:bufs
49 xen_dm_op_buf_t bufs[],
53 @bufs points to an array of buffers where @bufs[0] contains a struct
55 @bufs[1..] may be referenced in the parameters for the purposes of
57 @nr_bufs is the number of buffers in the @bufs array.
61 HYPERVISOR_dm_op->bufs.
73 3. For each @nr_bufs in @bufs: Check @h and @size give a buffer
86 static bool copy_buf_from_guest(xen_dm_op_buf_t bufs[],
97 size = min_t(size_t, dst_size, bufs[idx].size);
99 return !copy_from_guest(dst, bufs[idx].h, size);
102 static bool copy_buf_to_guest(xen_dm_op_buf_t bufs[],
111 size = min_t(size_t, bufs[idx].size, src_size);
113 return !copy_to_guest(bufs[idx].h, src, size);
120 xen_dm_op_buf_t bufs[])
138 if ( !copy_buf_from_guest(bufs, nr_bufs, &op, 0, sizeof(op)) )
153 !copy_buf_to_guest(bufs, nr_bufs, 0, &op, sizeof(op)) )
164 XEN_GUEST_HANDLE_PARAM(xen_dm_op_buf_t) bufs)
171 if ( copy_from_guest_offset(nat, bufs, 0, nr_bufs) )