Lines Matching refs:pcfg
960 struct qcom_swrm_port_config *pcfg;
965 pcfg = &ctrl->pconfig[params->port_num];
967 value = pcfg->off1 << SWRM_DP_PORT_CTRL_OFFSET1_SHFT;
968 value |= pcfg->off2 << SWRM_DP_PORT_CTRL_OFFSET2_SHFT;
969 value |= pcfg->si & 0xff;
975 if (pcfg->si > 0xff) {
976 value = (pcfg->si >> 8) & 0xff;
983 if (pcfg->lane_control != SWR_INVALID_PARAM) {
985 value = pcfg->lane_control;
991 if (pcfg->blk_group_count != SWR_INVALID_PARAM) {
993 value = pcfg->blk_group_count;
999 if (pcfg->hstart != SWR_INVALID_PARAM
1000 && pcfg->hstop != SWR_INVALID_PARAM) {
1002 value = (pcfg->hstop << 4) | pcfg->hstart;
1013 if (pcfg->bp_mode != SWR_INVALID_PARAM) {
1015 ret = ctrl->reg_write(ctrl, reg, pcfg->bp_mode);
1057 struct qcom_swrm_port_config *pcfg;
1064 pcfg = &ctrl->pconfig[p_rt->num];
1066 if (pcfg->word_length != SWR_INVALID_PARAM) {
1068 p_rt->num, pcfg->word_length + 1,
1081 pcfg = &ctrl->pconfig[m_port];
1083 pcfg = &ctrl->pconfig[i];
1086 pcfg->si + 1;
1087 p_rt->transport_params.offset1 = pcfg->off1;
1088 p_rt->transport_params.offset2 = pcfg->off2;
1089 p_rt->transport_params.blk_pkg_mode = pcfg->bp_mode;
1090 p_rt->transport_params.blk_grp_ctrl = pcfg->blk_group_count;
1092 p_rt->transport_params.hstart = pcfg->hstart;
1093 p_rt->transport_params.hstop = pcfg->hstop;
1094 p_rt->transport_params.lane_ctrl = pcfg->lane_control;
1095 if (pcfg->word_length != SWR_INVALID_PARAM) {
1098 pcfg->word_length + 1,