/haiku/src/add-ons/kernel/bus_managers/pci/ |
H A D | pci_fixup.cpp | 26 uint8 function, uint16 deviceId) in jmicron_fixup_ahci() argument 29 if (function != 0) in jmicron_fixup_ahci() 43 "deviceId 0x%04x\n", domain, bus, device, function, deviceId); in jmicron_fixup_ahci() 46 uint32 val = pci->ReadConfig(domain, bus, device, function, 0x40, 4); in jmicron_fixup_ahci() 71 pci->WriteConfig(domain, bus, device, function, 0x40, 4, val); in jmicron_fixup_ahci() 75 uint8 irq = pci->ReadConfig(domain, bus, device, function, 0x3c, 1); in jmicron_fixup_ahci() 84 uint8 function, uint16 deviceId) in intel_fixup_ahci() argument 109 "deviceId 0x%04x\n", domain, bus, device, function, deviceId); in intel_fixup_ahci() 112 pci->ReadConfig(domain, bus, device, function, 0x24, 4)); in intel_fixup_ahci() 114 pci->ReadConfig(domain, bus, device, function, 0x90, 1)); in intel_fixup_ahci() [all …]
|
H A D | pci.cpp | 44 pci_read_config(uint8 virtualBus, uint8 device, uint8 function, uint16 offset, in pci_read_config() argument 54 if (gPCI->ReadConfig(domain, bus, device, function, offset, size, in pci_read_config() 63 pci_write_config(uint8 virtualBus, uint8 device, uint8 function, uint16 offset, in pci_write_config() argument 71 gPCI->WriteConfig(domain, bus, device, function, offset, size, value); in pci_write_config() 93 pci_find_capability(uint8 virtualBus, uint8 device, uint8 function, in pci_find_capability() argument 101 return gPCI->FindCapability(domain, bus, device, function, capID, offset); in pci_find_capability() 106 pci_find_extended_capability(uint8 virtualBus, uint8 device, uint8 function, in pci_find_extended_capability() argument 114 return gPCI->FindExtendedCapability(domain, bus, device, function, capID, in pci_find_extended_capability() 120 pci_reserve_device(uchar virtualBus, uchar device, uchar function, in pci_reserve_device() argument 126 TRACE(("pci_reserve_device(%d, %d, %d, %s)\n", virtualBus, device, function, in pci_reserve_device() [all …]
|
H A D | pci_module.cpp | 52 ResolveBDF(uint8 virtualBus, uint8 device, uint8 function, PCIDev*& dev) in ResolveBDF() argument 60 dev = gPCI->FindDevice(domain, bus, device, function); in ResolveBDF() 95 .get_msi_count = [](uint8 bus, uint8 device, uint8 function) { in __anon31a29cbf0102() argument 97 if (ResolveBDF(bus, device, function, dev) < B_OK) in __anon31a29cbf0102() 101 .configure_msi = [](uint8 bus, uint8 device, uint8 function, uint32 count, 104 CHECK_RET(ResolveBDF(bus, device, function, dev)); in __anon31a29cbf0202() 107 .unconfigure_msi = [](uint8 bus, uint8 device, uint8 function) { in __anon31a29cbf0302() argument 109 CHECK_RET(ResolveBDF(bus, device, function, dev)); in __anon31a29cbf0302() 112 .enable_msi = [](uint8 bus, uint8 device, uint8 function) { in __anon31a29cbf0402() argument 114 CHECK_RET(ResolveBDF(bus, device, function, dev)); in __anon31a29cbf0402() [all …]
|
H A D | pci_private.h | 31 uint32 (*read_pci_config)(uint8 bus, uint8 device, uint8 function, 35 void (*write_pci_config)(uint8 bus, uint8 device, uint8 function, 49 status_t pci_find_capability(uint8 bus, uint8 device, uint8 function, 51 status_t pci_find_extended_capability(uint8 bus, uint8 device, uint8 function, 54 status_t pci_reserve_device(uchar virtualBus, uchar device, uchar function, 56 status_t pci_unreserve_device(uchar virtualBus, uchar device, uchar function, 60 uchar function, uchar newInterruptLineValue); 62 uint8 function, uint8* state); 64 uint8 function, uint8 newState);
|
/haiku/headers/private/shared/ |
H A D | FunctionObject.h | 180 : function(callThis), in SingleParamFunctionObject() 185 virtual void operator()() { (function)(p1.Pass()); } in operator() 188 void (*function)(Param1); 197 SingleParamFunctionObjectWithResult(Result (*function)(Param1), Param1 p1) in SingleParamFunctionObjectWithResult() 198 : function(function), in SingleParamFunctionObjectWithResult() 204 { FunctionObjectWithResult<Result>::result = (function)(p1.Pass()); } in operator() 207 Result (*function)(Param1); 217 : function(callThis), in TwoParamFunctionObject() 223 virtual void operator()() { (function)(p1.Pass(), p2.Pass()); } in operator() 226 void (*function)(Param1, Param2); [all …]
|
H A D | Thread.h | 104 status_t (*function)(Param1), Param1 param1) in SingleParamFunctionObjectWorkaround() 105 : fFunction(function), in SingleParamFunctionObjectWorkaround() 125 SimpleMemberFunctionObjectWorkaround(status_t (T::*function)(), T* onThis) in SimpleMemberFunctionObjectWorkaround() argument 126 : fFunction(function), in SimpleMemberFunctionObjectWorkaround() 148 : function(callThis), in TwoParamFunctionObjectWorkaround() 155 { (function)(fParam1, fParam2); } in operator() 160 status_t (*function)(Param1, Param2); 173 : function(callThis), in ThreeParamFunctionObjectWorkaround() 181 { (function)(fParam1, fParam2, fParam3); } in operator() 186 status_t (*function)(Param1, Param2, Param3); [all …]
|
/haiku/src/libs/posix_error_mapper/ |
H A D | posix_error_mapper.h | 14 #define GET_REAL_FUNCTION(returnValue, function, parameters) \ argument 15 static returnValue (*sReal_##function)parameters \ 16 = (returnValue (*)parameters)dlsym(RTLD_DEFAULT, #function) 18 #define HIDDEN_FUNCTION(function) asm volatile(".hidden " #function) argument 20 #define WRAPPER_FUNCTION(returnValue, function, parameters, body) \ argument 21 returnValue function parameters \ 23 HIDDEN_FUNCTION(function); \ 24 GET_REAL_FUNCTION(returnValue, function, parameters); \
|
/haiku/src/kits/debugger/model/ |
H A D | ExpressionValues.cpp | 17 FunctionID* function; member 21 Key(FunctionID* function, ::Thread* thread, const BString& expression) in Key() 23 function(function), in Key() 31 return function->HashValue() ^ thread->ID() in HashValue() 37 return *function == *other.function in operator ==() 48 ValueEntry(FunctionID* function, ::Thread* thread, in ValueEntry() 51 Key(function, thread, expression) in ValueEntry() 53 function->AcquireReference(); in ValueEntry() 59 function->ReleaseReference(); in ~ValueEntry() 110 if (SetValue(entry->function, entry->thread, entry->expression, in ExpressionValues() [all …]
|
/haiku/src/system/libroot/os/arch/ppc/ |
H A D | syscalls.inc | 7 .type name,@function; \ 13 .type name,@function; \ 19 .type name,@function; \ 25 .type name,@function; \ 31 .type name,@function; \ 37 .type name,@function; \ 43 .type name,@function; \ 49 .type name,@function; \ 55 .type name,@function; \ 61 .type name,@function; \ [all …]
|
/haiku/src/system/kernel/ |
H A D | kernel_daemon.cpp | 21 daemon_hook function; member 36 status_t Register(daemon_hook function, void* arg, 38 status_t Unregister(daemon_hook function, void* arg); 84 KernelDaemon::Register(daemon_hook function, void* arg, int frequency) in Register() argument 86 if (function == NULL || frequency < 1) in Register() 93 daemon->function = function; in Register() 109 KernelDaemon::Unregister(daemon_hook function, void* arg) in Unregister() argument 119 if (daemon->function == function && daemon->arg == arg) { in Unregister() 151 (addr_t)daemon->function, NULL, &symbol, &imageName, &exactMatch); in Dump() 156 kprintf("\t%s:%s (%p)", imageName, symbol, daemon->function); in Dump() [all …]
|
/haiku/src/tests/misc/exception-test/ |
H A D | exception-test.cpp | 21 catchBase(void (*function)()) in catchBase() argument 24 (*function)(); in catchBase() 35 catchA(void (*function)()) in catchA() argument 38 (*function)(); in catchA() 49 catchB(void (*function)()) in catchB() argument 52 (*function)(); in catchB() 63 catchVirtualBase(void (*function)()) in catchVirtualBase() argument 66 (*function)(); in catchVirtualBase() 77 catchVirtualA(void (*function)()) in catchVirtualA() argument 80 (*function)(); in catchVirtualA() [all …]
|
/haiku/headers/private/debugger/model/ |
H A D | ExpressionValues.h | 30 bool GetValue(FunctionID* function, 34 inline bool GetValue(FunctionID* function, 38 bool HasValue(FunctionID* function, 41 inline bool HasValue(FunctionID* function, 44 status_t SetValue(FunctionID* function, 67 ExpressionValues::GetValue(FunctionID* function, Thread* thread, in GetValue() argument 70 return GetValue(function, thread, &expression, _value); in GetValue() 75 ExpressionValues::HasValue(FunctionID* function, Thread* thread, in HasValue() argument 78 return HasValue(function, thread, &expression); in HasValue()
|
/haiku/src/system/libroot/posix/musl/math/x86/ |
H A D | floor.s | 2 .type floorf,@function 8 .type floorl,@function 14 .type floor,@function 28 .type ceil,@function 35 .type ceilf,@function 42 .type ceill,@function 49 .type trunc,@function 56 .type truncf,@function 63 .type truncl,@function
|
/haiku/src/kits/debugger/debug_info/ |
H A D | TeamDebugInfo.cpp | 138 status_t AddFunction(Function* function) in AddFunction() 140 if (!fFunctions.BinaryInsert(function, &_CompareFunctions)) in AddFunction() 146 void RemoveFunction(Function* function) in RemoveFunction() 148 int32 index = fFunctions.BinarySearchIndex(*function, in RemoveFunction() 179 for (int32 i = 0; Function* function = fFunctions.ItemAt(i); i++) { in FunctionByName() 180 if (name == function->Name()) in FunctionByName() 181 return function; in FunctionByName() 208 const Function* function) in _CompareLocationFunction() 210 SourceLocation functionLocation = function->GetSourceLocation(); in _CompareLocationFunction() 294 Function* function = fFunctions->Clear(true); in ~TeamDebugInfo() local [all …]
|
H A D | ImageDebugInfo.cpp | 28 for (int32 i = 0; FunctionInstance* function = fFunctions.ItemAt(i); i++) in ~ImageDebugInfo() 29 function->ReleaseReference(); in ~ImageDebugInfo() 65 for (int32 k = 0; FunctionDebugInfo* function = functions.ItemAt(k); in FinishInit() 67 if (FunctionAtAddress(function->Address()) != NULL) in FinishInit() 71 this, function); in FinishInit() 79 if (function->IsMain()) in FinishInit() 85 for (int32 k = 0; FunctionDebugInfo* function = functions.ItemAt(k); in FinishInit() 87 function->ReleaseReference(); in FinishInit() 168 for (int32 i = 0; FunctionInstance* function = fFunctions.ItemAt(i); i++) { in FunctionByName() 169 if (function->Name() == name) in FunctionByName() [all …]
|
H A D | SpecificImageDebugInfo.cpp | 33 FunctionDebugInfo* function = new(std::nothrow) BasicFunctionDebugInfo( in GetFunctionsFromSymbols() local 36 if (function == NULL || !functions.AddItem(function)) { in GetFunctionsFromSymbols() 37 delete function; in GetFunctionsFromSymbols() 40 function = functions.RemoveItemAt(index); in GetFunctionsFromSymbols() 41 delete function; in GetFunctionsFromSymbols()
|
/haiku/src/bin/debug/profile/ |
H A D | CallgrindProfileResult.cpp | 69 CallgrindFunction& function = fFunctions[symbolIndex]; in AddSymbolHit() local 72 CallgrindCalledFunction* calledFunction = function.calledFunctions; in AddSymbolHit() 75 && calledFunction->function == calledSymbol) { in AddSymbolHit() 88 calledFunction->next = function.calledFunctions; in AddSymbolHit() 89 function.calledFunctions = calledFunction; in AddSymbolHit() 94 function.hits++; in AddSymbolHit() 234 CallgrindFunction& function = functions[k]; in PrintResults() local 235 if (function.hits == 0 && function.calledFunctions == NULL) in PrintResults() 240 fprintf(out, "0 %" B_PRId64 " %" B_PRId64 "\n", function.hits, in PrintResults() 241 function.hits * fInterval); in PrintResults() [all …]
|
/haiku/src/add-ons/kernel/busses/pci/designware/ |
H A D | kernel_interface.cpp | 28 uint8 bus, uint8 device, uint8 function, 31 ->ReadConfig(bus, device, function, offset, size, *value); in __anoncc6a7a450302() 34 uint8 bus, uint8 device, uint8 function, 37 ->WriteConfig(bus, device, function, offset, size, value); in __anoncc6a7a450402() 43 uint8 bus, uint8 device, uint8 function, 45 return static_cast<DWPCIController*>(cookie)->ReadIrq(bus, device, function, pin, *irq); in __anoncc6a7a450602() 48 uint8 bus, uint8 device, uint8 function, 50 return static_cast<DWPCIController*>(cookie)->WriteIrq(bus, device, function, pin, irq); in __anoncc6a7a450702()
|
/haiku/src/add-ons/kernel/busses/pci/x86/ |
H A D | kernel_interface.cpp | 28 uint8 bus, uint8 device, uint8 function, 31 ->ReadConfig(bus, device, function, offset, size, *value); in __anond0056b220302() 34 uint8 bus, uint8 device, uint8 function, 37 ->WriteConfig(bus, device, function, offset, size, value); in __anond0056b220402() 43 uint8 bus, uint8 device, uint8 function, 45 return static_cast<X86PCIController*>(cookie)->ReadIrq(bus, device, function, pin, *irq); in __anond0056b220602() 48 uint8 bus, uint8 device, uint8 function, 50 return static_cast<X86PCIController*>(cookie)->WriteIrq(bus, device, function, pin, irq); in __anond0056b220702()
|
/haiku/src/add-ons/kernel/busses/pci/ecam/ |
H A D | kernel_interface.cpp | 29 uint8 bus, uint8 device, uint8 function, 32 ->ReadConfig(bus, device, function, offset, size, *value); in __anone9e7d4f20302() 35 uint8 bus, uint8 device, uint8 function, 38 ->WriteConfig(bus, device, function, offset, size, value); in __anone9e7d4f20402() 44 uint8 bus, uint8 device, uint8 function, 46 return static_cast<ECAMPCIController*>(cookie)->ReadIrq(bus, device, function, pin, *irq); in __anone9e7d4f20602() 49 uint8 bus, uint8 device, uint8 function, 51 return static_cast<ECAMPCIController*>(cookie)->WriteIrq(bus, device, function, pin, irq); in __anone9e7d4f20702()
|
/haiku/src/system/libroot/posix/glibc/math/ |
H A D | complex.h | 63 #define __MATHCALL(function, args) \ argument 64 __MATHDECL (_Mdouble_complex_,function, args) 65 #define __MATHDECL(type, function, args) \ argument 66 __MATHDECL_1(type, function, args); \ 67 __MATHDECL_1(type, __CONCAT(__,function), args) 68 #define __MATHDECL_1(type, function, args) \ argument 69 extern type __MATH_PRECNAME(function) args __THROW
|
/haiku/src/kits/debugger/jobs/ |
H A D | LoadSourceCodeJob.cpp | 56 Function* function = fFunctionInstance->GetFunction(); in Do() local 60 function->SourceFile(), sourceCode); in Do() 65 function->SetSourceCode(sourceCode, FUNCTION_SOURCE_LOADED); in Do() 70 function->SetSourceCode(NULL, FUNCTION_SOURCE_UNAVAILABLE); in Do() 97 if (function->SourceCodeState() == FUNCTION_SOURCE_LOADED) { in Do() 98 FileSourceCode* functionSourceCode = function->GetSourceCode(); in Do() 99 function->SetSourceCode(functionSourceCode, state); in Do()
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | lockf.cpp | 14 lockf(int fileDescriptor, int function, off_t size) in lockf() argument 21 if (function == F_ULOCK) { in lockf() 25 } else if (function == F_LOCK) { in lockf() 29 } else if (function == F_TLOCK) { in lockf() 33 } else if (function == F_TEST) { in lockf()
|
/haiku/headers/private/system/ |
H A D | symbol_versioning.h | 12 # define DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION(function, symbol, version) \ argument 13 B_DEFINE_SYMBOL_VERSION(function, symbol "KERNEL_" version) 15 # define DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION(function, symbol, version) \ argument 16 B_DEFINE_SYMBOL_VERSION(function, symbol "LIBROOT_" version)
|
/haiku/src/system/kernel/scheduler/ |
H A D | scheduler_profiler.cpp | 60 FunctionData* function = _FindFunction(functionName); in EnterFunction() local 61 if (function == NULL) in EnterFunction() 63 atomic_add((int32*)&function->fCalled, 1); in EnterFunction() 71 stackEntry->fFunction = function; in EnterFunction() 224 FunctionData* function = &fFunctionData[i]; in _Dump() local 226 " %8" B_PRId64 " %s\n", function->fCalled, in _Dump() 227 function->fTimeInclusive, in _Dump() 228 function->fTimeInclusive / function->fCalled, in _Dump() 229 function->fTimeExclusive, in _Dump() 230 function->fTimeExclusive / function->fCalled, function->fFunction); in _Dump() [all …]
|