Searched refs:typec_port (Results 1 – 16 of 16) sorted by relevance
/openbmc/linux/include/linux/usb/ |
H A D | typec.h | 19 struct typec_port; 153 *typec_port_register_altmode(struct typec_port *port, 156 void typec_port_register_altmodes(struct typec_port *port, 233 int (*try_role)(struct typec_port *port, int role); 237 int (*port_type_set)(struct typec_port *port, 286 struct typec_port *typec_register_port(struct device *parent, 288 void typec_unregister_port(struct typec_port *port); 298 struct typec_cable *typec_cable_get(struct typec_port *port); 311 int typec_set_orientation(struct typec_port *port, 314 int typec_set_mode(struct typec_port *port, int mode); [all …]
|
/openbmc/linux/drivers/usb/typec/ |
H A D | class.h | 40 struct typec_port { struct 64 #define to_typec_port(_dev_) container_of(_dev_, struct typec_port, dev) argument 84 int typec_link_ports(struct typec_port *connector); 85 void typec_unlink_ports(struct typec_port *connector); 87 static inline int typec_link_ports(struct typec_port *connector) { return 0; } in typec_link_ports() 88 static inline void typec_unlink_ports(struct typec_port *connector) { } in typec_unlink_ports()
|
H A D | class.c | 1268 struct typec_port *port = to_typec_port(dev); in select_usb_power_delivery_store() 1289 struct typec_port *port = to_typec_port(dev); in select_usb_power_delivery_show() 1373 struct typec_port *port = to_typec_port(dev); in preferred_role_store() 1407 struct typec_port *port = to_typec_port(dev); in preferred_role_show() 1423 struct typec_port *port = to_typec_port(dev); in data_role_store() 1454 struct typec_port *port = to_typec_port(dev); in data_role_show() 1468 struct typec_port *port = to_typec_port(dev); in power_role_store() 1506 struct typec_port *port = to_typec_port(dev); in power_role_show() 1520 struct typec_port *port = to_typec_port(dev); in port_type_store() 1673 struct typec_port *p = to_typec_port(dev); in usb_power_delivery_revision_show() [all …]
|
H A D | port-mapper.c | 30 struct typec_port *port; 55 int typec_link_ports(struct typec_port *con) in typec_link_ports() 80 void typec_unlink_ports(struct typec_port *con) in typec_unlink_ports()
|
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 | 40 struct typec_port *port; 79 static int hd3ss3220_dr_set(struct typec_port *port, enum typec_data_role role) in hd3ss3220_dr_set()
|
H A D | rt1719.c | 88 struct typec_port *port; 399 static int rt1719_dr_set(struct typec_port *port, enum typec_data_role role) in rt1719_dr_set()
|
H A D | stusb160x.c | 155 struct typec_port *port;
|
H A D | anx7411.c | 246 struct typec_port *port;
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_typec.h | 46 struct typec_port *port;
|
H A D | cros_ec_typec.c | 651 struct typec_port *port = typec->ports[port_num]->port; in cros_typec_set_port_params_v0() 668 struct typec_port *port = typec->ports[port_num]->port; in cros_typec_set_port_params_v1()
|
/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 306 struct typec_port *typec_port; member 963 return typec_set_mode(port->typec_port, state); in tcpm_mux_set() 1091 typec_set_data_role(port->typec_port, data); in tcpm_set_roles() 1092 typec_set_pwr_role(port->typec_port, role); in tcpm_set_roles() 1107 typec_set_pwr_role(port->typec_port, role); in tcpm_set_pwr_role() 1601 struct typec_port *typec = port->typec_port; in tcpm_pd_svdm() 1876 port->typec_port); in tcpm_handle_vdm_request() 4413 typec_set_pwr_opmode(port->typec_port, in run_state_machine() 6643 if (IS_ERR(port->typec_port)) { in tcpm_register_port() 6644 err = PTR_ERR(port->typec_port); in tcpm_register_port() [all …]
|
/openbmc/linux/drivers/extcon/ |
H A D | extcon-usbc-tusb320.c | 79 struct typec_port *port; 233 static int tusb320_port_type_set(struct typec_port *port, in tusb320_port_type_set() 280 struct typec_port *port = priv->port; in tusb320_typec_irq_handler()
|
/openbmc/linux/drivers/usb/typec/tipd/ |
H A D | core.c | 90 struct typec_port *port; 349 static int tps6598x_dr_set(struct typec_port *port, enum typec_data_role role) in tps6598x_dr_set() 379 static int tps6598x_pr_set(struct typec_port *port, enum typec_role role) in tps6598x_pr_set()
|
/openbmc/linux/drivers/usb/typec/ucsi/ |
H A D | ucsi.h | 350 struct typec_port *port;
|
H A D | ucsi.c | 1080 static int ucsi_dr_swap(struct typec_port *port, enum typec_data_role role) in ucsi_dr_swap() 1124 static int ucsi_pr_swap(struct typec_port *port, enum typec_role role) in ucsi_pr_swap()
|