Home
last modified time | relevance | path

Searched refs:rdo (Results 1 – 4 of 4) sorted by relevance

/linux/include/linux/usb/
H A Dpd.h471 static inline unsigned int rdo_index(u32 rdo) in rdo_index() argument
473 return (rdo >> RDO_OBJ_POS_SHIFT) & RDO_OBJ_POS_MASK; in rdo_index()
476 static inline unsigned int rdo_op_current(u32 rdo) in rdo_op_current() argument
478 return ((rdo >> RDO_FIXED_OP_CURR_SHIFT) & RDO_CURR_MASK) * 10; in rdo_op_current()
481 static inline unsigned int rdo_max_current(u32 rdo) in rdo_max_current() argument
483 return ((rdo >> RDO_FIXED_MAX_CURR_SHIFT) & in rdo_max_current()
487 static inline unsigned int rdo_op_power(u32 rdo) in rdo_op_power() argument
489 return ((rdo >> RDO_BATT_OP_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_op_power()
492 static inline unsigned int rdo_max_power(u32 rdo) in rdo_max_power() argument
494 return ((rdo >> RDO_BATT_MAX_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_max_power()
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c3928 u32 pdo, rdo = port->sink_request; in tcpm_pd_check_request() local
3932 index = rdo_index(rdo); in tcpm_pd_check_request()
3941 max = rdo_max_current(rdo); in tcpm_pd_check_request()
3942 op = rdo_op_current(rdo); in tcpm_pd_check_request()
3947 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request()
3961 max = rdo_max_power(rdo); in tcpm_pd_check_request()
3962 op = rdo_op_power(rdo); in tcpm_pd_check_request()
3967 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request()
4130 static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_request() argument
4191 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_build_request()
[all …]
/linux/drivers/usb/typec/ucsi/
H A Ducsi.c1053 con->rdo = UCSI_CONSTAT(con, RDO); in ucsi_pwr_opmode_change()
1061 con->rdo = 0; in ucsi_pwr_opmode_change()
1066 con->rdo = 0; in ucsi_pwr_opmode_change()
1071 con->rdo = 0; in ucsi_pwr_opmode_change()
H A Ducsi.h539 u32 rdo; member