Lines Matching refs:uf_info

28 	printk(KERN_INFO "UCC%u Fast registers:\n", uccf->uf_info->ucc_num);  in ucc_fast_dump_regs()
135 int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** uccf_ret) in ucc_fast_init() argument
142 if (!uf_info) in ucc_fast_init()
146 if ((uf_info->ucc_num < 0) || (uf_info->ucc_num > UCC_MAX_NUM - 1)) { in ucc_fast_init()
152 if (uf_info->max_rx_buf_length & (UCC_FAST_MRBLR_ALIGNMENT - 1)) { in ucc_fast_init()
159 if (uf_info->urfs < UCC_FAST_URFS_MIN_VAL) { in ucc_fast_init()
164 if (uf_info->urfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { in ucc_fast_init()
169 if (uf_info->urfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { in ucc_fast_init()
174 if (uf_info->urfset & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { in ucc_fast_init()
179 if (uf_info->utfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { in ucc_fast_init()
184 if (uf_info->utfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { in ucc_fast_init()
189 if (uf_info->utftt & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) { in ucc_fast_init()
204 uccf->uf_info = uf_info; in ucc_fast_init()
206 uccf->uf_regs = ioremap(uf_info->regs, sizeof(struct ucc_fast)); in ucc_fast_init()
230 ret = ucc_set_type(uf_info->ucc_num, UCC_SPEED_TYPE_FAST); in ucc_fast_init()
237 uccf->mrblr = uf_info->max_rx_buf_length; in ucc_fast_init()
241 gumr = uf_info->ttx_trx; in ucc_fast_init()
242 if (uf_info->tci) in ucc_fast_init()
244 if (uf_info->cdp) in ucc_fast_init()
246 if (uf_info->ctsp) in ucc_fast_init()
248 if (uf_info->cds) in ucc_fast_init()
250 if (uf_info->ctss) in ucc_fast_init()
252 if (uf_info->txsy) in ucc_fast_init()
254 if (uf_info->rsyn) in ucc_fast_init()
256 gumr |= uf_info->synl; in ucc_fast_init()
257 if (uf_info->rtsm) in ucc_fast_init()
259 gumr |= uf_info->renc; in ucc_fast_init()
260 if (uf_info->revd) in ucc_fast_init()
262 gumr |= uf_info->tenc; in ucc_fast_init()
263 gumr |= uf_info->tcrc; in ucc_fast_init()
264 gumr |= uf_info->mode; in ucc_fast_init()
269 qe_muram_alloc(uf_info->utfs, UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT); in ucc_fast_init()
279 qe_muram_alloc(uf_info->urfs + in ucc_fast_init()
290 iowrite16be(uf_info->urfs, &uf_regs->urfs); in ucc_fast_init()
291 iowrite16be(uf_info->urfet, &uf_regs->urfet); in ucc_fast_init()
292 iowrite16be(uf_info->urfset, &uf_regs->urfset); in ucc_fast_init()
293 iowrite16be(uf_info->utfs, &uf_regs->utfs); in ucc_fast_init()
294 iowrite16be(uf_info->utfet, &uf_regs->utfet); in ucc_fast_init()
295 iowrite16be(uf_info->utftt, &uf_regs->utftt); in ucc_fast_init()
304 ucc_set_qe_mux_grant(uf_info->ucc_num, uf_info->grant_support); in ucc_fast_init()
306 ucc_set_qe_mux_bkpt(uf_info->ucc_num, uf_info->brkpt_support); in ucc_fast_init()
308 ucc_set_qe_mux_tsa(uf_info->ucc_num, uf_info->tsa); in ucc_fast_init()
310 if (!uf_info->tsa) { in ucc_fast_init()
312 if ((uf_info->rx_clock != QE_CLK_NONE) && in ucc_fast_init()
313 ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->rx_clock, in ucc_fast_init()
321 if ((uf_info->tx_clock != QE_CLK_NONE) && in ucc_fast_init()
322 ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->tx_clock, in ucc_fast_init()
331 if ((uf_info->rx_clock != QE_CLK_NONE) && in ucc_fast_init()
332 ucc_set_tdm_rxtx_clk(uf_info->tdm_num, uf_info->rx_clock, in ucc_fast_init()
340 if ((uf_info->tx_clock != QE_CLK_NONE) && in ucc_fast_init()
341 ucc_set_tdm_rxtx_clk(uf_info->tdm_num, uf_info->tx_clock, in ucc_fast_init()
349 if ((uf_info->rx_sync != QE_CLK_NONE) && in ucc_fast_init()
350 ucc_set_tdm_rxtx_sync(uf_info->tdm_num, uf_info->rx_sync, in ucc_fast_init()
358 if ((uf_info->tx_sync != QE_CLK_NONE) && in ucc_fast_init()
359 ucc_set_tdm_rxtx_sync(uf_info->tdm_num, uf_info->tx_sync, in ucc_fast_init()
368 iowrite32be(uf_info->uccm_mask, &uf_regs->uccm); in ucc_fast_init()