Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 66) sorted by relevance

123

/device/linaro/dragonboard/qcom/rmtfs/
Drproc.c190 pthread_attr_t attr; in rproc_start() local
192 pthread_attr_init(&attr); in rproc_start()
193 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); in rproc_start()
195 return pthread_create(&start_thread, &attr, do_rproc_start, NULL); in rproc_start()
219 pthread_attr_t attr; in rproc_stop() local
221 pthread_attr_init(&attr); in rproc_stop()
222 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); in rproc_stop()
224 return pthread_create(&stop_thread, &attr, do_rproc_stop, NULL); in rproc_stop()
/device/amlogic/yukawa/hal/gralloc/
Dgralloc_buffer_priv.h131 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument
135 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write()
144 switch (attr) in gralloc_buffer_attr_write()
167 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument
171 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read()
180 switch (attr) in gralloc_buffer_attr_read()
/device/linaro/hikey/gralloc960/
Dgralloc_buffer_priv.h132 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument
136 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write()
145 switch (attr) in gralloc_buffer_attr_write()
173 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument
177 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read()
186 switch (attr) in gralloc_buffer_attr_read()
/device/generic/vulkan-cereal/fake-android-guest/utils/
DCondition.h100 pthread_condattr_t attr; in Condition() local
101 pthread_condattr_init(&attr); in Condition()
103 pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in Condition()
107 pthread_condattr_setpshared(&attr, PTHREAD_PROCESS_SHARED); in Condition()
110 pthread_cond_init(&mCond, &attr); in Condition()
111 pthread_condattr_destroy(&attr); in Condition()
DRWLock.h92 pthread_rwlockattr_t attr; in RWLock() local
93 pthread_rwlockattr_init(&attr); in RWLock()
94 pthread_rwlockattr_setpshared(&attr, PTHREAD_PROCESS_SHARED); in RWLock()
95 pthread_rwlock_init(&mRWLock, &attr); in RWLock()
96 pthread_rwlockattr_destroy(&attr); in RWLock()
DMutex.h170 pthread_mutexattr_t attr; in Mutex() local
171 pthread_mutexattr_init(&attr); in Mutex()
172 pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED); in Mutex()
173 pthread_mutex_init(&mMutex, &attr); in Mutex()
174 pthread_mutexattr_destroy(&attr); in Mutex()
/device/generic/goldfish/dhcp/client/
Dnetlink.h15 auto attr = reinterpret_cast<struct rtattr*>(r.buf + offset); in addRouterAttribute() local
16 attr->rta_type = type; in addRouterAttribute()
17 attr->rta_len = RTA_LENGTH(size); in addRouterAttribute()
18 memcpy(RTA_DATA(attr), data, size); in addRouterAttribute()
21 r.hdr.nlmsg_len = NLMSG_ALIGN(r.hdr.nlmsg_len) + RTA_ALIGN(attr->rta_len); in addRouterAttribute()
/device/google/zuma/interfaces/boot/1.0/
DBootControl.cpp85 return !!(e->attr & flag); in isSlotFlagSet()
107 e->attr |= flag; in setSlotFlag()
170 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
171 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
196 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
197 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
232 e->attr |= AB_ATTR_UNBOOTABLE; in setSlotAsUnbootable()
/device/google/gs201/interfaces/boot/1.0/
DBootControl.cpp85 return !!(e->attr & flag); in isSlotFlagSet()
107 e->attr |= flag; in setSlotFlag()
170 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
171 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
196 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
197 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
232 e->attr |= AB_ATTR_UNBOOTABLE; in setSlotAsUnbootable()
/device/google/gs101/interfaces/boot/1.0/
DBootControl.cpp85 return !!(e->attr & flag); in isSlotFlagSet()
107 e->attr |= flag; in setSlotFlag()
170 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
171 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
196 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
197 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
232 e->attr |= AB_ATTR_UNBOOTABLE; in setSlotAsUnbootable()
/device/generic/goldfish-opengl/android-emu/aemu/base/threads/
DAndroidThread_pthread.cpp62 pthread_attr_t attr; in start() local
64 pthread_attr_init(&attr); in start()
65 pthread_attr_setstacksize(&attr, mStackSize); in start()
68 if (pthread_create(&mThread, mStackSize ? &attr : nullptr, thread_main, in start()
82 pthread_attr_destroy(&attr); in start()
/device/google/sunfish/health/
DHealth.cpp98 void fill_ufs_storage_attribute(StorageAttribute *attr) { in fill_ufs_storage_attribute() argument
99 attr->isInternal = true; in fill_ufs_storage_attribute()
100 attr->isBootDevice = true; in fill_ufs_storage_attribute()
101 attr->name = kUFSName; in fill_ufs_storage_attribute()
119 fill_ufs_storage_attribute(&storage_info->attr); in private_get_storage_info()
131 fill_ufs_storage_attribute(&stats->attr); in private_get_disk_stats()
/device/google/gs101/interfaces/boot/1.2/
DBootControl.cpp104 return !!(e->attr & flag); in isSlotFlagSet()
126 e->attr |= flag; in setSlotFlag()
272 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
273 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
276 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
277 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
343 e->attr |= AB_ATTR_UNBOOTABLE; in setSlotAsUnbootable()
/device/google/gs201/interfaces/boot/1.2/
DBootControl.cpp102 return !!(e->attr & flag); in isSlotFlagSet()
124 e->attr |= flag; in setSlotFlag()
255 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
256 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
259 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
260 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
326 e->attr |= AB_ATTR_UNBOOTABLE; in setSlotAsUnbootable()
/device/google/redbull/health/
DHealth.cpp107 void fill_ufs_storage_attribute(StorageAttribute *attr) { in fill_ufs_storage_attribute() argument
108 attr->isInternal = true; in fill_ufs_storage_attribute()
109 attr->isBootDevice = true; in fill_ufs_storage_attribute()
110 attr->name = kUFSName; in fill_ufs_storage_attribute()
144 fill_ufs_storage_attribute(&storage_info->attr); in private_get_storage_info()
156 fill_ufs_storage_attribute(&stats->attr); in private_get_disk_stats()
/device/generic/goldfish/wifi/wifi_hal/
Dnetlinkmessage.cpp53 … const auto attr = nlmsg_find_attr((struct nlmsghdr*)mData.data(), sizeof(ifinfomsg), attributeId); in getAttribute() local
54 if (!attr) { in getAttribute()
57 value = (const uint8_t*) attr + NLA_HDRLEN; in getAttribute()
58 const size_t attr_len = attr->nla_len - NLA_HDRLEN; in getAttribute()
/device/google/zuma/interfaces/boot/1.2/
DBootControl.cpp103 return !!(e->attr & flag); in isSlotFlagSet()
125 e->attr |= flag; in setSlotFlag()
336 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
337 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
340 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
341 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
407 e->attr |= AB_ATTR_UNBOOTABLE; in setSlotAsUnbootable()
/device/google/coral/health/
DHealth.cpp115 void fill_ufs_storage_attribute(StorageAttribute *attr) { in fill_ufs_storage_attribute() argument
116 attr->isInternal = true; in fill_ufs_storage_attribute()
117 attr->isBootDevice = true; in fill_ufs_storage_attribute()
118 attr->name = kUFSName; in fill_ufs_storage_attribute()
154 fill_ufs_storage_attribute(&storage_info->attr); in private_get_storage_info()
166 fill_ufs_storage_attribute(&stats->attr); in private_get_disk_stats()
/device/generic/vulkan-cereal/stream-servers/tests/
DGLSnapshotPrograms_unittest.cpp258 GlShaderVariable attr = {}; in getProgramState() local
259 attr.name.resize(ret.maxAttributeName); in getProgramState()
262 &attrLen, &attr.size, &attr.type, in getProgramState()
263 &attr.name[0]); in getProgramState()
264 attr.location = in getProgramState()
265 gl->glGetAttribLocation(m_program_name, &attr.name[0]); in getProgramState()
269 ret.attributes.push_back(attr); in getProgramState()
/device/google/cuttlefish/host/libs/location/
DGpxParser.cpp44 xmlAttrPtr attr; in parseLocation() local
48 attr = xmlHasProp(ptNode, (const xmlChar *)"lat"); in parseLocation()
49 if (!attr || !(tmpStr = xmlGetProp(ptNode, (const xmlChar *)"lat"))) { in parseLocation()
62 attr = xmlHasProp(ptNode, (const xmlChar *)"lon"); in parseLocation()
63 if (!attr || !(tmpStr = xmlGetProp(ptNode, (const xmlChar *)"lon"))) { in parseLocation()
/device/google/zuma/interfaces/boot/aidl/
DBootControl.cpp100 return !!(e->attr & flag); in isSlotFlagSet()
122 e->attr |= flag; in setSlotFlag()
452 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
453 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
456 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
457 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
521 e->attr |= AB_ATTR_UNBOOTABLE; in setSlotAsUnbootable()
/device/google/cuttlefish/common/libs/net/
Dnetlink_request.cpp61 nlattr* attr = Reserve<nlattr>(); in AppendTag() local
62 attr->nla_type = type; in AppendTag()
63 attr->nla_len = RTA_LENGTH(data_length); in AppendTag()
65 return attr; in AppendTag()
/device/linaro/poplar/wifi/wifi_hal/
Dcpp_bindings.h112 nl_iterator(struct nlattr *attr) { in nl_iterator() argument
113 pos = (struct nlattr *)nla_data(attr); in nl_iterator()
114 rem = nla_len(attr); in nl_iterator()
218 void attr_end(struct nlattr *attr) { in attr_end() argument
219 nla_nest_end(mMsg, attr); in attr_end()
/device/generic/goldfish-opengl/android-emu/aemu/base/synchronization/
DAndroidLock.h118 pthread_mutexattr_t attr; in StaticLock()
119 pthread_mutexattr_init(&attr); in StaticLock()
120 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); in StaticLock()
121 pthread_mutex_init(&mLock, &attr); in StaticLock()
/device/google/cuttlefish/host/commands/modem_simulator/
Dstk_service.cpp257 auto attr = final->FindAttribute("menuId"); in OnUnsolicitedCommandForTR() local
258 if (attr && attr->Value() == menu_id) { in OnUnsolicitedCommandForTR()
259 std::string attr_value = attr->Value(); in OnUnsolicitedCommandForTR()

123