Lines Matching refs:role

1417 	int role;
1421 dev_dbg(dev, "Preferred role only supported with DRP ports\n");
1426 dev_dbg(dev, "Setting preferred role not supported\n");
1430 role = sysfs_match_string(typec_roles, buf);
1431 if (role < 0) {
1433 role = TYPEC_NO_PREFERRED_ROLE;
1438 ret = port->ops->try_role(port, role);
1442 port->prefer_role = role;
1470 dev_dbg(dev, "data role swapping not supported\n");
1515 dev_dbg(dev, "power role swapping not supported\n");
1520 dev_dbg(dev, "partner unable to swap power role\n");
1825 /* Driver callbacks to report role updates */
1877 * typec_set_data_role - Report data role change
1878 * @port: The USB Type-C Port where the role was changed
1879 * @role: The new data role
1881 * This routine is used by the port drivers to report data role changes.
1883 void typec_set_data_role(struct typec_port *port, enum typec_data_role role)
1887 if (port->data_role == role)
1890 port->data_role = role;
1906 * typec_set_pwr_role - Report power role change
1907 * @port: The USB Type-C Port where the role was changed
1908 * @role: The new data role
1910 * This routine is used by the port drivers to report power role changes.
1912 void typec_set_pwr_role(struct typec_port *port, enum typec_role role)
1914 if (port->pwr_role == role)
1917 port->pwr_role = role;
1925 * @port: The USB Type-C Port which VCONN role changed
1926 * @role: Source when @port is sourcing VCONN, or Sink when it's not
1931 void typec_set_vconn_role(struct typec_port *port, enum typec_role role)
1933 if (port->vconn_role == role)
1936 port->vconn_role = role;
2025 * typec_find_power_role - Find the typec one specific power role
2026 * @name: power role string
2197 ret = fwnode_property_read_string(fwnode, "power-role", &cap_str);
2207 ret = fwnode_property_read_string(fwnode, "data-role", &cap_str);
2215 /* Get the preferred power role for a DRP */
2219 ret = fwnode_property_read_string(fwnode, "try-power-role", &cap_str);