CAM_STATUS_MASK
cmd->result &= ~(CAM_STATUS_MASK << 16);
return ((cmd->result >> 16) & CAM_STATUS_MASK);