MRSAS_DIR_OUT
if (cmd->flags & MRSAS_DIR_OUT)
cmd->flags |= MRSAS_DIR_OUT;
else if (cmd->flags == MRSAS_DIR_OUT) /* to device */