Lines Matching refs:sih

472 	struct si_pub *sih = &sii->pub;  in ai_doattach()  local
481 sih->chip = pbus->chipinfo.id; in ai_doattach()
482 sih->chiprev = pbus->chipinfo.rev; in ai_doattach()
483 sih->chippkg = pbus->chipinfo.pkg; in ai_doattach()
484 sih->boardvendor = pbus->boardinfo.vendor; in ai_doattach()
485 sih->boardtype = pbus->boardinfo.type; in ai_doattach()
495 if (ai_get_cccaps(sih) & CC_CAP_PMU) { in ai_doattach()
496 (void)si_pmu_measure_alpclk(sih); in ai_doattach()
528 void ai_detach(struct si_pub *sih) in ai_detach() argument
532 sii = container_of(sih, struct si_info, pub); in ai_detach()
540 uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val) in ai_cc_reg() argument
546 sii = container_of(sih, struct si_info, pub); in ai_cc_reg()
560 static uint ai_slowclk_src(struct si_pub *sih, struct bcma_device *cc) in ai_slowclk_src() argument
569 static uint ai_slowclk_freq(struct si_pub *sih, bool max_freq, in ai_slowclk_freq() argument
581 ai_clkctl_setdelay(struct si_pub *sih, struct bcma_device *cc) in ai_clkctl_setdelay() argument
594 slowclk = ai_slowclk_src(sih, cc); in ai_clkctl_setdelay()
600 ai_slowclk_freq(sih, false, cc); in ai_clkctl_setdelay()
610 void ai_clkctl_init(struct si_pub *sih) in ai_clkctl_init() argument
612 struct si_info *sii = container_of(sih, struct si_info, pub); in ai_clkctl_init()
615 if (!(ai_get_cccaps(sih) & CC_CAP_PWR_CTL)) in ai_clkctl_init()
626 ai_clkctl_setdelay(sih, cc); in ai_clkctl_init()
633 u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih) in ai_clkctl_fast_pwrup_delay() argument
640 sii = container_of(sih, struct si_info, pub); in ai_clkctl_fast_pwrup_delay()
641 if (ai_get_cccaps(sih) & CC_CAP_PMU) { in ai_clkctl_fast_pwrup_delay()
642 fpdelay = si_pmu_fast_pwrup_delay(sih); in ai_clkctl_fast_pwrup_delay()
646 if (!(ai_get_cccaps(sih) & CC_CAP_PWR_CTL)) in ai_clkctl_fast_pwrup_delay()
652 slowminfreq = ai_slowclk_freq(sih, false, cc); in ai_clkctl_fast_pwrup_delay()
667 bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode) in ai_clkctl_cc() argument
672 sii = container_of(sih, struct si_info, pub); in ai_clkctl_cc()
680 void ai_epa_4313war(struct si_pub *sih) in ai_epa_4313war() argument
682 struct si_info *sii = container_of(sih, struct si_info, pub); in ai_epa_4313war()
692 bool ai_deviceremoved(struct si_pub *sih) in ai_deviceremoved() argument
697 sii = container_of(sih, struct si_info, pub); in ai_deviceremoved()