Searched refs:rdo (Results 1 – 5 of 5) sorted by relevance
404 static inline unsigned int rdo_index(u32 rdo) in rdo_index() argument406 return (rdo >> RDO_OBJ_POS_SHIFT) & RDO_OBJ_POS_MASK; in rdo_index()409 static inline unsigned int rdo_op_current(u32 rdo) in rdo_op_current() argument411 return ((rdo >> RDO_FIXED_OP_CURR_SHIFT) & RDO_CURR_MASK) * 10; in rdo_op_current()414 static inline unsigned int rdo_max_current(u32 rdo) in rdo_max_current() argument416 return ((rdo >> RDO_FIXED_MAX_CURR_SHIFT) & in rdo_max_current()420 static inline unsigned int rdo_op_power(u32 rdo) in rdo_op_power() argument422 return ((rdo >> RDO_BATT_OP_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_op_power()425 static inline unsigned int rdo_max_power(u32 rdo) in rdo_max_power() argument427 return ((rdo >> RDO_BATT_MAX_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_max_power()
122 index = rdo_index(con->rdo); in ucsi_psy_get_voltage_now()177 val->intval = rdo_op_current(con->rdo) * 1000; in ucsi_psy_get_current_now()
1016 con->rdo = UCSI_CONSTAT(con, RDO); in ucsi_pwr_opmode_change()1024 con->rdo = 0; in ucsi_pwr_opmode_change()1028 con->rdo = 0; in ucsi_pwr_opmode_change()1032 con->rdo = 0; in ucsi_pwr_opmode_change()
513 u32 rdo; member
3854 u32 pdo, rdo = port->sink_request; in tcpm_pd_check_request() local3858 index = rdo_index(rdo); in tcpm_pd_check_request()3867 max = rdo_max_current(rdo); in tcpm_pd_check_request()3868 op = rdo_op_current(rdo); in tcpm_pd_check_request()3887 max = rdo_max_power(rdo); in tcpm_pd_check_request()3888 op = rdo_op_power(rdo); in tcpm_pd_check_request()4140 u32 rdo; in tcpm_pd_send_request() local4142 ret = tcpm_pd_build_request(port, &rdo); in tcpm_pd_send_request()4158 msg.payload[0] = cpu_to_le32(rdo); in tcpm_pd_send_request()4227 u32 rdo; in tcpm_pd_send_pps_request() local[all …]