Lines Matching refs:role
59 static inline int is_sink(enum typec_role role)
61 return role == TYPEC_SINK;
64 static inline int is_source(enum typec_role role)
66 return role == TYPEC_SOURCE;
233 * @try_role: Set data role preference for DRP port
242 int (*try_role)(struct typec_port *port, int role);
243 int (*dr_set)(struct typec_port *port, enum typec_data_role role);
244 int (*pr_set)(struct typec_port *port, enum typec_role role);
245 int (*vconn_set)(struct typec_port *port, enum typec_role role);
260 * @type: Supported power role of the port
261 * @data: Supported data role of the port
265 * @prefer_role: Initial role preference (DRP ports).
315 void typec_set_data_role(struct typec_port *port, enum typec_data_role role);
316 void typec_set_pwr_role(struct typec_port *port, enum typec_role role);
317 void typec_set_vconn_role(struct typec_port *port, enum typec_role role);