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