/ohos5.0/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | hdf_dlist.h | 172 #define CONTAINER_OF(ptr, type, member) \ macro 185 CONTAINER_OF((ptr)->next, type, member) 197 CONTAINER_OF((ptr)->prev, type, member) 210 for ((pos) = CONTAINER_OF((head)->next, type, member); \ 212 (pos) = CONTAINER_OF((pos)->member.next, type, member)) 216 for ((pos) = CONTAINER_OF((head)->prev, type, member); \ 218 (pos) = CONTAINER_OF((pos)->member.prev, type, member)) 233 for ((pos) = CONTAINER_OF((head)->next, type, member), \ 234 (tmp) = CONTAINER_OF((pos)->member.next, type, member); \ 236 (pos) = (tmp), (tmp) = CONTAINER_OF((pos)->member.next, type, member))
|
/ohos5.0/drivers/hdf_core/framework/core/host/src/ |
H A D | hdf_device_object.c | 190 struct HdfDeviceNode *parentDevNode = CONTAINER_OF(parent, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectAlloc() 220 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectRelease() 234 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectRegister() 260 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectUnRegister() 271 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectPublishService() 303 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectRemoveService() 316 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectSetServInfo() 329 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectUpdate() 340 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectSetInterfaceDesc()
|
H A D | hdf_device.c | 112 device = CONTAINER_OF(devInst, struct HdfDevice, super); in HdfDeviceDetach() 132 struct HdfDevice *dev = CONTAINER_OF(device, struct HdfDevice, super); in HdfDeviceGetDeviceNode() 143 struct HdfDevice *dev = CONTAINER_OF(device, struct HdfDevice, super); in HdfDeviceDetachWithDevid()
|
/ohos5.0/drivers/hdf_core/framework/core/shared/src/ |
H A D | svcmgr_ioservice.c | 60 struct SvcMgrIoservice *svcmgrInst = CONTAINER_OF(self, struct SvcMgrIoservice, svcmgr); in SvcMgrIoserviceRegSvcStatListener() 62 = CONTAINER_OF(listener, struct IoServiceStatusListener, svcstatListener); in SvcMgrIoserviceRegSvcStatListener() 80 struct SvcMgrIoservice *svcmgrInst = CONTAINER_OF(self, struct SvcMgrIoservice, svcmgr); in SvcMgrIoserviceUnRegSvcStatListener() 82 = CONTAINER_OF(listener, struct IoServiceStatusListener, svcstatListener); in SvcMgrIoserviceUnRegSvcStatListener() 124 struct SvcMgrIoservice *svcmgrInst = CONTAINER_OF(svcmgr, struct SvcMgrIoservice, svcmgr); in SvcMgrIoserviceRelease()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/gpio/ |
H A D | gpio_manager.c | 29 cntlrCur = CONTAINER_OF(iterCur, struct GpioCntlr, device); in GpioCntlrCheckStart() 30 cntlrLast = CONTAINER_OF(iterLast, struct GpioCntlr, device); in GpioCntlrCheckStart() 64 struct GpioCntlr *cntlr = CONTAINER_OF(device, struct GpioCntlr, device); in GpioManagerAdd() 220 struct GpioCntlr *cntlr = CONTAINER_OF(device, struct GpioCntlr, device); in GpioCntlrFindMatch() 244 return CONTAINER_OF(device, struct GpioCntlr, device); in GpioCntlrGetByGpio() 253 cntlr = CONTAINER_OF(device, struct GpioCntlr, device); in GpioCntlrFindMatchByName() 283 return CONTAINER_OF(device, struct GpioCntlr, device); in GpioCntlrGetByGpioName()
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | servmgr_client.c | 80 …struct HDIServiceManagerClient *servMgrClient = CONTAINER_OF(iServMgr, struct HDIServiceManagerCli… in HDIServMgrListServiceByInterfaceDesc() 127 …struct HDIServiceManagerClient *servMgrClient = CONTAINER_OF(iServMgr, struct HDIServiceManagerCli… in HDIServMgrGetService() 163 …struct HDIServiceManagerClient *servMgrClient = CONTAINER_OF(self, struct HDIServiceManagerClient,… in HDIServMgrRegisterServiceStatusListener() 191 …struct HDIServiceManagerClient *servMgrClient = CONTAINER_OF(self, struct HDIServiceManagerClient,… in HDIServMgrUnregisterServiceStatusListener() 250 …struct HDIServiceManagerClient *iServMgrClient = CONTAINER_OF(servmgr, struct HDIServiceManagerCli… in HDIServiceManagerRelease()
|
H A D | servstat_listener.c | 62 …struct ServstatListenerStub *listenerStub = CONTAINER_OF(listener, struct ServstatListenerStub, li… in ServiceStatusListenerMarshalling() 99 … struct ServstatListenerStub *stub = CONTAINER_OF(listener, struct ServstatListenerStub, listener); in HdiServiceStatusListenerFree()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/model/camera/src/ |
H A D | camera_buffer_manager_adapter.c | 90 struct BufferQueueImp *queueImp = CONTAINER_OF(queue, struct BufferQueueImp, queue); in MemoryAdapterQueueImpInit() 100 struct BufferQueueImp *queueImp = CONTAINER_OF(queue, struct BufferQueueImp, queue); in MemoryAdapterDriverMutexLock() 110 struct BufferQueueImp *queueImp = CONTAINER_OF(queue, struct BufferQueueImp, queue); in MemoryAdapterDriverMutexUnLock()
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/can/ |
H A D | can_msg.c | 69 holder = CONTAINER_OF(msg, struct CanMsgHolder, cmsg); in CanMsgGet() 81 holder = CONTAINER_OF(msg, struct CanMsgHolder, cmsg); in CanMsgPut() 98 holder = CONTAINER_OF(sref, struct CanMsgHolder, ref); in CanMsgHolderOnLastPut()
|
/ohos5.0/base/tee/tee_client/services/tlogcat/src/ |
H A D | proc_tag.c | 59 tagInfo = CONTAINER_OF(ptr, struct TaTagInfo, taTagNode); in QueryTaTagNode() 79 tagInfo = CONTAINER_OF(ptr, struct DriverTagInfo, tagNode); in QueryDriverTagNode() 291 taTagInfo = CONTAINER_OF(node, struct TaTagInfo, taTagNode); in FreeTaTagNode() 315 tagInfo = CONTAINER_OF(node, struct DriverTagInfo, tagNode); in FreeDriverTagNode()
|
/ohos5.0/drivers/peripheral/display/hdi_service/gralloc/server/ |
H A D | allocator_host.cpp | 30 HdfAllocatorService *allocatorService = CONTAINER_OF( in AllocatorServiceDispatch() 62 …HdfAllocatorService *allocatorService = CONTAINER_OF(deviceObject->service, HdfAllocatorService, i… in HdfAllocatorDriverRelease()
|
/ohos5.0/drivers/hdf_core/framework/core/adapter/syscall/src/ |
H A D | hdf_syscall_adapter.c | 867 struct HdfSyscallAdapter *adapter = CONTAINER_OF(target, struct HdfSyscallAdapter, super); in HdfDeviceRegisterEventListenerWithSchedPolicy() 946 …struct HdfSyscallAdapterGroup *adapterGroup = CONTAINER_OF(group, struct HdfSyscallAdapterGroup, s… in HdfIoServiceGroupRecycle() 981 …struct HdfSyscallAdapterGroup *adapterGroup = CONTAINER_OF(group, struct HdfSyscallAdapterGroup, s… in HdfIoServiceGroupRegisterListenerWithSchedPolicy() 1059 …struct HdfSyscallAdapterGroup *adapterGroup = CONTAINER_OF(group, struct HdfSyscallAdapterGroup, s… in HdfIoServiceGroupUnregisterListener() 1081 struct HdfSyscallAdapter *adapter = CONTAINER_OF(service, struct HdfSyscallAdapter, super); in HdfIoServiceGroupAddService() 1082 …struct HdfSyscallAdapterGroup *adapterGroup = CONTAINER_OF(group, struct HdfSyscallAdapterGroup, s… in HdfIoServiceGroupAddService() 1133 struct HdfSyscallAdapter *adapter = CONTAINER_OF(service, struct HdfSyscallAdapter, super); in HdfIoServiceGroupRemoveService() 1134 …struct HdfSyscallAdapterGroup *adapterGroup = CONTAINER_OF(group, struct HdfSyscallAdapterGroup, s… in HdfIoServiceGroupRemoveService() 1158 struct HdfSyscallAdapter *adapter = CONTAINER_OF(service, struct HdfSyscallAdapter, super); in HdfIoserviceGetListenerCount() 1172 …struct HdfSyscallAdapterGroup *adapterGroup = CONTAINER_OF(group, struct HdfSyscallAdapterGroup, s… in HdfIoserviceGroupGetListenerCount() [all …]
|
/ohos5.0/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | codec_component_manager_driver.cpp | 36 CONTAINER_OF(client->device->service, struct HdfCodecComponentManagerHost, ioService); in CodecComponentManagerDriverDispatch() 105 CONTAINER_OF(deviceObject->service, struct HdfCodecComponentManagerHost, ioService); in HdfCodecComponentManagerDriverRelease()
|
/ohos5.0/drivers/peripheral/input/hdi_service/ |
H A D | input_interfaces_driver.cpp | 32 …auto *hdfInputInterfacesHost = CONTAINER_OF(client->device->service, struct HdfInputInterfacesHost… in InputInterfacesDriverDispatch() 97 …auto *hdfInputInterfacesHost = CONTAINER_OF(deviceObject->service, struct HdfInputInterfacesHost, … in HdfInputInterfacesDriverRelease()
|
/ohos5.0/drivers/peripheral/memorytracker/hdi_service/src/ |
H A D | memorytracker_interface_driver.cpp | 33 …auto *hdfMemoryTrackerInterfaceHost = CONTAINER_OF(client->device->service, struct HdfMemoryTracke… in MemoryTrackerInterfaceDriverDispatch() 94 …auto *hdfMemoryTrackerInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfMemoryTrackerI… in HdfMemoryTrackerInterfaceDriverRelease()
|
/ohos5.0/drivers/peripheral/partitionslot/hdi_service/src/ |
H A D | partition_slot_driver.cpp | 32 …auto *hdfPartitionSlotHost = CONTAINER_OF(client->device->service, struct HdfPartitionSlotHost, io… in PartitionSlotDriverDispatch() 97 …auto *hdfPartitionSlotHost = CONTAINER_OF(deviceObject->service, struct HdfPartitionSlotHost, ioSe… in HdfPartitionSlotDriverRelease()
|
/ohos5.0/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/ |
H A D | nnrt_device_driver.cpp | 32 …auto *hdfNnrtDeviceHost = CONTAINER_OF(client->device->service, struct HdfNnrtDeviceHost, ioServic… in NnrtDeviceDriverDispatch() 97 …auto *hdfNnrtDeviceHost = CONTAINER_OF(deviceObject->service, struct HdfNnrtDeviceHost, ioService); in HdfNnrtDeviceDriverRelease()
|
/ohos5.0/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/src/ |
H A D | nnrt_device_driver.cpp | 32 …auto *hdfNnrtDeviceHost = CONTAINER_OF(client->device->service, struct HdfNnrtDeviceHost, ioServic… in NnrtDeviceDriverDispatch() 97 …auto *hdfNnrtDeviceHost = CONTAINER_OF(deviceObject->service, struct HdfNnrtDeviceHost, ioService); in HdfNnrtDeviceDriverRelease()
|
/ohos5.0/drivers/peripheral/codec/hal/src/ |
H A D | codec_component_type_driver.c | 43 CONTAINER_OF(client->device->service, struct HdfCodecComponentTypeHost, ioservice); in CodecComponentTypeDriverDispatch() 114 CONTAINER_OF(deviceObject->service, struct HdfCodecComponentTypeHost, ioservice); in HdfCodecComponentTypeDriverRelease()
|
/ohos5.0/drivers/peripheral/codec/image/hdi_service/src/ |
H A D | codec_image_driver.cpp | 34 …auto *hdfCodecImageHost = CONTAINER_OF(client->device->service, struct HdfCodecImageHost, ioServic… in CodecImageDriverDispatch() 102 …auto *hdfCodecImageHost = CONTAINER_OF(deviceObject->service, struct HdfCodecImageHost, ioService); in HdfCodecImageDriverRelease()
|
/ohos5.0/drivers/peripheral/vibrator/hdi_service/ |
H A D | vibrator_if_driver.cpp | 35 …auto *hdfVibratorInterfaceHost = CONTAINER_OF(client->device->service, struct HdfVibratorInterface… in VibratorInterfaceDriverDispatch() 99 …auto *hdfVibratorInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfVibratorInterfaceHo… in HdfVibratorInterfaceDriverRelease()
|
/ohos5.0/drivers/peripheral/wlan/chip/hdi_service/ |
H A D | chip_controller_driver.cpp | 34 …auto *hdfChipControllerHost = CONTAINER_OF(client->device->service, struct HdfChipControllerHost, … in ChipControllerDriverDispatch() 97 …auto *hdfChipControllerHost = CONTAINER_OF(deviceObject->service, struct HdfChipControllerHost, io… in HdfChipControllerDriverRelease()
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/ |
H A D | battery_interface_driver.cpp | 35 …auto *hdfBatteryInterfaceHost = CONTAINER_OF(client->device->service, struct HdfBatteryInterfaceHo… in BatteryInterfaceDriverDispatch() 96 …auto *hdfBatteryInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfBatteryInterfaceHost… in HdfBatteryInterfaceDriverRelease()
|
/ohos5.0/drivers/peripheral/camera/interfaces/hdi_ipc/ |
H A D | camera_host_driver.cpp | 32 …auto *hdfCameraHostHost = CONTAINER_OF(client->device->service, struct HdfCameraHostHost, ioServic… in CameraHostDriverDispatch() 109 …auto *hdfCameraHostHost = CONTAINER_OF(deviceObject->service, struct HdfCameraHostHost, ioService); in HdfCameraHostDriverRelease()
|
/ohos5.0/drivers/peripheral/light/hdi_service/ |
H A D | light_if_driver.cpp | 35 …auto *hdfLightInterfaceHost = CONTAINER_OF(client->device->service, struct HdfLightInterfaceHost, … in LightInterfaceDriverDispatch() 101 …auto *hdfLightInterfaceHost = CONTAINER_OF(deviceObject->service, struct HdfLightInterfaceHost, io… in HdfLightInterfaceDriverRelease()
|