What are these diagonal devices above the leading edge of the V-22 Osprey's wing?
The protrusions you're asking about are vortex generators. 

As to how they work, there is a separate Stack Exchange article on that: How do vortex generators work?

(Please note, the linked question/answer does not even MENTION the CV-22, and is thus not a duplicate question to this one.)