/openbsd/sys/dev/pci/drm/i915/ |
H A D | i915_mm.c | 37 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 D | i915_gem_dmabuf.c | 34 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 D | drm_prime.c | 651 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 D | drm_gem_dma_helper.c | 46 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 D | drm_linux.c | 3324 ret = sg_alloc_table(sgt, 1, GFP_KERNEL); in dma_get_sgtable() 3328 sg_set_page(sgt->sgl, PHYS_TO_VM_PAGE(pa), size, 0); in dma_get_sgtable() 3359 struct sg_table *sgt, int prot) in iommu_map_sgtable() argument 3365 sgt->sgl->length, 0, BUS_DMA_WAITOK, &sgt->dmamap); in iommu_map_sgtable() 3369 sgt->dmamap->dm_segs[0].ds_addr = iova; in iommu_map_sgtable() 3370 sgt->dmamap->dm_segs[0].ds_len = sgt->sgl->length; in iommu_map_sgtable() 3371 sgt->dmamap->dm_nsegs = 1; in iommu_map_sgtable() 3372 seg.ds_addr = VM_PAGE_TO_PHYS(sgt->sgl->__page); in iommu_map_sgtable() 3373 seg.ds_len = sgt->sgl->length; in iommu_map_sgtable() 3375 sgt->sgl->length, BUS_DMA_WAITOK | BUS_DMA_FIXED); in iommu_map_sgtable() [all …]
|
/openbsd/sys/dev/pci/drm/amd/amdgpu/ |
H A D | amdgpu_dma_buf.c | 150 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 D | amdgpu_vram_mgr.c | 658 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 D | amdgpu_ttm.h | 133 struct sg_table **sgt); 136 struct sg_table *sgt);
|
H A D | amdgpu_ttm.c | 929 struct sg_table *sgt; in amdgpu_ttm_backend_bind() local 933 sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); in amdgpu_ttm_backend_bind() 934 if (IS_ERR(sgt)) in amdgpu_ttm_backend_bind() 935 return PTR_ERR(sgt); in amdgpu_ttm_backend_bind() 941 ttm->sg = sgt; in amdgpu_ttm_backend_bind()
|
/openbsd/sys/dev/pci/drm/include/drm/ |
H A D | drm_prime.h | 84 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 D | drm_gem_dma_helper.h | 33 struct sg_table *sgt; member
|
H A D | drm_drv.h | 354 struct sg_table *sgt);
|
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 20020315-1.c | 6 int sgt (char *a, char *b, int c, int d) in sgt() function
|
/openbsd/sys/dev/pci/drm/i915/selftests/ |
H A D | scatterlist.c | 116 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 D | overload.pl | 157 sgt (gt
|
/openbsd/gnu/llvm/llvm/lib/Support/ |
H A D | KnownBits.cpp | 371 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 D | LowerSwitch.cpp | 335 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 D | overload.inc | 128 "(gt", /* sgt */
|
/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | DependenceAnalysis.cpp | 614 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 D | APInt.h | 1152 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 D | APSInt.h | 172 return IsUnsigned ? ugt(RHS) : sgt(RHS);
|
/openbsd/gnu/llvm/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 380 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 D | safeops.t | 185 sgt $x gt $y
|
/openbsd/gnu/llvm/llvm/include/llvm/Support/ |
H A D | KnownBits.h | 394 static std::optional<bool> sgt(const KnownBits &LHS, const KnownBits &RHS);
|
/openbsd/gnu/llvm/llvm/utils/vim/syntax/ |
H A D | llvm.vim | 34 syn keyword llvmStatement sdiv select sext sge sgt shl shufflevector sitofp
|