Home
last modified time | relevance | path

Searched refs:typec_port (Results 1 – 17 of 17) sorted by relevance

/linux-6.15/include/linux/usb/
H A Dtypec.h19 struct typec_port;
167 *typec_port_register_altmode(struct typec_port *port,
170 void typec_port_register_altmodes(struct typec_port *port,
262 int (*try_role)(struct typec_port *port, int role);
266 int (*port_type_set)(struct typec_port *port,
319 struct typec_port *typec_register_port(struct device *parent,
321 void typec_unregister_port(struct typec_port *port);
344 int typec_set_orientation(struct typec_port *port,
347 int typec_set_mode(struct typec_port *port, int mode);
349 void *typec_get_drvdata(struct typec_port *port);
[all …]
/linux-6.15/drivers/usb/typec/
H A Dclass.h47 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 Dport-mapper.c17 struct typec_port *port = to_typec_port(dev); in typec_aggregate_bind()
24 struct typec_port *port = to_typec_port(dev); in typec_aggregate_unbind()
35 struct typec_port *port;
60 int typec_link_ports(struct typec_port *con) in typec_link_ports()
85 void typec_unlink_ports(struct typec_port *con) in typec_unlink_ports()
H A Dclass.c1082 struct typec_port *port; in typec_unregister_partner()
1437 struct typec_port *port = to_typec_port(dev); in usb_capability_show()
1460 struct typec_port *port = to_typec_port(dev); in usb_capability_store()
1516 struct typec_port *port = to_typec_port(dev); in select_usb_power_delivery_store()
1537 struct typec_port *port = to_typec_port(dev); in select_usb_power_delivery_show()
1621 struct typec_port *port = to_typec_port(dev); in preferred_role_store()
1655 struct typec_port *port = to_typec_port(dev); in preferred_role_show()
1921 struct typec_port *p = to_typec_port(dev); in usb_power_delivery_revision_show()
2052 struct typec_port *port = container_of(con, struct typec_port, con); in typec_partner_attach()
2077 struct typec_port *port = container_of(con, struct typec_port, con); in typec_partner_deattach()
[all …]
H A Dwusb3801.c90 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 Dhd3ss3220.c53 struct typec_port *port;
180 static int hd3ss3220_try_role(struct typec_port *port, int role) in hd3ss3220_try_role()
187 static int hd3ss3220_port_type_set(struct typec_port *port, enum typec_port_type type) in hd3ss3220_port_type_set()
H A Drt1719.c88 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 Dstusb160x.c155 struct typec_port *port;
H A Danx7411.c247 struct typec_port *port;
/linux-6.15/drivers/usb/typec/tcpm/
H A Dtcpm.c342 struct typec_port *typec_port; member
1208 typec_set_pwr_role(port->typec_port, role); in tcpm_set_roles()
1223 typec_set_pwr_role(port->typec_port, role); in tcpm_set_pwr_role()
1926 struct typec_port *typec = port->typec_port; in tcpm_pd_svdm()
2378 port->typec_port); in tcpm_handle_vdm_request()
2390 port->typec_port); in tcpm_handle_vdm_request()
2618 port->typec_port), in vdm_run_state_machine()
5219 typec_set_pwr_opmode(port->typec_port, in run_state_machine()
7788 if (IS_ERR(port->typec_port)) { in tcpm_register_port()
7789 err = PTR_ERR(port->typec_port); in tcpm_register_port()
[all …]
/linux-6.15/drivers/platform/chrome/
H A Dcros_ec_typec.h48 struct typec_port *port;
H A Dcros_ec_typec.c45 static int cros_typec_enter_usb_mode(struct typec_port *tc_port, enum usb_mode mode) in cros_typec_enter_usb_mode()
743 struct typec_port *port = typec->ports[port_num]->port; in cros_typec_set_port_params_v0()
760 struct typec_port *port = typec->ports[port_num]->port; in cros_typec_set_port_params_v1()
/linux-6.15/drivers/extcon/
H A Dextcon-usbc-tusb320.c80 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 Dextcon-rtk-type-c.c101 struct typec_port *port;
699 static int type_c_port_dr_set(struct typec_port *port, in type_c_port_dr_set()
/linux-6.15/drivers/usb/typec/tipd/
H A Dcore.c130 struct typec_port *port;
402 static int tps6598x_dr_set(struct typec_port *port, enum typec_data_role role) in tps6598x_dr_set()
432 static int tps6598x_pr_set(struct typec_port *port, enum typec_role role) in tps6598x_pr_set()
/linux-6.15/drivers/usb/typec/ucsi/
H A Ducsi.h496 struct typec_port *port;
H A Ducsi.c1437 static int ucsi_dr_swap(struct typec_port *port, enum typec_data_role role) in ucsi_dr_swap()
1481 static int ucsi_pr_swap(struct typec_port *port, enum typec_role role) in ucsi_pr_swap()