Lines Matching full:r
64 int r; in zd1211b_al7230b_finalize() local
73 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in zd1211b_al7230b_finalize()
74 if (r) in zd1211b_al7230b_finalize()
75 return r; in zd1211b_al7230b_finalize()
79 r = zd_iowrite16_locked(chip, 0xe5, ZD_CR9); in zd1211b_al7230b_finalize()
80 if (r) in zd1211b_al7230b_finalize()
81 return r; in zd1211b_al7230b_finalize()
89 int r; in zd1211_al7230b_init_hw() local
158 r = zd_iowrite16a_locked(chip, ioreqs_1, ARRAY_SIZE(ioreqs_1)); in zd1211_al7230b_init_hw()
159 if (r) in zd1211_al7230b_init_hw()
160 return r; in zd1211_al7230b_init_hw()
162 r = zd_rfwritev_cr_locked(chip, chan_rv[0], ARRAY_SIZE(chan_rv[0])); in zd1211_al7230b_init_hw()
163 if (r) in zd1211_al7230b_init_hw()
164 return r; in zd1211_al7230b_init_hw()
166 r = zd_rfwritev_cr_locked(chip, std_rv, ARRAY_SIZE(std_rv)); in zd1211_al7230b_init_hw()
167 if (r) in zd1211_al7230b_init_hw()
168 return r; in zd1211_al7230b_init_hw()
170 r = zd_rfwritev_cr_locked(chip, rv_init1, ARRAY_SIZE(rv_init1)); in zd1211_al7230b_init_hw()
171 if (r) in zd1211_al7230b_init_hw()
172 return r; in zd1211_al7230b_init_hw()
174 r = zd_iowrite16a_locked(chip, ioreqs_2, ARRAY_SIZE(ioreqs_2)); in zd1211_al7230b_init_hw()
175 if (r) in zd1211_al7230b_init_hw()
176 return r; in zd1211_al7230b_init_hw()
178 r = zd_rfwritev_cr_locked(chip, rv_init2, ARRAY_SIZE(rv_init2)); in zd1211_al7230b_init_hw()
179 if (r) in zd1211_al7230b_init_hw()
180 return r; in zd1211_al7230b_init_hw()
182 r = zd_iowrite16_locked(chip, 0x06, ZD_CR203); in zd1211_al7230b_init_hw()
183 if (r) in zd1211_al7230b_init_hw()
184 return r; in zd1211_al7230b_init_hw()
185 r = zd_iowrite16_locked(chip, 0x80, ZD_CR240); in zd1211_al7230b_init_hw()
186 if (r) in zd1211_al7230b_init_hw()
187 return r; in zd1211_al7230b_init_hw()
194 int r; in zd1211b_al7230b_init_hw() local
273 r = zd_iowrite16a_locked(chip, ioreqs_1, ARRAY_SIZE(ioreqs_1)); in zd1211b_al7230b_init_hw()
274 if (r) in zd1211b_al7230b_init_hw()
275 return r; in zd1211b_al7230b_init_hw()
278 r = zd_iowrite16a_locked(chip, ioreqs_new_phy, in zd1211b_al7230b_init_hw()
281 r = zd_iowrite16a_locked(chip, ioreqs_old_phy, in zd1211b_al7230b_init_hw()
283 if (r) in zd1211b_al7230b_init_hw()
284 return r; in zd1211b_al7230b_init_hw()
286 r = zd_iowrite16a_locked(chip, ioreqs_2, ARRAY_SIZE(ioreqs_2)); in zd1211b_al7230b_init_hw()
287 if (r) in zd1211b_al7230b_init_hw()
288 return r; in zd1211b_al7230b_init_hw()
290 r = zd_rfwritev_cr_locked(chip, chan_rv[0], ARRAY_SIZE(chan_rv[0])); in zd1211b_al7230b_init_hw()
291 if (r) in zd1211b_al7230b_init_hw()
292 return r; in zd1211b_al7230b_init_hw()
294 r = zd_rfwritev_cr_locked(chip, std_rv, ARRAY_SIZE(std_rv)); in zd1211b_al7230b_init_hw()
295 if (r) in zd1211b_al7230b_init_hw()
296 return r; in zd1211b_al7230b_init_hw()
298 r = zd_rfwritev_cr_locked(chip, rv_init1, ARRAY_SIZE(rv_init1)); in zd1211b_al7230b_init_hw()
299 if (r) in zd1211b_al7230b_init_hw()
300 return r; in zd1211b_al7230b_init_hw()
302 r = zd_iowrite16a_locked(chip, ioreqs_3, ARRAY_SIZE(ioreqs_3)); in zd1211b_al7230b_init_hw()
303 if (r) in zd1211b_al7230b_init_hw()
304 return r; in zd1211b_al7230b_init_hw()
306 r = zd_rfwritev_cr_locked(chip, rv_init2, ARRAY_SIZE(rv_init2)); in zd1211b_al7230b_init_hw()
307 if (r) in zd1211b_al7230b_init_hw()
308 return r; in zd1211b_al7230b_init_hw()
315 int r; in zd1211_al7230b_set_channel() local
325 r = zd_iowrite16_locked(chip, 0x57, ZD_CR240); in zd1211_al7230b_set_channel()
326 if (r) in zd1211_al7230b_set_channel()
327 return r; in zd1211_al7230b_set_channel()
330 r = zd_iowrite16_locked(chip, 0x2f, ZD_CR251); in zd1211_al7230b_set_channel()
331 if (r) in zd1211_al7230b_set_channel()
332 return r; in zd1211_al7230b_set_channel()
334 r = zd_rfwritev_cr_locked(chip, std_rv, ARRAY_SIZE(std_rv)); in zd1211_al7230b_set_channel()
335 if (r) in zd1211_al7230b_set_channel()
336 return r; in zd1211_al7230b_set_channel()
338 r = zd_rfwrite_cr_locked(chip, 0x3c9000); in zd1211_al7230b_set_channel()
339 if (r) in zd1211_al7230b_set_channel()
340 return r; in zd1211_al7230b_set_channel()
341 r = zd_rfwrite_cr_locked(chip, 0xf15d58); in zd1211_al7230b_set_channel()
342 if (r) in zd1211_al7230b_set_channel()
343 return r; in zd1211_al7230b_set_channel()
345 r = zd_iowrite16a_locked(chip, ioreqs_sw, ARRAY_SIZE(ioreqs_sw)); in zd1211_al7230b_set_channel()
346 if (r) in zd1211_al7230b_set_channel()
347 return r; in zd1211_al7230b_set_channel()
349 r = zd_rfwritev_cr_locked(chip, rv, 2); in zd1211_al7230b_set_channel()
350 if (r) in zd1211_al7230b_set_channel()
351 return r; in zd1211_al7230b_set_channel()
353 r = zd_rfwrite_cr_locked(chip, 0x3c9000); in zd1211_al7230b_set_channel()
354 if (r) in zd1211_al7230b_set_channel()
355 return r; in zd1211_al7230b_set_channel()
362 int r; in zd1211b_al7230b_set_channel() local
366 r = zd_iowrite16_locked(chip, 0x57, ZD_CR240); in zd1211b_al7230b_set_channel()
367 if (r) in zd1211b_al7230b_set_channel()
368 return r; in zd1211b_al7230b_set_channel()
369 r = zd_iowrite16_locked(chip, 0xe4, ZD_CR9); in zd1211b_al7230b_set_channel()
370 if (r) in zd1211b_al7230b_set_channel()
371 return r; in zd1211b_al7230b_set_channel()
374 r = zd_iowrite16_locked(chip, 0x2f, ZD_CR251); in zd1211b_al7230b_set_channel()
375 if (r) in zd1211b_al7230b_set_channel()
376 return r; in zd1211b_al7230b_set_channel()
377 r = zd_rfwritev_cr_locked(chip, std_rv, ARRAY_SIZE(std_rv)); in zd1211b_al7230b_set_channel()
378 if (r) in zd1211b_al7230b_set_channel()
379 return r; in zd1211b_al7230b_set_channel()
381 r = zd_rfwrite_cr_locked(chip, 0x3c9000); in zd1211b_al7230b_set_channel()
382 if (r) in zd1211b_al7230b_set_channel()
383 return r; in zd1211b_al7230b_set_channel()
384 r = zd_rfwrite_cr_locked(chip, 0xf15d58); in zd1211b_al7230b_set_channel()
385 if (r) in zd1211b_al7230b_set_channel()
386 return r; in zd1211b_al7230b_set_channel()
388 r = zd_iowrite16a_locked(chip, ioreqs_sw, ARRAY_SIZE(ioreqs_sw)); in zd1211b_al7230b_set_channel()
389 if (r) in zd1211b_al7230b_set_channel()
390 return r; in zd1211b_al7230b_set_channel()
392 r = zd_rfwritev_cr_locked(chip, rv, 2); in zd1211b_al7230b_set_channel()
393 if (r) in zd1211b_al7230b_set_channel()
394 return r; in zd1211b_al7230b_set_channel()
396 r = zd_rfwrite_cr_locked(chip, 0x3c9000); in zd1211b_al7230b_set_channel()
397 if (r) in zd1211b_al7230b_set_channel()
398 return r; in zd1211b_al7230b_set_channel()
400 r = zd_iowrite16_locked(chip, 0x7f, ZD_CR251); in zd1211b_al7230b_set_channel()
401 if (r) in zd1211b_al7230b_set_channel()
402 return r; in zd1211b_al7230b_set_channel()