dired-toggle-marks
dired-toggle-marks is an interactive compiled Lisp function in `dired.el
'.
(dired-toggle-marks)
Toggle marks: marked files become unmarked, and vice versa.
Files marked with other flags (such as `D') are not affected.
`.' and `..' are never toggled.
As always, hidden subdirs are not affected.