fix to-def/from-dev mistake

I had introduced this error when I converted to use the index union
with the to_dev/from_dev structs.
remove unused variable ncmd
Remove duplicated queue virtual address
declare interrupt handlers static
Fix some things sparse complained about