Lines Matching refs:pcfg
736 struct qcom_swrm_port_config *pcfg; in qcom_swrm_transport_params() local
741 pcfg = &ctrl->pconfig[params->port_num]; in qcom_swrm_transport_params()
743 value = pcfg->off1 << SWRM_DP_PORT_CTRL_OFFSET1_SHFT; in qcom_swrm_transport_params()
744 value |= pcfg->off2 << SWRM_DP_PORT_CTRL_OFFSET2_SHFT; in qcom_swrm_transport_params()
745 value |= pcfg->si; in qcom_swrm_transport_params()
751 if (pcfg->lane_control != SWR_INVALID_PARAM) { in qcom_swrm_transport_params()
753 value = pcfg->lane_control; in qcom_swrm_transport_params()
759 if (pcfg->blk_group_count != SWR_INVALID_PARAM) { in qcom_swrm_transport_params()
761 value = pcfg->blk_group_count; in qcom_swrm_transport_params()
767 if (pcfg->hstart != SWR_INVALID_PARAM in qcom_swrm_transport_params()
768 && pcfg->hstop != SWR_INVALID_PARAM) { in qcom_swrm_transport_params()
770 value = (pcfg->hstop << 4) | pcfg->hstart; in qcom_swrm_transport_params()
781 if (pcfg->bp_mode != SWR_INVALID_PARAM) { in qcom_swrm_transport_params()
783 ret = ctrl->reg_write(ctrl, reg, pcfg->bp_mode); in qcom_swrm_transport_params()
825 struct qcom_swrm_port_config *pcfg; in qcom_swrm_compute_params() local
832 pcfg = &ctrl->pconfig[p_rt->num]; in qcom_swrm_compute_params()
834 if (pcfg->word_length != SWR_INVALID_PARAM) { in qcom_swrm_compute_params()
836 p_rt->num, pcfg->word_length + 1, in qcom_swrm_compute_params()
849 pcfg = &ctrl->pconfig[m_port]; in qcom_swrm_compute_params()
851 pcfg = &ctrl->pconfig[i]; in qcom_swrm_compute_params()
854 pcfg->si + 1; in qcom_swrm_compute_params()
855 p_rt->transport_params.offset1 = pcfg->off1; in qcom_swrm_compute_params()
856 p_rt->transport_params.offset2 = pcfg->off2; in qcom_swrm_compute_params()
857 p_rt->transport_params.blk_pkg_mode = pcfg->bp_mode; in qcom_swrm_compute_params()
858 p_rt->transport_params.blk_grp_ctrl = pcfg->blk_group_count; in qcom_swrm_compute_params()
860 p_rt->transport_params.hstart = pcfg->hstart; in qcom_swrm_compute_params()
861 p_rt->transport_params.hstop = pcfg->hstop; in qcom_swrm_compute_params()
862 p_rt->transport_params.lane_ctrl = pcfg->lane_control; in qcom_swrm_compute_params()
863 if (pcfg->word_length != SWR_INVALID_PARAM) { in qcom_swrm_compute_params()
866 pcfg->word_length + 1, in qcom_swrm_compute_params()