Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/usb/
Dpd.h398 static inline unsigned int rdo_index(u32 rdo) in rdo_index() argument
400 return (rdo >> RDO_OBJ_POS_SHIFT) & RDO_OBJ_POS_MASK; in rdo_index()
403 static inline unsigned int rdo_op_current(u32 rdo) in rdo_op_current() argument
405 return ((rdo >> RDO_FIXED_OP_CURR_SHIFT) & RDO_CURR_MASK) * 10; in rdo_op_current()
408 static inline unsigned int rdo_max_current(u32 rdo) in rdo_max_current() argument
410 return ((rdo >> RDO_FIXED_MAX_CURR_SHIFT) & in rdo_max_current()
414 static inline unsigned int rdo_op_power(u32 rdo) in rdo_op_power() argument
416 return ((rdo >> RDO_BATT_OP_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_op_power()
419 static inline unsigned int rdo_max_power(u32 rdo) in rdo_max_power() argument
421 return ((rdo >> RDO_BATT_MAX_PWR_SHIFT) & RDO_PWR_MASK) * 250; in rdo_max_power()
/Linux-v5.10/drivers/usb/typec/ucsi/
Dpsy.c100 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()
Ducsi.c523 con->rdo = con->status.request_data_obj; in ucsi_pwr_opmode_change()
528 con->rdo = 0; in ucsi_pwr_opmode_change()
532 con->rdo = 0; in ucsi_pwr_opmode_change()
536 con->rdo = 0; in ucsi_pwr_opmode_change()
Ducsi.h329 u32 rdo; member
/Linux-v5.10/drivers/usb/typec/tcpm/
Dtcpm.c2235 u32 pdo, rdo = port->sink_request; in tcpm_pd_check_request() local
2239 index = rdo_index(rdo); in tcpm_pd_check_request()
2248 max = rdo_max_current(rdo); in tcpm_pd_check_request()
2249 op = rdo_op_current(rdo); in tcpm_pd_check_request()
2254 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request()
2268 max = rdo_max_power(rdo); in tcpm_pd_check_request()
2269 op = rdo_op_power(rdo); in tcpm_pd_check_request()
2274 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request()
2489 static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_request() argument
2550 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_build_request()
[all …]