Lines Matching refs:__raw_writeq
360 __raw_writeq(bits | mac_mdio_genc, sbm_mdio); in sbmac_mii_sync()
363 __raw_writeq(bits | M_MAC_MDC | mac_mdio_genc, sbm_mdio); in sbmac_mii_sync()
364 __raw_writeq(bits | mac_mdio_genc, sbm_mdio); in sbmac_mii_sync()
391 __raw_writeq(bits | mac_mdio_genc, sbm_mdio); in sbmac_mii_senddata()
399 __raw_writeq(bits | mac_mdio_genc, sbm_mdio); in sbmac_mii_senddata()
400 __raw_writeq(bits | M_MAC_MDC | mac_mdio_genc, sbm_mdio); in sbmac_mii_senddata()
401 __raw_writeq(bits | mac_mdio_genc, sbm_mdio); in sbmac_mii_senddata()
453 __raw_writeq(M_MAC_MDIO_DIR_INPUT | mac_mdio_genc, sbm_mdio); in sbmac_mii_read()
458 __raw_writeq(M_MAC_MDIO_DIR_INPUT | M_MAC_MDC | mac_mdio_genc, in sbmac_mii_read()
460 __raw_writeq(M_MAC_MDIO_DIR_INPUT | mac_mdio_genc, sbm_mdio); in sbmac_mii_read()
471 __raw_writeq(M_MAC_MDIO_DIR_INPUT | M_MAC_MDC | mac_mdio_genc, in sbmac_mii_read()
473 __raw_writeq(M_MAC_MDIO_DIR_INPUT | mac_mdio_genc, sbm_mdio); in sbmac_mii_read()
485 __raw_writeq(M_MAC_MDIO_DIR_INPUT | M_MAC_MDC | mac_mdio_genc, in sbmac_mii_read()
487 __raw_writeq(M_MAC_MDIO_DIR_INPUT | mac_mdio_genc, sbm_mdio); in sbmac_mii_read()
491 __raw_writeq(M_MAC_MDIO_DIR_OUTPUT | mac_mdio_genc, sbm_mdio); in sbmac_mii_read()
532 __raw_writeq(M_MAC_MDIO_DIR_OUTPUT | mac_mdio_genc, sbm_mdio); in sbmac_mii_write()
577 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_BYTES); in sbdma_initctx()
578 __raw_writeq(0, s->sbm_base + R_MAC_RMON_COLLISIONS); in sbdma_initctx()
579 __raw_writeq(0, s->sbm_base + R_MAC_RMON_LATE_COL); in sbdma_initctx()
580 __raw_writeq(0, s->sbm_base + R_MAC_RMON_EX_COL); in sbdma_initctx()
581 __raw_writeq(0, s->sbm_base + R_MAC_RMON_FCS_ERROR); in sbdma_initctx()
582 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_ABORT); in sbdma_initctx()
583 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_BAD); in sbdma_initctx()
584 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_GOOD); in sbdma_initctx()
585 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_RUNT); in sbdma_initctx()
586 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_OVERSIZE); in sbdma_initctx()
587 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_BYTES); in sbdma_initctx()
588 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_MCAST); in sbdma_initctx()
589 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_BCAST); in sbdma_initctx()
590 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_BAD); in sbdma_initctx()
591 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_GOOD); in sbdma_initctx()
592 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_RUNT); in sbdma_initctx()
593 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_OVERSIZE); in sbdma_initctx()
594 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_FCS_ERROR); in sbdma_initctx()
595 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_LENGTH_ERROR); in sbdma_initctx()
596 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_CODE_ERROR); in sbdma_initctx()
597 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_ALIGN_ERROR); in sbdma_initctx()
690 __raw_writeq(V_DMA_INT_TIMEOUT(d->sbdma_int_timeout) | in sbdma_channel_start()
692 __raw_writeq(M_DMA_EOP_INT_EN | in sbdma_channel_start()
697 __raw_writeq(0, d->sbdma_config1); in sbdma_channel_start()
698 __raw_writeq(V_DMA_RINGSZ(d->sbdma_maxdescr) | in sbdma_channel_start()
702 __raw_writeq(d->sbdma_dscrtable_phys, d->sbdma_dscrbase); in sbdma_channel_start()
730 __raw_writeq(0, d->sbdma_config1); in sbdma_channel_stop()
732 __raw_writeq(0, d->sbdma_dscrbase); in sbdma_channel_stop()
734 __raw_writeq(0, d->sbdma_config0); in sbdma_channel_stop()
866 __raw_writeq(1, d->sbdma_dscrcnt); in sbdma_add_rcvbuffer()
956 __raw_writeq(1, d->sbdma_dscrcnt); in sbdma_add_txbuffer()
1021 __raw_writeq(0, sc->sbm_imr); in sbmac_netpoll()
1026 __raw_writeq(((M_MAC_INT_EOP_COUNT | M_MAC_INT_EOP_TIMER) << S_MAC_TX_CH0) | in sbmac_netpoll()
1030 __raw_writeq((M_MAC_INT_CHANNEL << S_MAC_TX_CH0) | in sbmac_netpoll()
1070 __raw_writeq(0, sc->sbm_rxdma.sbdma_oodpktlost); in sbdma_rx_process()
1402 __raw_writeq(0, s->sbm_macenable); in sbmac_channel_start()
1408 __raw_writeq(0, s->sbm_rxfilter); in sbmac_channel_start()
1451 __raw_writeq(0, port); in sbmac_channel_start()
1461 __raw_writeq(0, port); in sbmac_channel_start()
1471 __raw_writeq(0, port); in sbmac_channel_start()
1478 __raw_writeq(0, port); in sbmac_channel_start()
1490 __raw_writeq(reg, port); in sbmac_channel_start()
1493 __raw_writeq(reg, port); in sbmac_channel_start()
1500 __raw_writeq(0, s->sbm_rxfilter); in sbmac_channel_start()
1501 __raw_writeq(0, s->sbm_imr); in sbmac_channel_start()
1502 __raw_writeq(framecfg, s->sbm_framecfg); in sbmac_channel_start()
1503 __raw_writeq(fifo, s->sbm_fifocfg); in sbmac_channel_start()
1504 __raw_writeq(cfg, s->sbm_maccfg); in sbmac_channel_start()
1531 __raw_writeq(M_MAC_RXDMA_EN0 | in sbmac_channel_start()
1534 __raw_writeq(M_MAC_RXDMA_EN0 | in sbmac_channel_start()
1543 __raw_writeq(((M_MAC_INT_EOP_COUNT | M_MAC_INT_EOP_TIMER) << S_MAC_TX_CH0) | in sbmac_channel_start()
1546 __raw_writeq((M_MAC_INT_CHANNEL << S_MAC_TX_CH0) | in sbmac_channel_start()
1554 __raw_writeq(M_MAC_UCAST_EN | M_MAC_BCAST_EN, s->sbm_rxfilter); in sbmac_channel_start()
1600 __raw_writeq(0, s->sbm_rxfilter); in sbmac_channel_stop()
1601 __raw_writeq(0, s->sbm_imr); in sbmac_channel_stop()
1609 __raw_writeq(0, s->sbm_macenable); in sbmac_channel_stop()
1695 __raw_writeq(reg, sc->sbm_rxfilter); in sbmac_promiscuous_mode()
1700 __raw_writeq(reg, sc->sbm_rxfilter); in sbmac_promiscuous_mode()
1723 __raw_writeq(reg, sc->sbm_rxfilter); in sbmac_set_iphdr_offset()
1851 __raw_writeq(framecfg, s->sbm_framecfg); in sbmac_set_speed()
1852 __raw_writeq(cfg, s->sbm_maccfg); in sbmac_set_speed()
1946 __raw_writeq(cfg, s->sbm_maccfg); in sbmac_set_duplex()
1992 __raw_writeq(0, sc->sbm_imr); in sbmac_intr()
2074 __raw_writeq(0, port); in sbmac_setmulti()
2079 __raw_writeq(0, port); in sbmac_setmulti()
2088 __raw_writeq(reg, sc->sbm_rxfilter); in sbmac_setmulti()
2097 __raw_writeq(reg, sc->sbm_rxfilter); in sbmac_setmulti()
2117 __raw_writeq(reg, port); in sbmac_setmulti()
2129 __raw_writeq(reg, sc->sbm_rxfilter); in sbmac_setmulti()
2180 __raw_writeq(0, sc->sbm_base + R_MAC_ETHERNET_ADDR); in sbmac_init()
2514 __raw_writeq(((M_MAC_INT_EOP_COUNT | M_MAC_INT_EOP_TIMER) << S_MAC_TX_CH0) | in sbmac_poll()
2518 __raw_writeq((M_MAC_INT_CHANNEL << S_MAC_TX_CH0) | in sbmac_poll()
2587 __raw_writeq(sbmac_orig_hwaddr, sbm_base + R_MAC_ETHERNET_ADDR); in sbmac_probe()