bladeRF-cli: Fixed invalid memset length when zero-padding a buffer

The memset used to zero the remainder of a buffer contained an incorrect
length calculation that could result in negative value, which is then
used as an unsigned value. This resulted in at attempt to zero of a very
large region of memory.

This calculation was failing to convert samples to int16_t's, and the
final length to zero (in int16_t's) to bytes.

Thank you to drmpeg and LazyDodo for their help on debugging and
resolving this issue.
Modify the RXVGA2 calibration routines to enable test mode signals
Calibration update.
libbladeRF: Moved LPF DC tuning value write into address loop

This is just for readability. There's no functional change, since
there's only 1 address to loop over anyway.
libbladeRF: Added register settings from LMS FAQ to DC calibration fns

The following changes have been added to lms_dc_cal_loop() and
lms_calibrate_dc(), based upon recommendations from the LMS 6002D FAQ
(version 1.0r10).

    - Use the DC_REGVAL to determine success or failure, as DC_LOCK
      is reported (in the FAQ) to be unreliable. Retry if the result is
      31, setting the count to DC_CNTVAL to 0.

    - Enable DC comparators during DC calibration (default), and
      disable them upon completion to address linearity issues.

    - Disable DACs while performing TXLPF DC calibration
bladeRF-cli: First cut at RX DC auto calibration

Includes a workaround for convergence issues - further investigation
required. General cleanup and documentation changes still required.
bladeRF-cli: Use fewer buffers for dc cal, start with cal at 0,0
bladeRF-cli: Added TX DC cal operation. Further cleanup required.
bladeRF-cli: Check for divide-by-zero in interpolation function
libbladeRF: Be explicit with RXVGA2 cal.

It was seen that the VCM will sometimes come back in a bad state.
This register has a very well known value that it should be.  Setting
it to be these explicit values seems to help alleviate putting the
LMS is a bad state.

Investigation is required to figure out why the VCM is coming back
scrogged.
bladeRF-cli: Extend out DC, GAIN and PHASE max/min.
bladeRF-cli: Fixed uninitialized error value for TX DC cal
bladeRF-cli: Added RX DC cal option that skips LMS calibration
libbladeRF: Disable LNA while performing LMS DC tuning
libbladeRF: Perform LMS RX DC cal during device initialization
bladeRF-cli: cal dc_rx/tx no longer perform LMS calibration
bladeRF-cli: Attempt to narrow RX DC auto cal value, removed dummy RX
bladeRF-cli: Fixed 'cal dc_tx', broken in c0941d9
bladeRF-cli: Removed unused function to alleviate build warning
bladeRF-cli: Addressed 'uninitialized variable' warning

Removed the n == 0 short circuit check in favor of initializing min_i
and min_q. This should keep compilers happy and be a bit more readable.