/linux-4.1.27/drivers/ssb/ |
H A D | driver_gpio.c | 50 return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); ssb_gpio_chipco_get_value() 58 ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); ssb_gpio_chipco_set_value() 66 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 0); ssb_gpio_chipco_direction_input() 75 ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 1 << gpio); ssb_gpio_chipco_direction_output() 76 ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); ssb_gpio_chipco_direction_output() 84 ssb_chipco_gpio_control(&bus->chipco, 1 << gpio, 0); ssb_gpio_chipco_request() 86 ssb_chipco_gpio_pulldown(&bus->chipco, 1 << gpio, 0); ssb_gpio_chipco_request() 88 ssb_chipco_gpio_pullup(&bus->chipco, 1 << gpio, 1 << gpio); ssb_gpio_chipco_request() 98 ssb_chipco_gpio_pullup(&bus->chipco, 1 << gpio, 0); ssb_gpio_chipco_free() 107 ssb_chipco_gpio_intmask(&bus->chipco, BIT(gpio), 0); ssb_gpio_irq_chipco_mask() 114 u32 val = ssb_chipco_gpio_in(&bus->chipco, BIT(gpio)); ssb_gpio_irq_chipco_unmask() 116 ssb_chipco_gpio_polarity(&bus->chipco, BIT(gpio), val); ssb_gpio_irq_chipco_unmask() 117 ssb_chipco_gpio_intmask(&bus->chipco, BIT(gpio), BIT(gpio)); ssb_gpio_irq_chipco_unmask() 129 struct ssb_chipcommon *chipco = &bus->chipco; ssb_gpio_irq_chipco_handler() local 130 u32 val = chipco_read32(chipco, SSB_CHIPCO_GPIOIN); ssb_gpio_irq_chipco_handler() 131 u32 mask = chipco_read32(chipco, SSB_CHIPCO_GPIOIRQ); ssb_gpio_irq_chipco_handler() 132 u32 pol = chipco_read32(chipco, SSB_CHIPCO_GPIOPOL); ssb_gpio_irq_chipco_handler() 141 ssb_chipco_gpio_polarity(chipco, irqs, val & irqs); ssb_gpio_irq_chipco_handler() 148 struct ssb_chipcommon *chipco = &bus->chipco; ssb_gpio_irq_chipco_domain_init() local 156 &irq_domain_simple_ops, chipco); ssb_gpio_irq_chipco_domain_init() 169 hwirq = ssb_mips_irq(bus->chipco.dev) + 2; ssb_gpio_irq_chipco_domain_init() 175 ssb_chipco_gpio_intmask(&bus->chipco, ~0, 0); ssb_gpio_irq_chipco_domain_init() 176 chipco_set32(chipco, SSB_CHIPCO_IRQMASK, SSB_CHIPCO_IRQ_GPIO); ssb_gpio_irq_chipco_domain_init() 193 struct ssb_chipcommon *chipco = &bus->chipco; ssb_gpio_irq_chipco_domain_exit() local 200 chipco_mask32(chipco, SSB_CHIPCO_IRQMASK, ~SSB_CHIPCO_IRQ_GPIO); ssb_gpio_irq_chipco_domain_exit() 201 free_irq(ssb_mips_irq(bus->chipco.dev) + 2, chipco); ssb_gpio_irq_chipco_domain_exit() 464 if (ssb_chipco_available(&bus->chipco)) ssb_gpio_init() 476 if (ssb_chipco_available(&bus->chipco) || ssb_gpio_unregister()
|
H A D | embedded.c | 25 if (ssb_chipco_available(&bus->chipco)) { ssb_watchdog_timer_set() 26 ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); ssb_watchdog_timer_set() 42 if (ssb_chipco_available(&bus->chipco)) { ssb_watchdog_register() 43 wdt.driver_data = &bus->chipco; ssb_watchdog_register() 46 wdt.max_timer_ms = bus->chipco.max_timer_ms; ssb_watchdog_register() 75 if (ssb_chipco_available(&bus->chipco)) ssb_gpio_in() 76 res = ssb_chipco_gpio_in(&bus->chipco, mask); ssb_gpio_in() 93 if (ssb_chipco_available(&bus->chipco)) ssb_gpio_out() 94 res = ssb_chipco_gpio_out(&bus->chipco, mask, value); ssb_gpio_out() 111 if (ssb_chipco_available(&bus->chipco)) ssb_gpio_outen() 112 res = ssb_chipco_gpio_outen(&bus->chipco, mask, value); ssb_gpio_outen() 129 if (ssb_chipco_available(&bus->chipco)) ssb_gpio_control() 130 res = ssb_chipco_gpio_control(&bus->chipco, mask, value); ssb_gpio_control() 143 if (ssb_chipco_available(&bus->chipco)) ssb_gpio_intmask() 144 res = ssb_chipco_gpio_intmask(&bus->chipco, mask, value); ssb_gpio_intmask() 161 if (ssb_chipco_available(&bus->chipco)) ssb_gpio_polarity() 162 res = ssb_chipco_gpio_polarity(&bus->chipco, mask, value); ssb_gpio_polarity()
|
H A D | driver_mipscore.c | 207 else if (ssb_chipco_available(&bus->chipco)) ssb_mips_serial_init() 208 mcore->nr_serial_ports = ssb_chipco_serial_init(&bus->chipco, mcore->serial_ports); ssb_mips_serial_init() 220 if (!ssb_chipco_available(&bus->chipco)) { ssb_mips_flash_detect() 229 switch (bus->chipco.capabilities & SSB_CHIPCO_CAP_FLASHT) { ssb_mips_flash_detect() 233 ssb_sflash_init(&bus->chipco); ssb_mips_flash_detect() 240 if ((ssb_read32(bus->chipco.dev, SSB_CHIPCO_FLASH_CFG) ssb_mips_flash_detect() 269 if (bus->chipco.capabilities & SSB_CHIPCO_CAP_PMU) ssb_cpu_clock() 270 return ssb_pmu_get_cpu_clock(&bus->chipco); ssb_cpu_clock() 274 } else if (ssb_chipco_available(&bus->chipco)) { ssb_cpu_clock() 275 ssb_chipco_get_clockcpu(&bus->chipco, &pll_type, &n, &m); ssb_cpu_clock() 312 else if (ssb_chipco_available(&bus->chipco)) ssb_mipscore_init() 313 ssb_chipco_timing_init(&bus->chipco, ns); ssb_mipscore_init()
|
H A D | sprom.c | 195 bus->chipco.dev && /* can be unavailable! */ ssb_is_sprom_available() 196 bus->chipco.dev->id.revision >= 31) ssb_is_sprom_available() 197 return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM; ssb_is_sprom_available()
|
H A D | main.c | 178 ssb_chipco_resume(&bus->chipco); ssb_bus_resume() 187 ssb_chipco_suspend(&bus->chipco); ssb_bus_suspend() 818 ssb_chipcommon_init(&bus->chipco); ssb_bus_register() 1099 if (bus->chipco.capabilities & SSB_CHIPCO_CAP_PMU) ssb_clockspeed() 1100 return ssb_pmu_get_controlclock(&bus->chipco); ssb_clockspeed() 1105 else if (bus->chipco.dev) ssb_clockspeed() 1106 ssb_chipco_get_clockcontrol(&bus->chipco, &plltype, ssb_clockspeed() 1316 cc = &bus->chipco; ssb_bus_may_powerdown() 1352 ssb_chipco_set_clockmode(&bus->chipco, mode); ssb_bus_powerup() 1381 dev = bus->chipco.dev ? bus->chipco.dev : bus->pcicore.dev; ssb_commit_settings() 1383 dev = bus->chipco.dev; ssb_commit_settings()
|
H A D | scan.c | 309 bus->chipco.capabilities = tmp; ssb_bus_scan() 384 if (bus->chipco.dev) { ssb_bus_scan() 388 bus->chipco.dev = dev; ssb_bus_scan()
|
H A D | pci.c | 869 if (bus->chipco.dev) { /* can be unavailable! */ ssb_pci_sprom_get() 875 if (bus->chipco.dev->id.revision >= 31) ssb_pci_sprom_get() 878 (bus->chipco.status & 0x03) == 2) ssb_pci_sprom_get()
|
/linux-4.1.27/drivers/net/wireless/b43/ |
H A D | phy_lp.c | 243 ssb_pmu_set_ldo_voltage(&bus->chipco, LDO_PAREF, 0x28); lpphy_baseband_rev0_1_init() 244 ssb_pmu_set_ldo_paref(&bus->chipco, true); lpphy_baseband_rev0_1_init() 251 ssb_pmu_set_ldo_paref(&bus->chipco, false); lpphy_baseband_rev0_1_init() 556 crystalfreq = bus->chipco.pmu.crystalfreq * 1000; lpphy_2062_init() 558 B43_WARN_ON(!(bus->chipco.capabilities & SSB_CHIPCO_CAP_PMU)); lpphy_2062_init() 1287 u32 crystal_freq = bus->chipco.pmu.crystalfreq * 1000; lpphy_rev2plus_rc_calib() 2415 u32 crystal_freq = bus->chipco.pmu.crystalfreq * 1000; lpphy_b2062_tune() 2506 u32 crystal_freq = bus->chipco.pmu.crystalfreq * 1000; lpphy_b2063_tune()
|
H A D | main.c | 1226 ssb_cc = &dev->dev->sdev->bus->chipco; b43_wireless_core_phy_pll_reset() 2870 return (bus->chipco.dev ? bus->chipco.dev : bus->pcicore.dev); b43_ssb_gpio_dev() 2872 return bus->chipco.dev; b43_ssb_gpio_dev() 3349 dev->dev->sdev->bus->chipco.fast_pwrup_delay); b43_chip_init()
|
H A D | phy_n.c | 6017 ssb_chipco_gpio_control(&dev->dev->sdev->bus->chipco, b43_nphy_superswitch_init() 6064 chipco_set32(&dev->dev->sdev->bus->chipco, b43_phy_initn() 6277 ssb_pmu_spuravoid_pllupdate(&dev->dev->sdev->bus->chipco, b43_nphy_pmu_spur_avoid()
|
/linux-4.1.27/include/linux/ssb/ |
H A D | ssb.h | 463 struct ssb_chipcommon chipco; member in struct:ssb_bus
|
/linux-4.1.27/drivers/net/wireless/b43legacy/ |
H A D | main.c | 1943 gpiodev = bus->chipco.dev ? : pcidev; b43legacy_gpio_init() 1962 gpiodev = bus->chipco.dev ? : pcidev; b43legacy_gpio_cleanup() 2274 dev->dev->bus->chipco.fast_pwrup_delay); b43legacy_chip_init()
|