Lines Matching refs:copy_op
292 struct gnttab_copy copy_op = { in xenvif_set_hash_key() local
305 if (copy_op.len != 0) { in xenvif_set_hash_key()
306 gnttab_batch_copy(©_op, 1); in xenvif_set_hash_key()
308 if (copy_op.status != GNTST_okay) in xenvif_set_hash_key()
338 struct gnttab_copy copy_op[2] = {{ in xenvif_set_hash_mapping() local
350 copy_op[0].dest.u.gmfn = virt_to_gfn(mapping + off); in xenvif_set_hash_mapping()
351 copy_op[0].dest.offset = xen_offset_in_page(mapping + off); in xenvif_set_hash_mapping()
352 if (copy_op[0].dest.offset + copy_op[0].len > XEN_PAGE_SIZE) { in xenvif_set_hash_mapping()
353 copy_op[1] = copy_op[0]; in xenvif_set_hash_mapping()
354 copy_op[1].source.offset = XEN_PAGE_SIZE - copy_op[0].dest.offset; in xenvif_set_hash_mapping()
355 copy_op[1].dest.u.gmfn = virt_to_gfn(mapping + off + len); in xenvif_set_hash_mapping()
356 copy_op[1].dest.offset = 0; in xenvif_set_hash_mapping()
357 copy_op[1].len = copy_op[0].len - copy_op[1].source.offset; in xenvif_set_hash_mapping()
358 copy_op[0].len = copy_op[1].source.offset; in xenvif_set_hash_mapping()
365 if (copy_op[0].len != 0) { in xenvif_set_hash_mapping()
366 gnttab_batch_copy(copy_op, nr); in xenvif_set_hash_mapping()
368 if (copy_op[0].status != GNTST_okay || in xenvif_set_hash_mapping()
369 copy_op[nr - 1].status != GNTST_okay) in xenvif_set_hash_mapping()