All doors lock automatically when the lock side is pressed. They unlock when the unlock side is pressed.
Driver's door

Front passenger's door

To lock all the doors from an open front door, press the lock side of the door lock switch and then close the door.
NOTE
When locking the doors this way, be careful not to leave the key inside the vehicle.
Locking, Unlocking with Transmitter
Auto Lock/Unlock FunctionMazda 6 Owners Manual: Liftgate disassembly/assembly
1. Disconnect the negative battery cable.
2. Remove the liftgate lower trim.
3. To remove the liftgate outer handle and liftgate key cylinder, remove the
rear finisher.
4. To remove the stud ball, separate the stud ball and the stay damper.
5. Disassemble in the order indicated in the table.
...
Mazda 6 Owners Manual: Meters and Gauges
Instrument Cluster Type A
Type B
Steering Switch
1 - Speedometer 2 - Odometer, Trip Meter and Trip Meter Selector 3 - Tachometer
4 - Dashboard Illumination 5 - Trip Computer and INFO Switch 6 - Engine Coolant
Temperature Gauge 7 - Fuel Gauge 8 - Outside Temperature Display 9 - Cruise
...