Reduce code duplication by creating ctl_set_res_ua() helper.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@275404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Convert persis_offset from global variable to softc field.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@275405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f