HIFN_D_RES_RSIZE
if (dma->resi == HIFN_D_RES_RSIZE) {
dma->resr[HIFN_D_RES_RSIZE].l = htole32(HIFN_D_VALID |
HIFN_RESR_SYNC(sc, HIFN_D_RES_RSIZE,
for (i = 0; i < HIFN_D_RES_RSIZE; i++)
dma->resr[HIFN_D_RES_RSIZE].p =
(dma->resu + 1) > HIFN_D_RES_RSIZE) {
if (dma->resi == HIFN_D_RES_RSIZE) {
dma->resr[HIFN_D_RES_RSIZE].l = htole32(HIFN_D_VALID |
HIFN_RESR_SYNC(sc, HIFN_D_RES_RSIZE,
if (i != HIFN_D_RES_RSIZE) {
if (++i == (HIFN_D_RES_RSIZE + 1))
if (++i == HIFN_D_RES_RSIZE)
if (dma->resi == HIFN_D_RES_RSIZE) {
dma->resr[HIFN_D_RES_RSIZE].l = htole32(HIFN_D_VALID |
HIFN_RESR_SYNC(sc, HIFN_D_RES_RSIZE,
struct hifn_desc resr[HIFN_D_RES_RSIZE+1];
struct hifn_command *hifn_commands[HIFN_D_RES_RSIZE];