AMR_MAX_CMDS
size = AMR_SGL_SIZE * AMR_MAX_CMDS + 0x2000;
ac = malloc(sizeof(*ac) * AMR_MAX_CMDS, M_DEVBUF, M_WAITOK | M_ZERO);
for (i = 0; i < AMR_MAX_CMDS; i++, ac++) {
if (i != AMR_MAX_CMDS) {
amr->amr_maxqueuecnt = uimin(amr->amr_maxqueuecnt, AMR_MAX_CMDS);