Searched refs:sih (Results 1 - 12 of 12) sorted by relevance

/linux-4.1.27/drivers/mfd/
H A Dtwl4030-irq.c68 struct sih { struct
90 static const struct sih *sih_modules;
121 static const struct sih sih_modules_twl4030[6] = {
181 static const struct sih sih_modules_twl5031[8] = {
329 const struct sih *sih; twl4030_init_sih_modules() local
342 sih = sih_modules; twl4030_init_sih_modules()
343 for (i = 0; i < nr_sih_modules; i++, sih++) { twl4030_init_sih_modules()
345 if (!sih->bytes_ixr) twl4030_init_sih_modules()
349 if (sih->irq_lines <= line) twl4030_init_sih_modules()
352 status = twl_i2c_write(sih->module, buf, twl4030_init_sih_modules()
353 sih->mask[line].imr_offset, sih->bytes_ixr); twl4030_init_sih_modules()
356 status, sih->name, "IMR"); twl4030_init_sih_modules()
366 if (sih->set_cor) { twl4030_init_sih_modules()
367 status = twl_i2c_write_u8(sih->module, twl4030_init_sih_modules()
369 sih->control_offset); twl4030_init_sih_modules()
372 status, sih->name, "SIH_CTRL"); twl4030_init_sih_modules()
376 sih = sih_modules; twl4030_init_sih_modules()
377 for (i = 0; i < nr_sih_modules; i++, sih++) { twl4030_init_sih_modules()
382 if (!sih->bytes_ixr) twl4030_init_sih_modules()
386 if (sih->irq_lines <= line) twl4030_init_sih_modules()
396 status = twl_i2c_read(sih->module, rxbuf, twl4030_init_sih_modules()
397 sih->mask[line].isr_offset, sih->bytes_ixr); twl4030_init_sih_modules()
400 status, sih->name, "ISR"); twl4030_init_sih_modules()
402 if (!sih->set_cor) { twl4030_init_sih_modules()
403 status = twl_i2c_write(sih->module, buf, twl4030_init_sih_modules()
404 sih->mask[line].isr_offset, twl4030_init_sih_modules()
405 sih->bytes_ixr); twl4030_init_sih_modules()
438 const struct sih *sih; member in struct:sih_agent
497 const struct sih *sih = agent->sih; twl4030_sih_bus_sync_unlock() local
511 status = twl_i2c_write(sih->module, imr.bytes, twl4030_sih_bus_sync_unlock()
512 sih->mask[irq_line].imr_offset, twl4030_sih_bus_sync_unlock()
513 sih->bytes_ixr); twl4030_sih_bus_sync_unlock()
532 status = twl_i2c_read(sih->module, bytes, twl4030_sih_bus_sync_unlock()
533 sih->edr_offset, sih->bytes_edr); twl4030_sih_bus_sync_unlock()
559 status = twl_i2c_write(sih->module, bytes, twl4030_sih_bus_sync_unlock()
560 sih->edr_offset, sih->bytes_edr); twl4030_sih_bus_sync_unlock()
581 static inline int sih_read_isr(const struct sih *sih) sih_read_isr() argument
592 status = twl_i2c_read(sih->module, isr.bytes, sih_read_isr()
593 sih->mask[irq_line].isr_offset, sih->bytes_ixr); sih_read_isr()
605 const struct sih *sih = agent->sih; handle_twl4030_sih() local
609 isr = sih_read_isr(sih); handle_twl4030_sih()
613 sih->name, isr); handle_twl4030_sih()
623 if (irq < sih->bits) handle_twl4030_sih()
627 sih->name, irq); handle_twl4030_sih()
636 const struct sih *sih = NULL; twl4030_sih_setup() local
642 for (sih_mod = 0, sih = sih_modules; sih_mod < nr_sih_modules; twl4030_sih_setup()
643 sih_mod++, sih++) { twl4030_sih_setup()
644 if (sih->module == module && sih->set_cor) { twl4030_sih_setup()
658 agent->sih = sih; twl4030_sih_setup()
662 for (i = 0; i < sih->bits; i++) { twl4030_sih_setup()
675 agent->irq_name = kasprintf(GFP_KERNEL, "twl4030_%s", sih->name); twl4030_sih_setup()
678 agent->irq_name ?: sih->name, NULL); twl4030_sih_setup()
680 dev_info(dev, "%s (irq %d) chaining IRQs %d..%d\n", sih->name, twl4030_sih_setup()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
H A Daiutils.h166 * Many of the routines below take an 'sih' handle as their first arg.
168 * At any one time, the sih is logically focused on one particular si core
179 void ai_detach(struct si_pub *sih);
180 uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val);
181 void ai_clkctl_init(struct si_pub *sih);
182 u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih);
183 bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode);
184 bool ai_deviceremoved(struct si_pub *sih);
187 void ai_epa_4313war(struct si_pub *sih);
189 static inline u32 ai_get_cccaps(struct si_pub *sih) ai_get_cccaps() argument
191 return sih->cccaps; ai_get_cccaps()
194 static inline int ai_get_pmurev(struct si_pub *sih) ai_get_pmurev() argument
196 return sih->pmurev; ai_get_pmurev()
199 static inline u32 ai_get_pmucaps(struct si_pub *sih) ai_get_pmucaps() argument
201 return sih->pmucaps; ai_get_pmucaps()
204 static inline uint ai_get_boardtype(struct si_pub *sih) ai_get_boardtype() argument
206 return sih->boardtype; ai_get_boardtype()
209 static inline uint ai_get_boardvendor(struct si_pub *sih) ai_get_boardvendor() argument
211 return sih->boardvendor; ai_get_boardvendor()
214 static inline uint ai_get_chip_id(struct si_pub *sih) ai_get_chip_id() argument
216 return sih->chip; ai_get_chip_id()
219 static inline uint ai_get_chiprev(struct si_pub *sih) ai_get_chiprev() argument
221 return sih->chiprev; ai_get_chiprev()
224 static inline uint ai_get_chippkg(struct si_pub *sih) ai_get_chippkg() argument
226 return sih->chippkg; ai_get_chippkg()
H A Daiutils.c472 struct si_pub *sih = &sii->pub; ai_doattach() local
481 sih->chip = pbus->chipinfo.id; ai_doattach()
482 sih->chiprev = pbus->chipinfo.rev; ai_doattach()
483 sih->chippkg = pbus->chipinfo.pkg; ai_doattach()
484 sih->boardvendor = pbus->boardinfo.vendor; ai_doattach()
485 sih->boardtype = pbus->boardinfo.type; ai_doattach()
495 if (ai_get_cccaps(sih) & CC_CAP_PMU) { ai_doattach()
496 (void)si_pmu_measure_alpclk(sih); ai_doattach()
528 void ai_detach(struct si_pub *sih) ai_detach() argument
532 sii = container_of(sih, struct si_info, pub); ai_detach()
543 uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val) ai_cc_reg() argument
549 sii = container_of(sih, struct si_info, pub); ai_cc_reg()
563 static uint ai_slowclk_src(struct si_pub *sih, struct bcma_device *cc) ai_slowclk_src() argument
572 static uint ai_slowclk_freq(struct si_pub *sih, bool max_freq, ai_slowclk_freq() argument
584 ai_clkctl_setdelay(struct si_pub *sih, struct bcma_device *cc) ai_clkctl_setdelay() argument
597 slowclk = ai_slowclk_src(sih, cc); ai_clkctl_setdelay()
603 ai_slowclk_freq(sih, false, cc); ai_clkctl_setdelay()
613 void ai_clkctl_init(struct si_pub *sih) ai_clkctl_init() argument
615 struct si_info *sii = container_of(sih, struct si_info, pub); ai_clkctl_init()
618 if (!(ai_get_cccaps(sih) & CC_CAP_PWR_CTL)) ai_clkctl_init()
629 ai_clkctl_setdelay(sih, cc); ai_clkctl_init()
636 u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih) ai_clkctl_fast_pwrup_delay() argument
643 sii = container_of(sih, struct si_info, pub); ai_clkctl_fast_pwrup_delay()
644 if (ai_get_cccaps(sih) & CC_CAP_PMU) { ai_clkctl_fast_pwrup_delay()
645 fpdelay = si_pmu_fast_pwrup_delay(sih); ai_clkctl_fast_pwrup_delay()
649 if (!(ai_get_cccaps(sih) & CC_CAP_PWR_CTL)) ai_clkctl_fast_pwrup_delay()
655 slowminfreq = ai_slowclk_freq(sih, false, cc); ai_clkctl_fast_pwrup_delay()
670 bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode) ai_clkctl_cc() argument
675 sii = container_of(sih, struct si_info, pub); ai_clkctl_cc()
683 void ai_epa_4313war(struct si_pub *sih) ai_epa_4313war() argument
685 struct si_info *sii = container_of(sih, struct si_info, pub); ai_epa_4313war()
695 bool ai_deviceremoved(struct si_pub *sih) ai_deviceremoved() argument
700 sii = container_of(sih, struct si_info, pub); ai_deviceremoved()
H A Dpmu.h23 u16 si_pmu_fast_pwrup_delay(struct si_pub *sih);
24 u32 si_pmu_measure_alpclk(struct si_pub *sih);
H A Dpmu.c101 u16 si_pmu_fast_pwrup_delay(struct si_pub *sih) si_pmu_fast_pwrup_delay() argument
105 switch (ai_get_chip_id(sih)) { si_pmu_fast_pwrup_delay()
118 u32 si_pmu_measure_alpclk(struct si_pub *sih) si_pmu_measure_alpclk() argument
120 struct si_info *sii = container_of(sih, struct si_info, pub); si_pmu_measure_alpclk()
124 if (ai_get_pmurev(sih) < 10) si_pmu_measure_alpclk()
H A Dmain.c394 return ai_deviceremoved(wlc->hw->sih); brcms_deviceremoved()
1244 if (ai_get_cccaps(wlc_hw->sih) & CC_CAP_PMU) { brcms_b_clkctl_clk()
1268 if ((ai_get_pmurev(wlc_hw->sih) == 0) && brcms_b_clkctl_clk()
1290 wlc_hw->forcefastclk = ai_clkctl_cc(wlc_hw->sih, mode); brcms_b_clkctl_clk()
1743 ai_cc_reg(wlc_hw->sih, offsetof(struct chipcregs, chipcontrol_addr), brcms_b_core_phypll_reset()
1746 ai_cc_reg(wlc_hw->sih, offsetof(struct chipcregs, chipcontrol_data), brcms_b_core_phypll_reset()
1749 ai_cc_reg(wlc_hw->sih, offsetof(struct chipcregs, chipcontrol_data), brcms_b_core_phypll_reset()
1752 ai_cc_reg(wlc_hw->sih, offsetof(struct chipcregs, chipcontrol_data), brcms_b_core_phypll_reset()
1885 if (ai_get_boardvendor(wlc_hw->sih) != PCI_VENDOR_ID_BROADCOM) brcms_c_validboardtype()
2064 if (ai_get_cccaps(wlc_hw->sih) & CC_CAP_PMU) brcms_b_corereset()
2147 if ((ai_get_chip_id(wlc_hw->sih) == BCMA_CHIP_ID_BCM43224) || brcms_b_switch_macfreq()
2148 (ai_get_chip_id(wlc_hw->sih) == BCMA_CHIP_ID_BCM43225)) { brcms_b_switch_macfreq()
2827 if ((ai_get_chip_id(wlc_hw->sih) == BCMA_CHIP_ID_BCM4313)) { brcms_b_core_phypll_ctl()
3311 wlc->fastpwrup_dly = ai_clkctl_fast_pwrup_delay(wlc_hw->sih); brcms_b_coreinit()
4439 wlc_hw->sih = ai_attach(core->bus); brcms_b_attach()
4440 if (wlc_hw->sih == NULL) { brcms_b_attach()
4473 ai_clkctl_init(wlc_hw->sih); brcms_b_attach()
4500 unit, ai_get_boardtype(wlc_hw->sih), brcms_b_attach()
4521 if ((ai_get_chip_id(wlc_hw->sih) == BCMA_CHIP_ID_BCM43225)) brcms_b_attach()
4529 wlc->pub->sih = wlc_hw->sih; brcms_b_attach()
4547 sha_params.sih = wlc_hw->sih; brcms_b_attach()
4553 sha_params.chip = ai_get_chip_id(wlc_hw->sih); brcms_b_attach()
4554 sha_params.chiprev = ai_get_chiprev(wlc_hw->sih); brcms_b_attach()
4555 sha_params.chippkg = ai_get_chippkg(wlc_hw->sih); brcms_b_attach()
4557 sha_params.boardtype = ai_get_boardtype(wlc_hw->sih); brcms_b_attach()
4699 ai_get_boardtype(wlc_hw->sih)); brcms_b_attach()
4858 if (wlc_hw->sih) { brcms_b_detach()
4859 ai_detach(wlc_hw->sih); brcms_b_detach()
4860 wlc_hw->sih = NULL; brcms_b_detach()
4918 ai_clkctl_init(wlc_hw->sih); brcms_b_hw_up()
4938 && (ai_get_chip_id(wlc_hw->sih) == BCMA_CHIP_ID_BCM4313)) { brcms_b_hw_up()
4942 ai_epa_4313war(wlc_hw->sih); brcms_b_hw_up()
4955 ai_clkctl_init(wlc_hw->sih); brcms_b_up_prep()
5030 && (ai_get_chip_id(wlc->hw->sih) == BCMA_CHIP_ID_BCM4313)) { brcms_c_up()
7836 __func__, ai_get_chip_id(wlc_hw->sih), brcms_c_dpc()
7837 ai_get_chiprev(wlc_hw->sih)); brcms_c_dpc()
H A Ddma.c553 struct si_pub *sih = wlc->hw->sih; dma_attach() local
558 struct si_info *sii = container_of(sih, struct si_info, pub); dma_attach()
H A Dpub.h151 struct si_pub *sih; /* SI handle (cookie for siutils calls) */ member in struct:brcms_pub
H A Dmain.h332 struct si_pub *sih; /* SI handle (cookie for siutils calls) */ member in struct:brcms_hardware
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/phy/
H A Dphy_hal.h165 struct si_pub *sih; member in struct:shared_phy_params
/linux-4.1.27/arch/x86/boot/
H A Dboot.h261 u8 sil, sih, esi2, esi3; member in struct:biosregs::__anon2961::__anon2964
/linux-4.1.27/fs/jfs/
H A Djfs_dtree.c4075 struct idtentry *sih, *dih = NULL; dtMoveEntry() local
4151 sih = (struct idtentry *) s; dtMoveEntry()
4152 snamlen = sih->namlen; dtMoveEntry()
4156 memcpy(dih, sih, 10 + len * 2); dtMoveEntry()
4157 next = sih->next; dtMoveEntry()

Completed in 340 milliseconds