If stroma need more ATP for dark reactions, how is it generated?

If stroma need more ATP for dark reactions, how is it generated?
More Light-Dependent Reactions of Photosynthesis [detailed] Questions: