Lines Matching refs:buf
55 u8 buf [] = { 0x00, 0x8d };
56 struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 2 };
61 buf[1] = 0xad;
82 u8 buf [11];
83 struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 11 };
98 buf[0] = 0x00; // subaddress
99 buf[1] = 0x09; // powerdown RSSI + the magic value 1
101 buf[1] |= 0x20; // power down loopthrough if not needed
102 buf[2] = (1<<5) | 0x0b; // 1Mhz + 0.45 VCO
103 buf[3] = div >> 7;
104 buf[4] = div << 1;
105 buf[5] = ((bandwidth - 5) << 3) | 7; /* baseband cut-off */
106 buf[6] = 0xfe; // baseband gain 9 db + no RF attenuation
107 buf[7] = 0x83; // charge pumps at high, tests off
108 buf[8] = 0x80; // recommended value 4 for AMPVCO + disable ports.
109 buf[9] = 0x1a; // normal caltime + recommended values for SELTH + SELVTL
110 buf[10] = 0xd4; // recommended value 13 for BBIAS + unknown bit set on
149 { .addr = addr, .flags = 0, .buf = NULL, .len = 0 },
150 { .addr = addr, .flags = I2C_M_RD, .buf = b1, .len = 2 }