Lines Matching refs:sbus_writel
90 sbus_writel(0, lp + LANAI_EIMASK); in myri_reset_off()
93 sbus_writel(CONTROL_ROFF, cregs + MYRICTRL_CTRL); in myri_reset_off()
99 sbus_writel(CONTROL_RON, cregs + MYRICTRL_CTRL); in myri_reset_on()
102 sbus_writel(CONTROL_DIRQ, cregs + MYRICTRL_CTRL); in myri_reset_on()
107 sbus_writel(CONTROL_DIRQ, cregs + MYRICTRL_CTRL); in myri_disable_irq()
108 sbus_writel(0, lp + LANAI_EIMASK); in myri_disable_irq()
109 sbus_writel(ISTAT_HOST, lp + LANAI_ISTAT); in myri_disable_irq()
114 sbus_writel(CONTROL_EIRQ, cregs + MYRICTRL_CTRL); in myri_enable_irq()
115 sbus_writel(ISTAT_HOST, lp + LANAI_EIMASK); in myri_enable_irq()
123 sbus_writel(1, &shmem->send); in bang_the_chip()
124 sbus_writel(CONTROL_WON, cregs + MYRICTRL_CTRL); in bang_the_chip()
147 sbus_writel(1, &shmem->shakedown); in myri_do_handshake()
148 sbus_writel(CONTROL_WON, cregs + MYRICTRL_CTRL); in myri_do_handshake()
159 sbus_writel(STATE_WFN, &chan->state); in myri_do_handshake()
191 sbus_writel(mp->eeprom.cval, mp->lregs + LANAI_CVAL); in myri_load_lanai()
223 sbus_writel(((mp->myri_bursts & 0xf8) >> 3), &shmem->burst); in myri_load_lanai()
224 sbus_writel(SHMEM_IMASK_RX, &shmem->imask); in myri_load_lanai()
247 sbus_writel(0, mp->lregs + LANAI_VERS); in myri_load_lanai()
259 sbus_writel(0, &rq->tail); in myri_clean_rings()
260 sbus_writel(0, &rq->head); in myri_clean_rings()
275 sbus_writel(0, &sq->tail); in myri_clean_rings()
276 sbus_writel(0, &sq->head); in myri_clean_rings()
318 sbus_writel(dma_addr, &rxd[i].myri_scatters[0].addr); in myri_init_rings()
319 sbus_writel(RX_ALLOC_SIZE, &rxd[i].myri_scatters[0].len); in myri_init_rings()
320 sbus_writel(i, &rxd[i].ctx); in myri_init_rings()
321 sbus_writel(1, &rxd[i].num_sg); in myri_init_rings()
323 sbus_writel(0, &rq->head); in myri_init_rings()
324 sbus_writel(RX_RING_SIZE, &rq->tail); in myri_init_rings()
446 sbus_writel(NEXT_RX(entry), &rqa->head); in myri_rx()
473 sbus_writel(RX_ALLOC_SIZE, &rxd->myri_scatters[0].len); in myri_rx()
474 sbus_writel(index, &rxd->ctx); in myri_rx()
475 sbus_writel(1, &rxd->num_sg); in myri_rx()
476 sbus_writel(NEXT_RX(sbus_readl(&rq->tail)), &rq->tail); in myri_rx()
502 sbus_writel(dma_addr, &rxd->myri_scatters[0].addr); in myri_rx()
503 sbus_writel(RX_ALLOC_SIZE, &rxd->myri_scatters[0].len); in myri_rx()
504 sbus_writel(index, &rxd->ctx); in myri_rx()
505 sbus_writel(1, &rxd->num_sg); in myri_rx()
506 sbus_writel(NEXT_RX(sbus_readl(&rq->tail)), &rq->tail); in myri_rx()
531 sbus_writel(RX_ALLOC_SIZE, &rxd->myri_scatters[0].len); in myri_rx()
532 sbus_writel(index, &rxd->ctx); in myri_rx()
533 sbus_writel(1, &rxd->num_sg); in myri_rx()
534 sbus_writel(NEXT_RX(sbus_readl(&rq->tail)), &rq->tail); in myri_rx()
584 sbus_writel(ISTAT_HOST, lregs + LANAI_ISTAT); in myri_interrupt()
680 sbus_writel(dma_addr, &txd->myri_gathers[0].addr); in myri_start_xmit()
681 sbus_writel(len, &txd->myri_gathers[0].len); in myri_start_xmit()
682 sbus_writel(1, &txd->num_sg); in myri_start_xmit()
683 sbus_writel(KERNEL_CHANNEL, &txd->chan); in myri_start_xmit()
684 sbus_writel(len, &txd->len); in myri_start_xmit()
685 sbus_writel((u32)-1, &txd->csum_off); in myri_start_xmit()
686 sbus_writel(0, &txd->csum_field); in myri_start_xmit()
688 sbus_writel(NEXT_TX(entry), &sq->tail); in myri_start_xmit()
1078 sbus_writel((1 << i), mp->cregs + MYRICTRL_IRQLVL); in myri_sbus_probe()