Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/samples/subsys/usb_c/source/src/
Dmain.c90 struct port1_data_t *dpm_data = usbc_get_dpm_data(dev); in port1_policy_cb_get_src_rp() local
92 *rp = dpm_data->rp; in port1_policy_cb_get_src_rp()
113 struct port1_data_t *dpm_data = usbc_get_dpm_data(dev); in port1_policy_cb_vconn_en() local
115 dpm_data->vconn_pol = pol; in port1_policy_cb_vconn_en()
138 struct port1_data_t *dpm_data = usbc_get_dpm_data(dev); in port1_policy_cb_get_src_caps() local
140 *pdos = dpm_data->src_caps; in port1_policy_cb_get_src_caps()
141 *num_pdos = dpm_data->src_cap_cnt; in port1_policy_cb_get_src_caps()
152 struct port1_data_t *dpm_data = usbc_get_dpm_data(dev); in port1_policy_cb_check_sink_request() local
157 dpm_data->sink_request.raw_value = request_msg; in port1_policy_cb_check_sink_request()
158 obj_pos = dpm_data->sink_request.fixed.object_pos; in port1_policy_cb_check_sink_request()
[all …]
/Zephyr-Core-3.4.0/samples/subsys/usb_c/sink/src/
Dmain.c64 static uint32_t build_rdo(const struct port1_data_t *dpm_data) in build_rdo() argument
164 struct port1_data_t *dpm_data = usbc_get_dpm_data(dev); in display_source_caps() local
167 for (int i = 0; i < dpm_data->src_cap_cnt; i++) { in display_source_caps()
168 display_pdo(i, dpm_data->src_caps[i]); in display_source_caps()
178 struct port1_data_t *dpm_data = usbc_get_dpm_data(dev); in port1_policy_cb_get_snk_cap() local
180 *pdos = dpm_data->snk_caps; in port1_policy_cb_get_snk_cap()
181 *num_pdos = dpm_data->snk_cap_cnt; in port1_policy_cb_get_snk_cap()
190 struct port1_data_t *dpm_data; in port1_policy_cb_set_src_cap() local
194 dpm_data = usbc_get_dpm_data(dev); in port1_policy_cb_set_src_cap()
202 dpm_data->src_caps[i] = *(pdos + i); in port1_policy_cb_set_src_cap()
[all …]
/Zephyr-Core-3.4.0/subsys/usb/usb_c/
Dusbc_stack.c139 void usbc_set_dpm_data(const struct device *dev, void *dpm_data) in usbc_set_dpm_data() argument
143 data->dpm_data = dpm_data; in usbc_set_dpm_data()
153 return data->dpm_data; in usbc_get_dpm_data()
Dusbc_stack.h211 void *dpm_data; member
/Zephyr-Core-3.4.0/include/zephyr/usb_c/
Dusbc.h359 void usbc_set_dpm_data(const struct device *dev, void *dpm_data);