Home
last modified time | relevance | path

Searched refs:UCSI_CONSTAT (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/usb/typec/ucsi/
H A Dpsy.c58 bool is_sink = UCSI_CONSTAT(con, PWR_DIR) == TYPEC_SINK; in ucsi_psy_get_status()
65 UCSI_CONSTAT(con, SINK_PATH_STATUS_V2_0) == in ucsi_psy_get_status()
68 if (UCSI_CONSTAT(con, CONNECTED)) { in ucsi_psy_get_status()
82 if (UCSI_CONSTAT(con, CONNECTED) && in ucsi_psy_get_online()
83 (UCSI_CONSTAT(con, PWR_DIR) == TYPEC_SINK)) in ucsi_psy_get_online()
93 switch (UCSI_CONSTAT(con, PWR_OPMODE)) { in ucsi_psy_get_voltage_min()
117 switch (UCSI_CONSTAT(con, PWR_OPMODE)) { in ucsi_psy_get_voltage_max()
149 switch (UCSI_CONSTAT(con, PWR_OPMODE)) { in ucsi_psy_get_voltage_now()
178 if (!UCSI_CONSTAT(con, CONNECTED)) { in ucsi_psy_get_current_max()
183 switch (UCSI_CONSTAT(con, PWR_OPMODE)) { in ucsi_psy_get_current_max()
[all …]
H A Dtrace.h57 __entry->change = UCSI_CONSTAT(con, CHANGE);
58 __entry->opmode = UCSI_CONSTAT(con, PWR_OPMODE);
59 __entry->connected = UCSI_CONSTAT(con, CONNECTED);
60 __entry->pwr_dir = UCSI_CONSTAT(con, PWR_DIR);
61 __entry->partner_flags = UCSI_CONSTAT(con, PARTNER_FLAGS);
62 __entry->partner_type = UCSI_CONSTAT(con, PARTNER_TYPE);
63 __entry->request_data_obj = UCSI_CONSTAT(con, RDO);
64 __entry->bc_status = UCSI_CONSTAT(con, BC_STATUS);
H A Ducsi.c696 (UCSI_CONSTAT(con, PWR_DIR) || !is_source(role))) in ucsi_read_pdos()
1037 if (!UCSI_CONSTAT(con, CONNECTED)) { in ucsi_orientation()
1042 switch (UCSI_CONSTAT(con, ORIENTATION)) { in ucsi_orientation()
1056 switch (UCSI_CONSTAT(con, PWR_OPMODE)) { in ucsi_pwr_opmode_change()
1058 con->rdo = UCSI_CONSTAT(con, RDO); in ucsi_pwr_opmode_change()
1085 u8 pwr_opmode = UCSI_CONSTAT(con, PWR_OPMODE); in ucsi_register_partner()
1094 switch (UCSI_CONSTAT(con, PARTNER_TYPE)) { in ucsi_register_partner()
1128 UCSI_CONSTAT(con, PARTNER_FLAG_USB4_GEN4)) in ucsi_register_partner()
1131 UCSI_CONSTAT(con, PARTNER_FLAG_USB4_GEN3)) in ucsi_register_partner()
1160 switch (UCSI_CONSTAT(con, PARTNER_TYPE)) { in ucsi_partner_change()
[all …]
H A Ducsi_glink.c212 if (!UCSI_CONSTAT(con, CONNECTED)) { in pmic_glink_ucsi_connector_status()
H A Ducsi.h451 #define UCSI_CONSTAT(_con_, _field_) \ macro