Searched refs:rdo (Results 1 – 7 of 7) sorted by relevance
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | pd.h | 399 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()
|
| /OK3568_Linux_fs/u-boot/include/power/power_delivery/ |
| H A D | pd.h | 399 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()
|
| /OK3568_Linux_fs/u-boot/drivers/power/power_delivery/ |
| H A D | tcpm.c | 1486 u32 pdo, rdo = port->sink_request; in tcpm_pd_check_request() local 1490 index = rdo_index(rdo); in tcpm_pd_check_request() 1499 max = rdo_max_current(rdo); in tcpm_pd_check_request() 1500 op = rdo_op_current(rdo); in tcpm_pd_check_request() 1505 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request() 1517 max = rdo_max_power(rdo); in tcpm_pd_check_request() 1518 op = rdo_op_power(rdo); in tcpm_pd_check_request() 1523 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request() 1735 static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_request() argument 1796 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_build_request() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/ucsi/ |
| H A D | psy.c | 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()
|
| H A D | ucsi.c | 548 con->rdo = con->status.request_data_obj; in ucsi_pwr_opmode_change() 553 con->rdo = 0; in ucsi_pwr_opmode_change() 557 con->rdo = 0; in ucsi_pwr_opmode_change() 561 con->rdo = 0; in ucsi_pwr_opmode_change()
|
| H A D | ucsi.h | 357 u32 rdo; member
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 3075 u32 pdo, rdo = port->sink_request; in tcpm_pd_check_request() local 3079 index = rdo_index(rdo); in tcpm_pd_check_request() 3088 max = rdo_max_current(rdo); in tcpm_pd_check_request() 3089 op = rdo_op_current(rdo); in tcpm_pd_check_request() 3094 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request() 3108 max = rdo_max_power(rdo); in tcpm_pd_check_request() 3109 op = rdo_op_power(rdo); in tcpm_pd_check_request() 3114 if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) in tcpm_pd_check_request() 3331 static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_request() argument 3392 *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); in tcpm_pd_build_request() [all …]
|