Searched refs:rdo (Results 1 – 5 of 5) sorted by relevance
399 static inline unsigned int rdo_index(u32 rdo) in rdo_index() argument401 return (rdo >> RDO_OBJ_POS_SHIFT) & RDO_OBJ_POS_MASK; in rdo_index()404 static inline unsigned int rdo_op_current(u32 rdo) in rdo_op_current() argument406 return ((rdo >> RDO_FIXED_OP_CURR_SHIFT) & RDO_CURR_MASK) * 10; in rdo_op_current()409 static inline unsigned int rdo_max_current(u32 rdo) in rdo_max_current() argument411 return ((rdo >> RDO_FIXED_MAX_CURR_SHIFT) & in rdo_max_current()415 static inline unsigned int rdo_op_power(u32 rdo) in rdo_op_power() argument417 return ((rdo >> RDO_BATT_OP_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_op_power()420 static inline unsigned int rdo_max_power(u32 rdo) in rdo_max_power() argument422 return ((rdo >> RDO_BATT_MAX_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_max_power()
100 index = rdo_index(con->rdo); in ucsi_psy_get_voltage_now()157 val->intval = rdo_op_current(con->rdo) * 1000; in ucsi_psy_get_current_now()
722 con->rdo = con->status.request_data_obj; in ucsi_pwr_opmode_change()729 con->rdo = 0; in ucsi_pwr_opmode_change()733 con->rdo = 0; in ucsi_pwr_opmode_change()737 con->rdo = 0; in ucsi_pwr_opmode_change()
339 u32 rdo; member
3076 u32 pdo, rdo = port->sink_request; in tcpm_pd_check_request() local3080 index = rdo_index(rdo); in tcpm_pd_check_request()3089 max = rdo_max_current(rdo); in tcpm_pd_check_request()3090 op = rdo_op_current(rdo); in tcpm_pd_check_request()3109 max = rdo_max_power(rdo); in tcpm_pd_check_request()3110 op = rdo_op_power(rdo); in tcpm_pd_check_request()3416 u32 rdo; in tcpm_pd_send_request() local3418 ret = tcpm_pd_build_request(port, &rdo); in tcpm_pd_send_request()3434 msg.payload[0] = cpu_to_le32(rdo); in tcpm_pd_send_request()3519 u32 rdo; in tcpm_pd_send_pps_request() local[all …]
Completed in 22 milliseconds