Searched refs:grant (Results 1 – 6 of 6) sorted by relevance
/drivers/xen/ |
D | grant-dma-ops.c | 32 static inline dma_addr_t grant_to_dma(grant_ref_t grant) in grant_to_dma() argument 34 return XEN_GRANT_DMA_ADDR_OFF | ((dma_addr_t)grant << XEN_PAGE_SHIFT); in grant_to_dma() 84 grant_ref_t grant; in xen_grant_dma_alloc() local 100 if (gnttab_alloc_grant_reference_seq(n_pages, &grant)) { in xen_grant_dma_alloc() 106 gnttab_grant_foreign_access_ref(grant + i, data->backend_domid, in xen_grant_dma_alloc() 110 *dma_handle = grant_to_dma(grant); in xen_grant_dma_alloc() 120 grant_ref_t grant; in xen_grant_dma_free() local 129 grant = dma_to_grant(dma_handle); in xen_grant_dma_free() 132 if (unlikely(!gnttab_end_foreign_access_ref(grant + i))) { in xen_grant_dma_free() 139 gnttab_free_grant_reference_seq(grant, n_pages); in xen_grant_dma_free() [all …]
|
D | Makefile | 3 obj-y += grant-table.o features.o balloon.o manage.o time.o 42 obj-$(CONFIG_XEN_GRANT_DMA_OPS) += grant-dma-ops.o 43 obj-$(CONFIG_XEN_GRANT_DMA_IOMMU) += grant-dma-iommu.o
|
D | Kconfig | 137 tristate "userspace grant access device driver" 145 bool "Add support for dma-buf grant access device driver extension" 150 dma-buf implementation. With this extension grant references to 152 use and grant references coming from a foreign domain can be 156 tristate "User-space grant reference allocator driver" 165 bool "Allow allocating DMA capable buffers with grant reference module" 168 Extends grant table module API to allow allocating DMA capable 169 buffers and mapping foreign grant references on top of it. 334 memory regions, including grant maps and foreign pages. This avoids 362 Require virtio for Xen guests to use grant mappings.
|
D | xen-scsiback.c | 440 struct page **pg, grant_handle_t *grant, int cnt) in scsiback_gnttab_data_map_batch() argument 457 grant[i] = map[i].handle; in scsiback_gnttab_data_map_batch() 464 grant_handle_t *grant, int cnt, u32 flags) in scsiback_gnttab_data_map_list() argument 481 err = scsiback_gnttab_data_map_batch(map, pg, grant, mapcount); in scsiback_gnttab_data_map_list() 483 grant += mapcount; in scsiback_gnttab_data_map_list() 489 err = scsiback_gnttab_data_map_batch(map, pg, grant, mapcount); in scsiback_gnttab_data_map_list() 505 grant_handle_t *grant; in scsiback_gnttab_data_map() local 559 grant = pending_req->grant_handles + nr_sgl; in scsiback_gnttab_data_map() 563 pg, grant, nr_segments, flags); in scsiback_gnttab_data_map() 573 pg, grant, n_segs, flags); in scsiback_gnttab_data_map() [all …]
|
/drivers/block/ |
D | xen-blkfront.c | 87 struct grant { struct 104 struct grant **grants_used; argument 105 struct grant **indirect_grants; 313 struct grant *gnt_list_entry, *n; in fill_grant_buffer() 317 gnt_list_entry = kzalloc(sizeof(struct grant), GFP_NOIO); in fill_grant_buffer() 350 static struct grant *get_free_grant(struct blkfront_ring_info *rinfo) in get_free_grant() 352 struct grant *gnt_list_entry; in get_free_grant() 355 gnt_list_entry = list_first_entry(&rinfo->grants, struct grant, in get_free_grant() 365 static inline void grant_foreign_access(const struct grant *gnt_list_entry, in grant_foreign_access() 374 static struct grant *get_grant(grant_ref_t *gref_head, in get_grant() [all …]
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_dp.c | 3252 uint8_t grant = link->dpcd_caps.lttpr_caps.max_ext_timeout & 0x80; in dp_verify_link_cap() local 3254 core_link_write_dpcd(link, DP_PHY_REPEATER_EXTENDED_WAIT_TIMEOUT, &grant, sizeof(grant)); in dp_verify_link_cap()
|