Lines Matching refs:bufDef

266         mm_camera_buf_def_t &bufDef, uint32_t index) const  in getBufDef()  argument
272 bufDef.fd = mMemInfo[index].fd; in getBufDef()
273 bufDef.frame_len = mMemInfo[index].size; in getBufDef()
274 bufDef.buf_type = CAM_STREAM_BUF_TYPE_MPLANE; in getBufDef()
275 bufDef.mem_info = (void *)this; in getBufDef()
276 bufDef.planes_buf.num_planes = (int8_t)offset.num_planes; in getBufDef()
277 bufDef.buffer = getPtr(index); in getBufDef()
278 bufDef.buf_idx = index; in getBufDef()
281 bufDef.planes_buf.planes[0].length = offset.mp[0].len; in getBufDef()
282 bufDef.planes_buf.planes[0].m.userptr = (long unsigned int)mMemInfo[index].fd; in getBufDef()
283 bufDef.planes_buf.planes[0].data_offset = offset.mp[0].offset; in getBufDef()
284 bufDef.planes_buf.planes[0].reserved[0] = 0; in getBufDef()
285 for (int i = 1; i < bufDef.planes_buf.num_planes; i++) { in getBufDef()
286 bufDef.planes_buf.planes[i].length = offset.mp[i].len; in getBufDef()
287 bufDef.planes_buf.planes[i].m.userptr = (long unsigned int)mMemInfo[i].fd; in getBufDef()
288 bufDef.planes_buf.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
289 bufDef.planes_buf.planes[i].reserved[0] = in getBufDef()
290 bufDef.planes_buf.planes[i-1].reserved[0] + in getBufDef()
291 bufDef.planes_buf.planes[i-1].length; in getBufDef()
314 mm_camera_buf_def_t &bufDef, in getUserBufDef() argument
329 bufDef.fd = mMemInfo[count].fd; in getUserBufDef()
330 bufDef.buf_type = CAM_STREAM_BUF_TYPE_USERPTR; in getUserBufDef()
331 bufDef.frame_len = buf_info.size; in getUserBufDef()
332 bufDef.mem_info = (void *)this; in getUserBufDef()
333 bufDef.buffer = (void *)((uint8_t *)getPtr(count) in getUserBufDef()
335 bufDef.buf_idx = index; in getUserBufDef()
336 bufDef.user_buf.num_buffers = (int8_t)buf_info.frame_buf_cnt; in getUserBufDef()
337 bufDef.user_buf.bufs_used = (int8_t)buf_info.frame_buf_cnt; in getUserBufDef()
340 cont_buf = (struct msm_camera_user_buf_cont_t *)bufDef.buffer; in getUserBufDef()
341 cont_buf->buf_cnt = bufDef.user_buf.num_buffers; in getUserBufDef()
343 for (int i = 0; i < bufDef.user_buf.num_buffers; i++) { in getUserBufDef()
345 bufDef.user_buf.buf_idx[i] = -1; in getUserBufDef()
349 bufDef.user_buf.plane_buf = planeBufDef; in getUserBufDef()
352 bufDef.user_buf.num_buffers, index, plane_idx); in getUserBufDef()