Lines Matching refs:r
81 int r; in zd1211b_al2230_finalize_rf() local
91 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_al2230_finalize_rf()
92 if (r) in zd1211b_al2230_finalize_rf()
93 return r; in zd1211b_al2230_finalize_rf()
97 r = zd_iowrite16_locked(chip, 0xe1, ZD_CR9); in zd1211b_al2230_finalize_rf()
98 if (r) in zd1211b_al2230_finalize_rf()
99 return r; in zd1211b_al2230_finalize_rf()
107 int r; in zd1211_al2230_init_hw() local
180 r = zd_iowrite16a_locked(chip, ioreqs_init, ARRAY_SIZE(ioreqs_init)); in zd1211_al2230_init_hw()
181 if (r) in zd1211_al2230_init_hw()
182 return r; in zd1211_al2230_init_hw()
185 r = zd_iowrite16a_locked(chip, ioreqs_init_al2230s, in zd1211_al2230_init_hw()
187 if (r) in zd1211_al2230_init_hw()
188 return r; in zd1211_al2230_init_hw()
191 r = zd_rfwritev_locked(chip, rv1, ARRAY_SIZE(rv1), RF_RV_BITS); in zd1211_al2230_init_hw()
192 if (r) in zd1211_al2230_init_hw()
193 return r; in zd1211_al2230_init_hw()
197 r = zd_rfwrite_locked(chip, 0x000824, RF_RV_BITS); in zd1211_al2230_init_hw()
199 r = zd_rfwrite_locked(chip, 0x0005a4, RF_RV_BITS); in zd1211_al2230_init_hw()
200 if (r) in zd1211_al2230_init_hw()
201 return r; in zd1211_al2230_init_hw()
203 r = zd_rfwritev_locked(chip, rv2, ARRAY_SIZE(rv2), RF_RV_BITS); in zd1211_al2230_init_hw()
204 if (r) in zd1211_al2230_init_hw()
205 return r; in zd1211_al2230_init_hw()
207 r = zd_iowrite16a_locked(chip, ioreqs_pll, ARRAY_SIZE(ioreqs_pll)); in zd1211_al2230_init_hw()
208 if (r) in zd1211_al2230_init_hw()
209 return r; in zd1211_al2230_init_hw()
211 r = zd_rfwritev_locked(chip, rv3, ARRAY_SIZE(rv3), RF_RV_BITS); in zd1211_al2230_init_hw()
212 if (r) in zd1211_al2230_init_hw()
213 return r; in zd1211_al2230_init_hw()
220 int r; in zd1211b_al2230_init_hw() local
316 r = zd_iowrite16a_locked(chip, zd1211b_ioreqs_shared_1, in zd1211b_al2230_init_hw()
318 if (r) in zd1211b_al2230_init_hw()
319 return r; in zd1211b_al2230_init_hw()
320 r = zd_iowrite16a_locked(chip, ioreqs1, ARRAY_SIZE(ioreqs1)); in zd1211b_al2230_init_hw()
321 if (r) in zd1211b_al2230_init_hw()
322 return r; in zd1211b_al2230_init_hw()
325 r = zd_iowrite16a_locked(chip, ioreqs_init_al2230s, in zd1211b_al2230_init_hw()
327 if (r) in zd1211b_al2230_init_hw()
328 return r; in zd1211b_al2230_init_hw()
331 r = zd_rfwritev_cr_locked(chip, zd1211b_al2230_table[0], 3); in zd1211b_al2230_init_hw()
332 if (r) in zd1211b_al2230_init_hw()
333 return r; in zd1211b_al2230_init_hw()
334 r = zd_rfwritev_cr_locked(chip, rv1, ARRAY_SIZE(rv1)); in zd1211b_al2230_init_hw()
335 if (r) in zd1211b_al2230_init_hw()
336 return r; in zd1211b_al2230_init_hw()
339 r = zd_rfwrite_locked(chip, 0x241000, RF_RV_BITS); in zd1211b_al2230_init_hw()
341 r = zd_rfwrite_locked(chip, 0x25a000, RF_RV_BITS); in zd1211b_al2230_init_hw()
342 if (r) in zd1211b_al2230_init_hw()
343 return r; in zd1211b_al2230_init_hw()
345 r = zd_rfwritev_cr_locked(chip, rv2, ARRAY_SIZE(rv2)); in zd1211b_al2230_init_hw()
346 if (r) in zd1211b_al2230_init_hw()
347 return r; in zd1211b_al2230_init_hw()
348 r = zd_iowrite16a_locked(chip, ioreqs2, ARRAY_SIZE(ioreqs2)); in zd1211b_al2230_init_hw()
349 if (r) in zd1211b_al2230_init_hw()
350 return r; in zd1211b_al2230_init_hw()
351 r = zd_rfwritev_cr_locked(chip, rv3, ARRAY_SIZE(rv3)); in zd1211b_al2230_init_hw()
352 if (r) in zd1211b_al2230_init_hw()
353 return r; in zd1211b_al2230_init_hw()
354 r = zd_iowrite16a_locked(chip, ioreqs3, ARRAY_SIZE(ioreqs3)); in zd1211b_al2230_init_hw()
355 if (r) in zd1211b_al2230_init_hw()
356 return r; in zd1211b_al2230_init_hw()
362 int r; in zd1211_al2230_set_channel() local
370 r = zd_rfwritev_locked(chip, rv, 3, RF_RV_BITS); in zd1211_al2230_set_channel()
371 if (r) in zd1211_al2230_set_channel()
372 return r; in zd1211_al2230_set_channel()
378 int r; in zd1211b_al2230_set_channel() local
382 r = zd_iowrite16a_locked(chip, zd1211b_ioreqs_shared_1, in zd1211b_al2230_set_channel()
384 if (r) in zd1211b_al2230_set_channel()
385 return r; in zd1211b_al2230_set_channel()
387 r = zd_rfwritev_cr_locked(chip, rv, 3); in zd1211b_al2230_set_channel()
388 if (r) in zd1211b_al2230_set_channel()
389 return r; in zd1211b_al2230_set_channel()