Lines Matching refs:header
544 bool received_control_message(const struct device *dev, const union pd_header header, in received_control_message() argument
550 if (prl_rx->emsg.len == 0 && header.message_type == mt && header.extended == 0) { in received_control_message()
560 bool received_data_message(const struct device *dev, const union pd_header header, in received_data_message() argument
566 if (prl_rx->emsg.len > 0 && header.message_type == mt && header.extended == 0) { in received_data_message()
827 union pd_header header; in pe_drs_send_swap_run() local
830 header = prl_rx->emsg.header; in pe_drs_send_swap_run()
831 if (received_control_message(dev, header, PD_CTRL_REJECT)) { in pe_drs_send_swap_run()
837 } else if (received_control_message(dev, header, PD_CTRL_WAIT)) { in pe_drs_send_swap_run()
846 } else if (received_control_message(dev, header, PD_CTRL_ACCEPT)) { in pe_drs_send_swap_run()
908 union pd_header header; in pe_get_sink_cap_run() local
919 header = prl_rx->emsg.header; in pe_get_sink_cap_run()
922 if (received_data_message(dev, header, PD_DATA_SINK_CAP)) { in pe_get_sink_cap_run()
932 } else if (received_control_message(dev, header, PD_CTRL_REJECT) || in pe_get_sink_cap_run()
934 header, PD_CTRL_NOT_SUPPORTED)) { in pe_get_sink_cap_run()
1053 union pd_header header; in pe_send_soft_reset_run() local
1075 header = prl_rx->emsg.header; in pe_send_soft_reset_run()
1077 if (received_control_message(dev, header, PD_CTRL_ACCEPT)) { in pe_send_soft_reset_run()