What is the function of the Calvin cycle?

it generates NADH for use in mitochondrial ATP production

it produces NAD+ from NADH to keep glycolysis going when oxygen is absent

it fixes atmospheric carbon dioxide gas

it creates a proton gradient