Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 463) sorted by relevance

12345678910>>...19

/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DAVR.cpp49 const uint8_t *loc) const override;
53 void relocate(uint8_t *loc, const Relocation &rel,
59 const uint8_t *loc) const { in getRelExpr()
96 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr()
102 static void writeLDI(uint8_t *loc, uint64_t val) { in writeLDI() argument
103 write16le(loc, (read16le(loc) & 0xf0f0) | (val & 0xf0) << 4 | (val & 0x0f)); in writeLDI()
119 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument
122 checkUInt(loc, val, 8, rel); in relocate()
123 *loc = val; in relocate()
126 checkUInt(loc, val, 32, rel); in relocate()
[all …]
H A DSPARCV9.cpp26 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 …]
H A DX86_64.cpp32 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,
353 const uint8_t *loc) const { in getRelExpr()
403 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr()
462 static void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) { in relaxTlsGdToLe() argument
476 memcpy(loc - 4, inst, sizeof(inst)); in relaxTlsGdToLe()
480 write32le(loc + 8, val + 4); in relaxTlsGdToLe()
[all …]
H A DPPC64.cpp175 const uint8_t *loc) const override;
183 void relocate(uint8_t *loc, const Relocation &rel,
193 const uint8_t *loc) const override;
194 void relaxGot(uint8_t *loc, const Relocation &rel, uint64_t val) const;
197 bool adjustPrologueForCrossSplitStack(uint8_t *loc, uint8_t *end,
201 void relaxTlsGdToIe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
202 void relaxTlsGdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
203 void relaxTlsLdToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
204 void relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
247 void elf::writePrefixedInstruction(uint8_t *loc, uint64_t insn) { in writePrefixedInstruction() argument
[all …]
H A DX86.cpp28 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 …]
H A DMips.cpp29 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 …]
H A DPPC.cpp31 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_ argument
310 relocate(uint8_t * loc,const Relocation & rel,uint64_t val) const relocate() argument
401 relaxTlsGdToIe(uint8_t * loc,const Relocation & rel,uint64_t val) const relaxTlsGdToIe() argument
420 relaxTlsGdToLe(uint8_t * loc,const Relocation & rel,uint64_t val) const relaxTlsGdToLe() argument
436 relaxTlsLdToLe(uint8_t * loc,const Relocation & rel,uint64_t val) const relaxTlsLdToLe() argument
460 relaxTlsIeToLe(uint8_t * loc,const Relocation & rel,uint64_t val) const relaxTlsIeToLe() argument
494 uint8_t *loc = buf + rel.offset; relocateAlloc() local
[all...]
H A DLoongArch.cpp37 const uint8_t *loc) const override;
39 void relocate(uint8_t *loc, const Relocation &rel,
162 static void handleUleb128(uint8_t *loc, uint64_t val) { in handleUleb128() argument
166 uint64_t orig = decodeULEB128(loc, &count, nullptr, &error); in handleUleb128()
168 errorOrWarn(getErrorLocation(loc) + "extra space for uleb128"); in handleUleb128()
170 encodeULEB128((orig + val) & mask, loc, count); in handleUleb128()
382 const uint8_t *loc) const { in getRelExpr()
404 return isJirl(read32le(loc)) ? R_PLT : R_ABS; in getRelExpr()
530 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr()
550 void LoongArch::relocate(uint8_t *loc, const Relocation &rel, in relocate() argument
[all …]
H A DAArch64.cpp36 const uint8_t *loc) const override;
50 void relocate(uint8_t *loc, const Relocation &rel,
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 relaxTlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
101 const uint8_t *loc) const { in getRelExpr()
183 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr()
432 static void writeSMovWImm(uint8_t *loc, uint32_t imm) { in writeSMovWImm() argument
433 uint32_t inst = read32le(loc); in writeSMovWImm()
446 write32le(loc, inst | ((imm & 0xFFFF) << 5)); in writeSMovWImm()
[all …]
H A DHexagon.cpp30 const uint8_t *loc) const override;
33 void relocate(uint8_t *loc, const Relocation &rel,
90 const uint8_t *loc) const { in getRelExpr()
156 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr()
256 void Hexagon::relocate(uint8_t *loc, const Relocation &rel, in relocate() argument
263 or32le(loc, applyMask(findMaskR6(read32le(loc)), val)); in relocate()
266 or32le(loc, applyMask(findMaskR8(read32le(loc)), val)); in relocate()
269 or32le(loc, applyMask(0x00003fe0, val & 0x3f)); in relocate()
272 or32le(loc, applyMask(0x00203fe0, val & 0x3f)); in relocate()
280 or32le(loc, applyMask(findMaskR11(read32le(loc)), val & 0x3f)); in relocate()
[all …]
H A DMSP430.cpp36 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 …]
H A DARM.cpp34 const uint8_t *loc) const override;
49 void relocate(uint8_t *loc, const Relocation &rel,
100 const uint8_t *loc) const { in getRelExpr()
194 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr()
494 static void stateChangeWarning(uint8_t *loc, RelType relt, const Symbol &s) { in stateChangeWarning() argument
496 const ErrorPlace place = getErrorPlace(loc); in stateChangeWarning()
503 warn(place.loc + "branch and link relocation: " + toString(relt) + in stateChangeWarning()
508 warn(getErrorLocation(loc) + "branch and link relocation: " + in stateChangeWarning()
537 static void encodeAluGroup(uint8_t *loc, const Relocation &rel, uint64_t val, in encodeAluGroup() argument
555 error(getErrorLocation(loc) + "unencodeable immediate " + Twine(val).str() + in encodeAluGroup()
[all …]
H A DRISCV.cpp43 const uint8_t *loc) const override;
44 void relocate(uint8_t *loc, const Relocation &rel,
264 const uint8_t *loc) const { in getRelExpr()
329 error(getErrorLocation(loc) + "unknown relocation (" + Twine(type) + in getRelExpr()
335 void RISCV::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument
340 write32le(loc, val); in relocate()
343 write64le(loc, val); in relocate()
347 checkInt(loc, val, 9, rel); in relocate()
348 checkAlignment(loc, val, 2, rel); in relocate()
349 uint16_t insn = read16le(loc) & 0xE383; in relocate()
[all …]
/freebsd/contrib/byacc/test/btyacc/
H A Dbtyacc_demo.tab.c205 #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 Dt_hid.c118 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 Dnl_langinfo.c51 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 Dxlocale.c148 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/sys/dev/ath/ath_hal/
H A Dah_eeprom_v1.c117 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/openbsm/sys/bsm/
H A Daudit_internal.h82 #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 Daudit_internal.h84 #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 DARM64Common.cpp30 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 Dauth2-pubkeyfile.c57 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 Dstrftime.c76 const struct tm * __restrict t, locale_t loc) in strftime_l() argument
80 FIX_LOCALE(loc); in strftime_l()
84 p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize, &warn, loc); in strftime_l()
87 (void) fprintf_l(stderr, loc, "\n"); in strftime_l()
90 else (void) fprintf_l(stderr, loc, "strftime format \"%s\" ", in strftime_l()
116 const char * const ptlim, int *warnp, locale_t loc) in _fmt() argument
119 struct lc_time_T *tptr = __get_current_time_locale(loc); in _fmt()
166 pt, ptlim, loc); in _fmt()
172 pt = _fmt(tptr->c_fmt, t, pt, ptlim, &warn2, loc); in _fmt()
180 pt = _fmt("%m/%d/%y", t, pt, ptlim, warnp, loc); in _fmt()
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dx509name.c92 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 Dx509_ext.c40 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 X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc) in X509_CRL_delete_ext() argument
47 return X509v3_delete_ext(x->crl.extensions, loc); in X509_CRL_delete_ext()
61 int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) in X509_CRL_add_ext() argument
63 return (X509v3_add_ext(&(x->crl.extensions), ex, loc) != NULL); in X509_CRL_add_ext()
87 X509_EXTENSION *X509_get_ext(const X509 *x, int loc) in X509_get_ext() argument
89 return X509v3_get_ext(x->cert_info.extensions, loc); in X509_get_ext()
92 X509_EXTENSION *X509_delete_ext(X509 *x, int loc) in X509_delete_ext() argument
94 return X509v3_delete_ext(x->cert_info.extensions, loc); in X509_delete_ext()
[all …]

12345678910>>...19