doc: Move function documentation to .c file.