Home
last modified time | relevance | path

Searched refs:sgt (Results 1 – 25 of 105) sorted by relevance

12345

/openbsd/sys/dev/pci/drm/i915/
H A Di915_mm.c37 struct sgt_iter sgt; member
46 return (r->sgt.dma + r->sgt.curr + r->iobase) >> PAGE_SHIFT; in sgt_pfn()
48 return r->sgt.pfn + (r->sgt.curr >> PAGE_SHIFT); in sgt_pfn()
57 if (GEM_WARN_ON(!r->sgt.sgp)) in remap_sg()
65 r->sgt.curr += PAGE_SIZE; in remap_sg()
66 if (r->sgt.curr >= r->sgt.max) in remap_sg()
67 r->sgt = __sgt_iter(__sg_next(r->sgt.sgp), use_dma(r->iobase)); in remap_sg()
140 .sgt = __sgt_iter(sgl, use_dma(iobase)), in remap_io_sg()
/openbsd/sys/dev/pci/drm/i915/gem/
H A Di915_gem_dmabuf.c34 struct sg_table *sgt; in i915_gem_map_dma_buf() local
42 sgt = kmalloc(sizeof(*sgt), GFP_KERNEL); in i915_gem_map_dma_buf()
43 if (!sgt) { in i915_gem_map_dma_buf()
52 dst = sgt->sgl; in i915_gem_map_dma_buf()
62 return sgt; in i915_gem_map_dma_buf()
65 sg_free_table(sgt); in i915_gem_map_dma_buf()
67 kfree(sgt); in i915_gem_map_dma_buf()
250 struct sg_table *sgt; in i915_gem_object_get_pages_dmabuf() local
256 if (IS_ERR(sgt)) in i915_gem_object_get_pages_dmabuf()
257 return PTR_ERR(sgt); in i915_gem_object_get_pages_dmabuf()
[all …]
/openbsd/sys/dev/pci/drm/
H A Ddrm_prime.c651 if (IS_ERR(sgt)) in drm_gem_map_dma_buf()
652 return sgt; in drm_gem_map_dma_buf()
657 sg_free_table(sgt); in drm_gem_map_dma_buf()
658 kfree(sgt); in drm_gem_map_dma_buf()
659 sgt = ERR_PTR(ret); in drm_gem_map_dma_buf()
662 return sgt; in drm_gem_map_dma_buf()
678 if (!sgt) in drm_gem_unmap_dma_buf()
682 sg_free_table(sgt); in drm_gem_unmap_dma_buf()
683 kfree(sgt); in drm_gem_unmap_dma_buf()
986 if (IS_ERR(sgt)) { in drm_gem_prime_import_dev()
[all …]
H A Ddrm_gem_dma_helper.c46 struct sg_table *sgt) in drm_gem_dma_create_internal() argument
56 if (sgt) { in drm_gem_dma_create_internal()
60 &nsegs, sgt); in drm_gem_dma_create_internal()
85 if (!sgt) in drm_gem_dma_create_internal()
104 if (obj->sgt) in drm_gem_dma_create_internal()
105 drm_prime_sg_free(obj->sgt); in drm_gem_dma_create_internal()
130 if (obj->sgt) in drm_gem_dma_obj_free()
131 drm_prime_sg_free(obj->sgt); in drm_gem_dma_obj_free()
244 struct dma_buf_attachment *attach, struct sg_table *sgt) in drm_gem_dma_prime_import_sg_table() argument
248 size_t size = drm_prime_sg_size(sgt); in drm_gem_dma_prime_import_sg_table()
[all …]
H A Ddrm_linux.c3309 ret = sg_alloc_table(sgt, 1, GFP_KERNEL); in dma_get_sgtable()
3313 sg_set_page(sgt->sgl, PHYS_TO_VM_PAGE(pa), size, 0); in dma_get_sgtable()
3344 struct sg_table *sgt, int prot) in iommu_map_sgtable() argument
3350 sgt->sgl->length, 0, BUS_DMA_WAITOK, &sgt->dmamap); in iommu_map_sgtable()
3354 sgt->dmamap->dm_segs[0].ds_addr = iova; in iommu_map_sgtable()
3355 sgt->dmamap->dm_segs[0].ds_len = sgt->sgl->length; in iommu_map_sgtable()
3356 sgt->dmamap->dm_nsegs = 1; in iommu_map_sgtable()
3357 seg.ds_addr = VM_PAGE_TO_PHYS(sgt->sgl->__page); in iommu_map_sgtable()
3358 seg.ds_len = sgt->sgl->length; in iommu_map_sgtable()
3360 sgt->sgl->length, BUS_DMA_WAITOK | BUS_DMA_FIXED); in iommu_map_sgtable()
[all …]
/openbsd/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_dma_buf.c150 struct sg_table *sgt; in amdgpu_dma_buf_map() local
178 if (IS_ERR(sgt)) in amdgpu_dma_buf_map()
179 return sgt; in amdgpu_dma_buf_map()
189 dir, &sgt); in amdgpu_dma_buf_map()
197 return sgt; in amdgpu_dma_buf_map()
200 sg_free_table(sgt); in amdgpu_dma_buf_map()
201 kfree(sgt); in amdgpu_dma_buf_map()
215 struct sg_table *sgt, in amdgpu_dma_buf_unmap() argument
218 if (sgt->sgl->page_link) { in amdgpu_dma_buf_unmap()
220 sg_free_table(sgt); in amdgpu_dma_buf_unmap()
[all …]
H A Damdgpu_vram_mgr.c658 struct sg_table **sgt) in amdgpu_vram_mgr_alloc_sgt() argument
668 *sgt = kmalloc(sizeof(**sgt), GFP_KERNEL); in amdgpu_vram_mgr_alloc_sgt()
669 if (!*sgt) in amdgpu_vram_mgr_alloc_sgt()
684 for_each_sgtable_sg((*sgt), sg, i) in amdgpu_vram_mgr_alloc_sgt()
694 for_each_sgtable_sg((*sgt), sg, i) { in amdgpu_vram_mgr_alloc_sgt()
723 sg_free_table(*sgt); in amdgpu_vram_mgr_alloc_sgt()
726 kfree(*sgt); in amdgpu_vram_mgr_alloc_sgt()
742 struct sg_table *sgt) in amdgpu_vram_mgr_free_sgt() argument
749 for_each_sgtable_sg(sgt, sg, i) in amdgpu_vram_mgr_free_sgt()
753 sg_free_table(sgt); in amdgpu_vram_mgr_free_sgt()
[all …]
H A Damdgpu_ttm.h133 struct sg_table **sgt);
136 struct sg_table *sgt);
H A Damdgpu_ttm.c927 struct sg_table *sgt; in amdgpu_ttm_backend_bind() local
931 sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); in amdgpu_ttm_backend_bind()
932 if (IS_ERR(sgt)) in amdgpu_ttm_backend_bind()
933 return PTR_ERR(sgt); in amdgpu_ttm_backend_bind()
939 ttm->sg = sgt; in amdgpu_ttm_backend_bind()
/openbsd/sys/dev/pci/drm/include/drm/
H A Ddrm_prime.h84 struct sg_table *sgt,
101 unsigned long drm_prime_get_contiguous_size(struct sg_table *sgt);
112 int drm_prime_sg_to_page_array(struct sg_table *sgt, struct vm_page **pages,
114 int drm_prime_sg_to_dma_addr_array(struct sg_table *sgt, dma_addr_t *addrs,
H A Ddrm_gem_dma_helper.h33 struct sg_table *sgt; member
H A Ddrm_drv.h354 struct sg_table *sgt);
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D20020315-1.c6 int sgt (char *a, char *b, int c, int d) in sgt() function
/openbsd/sys/dev/pci/drm/i915/selftests/
H A Dscatterlist.c116 struct sgt_iter sgt; in expect_pfn_sgtiter() local
121 for_each_sgt_page(page, sgt, &pt->st) { in expect_pfn_sgtiter()
/openbsd/gnu/usr.bin/perl/regen/
H A Doverload.pl157 sgt (gt
/openbsd/gnu/llvm/llvm/lib/Support/
H A DKnownBits.cpp371 std::optional<bool> KnownBits::sgt(const KnownBits &LHS, const KnownBits &RHS) { in sgt() function in KnownBits
376 if (LHS.getSignedMinValue().sgt(RHS.getSignedMaxValue())) in sgt()
382 if (std::optional<bool> KnownSGT = sgt(RHS, LHS)) in sge()
388 return sgt(RHS, LHS); in slt()
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp335 assert(nextValue.sgt(currentValue) && in Clusterify()
453 assert(Low.sgt(LastRange.Low)); in ProcessSwitchInst()
478 assert(Next->Low.sgt(I->High)); in ProcessSwitchInst()
/openbsd/gnu/usr.bin/perl/
H A Doverload.inc128 "(gt", /* sgt */
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DDependenceAnalysis.cpp614 if (Xq.sgt(UpperBound) || Yq.sgt(UpperBound)) { in intersectConstraints()
1527 if ((A.sgt(0) && B.sgt(0)) || in floorOfQuotient()
1540 if ((A.sgt(0) && B.sgt(0)) || in ceilingOfQuotient()
1627 if (TB.sgt(0)) { in exactSIVtest()
1646 if (TA.sgt(0)) { in exactSIVtest()
1674 if (TL.sgt(TU)) { in exactSIVtest()
1683 if (TA.sgt(TB)) { in exactSIVtest()
2019 if (TB.sgt(0)) { in exactRDIVtest()
2036 if (TA.sgt(0)) { in exactRDIVtest()
2063 if (TL.sgt(TU)) in exactRDIVtest()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/ADT/
H A DAPInt.h1152 bool sle(uint64_t RHS) const { return !sgt(RHS); } in sle()
1179 bool sgt(const APInt &RHS) const { return !sle(RHS); } in sgt() function
1187 bool sgt(int64_t RHS) const { in sgt() function
2181 return A.sgt(B) ? A : B;
H A DAPSInt.h172 return IsUnsigned ? ugt(RHS) : sgt(RHS);
/openbsd/gnu/llvm/llvm/lib/IR/
H A DConstantRange.cpp380 return Lower.sgt(Upper) && !Upper.isMinSignedValue(); in isSignWrappedSet()
384 return Lower.sgt(Upper); in isUpperSignWrapped()
1700 Min.sgt(SignedMax - OtherMin)) in signedAddMayOverflow()
1707 Max.sgt(SignedMax - OtherMax)) in signedAddMayOverflow()
1746 Min.sgt(SignedMax + OtherMax)) in signedSubMayOverflow()
1753 Max.sgt(SignedMax + OtherMin)) in signedSubMayOverflow()
/openbsd/gnu/usr.bin/perl/dist/Safe/t/
H A Dsafeops.t185 sgt $x gt $y
/openbsd/gnu/llvm/llvm/include/llvm/Support/
H A DKnownBits.h394 static std::optional<bool> sgt(const KnownBits &LHS, const KnownBits &RHS);
/openbsd/gnu/llvm/llvm/utils/vim/syntax/
H A Dllvm.vim34 syn keyword llvmStatement sdiv select sext sge sgt shl shufflevector sitofp

12345