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