/ohos5.0/drivers/hdf_core/framework/support/platform/src/fwk/ |
H A D | platform_dumper.c | 25 OsalSpinlock spin; member 261 ret = OsalSpinInit(&dumper->spin); in PlatformDumperCreate() 316 (void)OsalSpinLock(&dumper->spin); in PlatformDumperAddData() 318 (void)OsalSpinUnlock(&dumper->spin); in PlatformDumperAddData() 331 (void)OsalSpinLock(&dumper->spin); in PlatformDumperAddDatas() 339 (void)OsalSpinUnlock(&dumper->spin); in PlatformDumperAddDatas() 354 (void)OsalSpinLock(&dumper->spin); in PlatformDumperDelData() 365 (void)OsalSpinUnlock(&dumper->spin); in PlatformDumperDelData() 379 (void)OsalSpinLock(&dumper->spin); in PlatformDumperClearDatas() 413 (void)OsalSpinLock(&dumper->spin); in PlatformDumperSetMethod() [all …]
|
H A D | platform_queue.c | 25 (void)OsalSpinDestroy(&queue->spin); in PlatformQueueDoDestroy() 33 (void)OsalSpinLock(&queue->spin); in PlatformQueueNextMsg() 43 (void)OsalSpinUnlock(&queue->spin); in PlatformQueueNextMsg() 86 (void)OsalSpinInit(&queue->spin); in PlatformQueueCreate() 159 (void)OsalSpinLock(&queue->spin); in PlatformQueueAddMsg() 161 (void)OsalSpinUnlock(&queue->spin); in PlatformQueueAddMsg() 167 (void)OsalSpinUnlock(&queue->spin); in PlatformQueueAddMsg()
|
H A D | platform_event.c | 39 (void)OsalSpinInit(&pe->spin); in PlatformEventInit() 46 (void)OsalSpinLockIrqSave(&pe->spin, &pe->irqSave); in PlatformEventLock() 51 (void)OsalSpinUnlockIrqRestore(&pe->spin, &pe->irqSave); in PlatformEventUnlock() 76 (void)OsalSpinDestroy(&pe->spin); in PlatformEventUninit()
|
H A D | platform_device.c | 119 if ((ret = OsalSpinInit(&device->spin)) != HDF_SUCCESS) { in PlatformDeviceInit() 124 (void)OsalSpinDestroy(&device->spin); in PlatformDeviceInit() 130 (void)OsalSpinDestroy(&device->spin); in PlatformDeviceInit() 149 (void)OsalSpinDestroy(&device->spin); in PlatformDeviceUninit()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/adc/ |
H A D | adc_core.c | 28 OsalSpinlock spin; member 39 return OsalSpinLock(&device->spin); in AdcDeviceLockDefault() 48 (void)OsalSpinUnlock(&device->spin); in AdcDeviceUnlockDefault() 152 if (OsalSpinLockIrq(&manager->spin) != HDF_SUCCESS) { in AdcManagerAddDevice() 165 (void)OsalSpinUnlockIrq(&manager->spin); in AdcManagerAddDevice() 194 (void)OsalSpinUnlockIrq(&manager->spin); in AdcManagerRemoveDevice() 218 (void)OsalSpinUnlockIrq(&manager->spin); in AdcManagerFindDevice() 283 if (OsalSpinInit(&device->spin) != HDF_SUCCESS) { in AdcDeviceAdd() 291 (void)OsalSpinDestroy(&device->spin); in AdcDeviceAdd() 303 (void)OsalSpinDestroy(&device->spin); in AdcDeviceRemove() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/dac/ |
H A D | dac_core.c | 27 OsalSpinlock spin; member 38 return OsalSpinLock(&device->spin); in DacDeviceLockDefault() 47 (void)OsalSpinUnlock(&device->spin); in DacDeviceUnlockDefault() 98 if (OsalSpinLockIrq(&manager->spin) != HDF_SUCCESS) { in DacManagerAddDevice() 111 (void)OsalSpinUnlockIrq(&manager->spin); in DacManagerAddDevice() 144 (void)OsalSpinUnlockIrq(&manager->spin); in DacManagerRemoveDevice() 168 (void)OsalSpinUnlockIrq(&manager->spin); in DacManagerFindDevice() 192 if (OsalSpinInit(&device->spin) != HDF_SUCCESS) { in DacDeviceAdd() 200 (void)OsalSpinDestroy(&device->spin); in DacDeviceAdd() 212 (void)OsalSpinDestroy(&device->spin); in DacDeviceRemove() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_spinlock.c | 40 spinlock_t *spin = NULL; in OsalSpinInit() local 47 spin = (spinlock_t *)OsalMemCalloc(sizeof(*spin)); in OsalSpinInit() 48 if (spin == NULL) { in OsalSpinInit() 54 spin_lock_init(spin); in OsalSpinInit() 55 spinlock->realSpinlock = spin; in OsalSpinInit()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/clock/ |
H A D | clock_core.c | 24 OsalSpinlock spin; member 35 return OsalSpinLock(&device->spin); in ClockDeviceLockDefault() 44 (void)OsalSpinUnlock(&device->spin); in ClockDeviceUnlockDefault() 97 (void)OsalSpinUnlockIrq(&manager->spin); in ClockManagerAddDevice() 126 (void)OsalSpinUnlockIrq(&manager->spin); in ClockManagerRemoveDevice() 136 (void)OsalSpinDestroy(&device->spin); in ClockDeviceRemove() 160 (void)OsalSpinUnlockIrq(&manager->spin); in ClockManagerFindDevice() 183 if (OsalSpinInit(&device->spin) != HDF_SUCCESS) { in ClockDeviceAdd() 191 (void)OsalSpinDestroy(&device->spin); in ClockDeviceAdd() 219 (void)OsalSpinUnlockIrq(&manager->spin); in ClockManagerGetAIdleDeviceId() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/pin/ |
H A D | pin_core.c | 78 OsalSpinInit(&cntlr->spin); in PinCntlrAdd() 96 (void)OsalSpinDestroy(&cntlr->spin); in PinCntlrRemove() 229 (void)OsalSpinLockIrqSave(&cntlr->spin, &g_pinmanager->irqSave); in PinCntlrSetPinPull() 239 (void)OsalSpinUnlockIrqRestore(&cntlr->spin, &g_pinmanager->irqSave); in PinCntlrSetPinPull() 274 (void)OsalSpinLockIrqSave(&cntlr->spin, &g_pinmanager->irqSave); in PinCntlrGetPinPull() 285 (void)OsalSpinUnlockIrqRestore(&cntlr->spin, &g_pinmanager->irqSave); in PinCntlrGetPinPull() 315 (void)OsalSpinLockIrqSave(&cntlr->spin, &g_pinmanager->irqSave); in PinCntlrSetPinStrength() 317 (void)OsalSpinUnlockIrqRestore(&cntlr->spin, &g_pinmanager->irqSave); in PinCntlrSetPinStrength() 352 (void)OsalSpinLockIrqSave(&cntlr->spin, &g_pinmanager->irqSave); in PinCntlrGetPinStrength() 390 (void)OsalSpinLockIrqSave(&cntlr->spin, &g_pinmanager->irqSave); in PinCntlrSetPinFunc() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/ |
H A D | rs_render_particle_test.cpp | 66 RenderParticleParaType<float> spin; in SetUp() local 67 …e_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); in SetUp() 145 RenderParticleParaType<float> spin; variable 146 …e_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); 183 RenderParticleParaType<float> spin; variable 184 …e_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); 224 RenderParticleParaType<float> spin; variable 225 …e_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin);
|
H A D | rs_render_particle_effector_test.cpp | 234 RenderParticleParaType<float> spin = variable 237 …hared<ParticleRenderParams>(emitterConfig_, velocity_, acceleration_, color, opacity, scale, spin); 277 RenderParticleParaType<float> spin; variable 299 …e_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); 322 RenderParticleParaType<float> spin; variable 337 …_shared<ParticleRenderParams>(emitterConfig_, velocity, acceleration, color, opacity, scale, spin); 374 RenderParticleParaType<float> spin; variable 398 …_shared<ParticleRenderParams>(emitterConfig_, velocity, acceleration, color, opacity, scale, spin);
|
H A D | rs_render_particle_animation_test.cpp | 67 RenderParticleParaType<float> spin; in SetUp() local 68 …e_shared<ParticleRenderParams>(emitterConfig, velocity, acceleration, color, opacity, scale, spin); in SetUp() 83 …_shared<ParticleRenderParams>(emitterConfig1, velocity, acceleration, color, opacity, scale, spin); in SetUp() 91 …_shared<ParticleRenderParams>(emitterConfig2, velocity, acceleration, color, opacity, scale, spin); in SetUp()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/can/ |
H A D | can_mail.h | 24 OsalSpinlock spin; member 33 (void)OsalSpinLock(&rbox->spin); in CanRxBoxLock() 38 (void)OsalSpinUnlock(&rbox->spin); in CanRxBoxUnlock()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/ |
H A D | osal_all_test.c | 644 OSAL_DECLARE_SPINLOCK(spin); in OsaSpinTest() 647 (void)memset_s(&spin, sizeof(spin), 0, sizeof(spin)); in OsaSpinTest() 648 ret = OsalSpinInit(&spin); in OsaSpinTest() 651 ret = OsalSpinLock(&spin); in OsaSpinTest() 653 ret = OsalSpinUnlock(&spin); in OsaSpinTest() 656 ret = OsalSpinLockIrq(&spin); in OsaSpinTest() 658 ret = OsalSpinUnlockIrq(&spin); in OsaSpinTest() 661 ret = OsalSpinLockIrqSave(&spin, &flag); in OsaSpinTest() 663 ret = OsalSpinUnlockIrqRestore(&spin, &flag); in OsaSpinTest() 666 ret = OsalSpinDestroy(&spin); in OsaSpinTest()
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/osal/ |
H A D | osal_all_test.c | 878 OSAL_DECLARE_SPINLOCK(spin); in OsaSpinTest() 881 (void)memset_s(&spin, sizeof(spin), 0, sizeof(spin)); in OsaSpinTest() 882 ret = OsalSpinInit(&spin); in OsaSpinTest() 885 ret = OsalSpinLock(&spin); in OsaSpinTest() 887 ret = OsalSpinUnlock(&spin); in OsaSpinTest() 890 ret = OsalSpinLockIrq(&spin); in OsaSpinTest() 892 ret = OsalSpinUnlockIrq(&spin); in OsaSpinTest() 900 ret = OsalSpinDestroy(&spin); in OsaSpinTest() 904 ret = OsalSpinLock(&spin); in OsaSpinTest() 906 ret = OsalSpinUnlock(&spin); in OsaSpinTest() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/gpio/ |
H A D | gpio_core.c | 23 (void)OsalSpinLockIrqSave(&ginfo->spin, &ginfo->irqSave); in GpioInfoLock() 32 (void)OsalSpinUnlockIrqRestore(&ginfo->spin, &ginfo->irqSave); in GpioInfoUnlock() 165 (void)OsalSpinLockIrqSave(&irqRecord->spin, &irqSave); in GpioCntlrIrqThreadHandler() 166 (void)OsalSpinUnlockIrqRestore(&irqRecord->spin, &irqSave); // last post done in GpioCntlrIrqThreadHandler() 169 (void)OsalSpinDestroy(&irqRecord->spin); in GpioCntlrIrqThreadHandler() 230 (void)OsalSpinInit(&irqRecord->spin); in GpioIrqRecordCreate() 238 (void)OsalSpinDestroy(&irqRecord->spin); in GpioIrqRecordCreate()
|
H A D | gpio_manager.c | 134 (void)OsalSpinInit(&cntlr->ginfos[i].spin); in GpioCntlrCreateGpioInfos() 141 (void)OsalSpinDestroy(&cntlr->ginfos[i].spin); in GpioCntlrCreateGpioInfos() 160 (void)OsalSpinDestroy(&cntlr->ginfos[i].spin); in GpioCntlrDestroyGpioInfos()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_particles_drawable.cpp | 66 Drawing::RSXform RSParticlesDrawable::MakeRSXform(Vector2f center, Vector2f position, float spin, f… in MakeRSXform() argument 68 float cos = std::cos(spin * DEGREE_TO_RADIAN) * scale; in MakeRSXform() 69 float sin = std::sin(spin * DEGREE_TO_RADIAN) * scale; in MakeRSXform() 114 auto spin = particle->GetSpin(); in CaculateImageAtlsArry() local 128 …akeRSXform(Vector2f(pixelmap->GetWidth() / DOUBLE, pixelmap->GetHeight() / DOUBLE), position, spin, in CaculateImageAtlsArry() 149 auto spin = particle->GetSpin(); in DrawImageFill() local 156 canvas.Rotate(spin, imageSize.x_ * scale / DOUBLE, imageSize.y_ * scale / DOUBLE); in DrawImageFill()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/gpio/ |
H A D | gpio_core.h | 57 OsalSpinlock spin; member 83 OsalSpinlock spin; member 106 (void)OsalSpinLockIrqSave(&irqRecord->spin, &irqSave); in GpioIrqRecordDestroy() 109 (void)OsalSpinUnlockIrqRestore(&irqRecord->spin, &irqSave); in GpioIrqRecordDestroy()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/include/pcie/ |
H A D | pcie_core.h | 45 OsalSpinlock spin; member 59 (void)OsalSpinLock(&cntlr->spin); in PcieCntlrLock() 66 (void)OsalSpinUnlock(&cntlr->spin); in PcieCntlrUnlock()
|
/ohos5.0/foundation/resourceschedule/ffrt/src/sync/ |
H A D | sync.cpp | 55 static void spin() in spin() function 72 spin(); in lock_contended()
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | i3c_virtual.c | 24 OsalSpinlock spin; member 356 (void)OsalSpinInit(&virtual->spin); in VirtualI3cParseAndInit() 360 (void)OsalSpinDestroy(&virtual->spin); in VirtualI3cParseAndInit() 414 (void)OsalSpinDestroy(&virtual->spin); in VirtualI3cRemoveByNode()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_particle_effector.cpp | 192 auto spin = particle->GetSpin(); in UpdateSpin() local 198 spin += spinSpeed * deltaTime; in UpdateSpin() 202 UpdateCurveValue(spin, valChangeOverLife, activeTime); in UpdateSpin() 205 particle->SetSpin(spin); in UpdateSpin()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/can/ |
H A D | can_mail.c | 41 (void)OsalSpinInit(&rbox->spin); in CanRxBoxCreate() 51 OsalSpinDestroy(&rbox->spin); in CanRxBoxDestroy()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-platform-i2c-develop.md | 253 OsalSpinlock spin; // 【必要】驱动适配者需要基于此锁变量对各个i2c操作函数实现对应的加锁解锁。 339 (void)OsalSpinInit(&hi35xx->spin); // 【必要】锁的初始化 394 (void)OsalSpinDestroy(&hi35xx->spin);
|