According to the new Qatar labour law the employer dont have the right to keep the passport anymore, if they will use for the processing of your RP ask them to give it back after.coz even though you have your passport you still cannot go out of the country if they will not issue the exit permit.