Lines Matching refs:r
258 int r; in uw2453_synth_set_channel() local
267 r = zd_rfwrite_locked(chip, val, RF_RV_BITS); in uw2453_synth_set_channel()
268 if (r) in uw2453_synth_set_channel()
269 return r; in uw2453_synth_set_channel()
311 int i, r; in uw2453_init_hw() local
378 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in uw2453_init_hw()
379 if (r) in uw2453_init_hw()
380 return r; in uw2453_init_hw()
382 r = zd_rfwritev_locked(chip, rv, ARRAY_SIZE(rv), RF_RV_BITS); in uw2453_init_hw()
383 if (r) in uw2453_init_hw()
384 return r; in uw2453_init_hw()
386 r = uw2453_init_mode(chip); in uw2453_init_hw()
387 if (r) in uw2453_init_hw()
388 return r; in uw2453_init_hw()
393 r = uw2453_synth_set_channel(chip, 1, false); in uw2453_init_hw()
394 if (r) in uw2453_init_hw()
395 return r; in uw2453_init_hw()
398 r = uw2453_write_vco_cfg(chip, uw2453_std_vco_cfg[i][0]); in uw2453_init_hw()
399 if (r) in uw2453_init_hw()
400 return r; in uw2453_init_hw()
403 r = zd_iowrite16_locked(chip, 0x0f, UW2453_INTR_REG); in uw2453_init_hw()
404 if (r) in uw2453_init_hw()
405 return r; in uw2453_init_hw()
408 r = zd_ioread16_locked(chip, &intr_status, UW2453_INTR_REG); in uw2453_init_hw()
409 if (r) in uw2453_init_hw()
410 return r; in uw2453_init_hw()
425 r = uw2453_synth_set_channel(chip, 1, true); in uw2453_init_hw()
426 if (r) in uw2453_init_hw()
427 return r; in uw2453_init_hw()
429 r = uw2453_write_vco_cfg(chip, UW2453_AUTOCAL_VCO_CFG); in uw2453_init_hw()
430 if (r) in uw2453_init_hw()
431 return r; in uw2453_init_hw()
443 int r; in uw2453_set_channel() local
454 r = uw2453_synth_set_channel(chip, channel, autocal); in uw2453_set_channel()
455 if (r) in uw2453_set_channel()
456 return r; in uw2453_set_channel()
463 r = uw2453_write_vco_cfg(chip, vco_cfg); in uw2453_set_channel()
464 if (r) in uw2453_set_channel()
465 return r; in uw2453_set_channel()
467 r = uw2453_init_mode(chip); in uw2453_set_channel()
468 if (r) in uw2453_set_channel()
469 return r; in uw2453_set_channel()
471 r = zd_iowrite16a_locked(chip, ioreqs, ARRAY_SIZE(ioreqs)); in uw2453_set_channel()
472 if (r) in uw2453_set_channel()
473 return r; in uw2453_set_channel()
475 r = uw2453_set_tx_gain_level(chip, channel); in uw2453_set_channel()
476 if (r) in uw2453_set_channel()
477 return r; in uw2453_set_channel()
484 int r; in uw2453_switch_radio_on() local
491 r = zd_rfwrite_locked(chip, UW2453_REGWRITE(0, 0x25f94), RF_RV_BITS); in uw2453_switch_radio_on()
492 if (r) in uw2453_switch_radio_on()
493 return r; in uw2453_switch_radio_on()
503 int r; in uw2453_switch_radio_off() local
511 r = zd_rfwrite_locked(chip, UW2453_REGWRITE(0, 0x25f90), RF_RV_BITS); in uw2453_switch_radio_off()
512 if (r) in uw2453_switch_radio_off()
513 return r; in uw2453_switch_radio_off()