/kernel/linux/linux-5.10/arch/arm/xen/ |
H A D | p2m.c | 90 int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops, in set_foreign_p2m_mapping() argument 100 if (map_ops[i].status) in set_foreign_p2m_mapping() 102 if (likely(set_phys_to_machine(map_ops[i].host_addr >> XEN_PAGE_SHIFT, in set_foreign_p2m_mapping() 103 map_ops[i].dev_bus_addr >> XEN_PAGE_SHIFT))) in set_foreign_p2m_mapping() 110 map_ops[i].status = GNTST_general_error; in set_foreign_p2m_mapping() 111 unmap.host_addr = map_ops[i].host_addr, in set_foreign_p2m_mapping() 112 unmap.handle = map_ops[i].handle; in set_foreign_p2m_mapping() 113 map_ops[i].handle = ~0; in set_foreign_p2m_mapping() 114 if (map_ops[i].flags & GNTMAP_device_map) in set_foreign_p2m_mapping() 115 unmap.dev_bus_addr = map_ops[ in set_foreign_p2m_mapping() [all...] |
/kernel/linux/linux-6.6/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[ in set_foreign_p2m_mapping() [all...] |
/kernel/linux/linux-5.10/drivers/xen/ |
H A D | xen-front-pgdir-shbuf.c | 258 struct gnttab_map_grant_ref *map_ops = NULL; in backend_map() local 262 map_ops = kcalloc(buf->num_pages, sizeof(*map_ops), GFP_KERNEL); in backend_map() 263 if (!map_ops) in backend_map() 270 kfree(map_ops); in backend_map() 294 gnttab_set_map_op(&map_ops[cur_page], addr, in backend_map() 304 ret = gnttab_map_refs(map_ops, NULL, buf->pages, buf->num_pages); in backend_map() 308 buf->backend_map_handles[cur_page] = map_ops[cur_page].handle; in backend_map() 309 if (unlikely(map_ops[cur_page].status != GNTST_okay)) in backend_map() 312 cur_page, map_ops[cur_pag in backend_map() [all...] |
H A D | gntdev.c | 121 kvfree(map->map_ops); in gntdev_free_map() 140 add->map_ops = kvcalloc(count, sizeof(add->map_ops[0]), GFP_KERNEL); in gntdev_alloc_map() 149 NULL == add->map_ops || in gntdev_alloc_map() 192 add->map_ops[i].handle = -1; in gntdev_alloc_map() 302 gnttab_set_map_op(&map->map_ops[pgnr], pte_maddr, flags, in find_grant_ptes() 317 if (map->map_ops[0].handle != -1) in gntdev_map_grant_pages() 322 gnttab_set_map_op(&map->map_ops[i], addr, map->flags, in gntdev_map_grant_pages() 330 * Setup the map_ops corresponding to the pte entries pointing in gntdev_map_grant_pages() 335 * dev_bus_addr output field gets consumed only from ->map_ops, in gntdev_map_grant_pages() [all...] |
H A D | grant-table.c | 1163 int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, in gnttab_map_refs() argument 1169 ret = HYPERVISOR_grant_table_op(GNTTABOP_map_grant_ref, map_ops, count); in gnttab_map_refs() 1174 switch (map_ops[i].status) { in gnttab_map_refs() 1181 foreign->domid = map_ops[i].dom; in gnttab_map_refs() 1182 foreign->gref = map_ops[i].ref; in gnttab_map_refs() 1193 map_ops + i, in gnttab_map_refs() 1194 &map_ops[i].status, __func__); in gnttab_map_refs() 1204 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
|
/kernel/linux/linux-6.6/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_pag in backend_map() [all...] |
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() 340 * Setup the map_ops corresponding to the pte entries pointing in gntdev_map_grant_pages() 345 * dev_bus_addr output field gets consumed only from ->map_ops, in gntdev_map_grant_pages() [all...] |
H A D | grant-table.c | 1247 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()
|
H A D | gntdev-common.h | 57 struct gnttab_map_grant_ref *map_ops; member
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
H A D | p2m.c | 693 int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops, in set_foreign_p2m_mapping() argument 716 if (map_ops[i].status != GNTST_okay || in set_foreign_p2m_mapping() 720 if (map_ops[i].flags & GNTMAP_contains_pte) { in set_foreign_p2m_mapping() 721 pte = (pte_t *)(mfn_to_virt(PFN_DOWN(map_ops[i].host_addr)) + in set_foreign_p2m_mapping() 722 (map_ops[i].host_addr & ~PAGE_MASK)); in set_foreign_p2m_mapping() 725 mfn = PFN_DOWN(map_ops[i].dev_bus_addr); in set_foreign_p2m_mapping() 738 map_ops[i].status = GNTST_general_error; in set_foreign_p2m_mapping() 739 unmap[0].host_addr = map_ops[i].host_addr, in set_foreign_p2m_mapping() 740 unmap[0].handle = map_ops[i].handle; in set_foreign_p2m_mapping() 741 map_ops[ in set_foreign_p2m_mapping() [all...] |
/kernel/linux/linux-6.6/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[ in set_foreign_p2m_mapping() [all...] |
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-6.6/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
|
/kernel/linux/linux-5.10/include/xen/arm/ |
H A D | page.h | 95 extern int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops,
|
/kernel/linux/linux-6.6/include/xen/arm/ |
H A D | page.h | 95 extern int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops,
|
/kernel/linux/linux-5.10/include/xen/ |
H A D | grant_table.h | 255 int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops,
|
/kernel/linux/linux-6.6/include/xen/ |
H A D | grant_table.h | 255 int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops,
|
/kernel/linux/linux-5.10/drivers/net/xen-netback/ |
H A D | netback.c | 379 unsigned *map_ops, in xenvif_get_requests() 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() 1101 map_ops, frag_overflow, nskb, extra_count, in xenvif_tx_build_gops() 1108 if ((*map_ops >= ARRAY_SIZE(queue->tx_map_ops)) || in xenvif_tx_build_gops() 374 xenvif_get_requests(struct xenvif_queue *queue, struct sk_buff *skb, struct xen_netif_tx_request *first, struct xen_netif_tx_request *txfrags, unsigned *copy_ops, unsigned *map_ops, unsigned int frag_overflow, struct sk_buff *nskb, unsigned int extra_count, unsigned int data_len) xenvif_get_requests() argument 914 xenvif_tx_build_gops(struct xenvif_queue *queue, int budget, unsigned *copy_ops, unsigned *map_ops) xenvif_tx_build_gops() argument
|
/kernel/linux/linux-6.6/drivers/net/xen-netback/ |
H A D | netback.c | 379 unsigned *map_ops, in xenvif_get_requests() 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() 1096 map_ops, frag_overflow, nskb, extra_count, in xenvif_tx_build_gops() 374 xenvif_get_requests(struct xenvif_queue *queue, struct sk_buff *skb, struct xen_netif_tx_request *first, struct xen_netif_tx_request *txfrags, unsigned *copy_ops, unsigned *map_ops, unsigned int frag_overflow, struct sk_buff *nskb, unsigned int extra_count, unsigned int data_len) xenvif_get_requests() argument 914 xenvif_tx_build_gops(struct xenvif_queue *queue, int budget, unsigned *copy_ops, unsigned *map_ops) xenvif_tx_build_gops() argument
|
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | trace_events_hist.c | 4420 const struct tracing_map_ops *map_ops = NULL; in create_hist_data() local 4444 map_ops = &hist_trigger_elt_data_ops; in create_hist_data() 4447 map_ops, hist_data); in create_hist_data()
|
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-sched.c | 3534 struct trace_sched_handler map_ops = { in cmd_sched() local 3575 sched.tp_handler = &map_ops; in cmd_sched()
|
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-sched.c | 3585 struct trace_sched_handler map_ops = { in cmd_sched() local 3643 sched.tp_handler = &map_ops; in cmd_sched()
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_events_hist.c | 5103 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()
|