r820t_write_reg_mask
rc = r820t_write_reg_mask(priv, 0x0c, val, 0x0f);
rc = r820t_write_reg_mask(priv, 0x13, VER_NUM, 0x3f);
rc = r820t_write_reg_mask(priv, 0x1d, 0x00, 0x38);
rc = r820t_write_reg_mask(priv, 0x0b, hp_cor, 0x60);
rc = r820t_write_reg_mask(priv, 0x0f, 0x04, 0x04);
rc = r820t_write_reg_mask(priv, 0x10, 0x00, 0x03);
rc = r820t_write_reg_mask(priv, 0x0b, 0x10, 0x10);
rc = r820t_write_reg_mask(priv, 0x0b, 0x00, 0x10);
rc = r820t_write_reg_mask(priv, 0x0f, 0x00, 0x04);
rc = r820t_write_reg_mask(priv, 0x0a,
rc = r820t_write_reg_mask(priv, 0x0b, hp_cor, 0xef);
rc = r820t_write_reg_mask(priv, 0x07, img_r, 0x80);
rc = r820t_write_reg_mask(priv, 0x06, filt_gain, 0x30);
rc = r820t_write_reg_mask(priv, 0x1e, ext_enable, 0x60);
rc = r820t_write_reg_mask(priv, 0x05, loop_through, 0x80);
rc = r820t_write_reg_mask(priv, 0x1f, lt_att, 0x80);
rc = r820t_write_reg_mask(priv, 0x0f, flt_ext_widest, 0x80);
rc = r820t_write_reg_mask(priv, 0x19, polyfil_cur, 0x60);
rc = r820t_write_reg_mask(priv, 0x05, 0x10, 0x10);
rc = r820t_write_reg_mask(priv, 0x07, 0, 0x10);
rc = r820t_write_reg_mask(priv, 0x0c, 0x08, 0x9f);
rc = r820t_write_reg_mask(priv, 0x05, lna_index, 0x0f);
rc = r820t_write_reg_mask(priv, 0x07, mix_index, 0x0f);
rc = r820t_write_reg_mask(priv, 0x05, 0, 0x10);
rc = r820t_write_reg_mask(priv, 0x07, 0x10, 0x10);
rc = r820t_write_reg_mask(priv, 0x0c, 0x0b, 0x9f);
rc = r820t_write_reg_mask(priv, 0x10, 0x0b, 0x0b);
rc = r820t_write_reg_mask(priv, 0x1a, 0x00, 0x0c);
rc = r820t_write_reg_mask(priv, 0x13, 0x7f, 0x7f);
rc = r820t_write_reg_mask(priv, 0x13, 0x00, 0x40);
rc = r820t_write_reg_mask(priv, 0x10,
rc = r820t_write_reg_mask(priv, 0x05, 0x20, 0x20);
rc = r820t_write_reg_mask(priv, 0x07, 0, 0x10);
rc = r820t_write_reg_mask(priv, 0x0a, 0x0f, 0x0f);
rc = r820t_write_reg_mask(priv, 0x0b, 0x60, 0x6f);
rc = r820t_write_reg_mask(priv, 0x0c, 0x0b, 0x9f);
rc = r820t_write_reg_mask(priv, 0x0f, 0, 0x08);
rc = r820t_write_reg_mask(priv, 0x18, 0x10, 0x10);
rc = r820t_write_reg_mask(priv, 0x1c, 0x02, 0x02);
rc = r820t_write_reg_mask(priv, 0x1e, 0x80, 0x80);
rc = r820t_write_reg_mask(priv, 0x06, 0x20, 0x20);
rc = r820t_write_reg_mask(priv, 0x0c, vga_count, 0x0f);
rc = r820t_write_reg_mask(priv, 0x08, 0, 0x3f);
rc = r820t_write_reg_mask(priv, 0x09, 0, 0x3f);
return r820t_write_reg_mask(priv, 0x0f, enable ? 1 : 0, 0x01);
rc = r820t_write_reg_mask(priv, 0x17, range->open_d, 0x08);
rc = r820t_write_reg_mask(priv, 0x1a, range->rf_mux_ploy, 0xc3);
rc = r820t_write_reg_mask(priv, 0x10, val, 0x0b);
rc = r820t_write_reg_mask(priv, 0x08, reg08, 0x3f);
rc = r820t_write_reg_mask(priv, 0x09, reg09, 0x3f);
rc = r820t_write_reg_mask(priv, 0x10, refdiv2, 0x10);
rc = r820t_write_reg_mask(priv, 0x1a, 0x00, 0x0c);
rc = r820t_write_reg_mask(priv, 0x12, 0x80, 0xe0);
rc = r820t_write_reg_mask(priv, 0x10, div_num << 5, 0xe0);
rc = r820t_write_reg_mask(priv, 0x12, val, 0x08);
rc = r820t_write_reg_mask(priv, 0x12, 0x60, 0xe0);
rc = r820t_write_reg_mask(priv, 0x1a, 0x08, 0x08);
rc = r820t_write_reg_mask(priv, 0x06, pre_dect, 0x40);
rc = r820t_write_reg_mask(priv, 0x1d, lna_top, 0xc7);
rc = r820t_write_reg_mask(priv, 0x1c, mixer_top, 0xf8);
rc = r820t_write_reg_mask(priv, 0x05, air_cable1_in, 0x60);
rc = r820t_write_reg_mask(priv, 0x06, cable2_in, 0x08);
rc = r820t_write_reg_mask(priv, 0x11, cp_cur, 0x38);
rc = r820t_write_reg_mask(priv, 0x17, div_buf_cur, 0x30);
rc = r820t_write_reg_mask(priv, 0x0a, filter_cur, 0x60);
rc = r820t_write_reg_mask(priv, 0x1d, 0, 0x38);
rc = r820t_write_reg_mask(priv, 0x1c, 0, 0x04);
rc = r820t_write_reg_mask(priv, 0x06, 0, 0x40);
rc = r820t_write_reg_mask(priv, 0x1a, 0x30, 0x30);
rc = r820t_write_reg_mask(priv, 0x1d, 0x18, 0x38);
rc = r820t_write_reg_mask(priv, 0x1c, mixer_top, 0x04);
rc = r820t_write_reg_mask(priv, 0x1e, lna_discharge, 0x1f);
rc = r820t_write_reg_mask(priv, 0x1a, 0x20, 0x30);
rc = r820t_write_reg_mask(priv, 0x06, 0, 0x40);
rc = r820t_write_reg_mask(priv, 0x1d, lna_top, 0x38);
rc = r820t_write_reg_mask(priv, 0x1c, mixer_top, 0x04);
rc = r820t_write_reg_mask(priv, 0x1e, lna_discharge, 0x1f);
rc = r820t_write_reg_mask(priv, 0x1a, 0x00, 0x30);
rc = r820t_write_reg_mask(priv, 0x10, 0x00, 0x04);