Symbol: typec_port
drivers/extcon/extcon-rtk-type-c.c
101
struct typec_port *port;
drivers/extcon/extcon-rtk-type-c.c
699
static int type_c_port_dr_set(struct typec_port *port,
drivers/extcon/extcon-usbc-tusb320.c
234
static int tusb320_port_type_set(struct typec_port *port,
drivers/extcon/extcon-usbc-tusb320.c
281
struct typec_port *port = priv->port;
drivers/extcon/extcon-usbc-tusb320.c
80
struct typec_port *port;
drivers/gpu/drm/bridge/analogix/anx7625.c
1551
static int anx7625_typec_dr_set(struct typec_port *port, enum typec_data_role role)
drivers/gpu/drm/bridge/analogix/anx7625.c
1570
typec_set_orientation(ctx->typec_port, TYPEC_ORIENTATION_NORMAL);
drivers/gpu/drm/bridge/analogix/anx7625.c
1572
typec_set_orientation(ctx->typec_port, TYPEC_ORIENTATION_REVERSE);
drivers/gpu/drm/bridge/analogix/anx7625.c
1574
typec_set_orientation(ctx->typec_port, TYPEC_ORIENTATION_NONE);
drivers/gpu/drm/bridge/analogix/anx7625.c
1581
if (!ctx->typec_port)
drivers/gpu/drm/bridge/analogix/anx7625.c
1592
typec_set_data_role(ctx->typec_port, data_role);
drivers/gpu/drm/bridge/analogix/anx7625.c
1596
typec_set_pwr_role(ctx->typec_port,
drivers/gpu/drm/bridge/analogix/anx7625.c
1600
typec_set_vconn_role(ctx->typec_port,
drivers/gpu/drm/bridge/analogix/anx7625.c
1628
ctx->typec_port = typec_register_port(ctx->dev, &typec_cap);
drivers/gpu/drm/bridge/analogix/anx7625.c
1629
if (IS_ERR(ctx->typec_port))
drivers/gpu/drm/bridge/analogix/anx7625.c
1630
return PTR_ERR(ctx->typec_port);
drivers/gpu/drm/bridge/analogix/anx7625.c
1634
typec_unregister_port(ctx->typec_port);
drivers/gpu/drm/bridge/analogix/anx7625.c
1650
typec_unregister_port(ctx->typec_port);
drivers/gpu/drm/bridge/analogix/anx7625.h
465
struct typec_port;
drivers/gpu/drm/bridge/analogix/anx7625.h
479
struct typec_port *typec_port;
drivers/platform/chrome/cros_ec_typec.c
132
static int cros_typec_dr_swap(struct typec_port *port, enum typec_data_role role)
drivers/platform/chrome/cros_ec_typec.c
137
static int cros_typec_pr_swap(struct typec_port *port, enum typec_role role)
drivers/platform/chrome/cros_ec_typec.c
47
static int cros_typec_enter_usb_mode(struct typec_port *tc_port, enum usb_mode mode)
drivers/platform/chrome/cros_ec_typec.c
61
static int cros_typec_perform_role_swap(struct typec_port *tc_port, int target_role, u8 swap_type)
drivers/platform/chrome/cros_ec_typec.c
829
struct typec_port *port = typec->ports[port_num]->port;
drivers/platform/chrome/cros_ec_typec.c
846
struct typec_port *port = typec->ports[port_num]->port;
drivers/platform/chrome/cros_ec_typec.h
48
struct typec_port *port;
drivers/usb/typec/anx7411.c
247
struct typec_port *port;
drivers/usb/typec/class.c
1106
struct typec_partner *typec_register_partner(struct typec_port *port,
drivers/usb/typec/class.c
1176
struct typec_port *port;
drivers/usb/typec/class.c
1397
struct typec_cable *typec_cable_get(struct typec_port *port)
drivers/usb/typec/class.c
1459
struct typec_cable *typec_register_cable(struct typec_port *port,
drivers/usb/typec/class.c
1522
void typec_port_set_usb_mode(struct typec_port *port, enum usb_mode mode)
drivers/usb/typec/class.c
1531
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1554
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1585
int typec_port_set_usb_power_delivery(struct typec_port *port, struct usb_power_delivery *pd)
drivers/usb/typec/class.c
1610
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1632
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1663
struct typec_port *port = to_typec_port(kobj_to_dev(kobj));
drivers/usb/typec/class.c
1716
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1750
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1766
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1797
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1811
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1849
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1863
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1901
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1922
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1932
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1960
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1971
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
1994
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
2016
struct typec_port *p = to_typec_port(dev);
drivers/usb/typec/class.c
2027
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
2051
struct typec_port *port = to_typec_port(kobj_to_dev(kobj));
drivers/usb/typec/class.c
2112
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/class.c
2133
static struct typec_partner *typec_get_partner(struct typec_port *port)
drivers/usb/typec/class.c
2147
struct typec_port *port = container_of(con, struct typec_port, con);
drivers/usb/typec/class.c
2172
struct typec_port *port = container_of(con, struct typec_port, con);
drivers/usb/typec/class.c
2196
void typec_set_data_role(struct typec_port *port, enum typec_data_role role)
drivers/usb/typec/class.c
2225
enum typec_data_role typec_get_data_role(struct typec_port *port)
drivers/usb/typec/class.c
2238
void typec_set_pwr_role(struct typec_port *port, enum typec_role role)
drivers/usb/typec/class.c
2257
void typec_set_vconn_role(struct typec_port *port, enum typec_role role)
drivers/usb/typec/class.c
2278
void typec_set_pwr_opmode(struct typec_port *port,
drivers/usb/typec/class.c
2391
int typec_set_orientation(struct typec_port *port,
drivers/usb/typec/class.c
2414
enum typec_orientation typec_get_orientation(struct typec_port *port)
drivers/usb/typec/class.c
2428
int typec_set_mode(struct typec_port *port, int mode)
drivers/usb/typec/class.c
2451
int typec_get_negotiated_svdm_version(struct typec_port *port)
drivers/usb/typec/class.c
248
struct typec_port *port = typec_altmode2port(adev);
drivers/usb/typec/class.c
2480
int typec_get_cable_svdm_version(struct typec_port *port)
drivers/usb/typec/class.c
2514
void *typec_get_drvdata(struct typec_port *port)
drivers/usb/typec/class.c
2574
typec_port_register_altmode(struct typec_port *port,
drivers/usb/typec/class.c
2611
void typec_port_register_altmodes(struct typec_port *port,
drivers/usb/typec/class.c
2696
struct typec_port *typec_register_port(struct device *parent,
drivers/usb/typec/class.c
2699
struct typec_port *port;
drivers/usb/typec/class.c
2829
void typec_unregister_port(struct typec_port *port)
drivers/usb/typec/class.c
329
struct typec_port *typec_altmode2port(struct typec_altmode *alt)
drivers/usb/typec/class.c
477
struct typec_port *port = to_typec_port(alt->dev.parent);
drivers/usb/typec/class.c
537
struct typec_port *port = typec_altmode2port(adev);
drivers/usb/typec/class.c
765
struct typec_port *port = to_typec_port(dev->parent);
drivers/usb/typec/class.c
77
struct typec_port *port = to_typec_port(dev->parent);
drivers/usb/typec/class.c
843
struct typec_port *port = to_typec_port(partner->dev.parent);
drivers/usb/typec/class.h
108
int typec_link_ports(struct typec_port *connector);
drivers/usb/typec/class.h
109
void typec_unlink_ports(struct typec_port *connector);
drivers/usb/typec/class.h
111
static inline int typec_link_ports(struct typec_port *connector) { return 0; }
drivers/usb/typec/class.h
112
static inline void typec_unlink_ports(struct typec_port *connector) { }
drivers/usb/typec/class.h
88
#define to_typec_port(_dev_) container_of(_dev_, struct typec_port, dev)
drivers/usb/typec/hd3ss3220.c
188
static int hd3ss3220_try_role(struct typec_port *port, int role)
drivers/usb/typec/hd3ss3220.c
195
static int hd3ss3220_port_type_set(struct typec_port *port, enum typec_port_type type)
drivers/usb/typec/hd3ss3220.c
56
struct typec_port *port;
drivers/usb/typec/port-mapper.c
104
void typec_unlink_ports(struct typec_port *con)
drivers/usb/typec/port-mapper.c
18
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/port-mapper.c
25
struct typec_port *port = to_typec_port(dev);
drivers/usb/typec/port-mapper.c
36
struct typec_port *port;
drivers/usb/typec/port-mapper.c
79
int typec_link_ports(struct typec_port *con)
drivers/usb/typec/rt1719.c
393
static int rt1719_dr_set(struct typec_port *port, enum typec_data_role role)
drivers/usb/typec/rt1719.c
88
struct typec_port *port;
drivers/usb/typec/stusb160x.c
155
struct typec_port *port;
drivers/usb/typec/tcpm/tcpm.c
1194
ret = typec_set_orientation(port->typec_port, orientation);
drivers/usb/typec/tcpm/tcpm.c
1204
return typec_set_mode(port->typec_port, state);
drivers/usb/typec/tcpm/tcpm.c
1232
typec_set_vconn_role(port->typec_port, port->vconn_role);
drivers/usb/typec/tcpm/tcpm.c
1338
typec_set_data_role(port->typec_port, data);
drivers/usb/typec/tcpm/tcpm.c
1339
typec_set_pwr_role(port->typec_port, role);
drivers/usb/typec/tcpm/tcpm.c
1354
typec_set_pwr_role(port->typec_port, role);
drivers/usb/typec/tcpm/tcpm.c
1919
port->cable = typec_register_cable(port->typec_port, &port->cable_desc);
drivers/usb/typec/tcpm/tcpm.c
2161
struct typec_port *typec = port->typec_port;
drivers/usb/typec/tcpm/tcpm.c
2212
struct typec_port *typec = port->typec_port;
drivers/usb/typec/tcpm/tcpm.c
2374
(typec_get_cable_svdm_version(port->typec_port) >
drivers/usb/typec/tcpm/tcpm.c
2644
port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
2656
port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
2701
svdm_version = typec_get_cable_svdm_version(port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
2706
svdm_version = typec_get_negotiated_svdm_version(port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
2711
svdm_version = typec_get_negotiated_svdm_version(port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
2884
port->typec_port),
drivers/usb/typec/tcpm/tcpm.c
3092
svdm_version = typec_get_negotiated_svdm_version(port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
3108
svdm_version = typec_get_negotiated_svdm_version(port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
3140
svdm_version = typec_get_cable_svdm_version(port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
3156
svdm_version = typec_get_cable_svdm_version(port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
437
struct typec_port *typec_port;
drivers/usb/typec/tcpm/tcpm.c
4797
partner = typec_register_partner(port->typec_port, &port->partner_desc);
drivers/usb/typec/tcpm/tcpm.c
5290
typec_set_pwr_opmode(port->typec_port, opmode);
drivers/usb/typec/tcpm/tcpm.c
5383
typec_set_pwr_opmode(port->typec_port, TYPEC_PWR_MODE_PD);
drivers/usb/typec/tcpm/tcpm.c
5568
typec_set_pwr_opmode(port->typec_port, opmode);
drivers/usb/typec/tcpm/tcpm.c
5775
typec_set_pwr_opmode(port->typec_port,
drivers/usb/typec/tcpm/tcpm.c
7085
static int tcpm_dr_set(struct typec_port *p, enum typec_data_role data)
drivers/usb/typec/tcpm/tcpm.c
7157
static int tcpm_pr_set(struct typec_port *p, enum typec_role role)
drivers/usb/typec/tcpm/tcpm.c
7206
static int tcpm_vconn_set(struct typec_port *p, enum typec_role role)
drivers/usb/typec/tcpm/tcpm.c
7251
static int tcpm_try_role(struct typec_port *p, int role)
drivers/usb/typec/tcpm/tcpm.c
7567
static int tcpm_port_type_set(struct typec_port *p, enum typec_port_type type)
drivers/usb/typec/tcpm/tcpm.c
7606
static struct usb_power_delivery **tcpm_pd_get(struct typec_port *p)
drivers/usb/typec/tcpm/tcpm.c
7613
static int tcpm_pd_set(struct typec_port *p, struct usb_power_delivery *pd)
drivers/usb/typec/tcpm/tcpm.c
8598
port->typec_port = typec_register_port(port->dev, &port->typec_caps);
drivers/usb/typec/tcpm/tcpm.c
8599
if (IS_ERR(port->typec_port)) {
drivers/usb/typec/tcpm/tcpm.c
8600
err = PTR_ERR(port->typec_port);
drivers/usb/typec/tcpm/tcpm.c
8604
typec_port_register_altmodes(port->typec_port,
drivers/usb/typec/tcpm/tcpm.c
8647
typec_unregister_port(port->typec_port);
drivers/usb/typec/tipd/core.c
173
struct typec_port *port;
drivers/usb/typec/tipd/core.c
475
static int tps6598x_dr_set(struct typec_port *port, enum typec_data_role role)
drivers/usb/typec/tipd/core.c
505
static int tps6598x_pr_set(struct typec_port *port, enum typec_role role)
drivers/usb/typec/ucsi/ucsi.c
1701
static int ucsi_dr_swap(struct typec_port *port, enum typec_data_role role)
drivers/usb/typec/ucsi/ucsi.c
1745
static int ucsi_pr_swap(struct typec_port *port, enum typec_role role)
drivers/usb/typec/ucsi/ucsi.h
538
struct typec_port *port;
drivers/usb/typec/wusb3801.c
181
static int wusb3801_try_role(struct typec_port *port, int role)
drivers/usb/typec/wusb3801.c
190
static int wusb3801_port_type_set(struct typec_port *port,
drivers/usb/typec/wusb3801.c
222
struct typec_port *port = wusb3801->port;
drivers/usb/typec/wusb3801.c
90
struct typec_port *port;
include/linux/usb/typec.h
171
*typec_port_register_altmode(struct typec_port *port,
include/linux/usb/typec.h
174
void typec_port_register_altmodes(struct typec_port *port,
include/linux/usb/typec.h
183
struct typec_port *typec_altmode2port(struct typec_altmode *alt);
include/linux/usb/typec.h
19
struct typec_port;
include/linux/usb/typec.h
266
int (*try_role)(struct typec_port *port, int role);
include/linux/usb/typec.h
267
int (*dr_set)(struct typec_port *port, enum typec_data_role role);
include/linux/usb/typec.h
268
int (*pr_set)(struct typec_port *port, enum typec_role role);
include/linux/usb/typec.h
269
int (*vconn_set)(struct typec_port *port, enum typec_role role);
include/linux/usb/typec.h
270
int (*port_type_set)(struct typec_port *port,
include/linux/usb/typec.h
272
struct usb_power_delivery **(*pd_get)(struct typec_port *port);
include/linux/usb/typec.h
273
int (*pd_set)(struct typec_port *port, struct usb_power_delivery *pd);
include/linux/usb/typec.h
274
int (*default_usb_mode_set)(struct typec_port *port, enum usb_mode mode);
include/linux/usb/typec.h
275
int (*enter_usb_mode)(struct typec_port *port, enum usb_mode mode);
include/linux/usb/typec.h
325
struct typec_port *typec_register_port(struct device *parent,
include/linux/usb/typec.h
327
void typec_unregister_port(struct typec_port *port);
include/linux/usb/typec.h
329
struct typec_partner *typec_register_partner(struct typec_port *port,
include/linux/usb/typec.h
333
struct typec_cable *typec_register_cable(struct typec_port *port,
include/linux/usb/typec.h
337
struct typec_cable *typec_cable_get(struct typec_port *port);
include/linux/usb/typec.h
345
void typec_set_data_role(struct typec_port *port, enum typec_data_role role);
include/linux/usb/typec.h
346
enum typec_data_role typec_get_data_role(struct typec_port *port);
include/linux/usb/typec.h
347
void typec_set_pwr_role(struct typec_port *port, enum typec_role role);
include/linux/usb/typec.h
348
void typec_set_vconn_role(struct typec_port *port, enum typec_role role);
include/linux/usb/typec.h
349
void typec_set_pwr_opmode(struct typec_port *port, enum typec_pwr_opmode mode);
include/linux/usb/typec.h
351
int typec_set_orientation(struct typec_port *port,
include/linux/usb/typec.h
353
enum typec_orientation typec_get_orientation(struct typec_port *port);
include/linux/usb/typec.h
354
int typec_set_mode(struct typec_port *port, int mode);
include/linux/usb/typec.h
356
void *typec_get_drvdata(struct typec_port *port);
include/linux/usb/typec.h
369
int typec_get_negotiated_svdm_version(struct typec_port *port);
include/linux/usb/typec.h
371
int typec_get_cable_svdm_version(struct typec_port *port);
include/linux/usb/typec.h
377
int typec_port_set_usb_power_delivery(struct typec_port *port, struct usb_power_delivery *pd);
include/linux/usb/typec.h
382
void typec_port_set_usb_mode(struct typec_port *port, enum usb_mode mode);