Home
last modified time | relevance | path

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

123

/device/linaro/dragonboard/shared/utils/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()
Dmali_gralloc_private_interface.cpp176 …li_gralloc_private_get_attr_param(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr, in mali_gralloc_private_get_attr_param() argument
197 if (gralloc_buffer_attr_read(hnd, attr, val) < 0) in mali_gralloc_private_get_attr_param()
211 …li_gralloc_private_set_attr_param(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr, in mali_gralloc_private_set_attr_param() argument
232 if (gralloc_buffer_attr_write(hnd, attr, val) < 0) in mali_gralloc_private_set_attr_param()
Dmali_gralloc_private_interface.h62 …LLOC1_PFN_PRIVATE_GET_ATTR_PARAM)(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr,
64 …LLOC1_PFN_PRIVATE_SET_ATTR_PARAM)(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr,
/device/linaro/hikey/gralloc960/
Dgralloc_buffer_priv.h133 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument
137 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write()
146 switch (attr) in gralloc_buffer_attr_write()
174 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument
178 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read()
187 switch (attr) in gralloc_buffer_attr_read()
Dmali_gralloc_private_interface.cpp176 …li_gralloc_private_get_attr_param(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr, in mali_gralloc_private_get_attr_param() argument
197 if (gralloc_buffer_attr_read(hnd, attr, val) < 0) in mali_gralloc_private_get_attr_param()
211 …li_gralloc_private_set_attr_param(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr, in mali_gralloc_private_set_attr_param() argument
232 if (gralloc_buffer_attr_write(hnd, attr, val) < 0) in mali_gralloc_private_set_attr_param()
Dmali_gralloc_private_interface.h62 …LLOC1_PFN_PRIVATE_GET_ATTR_PARAM)(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr,
64 …LLOC1_PFN_PRIVATE_SET_ATTR_PARAM)(gralloc1_device_t *device, buffer_handle_t handle, buf_attr attr,
/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/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/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/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/google/gs-common/bootctrl/1.2/
DBootControl.cpp105 return !!(e->attr & flag); in isSlotFlagSet()
127 e->attr |= flag; in setSlotFlag()
357 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
358 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
361 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
362 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
432 e->attr |= AB_ATTR_UNBOOTABLE; in setSlotAsUnbootable()
/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/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/gs-common/bootctrl/aidl/
DBootControl.cpp102 return !!(e->attr & flag); in isSlotFlagSet()
124 e->attr |= flag; in setSlotFlag()
472 ALOGV("slot active attributes %lx\n", active_entry->attr); in setActiveBootSlot()
473 ALOGV("slot inactive attributes %lx\n", inactive_entry->attr); in setActiveBootSlot()
476 inactive_entry->attr &= ~AB_ATTR_ACTIVE; in setActiveBootSlot()
477 active_entry->attr = AB_ATTR_ACTIVE | (AB_ATTR_MAX_PRIORITY << AB_ATTR_PRIORITY_SHIFT) | in setActiveBootSlot()
545 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()
Dgscan.cpp330 static int parseScanResults(wifi_scan_result *results, int num, nlattr *attr) in parseScanResults() argument
335 for (nl_iterator it(attr); it.has_next() && i < num; it.next(), i++) { in parseScanResults()
1041 struct nlattr * attr = request.attr_start(GSCAN_ATTRIBUTE_HOTLIST_BSSIDS); in createSetupRequest() local
1062 request.attr_end(attr); in createSetupRequest()
1079 struct nlattr * attr = request.attr_start(GSCAN_ATTRIBUTE_HOTLIST_BSSIDS); in createTeardownRequest() local
1080 request.attr_end(attr); in createTeardownRequest()
1253 struct nlattr * attr = request.attr_start(GSCAN_ATTRIBUTE_EPNO_SSID_LIST); in createSetupRequest() local
1281 request.attr_end(attr); in createSetupRequest()
1460 nlattr* attr = request.attr_start(GSCAN_ATTRIBUTE_SIGNIFICANT_CHANGE_BSSIDS); in createSetupRequest() local
1461 if (attr == NULL) { in createSetupRequest()
[all …]
/device/google/cuttlefish/host/commands/modem_simulator/
Dstk_service.cpp273 auto attr = final->FindAttribute("menuId"); in OnUnsolicitedCommandForTR() local
274 if (attr && attr->Value() == menu_id) { in OnUnsolicitedCommandForTR()
275 std::string attr_value = attr->Value(); in OnUnsolicitedCommandForTR()
/device/google/cuttlefish/guest/hals/ril/reference-libril/
DrilSocketQueue.h41 pthread_mutexattr_t attr; variable
95 pthread_mutexattr_init(&attr); in Ril_queue()
96 pthread_mutex_init(&mutex_instance, &attr); in Ril_queue()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Datchannel.c576 pthread_attr_t attr; in at_open() local
586 pthread_attr_init (&attr); in at_open()
587 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); in at_open()
589 ret = pthread_create(&s_tid_reader, &attr, readerLoop, &attr); in at_open()
/device/google/sunfish/usb/usb/
DUsb.cpp373 pthread_condattr_t attr; in Usb() local
374 if (pthread_condattr_init(&attr)) { in Usb()
378 if (pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) { in Usb()
382 if (pthread_cond_init(&mPartnerCV, &attr)) { in Usb()
386 if (pthread_condattr_destroy(&attr)) { in Usb()
/device/google/barbet/usb/usb/
DUsb.cpp373 pthread_condattr_t attr; in Usb() local
374 if (pthread_condattr_init(&attr)) { in Usb()
378 if (pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) { in Usb()
382 if (pthread_cond_init(&mPartnerCV, &attr)) { in Usb()
386 if (pthread_condattr_destroy(&attr)) { in Usb()
/device/google/redfin/usb/usb/
DUsb.cpp373 pthread_condattr_t attr; in Usb() local
374 if (pthread_condattr_init(&attr)) { in Usb()
378 if (pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) { in Usb()
382 if (pthread_cond_init(&mPartnerCV, &attr)) { in Usb()
386 if (pthread_condattr_destroy(&attr)) { in Usb()
/device/google/coral/usb/usb/
DUsb.cpp373 pthread_condattr_t attr; in Usb() local
374 if (pthread_condattr_init(&attr)) { in Usb()
378 if (pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) { in Usb()
382 if (pthread_cond_init(&mPartnerCV, &attr)) { in Usb()
386 if (pthread_condattr_destroy(&attr)) { in Usb()

123