Home
last modified time | relevance | path

Searched refs:stub (Results 1 - 25 of 195) sorted by relevance

12345678

/third_party/mesa3d/src/mapi/
H A Dstub.c36 #include "stub.h"
65 const struct mapi_stub *stub = (const struct mapi_stub *) elem; in stub_compare() local
68 stub_name = &public_string_pool[(size_t) stub->name]; in stub_compare()
74 * Return the public stub with the given name.
84 * Add a dynamic stub.
89 struct mapi_stub *stub; in stub_add_dynamic() local
97 stub = &dynamic_stubs[idx]; in stub_add_dynamic()
100 stub->addr = entry_generate( in stub_add_dynamic()
102 if (!stub->addr) in stub_add_dynamic()
105 stub in stub_add_dynamic()
122 struct mapi_stub *stub = NULL; stub_find_dynamic() local
162 const struct mapi_stub *stub = stub_find_by_slot() local
170 stub_fix_dynamic(struct mapi_stub *stub, const struct mapi_stub *alias) stub_fix_dynamic() argument
190 stub_get_name(const struct mapi_stub *stub) stub_get_name() argument
207 stub_get_slot(const struct mapi_stub *stub) stub_get_slot() argument
216 stub_get_addr(const struct mapi_stub *stub) stub_get_addr() argument
[all...]
H A Dmapi_glapi.c34 #include "stub.h"
78 * Fill-in the dispatch stub for the named function.
81 * a dispatch stub may be created created for the function. A pointer to this
125 const struct mapi_stub *stub; in _glapi_add_dispatch() local
132 stub = stub_find_public(funcName); in _glapi_add_dispatch()
133 if (!stub) in _glapi_add_dispatch()
134 stub = stub_find_dynamic(funcName, 0); in _glapi_add_dispatch()
136 slot = (stub) ? stub_get_slot(stub) : -1; in _glapi_add_dispatch()
140 /* use the first existing stub a in _glapi_add_dispatch()
151 struct mapi_stub *stub; _glapi_add_dispatch() local
180 const struct mapi_stub *stub; _glapi_get_stub() local
207 const struct mapi_stub *stub = _glapi_get_stub(funcName, 0); _glapi_get_proc_offset() local
219 const struct mapi_stub *stub = _glapi_get_stub(funcName, 1); _glapi_get_proc_address() local
230 const struct mapi_stub *stub = stub_find_by_slot(offset); _glapi_get_proc_name() local
[all...]
H A Dstub.h48 stub_fix_dynamic(struct mapi_stub *stub, const struct mapi_stub *alias);
51 stub_get_name(const struct mapi_stub *stub);
54 stub_get_slot(const struct mapi_stub *stub);
57 stub_get_addr(const struct mapi_stub *stub);
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
H A Di915_gem_fence.c18 struct stub_fence *stub = container_of(fence, typeof(*stub), chain); in stub_notify() local
22 dma_fence_signal(&stub->dma); in stub_notify()
26 dma_fence_put(&stub->dma); in stub_notify()
45 struct stub_fence *stub = container_of(fence, typeof(*stub), dma); in stub_release() local
47 i915_sw_fence_fini(&stub->chain); in stub_release()
49 BUILD_BUG_ON(offsetof(typeof(*stub), dma)); in stub_release()
50 dma_fence_free(&stub->dma); in stub_release()
62 struct stub_fence *stub; in i915_gem_object_lock_fence() local
92 struct stub_fence *stub = container_of(fence, typeof(*stub), dma); i915_gem_object_unlock_fence() local
[all...]
/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevsvc_manager_stub.c97 static bool CheckServiceObjectValidNoLock(const struct DevSvcManagerStub *stub, const struct HdfDeviceObject *service) in CheckServiceObjectValidNoLock() argument
105 HdfSListIteratorInit(&it, &stub->devObjHolderList); in CheckServiceObjectValidNoLock()
122 static bool CheckRemoteObjectValidNoLock(const struct DevSvcManagerStub *stub, const struct HdfRemoteService *service) in CheckRemoteObjectValidNoLock() argument
130 HdfSListIteratorInit(&it, &stub->devObjHolderList); in CheckRemoteObjectValidNoLock()
146 static void ReleaseServiceObjectHolder(struct DevSvcManagerStub *stub, struct HdfDeviceObjectHolder *devObjHolder) in ReleaseServiceObjectHolder() argument
151 HdfRemoteServiceRemoveDeathRecipient(serviceRemote, &stub->recipient); in ReleaseServiceObjectHolder()
163 struct DevSvcManagerStub *stub, const char *name, struct HdfRemoteService *service) in ObtainServiceObject()
187 OsalMutexLock(&stub->devSvcStubMutex); in ObtainServiceObject()
188 HdfSListAdd(&stub->devObjHolderList, &serviceObjectHolder->entry); in ObtainServiceObject()
189 OsalMutexUnlock(&stub in ObtainServiceObject()
162 ObtainServiceObject( struct DevSvcManagerStub *stub, const char *name, struct HdfRemoteService *service) ObtainServiceObject() argument
196 ReleaseServiceObject(struct DevSvcManagerStub *stub, struct HdfDeviceObject *serviceObject) ReleaseServiceObject() argument
257 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubAddService() local
288 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubUpdateService() local
325 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubGetService() local
374 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubListAllService() local
392 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubListServiceByInterfaceDesc() local
413 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubRemoveService() local
461 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubRegisterServListener() local
494 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)super; DevSvcManagerStubUnregisterServListener() local
519 struct DevSvcManagerStub *stub = (struct DevSvcManagerStub *)service; DevSvcManagerStubDispatch() local
562 struct DevSvcManagerStub *stub = DevSvcManagerOnServiceDied() local
673 DevObjHolderListReleaseNoLock(struct DevSvcManagerStub *stub) DevObjHolderListReleaseNoLock() argument
[all...]
/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dservstat_listener.c34 struct ServstatListenerStub *stub = (struct ServstatListenerStub *)remote; in ServstatListenerStubRemoteDispatch() local
40 if (!HdfRemoteServiceCheckInterfaceToken(stub->remote, data)) { in ServstatListenerStubRemoteDispatch()
49 if (stub->listener.callback != NULL) { in ServstatListenerStubRemoteDispatch()
50 stub->listener.callback(&stub->listener, &status); in ServstatListenerStubRemoteDispatch()
71 struct ServstatListenerStub *stub = OsalMemCalloc(sizeof(struct ServstatListenerStub)); in HdiServiceStatusListenerNewInstance() local
72 if (stub == NULL) { in HdiServiceStatusListenerNewInstance()
79 stub->remote = HdfRemoteServiceObtain((struct HdfObject *)stub, &remoteDispatch); in HdiServiceStatusListenerNewInstance()
80 if (stub in HdiServiceStatusListenerNewInstance()
99 struct ServstatListenerStub *stub = CONTAINER_OF(listener, struct ServstatListenerStub, listener); HdiServiceStatusListenerFree() local
[all...]
H A Dstub_collector.cpp34 HDF_LOGE("repeat registration stub constructor for if %{public}s", ifDesc); in StubConstructorRegister()
58 auto stub = g_stubMap.find(servPtr); in StubCollectorGetOrNewObject() local
59 if (stub != g_stubMap.end()) { in StubCollectorGetOrNewObject()
60 return stub->second; in StubCollectorGetOrNewObject()
71 HDF_LOGE("no stub constructor for %{public}s", ifDesc); in StubCollectorGetOrNewObject()
76 HDF_LOGE("no stub constructor method for %{public}s", ifDesc); in StubCollectorGetOrNewObject()
82 HDF_LOGE("failed to construct stub obj %{public}s", ifDesc); in StubCollectorGetOrNewObject()
96 auto stub = g_stubMap.find(servPtr); in StubCollectorRemoveObject() local
97 if (stub == g_stubMap.end()) { in StubCollectorRemoveObject()
103 HDF_LOGE("no stub constructo in StubCollectorRemoveObject()
[all...]
/drivers/peripheral/codec/hal/src/
H A Dcodec_callback_type_stub.c253 struct CodecCallbackTypeStub *stub in CodecCallbackTypeStubGetInstance() local
255 if (stub == NULL) { in CodecCallbackTypeStubGetInstance()
260 stub->dispatcher.Dispatch = CodecCallbackTypeServiceOnRemoteRequest; in CodecCallbackTypeStubGetInstance()
261 stub->service.remote = HdfRemoteServiceObtain((struct HdfObject*)stub, &(stub->dispatcher)); in CodecCallbackTypeStubGetInstance()
262 if (stub->service.remote == NULL) { in CodecCallbackTypeStubGetInstance()
263 CODEC_LOGE("stub->service.remote is null"); in CodecCallbackTypeStubGetInstance()
264 OsalMemFree(stub); in CodecCallbackTypeStubGetInstance()
268 if (!HdfRemoteServiceSetInterfaceDesc(stub in CodecCallbackTypeStubGetInstance()
299 struct CodecCallbackTypeStub *stub = CONTAINER_OF(instance, struct CodecCallbackTypeStub, service); CodecCallbackTypeStubRelease() local
[all...]
H A Dcodec_component_type_stub.c822 struct CodecComponentTypeStub *stub = CONTAINER_OF(self, struct CodecComponentTypeStub, interface); in CodecComponentTypeAsObject() local
823 if (stub == NULL) { in CodecComponentTypeAsObject()
826 return stub->remote; in CodecComponentTypeAsObject()
829 bool CodecComponentTypeStubConstruct(struct CodecComponentTypeStub *stub) in CodecComponentTypeStubConstruct() argument
831 if (stub == NULL) { in CodecComponentTypeStubConstruct()
832 CODEC_LOGE("stub is null!"); in CodecComponentTypeStubConstruct()
836 stub->dispatcher.Dispatch = CodecComponentTypeServiceOnRemoteRequest; in CodecComponentTypeStubConstruct()
837 stub->remote = HdfRemoteServiceObtain((struct HdfObject *)stub, &(stub in CodecComponentTypeStubConstruct()
853 CodecComponentTypeStubRelease(struct CodecComponentTypeStub *stub) CodecComponentTypeStubRelease() argument
[all...]
/third_party/node/test/parallel/
H A Dtest-dns-lookup-promises.js8 // Stub `getaddrinfo` to proxy its call dynamic stub. This has to be done before
9 // we load the `dns` module to guarantee that the `dns` module uses the stub.
36 stub: getaddrinfoPositive(['::1']),
41 stub: getaddrinfoPositive(['127.0.0.1']),
46 stub: getaddrinfoPositive(['127.0.0.1'], { family: 4 }),
51 stub: getaddrinfoPositive(['some-address']),
56 stub: getaddrinfoPositive(['some-address2']),
60 ].forEach(async ({ stub, factory, expectation }) => {
61 getaddrinfoStub = stub;
79 stub
[all...]
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/test/
H A Dtest_corpus.js20 sandbox.stub(exceptions, 'getSoftSkipped').callsFake(() => {
34 sandbox.stub(Math, 'random').callsFake(() => 0.9);
44 sandbox.stub(Math, 'random').callsFake(() => 0.9);
52 sandbox.stub(Math, 'random').callsFake(() => 0.9);
60 sandbox.stub(Math, 'random').callsFake(() => 0.9);
69 sandbox.stub(exceptions, 'getGeneratedSoftSkipped').callsFake(
81 sandbox.stub(Math, 'random').callsFake(() => 0);
91 sandbox.stub(Math, 'random').callsFake(() => 0);
92 sandbox.stub(exceptions, 'getSoftSkipped').callsFake(
97 sandbox.stub(exception
[all...]
H A Dtest_try_catch.js40 sandbox.stub(random, 'choose').callsFake(() => { return false; });
41 sandbox.stub(random, 'random').callsFake(() => { return 0.7; });
47 sandbox.stub(random, 'choose').callsFake(() => { return false; });
48 sandbox.stub(random, 'random').callsFake(() => { return 0.04; });
60 sandbox.stub(random, 'choose').callsFake(() => { return false; });
61 sandbox.stub(random, 'random').callsFake(() => { return 0.01; });
74 sandbox.stub(random, 'choose').callsFake(() => { return true; });
75 sandbox.stub(random, 'uniform').callsFake(() => { return 0.9; });
76 sandbox.stub(random, 'random').callsFake(() => { return 0.8; });
H A Dtest_mutate_expressions.js41 sandbox.stub(random, 'randInt').callsFake((a, b) => b);
43 sandbox.stub(random, 'random').callsFake(() => 0.8);
52 sandbox.stub(random, 'shuffle').callsFake(a => a);
54 sandbox.stub(random, 'choose').callsFake(a => a === 1);
61 sandbox.stub(random, 'shuffle').callsFake(a => [a[1], a[0]]);
63 sandbox.stub(random, 'choose').callsFake(() => true);
/kernel/linux/linux-5.10/mm/
H A Dreclaim_acct.c32 enum reclaimacct_stubs stub, const struct shrinker *shrinker) in __reclaimacct_end()
36 start = ra->start[stub]; in __reclaimacct_end()
43 ra->delay[stub] += delay; in __reclaimacct_end()
44 ra->count[stub]++; in __reclaimacct_end()
45 ra->freed[stub] += freed; in __reclaimacct_end()
49 pr_warn_ratelimited("%s timeout:%llu\n", stub_name[stub], delay); in __reclaimacct_end()
67 void reclaimacct_substage_start(enum reclaimacct_stubs stub) in reclaimacct_substage_start() argument
72 current->reclaim_acct->start[stub] = ktime_get_ns(); in reclaimacct_substage_start()
75 void reclaimacct_substage_end(enum reclaimacct_stubs stub, unsigned long freed, in reclaimacct_substage_end() argument
81 __reclaimacct_end(current->reclaim_acct, freed, stub, shrinke in reclaimacct_substage_end()
31 __reclaimacct_end(struct reclaim_acct *ra, u64 freed, enum reclaimacct_stubs stub, const struct shrinker *shrinker) __reclaimacct_end() argument
[all...]
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/
H A DMakefile3 # The stub may be linked into the kernel proper or into a separate boot binary,
47 # stub code never touches, so let's turn off struct randomization for the stub
70 lib-y := efi-stub-helper.o gop.o secureboot.o tpm.o \
75 # include the stub's libfdt dependencies from lib/ when needed
85 lib-$(CONFIG_EFI_GENERIC_STUB) += efi-stub.o string.o intrinsics.o systable.o \
86 screen_info.o efi-stub-entry.o
88 lib-$(CONFIG_ARM) += arm32-stub.o
89 lib-$(CONFIG_ARM64) += kaslr.o arm64.o arm64-stub.o smbios.o
90 lib-$(CONFIG_X86) += x86-stub
[all...]
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
H A DMakefile3 # The stub may be linked into the kernel proper or into a separate boot binary,
44 # stub code never touches, so let's turn off struct randomization for the stub
64 lib-y := efi-stub-helper.o gop.o secureboot.o tpm.o \
69 # include the stub's libfdt dependencies from lib/ when needed
79 lib-$(CONFIG_EFI_GENERIC_STUB) += efi-stub.o string.o
81 lib-$(CONFIG_ARM) += arm32-stub.o
82 lib-$(CONFIG_ARM64) += arm64-stub.o
83 lib-$(CONFIG_X86) += x86-stub.o
84 lib-$(CONFIG_RISCV) += riscv-stub
[all...]
/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Dmodule.c13 * - PLT stub handling
16 * fail to reach their PLT stub if we only create one big stub array for
18 * Instead we now insert individual PLT stub entries directly in front of
20 * This reduces the distance between the PCREL location and the stub entry
104 Elf32_Word insns[2]; /* each stub entry has two insns */
112 Elf64_Word insns[4]; /* each stub entry has four insns */
424 struct stub_entry *stub; in get_stub() local
436 /* get address of stub entry */ in get_stub()
437 stub in get_stub()
[all...]
/kernel/linux/linux-6.6/arch/parisc/kernel/
H A Dmodule.c13 * - PLT stub handling
16 * fail to reach their PLT stub if we only create one big stub array for
18 * Instead we now insert individual PLT stub entries directly in front of
20 * This reduces the distance between the PCREL location and the stub entry
85 Elf32_Word insns[2]; /* each stub entry has two insns */
93 Elf64_Word insns[4]; /* each stub entry has four insns */
407 struct stub_entry *stub; in get_stub() local
419 /* get address of stub entry */ in get_stub()
420 stub in get_stub()
[all...]
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/
H A Daudio_driver.cpp33 OHOS::sptr<OHOS::IRemoteObject> stub; member
58 if (hdfAudioManagerHost == NULL || hdfAudioManagerHost->stub == NULL) { in AudioManagerDriverDispatch()
62 return hdfAudioManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in AudioManagerDriverDispatch()
99 hdfAudioManagerHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfAudioManagerDriverBind()
101 if (hdfAudioManagerHost->stub == nullptr) { in HdfAudioManagerDriverBind()
102 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfAudioManagerDriverBind()
121 hdfAudioManagerHost->stub = nullptr; in HdfAudioManagerDriverRelease()
/drivers/peripheral/distributed_audio/hdi_service/audio_ext/v1_0/src/
H A Ddaudio_manager_driver.cpp31 OHOS::sptr<OHOS::IRemoteObject> stub; member
56 if (hdfDAudioManagerHost == NULL || hdfDAudioManagerHost->stub == NULL) { in DAudioManagerDriverDispatch()
60 return hdfDAudioManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in DAudioManagerDriverDispatch()
95 hdfDAudioManagerHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfDAudioManagerDriverBind()
97 if (hdfDAudioManagerHost->stub == nullptr) { in HdfDAudioManagerDriverBind()
98 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfDAudioManagerDriverBind()
118 hdfDAudioManagerHost->stub = nullptr; in HdfDAudioManagerDriverRelease()
/drivers/peripheral/distributed_camera/hdi_service/src/config/
H A Ddcamera_provider_config.cpp33 OHOS::sptr<OHOS::IRemoteObject> stub; member
58 if (hdfDCameraProviderHost == NULL || hdfDCameraProviderHost->stub == NULL) { in DCameraProviderDriverDispatch()
62 return hdfDCameraProviderHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in DCameraProviderDriverDispatch()
101 hdfDCameraProviderHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfDCameraProviderDriverBind()
103 if (hdfDCameraProviderHost->stub == nullptr) { in HdfDCameraProviderDriverBind()
104 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfDCameraProviderDriverBind()
124 hdfDCameraProviderHost->stub = nullptr; in HdfDCameraProviderDriverRelease()
H A Ddcamera_host_config.cpp33 OHOS::sptr<OHOS::IRemoteObject> stub; member
58 if (hdfCameraHostHost == NULL || hdfCameraHostHost->stub == NULL) { in CameraHostDriverDispatch()
62 return hdfCameraHostHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in CameraHostDriverDispatch()
101 hdfCameraHostHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfCameraHostDriverBind()
103 if (hdfCameraHostHost->stub == nullptr) { in HdfCameraHostDriverBind()
104 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfCameraHostDriverBind()
124 hdfCameraHostHost->stub = nullptr; in HdfCameraHostDriverRelease()
/drivers/peripheral/intelligent_voice/hdi_service/trigger/
H A Dintell_voice_trigger_driver.cpp33 OHOS::sptr<OHOS::IRemoteObject> stub; member
60 if ((hdfIntellVoiceTriggerManagerHost == nullptr) || (hdfIntellVoiceTriggerManagerHost->stub == nullptr)) { in IntellVoiceTriggerManagerDriverDispatch()
65 return hdfIntellVoiceTriggerManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in IntellVoiceTriggerManagerDriverDispatch()
99 hdfIntellVoiceTriggerManagerHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfIntellVoiceTriggerManagerDriverBind()
101 if (hdfIntellVoiceTriggerManagerHost->stub == nullptr) { in HdfIntellVoiceTriggerManagerDriverBind()
102 INTELLIGENT_VOICE_LOGE("failed to get stub object"); in HdfIntellVoiceTriggerManagerDriverBind()
123 hdfIntellVoiceTriggerManagerHost->stub = nullptr; in HdfIntellVoiceTriggerManagerDriverRelease()
/drivers/peripheral/intelligent_voice/hdi_service/engine/
H A Dintell_voice_engine_driver.cpp31 OHOS::sptr<OHOS::IRemoteObject> stub; member
58 if ((hdfIntellVoiceEngineManagerHost == nullptr) || (hdfIntellVoiceEngineManagerHost->stub == nullptr)) { in IntellVoiceEngineManagerDriverDispatch()
63 return hdfIntellVoiceEngineManagerHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in IntellVoiceEngineManagerDriverDispatch()
97 hdfIntellVoiceEngineManagerHost->stub = OHOS::HDI::ObjectCollector::GetInstance().GetOrNewObject(serviceImpl, in HdfIntellVoiceEngineManagerDriverBind()
99 if (hdfIntellVoiceEngineManagerHost->stub == nullptr) { in HdfIntellVoiceEngineManagerDriverBind()
100 INTELLIGENT_VOICE_LOGE("failed to get stub object"); in HdfIntellVoiceEngineManagerDriverBind()
121 hdfIntellVoiceEngineManagerHost->stub = nullptr; in HdfIntellVoiceEngineManagerDriverRelease()
/drivers/peripheral/usb/hdi_service/src/
H A Dusb_interface_driver.cpp33 OHOS::sptr<OHOS::IRemoteObject> stub; member
57 if (hdfUsbInterfaceHost == nullptr || hdfUsbInterfaceHost->stub == nullptr) { in UsbInterfaceDriverDispatch()
58 HDF_LOGE("%{public}s:host or stub are nullptr", __func__); in UsbInterfaceDriverDispatch()
61 return hdfUsbInterfaceHost->stub->SendRequest(cmdId, *dataParcel, *replyParcel, option); in UsbInterfaceDriverDispatch()
97 hdfUsbInterfaceHost->stub = in HdfUsbInterfaceDriverBind()
100 if (hdfUsbInterfaceHost->stub == nullptr) { in HdfUsbInterfaceDriverBind()
101 HDF_LOGE("%{public}s: failed to get stub object", __func__); in HdfUsbInterfaceDriverBind()
112 hdfUsbInterfaceHost->stub = nullptr; in HdfUsbInterfaceDriverBind()

Completed in 12 milliseconds

12345678