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.
Mazda 6 Owners Manual: Generator removal/installation
Warning
When the battery cables are connected, touching the vehicle body with
generator terminal B will generate sparks. This can cause personal injury, fire,
and damage to the electrical components. Always disconnect the battery negative
cables before performing the following operation.
...
Mazda 6 Owners Manual: System Operation
Make sure that the Lane-keep Assist System (LAS) & Lane Departure Warning System
(LDWS) OFF indicator light in the instrument cluster is turned off. When the Lane-keep
Assist System (LAS) & Lane Departure Warning System (LDWS) OFF indicator light is
turned on, press the switch and make ...