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