Tezos Baking and Validation

Which module includes looping over the list of all operations for baking and validation?