• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/sysdev/qe_lib/

Lines Matching defs:uf_info

33 	printk(KERN_INFO "UCC%u Fast registers:\n", uccf->uf_info->ucc_num);
139 int ucc_fast_init(struct ucc_fast_info * uf_info, struct ucc_fast_private ** uccf_ret)
146 if (!uf_info)
150 if ((uf_info->ucc_num < 0) || (uf_info->ucc_num > UCC_MAX_NUM - 1)) {
156 if (uf_info->max_rx_buf_length & (UCC_FAST_MRBLR_ALIGNMENT - 1)) {
163 if (uf_info->urfs < UCC_FAST_URFS_MIN_VAL) {
168 if (uf_info->urfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
173 if (uf_info->urfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
178 if (uf_info->urfset & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
183 if (uf_info->utfs & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
188 if (uf_info->utfet & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
193 if (uf_info->utftt & (UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT - 1)) {
206 uccf->uf_info = uf_info;
208 uccf->uf_regs = ioremap(uf_info->regs, sizeof(struct ucc_fast));
232 ret = ucc_set_type(uf_info->ucc_num, UCC_SPEED_TYPE_FAST);
239 uccf->mrblr = uf_info->max_rx_buf_length;
243 gumr = uf_info->ttx_trx;
244 if (uf_info->tci)
246 if (uf_info->cdp)
248 if (uf_info->ctsp)
250 if (uf_info->cds)
252 if (uf_info->ctss)
254 if (uf_info->txsy)
256 if (uf_info->rsyn)
258 gumr |= uf_info->synl;
259 if (uf_info->rtsm)
261 gumr |= uf_info->renc;
262 if (uf_info->revd)
264 gumr |= uf_info->tenc;
265 gumr |= uf_info->tcrc;
266 gumr |= uf_info->mode;
271 qe_muram_alloc(uf_info->utfs, UCC_FAST_VIRT_FIFO_REGS_ALIGNMENT);
282 qe_muram_alloc(uf_info->urfs +
294 out_be16(&uf_regs->urfs, uf_info->urfs);
295 out_be16(&uf_regs->urfet, uf_info->urfet);
296 out_be16(&uf_regs->urfset, uf_info->urfset);
297 out_be16(&uf_regs->utfs, uf_info->utfs);
298 out_be16(&uf_regs->utfet, uf_info->utfet);
299 out_be16(&uf_regs->utftt, uf_info->utftt);
306 ucc_set_qe_mux_grant(uf_info->ucc_num, uf_info->grant_support);
308 ucc_set_qe_mux_bkpt(uf_info->ucc_num, uf_info->brkpt_support);
310 ucc_set_qe_mux_tsa(uf_info->ucc_num, uf_info->tsa);
312 if (!uf_info->tsa) {
314 if ((uf_info->rx_clock != QE_CLK_NONE) &&
315 ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->rx_clock,
323 if ((uf_info->tx_clock != QE_CLK_NONE) &&
324 ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->tx_clock,
334 out_be32(&uf_regs->uccm, uf_info->uccm_mask);