Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/hardware/qcom/camera/QCamera2/HAL3/
DQCamera3StreamMem.cpp127 int QCamera3StreamMem::getFd(uint32_t index) in getFd() argument
131 if (index < mMaxHeapBuffers) in getFd()
132 return mHeapMem.getFd(index); in getFd()
134 return mGrallocMem.getFd(index); in getFd()
147 ssize_t QCamera3StreamMem::getSize(uint32_t index) in getSize() argument
151 if (index < mMaxHeapBuffers) in getSize()
152 return mHeapMem.getSize(index); in getSize()
154 return mGrallocMem.getSize(index); in getSize()
169 int QCamera3StreamMem::invalidateCache(uint32_t index) in invalidateCache() argument
173 if (index < mMaxHeapBuffers) in invalidateCache()
[all …]
DQCamera3Mem.cpp100 int QCamera3Memory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
108 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in cacheOpsInternal()
110 __func__, index, MM_CAMERA_MAX_NUM_FRAMES); in cacheOpsInternal()
114 if (0 == mMemInfo[index].handle) { in cacheOpsInternal()
115 ALOGE("%s: Buffer at %d not registered", __func__, index); in cacheOpsInternal()
122 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
123 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
124 cache_inv_data.length = (unsigned int)mMemInfo[index].size; in cacheOpsInternal()
131 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
132 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
[all …]
DQCamera3Mem.h49 int cleanCache(uint32_t index) in cleanCache() argument
51 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache()
53 int invalidateCache(uint32_t index) in invalidateCache() argument
55 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache()
57 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument
59 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache()
61 int getFd(uint32_t index);
62 ssize_t getSize(uint32_t index);
65 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0;
67 virtual void *getPtr(uint32_t index) = 0;
[all …]
DQCamera3StreamMem.h56 int getFd(uint32_t index);
57 ssize_t getSize(uint32_t index);
58 int invalidateCache(uint32_t index);
59 int cleanInvalidateCache(uint32_t index);
61 mm_camera_buf_def_t &bufDef, uint32_t index);
62 void *getPtr(uint32_t index);
64 bool valid(uint32_t index);
68 int unregisterBuffer(uint32_t index);
70 void *getBufferHandle(uint32_t index);
82 int32_t markFrameNumber(uint32_t index, uint32_t frameNumber);
[all …]
/hardware/qcom/display/msm8960/liboverlay/
Doverlay.h92 void validate(int index);
111 static void setUse(int index);
112 static void resetUse(int index);
113 static bool isUsed(int index);
114 static bool isNotUsed(int index);
117 static void setAllocation(int index);
118 static void resetAllocation(int index);
119 static bool isAllocated(int index);
120 static bool isNotAllocated(int index);
153 inline void Overlay::validate(int index) { in validate() argument
[all …]
Doverlay.cpp103 int index = (int)dest; in nextPipe() local
106 mPipeBook[index].mDisplay = dpy; in nextPipe()
107 if(not mPipeBook[index].valid()) { in nextPipe()
108 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe()
124 int index = (int)dest; in commit() local
125 validate(index); in commit()
127 if(mPipeBook[index].mPipe->commit()) { in commit()
132 int dpy = mPipeBook[index].mDisplay; in commit()
142 int index = (int)dest; in queueBuffer() local
144 validate(index); in queueBuffer()
[all …]
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/
Dviddec_pm_tags.c131 uint32_t index=0, t_index=0; in viddec_pm_add_tags_to_pendinglist() local
139 index++; in viddec_pm_add_tags_to_pendinglist()
143 while( (index < list->num_items) && (list->data[index].edpos <= (uint32_t)list->total_bytes)) in viddec_pm_add_tags_to_pendinglist()
145 pend->pending_tags[t_index] = list->sc_ibuf[index].id; in viddec_pm_add_tags_to_pendinglist()
146 index++;t_index++; in viddec_pm_add_tags_to_pendinglist()
148 if( (index < list->num_items) && (list->data[index].stpos < (uint32_t)list->total_bytes)) in viddec_pm_add_tags_to_pendinglist()
150 pend->pending_tags[t_index] = list->sc_ibuf[index].id; in viddec_pm_add_tags_to_pendinglist()
155 …g_tag_item(viddec_emitter *emit, vidded_pm_pending_tags_t *pend, uint32_t index, uint32_t using_ne… in viddec_pm_emit_pending_tag_item() argument
157 viddec_emit_assoc_tag(emit, pend->pending_tags[index], using_next); in viddec_pm_emit_pending_tag_item()
158 pend->pending_tags[index] = INVALID_ENTRY; in viddec_pm_emit_pending_tag_item()
[all …]
/hardware/qcom/display/msm8974/liboverlay/
Doverlay.h114 void validate(int index);
133 static void setUse(int index);
134 static void resetUse(int index);
135 static bool isUsed(int index);
136 static bool isNotUsed(int index);
139 static void setAllocation(int index);
140 static void resetAllocation(int index);
141 static bool isAllocated(int index);
142 static bool isNotAllocated(int index);
177 inline void Overlay::validate(int index) { in validate() argument
[all …]
Doverlay.cpp106 int index = (int)dest; in nextPipe() local
107 mPipeBook[index].mDisplay = dpy; in nextPipe()
108 mPipeBook[index].mMixer = mixer; in nextPipe()
109 if(not mPipeBook[index].valid()) { in nextPipe()
110 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe()
138 int index = (int)dest; in commit() local
139 validate(index); in commit()
141 if(mPipeBook[index].mPipe->commit()) { in commit()
144 if(sForceSetBitmap & (1 << mPipeBook[index].mDisplay)) { in commit()
145 mPipeBook[index].mPipe->forceSet(); in commit()
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/buffers/
DBufferCache.cpp37 ssize_t index = mBufferPool.indexOfKey(handle); in addMapper() local
38 if (index >= 0) { in addMapper()
44 index = mBufferPool.add(handle, mapper); in addMapper()
45 if (index < 0) { in addMapper()
46 ETRACE("failed to add mapper. err = %d", (int)index); in addMapper()
55 ssize_t index; in removeMapper() local
62 index = mBufferPool.removeItem(mapper->getKey()); in removeMapper()
63 if (index < 0) { in removeMapper()
64 WTRACE("failed to remove mapper. err = %d", (int)index); in removeMapper()
73 ssize_t index = mBufferPool.indexOfKey(handle); in getMapper() local
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/buffers/
DBufferCache.cpp37 ssize_t index = mBufferPool.indexOfKey(handle); in addMapper() local
38 if (index >= 0) { in addMapper()
44 index = mBufferPool.add(handle, mapper); in addMapper()
45 if (index < 0) { in addMapper()
46 ELOGTRACE("failed to add mapper. err = %d", index); in addMapper()
55 ssize_t index; in removeMapper() local
62 index = mBufferPool.removeItem(mapper->getKey()); in removeMapper()
63 if (index < 0) { in removeMapper()
64 WLOGTRACE("failed to remove mapper. err = %d", index); in removeMapper()
73 ssize_t index = mBufferPool.indexOfKey(handle); in getMapper() local
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_ucm.c110 int verb_index, list_size, index = 0; in snd_use_case_get_list() local
126 while(strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_get_list()
128 ALOGV("Index:%d Verb:%s", index, in snd_use_case_get_list()
129 uc_mgr->card_ctxt_ptr->verb_list[index]); in snd_use_case_get_list()
130 index++; in snd_use_case_get_list()
134 return index; in snd_use_case_get_list()
144 verb_list[index].use_case_name, in snd_use_case_get_list()
145 (strlen(verb_list[index].use_case_name)+1))) { in snd_use_case_get_list()
146 index++; in snd_use_case_get_list()
148 verb_index = index; in snd_use_case_get_list()
[all …]
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/mp2/parser/
Dviddec_mpeg2_frame_attr.c13 unsigned int index = 0; in viddec_mpeg2_print_attr() local
25 for (index = 0; index < attr->mpeg2.number_of_frame_center_offsets; index++) in viddec_mpeg2_print_attr()
27 MPEG2_FA_DEB("\tPan_Scan_Offset_%d= %dx%d\n", index, in viddec_mpeg2_print_attr()
28 attr->mpeg2.frame_center_offset[index].horz, in viddec_mpeg2_print_attr()
29 attr->mpeg2.frame_center_offset[index].vert); in viddec_mpeg2_print_attr()
39 unsigned int index = 0; in viddec_mpeg2_set_default_values() local
42 for (index = 0; index < MPEG2_MAX_VID_OFFSETS ; index++) in viddec_mpeg2_set_default_values()
44 attrs->mpeg2.frame_center_offset[index].horz = 0; in viddec_mpeg2_set_default_values()
45 attrs->mpeg2.frame_center_offset[index].vert = 0; in viddec_mpeg2_set_default_values()
101 unsigned int index = 0; in viddec_mpeg2_translate_attr() local
[all …]
/hardware/qcom/display/msm8226/liboverlay/
Doverlay.h160 void validate(int index);
201 static void setUse(int index);
202 static void resetUse(int index);
203 static bool isUsed(int index);
204 static bool isNotUsed(int index);
207 static void setAllocation(int index);
208 static void resetAllocation(int index);
209 static bool isAllocated(int index);
210 static bool isNotAllocated(int index);
255 inline void Overlay::validate(int index) { in validate() argument
[all …]
/hardware/qcom/display/msm8084/liboverlay/
Doverlay.h155 void validate(int index);
193 static void setUse(int index);
194 static void resetUse(int index);
195 static bool isUsed(int index);
196 static bool isNotUsed(int index);
199 static void setAllocation(int index);
200 static void resetAllocation(int index);
201 static bool isAllocated(int index);
202 static bool isNotAllocated(int index);
247 inline void Overlay::validate(int index) { in validate() argument
[all …]
Doverlay.cpp135 int index = (int)dest; in nextPipe() local
136 mPipeBook[index].mDisplay = dpy; in nextPipe()
137 mPipeBook[index].mMixer = mixer; in nextPipe()
138 if(not mPipeBook[index].valid()) { in nextPipe()
139 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe()
140 mPipeBook[index].mSession = PipeBook::NONE; in nextPipe()
285 int index = (int)dest; in commit() local
286 validate(index); in commit()
288 if(mPipeBook[index].mPipe->commit()) { in commit()
292 int dpy = mPipeBook[index].mDisplay; in commit()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_lookahead.c33 unsigned int index = *idx; in pop() local
34 struct lookahead_entry *buf = ctx->buf + index; in pop()
36 assert(index < ctx->max_sz); in pop()
37 if (++index >= ctx->max_sz) in pop()
38 index -= ctx->max_sz; in pop()
39 *idx = index; in pop()
178 int index) { in vp9_lookahead_peek() argument
181 if (index >= 0) { in vp9_lookahead_peek()
183 if (index < (int)ctx->sz) { in vp9_lookahead_peek()
184 index += ctx->read_idx; in vp9_lookahead_peek()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dlookahead.c33 unsigned int index = *idx; in pop() local
34 struct lookahead_entry *buf = ctx->buf + index; in pop()
36 assert(index < ctx->max_sz); in pop()
37 if(++index >= ctx->max_sz) in pop()
38 index -= ctx->max_sz; in pop()
39 *idx = index; in pop()
195 unsigned int index, in vp8_lookahead_peek() argument
202 assert(index < ctx->max_sz - 1); in vp8_lookahead_peek()
203 if(index < ctx->sz) in vp8_lookahead_peek()
205 index += ctx->read_idx; in vp8_lookahead_peek()
[all …]
/hardware/qcom/camera/QCamera2/HAL/
DQCameraMem.h52 int cleanCache(uint32_t index) in cleanCache() argument
54 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache()
56 int invalidateCache(uint32_t index) in invalidateCache() argument
58 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache()
60 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument
62 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache()
64 int getFd(uint32_t index) const;
65 ssize_t getSize(uint32_t index) const;
71 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0;
73 virtual camera_memory_t *getMemory(uint32_t index,
[all …]
DQCameraMem.cpp104 int QCameraMemory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
116 if (index >= mBufferCount) { in cacheOpsInternal()
117 ALOGE("%s: index %d out of bound [0, %d)", __func__, index, mBufferCount); in cacheOpsInternal()
124 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
125 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
128 mMemInfo[index].size; in cacheOpsInternal()
135 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
136 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
153 int QCameraMemory::getFd(uint32_t index) const in getFd()
155 if (index >= mBufferCount) in getFd()
[all …]
/hardware/qcom/display/msm8994/liboverlay/
Doverlay.h166 void validate(int index);
215 static void setUse(int index);
216 static void resetUse(int index);
217 static bool isUsed(int index);
218 static bool isNotUsed(int index);
221 static void setAllocation(int index);
222 static void resetAllocation(int index);
223 static bool isAllocated(int index);
224 static bool isNotAllocated(int index);
274 inline void Overlay::validate(int index) { in validate() argument
[all …]
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/
DOMXReprocess.cpp115 for ( int index = 0 ; index < portData->mMaxQueueable ; index++ ) { in startReprocess() local
117 portData->mBufferHeader[index]->pBuffer, in startReprocess()
118 portData->mBufferHeader[index]->nOffset, in startReprocess()
119 portData->mBufferHeader[index]->nFilledLen); in startReprocess()
120 portData->mStatus[index] = OMXCameraPortParameters::FILL; in startReprocess()
122 (OMX_BUFFERHEADERTYPE*)portData->mBufferHeader[index]); in startReprocess()
166 for (int index = 0 ; index < portData->mNumBufs ; index++) { in stopReprocess() local
168 ( unsigned int ) portData->mBufferHeader[index]->pBuffer); in stopReprocess()
171 (OMX_BUFFERHEADERTYPE*)portData->mBufferHeader[index]); in stopReprocess()
308 for (int index = 0 ; index < portData->mNumBufs ; index++) in UseBuffersReprocess() local
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/planes/
DDisplayPlaneManager.cpp125 void DisplayPlaneManager::putPlane(int index, uint32_t& mask) in putPlane() argument
127 if (index < 0 || index >= 32) in putPlane()
130 int bit = (1 << index); in putPlane()
133 WLOGTRACE("bit %d was set", index); in putPlane()
140 int DisplayPlaneManager::getPlane(uint32_t& mask, int index) in getPlane() argument
142 if (!mask || index < 0 || index > mTotalPlaneCount) in getPlane()
145 int bit = (1 << index); in getPlane()
148 return index; in getPlane()
154 DisplayPlane* DisplayPlaneManager::getPlane(int type, int index) in getPlane() argument
163 int freePlaneIndex = getPlane(mReclaimedPlanes[type], index); in getPlane()
[all …]
/hardware/intel/img/hwcomposer/merrifield/common/planes/
DDisplayPlaneManager.cpp125 void DisplayPlaneManager::putPlane(int index, uint32_t& mask) in putPlane() argument
127 if (index < 0 || index >= 32) in putPlane()
130 int bit = (1 << index); in putPlane()
133 WTRACE("bit %d was set", index); in putPlane()
140 int DisplayPlaneManager::getPlane(uint32_t& mask, int index) in getPlane() argument
142 if (!mask || index < 0 || index > mTotalPlaneCount) in getPlane()
145 int bit = (1 << index); in getPlane()
148 return index; in getPlane()
154 DisplayPlane* DisplayPlaneManager::getPlane(int type, int index) in getPlane() argument
163 int freePlaneIndex = getPlane(mReclaimedPlanes[type], index); in getPlane()
[all …]
/hardware/qcom/display/msm8960/libhwcomposer/
Dhwc_mdpcomp.cpp67 for(int index = 0; index < mCurrentFrame.layerCount; index++ ) in dump() local
69 index, in dump()
70 (mCurrentFrame.isFBComposed[index] ? "YES" : "NO"), in dump()
71 mCurrentFrame.layerToMDP[index], in dump()
72 (mCurrentFrame.isFBComposed[index] ? in dump()
74 (mCurrentFrame.isFBComposed[index] ? mCurrentFrame.fbZ : in dump()
75 mCurrentFrame.mdpToLayer[mCurrentFrame.layerToMDP[index]].pipeInfo->zOrder)); in dump()
150 for(int index = 0; index < ctx->listStats[mDpy].numAppLayers; index++) { in setMDPCompLayerFlags() local
151 hwc_layer_1_t* layer = &(list->hwLayers[index]); in setMDPCompLayerFlags()
152 if(!mCurrentFrame.isFBComposed[index]) { in setMDPCompLayerFlags()
[all …]

12345678910>>...18