| /freebsd/contrib/llvm-project/lld/ELF/Arch/ |
| H A D | AVR.cpp | 48 const uint8_t *loc) const override; 52 void relocate(uint8_t *loc, const Relocation &rel, 58 const uint8_t *loc) const { in getRelExpr() 95 Err(ctx) << getErrorLoc(ctx, loc) << "unknown relocation (" << type.v in getRelExpr() 101 static void writeLDI(uint8_t *loc, uint64_t val) { in writeLDI() argument 102 write16le(loc, (read16le(loc) & 0xf0f0) | (val & 0xf0) << 4 | (val & 0x0f)); in writeLDI() 118 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument 121 checkUInt(ctx, loc, val, 8, rel); in relocate() 122 *loc = val; in relocate() 125 checkUInt(ctx, loc, val, 32, rel); in relocate() [all …]
|
| H A D | SPARCV9.cpp | 25 const uint8_t *loc) const override; 28 void relocate(uint8_t *loc, const Relocation &rel, 48 const uint8_t *loc) const { in getRelExpr() 80 Err(ctx) << getErrorLoc(ctx, loc) << "unknown relocation (" << type.v in getRelExpr() 86 void SPARCV9::relocate(uint8_t *loc, const Relocation &rel, in relocate() argument 92 checkUInt(ctx, loc, val, 32, rel); in relocate() 93 write32be(loc, val); in relocate() 97 checkInt(ctx, loc, val, 32, rel); in relocate() 98 write32be(loc, val); in relocate() 103 checkInt(ctx, loc, val, 32, rel); in relocate() [all …]
|
| H A D | X86_64.cpp | 32 const uint8_t *loc) const override; 40 void relocate(uint8_t *loc, const Relocation &rel, 43 void applyJumpInstrMod(uint8_t *loc, JumpModType type, 46 const uint8_t *loc) const override; 48 bool adjustPrologueForCrossSplitStack(uint8_t *loc, uint8_t *end, 56 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 57 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 58 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 59 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 365 const uint8_t *loc) const { in getRelExpr() [all …]
|
| H A D | PPC64.cpp | 173 const uint8_t *loc) const override; 181 void relocate(uint8_t *loc, const Relocation &rel, 191 const uint8_t *loc) const override; 192 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const; 195 bool adjustPrologueForCrossSplitStack(uint8_t *loc, uint8_t *end, 199 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 200 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 201 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 202 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 246 void elf::writePrefixedInst(Ctx &ctx, uint8_t *loc, uint64_t insn) { in writePrefixedInst() argument [all …]
|
| H A D | SystemZ.cpp | 28 const uint8_t *loc) const override; 39 const uint8_t *loc) const override; 41 void relocate(uint8_t *loc, const Relocation &rel, 46 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const; 47 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 48 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 49 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 83 const uint8_t *loc) const { in getRelExpr() 172 Err(ctx) << getErrorLoc(ctx, loc) << "unknown relocation (" << type.v in getRelExpr() 303 void SystemZ::relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, in relaxTlsGdToIe() argument [all …]
|
| H A D | X86.cpp | 27 const uint8_t *loc) const override; 36 void relocate(uint8_t *loc, const Relocation &rel, 43 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 44 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 45 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 46 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 78 const uint8_t *loc) const { in getRelExpr() 137 return (loc[-1] & 0xc7) == 0x5 ? R_GOT : R_GOTPLT; in getRelExpr() 153 Err(ctx) << getErrorLoc(ctx, loc) << "unknown relocation (" << type.v in getRelExpr() 287 void X86::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument [all …]
|
| H A D | Mips.cpp | 27 const uint8_t *loc) const override; 37 void relocate(uint8_t *loc, const Relocation &rel, 76 const uint8_t *loc) const { in getRelExpr() 88 Warn(ctx) << getErrorLoc(ctx, loc) in getRelExpr() 192 Err(ctx) << getErrorLoc(ctx, loc) << "unknown relocation (" << type.v in getRelExpr() 213 static uint32_t readShuffle(Ctx &ctx, const uint8_t *loc) { in readShuffle() argument 220 uint32_t v = read32(ctx, loc); in readShuffle() 226 static void writeValue(Ctx &ctx, uint8_t *loc, uint64_t v, uint8_t bitsSize, in writeValue() argument 228 uint32_t instr = read32(ctx, loc); in writeValue() 231 write32(ctx, loc, data); in writeValue() [all …]
|
| H A D | PPC.cpp | 29 const uint8_t *loc) const override; 48 void relocate(uint8_t *loc, const Relocation &rel, 55 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 56 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 57 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 58 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 65 static uint32_t readFromHalf16(Ctx &ctx, const uint8_t *loc) { in readFromHalf16() argument 66 return read32(ctx, ctx.arg.isLE ? loc : loc - 2); in readFromHalf16() 69 static void writeFromHalf16(Ctx &ctx, uint8_t *loc, uint32_t insn) { in writeFromHalf16() argument 70 write32(ctx, ctx.arg.isLE ? loc : loc - 2, insn); in writeFromHalf16() [all …]
|
| H A D | LoongArch.cpp | 37 const uint8_t *loc) const override; 39 void relocate(uint8_t *loc, const Relocation &rel, 47 void tlsdescToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 48 void tlsdescToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 49 bool tryGotToPCRel(uint8_t *loc, const Relocation &rHi20, 185 static void handleUleb128(Ctx &ctx, uint8_t *loc, uint64_t val) { in handleUleb128() argument 189 uint64_t orig = decodeULEB128(loc, &count, nullptr, &error); in handleUleb128() 191 Err(ctx) << getErrorLoc(ctx, loc) << "extra space for uleb128"; in handleUleb128() 193 encodeULEB128((orig + val) & mask, loc, count); in handleUleb128() 405 const uint8_t *loc) const { in getRelExpr() [all …]
|
| H A D | AArch64.cpp | 68 const uint8_t *loc) const override; 82 void relocate(uint8_t *loc, const Relocation &rel, 89 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 90 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 91 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const; 135 const uint8_t *loc) const { in getRelExpr() 230 Err(ctx) << getErrorLoc(ctx, loc) << "unknown relocation (" << type.v in getRelExpr() 479 static void writeSMovWImm(uint8_t *loc, uint32_t imm) { in writeSMovWImm() argument 480 uint32_t inst = read32le(loc); in writeSMovWImm() 493 write32le(loc, inst | ((imm & 0xFFFF) << 5)); in writeSMovWImm() [all …]
|
| H A D | MSP430.cpp | 35 const uint8_t *loc) const override; 36 void relocate(uint8_t *loc, const Relocation &rel, 47 const uint8_t *loc) const { in getRelExpr() 61 void MSP430::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument 64 checkIntUInt(ctx, loc, val, 8, rel); in relocate() 65 *loc = val; in relocate() 71 checkIntUInt(ctx, loc, val, 16, rel); in relocate() 72 write16le(loc, val); in relocate() 75 checkIntUInt(ctx, loc, val, 32, rel); in relocate() 76 write32le(loc, val); in relocate() [all …]
|
| /freebsd/contrib/byacc/test/btyacc/ |
| H A D | btyacc_demo.tab.c | 205 #define YYERROR_DECL() yyerror(YYLTYPE *loc, const char *s) 212 #define YYDESTRUCT_DECL() yydestruct(const char *msg, int psymb, YYSTYPE *val, YYLTYPE *loc) 215 #define YYDESTRUCT_CALL(msg, psymb, val, loc) yydestruct(msg, psymb, val, loc) argument 528 #define YYLLOC_DEFAULT(loc, rhs, n) \ argument 533 (loc).first_line = YYRHSLOC(rhs, 0).last_line; \ 534 (loc).first_column = YYRHSLOC(rhs, 0).last_column; \ 535 (loc).last_line = YYRHSLOC(rhs, 0).last_line; \ 536 (loc).last_column = YYRHSLOC(rhs, 0).last_column; \ 540 (loc).first_line = YYRHSLOC(rhs, 1).first_line; \ 541 (loc).first_column = YYRHSLOC(rhs, 1).first_column; \ [all …]
|
| /freebsd/contrib/netbsd-tests/dev/usb/ |
| H A D | t_hid.c | 118 MYu_ATF_CHECK_EQ(hi.loc.size, 32); in ATF_TC_BODY() 119 MYu_ATF_CHECK_EQ(hi.loc.count, 1); in ATF_TC_BODY() 120 MYu_ATF_CHECK_EQ(hi.loc.pos, 0); in ATF_TC_BODY() 127 &hi.loc), -2147483648); in ATF_TC_BODY() 129 &hi.loc), -1); in ATF_TC_BODY() 131 &hi.loc), 1); in ATF_TC_BODY() 133 &hi.loc), 2147483647); in ATF_TC_BODY() 139 MYu_ATF_CHECK_EQ(hi.loc.size, 16); in ATF_TC_BODY() 140 MYu_ATF_CHECK_EQ(hi.loc.count, 1); in ATF_TC_BODY() 141 MYu_ATF_CHECK_EQ(hi.loc.pos, 32); in ATF_TC_BODY() [all …]
|
| /freebsd/lib/libc/locale/ |
| H A D | nl_langinfo.c | 51 nl_langinfo_l(nl_item item, locale_t loc) in nl_langinfo_l() argument 55 FIX_LOCALE(loc); in nl_langinfo_l() 59 s = XLOCALE_CTYPE(loc)->runes->__encoding; in nl_langinfo_l() 80 ret = (char *) __get_current_time_locale(loc)->c_fmt; in nl_langinfo_l() 83 ret = (char *) __get_current_time_locale(loc)->x_fmt; in nl_langinfo_l() 86 ret = (char *) __get_current_time_locale(loc)->X_fmt; in nl_langinfo_l() 89 ret = (char *) __get_current_time_locale(loc)->ampm_fmt; in nl_langinfo_l() 92 ret = (char *) __get_current_time_locale(loc)->am; in nl_langinfo_l() 95 ret = (char *) __get_current_time_locale(loc)->pm; in nl_langinfo_l() 99 ret = (char*) __get_current_time_locale(loc)->weekday[_REL(DAY_1)]; in nl_langinfo_l() [all …]
|
| H A D | xlocale.c | 148 set_thread_locale(locale_t loc) in set_thread_locale() argument 150 locale_t l = (loc == LC_GLOBAL_LOCALE) ? 0 : loc; in set_thread_locale() 167 __set_thread_rune_locale(loc); in set_thread_locale() 177 locale_t loc = l; in destruct_locale() local 180 if (loc->components[type]) { in destruct_locale() 181 xlocale_release(loc->components[type]); in destruct_locale() 184 if (loc->csym) { in destruct_locale() 185 free(loc->csym); in destruct_locale() 333 freelocale(locale_t loc) in freelocale() argument 341 if (loc != NULL && loc != LC_GLOBAL_LOCALE && in freelocale() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Edit/ |
| H A D | Commit.cpp | 47 bool Commit::insert(SourceLocation loc, StringRef text, in insert() argument 53 if ((!afterToken && !canInsert(loc, Offs)) || in insert() 54 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insert() 59 addInsert(loc, Offs, text, beforePreviousInsertions); in insert() 63 bool Commit::insertFromRange(SourceLocation loc, in insertFromRange() argument 74 if ((!afterToken && !canInsert(loc, Offs)) || in insertFromRange() 75 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { in insertFromRange() 81 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange() 86 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); in insertFromRange() 164 bool Commit::replaceText(SourceLocation loc, StringRef text, in replaceText() argument [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ |
| H A D | ah_eeprom_v1.c | 117 int i, loc; in ath_hal_v1EepromAttach() local 201 …for (i = 0, loc = AR_EEPROM_ATHEROS_TP_SETTINGS; i < AR_CHANNELS_MAX; i++, loc += AR_TP_SETTINGS_S… in ath_hal_v1EepromAttach() 205 chan->pcdac[0] = (athvals[loc] >> 10) & 0x3F; in ath_hal_v1EepromAttach() 206 chan->gainF[0] = (athvals[loc] >> 4) & 0x3F; in ath_hal_v1EepromAttach() 207 chan->pcdac[1] = ((athvals[loc] << 2) & 0x3C) in ath_hal_v1EepromAttach() 208 | ((athvals[loc+1] >> 14) & 0x03); in ath_hal_v1EepromAttach() 209 chan->gainF[1] = (athvals[loc+1] >> 8) & 0x3F; in ath_hal_v1EepromAttach() 210 chan->pcdac[2] = (athvals[loc+1] >> 2) & 0x3F; in ath_hal_v1EepromAttach() 211 chan->gainF[2] = ((athvals[loc+1] << 4) & 0x30) in ath_hal_v1EepromAttach() 212 | ((athvals[loc+2] >> 12) & 0x0F); in ath_hal_v1EepromAttach() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/ |
| H A D | CIRBaseBuilder.h | 64 mlir::Value getConstAPInt(mlir::Location loc, mlir::Type typ, in getConstAPInt() argument 66 return create<cir::ConstantOp>(loc, cir::IntAttr::get(typ, val)); in getConstAPInt() 69 cir::ConstantOp getConstant(mlir::Location loc, mlir::TypedAttr attr) { in getConstant() argument 70 return create<cir::ConstantOp>(loc, attr); in getConstant() 73 cir::ConstantOp getConstantInt(mlir::Location loc, mlir::Type ty, in getConstantInt() argument 75 return getConstant(loc, cir::IntAttr::get(ty, value)); in getConstantInt() 79 cir::ConstantOp getNullValue(mlir::Type ty, mlir::Location loc) { in getNullValue() argument 80 return getConstant(loc, getZeroInitAttr(ty)); in getNullValue() 109 cir::ConstantOp getBool(bool state, mlir::Location loc) { in getBool() argument 110 return create<cir::ConstantOp>(loc, getCIRBoolAttr(state)); in getBool() [all …]
|
| /freebsd/contrib/openbsm/sys/bsm/ |
| H A D | audit_internal.h | 82 #define ADD_U_CHAR(loc, val) \ argument 84 *(loc) = (val); \ 85 (loc) += sizeof(u_char); \ 89 #define ADD_U_INT16(loc, val) \ argument 91 be16enc((loc), (val)); \ 92 (loc) += sizeof(u_int16_t); \ 95 #define ADD_U_INT32(loc, val) \ argument 97 be32enc((loc), (val)); \ 98 (loc) += sizeof(u_int32_t); \ 101 #define ADD_U_INT64(loc, val) \ argument [all …]
|
| /freebsd/sys/bsm/ |
| H A D | audit_internal.h | 84 #define ADD_U_CHAR(loc, val) \ argument 86 *(loc) = (val); \ 87 (loc) += sizeof(u_char); \ 91 #define ADD_U_INT16(loc, val) \ argument 93 be16enc((loc), (val)); \ 94 (loc) += sizeof(u_int16_t); \ 97 #define ADD_U_INT32(loc, val) \ argument 99 be32enc((loc), (val)); \ 100 (loc) += sizeof(u_int32_t); \ 103 #define ADD_U_INT64(loc, val) \ argument [all …]
|
| /freebsd/contrib/llvm-project/lld/MachO/Arch/ |
| H A 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 …]
|
| /freebsd/crypto/openssh/ |
| H A D | auth2-pubkeyfile.c | 57 const char *loc) in auth_authorise_keyopts() argument 69 debug("%s: entry expired at %s", loc, buf); in auth_authorise_keyopts() 70 auth_debug_add("%s: entry expired at %s", loc, buf); in auth_authorise_keyopts() 75 debug("%s: principals on non-CA key", loc); in auth_authorise_keyopts() 76 auth_debug_add("%s: principals on non-CA key", loc); in auth_authorise_keyopts() 82 debug("%s: cert-authority flag invalid here", loc); in auth_authorise_keyopts() 83 auth_debug_add("%s: cert-authority flag invalid here", loc); in auth_authorise_keyopts() 97 debug("%s: invalid from criteria", loc); in auth_authorise_keyopts() 98 auth_debug_add("%s: invalid from criteria", loc); in auth_authorise_keyopts() 104 loc, pw->pw_name, remote_host, remote_ip, in auth_authorise_keyopts() [all …]
|
| /freebsd/lib/libc/stdtime/ |
| H A D | strftime.c | 78 const struct tm * __restrict t, locale_t loc) in strftime_l() argument 82 FIX_LOCALE(loc); in strftime_l() 86 p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize, &warn, loc); in strftime_l() 89 (void) fprintf_l(stderr, loc, "\n"); in strftime_l() 92 else (void) fprintf_l(stderr, loc, "strftime format \"%s\" ", in strftime_l() 118 const char * const ptlim, int *warnp, locale_t loc) in _fmt() argument 121 struct lc_time_T *tptr = __get_current_time_locale(loc); in _fmt() 168 pt, ptlim, loc); in _fmt() 174 pt = _fmt(tptr->c_fmt, t, pt, ptlim, &warn2, loc); in _fmt() 182 pt = _fmt("%m/%d/%y", t, pt, ptlim, warnp, loc); in _fmt() [all …]
|
| /freebsd/crypto/openssl/crypto/x509/ |
| H A D | x509name.c | 92 X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc) in X509_NAME_get_entry() argument 94 if (name == NULL || sk_X509_NAME_ENTRY_num(name->entries) <= loc in X509_NAME_get_entry() 95 || loc < 0) in X509_NAME_get_entry() 98 return sk_X509_NAME_ENTRY_value(name->entries, loc); in X509_NAME_get_entry() 101 X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc) in X509_NAME_delete_entry() argument 107 if (name == NULL || sk_X509_NAME_ENTRY_num(name->entries) <= loc in X509_NAME_delete_entry() 108 || loc < 0) in X509_NAME_delete_entry() 112 ret = sk_X509_NAME_ENTRY_delete(sk, loc); in X509_NAME_delete_entry() 115 if (loc == n) in X509_NAME_delete_entry() 119 if (loc != 0) in X509_NAME_delete_entry() [all …]
|
| H A D | x509_ext.c | 40 X509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc) in X509_CRL_get_ext() argument 42 return X509v3_get_ext(x->crl.extensions, loc); in X509_CRL_get_ext() 45 static X509_EXTENSION *delete_ext(STACK_OF(X509_EXTENSION) **sk, int loc) in delete_ext() argument 47 X509_EXTENSION *ret = X509v3_delete_ext(*sk, loc); in delete_ext() 57 X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc) in X509_CRL_delete_ext() argument 59 return delete_ext(&x->crl.extensions, loc); in X509_CRL_delete_ext() 73 int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) in X509_CRL_add_ext() argument 75 return (X509v3_add_ext(&(x->crl.extensions), ex, loc) != NULL); in X509_CRL_add_ext() 98 X509_EXTENSION *X509_get_ext(const X509 *x, int loc) in X509_get_ext() argument 100 return X509v3_get_ext(x->cert_info.extensions, loc); in X509_get_ext() [all …]
|