| /openbsd/src/gnu/llvm/lld/ELF/Arch/ |
| D | AVR.cpp | 47 const uint8_t *loc) const override; 48 void relocate(uint8_t *loc, const Relocation &rel, 54 const uint8_t *loc) const { in getRelExpr() 86 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr() 92 static void writeLDI(uint8_t *loc, uint64_t val) { in writeLDI() argument 93 write16le(loc, (read16le(loc) & 0xf0f0) | (val & 0xf0) << 4 | (val & 0x0f)); in writeLDI() 96 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument 99 checkUInt(loc, val, 8, rel); in relocate() 100 *loc = val; in relocate() 106 write16le(loc, val & 0xffff); in relocate() [all …]
|
| D | X86_64.cpp | 30 const uint8_t *loc) const override; 38 void relocate(uint8_t *loc, const Relocation &rel, 41 void applyJumpInstrMod(uint8_t *loc, JumpModType type, 44 const uint8_t *loc) const override; 46 bool adjustPrologueForCrossSplitStack(uint8_t *loc, uint8_t *end, 309 const uint8_t *loc) const { in getRelExpr() 358 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr() 417 static void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsGdToLe() argument 431 memcpy(loc - 4, inst, sizeof(inst)); in relaxTlsGdToLe() 435 write32le(loc + 8, val + 4); in relaxTlsGdToLe() [all …]
|
| D | SPARCV9.cpp | 26 const uint8_t *loc) const override; 29 void relocate(uint8_t *loc, const Relocation &rel, 49 const uint8_t *loc) const { in getRelExpr() 81 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr() 87 void SPARCV9::relocate(uint8_t *loc, const Relocation &rel, in relocate() argument 93 checkUInt(loc, val, 32, rel); in relocate() 94 write32be(loc, val); in relocate() 98 checkInt(loc, val, 32, rel); in relocate() 99 write32be(loc, val); in relocate() 104 checkInt(loc, val, 32, rel); in relocate() [all …]
|
| D | PPC64.cpp | 159 const uint8_t *loc) const override; 167 void relocate(uint8_t *loc, const Relocation &rel, 177 const uint8_t *loc) const override; 178 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const; 181 bool adjustPrologueForCrossSplitStack(uint8_t *loc, uint8_t *end, 185 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 186 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 187 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 188 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 231 void elf::writePrefixedInstruction(uint8_t *loc, uint64_t insn) { in writePrefixedInstruction() argument [all …]
|
| D | ARM.cpp | 28 const uint8_t *loc) const override; 43 void relocate(uint8_t *loc, const Relocation &rel, 83 const uint8_t *loc) const { in getRelExpr() 173 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr() 401 static void stateChangeWarning(uint8_t *loc, RelType relt, const Symbol &s) { in stateChangeWarning() argument 403 const ErrorPlace place = getErrorPlace(loc); in stateChangeWarning() 410 warn(place.loc + "branch and link relocation: " + toString(relt) + in stateChangeWarning() 415 warn(getErrorLocation(loc) + "branch and link relocation: " + in stateChangeWarning() 444 static void encodeAluGroup(uint8_t *loc, const Relocation &rel, uint64_t val, in encodeAluGroup() argument 462 error(getErrorLocation(loc) + "unencodeable immediate " + Twine(val).str() + in encodeAluGroup() [all …]
|
| D | X86.cpp | 28 const uint8_t *loc) const override; 37 void relocate(uint8_t *loc, const Relocation &rel, 73 const uint8_t *loc) const { in getRelExpr() 132 return (loc[-1] & 0xc7) == 0x5 ? R_GOT : R_GOTPLT; in getRelExpr() 148 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr() 283 void X86::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument 289 checkIntUInt(loc, val, 8, rel); in relocate() 290 *loc = val; in relocate() 293 checkInt(loc, val, 8, rel); in relocate() 294 *loc = val; in relocate() [all …]
|
| D | Mips.cpp | 29 const uint8_t *loc) const override; 39 void relocate(uint8_t *loc, const Relocation &rel, 78 const uint8_t *loc) const { in getRelExpr() 90 warn(getErrorLocation(loc) + in getRelExpr() 194 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr() 214 template <endianness E> static uint32_t readShuffle(const uint8_t *loc) { in readShuffle() argument 221 uint32_t v = read32(loc); in readShuffle() 227 static void writeValue(uint8_t *loc, uint64_t v, uint8_t bitsSize, in writeValue() argument 229 uint32_t instr = read32(loc); in writeValue() 232 write32(loc, data); in writeValue() [all …]
|
| D | PPC.cpp | 31 const uint8_t *loc) const override; 50 void relocate(uint8_t *loc, const Relocation &rel, 57 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 58 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 59 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 60 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 67 static uint32_t readFromHalf16(const uint8_t *loc) { in readFromHalf16() argument 68 return read32(config->isLE ? loc : loc - 2); in readFromHalf16() 71 static void writeFromHalf16(uint8_t *loc, uint32_t insn) { in writeFromHalf16() argument 72 write32(config->isLE ? loc : loc - 2, insn); in writeFromHalf16() [all …]
|
| D | AArch64.cpp | 35 const uint8_t *loc) const override; 49 void relocate(uint8_t *loc, const Relocation &rel, 55 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 56 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 57 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 93 const uint8_t *loc) const { in getRelExpr() 168 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr() 343 static void writeSMovWImm(uint8_t *loc, uint32_t imm) { in writeSMovWImm() argument 344 uint32_t inst = read32le(loc); in writeSMovWImm() 357 write32le(loc, inst | ((imm & 0xFFFF) << 5)); in writeSMovWImm() [all …]
|
| D | Hexagon.cpp | 30 const uint8_t *loc) const override; 32 void relocate(uint8_t *loc, const Relocation &rel, 91 const uint8_t *loc) const { in getRelExpr() 157 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr() 243 void Hexagon::relocate(uint8_t *loc, const Relocation &rel, in relocate() argument 250 or32le(loc, applyMask(findMaskR6(read32le(loc)), val)); in relocate() 253 or32le(loc, applyMask(findMaskR8(read32le(loc)), val)); in relocate() 256 or32le(loc, applyMask(0x00003fe0, val & 0x3f)); in relocate() 259 or32le(loc, applyMask(0x00203fe0, val & 0x3f)); in relocate() 267 or32le(loc, applyMask(findMaskR11(read32le(loc)), val & 0x3f)); in relocate() [all …]
|
| D | MSP430.cpp | 36 const uint8_t *loc) const override; 37 void relocate(uint8_t *loc, const Relocation &rel, 48 const uint8_t *loc) const { in getRelExpr() 62 void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument 65 checkIntUInt(loc, val, 8, rel); in relocate() 66 *loc = val; in relocate() 72 checkIntUInt(loc, val, 16, rel); in relocate() 73 write16le(loc, val); in relocate() 76 checkIntUInt(loc, val, 32, rel); in relocate() 77 write32le(loc, val); in relocate() [all …]
|
| /openbsd/src/gnu/llvm/libcxx/src/support/win32/ |
| D | locale_win32.cpp | 34 lconv *localeconv_l( locale_t &loc ) in localeconv_l() argument 36 __libcpp_locale_guard __current(loc); in localeconv_l() 40 return loc.__store_lconv(lc); in localeconv_l() 43 mbstate_t *__restrict ps, locale_t loc ) in mbrlen_l() argument 45 __libcpp_locale_guard __current(loc); in mbrlen_l() 49 size_t len, mbstate_t *__restrict ps, locale_t loc ) in mbsrtowcs_l() argument 51 __libcpp_locale_guard __current(loc); in mbsrtowcs_l() 55 locale_t loc ) in wcrtomb_l() argument 57 __libcpp_locale_guard __current(loc); in wcrtomb_l() 61 size_t n, mbstate_t *__restrict ps, locale_t loc ) in mbrtowc_l() argument [all …]
|
| /openbsd/src/gnu/llvm/clang/lib/Edit/ |
| D | Commit.cpp | 48 bool Commit::insert(SourceLocation loc, StringRef text, in insert() argument 54 if ((!afterToken && !canInsert(loc, Offs)) || in insert() 55 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert() 60 addInsert(loc, Offs, text, beforePreviousInsertions); in insert() 64 bool Commit::insertFromRange(SourceLocation loc, in insertFromRange() argument 75 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange() 76 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange() 82 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange() 87 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange() 165 bool Commit::replaceText(SourceLocation loc, StringRef text, in replaceText() argument [all …]
|
| /openbsd/src/gnu/gcc/gcc/ |
| D | var-tracking.c | 139 rtx loc; member 174 rtx loc; member 221 rtx loc; member 487 if (MEM_P (VTI (bb)->mos[i].u.loc)) in bb_stack_adjust_offset() 489 VTI (bb)->mos[i].u.loc in bb_stack_adjust_offset() 490 = adjust_stack_reference (VTI (bb)->mos[i].u.loc, -offset); in bb_stack_adjust_offset() 676 attrs_list_insert (attrs *listp, tree decl, HOST_WIDE_INT offset, rtx loc) in attrs_list_insert() argument 681 list->loc = loc; in attrs_list_insert() 699 n->loc = src->loc; in attrs_list_copy() 715 attrs_list_insert (dstp, src->decl, src->offset, src->loc); in attrs_list_union() [all …]
|
| /openbsd/src/gnu/llvm/lld/MachO/Arch/ |
| D | ARM64Common.cpp | 30 const uint8_t *loc = buf + offset + rel.r_address; in getEmbeddedAddend() local 33 return static_cast<int32_t>(read32le(loc)); in getEmbeddedAddend() 35 return read64le(loc); in getEmbeddedAddend() 41 static void writeValue(uint8_t *loc, const Reloc &r, uint64_t value) { in writeValue() argument 44 checkInt(loc, r, value, 32); in writeValue() 45 write32le(loc, value); in writeValue() 48 write64le(loc, value); in writeValue() 60 void ARM64Common::relocateOne(uint8_t *loc, const Reloc &r, uint64_t value, in relocateOne() argument 62 auto loc32 = reinterpret_cast<uint32_t *>(loc); in relocateOne() 63 uint32_t base = ((r.length == 2) ? read32le(loc) : 0); in relocateOne() [all …]
|
| /openbsd/src/usr.bin/ssh/ |
| D | auth2-pubkeyfile.c | 56 const char *loc) in auth_authorise_keyopts() argument 68 debug("%s: entry expired at %s", loc, buf); in auth_authorise_keyopts() 69 auth_debug_add("%s: entry expired at %s", loc, buf); in auth_authorise_keyopts() 74 debug("%s: principals on non-CA key", loc); in auth_authorise_keyopts() 75 auth_debug_add("%s: principals on non-CA key", loc); in auth_authorise_keyopts() 81 debug("%s: cert-authority flag invalid here", loc); in auth_authorise_keyopts() 82 auth_debug_add("%s: cert-authority flag invalid here", loc); in auth_authorise_keyopts() 96 debug("%s: invalid from criteria", loc); in auth_authorise_keyopts() 97 auth_debug_add("%s: invalid from criteria", loc); in auth_authorise_keyopts() 103 loc, pw->pw_name, remote_host, remote_ip, in auth_authorise_keyopts() [all …]
|
| /openbsd/src/gnu/llvm/clang/lib/ARCMigrate/ |
| D | TransformActions.cpp | 133 void insert(SourceLocation loc, StringRef text); 134 void insertAfterToken(SourceLocation loc, StringRef text); 140 void replaceText(SourceLocation loc, StringRef text, 150 bool canInsert(SourceLocation loc); 151 bool canInsertAfterToken(SourceLocation loc); 154 bool canReplaceText(SourceLocation loc, StringRef text); 156 void commitInsert(SourceLocation loc, StringRef text); 157 void commitInsertAfterToken(SourceLocation loc, StringRef text); 161 void commitReplaceText(SourceLocation loc, StringRef text, 167 void addInsertion(SourceLocation loc, StringRef text); [all …]
|
| /openbsd/src/games/adventure/ |
| D | subr.c | 58 if (place[objj] == loc || toting(objj)) in here() 66 if (place[objj] == loc || fixed[objj] == loc) in at() 120 if ((cond[loc] % 2) == 0 && (prop[lamp] == 0 || !here(lamp))) in dark() 140 if (newloc != loc && !forced(loc) && !bitset(loc, 3)) { in fdwarf() 144 newloc = loc; in fdwarf() 149 loc = newloc; /* 74 */ in fdwarf() 150 if (loc == 0 || forced(loc) || bitset(newloc, 3)) in fdwarf() 153 if (loc >= 15) in fdwarf() 158 if (loc < 15 || pct(95)) in fdwarf() 167 if (dloc[i] == loc) in fdwarf() [all …]
|
| /openbsd/src/lib/libcrypto/x509/ |
| D | x509name.c | 169 X509_NAME_get_entry(const X509_NAME *name, int loc) in X509_NAME_get_entry() argument 171 if (name == NULL || sk_X509_NAME_ENTRY_num(name->entries) <= loc || in X509_NAME_get_entry() 172 loc < 0) in X509_NAME_get_entry() 175 return (sk_X509_NAME_ENTRY_value(name->entries, loc)); in X509_NAME_get_entry() 180 X509_NAME_delete_entry(X509_NAME *name, int loc) in X509_NAME_delete_entry() argument 186 if (name == NULL || sk_X509_NAME_ENTRY_num(name->entries) <= loc || in X509_NAME_delete_entry() 187 loc < 0) in X509_NAME_delete_entry() 190 ret = sk_X509_NAME_ENTRY_delete(sk, loc); in X509_NAME_delete_entry() 193 if (loc == n) in X509_NAME_delete_entry() 197 if (loc != 0) in X509_NAME_delete_entry() [all …]
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/tsan/tests/rtl/ |
| D | tsan_mop.cpp | 110 t1.Access(l.loc(), true, 8, false); in TEST_F() 111 t2.Access((char*)l.loc() + 4, true, 4, true); in TEST_F() 115 t1.Access(l.loc(), true, 8, false); in TEST_F() 116 t2.Access((char*)l.loc() + 7, true, 1, true); in TEST_F() 120 t1.Access((char*)l.loc() + 4, true, 4, false); in TEST_F() 121 t2.Access((char*)l.loc() + 4, true, 2, true); in TEST_F() 125 t1.Access((char*)l.loc() + 4, true, 4, false); in TEST_F() 126 t2.Access((char*)l.loc() + 6, true, 2, true); in TEST_F() 130 t1.Access((char*)l.loc() + 3, true, 2, false); in TEST_F() 131 t2.Access((char*)l.loc() + 4, true, 1, true); in TEST_F() [all …]
|
| /openbsd/src/gnu/gcc/gcc/config/i386/ |
| D | linux-unwind.h | 71 fs->regs.reg[0].loc.offset = (long)&sc->rax - new_cfa; in x86_64_fallback_frame_state() 73 fs->regs.reg[1].loc.offset = (long)&sc->rdx - new_cfa; in x86_64_fallback_frame_state() 75 fs->regs.reg[2].loc.offset = (long)&sc->rcx - new_cfa; in x86_64_fallback_frame_state() 77 fs->regs.reg[3].loc.offset = (long)&sc->rbx - new_cfa; in x86_64_fallback_frame_state() 79 fs->regs.reg[4].loc.offset = (long)&sc->rsi - new_cfa; in x86_64_fallback_frame_state() 81 fs->regs.reg[5].loc.offset = (long)&sc->rdi - new_cfa; in x86_64_fallback_frame_state() 83 fs->regs.reg[6].loc.offset = (long)&sc->rbp - new_cfa; in x86_64_fallback_frame_state() 85 fs->regs.reg[8].loc.offset = (long)&sc->r8 - new_cfa; in x86_64_fallback_frame_state() 87 fs->regs.reg[9].loc.offset = (long)&sc->r9 - new_cfa; in x86_64_fallback_frame_state() 89 fs->regs.reg[10].loc.offset = (long)&sc->r10 - new_cfa; in x86_64_fallback_frame_state() [all …]
|
| /openbsd/src/sys/dev/hid/ |
| D | hid.c | 80 c->loc.count = 0; in hid_clear_local() 81 c->loc.size = 0; in hid_clear_local() 115 s->last_pos[i].pos = c->loc.pos; in hid_switch_rid() 134 c->loc.pos = s->last_pos[i].pos; in hid_switch_rid() 137 c->loc.pos = 0; in hid_switch_rid() 234 DPRINTF("%u,%u,%u\n", h->loc.pos, in hid_get_item() 235 h->loc.size, h->loc.count); in hid_get_item() 236 c->loc.pos += c->loc.size * c->loc.count; in hid_get_item() 305 c->loc.count = s->loc_count; in hid_get_item() 306 c->loc.size = s->loc_size; in hid_get_item() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/config/i386/ |
| D | linux64.h | 129 (FS)->regs.reg[0].loc.offset = (long)&sc_->rax - new_cfa_; \ 131 (FS)->regs.reg[1].loc.offset = (long)&sc_->rdx - new_cfa_; \ 133 (FS)->regs.reg[2].loc.offset = (long)&sc_->rcx - new_cfa_; \ 135 (FS)->regs.reg[3].loc.offset = (long)&sc_->rbx - new_cfa_; \ 137 (FS)->regs.reg[4].loc.offset = (long)&sc_->rsi - new_cfa_; \ 139 (FS)->regs.reg[5].loc.offset = (long)&sc_->rdi - new_cfa_; \ 141 (FS)->regs.reg[6].loc.offset = (long)&sc_->rbp - new_cfa_; \ 143 (FS)->regs.reg[8].loc.offset = (long)&sc_->r8 - new_cfa_; \ 145 (FS)->regs.reg[9].loc.offset = (long)&sc_->r9 - new_cfa_; \ 147 (FS)->regs.reg[10].loc.offset = (long)&sc_->r10 - new_cfa_; \ [all …]
|
| /openbsd/src/gnu/llvm/libcxx/include/ |
| D | __bsd_locale_defaults.h | 21 #define __libcpp_mb_cur_max_l(loc) MB_CUR_MAX_L(loc) argument 22 #define __libcpp_btowc_l(ch, loc) btowc_l(ch, loc) argument 23 #define __libcpp_wctob_l(wch, loc) wctob_l(wch, loc) argument 24 …define __libcpp_wcsnrtombs_l(dst, src, nwc, len, ps, loc) wcsnrtombs_l(dst, src, nwc, len, ps, lo… argument 25 #define __libcpp_wcrtomb_l(src, wc, ps, loc) wcrtomb_l(src, wc, ps, loc) argument 26 …define __libcpp_mbsnrtowcs_l(dst, src, nms, len, ps, loc) mbsnrtowcs_l(dst, src, nms, len, ps, lo… argument
|
| /openbsd/src/gnu/usr.bin/perl/ |
| D | regcomp_internal.h | 999 #define TO_OUTPUT_WARNINGS(loc) \ argument 1001 && ((xI(loc)) - RExC_precomp) > (Ptrdiff_t) RExC_latest_warn_offset) 1005 #define UPDATE_WARNINGS_LOC(loc) \ argument 1007 if (TO_OUTPUT_WARNINGS(loc)) { \ 1008 RExC_latest_warn_offset = MAX(sI, MIN(eI, xI(loc))) \ 1014 #define _WARN_HELPER(loc, warns, code) \ argument 1019 __FILE__, __LINE__, loc); \ 1021 if (TO_OUTPUT_WARNINGS(loc)) { \ 1023 UPDATE_WARNINGS_LOC(loc); \ 1028 #define warn_non_literal_string(loc, packed_warn, m) \ argument [all …]
|