Geared steam locomotive
This gearing is part of the machinery within the locomotive and should not be confused with the pinion that propels a rack locomotive along the rack between the rails. The geared steam locomotives that have been built have been for conventional track, relying on the adhesion between wheels and rail.
Valve gear
The valve gear of a steam engine is the mechanism that operates the inlet and exhaust valves to admit steam into the cylinder and allow exhaust steam to escape, respectively, at the correct points in the cycle. It can also serve as a reversing gear. It is sometimes referred to as the "motion".