
Have had your chips
Imminent Failure
Use it when something is about to fail or end very soon, not just facing problems. 
Casual Tone
It's informal and might be used among friends or in relaxed settings, not in formal writing or speech. 
British Origin
The phrase is British slang, so it's more familiar to UK speakers than to other English speakers. 