The valves punctually open and close those ports according to A.

intake and exhaust manifold B.

the emission of exhaust gases C.

the ignition order of the cylinder D.

the process requirements