Local backend: Fix timeouts in streaming mode with low-speed devices

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Make sure that iio_buffer_push sends the full buffer to the device

Previously, when calling iio_buffer_push frequently on a low-speed
device, the buffers were only partly uploaded.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Makefile: build the "all" target by default without examples or docs

Previously, only the "libiio.so.0.1" target would be built by default
causing the standard `make` and then `make install` commands to perform
compiling/linking during the install phase since iiod and tests weren't
built yet.

The examples and html docs have been removed from the default target
since neither appears to be installed by default.

Signed-off-by: Tim Harder <timothy.harder@analog.com>
XML backend: Fix shift value not correctly read back from XML

The function to read the "format" attribute was expecting the "&gt;"
token to be used, but libxml already converts that back to the '>'
symbol.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Fix masking of the upper bits when converting samples from HW format

The previous algorithm wasn't correct, and a working version already
existed in the iio_channel_convert_inverse function.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>