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: Dtc c1145, c1155, c1165, c1175
Caution
When attaching the tester lead to the DSC HU/CM connector the SST
(49 G066 004) must be used.
Diagnostic procedure
...
Mazda 6 Owners Manual: Smart City Brake Support (SCBS)
The Smart City Brake Support (SCBS) system alerts the driver of a possible collision
using an indication in the display and a warning sound when the Forward Sensing
Camera (FSC) detects a vehicle ahead and determines that a collision with a vehicle
ahead is unavoidable while the vehicle is bei ...