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); 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
261 req_bytes = pkt->hdr.size - sizeof(*pkt); in sys_get_prop_image_version()
263 if (req_bytes < VER_STR_SZ || !pkt->data[0] || pkt->num_properties > 1) in sys_get_prop_image_version()
267 img_ver = pkt->data; in sys_get_prop_image_version()
303 struct hfi_msg_sys_property_info_pkt *pkt = packet; in hfi_sys_property_info() local
306 if (!pkt->num_properties) { in hfi_sys_property_info()
311 switch (pkt->property) { in hfi_sys_property_info()
313 sys_get_prop_image_version(core, pkt); in hfi_sys_property_info()
325 struct hfi_msg_sys_release_resource_done_pkt *pkt = packet; in hfi_sys_rel_resource_done() local
327 core->error = pkt->error_type; in hfi_sys_rel_resource_done()
334 struct hfi_msg_sys_ping_ack_pkt *pkt = packet; in hfi_sys_ping_done() local
338 if (pkt->client_data != 0xbeef) in hfi_sys_ping_done()
353 struct hfi_msg_sys_pc_prep_done_pkt *pkt = packet; in hfi_sys_pc_prepare_done() local
356 pkt->error_type); in hfi_sys_pc_prepare_done()
360 session_get_prop_profile_level(struct hfi_msg_session_property_info_pkt *pkt, in session_get_prop_profile_level() argument
366 req_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in session_get_prop_profile_level()
372 hfi = (struct hfi_profile_level *)&pkt->data[0]; in session_get_prop_profile_level()
380 session_get_prop_buf_req(struct hfi_msg_session_property_info_pkt *pkt, in session_get_prop_buf_req() argument
387 req_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in session_get_prop_buf_req()
389 if (!req_bytes || req_bytes % sizeof(*buf_req) || !pkt->data[0]) in session_get_prop_buf_req()
393 buf_req = (struct hfi_buffer_requirements *)&pkt->data[0]; in session_get_prop_buf_req()
414 struct hfi_msg_session_property_info_pkt *pkt = packet; in hfi_session_prop_info() local
419 if (!pkt->num_properties) { in hfi_session_prop_info()
425 switch (pkt->property) { in hfi_session_prop_info()
428 error = session_get_prop_buf_req(pkt, hprop->bufreq); in hfi_session_prop_info()
432 error = session_get_prop_profile_level(pkt, in hfi_session_prop_info()
438 dev_dbg(dev, VDBGM "unknown property id:%x\n", pkt->property); in hfi_session_prop_info()
450 struct hfi_msg_session_init_done_pkt *pkt = packet; in hfi_session_init_done() local
454 error = pkt->error_type; in hfi_session_init_done()
461 rem_bytes = pkt->shdr.hdr.size - sizeof(*pkt); in hfi_session_init_done()
467 error = hfi_parser(core, inst, pkt->data, rem_bytes); in hfi_session_init_done()
476 struct hfi_msg_session_load_resources_done_pkt *pkt = packet; in hfi_session_load_res_done() local
478 inst->error = pkt->error_type; in hfi_session_load_res_done()
485 struct hfi_msg_session_flush_done_pkt *pkt = packet; in hfi_session_flush_done() local
487 inst->error = pkt->error_type; in hfi_session_flush_done()
496 struct hfi_msg_session_empty_buffer_done_pkt *pkt = packet; in hfi_session_etb_done() local
498 inst->error = pkt->error_type; in hfi_session_etb_done()
499 inst->ops->buf_done(inst, HFI_BUFFER_INPUT, pkt->input_tag, in hfi_session_etb_done()
500 pkt->filled_len, pkt->offset, 0, 0, 0); in hfi_session_etb_done()
514 struct hfi_msg_session_fbd_compressed_pkt *pkt = packet; in hfi_session_ftb_done() local
516 timestamp_hi = pkt->time_stamp_hi; in hfi_session_ftb_done()
517 timestamp_lo = pkt->time_stamp_lo; in hfi_session_ftb_done()
518 hfi_flags = pkt->flags; in hfi_session_ftb_done()
519 offset = pkt->offset; in hfi_session_ftb_done()
520 filled_len = pkt->filled_len; in hfi_session_ftb_done()
521 pic_type = pkt->picture_type; in hfi_session_ftb_done()
522 output_tag = pkt->output_tag; in hfi_session_ftb_done()
525 error = pkt->error_type; in hfi_session_ftb_done()
527 struct hfi_msg_session_fbd_uncompressed_plane0_pkt *pkt = in hfi_session_ftb_done() local
530 timestamp_hi = pkt->time_stamp_hi; in hfi_session_ftb_done()
531 timestamp_lo = pkt->time_stamp_lo; in hfi_session_ftb_done()
532 hfi_flags = pkt->flags; in hfi_session_ftb_done()
533 offset = pkt->offset; in hfi_session_ftb_done()
534 filled_len = pkt->filled_len; in hfi_session_ftb_done()
535 pic_type = pkt->picture_type; in hfi_session_ftb_done()
536 output_tag = pkt->output_tag; in hfi_session_ftb_done()
538 if (pkt->stream_id == 0) in hfi_session_ftb_done()
540 else if (pkt->stream_id == 1) in hfi_session_ftb_done()
543 error = pkt->error_type; in hfi_session_ftb_done()
587 struct hfi_msg_session_start_done_pkt *pkt = packet; in hfi_session_start_done() local
589 inst->error = pkt->error_type; in hfi_session_start_done()
596 struct hfi_msg_session_stop_done_pkt *pkt = packet; in hfi_session_stop_done() local
598 inst->error = pkt->error_type; in hfi_session_stop_done()
605 struct hfi_msg_session_release_resources_done_pkt *pkt = packet; in hfi_session_rel_res_done() local
607 inst->error = pkt->error_type; in hfi_session_rel_res_done()
614 struct hfi_msg_session_release_buffers_done_pkt *pkt = packet; in hfi_session_rel_buf_done() local
616 inst->error = pkt->error_type; in hfi_session_rel_buf_done()
623 struct hfi_msg_session_end_done_pkt *pkt = packet; in hfi_session_end_done() local
625 inst->error = pkt->error_type; in hfi_session_end_done()
632 struct hfi_msg_sys_session_abort_done_pkt *pkt = packet; in hfi_session_abort_done() local
634 inst->error = pkt->error_type; in hfi_session_abort_done()
641 struct hfi_msg_session_get_sequence_hdr_done_pkt *pkt = packet; in hfi_session_get_seq_hdr_done() local
643 inst->error = pkt->error_type; in hfi_session_get_seq_hdr_done()
648 u32 pkt; member
656 {.pkt = HFI_MSG_EVENT_NOTIFY,
660 {.pkt = HFI_MSG_SYS_INIT,
665 {.pkt = HFI_MSG_SYS_PROPERTY_INFO,
670 {.pkt = HFI_MSG_SYS_RELEASE_RESOURCE,
675 {.pkt = HFI_MSG_SYS_PING_ACK,
680 {.pkt = HFI_MSG_SYS_IDLE,
685 {.pkt = HFI_MSG_SYS_PC_PREP,
690 {.pkt = HFI_MSG_SYS_SESSION_INIT,
694 {.pkt = HFI_MSG_SYS_SESSION_END,
698 {.pkt = HFI_MSG_SESSION_LOAD_RESOURCES,
702 {.pkt = HFI_MSG_SESSION_START,
706 {.pkt = HFI_MSG_SESSION_STOP,
710 {.pkt = HFI_MSG_SYS_SESSION_ABORT,
714 {.pkt = HFI_MSG_SESSION_EMPTY_BUFFER,
718 {.pkt = HFI_MSG_SESSION_FILL_BUFFER,
723 {.pkt = HFI_MSG_SESSION_FLUSH,
727 {.pkt = HFI_MSG_SESSION_PROPERTY_INFO,
731 {.pkt = HFI_MSG_SESSION_RELEASE_RESOURCES,
735 {.pkt = HFI_MSG_SESSION_GET_SEQUENCE_HEADER,
739 {.pkt = HFI_MSG_SESSION_RELEASE_BUFFERS,
775 if (handler->pkt != hdr->pkt_type) in hfi_process_msg_packet()
795 struct hfi_session_pkt *pkt; in hfi_process_msg_packet() local
797 pkt = (struct hfi_session_pkt *)hdr; in hfi_process_msg_packet()
798 inst = to_instance(core, pkt->shdr.session_id); in hfi_process_msg_packet()
802 pkt->shdr.session_id, in hfi_process_msg_packet()
803 handler ? handler->pkt : 0); in hfi_process_msg_packet()
811 pkt->shdr.session_id); in hfi_process_msg_packet()