Lines Matching refs:BAR0
93 lola_writew(chip, BAR0, CORBWP, wp); in corb_send_verb()
114 wp = lola_readw(chip, BAR0, RIRBWP); in lola_update_rirb()
264 rbsts = lola_readb(chip, BAR0, RIRBSTS); in lola_interrupt()
267 lola_writeb(chip, BAR0, RIRBSTS, rbsts); in lola_interrupt()
268 rbsts = lola_readb(chip, BAR0, CORBSTS); in lola_interrupt()
271 lola_writeb(chip, BAR0, CORBSTS, rbsts); in lola_interrupt()
297 unsigned int gctl = lola_readl(chip, BAR0, GCTL); in reset_controller()
307 lola_writel(chip, BAR0, GCTL, LOLA_GCTL_RESET); in reset_controller()
311 gctl = lola_readl(chip, BAR0, GCTL); in reset_controller()
361 lola_writeb(chip, BAR0, RIRBCTL, 0); in setup_corb_rirb()
362 lola_writeb(chip, BAR0, CORBCTL, 0); in setup_corb_rirb()
366 if (!lola_readb(chip, BAR0, RIRBCTL) && in setup_corb_rirb()
367 !lola_readb(chip, BAR0, CORBCTL)) in setup_corb_rirb()
373 lola_writel(chip, BAR0, CORBLBASE, (u32)chip->corb.addr); in setup_corb_rirb()
374 lola_writel(chip, BAR0, CORBUBASE, upper_32_bits(chip->corb.addr)); in setup_corb_rirb()
376 lola_writeb(chip, BAR0, CORBSIZE, 0x02); in setup_corb_rirb()
378 lola_writew(chip, BAR0, CORBWP, 0); in setup_corb_rirb()
380 lola_writew(chip, BAR0, CORBRP, LOLA_RBRWP_CLR); in setup_corb_rirb()
382 lola_writeb(chip, BAR0, CORBCTL, LOLA_RBCTL_DMA_EN); in setup_corb_rirb()
384 tmp = lola_readb(chip, BAR0, CORBSTS) & LOLA_CORB_INT_MASK; in setup_corb_rirb()
386 lola_writeb(chip, BAR0, CORBSTS, tmp); in setup_corb_rirb()
390 lola_writel(chip, BAR0, RIRBLBASE, (u32)chip->rirb.addr); in setup_corb_rirb()
391 lola_writel(chip, BAR0, RIRBUBASE, upper_32_bits(chip->rirb.addr)); in setup_corb_rirb()
393 lola_writeb(chip, BAR0, RIRBSIZE, 0x02); in setup_corb_rirb()
395 lola_writew(chip, BAR0, RIRBWP, LOLA_RBRWP_CLR); in setup_corb_rirb()
397 lola_writew(chip, BAR0, RINTCNT, 1); in setup_corb_rirb()
399 lola_writeb(chip, BAR0, RIRBCTL, LOLA_RBCTL_DMA_EN | LOLA_RBCTL_IRQ_EN); in setup_corb_rirb()
401 tmp = lola_readb(chip, BAR0, RIRBSTS) & LOLA_RIRB_INT_MASK; in setup_corb_rirb()
403 lola_writeb(chip, BAR0, RIRBSTS, tmp); in setup_corb_rirb()
412 lola_writeb(chip, BAR0, RIRBCTL, 0); in stop_corb_rirb()
413 lola_writeb(chip, BAR0, CORBCTL, 0); in stop_corb_rirb()