Home
last modified time | relevance | path

Searched refs:map_ops (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/arch/arm/xen/
Dp2m.c91 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-6.6.21/drivers/xen/
Dxen-front-pgdir-shbuf.c249 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()
Dgntdev.c121 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 …]
Dgntdev-common.h57 struct gnttab_map_grant_ref *map_ops; member
Dgrant-table.c1247 int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, in gnttab_map_refs() argument
1253 ret = HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref, map_ops, count); in gnttab_map_refs()
1258 switch (map_ops[i].status) { in gnttab_map_refs()
1265 foreign->domid = map_ops[i].dom; in gnttab_map_refs()
1266 foreign->gref = map_ops[i].ref; in gnttab_map_refs()
1277 map_ops + i, in gnttab_map_refs()
1278 &map_ops[i].status, __func__); in gnttab_map_refs()
1288 return set_foreign_p2m_mapping(map_ops, kmap_ops, pages, count); in gnttab_map_refs()
/linux-6.6.21/arch/x86/xen/
Dp2m.c688 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-6.6.21/arch/x86/include/asm/xen/
Dpage.h65 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-6.6.21/include/xen/arm/
Dpage.h95 extern int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops,
/linux-6.6.21/drivers/net/xen-netback/
Dnetback.c379 unsigned *map_ops, in xenvif_get_requests() argument
391 struct gnttab_map_grant_ref *gop = queue->tx_map_ops + *map_ops; in xenvif_get_requests()
519 (*map_ops) = gop - queue->tx_map_ops; in xenvif_get_requests()
917 unsigned *map_ops) in xenvif_tx_build_gops() argument
1096 map_ops, frag_overflow, nskb, extra_count, in xenvif_tx_build_gops()
/linux-6.6.21/include/xen/
Dgrant_table.h255 int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops,
/linux-6.6.21/tools/perf/
Dbuiltin-sched.c3585 struct trace_sched_handler map_ops = { in cmd_sched() local
3643 sched.tp_handler = &map_ops; in cmd_sched()
/linux-6.6.21/kernel/trace/
Dtrace_events_hist.c5103 const struct tracing_map_ops *map_ops = NULL; in create_hist_data() local
5127 map_ops = &hist_trigger_elt_data_ops; in create_hist_data()
5130 map_ops, hist_data); in create_hist_data()