Lines Matching refs:protdesc
118 struct msp_protdesc *protdesc, in set_prot_desc_tx() argument
123 temp_reg |= MSP_P2_ENABLE_BIT(protdesc->tx_phase_mode); in set_prot_desc_tx()
124 temp_reg |= MSP_P2_START_MODE_BIT(protdesc->tx_phase2_start_mode); in set_prot_desc_tx()
125 temp_reg |= MSP_P1_FRAME_LEN_BITS(protdesc->tx_frame_len_1); in set_prot_desc_tx()
126 temp_reg |= MSP_P2_FRAME_LEN_BITS(protdesc->tx_frame_len_2); in set_prot_desc_tx()
128 temp_reg |= MSP_P1_ELEM_LEN_BITS(protdesc->tx_elem_len_1); in set_prot_desc_tx()
129 temp_reg |= MSP_P2_ELEM_LEN_BITS(protdesc->tx_elem_len_2); in set_prot_desc_tx()
134 temp_reg |= MSP_DATA_DELAY_BITS(protdesc->tx_data_delay); in set_prot_desc_tx()
135 temp_reg |= MSP_SET_ENDIANNES_BIT(protdesc->tx_byte_order); in set_prot_desc_tx()
136 temp_reg |= MSP_FSYNC_POL(protdesc->tx_fsync_pol); in set_prot_desc_tx()
137 temp_reg |= MSP_DATA_WORD_SWAP(protdesc->tx_half_word_swap); in set_prot_desc_tx()
138 temp_reg |= MSP_SET_COMPANDING_MODE(protdesc->compression_mode); in set_prot_desc_tx()
139 temp_reg |= MSP_SET_FSYNC_IGNORE(protdesc->frame_sync_ignore); in set_prot_desc_tx()
145 struct msp_protdesc *protdesc, in set_prot_desc_rx() argument
150 temp_reg |= MSP_P2_ENABLE_BIT(protdesc->rx_phase_mode); in set_prot_desc_rx()
151 temp_reg |= MSP_P2_START_MODE_BIT(protdesc->rx_phase2_start_mode); in set_prot_desc_rx()
152 temp_reg |= MSP_P1_FRAME_LEN_BITS(protdesc->rx_frame_len_1); in set_prot_desc_rx()
153 temp_reg |= MSP_P2_FRAME_LEN_BITS(protdesc->rx_frame_len_2); in set_prot_desc_rx()
155 temp_reg |= MSP_P1_ELEM_LEN_BITS(protdesc->rx_elem_len_1); in set_prot_desc_rx()
156 temp_reg |= MSP_P2_ELEM_LEN_BITS(protdesc->rx_elem_len_2); in set_prot_desc_rx()
162 temp_reg |= MSP_DATA_DELAY_BITS(protdesc->rx_data_delay); in set_prot_desc_rx()
163 temp_reg |= MSP_SET_ENDIANNES_BIT(protdesc->rx_byte_order); in set_prot_desc_rx()
164 temp_reg |= MSP_FSYNC_POL(protdesc->rx_fsync_pol); in set_prot_desc_rx()
165 temp_reg |= MSP_DATA_WORD_SWAP(protdesc->rx_half_word_swap); in set_prot_desc_rx()
166 temp_reg |= MSP_SET_COMPANDING_MODE(protdesc->expansion_mode); in set_prot_desc_rx()
167 temp_reg |= MSP_SET_FSYNC_IGNORE(protdesc->frame_sync_ignore); in set_prot_desc_rx()
175 struct msp_protdesc *protdesc; in configure_protocol() local
187 protdesc = in configure_protocol()
190 protdesc = (struct msp_protdesc *)&config->protdesc; in configure_protocol()
201 set_prot_desc_tx(msp, protdesc, data_size); in configure_protocol()
203 set_prot_desc_rx(msp, protdesc, data_size); in configure_protocol()
207 temp_reg |= MSP_TX_CLKPOL_BIT(~protdesc->tx_clk_pol); in configure_protocol()
210 temp_reg |= MSP_RX_CLKPOL_BIT(protdesc->rx_clk_pol); in configure_protocol()
223 struct msp_protdesc *protdesc = NULL; in setup_bitclk() local
229 protdesc = in setup_bitclk()
232 protdesc = (struct msp_protdesc *)&config->protdesc; in setup_bitclk()
237 frame_width = protdesc->frame_width; in setup_bitclk()
239 (protdesc->clocks_per_frame)); in setup_bitclk()
240 frame_per = protdesc->frame_period; in setup_bitclk()
243 frame_width = protdesc->frame_width; in setup_bitclk()
245 (protdesc->clocks_per_frame)); in setup_bitclk()
246 frame_per = protdesc->frame_period; in setup_bitclk()
274 struct msp_protdesc *protdesc; in configure_multichannel() local
285 protdesc = (struct msp_protdesc *) in configure_multichannel()
288 protdesc = (struct msp_protdesc *)&config->protdesc; in configure_multichannel()
293 if (protdesc->tx_phase_mode == MSP_SINGLE_PHASE) { in configure_multichannel()
309 __func__, protdesc->tx_phase_mode); in configure_multichannel()
314 if (protdesc->rx_phase_mode == MSP_SINGLE_PHASE) { in configure_multichannel()
330 __func__, protdesc->rx_phase_mode); in configure_multichannel()