Lines Matching refs:ops

120 	struct vpu_iface_ops *ops = vpu_core_get_iface(core);  in vpu_iface_check_codec()  local
122 if (ops && ops->check_codec) in vpu_iface_check_codec()
123 return ops->check_codec(core->type); in vpu_iface_check_codec()
130 struct vpu_iface_ops *ops = vpu_inst_get_iface(inst); in vpu_iface_check_format() local
132 if (ops && ops->check_fmt) in vpu_iface_check_format()
133 return ops->check_fmt(inst->type, pixelfmt); in vpu_iface_check_format()
140 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_boot_core() local
142 if (ops && ops->boot_core) in vpu_iface_boot_core()
143 return ops->boot_core(core); in vpu_iface_boot_core()
149 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_get_power_state() local
151 if (ops && ops->get_power_state) in vpu_iface_get_power_state()
152 return ops->get_power_state(core); in vpu_iface_get_power_state()
158 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_shutdown_core() local
160 if (ops && ops->shutdown_core) in vpu_iface_shutdown_core()
161 return ops->shutdown_core(core); in vpu_iface_shutdown_core()
167 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_restore_core() local
169 if (ops && ops->restore_core) in vpu_iface_restore_core()
170 return ops->restore_core(core); in vpu_iface_restore_core()
176 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_on_firmware_loaded() local
178 if (ops && ops->on_firmware_loaded) in vpu_iface_on_firmware_loaded()
179 return ops->on_firmware_loaded(core); in vpu_iface_on_firmware_loaded()
186 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_get_data_size() local
188 if (!ops || !ops->get_data_size) in vpu_iface_get_data_size()
191 return ops->get_data_size(); in vpu_iface_get_data_size()
199 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_init() local
201 if (!ops || !ops->init_rpc) in vpu_iface_init()
204 ops->init_rpc(shared, rpc, boot_addr); in vpu_iface_init()
215 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_set_log_buf() local
217 if (!ops) in vpu_iface_set_log_buf()
220 if (ops->set_log_buf) in vpu_iface_set_log_buf()
221 ops->set_log_buf(core->iface, log); in vpu_iface_set_log_buf()
228 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_config_system() local
230 if (!ops) in vpu_iface_config_system()
232 if (ops->set_system_cfg) in vpu_iface_config_system()
233 ops->set_system_cfg(core->iface, regs_base, regs, core->id); in vpu_iface_config_system()
240 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_get_stream_buffer_size() local
242 if (!ops || !ops->get_stream_buffer_size) in vpu_iface_get_stream_buffer_size()
245 return ops->get_stream_buffer_size(core->iface); in vpu_iface_get_stream_buffer_size()
250 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_config_stream() local
252 if (!ops || inst->id < 0) in vpu_iface_config_stream()
254 if (ops->set_stream_cfg) in vpu_iface_config_stream()
255 ops->set_stream_cfg(inst->core->iface, inst->id); in vpu_iface_config_stream()
261 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_send_cmd() local
263 if (!ops || !ops->send_cmd_buf) in vpu_iface_send_cmd()
266 return ops->send_cmd_buf(core->iface, cmd); in vpu_iface_send_cmd()
271 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_receive_msg() local
273 if (!ops || !ops->receive_msg_buf) in vpu_iface_receive_msg()
276 return ops->receive_msg_buf(core->iface, msg); in vpu_iface_receive_msg()
283 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_pack_cmd() local
285 if (!ops || !ops->pack_cmd) in vpu_iface_pack_cmd()
287 return ops->pack_cmd(pkt, index, id, data); in vpu_iface_pack_cmd()
292 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_convert_msg_id() local
294 if (!ops || !ops->convert_msg_id) in vpu_iface_convert_msg_id()
297 return ops->convert_msg_id(msg_id); in vpu_iface_convert_msg_id()
303 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_unpack_msg_data() local
305 if (!ops || !ops->unpack_msg_data) in vpu_iface_unpack_msg_data()
308 return ops->unpack_msg_data(pkt, data); in vpu_iface_unpack_msg_data()
314 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_input_frame() local
317 if (!ops || !ops->input_frame) in vpu_iface_input_frame()
320 ret = ops->input_frame(inst->core->iface, inst, vb); in vpu_iface_input_frame()
332 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_config_memory_resource() local
334 if (!ops || !ops->config_memory_resource || inst->id < 0) in vpu_iface_config_memory_resource()
337 return ops->config_memory_resource(inst->core->iface, in vpu_iface_config_memory_resource()
345 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_config_stream_buffer() local
347 if (!ops || !ops->config_stream_buffer || inst->id < 0) in vpu_iface_config_stream_buffer()
355 return ops->config_stream_buffer(inst->core->iface, inst->id, buf); in vpu_iface_config_stream_buffer()
361 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_update_stream_buffer() local
363 if (!ops || !ops->update_stream_buffer || inst->id < 0) in vpu_iface_update_stream_buffer()
366 return ops->update_stream_buffer(inst->core->iface, inst->id, ptr, write); in vpu_iface_update_stream_buffer()
372 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_get_stream_buffer_desc() local
374 if (!ops || !ops->get_stream_buffer_desc || inst->id < 0) in vpu_iface_get_stream_buffer_desc()
380 return ops->get_stream_buffer_desc(inst->core->iface, inst->id, desc); in vpu_iface_get_stream_buffer_desc()
385 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_get_version() local
387 if (!ops || !ops->get_version) in vpu_iface_get_version()
390 return ops->get_version(core->iface); in vpu_iface_get_version()
395 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_get_max_instance_count() local
397 if (!ops || !ops->get_max_instance_count) in vpu_iface_get_max_instance_count()
400 return ops->get_max_instance_count(core->iface); in vpu_iface_get_max_instance_count()
406 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_set_encode_params() local
408 if (!ops || !ops->set_encode_params || inst->id < 0) in vpu_iface_set_encode_params()
411 return ops->set_encode_params(inst->core->iface, inst->id, params, update); in vpu_iface_set_encode_params()
417 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_set_decode_params() local
419 if (!ops || !ops->set_decode_params || inst->id < 0) in vpu_iface_set_decode_params()
422 return ops->set_decode_params(inst->core->iface, inst->id, params, update); in vpu_iface_set_decode_params()
427 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_add_scode() local
429 if (!ops || !ops->add_scode || inst->id < 0) in vpu_iface_add_scode()
432 return ops->add_scode(inst->core->iface, inst->id, in vpu_iface_add_scode()
440 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_pre_send_cmd() local
442 if (ops && ops->pre_send_cmd && inst->id >= 0) in vpu_iface_pre_send_cmd()
443 return ops->pre_send_cmd(inst->core->iface, inst->id); in vpu_iface_pre_send_cmd()
449 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_post_send_cmd() local
451 if (ops && ops->post_send_cmd && inst->id >= 0) in vpu_iface_post_send_cmd()
452 return ops->post_send_cmd(inst->core->iface, inst->id); in vpu_iface_post_send_cmd()
458 struct vpu_iface_ops *ops = vpu_core_get_iface(inst->core); in vpu_iface_init_instance() local
460 if (ops && ops->init_instance && inst->id >= 0) in vpu_iface_init_instance()
461 return ops->init_instance(inst->core->iface, inst->id); in vpu_iface_init_instance()