SUBCMDSHIFT
#define QCMD(cmd, type) (((cmd) << SUBCMDSHIFT) | ((type) & SUBCMDMASK))
cmd = cmds >> SUBCMDSHIFT;