toh: Do not capitalise macro functions

There's no need to CAPSLOCK all macro functions.
toh: Replace disk lookup functions with macros

This optimisation removes the function overhead from looking disk lookup
operations, and inlines the remaining functions.
toh: Change to linux code style
toh: Define extra macros in place of functions
toh: Refactor Autonomous get_next_action()
toh: Minor code style fixes
Merge branch 'wip/toh-linux'