/device/google/contexthub/contexthubhal/ |
D | message_buf.h | 57 size_t pos; variable 62 pos = 0; in MessageBuf() 68 pos = 0; in MessageBuf() 74 size_t getPos() const { return pos; } in getPos() 75 size_t getRoom() const { return size - pos; } in getRoom() 77 if (pos == size) { in readU8() 80 return data[pos++]; in readU8() 83 if (pos == size || readOnly) in writeU8() 85 data[pos++] = val; in writeU8() 88 if (pos > (size - sizeof(uint16_t))) { in readU16() [all …]
|
D | system_comms.h | 252 void next(SessionMap::iterator &pos) in next() argument 255 pos->second->isDone() ? pos = sessions_.erase(pos) : ++pos; in next()
|
D | system_comms.cpp | 62 size_t pos = buf.getPos(); in readNanohubAppInfo() local 67 if ((buf.getPos() - pos) != sizeof(info)) { in readNanohubAppInfo() 73 size_t pos = buf.getPos(); in readNanohubMemInfo() local 86 if ((buf.getPos() - pos) != sizeof(mi)) { in readNanohubMemInfo() 517 for (auto pos = sessions_.begin(); in handleRx() local 518 pos != sessions_.end() && status > 0; next(pos)) { in handleRx() 519 Session *session = pos->second; in handleRx()
|
/device/huawei/angler/camera/QCamera2/util/ |
D | QCameraQueue.cpp | 220 struct cam_list *pos = NULL; in peek() local 225 pos = head->next; in peek() 226 if (pos != head) { in peek() 227 node = member_of(pos, camera_q_node, list); in peek() 255 struct cam_list *pos = NULL; in dequeue() local 261 pos = head->next; in dequeue() 263 pos = head->prev; in dequeue() 265 if (pos != head) { in dequeue() 266 node = member_of(pos, camera_q_node, list); in dequeue() 294 struct cam_list *pos = NULL; in flush() local [all …]
|
D | QCameraFlash.cpp | 74 for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) { in QCameraFlash() local 75 m_flashFds[pos] = -1; in QCameraFlash() 90 for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) { in ~QCameraFlash() local 91 if (m_flashFds[pos] >= 0) in ~QCameraFlash() 93 setFlashMode(pos, false); in ~QCameraFlash() 94 close(m_flashFds[pos]); in ~QCameraFlash() 95 m_flashFds[pos] = -1; in ~QCameraFlash()
|
/device/lge/bullhead/camera/QCamera2/util/ |
D | QCameraQueue.cpp | 220 struct cam_list *pos = NULL; in peek() local 225 pos = head->next; in peek() 226 if (pos != head) { in peek() 227 node = member_of(pos, camera_q_node, list); in peek() 255 struct cam_list *pos = NULL; in dequeue() local 261 pos = head->next; in dequeue() 263 pos = head->prev; in dequeue() 265 if (pos != head) { in dequeue() 266 node = member_of(pos, camera_q_node, list); in dequeue() 294 struct cam_list *pos = NULL; in flush() local [all …]
|
D | QCameraFlash.cpp | 74 for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) { in QCameraFlash() local 75 m_flashFds[pos] = -1; in QCameraFlash() 90 for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) { in ~QCameraFlash() local 91 if (m_flashFds[pos] >= 0) in ~QCameraFlash() 93 setFlashMode(pos, false); in ~QCameraFlash() 94 close(m_flashFds[pos]); in ~QCameraFlash() 95 m_flashFds[pos] = -1; in ~QCameraFlash()
|
/device/moto/shamu/camera/QCamera2/util/ |
D | QCameraQueue.cpp | 224 struct cam_list *pos = NULL; in dequeue() local 230 pos = head->next; in dequeue() 232 pos = head->prev; in dequeue() 234 if (pos != head) { in dequeue() 235 node = member_of(pos, camera_q_node, list); in dequeue() 263 struct cam_list *pos = NULL; in flush() local 268 pos = head->next; in flush() 270 while(pos != head) { in flush() 271 node = member_of(pos, camera_q_node, list); in flush() 272 pos = pos->next; in flush() [all …]
|
D | QCameraFlash.cpp | 74 for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) { in QCameraFlash() local 75 m_flashFds[pos] = -1; in QCameraFlash() 90 for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) { in ~QCameraFlash() local 91 if (m_flashFds[pos] >= 0) in ~QCameraFlash() 93 setFlashMode(pos, false); in ~QCameraFlash() 94 close(m_flashFds[pos]); in ~QCameraFlash() 95 m_flashFds[pos] = -1; in ~QCameraFlash()
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 66 struct cam_list *pos = NULL; in mm_jpeg_queue_enq_head() local 78 pos = head->next; in mm_jpeg_queue_enq_head() 81 cam_list_insert_before_node(&node->list, pos); in mm_jpeg_queue_enq_head() 93 struct cam_list *pos = NULL; in mm_jpeg_queue_deq() local 97 pos = head->next; in mm_jpeg_queue_deq() 98 if (pos != head) { in mm_jpeg_queue_deq() 99 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_deq() 137 struct cam_list *pos = NULL; in mm_jpeg_queue_flush() local 141 pos = head->next; in mm_jpeg_queue_flush() 143 while(pos != head) { in mm_jpeg_queue_flush() [all …]
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 66 struct cam_list *pos = NULL; in mm_jpeg_queue_enq_head() local 78 pos = head->next; in mm_jpeg_queue_enq_head() 81 cam_list_insert_before_node(&node->list, pos); in mm_jpeg_queue_enq_head() 93 struct cam_list *pos = NULL; in mm_jpeg_queue_deq() local 99 pos = head->next; in mm_jpeg_queue_deq() 100 if (pos != head) { in mm_jpeg_queue_deq() 101 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_deq() 138 struct cam_list *pos = NULL; in mm_jpeg_queue_flush() local 142 pos = head->next; in mm_jpeg_queue_flush() 144 while(pos != head) { in mm_jpeg_queue_flush() [all …]
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 66 struct cam_list *pos = NULL; in mm_jpeg_queue_enq_head() local 78 pos = head->next; in mm_jpeg_queue_enq_head() 81 cam_list_insert_before_node(&node->list, pos); in mm_jpeg_queue_enq_head() 93 struct cam_list *pos = NULL; in mm_jpeg_queue_deq() local 99 pos = head->next; in mm_jpeg_queue_deq() 100 if (pos != head) { in mm_jpeg_queue_deq() 101 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_deq() 138 struct cam_list *pos = NULL; in mm_jpeg_queue_flush() local 142 pos = head->next; in mm_jpeg_queue_flush() 144 while(pos != head) { in mm_jpeg_queue_flush() [all …]
|
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_queue.c | 69 struct cam_list *pos = NULL; in mm_jpeg_queue_peek() local 73 pos = head->next; in mm_jpeg_queue_peek() 74 if (pos != head) { in mm_jpeg_queue_peek() 75 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_peek() 90 struct cam_list *pos = NULL; in mm_jpeg_queue_deq() local 94 pos = head->next; in mm_jpeg_queue_deq() 95 if (pos != head) { in mm_jpeg_queue_deq() 96 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_deq() 134 struct cam_list *pos = NULL; in mm_jpeg_queue_flush() local 138 pos = head->next; in mm_jpeg_queue_flush() [all …]
|
/device/huawei/angler/camera/QCamera2/stack/common/ |
D | cam_queue.h | 75 struct cam_list *pos = NULL; in cam_queue_deq() local 79 pos = head->next; in cam_queue_deq() 80 if (pos != head) { in cam_queue_deq() 81 node = member_of(pos, cam_node_t, list); in cam_queue_deq() 99 struct cam_list *pos = NULL; in cam_queue_flush() local 103 pos = head->next; in cam_queue_flush() 105 while(pos != head) { in cam_queue_flush() 106 node = member_of(pos, cam_node_t, list); in cam_queue_flush() 107 pos = pos->next; in cam_queue_flush()
|
/device/moto/shamu/camera/QCamera2/stack/common/ |
D | cam_queue.h | 77 struct cam_list *pos = NULL; in cam_queue_deq() local 81 pos = head->next; in cam_queue_deq() 82 if (pos != head) { in cam_queue_deq() 83 node = member_of(pos, cam_node_t, list); in cam_queue_deq() 101 struct cam_list *pos = NULL; in cam_queue_flush() local 105 pos = head->next; in cam_queue_flush() 107 while(pos != head) { in cam_queue_flush() 108 node = member_of(pos, cam_node_t, list); in cam_queue_flush() 109 pos = pos->next; in cam_queue_flush()
|
/device/lge/bullhead/camera/QCamera2/stack/common/ |
D | cam_queue.h | 75 struct cam_list *pos = NULL; in cam_queue_deq() local 79 pos = head->next; in cam_queue_deq() 80 if (pos != head) { in cam_queue_deq() 81 node = member_of(pos, cam_node_t, list); in cam_queue_deq() 99 struct cam_list *pos = NULL; in cam_queue_flush() local 103 pos = head->next; in cam_queue_flush() 105 while(pos != head) { in cam_queue_flush() 106 node = member_of(pos, cam_node_t, list); in cam_queue_flush() 107 pos = pos->next; in cam_queue_flush()
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_queue.c | 111 struct cam_list *pos = NULL; in mm_qcamera_queue_dequeue() local 116 pos = head->next; in mm_qcamera_queue_dequeue() 118 pos = head->prev; in mm_qcamera_queue_dequeue() 120 if (pos != head) { in mm_qcamera_queue_dequeue() 121 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_dequeue() 139 struct cam_list *pos = NULL; in mm_qcamera_queue_flush() local 147 pos = head->next; in mm_qcamera_queue_flush() 149 while(pos != head) { in mm_qcamera_queue_flush() 150 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_flush() 151 pos = pos->next; in mm_qcamera_queue_flush()
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_queue.c | 111 struct cam_list *pos = NULL; in mm_qcamera_queue_dequeue() local 116 pos = head->next; in mm_qcamera_queue_dequeue() 118 pos = head->prev; in mm_qcamera_queue_dequeue() 120 if (pos != head) { in mm_qcamera_queue_dequeue() 121 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_dequeue() 139 struct cam_list *pos = NULL; in mm_qcamera_queue_flush() local 147 pos = head->next; in mm_qcamera_queue_flush() 149 while(pos != head) { in mm_qcamera_queue_flush() 150 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_flush() 151 pos = pos->next; in mm_qcamera_queue_flush()
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_queue.c | 111 struct cam_list *pos = NULL; in mm_qcamera_queue_dequeue() local 116 pos = head->next; in mm_qcamera_queue_dequeue() 118 pos = head->prev; in mm_qcamera_queue_dequeue() 120 if (pos != head) { in mm_qcamera_queue_dequeue() 121 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_dequeue() 139 struct cam_list *pos = NULL; in mm_qcamera_queue_flush() local 147 pos = head->next; in mm_qcamera_queue_flush() 149 while(pos != head) { in mm_qcamera_queue_flush() 150 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_flush() 151 pos = pos->next; in mm_qcamera_queue_flush()
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_data.c | 84 struct cam_list *pos = NULL; in mm_camera_queue_deq() local 88 pos = head->next; in mm_camera_queue_deq() 89 if (pos != head) { in mm_camera_queue_deq() 90 node = member_of(pos, mm_camera_q_node_t, list); in mm_camera_queue_deq() 116 struct cam_list *pos = NULL; in mm_camera_queue_flush() local 120 pos = head->next; in mm_camera_queue_flush() 122 while(pos != head) { in mm_camera_queue_flush() 123 node = member_of(pos, mm_camera_q_node_t, list); in mm_camera_queue_flush() 124 pos = pos->next; in mm_camera_queue_flush()
|
/device/google/contexthub/firmware/src/cpu/x86/ |
D | atomicBitset.c | 63 uint32_t pos, i, numWords = (set->numBits + 31) / 32; in atomicBitsetFindClearAndSet() local 74 …pos = __builtin_ctz(~old); /* This will allocate in diff order than ARM. Since we never made any p… in atomicBitsetFindClearAndSet() 75 new = old | (1 << pos); in atomicBitsetFindClearAndSet() 78 return 32 * i + pos; in atomicBitsetFindClearAndSet()
|
/device/google/contexthub/lib/nanohub/ |
D | nanoapp.c | 103 int pos; in doPrintHash() local 105 for (i = 0, pos = 0; i < size; ++i, pos += increment) in doPrintHash() 106 fprintf(out, "%08" PRIx32, hash[pos]); in doPrintHash()
|
/device/generic/goldfish/libqemu/ |
D | test_guest_2.c | 164 int pos, len; in main() local 173 pos = 0; in main() 176 ret = pipe_recv(pipe, buffer2 + pos, len); in main() 185 pos += ret; in main()
|
/device/moto/shamu/bdAddrLoader/ |
D | addrloader.c | 113 int pos = 0; in formattingBdAddr() local 115 pos = strlen(szBDAddr); in formattingBdAddr() 117 szBDAddr[pos-j] = szBDAddr[pos-j-1]; in formattingBdAddr() 119 szBDAddr[pos-j]=cSep; in formattingBdAddr()
|
/device/google/contexthub/util/common/ |
D | file.cpp | 88 off64_t File::seekTo(off64_t pos, int whence) { in seekTo() argument 89 off64_t new_pos = lseek64(mFd, pos, whence); in seekTo()
|