The Norse Gods Didn't Have Functions in the Viking Age
In the Viking Age, people didn't relate to the Norse Gods due to specific functions. They related to personality types the gods represented. In Thor's case, it was strength and violence. Or in Loki's case, it was the prankster personality. Though there is no evidence to suggest that the Vikings had cults for Loki. There is nothing to prove that the Vikings had a strong devotion to Loki. But the gods had many facets to their personalities that the Vikings related to on any given day. It depended on their situation or state of mind.
Even though the Vikings did worship the gods, offering sacrifices and communicating with them, they didn't do so as often as you might think. The Vikings communicated with other beings in the spiritual universe: water spirits, fire spirits, air spirits, earth spirits, rock spirits, elves, and dwarves much more regularly than they did with the gods. For example, they left offerings of butter on a stone by their homes for the Elves in exchange for protection of their property and families more often than they made offerings to Thor, Odin, Tyr, Freyr, or Baldur.