Lines Matching +full:0 +full:x7f00

28 	int err = 0;  in tda665x_read()
44 int err = 0; in tda665x_write()
45 struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = length }; in tda665x_write()
63 return 0; in tda665x_get_frequency()
69 u8 result = 0; in tda665x_get_status()
70 int err = 0; in tda665x_get_status()
72 *status = 0; in tda665x_get_status()
75 if (err < 0) in tda665x_get_status()
78 if ((result >> 6) & 0x01) { in tda665x_get_status()
94 u32 frequency, status = 0; in tda665x_set_frequency()
96 int err = 0; in tda665x_set_frequency()
112 buf[0] = (u8) ((frequency & 0x7f00) >> 8); in tda665x_set_frequency()
113 buf[1] = (u8) (frequency & 0x00ff) >> 0; in tda665x_set_frequency()
114 buf[2] = 0x80 | 0x40 | 0x02; in tda665x_set_frequency()
115 buf[3] = 0x00; in tda665x_set_frequency()
122 buf[3] |= 0x01; /* fc, Low Band, 47 - 153 MHz */ in tda665x_set_frequency()
124 buf[3] |= 0x40; /* 83uA */ in tda665x_set_frequency()
126 buf[3] |= 0x60; /* 122uA */ in tda665x_set_frequency()
128 buf[3] |= 0x80; /* 163uA */ in tda665x_set_frequency()
130 buf[3] |= 0xa0; /* 254uA */ in tda665x_set_frequency()
133 buf[3] |= 0x02; /* fc, Mid Band, 153 - 438 MHz */ in tda665x_set_frequency()
135 buf[3] |= 0x40; in tda665x_set_frequency()
137 buf[3] |= 0x60; in tda665x_set_frequency()
139 buf[3] |= 0x80; in tda665x_set_frequency()
142 buf[3] |= 0x04; /* fc, High Band, 438 - 862 MHz */ in tda665x_set_frequency()
144 buf[3] |= 0x60; in tda665x_set_frequency()
146 buf[3] |= 0x80; in tda665x_set_frequency()
148 buf[3] |= 0xa0; in tda665x_set_frequency()
153 if (err < 0) in tda665x_set_frequency()
161 if (err < 0) in tda665x_set_frequency()
173 return 0; in tda665x_set_frequency()
185 return 0; in tda665x_set_params()