Home
last modified time | relevance | path

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

/Linux-v6.6/include/linux/usb/
Dpd.h399 static inline unsigned int rdo_index(u32 rdo) in rdo_index() argument
401 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() argument
406 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() argument
411 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() argument
417 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() argument
422 return ((rdo >> RDO_BATT_MAX_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_max_power()
/Linux-v6.6/drivers/usb/typec/ucsi/
Dpsy.c121 index = rdo_index(con->rdo); in ucsi_psy_get_voltage_now()
178 val->intval = rdo_op_current(con->rdo) * 1000; in ucsi_psy_get_current_now()
Ducsi.c725 con->rdo = con->status.request_data_obj; in ucsi_pwr_opmode_change()
732 con->rdo = 0; in ucsi_pwr_opmode_change()
736 con->rdo = 0; in ucsi_pwr_opmode_change()
740 con->rdo = 0; in ucsi_pwr_opmode_change()
Ducsi.h351 u32 rdo; member
/Linux-v6.6/drivers/usb/typec/tcpm/
Dtcpm.c3109 u32 pdo, rdo = port->sink_request; in tcpm_pd_check_request() local
3113 index = rdo_index(rdo); in tcpm_pd_check_request()
3122 max = rdo_max_current(rdo); in tcpm_pd_check_request()
3123 op = rdo_op_current(rdo); in tcpm_pd_check_request()
3128 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request()
3142 max = rdo_max_power(rdo); in tcpm_pd_check_request()
3143 op = rdo_op_power(rdo); in tcpm_pd_check_request()
3148 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request()
3311 static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_request() argument
3372 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_build_request()
[all …]