Lines Matching refs:caller
16 const char *tag, const char *caller) in mpp_buffer_import_with_tag() argument
19 mpp_err("mpp_buffer_commit invalid input: info NULL from %s\n", caller); in mpp_buffer_import_with_tag()
31 p->type, info->type, p->mode, caller); in mpp_buffer_import_with_tag()
44 ret = mpp_buffer_create(tag, caller, p, info, &buf); in mpp_buffer_import_with_tag()
47 ret = mpp_buffer_create(tag, caller, p, info, NULL); in mpp_buffer_import_with_tag()
53 const char *tag, const char *caller) in mpp_buffer_get_with_tag() argument
57 group, buffer, size, caller); in mpp_buffer_get_with_tag()
70 MppBufferImpl *buf = mpp_buffer_get_unused(p, size, caller); in mpp_buffer_get_with_tag()
81 mpp_buffer_create(tag, caller, p, &info, &buf); in mpp_buffer_get_with_tag()
88 MPP_RET mpp_buffer_put_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_put_with_caller() argument
91 mpp_err("mpp_buffer_put invalid input: buffer NULL from %s\n", caller); in mpp_buffer_put_with_caller()
95 return mpp_buffer_ref_dec((MppBufferImpl*)buffer, caller); in mpp_buffer_put_with_caller()
98 MPP_RET mpp_buffer_inc_ref_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_inc_ref_with_caller() argument
101 mpp_err("mpp_buffer_inc_ref invalid input: buffer NULL from %s\n", caller); in mpp_buffer_inc_ref_with_caller()
105 return mpp_buffer_ref_inc((MppBufferImpl*)buffer, caller); in mpp_buffer_inc_ref_with_caller()
108 MPP_RET mpp_buffer_discard_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_discard_with_caller() argument
111 mpp_err("mpp_buffer_discard invalid input: buffer NULL from %s\n", caller); in mpp_buffer_discard_with_caller()
115 return mpp_buffer_discard((MppBufferImpl*)buffer, caller); in mpp_buffer_discard_with_caller()
118 …ffer_read_with_caller(MppBuffer buffer, size_t offset, void *data, size_t size, const char *caller) in mpp_buffer_read_with_caller() argument
122 buffer, data, caller); in mpp_buffer_read_with_caller()
131 mpp_buffer_mmap(p, caller); in mpp_buffer_read_with_caller()
141 …fer_write_with_caller(MppBuffer buffer, size_t offset, void *data, size_t size, const char *caller) in mpp_buffer_write_with_caller() argument
145 buffer, data, caller); in mpp_buffer_write_with_caller()
156 mpp_buffer_mmap(p, caller); in mpp_buffer_write_with_caller()
166 void *mpp_buffer_get_ptr_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_ptr_with_caller() argument
169 mpp_err("mpp_buffer_get_ptr invalid NULL input from %s\n", caller); in mpp_buffer_get_ptr_with_caller()
175 mpp_buffer_mmap(p, caller); in mpp_buffer_get_ptr_with_caller()
179 mpp_err("mpp_buffer_get_ptr buffer %p ret NULL from %s\n", buffer, caller); in mpp_buffer_get_ptr_with_caller()
184 int mpp_buffer_get_fd_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_fd_with_caller() argument
187 mpp_err("mpp_buffer_get_fd invalid NULL input from %s\n", caller); in mpp_buffer_get_fd_with_caller()
195 mpp_err("mpp_buffer_get_fd buffer %p fd %d from %s\n", buffer, fd, caller); in mpp_buffer_get_fd_with_caller()
200 size_t mpp_buffer_get_size_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_size_with_caller() argument
203 mpp_err("mpp_buffer_get_size invalid NULL input from %s\n", caller); in mpp_buffer_get_size_with_caller()
209 mpp_err("mpp_buffer_get_size buffer %p ret zero size from %s\n", buffer, caller); in mpp_buffer_get_size_with_caller()
214 int mpp_buffer_get_index_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_index_with_caller() argument
217 mpp_err("mpp_buffer_get_index invalid NULL input from %s\n", caller); in mpp_buffer_get_index_with_caller()
226 const char *caller) in mpp_buffer_set_index_with_caller() argument
229 mpp_err("mpp_buffer_set_index invalid NULL input from %s\n", caller); in mpp_buffer_set_index_with_caller()
238 size_t mpp_buffer_get_offset_with_caller(MppBuffer buffer, const char *caller) in mpp_buffer_get_offset_with_caller() argument
241 mpp_err("mpp_buffer_get_offset invalid NULL input from %s\n", caller); in mpp_buffer_get_offset_with_caller()
249 MPP_RET mpp_buffer_set_offset_with_caller(MppBuffer buffer, size_t offset, const char *caller) in mpp_buffer_set_offset_with_caller() argument
252 mpp_err("mpp_buffer_set_offset invalid NULL input from %s\n", caller); in mpp_buffer_set_offset_with_caller()
261 MPP_RET mpp_buffer_info_get_with_caller(MppBuffer buffer, MppBufferInfo *info, const char *caller) in mpp_buffer_info_get_with_caller() argument
265 buffer, info, caller); in mpp_buffer_info_get_with_caller()
271 mpp_buffer_mmap(p, caller); in mpp_buffer_info_get_with_caller()
274 (void)caller; in mpp_buffer_info_get_with_caller()
278 static MPP_RET check_buf_need_sync(MppBuffer buffer, MPP_RET *ret, const char *caller) in check_buf_need_sync() argument
281 mpp_err("check buffer found NULL pointer from %s\n", caller); in check_buf_need_sync()
288 mpp_err("check fd found invalid fd %d from %s\n", impl->info.fd, caller); in check_buf_need_sync()
301 MPP_RET mpp_buffer_sync_begin_f(MppBuffer buffer, RK_S32 ro, const char* caller) in mpp_buffer_sync_begin_f() argument
305 if (check_buf_need_sync(buffer, &ret, caller)) in mpp_buffer_sync_begin_f()
310 return mpp_dmabuf_sync_begin(impl->info.fd, ro, caller); in mpp_buffer_sync_begin_f()
313 MPP_RET mpp_buffer_sync_end_f(MppBuffer buffer, RK_S32 ro, const char* caller) in mpp_buffer_sync_end_f() argument
317 if (check_buf_need_sync(buffer, &ret, caller)) in mpp_buffer_sync_end_f()
322 return mpp_dmabuf_sync_end(impl->info.fd, ro, caller); in mpp_buffer_sync_end_f()
325 …sync_partial_begin_f(MppBuffer buffer, RK_S32 ro, RK_U32 offset, RK_U32 length, const char* caller) in mpp_buffer_sync_partial_begin_f() argument
329 if (check_buf_need_sync(buffer, &ret, caller)) in mpp_buffer_sync_partial_begin_f()
334 return mpp_dmabuf_sync_partial_begin(impl->info.fd, ro, impl->offset + offset, length, caller); in mpp_buffer_sync_partial_begin_f()
337 …r_sync_partial_end_f(MppBuffer buffer, RK_S32 ro, RK_U32 offset, RK_U32 length, const char* caller) in mpp_buffer_sync_partial_end_f() argument
341 if (check_buf_need_sync(buffer, &ret, caller)) in mpp_buffer_sync_partial_end_f()
346 return mpp_dmabuf_sync_partial_end(impl->info.fd, ro, impl->offset + offset, length, caller); in mpp_buffer_sync_partial_end_f()
350 const char *tag, const char *caller) in mpp_buffer_group_get() argument
356 group, mode, type, caller); in mpp_buffer_group_get()
360 return mpp_buffer_group_init((MppBufferGroupImpl**)group, tag, caller, mode, type); in mpp_buffer_group_get()