Home
last modified time | relevance | path

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

/linux/include/linux/usb/
H A Dpd.h400 static inline unsigned int rdo_index(u32 rdo) in rdo_index() argument
402 return (rdo >> RDO_OBJ_POS_SHIFT) & RDO_OBJ_POS_MASK; in rdo_index()
405 static inline unsigned int rdo_op_current(u32 rdo) in rdo_op_current() argument
407 return ((rdo >> RDO_FIXED_OP_CURR_SHIFT) & RDO_CURR_MASK) * 10; in rdo_op_current()
410 static inline unsigned int rdo_max_current(u32 rdo) in rdo_max_current() argument
412 return ((rdo >> RDO_FIXED_MAX_CURR_SHIFT) & in rdo_max_current()
416 static inline unsigned int rdo_op_power(u32 rdo) in rdo_op_power() argument
418 return ((rdo >> RDO_BATT_OP_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_op_power()
421 static inline unsigned int rdo_max_power(u32 rdo) in rdo_max_power() argument
423 return ((rdo >> RDO_BATT_MAX_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_max_power()
/linux/drivers/usb/typec/ucsi/
H A Ducsi.c1013 con->rdo = UCSI_CONSTAT(con, RDO); in ucsi_pwr_opmode_change()
1021 con->rdo = 0; in ucsi_pwr_opmode_change()
1025 con->rdo = 0; in ucsi_pwr_opmode_change()
1029 con->rdo = 0; in ucsi_pwr_opmode_change()