Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 199) sorted by relevance

12345678

/hardware/google/gfxstream/guest/mesa/src/util/
Dlist.h209 #define LIST_FOR_EACH_ENTRY(pos, head, member) \ argument
210 for (pos = NULL, pos = list_container_of((head)->next, pos, member); \
211 &pos->member != (head); \
212 pos = list_container_of(pos->member.next, pos, member))
214 #define LIST_FOR_EACH_ENTRY_SAFE(pos, storage, head, member) \ argument
215 for (pos = NULL, pos = list_container_of((head)->next, pos, member), \
216 storage = list_container_of(pos->member.next, pos, member); \
217 &pos->member != (head); \
218 pos = storage, storage = list_container_of(storage->member.next, storage, member))
220 #define LIST_FOR_EACH_ENTRY_SAFE_REV(pos, storage, head, member) \ argument
[all …]
/hardware/google/gfxstream/guest/android-emu/aemu/base/synchronization/
DAndroidMessageChannel.h122 const size_t pos = beforeWrite(); in send() local
125 mItems[pos] = msg; in send()
132 const size_t pos = beforeWrite(); in send() local
135 mItems[pos] = std::move(msg); in send()
142 const auto pos = beforeTryWrite(); in trySend() local
143 if (pos) { in trySend()
144 mItems[*pos] = msg; in trySend()
146 afterWrite(pos); in trySend()
147 return pos; in trySend()
151 const auto pos = beforeTryWrite(); in trySend() local
[all …]
/hardware/google/aemu/base/include/aemu/base/synchronization/
DMessageChannel.h122 const size_t pos = beforeWrite(); in send() local
125 mItems[pos] = msg; in send()
132 const size_t pos = beforeWrite(); in send() local
135 mItems[pos] = std::move(msg); in send()
142 const auto pos = beforeTryWrite(); in trySend() local
143 if (pos) { in trySend()
144 mItems[*pos] = msg; in trySend()
146 afterWrite(pos); in trySend()
147 return pos; in trySend()
151 const auto pos = beforeTryWrite(); in trySend() local
[all …]
/hardware/google/gfxstream/codegen/generic-apigen/
DEntryPoint.cpp48 size_t pos, last; in parse() local
59 pos = last + 1; in parse()
61 field = getNextToken(linestr, pos, &last, ",)"); in parse()
73 pos = last + 1; in parse()
88 m_name = getNextToken(linestr, pos, &last, ",)"); in parse()
89 pos = last + 1; in parse()
93 while (pos < linestr.size() - 1) { in parse()
94 field = getNextToken(linestr, pos, &last, ",)"); in parse()
123 pos = last + 1; in parse()
205 size_t pos = 0; in setAttribute() local
[all …]
DstrUtils.cpp21 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & de… in getNextToken() argument
23 if (str.size() == 0 || pos >= str.size()) return ""; in getNextToken()
25 pos = str.find_first_not_of(WHITESPACE, pos); in getNextToken()
26 if (pos == std::string::npos) return ""; in getNextToken()
28 *last = str.find_first_of(delim, pos); in getNextToken()
30 std::string retval = str.substr(pos, *last - pos); in getNextToken()
/hardware/google/gchips/gralloc4/src/hidl_common/
DBufferDescriptor.h69 static void push_descriptor_uint32(frameworks_vec<vecT> *vec, size_t *pos, uint32_t val) in push_descriptor_uint32() argument
72 memcpy(vec->data() + *pos, &val, sizeof(val)); in push_descriptor_uint32()
73 *pos += sizeof(val) / sizeof(vecT); in push_descriptor_uint32()
77 static uint32_t pop_descriptor_uint32(const frameworks_vec<vecT> &vec, size_t *pos) in pop_descriptor_uint32() argument
81 memcpy(&val, vec.data() + *pos, sizeof(val)); in pop_descriptor_uint32()
82 *pos += sizeof(val) / sizeof(vecT); in pop_descriptor_uint32()
87 static void push_descriptor_uint64(frameworks_vec<vecT> *vec, size_t *pos, uint64_t val) in push_descriptor_uint64() argument
90 memcpy(vec->data() + *pos, &val, sizeof(val)); in push_descriptor_uint64()
91 *pos += sizeof(val) / sizeof(vecT); in push_descriptor_uint64()
95 static uint64_t pop_descriptor_uint64(const frameworks_vec<vecT> &vec, size_t *pos) in pop_descriptor_uint64() argument
[all …]
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraQueue.cpp227 struct cam_list *pos = NULL; in peek() local
232 pos = head->next; in peek()
233 if (pos != head) { in peek()
234 node = member_of(pos, camera_q_node, list); in peek()
262 struct cam_list *pos = NULL; in dequeue() local
268 pos = head->next; in dequeue()
270 pos = head->prev; in dequeue()
272 if (pos != head) { in dequeue()
273 node = member_of(pos, camera_q_node, list); in dequeue()
302 struct cam_list *pos = NULL; in dequeue() local
[all …]
DQCameraBufferMaps.cpp175 uint32_t pos = mBufMapList.length++; in enqueue() local
176 mBufMapList.buf_maps[pos].type = pType; in enqueue()
177 mBufMapList.buf_maps[pos].stream_id = pStreamId; in enqueue()
178 mBufMapList.buf_maps[pos].frame_idx = pFrameIndex; in enqueue()
179 mBufMapList.buf_maps[pos].plane_idx = pPlaneIndex; in enqueue()
180 mBufMapList.buf_maps[pos].cookie = pCookie; in enqueue()
181 mBufMapList.buf_maps[pos].fd = pFd; in enqueue()
182 mBufMapList.buf_maps[pos].size = pSize; in enqueue()
183 mBufMapList.buf_maps[pos].buffer = buffer; in enqueue()
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Filtering.cpp261 int ret = 0, cnt, num_rules = 0, pos = 0; in AddWanDLFilteringRule() local
314 if (pos < QMI_IPA_MAX_FILTERS_V01) in AddWanDLFilteringRule()
316 qmi_rule_msg.filter_spec_list[pos].filter_spec_identifier = pos; in AddWanDLFilteringRule()
317 qmi_rule_msg.filter_spec_list[pos].ip_type = QMI_IPA_IP_TYPE_V4_V01; in AddWanDLFilteringRule()
318 …qmi_rule_msg.filter_spec_list[pos].filter_action = GetQmiFilterAction(rule_table_v4->rules[cnt].ru… in AddWanDLFilteringRule()
319 qmi_rule_msg.filter_spec_list[pos].is_routing_table_index_valid = 1; in AddWanDLFilteringRule()
320 … qmi_rule_msg.filter_spec_list[pos].route_table_index = rule_table_v4->rules[cnt].rule.rt_tbl_idx; in AddWanDLFilteringRule()
321 qmi_rule_msg.filter_spec_list[pos].is_mux_id_valid = 1; in AddWanDLFilteringRule()
322 qmi_rule_msg.filter_spec_list[pos].mux_id = mux_id; in AddWanDLFilteringRule()
323 memcpy(&qmi_rule_msg.filter_spec_list[pos].filter_rule, in AddWanDLFilteringRule()
[all …]
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dmsg_formatting.h158 volatile T* pos() const { return pos_; };
175 auto pos = s.pos_;
185 zero(pos, s.pos_);
190 auto pos = out.pos();
199 pos = std::copy(s, s + 4, pos);
200 std::copy(buffer, buffer + size, pos);
210 auto pos = in.pos();
214 std::copy(pos, pos + 4, bytes_cast(size));
215 pos = in.pos();
218 return {in, pos, size};
[all …]
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dlist.h62 #define list_for_each_entry_safe(pos, n, head, member) \ argument
63 for (pos = list_entry((head)->next, typeof(*pos), member), \
64 n = list_entry(pos->member.next, typeof(*pos), member); \
65 &pos->member != (head); \
66 pos = n, n = list_entry(n->member.next, typeof(*n), member))
68 #define list_for_each_safe(pos, n, head) \ argument
69 for (pos = (head)->next, n = pos->next; pos != (head); \
70 pos = n, n = pos->next)
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dlist.h62 #define list_for_each_entry_safe(pos, n, head, member) \ argument
63 for (pos = list_entry((head)->next, typeof(*pos), member), \
64 n = list_entry(pos->member.next, typeof(*pos), member); \
65 &pos->member != (head); \
66 pos = n, n = list_entry(n->member.next, typeof(*n), member))
68 #define list_for_each_safe(pos, n, head) \ argument
69 for (pos = (head)->next, n = pos->next; pos != (head); \
70 pos = n, n = pos->next)
/hardware/google/gfxstream/scripts/print_gfx_logs/
Dprint_gfx_logs.py86 def read_uint32(buf: bytes, pos: int) -> int:
88 assert pos + 4 <= len(buf)
89 return int.from_bytes(buf[pos:pos + 4], byteorder='little', signed=False)
91 def read_uint64(buf: bytes, pos: int) -> int:
93 assert pos + 8 <= len(buf)
94 return int.from_bytes(buf[pos:pos + 8], byteorder='little', signed=False)
97 pos = 0
99 timestamp_us = read_uint64(buf, pos)
100 pos += 8
103 opcode = read_uint32(buf, pos)
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c69 struct cam_list *pos = NULL; in mm_jpeg_queue_enq_head() local
81 pos = head->next; in mm_jpeg_queue_enq_head()
84 cam_list_insert_before_node(&node->list, pos); in mm_jpeg_queue_enq_head()
96 struct cam_list *pos = NULL; in mm_jpeg_queue_deq() local
102 pos = head->next; in mm_jpeg_queue_deq()
103 if (pos != head) { in mm_jpeg_queue_deq()
104 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_deq()
141 struct cam_list *pos = NULL; in mm_jpeg_queue_flush() local
145 pos = head->next; in mm_jpeg_queue_flush()
147 while(pos != head) { in mm_jpeg_queue_flush()
[all …]
/hardware/nxp/keymint/KM200/
DCborConverter.h47 bool getUint64(const std::unique_ptr<Item>& item, const uint32_t pos, T& value);
51 bool getSharedSecretParameters(const std::unique_ptr<Item>& item, const uint32_t pos,
53 bool getBinaryArray(const std::unique_ptr<Item>& item, const uint32_t pos, string& value);
55 bool getBinaryArray(const std::unique_ptr<Item>& item, const uint32_t pos,
58 bool getHardwareAuthToken(const std::unique_ptr<Item>& item, const uint32_t pos,
61 bool getKeyParameters(const std::unique_ptr<Item>& item, const uint32_t pos,
72 bool getTimeStampToken(const std::unique_ptr<Item>& item, const uint32_t pos,
75 bool getKeyCharacteristics(const std::unique_ptr<Item>& item, const uint32_t pos,
78 bool getCertificateChain(const std::unique_ptr<Item>& item, const uint32_t pos,
81 bool getMultiBinaryArray(const std::unique_ptr<Item>& item, const uint32_t pos,
[all …]
/hardware/interfaces/keymaster/4.0/support/
Dkeymaster_utils.cpp70 auto pos = result.begin(); in authToken2HidlVec() local
71 *pos++ = 0; // Version byte in authToken2HidlVec()
72 pos = copy_bytes_to_iterator(token.challenge, pos); in authToken2HidlVec()
73 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec()
74 pos = copy_bytes_to_iterator(token.authenticatorId, pos); in authToken2HidlVec()
76 pos = copy_bytes_to_iterator(auth_type, pos); in authToken2HidlVec()
78 pos = copy_bytes_to_iterator(timestamp, pos); in authToken2HidlVec()
80 std::fill(pos, pos + kHmacSize, 0); in authToken2HidlVec()
82 std::copy(token.mac.begin(), token.mac.end(), pos); in authToken2HidlVec()
98 auto pos = buffer.begin(); in hidlVec2AuthToken() local
[all …]
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Filtering.cpp510 int ret = 0, cnt, num_rules = 0, pos = 0; in AddWanDLFilteringRule() local
562 if (pos < QMI_IPA_MAX_FILTERS_V01) in AddWanDLFilteringRule()
564 qmi_rule_msg.filter_spec_list[pos].filter_spec_identifier = pos; in AddWanDLFilteringRule()
565 qmi_rule_msg.filter_spec_list[pos].ip_type = QMI_IPA_IP_TYPE_V4_V01; in AddWanDLFilteringRule()
566 …qmi_rule_msg.filter_spec_list[pos].filter_action = GetQmiFilterAction(rule_table_v4->rules[cnt].ru… in AddWanDLFilteringRule()
567 qmi_rule_msg.filter_spec_list[pos].is_routing_table_index_valid = 1; in AddWanDLFilteringRule()
568 … qmi_rule_msg.filter_spec_list[pos].route_table_index = rule_table_v4->rules[cnt].rule.rt_tbl_idx; in AddWanDLFilteringRule()
569 qmi_rule_msg.filter_spec_list[pos].is_mux_id_valid = 1; in AddWanDLFilteringRule()
570 qmi_rule_msg.filter_spec_list[pos].mux_id = mux_id; in AddWanDLFilteringRule()
571 memcpy(&qmi_rule_msg.filter_spec_list[pos].filter_rule, in AddWanDLFilteringRule()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Dhevc_utils.cpp137 uint32 pos = 0; in isNewFrame() local
145 coef2 = buffer[pos++]; in isNewFrame()
146 coef3 = buffer[pos++]; in isNewFrame()
149 if (pos >= buffer_length) { in isNewFrame()
156 coef3 = buffer[pos++]; in isNewFrame()
165 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
179 if (pos + 2 > (nal_len + sizeofNalLengthField)) { in isNewFrame()
184 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
186 …DEBUG_PRINT_LOW("@#@# Pos = %x NalType = %x buflen = %u", pos-1, nalu_type, (unsigned int) buffer_… in isNewFrame()
206 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/
Dhevc_utils.cpp137 uint32 pos = 0; in isNewFrame() local
145 coef2 = buffer[pos++]; in isNewFrame()
146 coef3 = buffer[pos++]; in isNewFrame()
149 if (pos >= buffer_length) { in isNewFrame()
156 coef3 = buffer[pos++]; in isNewFrame()
165 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
179 if (pos + 2 > (nal_len + sizeofNalLengthField)) { in isNewFrame()
184 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
186 …DEBUG_PRINT_LOW("@#@# Pos = %x NalType = %x buflen = %u", pos-1, nalu_type, (unsigned int) buffer_… in isNewFrame()
206 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/qcom/sm8150/media/libarbitrarybytes/src/
Dhevc_utils.cpp135 uint32 pos = 0; in isNewFrame() local
143 coef2 = buffer[pos++]; in isNewFrame()
144 coef3 = buffer[pos++]; in isNewFrame()
147 if (pos >= buffer_length) { in isNewFrame()
154 coef3 = buffer[pos++]; in isNewFrame()
163 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
177 if (pos + 2 > (nal_len + sizeofNalLengthField)) { in isNewFrame()
182 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
184 …DEBUG_PRINT("@#@# Pos = %x NalType = %x buflen = %u", pos-1, nalu_type, (unsigned int) buffer_leng… in isNewFrame()
204 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Dhevc_utils.cpp137 uint32 pos = 0; in isNewFrame() local
145 coef2 = buffer[pos++]; in isNewFrame()
146 coef3 = buffer[pos++]; in isNewFrame()
149 if (pos >= buffer_length) { in isNewFrame()
156 coef3 = buffer[pos++]; in isNewFrame()
165 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
179 if (pos + 2 > (nal_len + sizeofNalLengthField)) { in isNewFrame()
184 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
186 …DEBUG_PRINT_LOW("@#@# Pos = %x NalType = %x buflen = %u", pos-1, nalu_type, (unsigned int) buffer_… in isNewFrame()
206 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/nxp/keymint/KM300/
DCborConverter.h66 std::optional<uint64_t> getUint64(const unique_ptr<Item>& item, const uint32_t pos);
69 getSharedSecretParameters(const std::unique_ptr<Item>& item, const uint32_t pos);
71 std::optional<string> getByteArrayStr(const unique_ptr<Item>& item, const uint32_t pos);
73 std::optional<string> getTextStr(const unique_ptr<Item>& item, const uint32_t pos);
76 const uint32_t pos);
79 const uint32_t pos);
90 const uint32_t pos);
93 getKeyCharacteristics(const std::unique_ptr<Item>& item, const uint32_t pos);
96 const uint32_t pos);
99 const uint32_t pos);
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dcam_queue.h79 struct cam_list *pos = NULL; in cam_queue_deq() local
83 pos = head->next; in cam_queue_deq()
84 if (pos != head) { in cam_queue_deq()
85 node = member_of(pos, cam_node_t, list); in cam_queue_deq()
103 struct cam_list *pos = NULL; in cam_queue_flush() local
107 pos = head->next; in cam_queue_flush()
109 while(pos != head) { in cam_queue_flush()
110 node = member_of(pos, cam_node_t, list); in cam_queue_flush()
111 pos = pos->next; in cam_queue_flush()
/hardware/interfaces/confirmationui/support/src/
Dcbor.cpp31 auto pos = state.data_; in writeBytes() local
35 *pos++ = getByte(value, 7); in writeBytes()
36 *pos++ = getByte(value, 6); in writeBytes()
37 *pos++ = getByte(value, 5); in writeBytes()
38 *pos++ = getByte(value, 4); in writeBytes()
41 *pos++ = getByte(value, 3); in writeBytes()
42 *pos++ = getByte(value, 2); in writeBytes()
45 *pos++ = getByte(value, 1); in writeBytes()
48 *pos++ = value; in writeBytes()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_queue.c112 struct cam_list *pos = NULL; in mm_qcamera_queue_dequeue() local
117 pos = head->next; in mm_qcamera_queue_dequeue()
119 pos = head->prev; in mm_qcamera_queue_dequeue()
121 if (pos != head) { in mm_qcamera_queue_dequeue()
122 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_dequeue()
140 struct cam_list *pos = NULL; in mm_qcamera_queue_flush() local
148 pos = head->next; in mm_qcamera_queue_flush()
150 while(pos != head) { in mm_qcamera_queue_flush()
151 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_flush()
152 pos = pos->next; in mm_qcamera_queue_flush()

12345678