| /linux/include/linux/usb/ |
| H A D | typec.h | 19 struct typec_port; 167 *typec_port_register_altmode(struct typec_port *port, 170 void typec_port_register_altmodes(struct typec_port *port, 179 struct typec_port *typec_altmode2port(struct typec_altmode *alt); 262 int (*try_role)(struct typec_port *port, int role); 263 int (*dr_set)(struct typec_port *port, enum typec_data_role role); 264 int (*pr_set)(struct typec_port *port, enum typec_role role); 265 int (*vconn_set)(struct typec_port *port, enum typec_role role); 266 int (*port_type_set)(struct typec_port *port, 268 struct usb_power_delivery **(*pd_get)(struct typec_port *port); [all …]
|
| /linux/drivers/usb/typec/ |
| H A D | class.h | 47 struct typec_port { struct 85 #define to_typec_port(_dev_) container_of(_dev_, struct typec_port, dev) argument 105 int typec_link_ports(struct typec_port *connector); 106 void typec_unlink_ports(struct typec_port *connector); 108 static inline int typec_link_ports(struct typec_port *connector) { return 0; } in typec_link_ports() 109 static inline void typec_unlink_ports(struct typec_port *connector) { } in typec_unlink_ports()
|
| H A D | port-mapper.c | 18 struct typec_port *port = to_typec_port(dev); in typec_aggregate_bind() 25 struct typec_port *port = to_typec_port(dev); in typec_aggregate_unbind() 36 struct typec_port *port; 79 int typec_link_ports(struct typec_port *con) in typec_link_ports() 104 void typec_unlink_ports(struct typec_port *con) in typec_unlink_ports()
|
| H A D | class.c | 77 struct typec_port *port = to_typec_port(dev->parent); in get_pd_product_type() 248 struct typec_port *port = typec_altmode2port(adev); in typec_altmode_set_partner() 329 struct typec_port *typec_altmode2port(struct typec_altmode *alt) in typec_altmode2port() 671 struct typec_port *port = to_typec_port(dev->parent); in usb_mode_store() 749 struct typec_port *port = to_typec_port(partner->dev.parent); in typec_partner_attr_is_visible() 1012 struct typec_partner *typec_register_partner(struct typec_port *port, in typec_register_partner() 1082 struct typec_port *port; in typec_unregister_partner() 1303 struct typec_cable *typec_cable_get(struct typec_port *port) in typec_cable_get() 1365 struct typec_cable *typec_register_cable(struct typec_port *port, in typec_register_cable() 1428 void typec_port_set_usb_mode(struct typec_port *port, enum usb_mode mode) in typec_port_set_usb_mode() [all …]
|
| H A D | wusb3801.c | 90 struct typec_port *port; 181 static int wusb3801_try_role(struct typec_port *port, int role) in wusb3801_try_role() 190 static int wusb3801_port_type_set(struct typec_port *port, in wusb3801_port_type_set() 222 struct typec_port *port = wusb3801->port; in wusb3801_hw_update()
|
| H A D | hd3ss3220.c | 56 struct typec_port *port; 188 static int hd3ss3220_try_role(struct typec_port *port, int role) in hd3ss3220_try_role() 195 static int hd3ss3220_port_type_set(struct typec_port *port, enum typec_port_type type) in hd3ss3220_port_type_set()
|
| H A D | rt1719.c | 88 struct typec_port *port; 393 static int rt1719_dr_set(struct typec_port *port, enum typec_data_role role) in rt1719_dr_set()
|
| H A D | anx7411.c | 247 struct typec_port *port;
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 347 struct typec_port *typec_port; member 1091 ret = typec_set_orientation(port->typec_port, orientation); in tcpm_mux_set() 1101 return typec_set_mode(port->typec_port, state); in tcpm_mux_set() 1129 typec_set_vconn_role(port->typec_port, port->vconn_role); in tcpm_set_vconn() 1235 typec_set_data_role(port->typec_port, data); in tcpm_set_roles() 1236 typec_set_pwr_role(port->typec_port, role); in tcpm_set_roles() 1251 typec_set_pwr_role(port->typec_port, role); in tcpm_set_pwr_role() 1761 port->cable = typec_register_cable(port->typec_port, &port->cable_desc); in svdm_consume_identity_sop_prime() 2004 struct typec_port *typec = port->typec_port; in tcpm_pd_svdm() 2166 (typec_get_cable_svdm_version(port->typec_port) > in tcpm_pd_svdm() [all …]
|
| /linux/drivers/extcon/ |
| H A D | extcon-usbc-tusb320.c | 80 struct typec_port *port; 234 static int tusb320_port_type_set(struct typec_port *port, in tusb320_port_type_set() 281 struct typec_port *port = priv->port; in tusb320_typec_irq_handler()
|
| H A D | extcon-rtk-type-c.c | 101 struct typec_port *port; 699 static int type_c_port_dr_set(struct typec_port *port, in type_c_port_dr_set()
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_typec.c | 47 static int cros_typec_enter_usb_mode(struct typec_port *tc_port, enum usb_mode mode) in cros_typec_enter_usb_mode() 61 static int cros_typec_perform_role_swap(struct typec_port *tc_port, int target_role, u8 swap_type) in cros_typec_perform_role_swap() 132 static int cros_typec_dr_swap(struct typec_port *port, enum typec_data_role role) in cros_typec_dr_swap() 137 static int cros_typec_pr_swap(struct typec_port *port, enum typec_role role) in cros_typec_pr_swap() 828 struct typec_port *port = typec->ports[port_num]->port; in cros_typec_set_port_params_v0() 845 struct typec_port *port = typec->ports[port_num]->port; in cros_typec_set_port_params_v1()
|
| /linux/drivers/usb/typec/tipd/ |
| H A D | core.c | 173 struct typec_port *port; 475 static int tps6598x_dr_set(struct typec_port *port, enum typec_data_role role) in tps6598x_dr_set() 505 static int tps6598x_pr_set(struct typec_port *port, enum typec_role role) in tps6598x_pr_set()
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | ucsi.h | 518 struct typec_port *port;
|
| H A D | ucsi.c | 1480 static int ucsi_dr_swap(struct typec_port *port, enum typec_data_role role) in ucsi_dr_swap() 1524 static int ucsi_pr_swap(struct typec_port *port, enum typec_role role) in ucsi_pr_swap()
|