Lines Matching refs:rirb
87 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb()
94 chip->rirb.cmds++; in corb_send_verb()
115 if (wp == chip->rirb.wp) in lola_update_rirb()
117 chip->rirb.wp = wp; in lola_update_rirb()
119 while (chip->rirb.rp != wp) { in lola_update_rirb()
120 chip->rirb.rp++; in lola_update_rirb()
121 chip->rirb.rp %= LOLA_CORB_ENTRIES; in lola_update_rirb()
123 rp = chip->rirb.rp << 1; /* an RIRB entry is 8-bytes */ in lola_update_rirb()
124 res_ex = le32_to_cpu(chip->rirb.buf[rp + 1]); in lola_update_rirb()
125 res = le32_to_cpu(chip->rirb.buf[rp]); in lola_update_rirb()
128 else if (chip->rirb.cmds) { in lola_update_rirb()
132 chip->rirb.cmds--; in lola_update_rirb()
150 if (!chip->rirb.cmds) { in rirb_get_response()
357 chip->rirb.addr = chip->rb->addr + 2048; in setup_corb_rirb()
358 chip->rirb.buf = (__le32 *)(chip->rb->area + 2048); 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()
404 chip->rirb.rp = chip->rirb.cmds = 0; in setup_corb_rirb()