Investigation of regulation of stellar magnetism and rotation