Home
last modified time | relevance | path

Searched refs:emsg (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-3.4.0/subsys/usb/usb_c/
Dusbc_pe_snk_states.c160 header = prl_rx->emsg.header; in pe_snk_wait_for_capabilities_run()
195 uint32_t *pdos = (uint32_t *)prl_rx->emsg.data; in pe_snk_evaluate_capability_entry()
196 uint32_t num_pdo_objs = PD_CONVERT_BYTES_TO_PD_HEADER_COUNT(prl_rx->emsg.len); in pe_snk_evaluate_capability_entry()
203 header = prl_rx->emsg.header; in pe_snk_evaluate_capability_entry()
266 header = prl_rx->emsg.header; in pe_snk_select_capability_run()
318 pe_send_soft_reset(dev, prl_rx->emsg.type); in pe_snk_select_capability_run()
356 header = prl_rx->emsg.header; in pe_snk_transition_sink_run()
423 union pd_header header = prl_rx->emsg.header; in pe_snk_ready_run()
466 pe_send_soft_reset(dev, prl_rx->emsg.type); in pe_snk_ready_run()
653 header = prl_rx->emsg.header; in pe_snk_get_source_cap_run()
[all …]
Dusbc_prl.c189 prl_tx->emsg.type = type; in prl_send_ctrl_msg()
193 prl_tx->emsg.len = 0; in prl_send_ctrl_msg()
212 prl_tx->emsg.type = type; in prl_send_data_msg()
453 const bool is_sop_packet = prl_tx->emsg.type == PD_PACKET_SOP; in get_sop_star_header()
459 header.specification_revision = data->rev[prl_tx->emsg.type]; in get_sop_star_header()
461 header.message_id = prl_tx->msg_id_counter[prl_tx->emsg.type]; in get_sop_star_header()
462 header.number_of_data_objects = PD_CONVERT_BYTES_TO_PD_HEADER_COUNT(prl_tx->emsg.len); in get_sop_star_header()
478 prl_tx->emsg.header.raw_value = in prl_tx_construct_message()
479 prl_tx->emsg.type < NUM_SOP_STAR_TYPES ? get_sop_star_header(dev) : 0; in prl_tx_construct_message()
482 prl_tx->last_xmit_type = prl_tx->emsg.type; in prl_tx_construct_message()
[all …]
Dusbc_prl.h34 struct pd_msg emsg; member
55 struct pd_msg emsg; member
Dusbc_pe_common.c493 struct pd_msg *msg = &prl_tx->emsg; in pe_send_request_msg()
509 uint32_t *payload = (uint32_t *)prl_rx->emsg.data; in extended_message_not_supported()
530 if (prl_rx->emsg.len == 0 && header.message_type == mt && header.extended == 0) { in received_control_message()
546 if (prl_rx->emsg.len > 0 && header.message_type == mt && header.extended == 0) { in received_data_message()
779 pe_send_soft_reset(dev, prl_rx->emsg.type); in pe_drs_evaluate_swap_run()
810 header = prl_rx->emsg.header; in pe_drs_send_swap_run()
899 header = prl_rx->emsg.header; in pe_get_sink_cap_run()
901 if (prl_rx->emsg.type == PD_PACKET_SOP) { in pe_get_sink_cap_run()
904 uint32_t *pdos = (uint32_t *)prl_rx->emsg.data; in pe_get_sink_cap_run()
906 PD_CONVERT_BYTES_TO_PD_HEADER_COUNT(prl_rx->emsg.len); in pe_get_sink_cap_run()
[all …]
Dusbc_pe_src_states.c77 struct pd_msg *msg = &prl_tx->emsg; in send_src_caps()
227 union pd_header header = prl_rx->emsg.header; in pe_src_send_capabilities_run()
261 pe->snk_request = *(uint32_t *)prl_rx->emsg.data; in pe_src_negotiate_capability_entry()
395 union pd_header header = prl_rx->emsg.header; in pe_src_ready_run()
445 pe_send_soft_reset(dev, prl_rx->emsg.type); in pe_src_ready_run()