Lines Matching refs:xcall_bufs
98 void **xcall_bufs; in xendevicemodel_xcall() local
102 xcall_bufs = calloc(nr_bufs, sizeof(*xcall_bufs)); in xendevicemodel_xcall()
103 if (xcall_bufs == NULL) in xendevicemodel_xcall()
112 xcall_bufs[i] = xencall_alloc_buffer(dmod->xcall, bufs[i].size); in xendevicemodel_xcall()
113 if ( xcall_bufs[i] == NULL ) in xendevicemodel_xcall()
116 memcpy(xcall_bufs[i], bufs[i].ptr, bufs[i].size); in xendevicemodel_xcall()
117 set_xen_guest_handle_raw(op_bufs[i].h, xcall_bufs[i]); in xendevicemodel_xcall()
128 memcpy(bufs[i].ptr, xcall_bufs[i], bufs[i].size); in xendevicemodel_xcall()
131 if (xcall_bufs) in xendevicemodel_xcall()
133 xencall_free_buffer(dmod->xcall, xcall_bufs[i]); in xendevicemodel_xcall()
136 free(xcall_bufs); in xendevicemodel_xcall()