Rename functions: host_to_device -> to_device, device_to_host -> to_host