Lines Matching refs:sc_cmdring
1449 sc->sc_cmdring.base = sc->sc_ldata.txp_cmdring; in txp_alloc_rings()
1450 sc->sc_cmdring.size = CMD_ENTRIES * sizeof(struct txp_cmd_desc); in txp_alloc_rings()
1451 sc->sc_cmdring.lastwrite = 0; in txp_alloc_rings()
1591 sc->sc_cmdring.lastwrite = 0; in txp_init_rings()
2256 idx = sc->sc_cmdring.lastwrite; in txp_ext_command()
2257 cmd = (struct txp_cmd_desc *)(((uint8_t *)sc->sc_cmdring.base) + idx); in txp_ext_command()
2271 if (idx == sc->sc_cmdring.size) in txp_ext_command()
2275 ext = (struct txp_ext_desc *)(((uint8_t *)sc->sc_cmdring.base) + idx); in txp_ext_command()
2279 if (idx == sc->sc_cmdring.size) in txp_ext_command()
2283 sc->sc_cmdring.lastwrite = idx; in txp_ext_command()
2289 WRITE_REG(sc, TXP_H2A_2, sc->sc_cmdring.lastwrite); in txp_ext_command()
2444 widx = sc->sc_cmdring.lastwrite; in txp_cmd_desc_numfree()