Lines Matching +full:0 +full:xd4
40 if (ret >= 0 && ret < len) in raw_write()
42 return (ret == len) ? 0 : ret; in raw_write()
54 u8 wbuf[2] = { 0xfb, reg }; in reg_read()
58 if (ret == 0) in reg_read()
60 if (ret >= 0 && ret < 1) in reg_read()
62 return (ret == 1) ? 0 : ret; in reg_read()
79 rssi->stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl301rf_get_rf_strength()
80 *out = 0; in mxl301rf_get_rf_strength()
83 ret = reg_write(state, 0x14, 0x01); in mxl301rf_get_rf_strength()
84 if (ret < 0) in mxl301rf_get_rf_strength()
88 ret = reg_read(state, 0x18, &rf_in1); in mxl301rf_get_rf_strength()
89 if (ret == 0) in mxl301rf_get_rf_strength()
90 ret = reg_read(state, 0x19, &rf_in2); in mxl301rf_get_rf_strength()
91 if (ret == 0) in mxl301rf_get_rf_strength()
92 ret = reg_read(state, 0xd6, &rf_off1); in mxl301rf_get_rf_strength()
93 if (ret == 0) in mxl301rf_get_rf_strength()
94 ret = reg_read(state, 0xd7, &rf_off2); in mxl301rf_get_rf_strength()
95 if (ret != 0) in mxl301rf_get_rf_strength()
98 rf_in = (rf_in2 & 0x07) << 8 | rf_in1; in mxl301rf_get_rf_strength()
99 rf_off = (rf_off2 & 0x0f) << 5 | (rf_off1 >> 3); in mxl301rf_get_rf_strength()
102 rssi->stat[0].svalue = level; in mxl301rf_get_rf_strength()
103 rssi->stat[0].scale = FE_SCALE_DECIBEL; in mxl301rf_get_rf_strength()
106 return 0; in mxl301rf_get_rf_strength()
118 { 64500, 500, 0x92, 0x07 },
119 { 191500, 300, 0xe2, 0x07 },
120 { 205500, 500, 0x2c, 0x04 },
121 { 212500, 500, 0x1e, 0x04 },
122 { 226500, 500, 0xd4, 0x07 },
123 { 99143, 500, 0x9c, 0x07 },
124 { 173143, 500, 0xd4, 0x07 },
125 { 191143, 300, 0xd4, 0x07 },
126 { 207143, 500, 0xce, 0x07 },
127 { 225143, 500, 0xce, 0x07 },
128 { 243143, 500, 0xd4, 0x07 },
129 { 261143, 500, 0xd4, 0x07 },
130 { 291143, 500, 0xd4, 0x07 },
131 { 339143, 500, 0x2c, 0x04 },
132 { 117143, 500, 0x7a, 0x07 },
133 { 135143, 300, 0x7a, 0x07 },
134 { 153143, 500, 0x01, 0x07 }
143 { 0x0d, 0x00 },
144 { 0x0c, 0x67 },
145 { 0x6f, 0x89 },
146 { 0x70, 0x0c },
147 { 0x6f, 0x8a },
148 { 0x70, 0x0e },
149 { 0x6f, 0x8b },
150 { 0x70, 0x1c },
156 { 0x13, 0x00 }, /* abort tuning */ in mxl301rf_set_params()
157 { 0x3b, 0xc0 }, in mxl301rf_set_params()
158 { 0x3b, 0x80 }, in mxl301rf_set_params()
159 { 0x10, 0x95 }, /* BW */ in mxl301rf_set_params()
160 { 0x1a, 0x05 }, in mxl301rf_set_params()
161 { 0x61, 0x00 }, /* spur shift value (placeholder) */ in mxl301rf_set_params()
162 { 0x62, 0xa0 } /* spur shift direction (placeholder) */ in mxl301rf_set_params()
166 { 0x11, 0x40 }, /* RF frequency L (placeholder) */ in mxl301rf_set_params()
167 { 0x12, 0x0e }, /* RF frequency H (placeholder) */ in mxl301rf_set_params()
168 { 0x13, 0x01 } /* start tune */ in mxl301rf_set_params()
181 for (i = 0; i < ARRAY_SIZE(shf_tab); i++) { in mxl301rf_set_params()
185 tune0[6].val = 0xa0 | shf_tab[i].shf_dir; in mxl301rf_set_params()
190 if (ret < 0) in mxl301rf_set_params()
198 for (i = 0; i < 6; i++) { in mxl301rf_set_params()
208 tune1[0].val = f & 0xff; in mxl301rf_set_params()
211 if (ret < 0) in mxl301rf_set_params()
215 ret = reg_write(state, 0x1a, 0x0d); in mxl301rf_set_params()
216 if (ret < 0) in mxl301rf_set_params()
219 if (ret < 0) in mxl301rf_set_params()
221 return 0; in mxl301rf_set_params()
230 { 0x01, 0x00 },
231 { 0x13, 0x00 }
241 if (ret < 0) in mxl301rf_sleep()
259 ret = reg_write(state, 0x01, 0x01); in mxl301rf_init()
260 if (ret < 0) { in mxl301rf_init()
265 return 0; in mxl301rf_init()
307 return 0; in mxl301rf_probe()
321 {"mxl301rf", 0},