Lines Matching refs:uccf
1345 uf_regs = ugeth->uccf->uf_regs;
1424 struct ucc_fast_private *uccf;
1429 uccf = ugeth->uccf;
1432 clrbits32(uccf->p_uccm, UCC_GETH_UCCE_GRA);
1433 out_be32(uccf->p_ucce, UCC_GETH_UCCE_GRA); /* clear by writing 1 */
1444 temp = in_be32(uccf->p_ucce);
1447 uccf->stopped_tx = 1;
1454 struct ucc_fast_private *uccf;
1459 uccf = ugeth->uccf;
1479 uccf->stopped_rx = 1;
1486 struct ucc_fast_private *uccf;
1489 uccf = ugeth->uccf;
1494 uccf->stopped_tx = 0;
1501 struct ucc_fast_private *uccf;
1504 uccf = ugeth->uccf;
1510 uccf->stopped_rx = 0;
1517 struct ucc_fast_private *uccf;
1520 uccf = ugeth->uccf;
1529 enabled_tx = uccf->enabled_tx;
1530 enabled_rx = uccf->enabled_rx;
1534 if ((mode & COMM_DIR_TX) && (!enabled_tx) && uccf->stopped_tx)
1536 if ((mode & COMM_DIR_RX) && (!enabled_rx) && uccf->stopped_rx)
1539 ucc_fast_enable(uccf, mode); /* OK to do even if not disabled */
1547 struct ucc_fast_private *uccf;
1549 uccf = ugeth->uccf;
1559 if ((mode & COMM_DIR_TX) && uccf->enabled_tx && !uccf->stopped_tx)
1563 if ((mode & COMM_DIR_RX) && uccf->enabled_rx && !uccf->stopped_rx)
1566 ucc_fast_disable(ugeth->uccf, mode); /* OK to do even if not enabled */
1609 uf_regs = ugeth->uccf->uf_regs;
1781 ucc_fast_dump_regs(ugeth->uccf);
1793 struct ucc_fast_private *uccf;
1801 uccf = ugeth->uccf;
1821 if (uccf->enabled_tx)
1823 if (uccf->enabled_rx)
1864 if (ugeth->uccf) {
1865 ucc_fast_free(ugeth->uccf);
1866 ugeth->uccf = NULL;
2008 uf_regs = ugeth->uccf->uf_regs;
2060 out_be32(ugeth->uccf->p_uccm, 0x00000000);
2063 out_be32(ugeth->uccf->p_ucce, 0xffffffff);
2188 if (ucc_fast_init(uf_info, &ugeth->uccf)) {
2190 ugeth_err("%s: Failed to init uccf.", __func__);
2218 struct ucc_fast_private *uccf;
2235 uccf = ugeth->uccf;
2238 uf_regs = uccf->uf_regs;
3115 struct ucc_fast_private *uccf;
3176 uccf = ugeth->uccf;
3177 out_be16(uccf->p_utodr, UCC_FAST_TOD);
3339 setbits32(ugeth->uccf->p_uccm, UCCE_RX_EVENTS | UCCE_TX_EVENTS);
3349 struct ucc_fast_private *uccf;
3356 uccf = ugeth->uccf;
3360 ucce = (u32) in_be32(uccf->p_ucce);
3361 uccm = (u32) in_be32(uccf->p_uccm);
3363 out_be32(uccf->p_ucce, ucce);
3369 out_be32(uccf->p_uccm, uccm);
3622 setbits32(ugeth->uccf->p_uccm, UCC_GETH_UCCE_MPD);
3624 ucc_fast_enable(ugeth->uccf, COMM_DIR_RX_AND_TX);
3643 ucc_fast_disable(ugeth->uccf, COMM_DIR_RX_AND_TX);
3645 clrbits32(ugeth->uccf->p_uccm, UCC_GETH_UCCE_MPD);