| /freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/interception/ |
| HD | interception.h | 150 # define DECLARE_WRAPPER(ret_type, func, ...) argument 156 # define DECLARE_WRAPPER(ret_type, func, ...) \ argument 157 extern "C" ret_type func(__VA_ARGS__); 158 # define DECLARE_WRAPPER_WINAPI(ret_type, func, ...) \ argument 159 extern "C" __declspec(dllimport) ret_type __stdcall func(__VA_ARGS__); 184 # define __ASM_WEAK_WRAPPER(func) ".globl " #func "\n" argument 186 # define __ASM_WEAK_WRAPPER(func) ".weak " #func "\n" argument 194 # define DECLARE_WRAPPER(ret_type, func, ...) \ argument 195 extern "C" ret_type func(__VA_ARGS__); \ 196 extern "C" ret_type TRAMPOLINE(func)(__VA_ARGS__); \ [all …]
|
| HD | interception_linux.h | 25 bool InterceptFunction(const char *name, uptr *ptr_to_real, uptr func, 28 uptr func, uptr trampoline); 34 #define INTERCEPT_FUNCTION_LINUX_OR_FREEBSD(func) \ argument 36 #func, (::__interception::uptr *)&REAL(func), \ 37 (::__interception::uptr)(decltype(REAL(func)))&(func), \ 38 (::__interception::uptr) &TRAMPOLINE(func)) 42 #define INTERCEPT_FUNCTION_VER_LINUX_OR_FREEBSD(func, symver) \ argument 44 #func, symver, \ 45 (::__interception::uptr *)&REAL(func), \ 46 (::__interception::uptr)(decltype(REAL(func)))&(func), \ [all …]
|
| HD | interception_win.h | 69 #define INTERCEPT_FUNCTION_WIN(func) \ argument 70 ::__interception::OverrideFunction(#func, \ 71 (::__interception::uptr)WRAP(func), \ 72 (::__interception::uptr *)&REAL(func)) 74 #define INTERCEPT_FUNCTION_WIN(func) \ argument 75 ::__interception::OverrideFunction((::__interception::uptr)func, \ 76 (::__interception::uptr)WRAP(func), \ 77 (::__interception::uptr *)&REAL(func)) 80 #define INTERCEPT_FUNCTION_VER_WIN(func, symver) INTERCEPT_FUNCTION_WIN(func) argument 82 #define INTERCEPT_FUNCTION_DLLIMPORT(user_dll, provider_dll, func) \ argument [all …]
|
| /freebsd-14-stable/contrib/openpam/misc/ |
| HD | gendoc.pl | 105 my $func; 152 $func = $fn; 153 $func =~ s,^(?:.*/)?([^/]+)\.c$,$1,; 154 if ($source !~ m,\n \* ([\S ]+)\n \*/\n\n([\S ]+)\n$func\((.*?)\)\n\{,s) { 155 warn("$fn: can't find $func\n"); 295 s/\s*=($func)\b\s*/\n.Fn $1\n/gs; 331 $FUNCTIONS{$func} = { 334 'name' => $func, 347 $FUNCTIONS{$func}->{nodoc} = 1; 350 $FUNCTIONS{$func}->{openpam} = 1; [all …]
|
| /freebsd-14-stable/contrib/netbsd-tests/fs/common/ |
| HD | h_fsmacros.h | 106 #define ATF_TC_FSADD(fs,type,func,desc) \ argument 107 ATF_TC(fs##_##func); \ 108 ATF_TC_HEAD(fs##_##func,tc) \ 114 void *fs##func##tmp; \ 116 ATF_TC_BODY(fs##_##func,tc) \ 120 FSTEST_CONSTRUCTOR(tc,fs,fs##func##tmp); \ 121 func(tc,FSTEST_MNTNAME); \ 156 #define ATF_TP_FSADD(fs,func) \ argument 157 ATF_TP_ADD_TC(tp,fs##_##func) 159 #define ATF_TC_FSAPPLY_NOZFS(func,desc) \ argument [all …]
|
| /freebsd-14-stable/sys/sys/ |
| HD | sdt.h | 91 #define SDT_PROBE_DEFINE(prov, mod, func, name) argument 92 #define SDT_PROBE_DECLARE(prov, mod, func, name) argument 94 #define SDT_PROBE(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4) argument 95 #define SDT_PROBE_ARGTYPE(prov, mod, func, name, num, type, xtype) argument 97 #define SDT_PROBE_DEFINE0(prov, mod, func, name) argument 98 #define SDT_PROBE_DEFINE1(prov, mod, func, name, arg0) argument 99 #define SDT_PROBE_DEFINE2(prov, mod, func, name, arg0, arg1) argument 100 #define SDT_PROBE_DEFINE3(prov, mod, func, name, arg0, arg1, arg2) argument 101 #define SDT_PROBE_DEFINE4(prov, mod, func, name, arg0, arg1, arg2, arg3) argument 102 #define SDT_PROBE_DEFINE5(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4) argument [all …]
|
| /freebsd-14-stable/contrib/libucl/src/ |
| HD | ucl_emitter.c | 96 ucl_add_tabs (const struct ucl_emitter_functions *func, unsigned int tabs, in ucl_add_tabs() argument 100 func->ucl_emitter_append_character (' ', tabs * 4, func->ud); in ucl_add_tabs() 113 const struct ucl_emitter_functions *func = ctx->func; in ucl_emitter_print_key() local 124 func->ucl_emitter_append_len (obj->key, obj->keylen, func->ud); in ucl_emitter_print_key() 128 func->ucl_emitter_append_len (" = ", 3, func->ud); in ucl_emitter_print_key() 131 func->ucl_emitter_append_character (' ', 1, func->ud); in ucl_emitter_print_key() 139 func->ucl_emitter_append_len (obj->key, obj->keylen, func->ud); in ucl_emitter_print_key() 142 func->ucl_emitter_append_len ("null", 4, func->ud); in ucl_emitter_print_key() 145 func->ucl_emitter_append_len (": ", 2, func->ud); in ucl_emitter_print_key() 152 func->ucl_emitter_append_len ("null", 4, func->ud); in ucl_emitter_print_key() [all …]
|
| HD | ucl_emitter_utils.c | 45 .func = NULL, 51 .func = NULL, 57 .func = NULL, 63 .func = NULL, 69 .func = NULL, 107 const struct ucl_emitter_functions *func = ctx->func; in ucl_elt_string_write_json() local 109 func->ucl_emitter_append_character ('"', 1, func->ud); in ucl_elt_string_write_json() 116 func->ucl_emitter_append_len (c, len, func->ud); in ucl_elt_string_write_json() 120 func->ucl_emitter_append_len ("\\n", 2, func->ud); in ucl_elt_string_write_json() 123 func->ucl_emitter_append_len ("\\r", 2, func->ud); in ucl_elt_string_write_json() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| HD | tsan_interceptors.h | 51 #define SCOPED_INTERCEPTOR_RAW(func, ...) \ argument 53 ScopedInterceptor si(thr, #func, GET_CALLER_PC()); \ 64 # define CHECK_REAL_FUNC(func) \ argument 65 if (REAL(func) == 0) { \ 66 Report("FATAL: ThreadSanitizer: failed to intercept %s\n", #func); \ 70 # define CHECK_REAL_FUNC(func) DCHECK(REAL(func)) argument 73 #define SCOPED_TSAN_INTERCEPTOR(func, ...) \ argument 74 SCOPED_INTERCEPTOR_RAW(func, __VA_ARGS__); \ 75 CHECK_REAL_FUNC(func); \ 77 return REAL(func)(__VA_ARGS__); [all …]
|
| /freebsd-14-stable/lib/libc/amd64/ |
| HD | amd64_archlevel.h | 47 #define ARCHRESOLVE(func) \ argument 48 .globl CNAME(func); \ 49 .type CNAME(func), @gnu_indirect_function; \ 50 .set CNAME(func), __CONCAT(func,_resolver); \ 51 ARCHENTRY(func, resolver); \ 52 lea __CONCAT(func,_funcs)(%rip), %r8; \ 54 ARCHEND(func, resolver) 65 #define ARCHFUNCS(func) \ argument 66 ARCHRESOLVE(func); \ 69 __CONCAT(func,_funcs): [all …]
|
| /freebsd-14-stable/usr.bin/sdiotool/ |
| HD | linux_sdio_compat.c | 58 u8 sdio_readb(struct sdio_func *func, unsigned int addr, int *err_ret) { in sdio_readb() argument 59 return sdio_read_1(func->dev, func->num, addr, err_ret); in sdio_readb() 62 unsigned char sdio_f0_readb(struct sdio_func *func, unsigned int addr, int *err_ret) { in sdio_f0_readb() argument 63 return sdio_readb(func, addr, err_ret); in sdio_f0_readb() 66 u16 sdio_readw(struct sdio_func *func, unsigned int addr, int *err_ret) { in sdio_readw() argument 67 return sdio_read_2(func->dev, func->num, addr, err_ret); in sdio_readw() 70 u32 sdio_readl(struct sdio_func *func, unsigned int addr, int *err_ret) { in sdio_readl() argument 71 return sdio_read_4(func->dev, func->num, addr, err_ret); in sdio_readl() 74 void sdio_writeb(struct sdio_func *func, u8 b, in sdio_writeb() argument 76 *err_ret = sdio_write_1(func->dev, func->num, addr, b); in sdio_writeb() [all …]
|
| HD | sdiotool.c | 169 struct sdio_func *func[8]; member 220 static inline int brcmf_sdiod_f0_writeb(struct sdio_func *func, in brcmf_sdiod_f0_writeb() argument 231 sdio_writeb(func, byte, regaddr, &err_ret); in brcmf_sdiod_f0_writeb() 233 sdio_f0_writeb(func, byte, regaddr, &err_ret); in brcmf_sdiod_f0_writeb() 240 struct sdio_func *func; in brcmf_sdiod_request_data() local 249 func = sdiodev->func[fn]; in brcmf_sdiod_request_data() 255 sdio_writeb(func, *(u8 *)data, addr, &ret); in brcmf_sdiod_request_data() 257 ret = brcmf_sdiod_f0_writeb(func, addr, in brcmf_sdiod_request_data() 261 *(u8 *)data = sdio_readb(func, addr, &ret); in brcmf_sdiod_request_data() 263 *(u8 *)data = sdio_f0_readb(func, addr, &ret); in brcmf_sdiod_request_data() [all …]
|
| /freebsd-14-stable/contrib/tcsh/ |
| HD | ed.defns.c | 1132 f->func = F_CHARBACK; in editinit() 1137 f->func = F_DELPREV; in editinit() 1142 f->func = F_DELWORDPREV; in editinit() 1148 f->func = F_KILLBEG; in editinit() 1154 f->func = F_WORDBACK; in editinit() 1159 f->func = F_TOBEG; in editinit() 1164 f->func = F_CASECAPITAL; in editinit() 1170 f->func = V_CHGCASE; in editinit() 1176 f->func = V_CHGTOEND; /* backward compat. */ in editinit() 1181 f->func = F_CLEARDISP; in editinit() [all …]
|
| /freebsd-14-stable/sys/amd64/pci/ |
| HD | pci_cfgreg.c | 53 static uint32_t pci_docfgregread(int domain, int bus, int slot, int func, 57 unsigned slot, unsigned func, unsigned reg, unsigned bytes); 59 unsigned slot, unsigned func, unsigned reg, int data, 61 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes); 62 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes); 102 pci_docfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument 105 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread() 112 return (pciereg_cfgread(region, bus, slot, func, reg, in pci_docfgregread() 117 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread() 126 pci_cfgregread_domain(int domain, int bus, int slot, int func, int reg, in pci_cfgregread_domain() argument [all …]
|
| /freebsd-14-stable/contrib/llvm-project/lldb/source/Plugins/UnwindAssembly/x86/ |
| HD | UnwindAssembly-x86.cpp | 46 AddressRange &func, Thread &thread, UnwindPlan &unwind_plan) { in GetNonCallSiteUnwindPlanFromAssembly() argument 47 if (!func.GetBaseAddress().IsValid() || func.GetByteSize() == 0) in GetNonCallSiteUnwindPlanFromAssembly() 54 std::vector<uint8_t> function_text(func.GetByteSize()); in GetNonCallSiteUnwindPlanFromAssembly() 57 func.GetBaseAddress(), function_text.data(), func.GetByteSize(), in GetNonCallSiteUnwindPlanFromAssembly() 58 error) == func.GetByteSize()) { in GetNonCallSiteUnwindPlanFromAssembly() 62 function_text.data(), func.GetByteSize(), func, unwind_plan); in GetNonCallSiteUnwindPlanFromAssembly() 68 AddressRange &func, Thread &thread, UnwindPlan &unwind_plan) { in AugmentUnwindPlanFromCallSite() argument 151 if (!func.GetBaseAddress().IsValid() || func.GetByteSize() == 0) in AugmentUnwindPlanFromCallSite() 155 std::vector<uint8_t> function_text(func.GetByteSize()); in AugmentUnwindPlanFromCallSite() 158 func.GetBaseAddress(), function_text.data(), func.GetByteSize(), in AugmentUnwindPlanFromCallSite() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/libcxx/src/ |
| HD | string.cpp | 58 inline void throw_from_string_out_of_range(const string& func) { in throw_from_string_out_of_range() argument 59 std::__throw_out_of_range((func + ": out of range").c_str()); in throw_from_string_out_of_range() 62 inline void throw_from_string_invalid_arg(const string& func) { in throw_from_string_invalid_arg() argument 63 std::__throw_invalid_argument((func + ": no conversion").c_str()); in throw_from_string_invalid_arg() 69 inline V as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) { in as_integer_helper() argument 77 throw_from_string_out_of_range(func); in as_integer_helper() 79 throw_from_string_invalid_arg(func); in as_integer_helper() 86 inline V as_integer(const string& func, const S& s, size_t* idx, int base); 90 inline int as_integer(const string& func, const string& s, size_t* idx, int base) { in as_integer() argument 92 long r = as_integer_helper<long>(func, s, idx, base, strtol); in as_integer() [all …]
|
| /freebsd-14-stable/crypto/heimdal/lib/hx509/ |
| HD | test_soft_pkcs11.c | 38 static CK_FUNCTION_LIST_PTR func; variable 57 ret = (*func->C_FindObjectsInit)(session, search_data, num_search_data); in find_object() 61 ret = (*func->C_FindObjects)(session, object, 1, &object_count); in find_object() 69 ret = (*func->C_FindObjectsFinal)(session); in find_object() 92 ret = C_GetFunctionList(&func); in main() 96 (*func->C_Initialize)(NULL_PTR); in main() 98 ret = (*func->C_GetSlotList)(FALSE, NULL, &num_slots); in main() 108 ret = (*func->C_GetSlotList)(FALSE, slot_ids, &num_slots); in main() 115 ret = (*func->C_GetSlotInfo)(slot, &slot_info); in main() 122 ret = (*func->C_OpenSession)(slot, CKF_SERIAL_SESSION, in main() [all …]
|
| /freebsd-14-stable/sys/powerpc/powerpc/ |
| HD | db_disasm.c | 74 enum function_mask func; member 606 enum function_mask func; in disasm_fields() local 619 func = popcode->func; in disasm_fields() 620 if (func & Op_BC) { in disasm_fields() 624 func &= ~Op_BC; in disasm_fields() 630 func |= Op_BO | Op_BI; in disasm_fields() 636 func |= Op_crfS; in disasm_fields() 650 func |= Op_BI; in disasm_fields() 656 if ((BO & 20) != 20 && (func & Op_BO) == 0) in disasm_fields() 657 func |= Op_BP; /* branch prediction hint */ in disasm_fields() [all …]
|
| /freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/rtsan/tests/ |
| HD | rtsan_test_interceptors.cpp | 176 auto func = [this]() { open(GetTemporaryFilePath(), O_RDONLY); }; in TEST_F() local 177 ExpectRealtimeDeath(func, "open"); in TEST_F() 178 ExpectNonRealtimeSurvival(func); in TEST_F() 182 auto func = [this]() { openat(0, GetTemporaryFilePath(), O_RDONLY); }; in TEST_F() local 183 ExpectRealtimeDeath(func, "openat"); in TEST_F() 184 ExpectNonRealtimeSurvival(func); in TEST_F() 202 auto func = [this]() { creat(GetTemporaryFilePath(), S_IWOTH | S_IROTH); }; in TEST_F() local 203 ExpectRealtimeDeath(func, "creat"); in TEST_F() 204 ExpectNonRealtimeSurvival(func); in TEST_F() 208 auto func = []() { fcntl(0, F_GETFL); }; in TEST() local [all …]
|
| /freebsd-14-stable/sys/dev/psci/ |
| HD | smccc.h | 38 #define SMCCC_FUNC_ID(type, call_conv, range, func) \ argument 42 ((func) & 0xffff)) 94 #define arm_smccc_invoke_1(func, a0, res) \ argument 95 func(a0, 0, 0, 0, 0, 0, 0, 0, res) 96 #define arm_smccc_invoke_2(func, a0, a1, res) \ argument 97 func(a0, a1, 0, 0, 0, 0, 0, 0, res) 98 #define arm_smccc_invoke_3(func, a0, a1, a2, res) \ argument 99 func(a0, a1, a2, 0, 0, 0, 0, 0, res) 100 #define arm_smccc_invoke_4(func, a0, a1, a2, a3, res) \ argument 101 func(a0, a1, a2, a3, 0, 0, 0, 0, res) [all …]
|
| /freebsd-14-stable/sys/i386/pci/ |
| HD | pci_cfgreg.c | 87 static uint32_t pci_docfgregread(int domain, int bus, int slot, int func, 90 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes); 91 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes); 94 unsigned slot, unsigned func, unsigned reg, unsigned bytes); 96 unsigned slot, unsigned func, unsigned reg, int data, 176 pci_docfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument 179 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread() 186 return (pciereg_cfgread(region, bus, slot, func, reg, in pci_docfgregread() 191 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread() 200 pci_cfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_cfgregread() argument [all …]
|
| /freebsd-14-stable/contrib/llvm-project/compiler-rt/lib/safestack/ |
| HD | safestack_platform.h | 78 #define _REAL(func, ...) real##_##func(__VA_ARGS__) argument 79 #define DEFINE__REAL(ret_type, func, ...) \ argument 80 static ret_type (*real_##func)(__VA_ARGS__) = NULL; \ 81 if (!real_##func) { \ 82 real_##func = (ret_type(*)(__VA_ARGS__))GetRealLibcAddress(#func); \ 84 SFS_CHECK(real_##func); 88 # define _REAL(func) _##func argument 89 # define DEFINE__REAL(ret_type, func, ...) \ argument 90 extern "C" ret_type _REAL(func)(__VA_ARGS__) 93 # define _REAL64(func) _##func##64 argument [all …]
|
| /freebsd-14-stable/sys/x86/pci/ |
| HD | pci_early_quirks.c | 71 intel_stolen_base_gen3(int domain, int bus, int slot, int func) in intel_stolen_base_gen3() argument 76 ctrl = pci_cfgregread(domain, bus, slot, func, INTEL_BSM, 4); in intel_stolen_base_gen3() 82 intel_stolen_base_gen11(int domain, int bus, int slot, int func) in intel_stolen_base_gen11() argument 87 ctrl = pci_cfgregread(domain, bus, slot, func, INTEL_GEN11_BSM_DW0, 4); in intel_stolen_base_gen11() 90 domain, bus, slot, func, INTEL_GEN11_BSM_DW1, 4) << 32; in intel_stolen_base_gen11() 95 intel_stolen_size_gen3(int domain, int bus, int slot, int func) in intel_stolen_size_gen3() argument 135 intel_stolen_size_gen6(int domain, int bus, int slot, int func) in intel_stolen_size_gen6() argument 140 ctrl = pci_cfgregread(domain, bus, slot, func, SNB_GMCH_CTRL, 2); in intel_stolen_size_gen6() 146 intel_stolen_size_gen8(int domain, int bus, int slot, int func) in intel_stolen_size_gen8() argument 151 ctrl = pci_cfgregread(domain, bus, slot, func, SNB_GMCH_CTRL, 2); in intel_stolen_size_gen8() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/mediatek/mt76/ |
| HD | sdio.c | 25 return sdio_readl(dev->sdio.func, MCR_WHISR, NULL); in mt76s_read_whisr() 32 return sdio_readl(sdio->func, MCR_WHLPCR, NULL); in mt76s_read_pcr() 38 struct sdio_func *func = dev->sdio.func; in mt76s_read_mailbox() local 42 sdio_claim_host(func); in mt76s_read_mailbox() 44 sdio_writel(func, offset, MCR_H2DSM0R, &err); in mt76s_read_mailbox() 50 sdio_writel(func, H2D_SW_INT_READ, MCR_WSICR, &err); in mt76s_read_mailbox() 63 sdio_writel(func, H2D_SW_INT_READ, MCR_WHISR, &err); in mt76s_read_mailbox() 69 val = sdio_readl(func, MCR_H2DSM0R, &err); in mt76s_read_mailbox() 81 val = sdio_readl(func, MCR_D2HRM1R, &err); in mt76s_read_mailbox() 86 sdio_release_host(func); in mt76s_read_mailbox() [all …]
|
| /freebsd-14-stable/sys/arm/ti/am335x/ |
| HD | am335x_dmtimer.c | 66 } func; member 168 if (sc->func.et.et_active) in am335x_dmtimer_et_intr() 169 sc->func.et.et_event_cb(&sc->func.et, sc->func.et.et_arg); in am335x_dmtimer_et_intr() 191 sc->func.et.et_name = sc->tmr_name; in am335x_dmtimer_et_init() 192 sc->func.et.et_flags = ET_FLAGS_PERIODIC | ET_FLAGS_ONESHOT; in am335x_dmtimer_et_init() 193 sc->func.et.et_quality = 500; in am335x_dmtimer_et_init() 194 sc->func.et.et_frequency = sc->sysclk_freq; in am335x_dmtimer_et_init() 195 sc->func.et.et_min_period = in am335x_dmtimer_et_init() 196 ((0x00000005LLU << 32) / sc->func.et.et_frequency); in am335x_dmtimer_et_init() 197 sc->func.et.et_max_period = in am335x_dmtimer_et_init() [all …]
|