Home
last modified time | relevance | path

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

/linux-6.12.1/include/linux/usb/
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-6.12.1/drivers/usb/typec/ucsi/
Dpsy.c122 index = rdo_index(con->rdo); in ucsi_psy_get_voltage_now()
179 val->intval = rdo_op_current(con->rdo) * 1000; in ucsi_psy_get_current_now()
Ducsi.c999 con->rdo = con->status.request_data_obj; in ucsi_pwr_opmode_change()
1007 con->rdo = 0; in ucsi_pwr_opmode_change()
1011 con->rdo = 0; in ucsi_pwr_opmode_change()
1015 con->rdo = 0; in ucsi_pwr_opmode_change()
Ducsi.h440 u32 rdo; member
/linux-6.12.1/drivers/usb/typec/tcpm/
Dtcpm.c3787 u32 pdo, rdo = port->sink_request; in tcpm_pd_check_request() local
3791 index = rdo_index(rdo); in tcpm_pd_check_request()
3800 max = rdo_max_current(rdo); in tcpm_pd_check_request()
3801 op = rdo_op_current(rdo); in tcpm_pd_check_request()
3806 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request()
3820 max = rdo_max_power(rdo); in tcpm_pd_check_request()
3821 op = rdo_op_power(rdo); in tcpm_pd_check_request()
3826 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request()
3989 static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_request() argument
4050 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_build_request()
[all …]