Copy data from host to device.