In cd8537910406, @kib made maxphys a load-time tunable. The #define MAXPHYS in sys/param.h became almost entirely obsolete, as it could now be overridden by kern.maxphys at boot time, or by opt_maxphys.h. After this change, MAXPHYS really only had meaning in subr_param.c, where it is used to initialize maxphys.
However, decades of tradition have led to several new, incorrect, uses of MAXPHYS in other parts of the kernel, mostly by seasoned developers. I've corrected those uses here in a mechanical fashion, and verified that it fixes a bug in the md driver that I was experiencing.
Since using MAXPHYS is such an easy mistake to make, it is best to hide it from the kernel namespace. So I've moved its definition to subr_param.c. Note that lots of userspace programs use it for different reasons, most of them probably wrong. But that's outside the scope of this change.