Lines Matching refs:rdo
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()
1802 *rdo = RDO_FIXED(src_pdo_index + 1, ma, max_ma, flags); in tcpm_pd_build_request()
1819 u32 rdo; in tcpm_pd_send_request() local
1821 ret = tcpm_pd_build_request(port, &rdo); in tcpm_pd_send_request()
1831 msg.payload[0] = cpu_to_le32(rdo); in tcpm_pd_send_request()
1836 static int tcpm_pd_build_pps_request(struct tcpm_port *port, u32 *rdo) in tcpm_pd_build_pps_request() argument
1901 *rdo = RDO_PROG(src_pdo_index + 1, out_mv, op_ma, flags); in tcpm_pd_build_pps_request()
1916 u32 rdo; in tcpm_pd_send_pps_request() local
1918 ret = tcpm_pd_build_pps_request(port, &rdo); in tcpm_pd_send_pps_request()
1928 msg.payload[0] = cpu_to_le32(rdo); in tcpm_pd_send_pps_request()