rdo 2073 drivers/usb/typec/tcpm/tcpm.c u32 pdo, rdo = port->sink_request; rdo 2077 drivers/usb/typec/tcpm/tcpm.c index = rdo_index(rdo); rdo 2086 drivers/usb/typec/tcpm/tcpm.c max = rdo_max_current(rdo); rdo 2087 drivers/usb/typec/tcpm/tcpm.c op = rdo_op_current(rdo); rdo 2092 drivers/usb/typec/tcpm/tcpm.c if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) rdo 2106 drivers/usb/typec/tcpm/tcpm.c max = rdo_max_power(rdo); rdo 2107 drivers/usb/typec/tcpm/tcpm.c op = rdo_op_power(rdo); rdo 2112 drivers/usb/typec/tcpm/tcpm.c if (max > pdo_max && !(rdo & RDO_CAP_MISMATCH)) rdo 2327 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) rdo 2388 drivers/usb/typec/tcpm/tcpm.c *rdo = RDO_BATT(src_pdo_index + 1, mw, max_mw, flags); rdo 2394 drivers/usb/typec/tcpm/tcpm.c *rdo = RDO_FIXED(src_pdo_index + 1, ma, max_ma, flags); rdo 2411 drivers/usb/typec/tcpm/tcpm.c u32 rdo; rdo 2413 drivers/usb/typec/tcpm/tcpm.c ret = tcpm_pd_build_request(port, &rdo); rdo 2423 drivers/usb/typec/tcpm/tcpm.c msg.payload[0] = cpu_to_le32(rdo); rdo 2428 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pd_build_pps_request(struct tcpm_port *port, u32 *rdo) rdo 2493 drivers/usb/typec/tcpm/tcpm.c *rdo = RDO_PROG(src_pdo_index + 1, out_mv, op_ma, flags); rdo 2508 drivers/usb/typec/tcpm/tcpm.c u32 rdo; rdo 2510 drivers/usb/typec/tcpm/tcpm.c ret = tcpm_pd_build_pps_request(port, &rdo); rdo 2520 drivers/usb/typec/tcpm/tcpm.c msg.payload[0] = cpu_to_le32(rdo); rdo 395 include/linux/usb/pd.h static inline unsigned int rdo_index(u32 rdo) rdo 397 include/linux/usb/pd.h return (rdo >> RDO_OBJ_POS_SHIFT) & RDO_OBJ_POS_MASK; rdo 400 include/linux/usb/pd.h static inline unsigned int rdo_op_current(u32 rdo) rdo 402 include/linux/usb/pd.h return ((rdo >> RDO_FIXED_OP_CURR_SHIFT) & RDO_CURR_MASK) * 10; rdo 405 include/linux/usb/pd.h static inline unsigned int rdo_max_current(u32 rdo) rdo 407 include/linux/usb/pd.h return ((rdo >> RDO_FIXED_MAX_CURR_SHIFT) & rdo 411 include/linux/usb/pd.h static inline unsigned int rdo_op_power(u32 rdo) rdo 413 include/linux/usb/pd.h return ((rdo >> RDO_BATT_OP_PWR_SHIFT) & RDO_PWR_MASK) * 250; rdo 416 include/linux/usb/pd.h static inline unsigned int rdo_max_power(u32 rdo) rdo 418 include/linux/usb/pd.h return ((rdo >> RDO_BATT_MAX_PWR_SHIFT) & RDO_PWR_MASK) * 250;