Home
last modified time | relevance | path

Searched refs:policy (Results 1 - 25 of 29) sorted by relevance

12

/drivers/hdf_core/framework/core/host/src/
H A Dhdf_service_observer.c74 ((serviceRecord->policy != SERVICE_POLICY_PRIVATE) || (serviceRecord->devId == deviceId))) { in HdfServiceObserverSubscribeService()
85 uint16_t policy, struct HdfObject *service) in HdfServiceObserverPublishService()
103 serviceRecord->policy = policy; in HdfServiceObserverPublishService()
109 HdfServiceObserverRecordNotifySubscribers(serviceRecord, deviceId, policy); in HdfServiceObserverPublishService()
84 HdfServiceObserverPublishService(struct HdfServiceObserver *observer, const char *svcName, devid_t deviceId, uint16_t policy, struct HdfObject *service) HdfServiceObserverPublishService() argument
H A Dhdf_device_node.c41 devNode->devId, devNode->policy, (struct HdfObject *)devNode->deviceObject.service); in HdfDeviceNodePublishLocalService()
48 if (devNode->policy == SERVICE_POLICY_NONE || in HdfDeviceNodePublishService()
54 if (devNode->policy == SERVICE_POLICY_PUBLIC || devNode->policy == SERVICE_POLICY_CAPACITY) { in HdfDeviceNodePublishService()
74 if (devNode->policy == SERVICE_POLICY_PUBLIC || devNode->policy == SERVICE_POLICY_CAPACITY) { in DeviceDriverBind()
274 devNode->policy = deviceInfo->policy; in HdfDeviceNodeNewInstance()
H A Dhdf_observer_record.c57 struct HdfServiceObserverRecord *record, devid_t deviceId, uint16_t policy) in HdfServiceObserverRecordNotifySubscribers()
70 if (deviceId == subscriber->devId || policy != SERVICE_POLICY_PRIVATE) { in HdfServiceObserverRecordNotifySubscribers()
56 HdfServiceObserverRecordNotifySubscribers( struct HdfServiceObserverRecord *record, devid_t deviceId, uint16_t policy) HdfServiceObserverRecordNotifySubscribers() argument
H A Dhdf_device_object.c268 int HdfDeviceObjectPublishService(struct HdfDeviceObject *dev, const char *servName, uint8_t policy, uint32_t perm) in HdfDeviceObjectPublishService() argument
276 if (policy <= SERVICE_POLICY_NONE || policy >= SERVICE_POLICY_INVALID) { in HdfDeviceObjectPublishService()
290 devNode->policy = policy; in HdfDeviceObjectPublishService()
/drivers/hdf_core/framework/support/posix/src/
H A Dosal_thread.c121 static int32_t OsalThreadSetSchedPolicy(pthread_attr_t *attribute, const int policy) in OsalThreadSetSchedPolicy() argument
123 if (policy == SCHED_OTHER) { in OsalThreadSetSchedPolicy()
126 if (policy != SCHED_FIFO && policy != SCHED_RR) { in OsalThreadSetSchedPolicy()
127 HDF_LOGE("%s invalid policy", __func__); in OsalThreadSetSchedPolicy()
135 resultCode = pthread_attr_setschedpolicy(attribute, policy); in OsalThreadSetSchedPolicy()
185 OsalThreadSetSchedPolicy(&attribute, param->policy); in OsalThreadStart()
/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_query_device.c49 HDF_LOGD("%{public}s %{public}s policy:%{public}d status:%{public}d type:%{public}d", __func__, in DevFillQueryDeviceInfo()
50 deviceInfo->svcName, deviceInfo->policy, deviceInfo->status, deviceInfo->deviceType); in DevFillQueryDeviceInfo()
51 if ((deviceInfo->policy == SERVICE_POLICY_CAPACITY || deviceInfo->policy == SERVICE_POLICY_PUBLIC) && in DevFillQueryDeviceInfo()
/drivers/hdf_core/framework/core/host/include/
H A Dhdf_observer_record.h20 uint16_t policy; member
31 struct HdfServiceObserverRecord *record, devid_t deviceId, uint16_t policy);
H A Dhdf_service_observer.h25 const char *svcName, devid_t deviceId, uint16_t policy, struct HdfObject *service);
/drivers/hdf_core/adapter/khdf/linux/osal/src/
H A Dosal_thread.c106 int32_t policy = SCHED_FIFO; in OsalThreadStart() local
124 policy = SCHED_NORMAL; in OsalThreadStart()
137 if (policy == SCHED_FIFO) { in OsalThreadStart()
138 if (sched_setscheduler(task, policy, &sched_para)) { in OsalThreadStart()
/drivers/hdf_core/framework/core/shared/include/
H A Dhdf_attribute_macro.h32 uint16_t policy; member
51 deviceNode->policy = HCS_PROP(node, policy); \
/drivers/hdf_core/framework/core/common/src/
H A Dhdf_device_node_ext.c42 if (devNode->policy == SERVICE_POLICY_CAPACITY) { in DeviceNodeExtDispatch()
68 if (devNode->policy == SERVICE_POLICY_CAPACITY) { in DeviceNodeExtPublishService()
98 if (devNode->policy == SERVICE_POLICY_CAPACITY) { in DeviceNodeExtRemoveService()
H A Dhdf_attribute_macro.c117 if (deviceNodeInfo->policy >= SERVICE_POLICY_INVALID) { in CheckDeviceInfoMacro()
118 HDF_LOGE("CheckDeviceInfoMacro policy %{public}u is invalid", deviceNodeInfo->policy); in CheckDeviceInfoMacro()
137 deviceNodeInfo->policy = deviceNode->policy; in GetDeviceNodeInfo()
H A Dhdf_attribute.c20 #define ATTR_DEV_POLICY "policy"
141 if (deviceNodeInfo->policy >= SERVICE_POLICY_INVALID) { in CheckDeviceInfo()
142 HDF_LOGE("%{public}s: policy %{public}u is invalid", __func__, deviceNodeInfo->policy); in CheckDeviceInfo()
161 HcsGetUint16(deviceNode, ATTR_DEV_POLICY, &deviceNodeInfo->policy, 0); in GetDeviceNodeInfo()
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dhci_watcher.cpp87 int policy = BT_THREAD_POLICY; in Start() local
89 if (pthread_setschedparam(thread_.native_handle(), policy, &params) != 0) { in Start()
90 HDF_LOGW("pthread_setschedparam failed tid[%lu] policy[%d]", thread_.native_handle(), policy); in Start()
/drivers/hdf_core/framework/test/unittest/osal/
H A Dosal_all_test.c196 int policy; in ThreadTest3() local
203 pthread_getschedparam(pthread_self(), &policy, &param); in ThreadTest3() local
205 UT_TEST_CHECK_RET(policy != SCHED_OTHER, OSAL_THREAD_CREATE); in ThreadTest3()
208 printf("%s: policy is %d, param.sched_priority is %d \n", __func__, policy, param.sched_priority); in ThreadTest3()
216 int policy; in ThreadTest4() local
223 pthread_getschedparam(pthread_self(), &policy, &param); in ThreadTest4() local
225 UT_TEST_CHECK_RET(policy != SCHED_FIFO, OSAL_THREAD_CREATE); in ThreadTest4()
228 printf("%s: policy is %d, param.sched_priority is %d \n", __func__, policy, para in ThreadTest4()
236 int policy; ThreadTest5() local
243 pthread_getschedparam(pthread_self(), &policy, &param); ThreadTest5() local
[all...]
/drivers/hdf_core/framework/core/adapter/syscall/src/
H A Dhdf_syscall_adapter.c350 thread->policy = SCHED_OTHER; in HdfDevListenerThreadDoInit()
475 .policy = thread->policy, in HdfDevListenerThreadStart()
519 static int32_t HdfIoServiceGroupThreadStart(struct HdfSyscallAdapterGroup *group, int policy) in HdfIoServiceGroupThreadStart() argument
526 group->thread->policy = policy; in HdfIoServiceGroupThreadStart()
826 static int32_t HdfIoServiceStartListen(struct HdfSyscallAdapter *adapter, int policy) in HdfIoServiceStartListen() argument
832 adapter->thread->policy = policy; in HdfIoServiceStartListen()
851 struct HdfIoService *target, struct HdfDevEventlistener *listener, int policy) in HdfDeviceRegisterEventListenerWithSchedPolicy()
850 HdfDeviceRegisterEventListenerWithSchedPolicy( struct HdfIoService *target, struct HdfDevEventlistener *listener, int policy) HdfDeviceRegisterEventListenerWithSchedPolicy() argument
965 HdfIoServiceGroupRegisterListenerWithSchedPolicy( struct HdfIoServiceGroup *group, struct HdfDevEventlistener *listener, int policy) HdfIoServiceGroupRegisterListenerWithSchedPolicy() argument
[all...]
/drivers/hdf_core/interfaces/inner_api/core/
H A Dhdf_io_service_if.h192 * @param policy Indicates the sched policy of the HdfDevEventlistener thread.
198 struct HdfIoServiceGroup *group, struct HdfDevEventlistener *listener, int policy);
254 * @param policy Indicates the sched policy of the HdfDevEventlistener thread.
260 struct HdfIoService *target, struct HdfDevEventlistener *listener, int policy);
/drivers/hdf_core/framework/core/adapter/syscall/include/
H A Dhdf_syscall_adapter.h39 int policy; member
/drivers/hdf_core/interfaces/inner_api/host/shared/
H A Dhdf_device_info.h34 uint16_t policy; member
H A Dhdf_device_object.h21 int HdfDeviceObjectPublishService(struct HdfDeviceObject *dev, const char *servName, uint8_t policy, uint32_t perm);
/drivers/hdf_core/interfaces/inner_api/osal/shared/
H A Dosal_thread.h66 int policy; /**< Thread scheduling policy */ member
/drivers/hdf_core/adapter/uhdf2/host/src/
H A Ddevice_service_stub.c78 if (service->policy != SERVICE_POLICY_PUBLIC && service->policy != SERVICE_POLICY_CAPACITY) { in DeviceServiceStubPublishService()
/drivers/hdf_core/adapter/uhdf2/shared/src/
H A Ddev_attribute_serialize.c32 !HdfSbufWriteUint16(sbuf, attribute->policy) || in DeviceAttributeSerialize()
127 if (!HdfSbufReadUint32(sbuf, &attribute->deviceId) || !HdfSbufReadUint16(sbuf, &attribute->policy)) { in DeviceAttributeDeserialize()
128 HDF_LOGE("invalid deviceId or policy"); in DeviceAttributeDeserialize()
/drivers/hdf_core/framework/core/shared/src/
H A Dhdf_device_info.c25 deviceInfo->policy = SERVICE_POLICY_INVALID; in HdfDeviceInfoConstruct()
/drivers/hdf_core/adapter/uhdf2/host/test/unittest/
H A Ddevhost_test.cpp218 deviceInfo.policy = SERVICE_POLICY_NONE; in HWTEST_F()
234 deviceInfo.policy = SERVICE_POLICY_PUBLIC; in HWTEST_F()
254 devNode->policy = SERVICE_POLICY_CAPACITY; in HWTEST_F()
278 deviceInfo.policy = SERVICE_POLICY_PUBLIC; in HWTEST_F()
369 deviceInfo.policy = SERVICE_POLICY_PUBLIC; in HWTEST_F()
433 devNode->policy = SERVICE_POLICY_NONE; in HWTEST_F()
437 devNode->policy = SERVICE_POLICY_PUBLIC; in HWTEST_F()

Completed in 10 milliseconds

12