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 Calvin Cycle [Carbon Fixation] [detailed] Questions:
More Light-Dependent Reactions of Photosynthesis [detailed] Questions:
More Photosynthesis: Light and Dark Reactions [short] Questions: