Lines Matching refs:device
41 void (*create_thread)(const struct device *dev);
101 const struct device *tcpc;
103 const struct device *vbus;
105 const struct device *ppc;
121 bool (*policy_cb_check)(const struct device *dev,
127 void (*policy_cb_notify)(const struct device *dev,
133 bool (*policy_cb_wait_notify)(const struct device *dev,
141 int (*policy_cb_get_snk_cap)(const struct device *dev, uint32_t **pdos, int *num_pdos);
147 void (*policy_cb_set_src_cap)(const struct device *dev, const uint32_t *pdos,
153 uint32_t (*policy_cb_get_rdo)(const struct device *dev);
159 bool (*policy_cb_is_snk_at_default)(const struct device *dev);
165 int (*policy_cb_get_src_rp)(const struct device *dev,
172 int (*policy_cb_src_en)(const struct device *dev, bool en);
178 int (*policy_cb_get_src_caps)(const struct device *dev,
186 enum usbc_snk_req_reply_t (*policy_cb_check_sink_request)(const struct device *dev,
193 bool (*policy_present_contract_is_valid)(const struct device *dev,
200 bool (*policy_is_ps_ready)(const struct device *dev);
206 bool (*policy_change_src_caps)(const struct device *dev);
211 void (*policy_cb_set_port_partner_snk_cap)(const struct device *dev,
230 static inline int usbc_policy_src_en(const struct device *dev, const struct device *tcpc, bool en) in usbc_policy_src_en()