Searched refs:map_ops (Results 1 – 5 of 5) sorted by relevance
/drivers/xen/ |
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_page].status); in backend_map() 321 kfree(map_ops); in backend_map()
|
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() 357 err = gnttab_map_refs(map->map_ops, use_ptemod ? map->kmap_ops : NULL, in gntdev_map_grant_pages() 361 if (map->map_ops[i].status == GNTST_okay) { in gntdev_map_grant_pages() 362 map->unmap_ops[i].handle = map->map_ops[i].handle; in gntdev_map_grant_pages() [all …]
|
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()
|
D | gntdev-common.h | 57 struct gnttab_map_grant_ref *map_ops; member
|
/drivers/net/xen-netback/ |
D | netback.c | 379 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 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()
|