Lines Matching refs:pkt
23 struct hfi_msg_event_notify_pkt *pkt) in event_seq_changed() argument
41 switch (pkt->event_data1) { in event_seq_changed()
50 event.event_type = pkt->event_data1; in event_seq_changed()
52 num_properties_changed = pkt->event_data2; in event_seq_changed()
58 data_ptr = (u8 *)&pkt->ext_event_data[0]; in event_seq_changed()
132 struct hfi_msg_event_notify_pkt *pkt) in event_release_buffer_ref() argument
138 pkt->ext_event_data; in event_release_buffer_ref()
150 struct hfi_msg_event_notify_pkt *pkt) in event_sys_error() argument
152 if (pkt) in event_sys_error()
155 pkt->shdr.session_id, pkt->event_data1, in event_sys_error()
156 pkt->event_data2); in event_sys_error()
163 struct hfi_msg_event_notify_pkt *pkt) in event_session_error() argument
168 pkt->event_data1, pkt->shdr.session_id); in event_session_error()
173 switch (pkt->event_data1) { in event_session_error()
183 pkt->event_data1, pkt->event_data2, in event_session_error()
184 pkt->shdr.session_id); in event_session_error()
186 inst->error = pkt->event_data1; in event_session_error()
195 struct hfi_msg_event_notify_pkt *pkt = packet; in hfi_event_notify() local
200 switch (pkt->event_id) { in hfi_event_notify()
202 event_sys_error(core, EVT_SYS_ERROR, pkt); in hfi_event_notify()
205 event_session_error(core, inst, pkt); in hfi_event_notify()
208 event_seq_changed(core, inst, pkt); in hfi_event_notify()
211 event_release_buffer_ref(core, inst, pkt); in hfi_event_notify()
223 struct hfi_msg_sys_init_done_pkt *pkt = packet; in hfi_sys_init_done() local
227 error = pkt->error_type; in hfi_sys_init_done()
231 if (!pkt->num_properties) { in hfi_sys_init_done()
236 rem_bytes = pkt->hdr.size - sizeof(*pkt) + sizeof(u32); in hfi_sys_init_done()
243 error = hfi_parser(core, inst, pkt->data, rem_bytes); in hfi_sys_init_done()
252 struct hfi_msg_sys_property_info_pkt *pkt) in sys_get_prop_image_version() argument
259 req_bytes = pkt->hdr.size - sizeof(*pkt); in sys_get_prop_image_version()
261 if (req_bytes < VER_STR_SZ || !pkt->data[0] || pkt->num_properties > 1) in sys_get_prop_image_version()
265 img_ver = pkt->data; in sys_get_prop_image_version()
279 struct hfi_msg_sys_property_info_pkt *pkt = packet; in hfi_sys_property_info() local
282 if (!pkt->num_properties) { in hfi_sys_property_info()
287 switch (pkt->property) { in hfi_sys_property_info()
289 sys_get_prop_image_version(dev, pkt); in hfi_sys_property_info()
301 struct hfi_msg_sys_release_resource_done_pkt *pkt = packet; in hfi_sys_rel_resource_done() local
303 core->error = pkt->error_type; in hfi_sys_rel_resource_done()
310 struct hfi_msg_sys_ping_ack_pkt *pkt = packet; in hfi_sys_ping_done() local
314 if (pkt->client_data != 0xbeef) in hfi_sys_ping_done()
329 struct hfi_msg_sys_pc_prep_done_pkt *pkt = packet; in hfi_sys_pc_prepare_done() local
332 pkt->error_type); in hfi_sys_pc_prepare_done()
336 session_get_prop_profile_level(struct hfi_msg_session_property_info_pkt *pkt, in session_get_prop_profile_level() argument
342 req_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in session_get_prop_profile_level()
348 hfi = (struct hfi_profile_level *)&pkt->data[0]; in session_get_prop_profile_level()
356 session_get_prop_buf_req(struct hfi_msg_session_property_info_pkt *pkt, in session_get_prop_buf_req() argument
363 req_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in session_get_prop_buf_req()
365 if (!req_bytes || req_bytes % sizeof(*buf_req) || !pkt->data[0]) in session_get_prop_buf_req()
369 buf_req = (struct hfi_buffer_requirements *)&pkt->data[0]; in session_get_prop_buf_req()
390 struct hfi_msg_session_property_info_pkt *pkt = packet; in hfi_session_prop_info() local
395 if (!pkt->num_properties) { in hfi_session_prop_info()
401 switch (pkt->property) { in hfi_session_prop_info()
404 error = session_get_prop_buf_req(pkt, hprop->bufreq); in hfi_session_prop_info()
408 error = session_get_prop_profile_level(pkt, in hfi_session_prop_info()
414 dev_dbg(dev, VDBGM "unknown property id:%x\n", pkt->property); in hfi_session_prop_info()
426 struct hfi_msg_session_init_done_pkt *pkt = packet; in hfi_session_init_done() local
430 error = pkt->error_type; in hfi_session_init_done()
437 rem_bytes = pkt->shdr.hdr.size - sizeof(*pkt) + sizeof(u32); in hfi_session_init_done()
443 error = hfi_parser(core, inst, pkt->data, rem_bytes); in hfi_session_init_done()
452 struct hfi_msg_session_load_resources_done_pkt *pkt = packet; in hfi_session_load_res_done() local
454 inst->error = pkt->error_type; in hfi_session_load_res_done()
461 struct hfi_msg_session_flush_done_pkt *pkt = packet; in hfi_session_flush_done() local
463 inst->error = pkt->error_type; in hfi_session_flush_done()
472 struct hfi_msg_session_empty_buffer_done_pkt *pkt = packet; in hfi_session_etb_done() local
474 inst->error = pkt->error_type; in hfi_session_etb_done()
475 inst->ops->buf_done(inst, HFI_BUFFER_INPUT, pkt->input_tag, in hfi_session_etb_done()
476 pkt->filled_len, pkt->offset, 0, 0, 0); in hfi_session_etb_done()
490 struct hfi_msg_session_fbd_compressed_pkt *pkt = packet; in hfi_session_ftb_done() local
492 timestamp_hi = pkt->time_stamp_hi; in hfi_session_ftb_done()
493 timestamp_lo = pkt->time_stamp_lo; in hfi_session_ftb_done()
494 hfi_flags = pkt->flags; in hfi_session_ftb_done()
495 offset = pkt->offset; in hfi_session_ftb_done()
496 filled_len = pkt->filled_len; in hfi_session_ftb_done()
497 pic_type = pkt->picture_type; in hfi_session_ftb_done()
498 output_tag = pkt->output_tag; in hfi_session_ftb_done()
501 error = pkt->error_type; in hfi_session_ftb_done()
503 struct hfi_msg_session_fbd_uncompressed_plane0_pkt *pkt = in hfi_session_ftb_done() local
506 timestamp_hi = pkt->time_stamp_hi; in hfi_session_ftb_done()
507 timestamp_lo = pkt->time_stamp_lo; in hfi_session_ftb_done()
508 hfi_flags = pkt->flags; in hfi_session_ftb_done()
509 offset = pkt->offset; in hfi_session_ftb_done()
510 filled_len = pkt->filled_len; in hfi_session_ftb_done()
511 pic_type = pkt->picture_type; in hfi_session_ftb_done()
512 output_tag = pkt->output_tag; in hfi_session_ftb_done()
514 if (pkt->stream_id == 0) in hfi_session_ftb_done()
516 else if (pkt->stream_id == 1) in hfi_session_ftb_done()
519 error = pkt->error_type; in hfi_session_ftb_done()
563 struct hfi_msg_session_start_done_pkt *pkt = packet; in hfi_session_start_done() local
565 inst->error = pkt->error_type; in hfi_session_start_done()
572 struct hfi_msg_session_stop_done_pkt *pkt = packet; in hfi_session_stop_done() local
574 inst->error = pkt->error_type; in hfi_session_stop_done()
581 struct hfi_msg_session_release_resources_done_pkt *pkt = packet; in hfi_session_rel_res_done() local
583 inst->error = pkt->error_type; in hfi_session_rel_res_done()
590 struct hfi_msg_session_release_buffers_done_pkt *pkt = packet; in hfi_session_rel_buf_done() local
592 inst->error = pkt->error_type; in hfi_session_rel_buf_done()
599 struct hfi_msg_session_end_done_pkt *pkt = packet; in hfi_session_end_done() local
601 inst->error = pkt->error_type; in hfi_session_end_done()
608 struct hfi_msg_sys_session_abort_done_pkt *pkt = packet; in hfi_session_abort_done() local
610 inst->error = pkt->error_type; in hfi_session_abort_done()
617 struct hfi_msg_session_get_sequence_hdr_done_pkt *pkt = packet; in hfi_session_get_seq_hdr_done() local
619 inst->error = pkt->error_type; in hfi_session_get_seq_hdr_done()
624 u32 pkt; member
632 {.pkt = HFI_MSG_EVENT_NOTIFY,
636 {.pkt = HFI_MSG_SYS_INIT,
641 {.pkt = HFI_MSG_SYS_PROPERTY_INFO,
646 {.pkt = HFI_MSG_SYS_RELEASE_RESOURCE,
651 {.pkt = HFI_MSG_SYS_PING_ACK,
656 {.pkt = HFI_MSG_SYS_IDLE,
661 {.pkt = HFI_MSG_SYS_PC_PREP,
666 {.pkt = HFI_MSG_SYS_SESSION_INIT,
670 {.pkt = HFI_MSG_SYS_SESSION_END,
674 {.pkt = HFI_MSG_SESSION_LOAD_RESOURCES,
678 {.pkt = HFI_MSG_SESSION_START,
682 {.pkt = HFI_MSG_SESSION_STOP,
686 {.pkt = HFI_MSG_SYS_SESSION_ABORT,
690 {.pkt = HFI_MSG_SESSION_EMPTY_BUFFER,
694 {.pkt = HFI_MSG_SESSION_FILL_BUFFER,
699 {.pkt = HFI_MSG_SESSION_FLUSH,
703 {.pkt = HFI_MSG_SESSION_PROPERTY_INFO,
707 {.pkt = HFI_MSG_SESSION_RELEASE_RESOURCES,
711 {.pkt = HFI_MSG_SESSION_GET_SEQUENCE_HEADER,
715 {.pkt = HFI_MSG_SESSION_RELEASE_BUFFERS,
751 if (handler->pkt != hdr->pkt_type) in hfi_process_msg_packet()
771 struct hfi_session_pkt *pkt; in hfi_process_msg_packet() local
773 pkt = (struct hfi_session_pkt *)hdr; in hfi_process_msg_packet()
774 inst = to_instance(core, pkt->shdr.session_id); in hfi_process_msg_packet()
778 pkt->shdr.session_id, in hfi_process_msg_packet()
779 handler ? handler->pkt : 0); in hfi_process_msg_packet()
787 pkt->shdr.session_id); in hfi_process_msg_packet()