Lines Matching refs:hbuf
24 .hbuf = NULL,
36 b->hbuf = p; in xc__hypercall_buffer_alloc_pages()
38 return b->hbuf; in xc__hypercall_buffer_alloc_pages()
43 xencall_free_buffer_pages(xch->xcall, b->hbuf, nr_pages); in xc__hypercall_buffer_free_pages()
53 b->hbuf = p; in xc__hypercall_buffer_alloc()
55 return b->hbuf; in xc__hypercall_buffer_alloc()
60 xencall_free_buffer(xch->xcall, b->hbuf); in xc__hypercall_buffer_free()
78 b->hbuf = NULL; in xc__hypercall_bounce_pre()
87 memcpy(b->hbuf, b->ubuf, b->sz); in xc__hypercall_bounce_pre()
100 if ( b->hbuf == NULL ) in xc__hypercall_bounce_post()
104 memcpy(b->ubuf, b->hbuf, b->sz); in xc__hypercall_bounce_post()
142 xc_hypercall_buffer_t *hbuf, in xc__hypercall_buffer_array_alloc() argument
147 if ( index >= array->max_bufs || array->bufs[index].hbuf ) in xc__hypercall_buffer_array_alloc()
150 buf = xc__hypercall_buffer_alloc(xch, hbuf, size); in xc__hypercall_buffer_array_alloc()
152 array->bufs[index] = *hbuf; in xc__hypercall_buffer_array_alloc()
159 xc_hypercall_buffer_t *hbuf) in xc__hypercall_buffer_array_get() argument
161 if ( index >= array->max_bufs || array->bufs[index].hbuf == NULL ) in xc__hypercall_buffer_array_get()
164 *hbuf = array->bufs[index]; in xc__hypercall_buffer_array_get()
165 return array->bufs[index].hbuf; in xc__hypercall_buffer_array_get()