/linux/arch/arm/xen/ |
H A D | p2m.c | 91 int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops, in set_foreign_p2m_mapping() argument 101 if (map_ops[i].status) in set_foreign_p2m_mapping() 103 if (likely(set_phys_to_machine(map_ops[i].host_addr >> XEN_PAGE_SHIFT, in set_foreign_p2m_mapping() 104 map_ops[i].dev_bus_addr >> XEN_PAGE_SHIFT))) in set_foreign_p2m_mapping() 111 map_ops[i].status = GNTST_general_error; in set_foreign_p2m_mapping() 112 unmap.host_addr = map_ops[i].host_addr; in set_foreign_p2m_mapping() 113 unmap.handle = map_ops[i].handle; in set_foreign_p2m_mapping() 114 map_ops[i].handle = INVALID_GRANT_HANDLE; in set_foreign_p2m_mapping() 115 if (map_ops[i].flags & GNTMAP_device_map) in set_foreign_p2m_mapping() 116 unmap.dev_bus_addr = map_ops[i].dev_bus_addr; in set_foreign_p2m_mapping()
|
/linux/drivers/xen/ |
H A D | xen-front-pgdir-shbuf.c | 249 struct gnttab_map_grant_ref *map_ops = NULL; in backend_map() local 253 map_ops = kcalloc(buf->num_pages, sizeof(*map_ops), GFP_KERNEL); in backend_map() 254 if (!map_ops) in backend_map() 261 kfree(map_ops); in backend_map() 285 gnttab_set_map_op(&map_ops[cur_page], addr, in backend_map() 295 ret = gnttab_map_refs(map_ops, NULL, buf->pages, buf->num_pages); in backend_map() 299 if (likely(map_ops[cur_page].status == GNTST_okay)) { in backend_map() 301 map_ops[cur_page].handle; in backend_map() 309 cur_page, map_ops[cur_page].status); in backend_map() 319 kfree(map_ops); in backend_map()
|
H A D | gntdev.c | 121 kvfree(map->map_ops); in gntdev_free_map() 141 add->map_ops = kvmalloc_array(count, sizeof(add->map_ops[0]), in gntdev_alloc_map() 149 NULL == add->map_ops || in gntdev_alloc_map() 200 add->map_ops[i].handle = INVALID_GRANT_HANDLE; in gntdev_alloc_map() 312 gnttab_set_map_op(&map->map_ops[pgnr], pte_maddr, flags, in find_grant_ptes() 327 if (map->map_ops[0].handle != INVALID_GRANT_HANDLE) in gntdev_map_grant_pages() 332 gnttab_set_map_op(&map->map_ops[i], addr, map->flags, in gntdev_map_grant_pages() 367 err = gnttab_map_refs(map->map_ops, map->kmap_ops, map->pages, in gntdev_map_grant_pages() 371 if (map->map_ops[i].status == GNTST_okay) { in gntdev_map_grant_pages() 372 map->unmap_ops[i].handle = map->map_ops[i].handle; in gntdev_map_grant_pages() [all …]
|
H A D | grant-table.c | 1245 int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, in gnttab_map_refs() argument 1251 ret = HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref, map_ops, count); in gnttab_map_refs() 1256 switch (map_ops[i].status) { in gnttab_map_refs() 1263 foreign->domid = map_ops[i].dom; in gnttab_map_refs() 1264 foreign->gref = map_ops[i].ref; in gnttab_map_refs() 1275 map_ops + i, in gnttab_map_refs() 1276 &map_ops[i].status, __func__); in gnttab_map_refs() 1286 return set_foreign_p2m_mapping(map_ops, kmap_ops, pages, count); in gnttab_map_refs()
|
H A D | gntdev-common.h | 57 struct gnttab_map_grant_ref *map_ops; member
|
/linux/arch/x86/xen/ |
H A D | p2m.c | 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() [all …]
|
/linux/arch/x86/include/asm/xen/ |
H A D | page.h | 65 extern int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops, 73 set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops, in set_foreign_p2m_mapping() argument
|
/linux/include/xen/arm/ |
H A D | page.h | 95 extern int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops,
|
/linux/drivers/net/xen-netback/ |
H A D | netback.c | 380 unsigned *map_ops, in xenvif_get_requests() argument 392 struct gnttab_map_grant_ref *gop = queue->tx_map_ops + *map_ops; in xenvif_get_requests() 520 (*map_ops) = gop - queue->tx_map_ops; in xenvif_get_requests() 918 unsigned *map_ops) in xenvif_tx_build_gops() argument 1097 map_ops, frag_overflow, nskb, extra_count, in xenvif_tx_build_gops()
|
/linux/include/xen/ |
H A D | grant_table.h | 255 int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops,
|
/linux/tools/perf/ |
H A D | builtin-sched.c | 3878 struct trace_sched_handler map_ops = { in cmd_sched() 3930 sched.tp_handler = &map_ops; in cmd_sched() 3868 struct trace_sched_handler map_ops = { cmd_sched() local
|
/linux/kernel/trace/ |
H A D | trace_events_hist.c | 5092 const struct tracing_map_ops *map_ops = NULL; in create_hist_data() local 5116 map_ops = &hist_trigger_elt_data_ops; in create_hist_data() 5119 map_ops, hist_data); in create_hist_data()
|