Lines Matching refs:map_ops
688 int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops, in set_foreign_p2m_mapping() argument
711 if (map_ops[i].status != GNTST_okay || in set_foreign_p2m_mapping()
715 if (map_ops[i].flags & GNTMAP_contains_pte) { in set_foreign_p2m_mapping()
716 pte = (pte_t *)(mfn_to_virt(PFN_DOWN(map_ops[i].host_addr)) + in set_foreign_p2m_mapping()
717 (map_ops[i].host_addr & ~PAGE_MASK)); in set_foreign_p2m_mapping()
720 mfn = PFN_DOWN(map_ops[i].dev_bus_addr); in set_foreign_p2m_mapping()
733 map_ops[i].status = GNTST_general_error; in set_foreign_p2m_mapping()
734 unmap[0].host_addr = map_ops[i].host_addr, in set_foreign_p2m_mapping()
735 unmap[0].handle = map_ops[i].handle; in set_foreign_p2m_mapping()
736 map_ops[i].handle = INVALID_GRANT_HANDLE; in set_foreign_p2m_mapping()
737 if (map_ops[i].flags & GNTMAP_device_map) in set_foreign_p2m_mapping()
738 unmap[0].dev_bus_addr = map_ops[i].dev_bus_addr; in set_foreign_p2m_mapping()