What is my dog doing?

My 6 mo old does this quite often and always with toys in his mouth.

It looks like he’s “making biscuits” like cats, but I can’t figure out why he does it. Sometimes he falls asleep doing it. Any ideas?