Home
last modified time | relevance | path

Searched refs:grant (Results 1 – 25 of 65) sorted by relevance

123

/linux/drivers/xen/
H A Dgrant-dma-ops.c3 * Xen grant DMA-mapping layer - contains special DMA-mapping routines
4 * for providing grant references as DMA addresses to be used by frontends
33 static inline dma_addr_t grant_to_dma(grant_ref_t grant) in grant_to_dma() argument
35 return XEN_GRANT_DMA_ADDR_OFF | ((dma_addr_t)grant << XEN_PAGE_SHIFT); in grant_to_dma()
74 * Such a DMA address is formed by using the grant reference as a frame
85 grant_ref_t grant; in xen_grant_dma_alloc() local
101 if (gnttab_alloc_grant_reference_seq(n_pages, &grant)) { in xen_grant_dma_alloc()
107 gnttab_grant_foreign_access_ref(grant + i, data->backend_domid, in xen_grant_dma_alloc()
111 *dma_handle = grant_to_dma(grant); in xen_grant_dma_alloc()
121 grant_ref_t grant; in xen_grant_dma_free() local
175 grant_ref_t grant; xen_grant_dma_map_page() local
209 grant_ref_t grant; xen_grant_dma_unmap_page() local
[all...]
H A DMakefile3 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
H A DKconfig137 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.
341 memory regions, including grant maps and foreign pages. This avoids
369 Require virtio for Xen guests to use grant mapping
[all...]
H A Dxen-scsiback.c440 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
473 pr_err("no grant page\n"); in scsiback_gnttab_data_map_list()
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_segment in scsiback_gnttab_data_map()
[all...]
/linux/Documentation/ABI/testing/
H A Dsysfs-fs-xfs23 The current state of the log reserve grant head. It
33 The current state of the log write grant head. It
H A Dsysfs-driver-xen-blkback24 How long a persistent grant is allowed to remain
36 cache any page not backed by a grant mapping.
H A Dsysfs-module68 Description: Read and write number of grant entries to attempt to free per iteration.
71 interface for controlling the rate of deferred grant reclaim
H A Dsysfs-firmware-ofw3 Contact: Grant Likely <grant.likely@arm.com>, devicetree@vger.kernel.org
/linux/arch/arm/xen/
H A DMakefile2 obj-y := enlighten.o hypercall.o grant-table.o p2m.o mm.o
/linux/arch/arm64/xen/
H A DMakefile2 xen-arm-y += $(addprefix ../../arm/xen/, enlighten.o grant-table.o p2m.o mm.o)
/linux/drivers/block/
H A Dxen-blkfront.c87 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_gran
88 grefgrant global() argument
[all...]
/linux/Documentation/devicetree/bindings/arm/
H A Dxen.txt13 Region 0 is reserved for mapping grant table, it must be always present.
14 The memory region is large enough to map the whole grant table (it is larger
/linux/Documentation/userspace-api/
H A Dno_new_privs.rst5 The execve system call can grant a newly-started program privileges that
26 promises not to grant the privilege to do anything that could not have
/linux/fs/ceph/
H A Dcaps.c3487 struct ceph_mds_caps *grant, in handle_cap_grant() argument
3495 int seq = le32_to_cpu(grant->seq); in handle_cap_grant()
3496 int newcaps = le32_to_cpu(grant->caps); in handle_cap_grant()
3498 u64 size = le64_to_cpu(grant->size); in handle_cap_grant()
3499 u64 max_size = le64_to_cpu(grant->max_size); in handle_cap_grant()
3558 WARN_ON(cap->cap_id != le64_to_cpu(grant->cap_id)); in handle_cap_grant()
3573 umode_t mode = le32_to_cpu(grant->mode); in handle_cap_grant()
3580 inode->i_uid = make_kuid(&init_user_ns, le32_to_cpu(grant->uid)); in handle_cap_grant()
3581 inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(grant->gid)); in handle_cap_grant()
3592 "cap grant attemp in handle_cap_grant()
[all...]
/linux/arch/x86/xen/
H A DMakefile17 obj-y += grant-table.o
/linux/Documentation/devicetree/bindings/net/can/
H A Dmpc5xxx-mscan.txt5 Grant Likely <grant.likely@secretlab.ca>
/linux/arch/powerpc/boot/dts/
H A Dmedia5200.dts6 * Grant Likely <grant.likely@secretlab.ca>
H A Dlite5200b.dts6 * Grant Likely <grant.likely@secretlab.ca>
H A Damigaone.dts67 min-grant = <0>;
/linux/Documentation/security/
H A Dlandlock.rst78 hierarchy doesn't grant that access right. The following sequences of
120 grant access to an object, at least one rule of each layer must allow the
/linux/fs/ocfs2/dlm/
H A Ddlmconvert.c126 /* must be on grant queue to convert */ in __dlmconvert_master()
128 mlog(ML_ERROR, "attempted to convert a lock not on grant " in __dlmconvert_master()
166 goto grant; in __dlmconvert_master()
185 /* fall thru to grant */ in __dlmconvert_master()
187 grant: in __dlmconvert_master()
190 /* immediately grant the new lock type */ in __dlmconvert_master()
493 mlog(ML_ERROR, "did not find lock to convert on grant queue! " in dlm_convert_lock_handler()
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dmcu.c145 struct mt7921_roc_grant_tlv *grant; in mt7921_mcu_uni_roc_event() local
150 grant = (struct mt7921_roc_grant_tlv *)(rxd->tlv + 4); in mt7921_mcu_uni_roc_event()
153 WARN_ON_ONCE((le16_to_cpu(grant->tag) != UNI_EVENT_ROC_GRANT)); in mt7921_mcu_uni_roc_event()
155 if (grant->reqtype == MT7921_ROC_REQ_ROC) in mt7921_mcu_uni_roc_event()
160 duration = le32_to_cpu(grant->max_interval); in mt7921_mcu_uni_roc_event()
/linux/Documentation/infiniband/
H A Ducaps.rst11 read-write access. Root processes can grant users special privileges
/linux/LICENSES/dual/
H A Dcopyleft-next-0.3.122 Subject to the terms of this License, I grant You:
32 This License does not grant any rights in My name, trademarks, service
102 Copyleft-Next Project, then the license I grant You under section 1 is no
/linux/Documentation/filesystems/xfs/
H A Dxfs-delayed-logging-design.rst225 Log space accounting is done via a pair of constructs called "grant heads". The
226 position of the grant heads is an absolute value, so the amount of space
228 grant head and the current log tail. That is, how much space can be
229 reserved/consumed before the grant heads would fully wrap the log and overtake
232 The first grant head is the "reserve" head. This tracks the byte count of the
239 The reserve grant head is used to accurately account for exact transaction
248 The other grant head is the "write" head. Unlike the reserve head, this grant
250 this might sound like it is accounting the same state as the reserve grant head
251 - and it mostly does track exactly the same location as the reserve grant hea
[all...]

123