Lines Matching full:core
3 * Core ops
12 bool bcma_core_is_enabled(struct bcma_device *core) in bcma_core_is_enabled() argument
14 if ((bcma_aread32(core, BCMA_IOCTL) & (BCMA_IOCTL_CLK | BCMA_IOCTL_FGC)) in bcma_core_is_enabled()
17 if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET) in bcma_core_is_enabled()
23 void bcma_core_disable(struct bcma_device *core, u32 flags) in bcma_core_disable() argument
25 if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET) in bcma_core_disable()
28 bcma_awrite32(core, BCMA_IOCTL, flags); in bcma_core_disable()
29 bcma_aread32(core, BCMA_IOCTL); in bcma_core_disable()
32 bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET); in bcma_core_disable()
37 int bcma_core_enable(struct bcma_device *core, u32 flags) in bcma_core_enable() argument
39 bcma_core_disable(core, flags); in bcma_core_enable()
41 bcma_awrite32(core, BCMA_IOCTL, (BCMA_IOCTL_CLK | BCMA_IOCTL_FGC | flags)); in bcma_core_enable()
42 bcma_aread32(core, BCMA_IOCTL); in bcma_core_enable()
44 bcma_awrite32(core, BCMA_RESET_CTL, 0); in bcma_core_enable()
47 bcma_awrite32(core, BCMA_IOCTL, (BCMA_IOCTL_CLK | flags)); in bcma_core_enable()
48 bcma_aread32(core, BCMA_IOCTL); in bcma_core_enable()
55 void bcma_core_set_clockmode(struct bcma_device *core, in bcma_core_set_clockmode() argument
60 WARN_ON(core->id.id != BCMA_CORE_CHIPCOMMON && in bcma_core_set_clockmode()
61 core->id.id != BCMA_CORE_PCIE && in bcma_core_set_clockmode()
62 core->id.id != BCMA_CORE_80211); in bcma_core_set_clockmode()
66 bcma_set32(core, BCMA_CLKCTLST, BCMA_CLKCTLST_FORCEHT); in bcma_core_set_clockmode()
69 if (bcma_read32(core, BCMA_CLKCTLST) & in bcma_core_set_clockmode()
86 void bcma_core_pll_ctl(struct bcma_device *core, u32 req, u32 status, bool on) in bcma_core_pll_ctl() argument
94 bcma_set32(core, BCMA_CLKCTLST, req); in bcma_core_pll_ctl()
96 if ((bcma_read32(core, BCMA_CLKCTLST) & status) == in bcma_core_pll_ctl()
111 u32 bcma_core_dma_translation(struct bcma_device *core) in bcma_core_dma_translation() argument
113 switch (core->bus->hosttype) { in bcma_core_dma_translation()
117 if (bcma_aread32(core, BCMA_IOST) & BCMA_IOST_DMA64) in bcma_core_dma_translation()
123 core->bus->hosttype); in bcma_core_dma_translation()