[iwm] Synchronize firmware loading code with Linux iwlwifi.
- While there, rename some functions to match the names and functionality of the similarly named functions in Linux iwlwifi.
Obtained from: dragonflybsd.git e98ee77a816bfd8b4912047b93dfb2c560788f24