/external/llvm-project/lld/unittests/DriverTests/ |
D | DarwinLdDriverTest.cpp | 32 int inputFileCount() { return _ctx.getNodes().size(); } in inputFileCount() 35 Node &node = *_ctx.getNodes()[index]; in inputFile() 43 return mach_o::parse(args, _ctx); in parse() 46 MachOLinkingContext _ctx; member in __anon8c71b2530111::DarwinLdParserTest 52 EXPECT_FALSE(_ctx.allowRemainingUndefines()); in TEST_F() 53 EXPECT_FALSE(_ctx.deadStrip()); in TEST_F() 61 EXPECT_EQ("my.out", _ctx.outputPath()); in TEST_F() 66 EXPECT_EQ(llvm::MachO::MH_DYLIB, _ctx.outputMachOType()); in TEST_F() 71 EXPECT_EQ(llvm::MachO::MH_OBJECT, _ctx.outputMachOType()); in TEST_F() 76 EXPECT_EQ(llvm::MachO::MH_BUNDLE, _ctx.outputMachOType()); in TEST_F() [all …]
|
/external/python/cryptography/src/cryptography/hazmat/primitives/ciphers/ |
D | base.py | 144 self._ctx = ctx 147 if self._ctx is None: 149 return self._ctx.update(data) 152 if self._ctx is None: 154 return self._ctx.update_into(data, buf) 157 if self._ctx is None: 159 data = self._ctx.finalize() 160 self._ctx = None 169 self._ctx = ctx 176 if self._ctx is None: [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | fastssim.c | 52 static void fs_ctx_init(fs_ctx *_ctx, int _w, int _h, int _nlevels) { in fs_ctx_init() argument 61 _nlevels * sizeof(fs_level) + 2 * (lw + 8) * 8 * sizeof(*_ctx->col_buf); in fs_ctx_init() 66 level_size = 2 * im_size * sizeof(*_ctx->level[l].im1); in fs_ctx_init() 67 level_size += sizeof(*_ctx->level[l].ssim) - 1; in fs_ctx_init() 68 level_size /= sizeof(*_ctx->level[l].ssim); in fs_ctx_init() 70 level_size *= sizeof(*_ctx->level[l].ssim); in fs_ctx_init() 76 _ctx->level = (fs_level *)data; in fs_ctx_init() 77 _ctx->nlevels = _nlevels; in fs_ctx_init() 78 data += _nlevels * sizeof(*_ctx->level); in fs_ctx_init() 84 _ctx->level[l].w = lw; in fs_ctx_init() [all …]
|
/external/libvpx/libvpx/vpx_dsp/ |
D | fastssim.c | 50 static void fs_ctx_init(fs_ctx *_ctx, int _w, int _h, int _nlevels) { in fs_ctx_init() argument 59 _nlevels * sizeof(fs_level) + 2 * (lw + 8) * 8 * sizeof(*_ctx->col_buf); in fs_ctx_init() 64 level_size = 2 * im_size * sizeof(*_ctx->level[l].im1); in fs_ctx_init() 65 level_size += sizeof(*_ctx->level[l].ssim) - 1; in fs_ctx_init() 66 level_size /= sizeof(*_ctx->level[l].ssim); in fs_ctx_init() 68 level_size *= sizeof(*_ctx->level[l].ssim); in fs_ctx_init() 74 _ctx->level = (fs_level *)data; in fs_ctx_init() 75 _ctx->nlevels = _nlevels; in fs_ctx_init() 76 data += _nlevels * sizeof(*_ctx->level); in fs_ctx_init() 82 _ctx->level[l].w = lw; in fs_ctx_init() [all …]
|
/external/python/cryptography/src/cryptography/hazmat/primitives/ |
D | cmac.py | 32 self._ctx = self._backend.create_cmac_ctx(self._algorithm) 34 self._ctx = ctx 37 if self._ctx is None: 41 self._ctx.update(data) 44 if self._ctx is None: 46 digest = self._ctx.finalize() 47 self._ctx = None 52 if self._ctx is None: 55 ctx, self._ctx = self._ctx, None 59 if self._ctx is None: [all …]
|
D | hmac.py | 32 self._ctx = self._backend.create_hmac_ctx(key, self.algorithm) 34 self._ctx = ctx 39 if self._ctx is None: 42 self._ctx.update(data) 45 if self._ctx is None: 51 ctx=self._ctx.copy() 55 if self._ctx is None: 57 digest = self._ctx.finalize() 58 self._ctx = None 63 if self._ctx is None: [all …]
|
D | hashes.py | 83 self._ctx = self._backend.create_hash_ctx(self.algorithm) 85 self._ctx = ctx 90 if self._ctx is None: 93 self._ctx.update(data) 96 if self._ctx is None: 99 self.algorithm, backend=self._backend, ctx=self._ctx.copy() 103 if self._ctx is None: 105 digest = self._ctx.finalize() 106 self._ctx = None
|
/external/llvm-project/lld/lib/ReaderWriter/MachO/ |
D | WriterMachO.cpp | 28 MachOWriter(const MachOLinkingContext &ctxt) : _ctx(ctxt) {} in MachOWriter() 33 normalized::normalizedFromAtoms(file, _ctx); in writeFile() 38 if (_ctx.printAtoms()) { in writeFile() 39 std::unique_ptr<Writer> yamlWriter = createWriterYAML(_ctx); in writeFile() 50 if (_ctx.outputTypeHasEntry()) in createImplicitFiles() 51 r.emplace_back(new CEntryFile(_ctx)); in createImplicitFiles() 53 if (_ctx.needsStubsPass()) in createImplicitFiles() 54 r.emplace_back(new StubHelperFile(_ctx)); in createImplicitFiles() 56 if (_ctx.outputMachOType() != llvm::MachO::MH_OBJECT) in createImplicitFiles() 57 r.emplace_back(new MachHeaderAliasFile(_ctx)); in createImplicitFiles() [all …]
|
D | ObjCPass.cpp | 99 : _ctx(context), in ObjCPass() 100 _file(*_ctx.make_file<MachOFile>("<mach-o objc pass>")) { in ObjCPass() 101 _file.setOrdinal(_ctx.getNextOrdinalAndIncrement()); in ObjCPass() 114 bool IsBig = MachOLinkingContext::isBigEndian(_ctx.arch()); in getImageInfo() 116 _ctx.objcConstraint(), in getImageInfo() 117 _ctx.swiftVersion()); in getImageInfo() 120 const MachOLinkingContext &_ctx; member in lld::mach_o::ObjCPass
|
D | TLVPass.cpp | 68 : _ctx(context), _archHandler(_ctx.archHandler()), in TLVPass() 69 _file(*_ctx.make_file<MachOFile>("<mach-o TLV pass>")) { in TLVPass() 70 _file.setOrdinal(_ctx.getNextOrdinalAndIncrement()); in TLVPass() 75 bool allowTLV = _ctx.minOS("10.7", "1.0"); in perform() 86 _ctx.archName()); in perform() 119 TLVPEntryAtom(_file, _ctx.is64Bit(), target->name()); in makeTLVPEntry() 128 const MachOLinkingContext &_ctx; member in lld::mach_o::TLVPass
|
D | MachONormalizedFileFromAtoms.cpp | 110 : _ctx(ctxt), _archHandler(ctxt.archHandler()), _entryAtom(nullptr), in Util() 191 const MachOLinkingContext &_ctx; member in __anon2e8aa0f30111::Util 249 SectionInfo(segmentName, sectionName, sectionType, _ctx, sectionAttrs, in getRelocatableSection() 334 p.segmentName, p.sectionName, p.sectionType, _ctx, sectionAttrs, in getFinalSection() 350 bool rMode = (_ctx.outputMachOType() == llvm::MachO::MH_OBJECT); in sectionForAtom() 368 new (_allocator) SectionInfo(segName, sectName, S_REGULAR, _ctx, in sectionForAtom() 462 switch (_ctx.os()) { in segmentForName() 514 switch (_ctx.outputMachOType()) { in organizeSections() 562 seg->size = llvm::alignTo(addr - seg->address, _ctx.pageSize()); in layoutSectionsInSegment() 578 padding += _ctx.pageSize(); in layoutSectionsInTextSegment() [all …]
|
D | GOTPass.cpp | 94 : _ctx(context), _archHandler(_ctx.archHandler()), in GOTPass() 95 _file(*_ctx.make_file<MachOFile>("<mach-o GOT Pass>")) { in GOTPass() 96 _file.setOrdinal(_ctx.getNextOrdinalAndIncrement()); in GOTPass() 160 GOTEntryAtom(_file, _ctx.is64Bit(), target->name()); in makeGOTEntry() 171 const MachOLinkingContext &_ctx; member in lld::mach_o::GOTPass
|
D | ShimPass.cpp | 43 : _ctx(context), _archHandler(_ctx.archHandler()), in ShimPass() 45 _file(*_ctx.make_file<MachOFile>("<mach-o shim pass>")) { in ShimPass() 46 _file.setOrdinal(_ctx.getNextOrdinalAndIncrement()); in ShimPass() 114 const MachOLinkingContext &_ctx; member in lld::mach_o::ShimPass
|
D | StubsPass.cpp | 211 : _ctx(context), _archHandler(_ctx.archHandler()), in StubsPass() 213 _file(*_ctx.make_file<MachOFile>("<mach-o Stubs pass>")) { in StubsPass() 214 _file.setOrdinal(_ctx.getNextOrdinalAndIncrement()); in StubsPass() 253 new (_file.allocator()) NonLazyPointerAtom(_file, _ctx.is64Bit(), in perform() 256 new (_file.allocator()) NonLazyPointerAtom(_file, _ctx.is64Bit(), in perform() 295 new (_file.allocator()) LazyPointerAtom(_file, _ctx.is64Bit()); in perform() 365 const MachOLinkingContext &_ctx; member in lld::mach_o::StubsPass
|
D | File.h | 35 _mb(std::move(mb)), _ctx(ctx) {} in MachOFile() 245 auto normFile = normalized::readBinary(_mb, _ctx->arch()); in doParse() 271 MachOLinkingContext *_ctx; variable 289 _mb(std::move(mb)), _ctx(ctx) {} in MachODylibFile() 336 auto normFile = normalized::readBinary(_mb, _ctx->arch()); in doParse() 392 MachOLinkingContext *_ctx; variable 420 switch(_ctx->arch()) { in loadFromInterface() 450 MemoryBuffer::getMemBuffer("", _mb->getBufferIdentifier()), _ctx)); in loadFromInterface()
|
/external/fsverity-utils/lib/ |
D | hash_algs.c | 26 static void openssl_digest_init(struct hash_ctx *_ctx) in openssl_digest_init() argument 28 struct openssl_hash_ctx *ctx = (void *)_ctx; in openssl_digest_init() 35 static void openssl_digest_update(struct hash_ctx *_ctx, in openssl_digest_update() argument 38 struct openssl_hash_ctx *ctx = (void *)_ctx; in openssl_digest_update() 45 static void openssl_digest_final(struct hash_ctx *_ctx, u8 *digest) in openssl_digest_final() argument 47 struct openssl_hash_ctx *ctx = (void *)_ctx; in openssl_digest_final() 54 static void openssl_digest_ctx_free(struct hash_ctx *_ctx) in openssl_digest_ctx_free() argument 56 struct openssl_hash_ctx *ctx = (void *)_ctx; in openssl_digest_ctx_free()
|
/external/llvm-project/lld/lib/Core/ |
D | Resolver.cpp | 33 if (auto ec = _ctx.handleLoadedFile(file)) in handleFile() 79 member->setOrdinal(_ctx.getNextOrdinalAndIncrement()); in handleArchiveFile() 139 if (_ctx.deadStrip() && in doDefinedAtom() 183 std::vector<std::unique_ptr<Node>> &inputs = _ctx.getNodes(); in undefinesAdded() 192 std::vector<std::unique_ptr<Node>> &inputs = _ctx.getNodes(); in getFile() 250 file->setOrdinal(_ctx.getNextOrdinalAndIncrement()); in resolveUndefines() 264 file->setOrdinal(_ctx.getNextOrdinalAndIncrement()); in resolveUndefines() 278 file->setOrdinal(_ctx.getNextOrdinalAndIncrement()); in resolveUndefines() 348 if (!_ctx.deadStrip()) in deadStripOptimize() 365 if (_ctx.globalsAreDeadStripRoots()) in deadStripOptimize() [all …]
|
/external/libwebsockets/lib/event-libs/libev/ |
D | private-lib-event-libs-libev.h | 27 #define LWS_EV_REFCOUNT_STATIC_HANDLE_NEW(_x, _ctx) \ argument 28 { (_x)->data = _ctx; \ 29 _ctx->count_event_loop_static_asset_handles++; }
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | cmac.py | 46 self._ctx = ctx 51 res = self._backend._lib.CMAC_Update(self._ctx, data, len(data)) 58 self._ctx, buf, length 62 self._ctx = None 72 copied_ctx, self._ctx
|
D | hashes.py | 36 self._ctx = ctx 45 res = self._backend._lib.EVP_MD_CTX_copy_ex(copied_ctx, self._ctx) 52 self._ctx, data_ptr, len(data) 64 res = self._backend._lib.EVP_DigestFinal_ex(self._ctx, buf, outlen) 75 self._ctx, buf, self.algorithm.digest_size
|
D | ciphers.py | 120 self._ctx = ctx 139 self._ctx, buf, outlen, 165 res = self._backend._lib.EVP_CipherFinal_ex(self._ctx, buf, outlen) 189 self._ctx, self._backend._lib.EVP_CTRL_AEAD_GET_TAG, 195 res = self._backend._lib.EVP_CIPHER_CTX_cleanup(self._ctx) 214 self._ctx, self._backend._lib.EVP_CTRL_AEAD_SET_TAG, 224 self._ctx, self._backend._ffi.NULL, outlen,
|
D | hmac.py | 41 self._ctx = ctx 52 res = self._backend._lib.HMAC_CTX_copy(copied_ctx, self._ctx) 60 res = self._backend._lib.HMAC_Update(self._ctx, data_ptr, len(data)) 67 res = self._backend._lib.HMAC_Final(self._ctx, buf, outlen)
|
/external/libwebsockets/lib/event-libs/libuv/ |
D | private-lib-event-libs-libuv.h | 40 #define LWS_UV_REFCOUNT_STATIC_HANDLE_NEW(_x, _ctx) \ argument 41 { uv_handle_t *_uht = (uv_handle_t *)(_x); _uht->data = _ctx; \ 42 _ctx->count_event_loop_static_asset_handles++; }
|
/external/mesa3d/src/gallium/frontends/dri/ |
D | dri_helpers.c | 92 dri2_create_fence(__DRIcontext *_ctx) in dri2_create_fence() argument 94 struct st_context_iface *stapi = dri_context(_ctx)->st; in dri2_create_fence() 107 fence->driscreen = dri_screen(_ctx->driScreenPriv); in dri2_create_fence() 112 dri2_create_fence_fd(__DRIcontext *_ctx, int fd) in dri2_create_fence_fd() argument 114 struct st_context_iface *stapi = dri_context(_ctx)->st; in dri2_create_fence_fd() 130 fence->driscreen = dri_screen(_ctx->driScreenPriv); in dri2_create_fence_fd() 186 dri2_client_wait_sync(__DRIcontext *_ctx, void *_fence, unsigned flags, in dri2_client_wait_sync() argument 213 dri2_server_wait_sync(__DRIcontext *_ctx, void *_fence, unsigned flags) in dri2_server_wait_sync() argument 215 struct pipe_context *ctx = dri_context(_ctx)->st->pipe; in dri2_server_wait_sync()
|
/external/crosvm/devices/src/virtio/fs/ |
D | passthrough.rs | 1119 fn statfs(&self, _ctx: Context, inode: Inode) -> io::Result<libc::statvfs64> { in statfs() 1134 fn lookup(&self, _ctx: Context, parent: Inode, name: &CStr) -> io::Result<Entry> { in lookup() 1145 fn forget(&self, _ctx: Context, inode: Inode, count: u64) { in forget() 1151 fn batch_forget(&self, _ctx: Context, requests: Vec<(Inode, u64)>) { in batch_forget() 1161 _ctx: Context, in opendir() 1174 _ctx: Context, in releasedir() 1211 fn rmdir(&self, _ctx: Context, parent: Inode, name: &CStr) -> io::Result<()> { in rmdir() 1218 _ctx: Context, in readdir() 1240 _ctx: Context, in open() 1253 _ctx: Context, in release() [all …]
|