| /linux/sound/hda/core/ |
| H A D | controller.c | 15 static void azx_clear_corbrp(struct hdac_bus *bus) in azx_clear_corbrp() argument 20 if (snd_hdac_chip_readw(bus, CORBRP) & AZX_CORBRP_RST) in azx_clear_corbrp() 25 dev_err(bus->dev, "CORB reset timeout#1, CORBRP = %d\n", in azx_clear_corbrp() 26 snd_hdac_chip_readw(bus, CORBRP)); in azx_clear_corbrp() 28 snd_hdac_chip_writew(bus, CORBRP, 0); in azx_clear_corbrp() 30 if (snd_hdac_chip_readw(bus, CORBRP) == 0) in azx_clear_corbrp() 35 dev_err(bus->dev, "CORB reset timeout#2, CORBRP = %d\n", in azx_clear_corbrp() 36 snd_hdac_chip_readw(bus, CORBRP)); in azx_clear_corbrp() 41 * @bus: HD-audio core bus 43 snd_hdac_bus_init_cmd_io(struct hdac_bus * bus) snd_hdac_bus_init_cmd_io() argument 93 hdac_wait_for_cmd_dmas(struct hdac_bus * bus) hdac_wait_for_cmd_dmas() argument 112 snd_hdac_bus_stop_cmd_io(struct hdac_bus * bus) snd_hdac_bus_stop_cmd_io() argument 138 snd_hdac_bus_wait_for_pio_response(struct hdac_bus * bus,unsigned int addr) snd_hdac_bus_wait_for_pio_response() argument 168 snd_hdac_bus_send_cmd_pio(struct hdac_bus * bus,unsigned int val) snd_hdac_bus_send_cmd_pio() argument 203 snd_hdac_bus_get_response_pio(struct hdac_bus * bus,unsigned int addr,unsigned int * res) snd_hdac_bus_get_response_pio() argument 219 snd_hdac_bus_send_cmd_corb(struct hdac_bus * bus,unsigned int val) snd_hdac_bus_send_cmd_corb() argument 259 snd_hdac_bus_update_rirb(struct hdac_bus * bus) snd_hdac_bus_update_rirb() argument 313 snd_hdac_bus_get_response_rirb(struct hdac_bus * bus,unsigned int addr,unsigned int * res) snd_hdac_bus_get_response_rirb() argument 372 snd_hdac_bus_send_cmd(struct hdac_bus * bus,unsigned int val) snd_hdac_bus_send_cmd() argument 389 snd_hdac_bus_get_response(struct hdac_bus * bus,unsigned int addr,unsigned int * res) snd_hdac_bus_get_response() argument 406 snd_hdac_bus_parse_capabilities(struct hdac_bus * bus) snd_hdac_bus_parse_capabilities() argument 490 snd_hdac_bus_enter_link_reset(struct hdac_bus * bus) snd_hdac_bus_enter_link_reset() argument 510 snd_hdac_bus_exit_link_reset(struct hdac_bus * bus) snd_hdac_bus_exit_link_reset() argument 523 snd_hdac_bus_reset_link(struct hdac_bus * bus,bool full_reset) snd_hdac_bus_reset_link() argument 564 azx_int_enable(struct hdac_bus * bus) azx_int_enable() argument 573 azx_int_disable(struct hdac_bus * bus) azx_int_disable() argument 586 azx_int_clear(struct hdac_bus * bus) azx_int_clear() argument 609 snd_hdac_bus_init_chip(struct hdac_bus * bus,bool full_reset) snd_hdac_bus_init_chip() argument 642 snd_hdac_bus_stop_chip(struct hdac_bus * bus) snd_hdac_bus_stop_chip() argument 672 snd_hdac_bus_handle_stream_irq(struct hdac_bus * bus,unsigned int status,void (* ack)(struct hdac_bus *,struct hdac_stream *)) snd_hdac_bus_handle_stream_irq() argument 703 snd_hdac_bus_alloc_stream_pages(struct hdac_bus * bus) snd_hdac_bus_alloc_stream_pages() argument 738 snd_hdac_bus_free_stream_pages(struct hdac_bus * bus) snd_hdac_bus_free_stream_pages() argument [all...] |
| H A D | bus.c | 31 int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, in snd_hdac_bus_init() argument 34 memset(bus, 0, sizeof(*bus)); in snd_hdac_bus_init() 35 bus->dev = dev; in snd_hdac_bus_init() 37 bus->ops = ops; in snd_hdac_bus_init() 39 bus->ops = &default_ops; in snd_hdac_bus_init() 40 bus->dma_type = SNDRV_DMA_TYPE_DEV; in snd_hdac_bus_init() 41 INIT_LIST_HEAD(&bus->stream_list); in snd_hdac_bus_init() 42 INIT_LIST_HEAD(&bus->codec_list); in snd_hdac_bus_init() 43 INIT_WORK(&bus->unsol_work, snd_hdac_bus_process_unsol_events); in snd_hdac_bus_init() 44 spin_lock_init(&bus->reg_lock); in snd_hdac_bus_init() [all …]
|
| H A D | stream.c | 52 * @bus: HD-audio core bus 55 int snd_hdac_get_stream_stripe_ctl(struct hdac_bus *bus, in snd_hdac_get_stream_stripe_ctl() argument 65 max_sdo_lines = snd_hdac_chip_readl(bus, GCAP) & AZX_GCAP_NSDO; in snd_hdac_get_stream_stripe_ctl() 75 if (value >= bus->sdo_limit) in snd_hdac_get_stream_stripe_ctl() 86 * @bus: HD-audio core bus 94 void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev, in snd_hdac_stream_init() argument 97 azx_dev->bus = bus; in snd_hdac_stream_init() 132 struct hdac_bus *bus = azx_dev->bus; snd_hdac_stream_start() local 197 snd_hdac_stop_streams(struct hdac_bus * bus) snd_hdac_stop_streams() argument 210 snd_hdac_stop_streams_and_chip(struct hdac_bus * bus) snd_hdac_stop_streams_and_chip() argument 259 struct hdac_bus *bus = azx_dev->bus; snd_hdac_stream_setup() local 361 snd_hdac_stream_assign(struct hdac_bus * bus,struct snd_pcm_substream * substream) snd_hdac_stream_assign() argument 419 struct hdac_bus *bus = azx_dev->bus; snd_hdac_stream_release() local 434 snd_hdac_get_stream(struct hdac_bus * bus,int dir,int stream_tag) snd_hdac_get_stream() argument 451 setup_bdle(struct hdac_bus * bus,struct snd_dma_buffer * dmab,struct hdac_stream * azx_dev,__le32 ** bdlp,int ofs,int size,int with_ioc) setup_bdle() argument 504 struct hdac_bus *bus = azx_dev->bus; snd_hdac_stream_setup_bdle() local 684 struct hdac_bus *bus = azx_dev->bus; snd_hdac_stream_timecounter_init() local 719 struct hdac_bus *bus = azx_dev->bus; snd_hdac_stream_sync_trigger() local 745 struct hdac_bus *bus = azx_dev->bus; snd_hdac_stream_sync() local 787 snd_hdac_stream_spbcap_enable(struct hdac_bus * bus,bool enable,int index) snd_hdac_stream_spbcap_enable() argument 812 snd_hdac_stream_set_spib(struct hdac_bus * bus,struct hdac_stream * azx_dev,u32 value) snd_hdac_stream_set_spib() argument 832 snd_hdac_stream_drsm_enable(struct hdac_bus * bus,bool enable,int index) snd_hdac_stream_drsm_enable() argument 859 struct hdac_bus *bus = azx_dev->bus; snd_hdac_stream_wait_drsm() local 879 snd_hdac_stream_set_dpibr(struct hdac_bus * bus,struct hdac_stream * azx_dev,u32 value) snd_hdac_stream_set_dpibr() argument 920 struct hdac_bus *bus = azx_dev->bus; snd_hdac_dsp_prepare() local 983 struct hdac_bus *bus = azx_dev->bus; snd_hdac_dsp_cleanup() local [all...] |
| /linux/sound/i2c/ |
| H A D | i2c.c | 25 static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, 34 static int snd_i2c_bus_free(struct snd_i2c_bus *bus) in snd_i2c_bus_free() argument 39 if (snd_BUG_ON(!bus)) in snd_i2c_bus_free() 41 while (!list_empty(&bus->devices)) { in snd_i2c_bus_free() 42 device = snd_i2c_device(bus->devices.next); in snd_i2c_bus_free() 45 if (bus->master) in snd_i2c_bus_free() 46 list_del(&bus->buses); in snd_i2c_bus_free() 48 while (!list_empty(&bus->buses)) { in snd_i2c_bus_free() 49 slave = snd_i2c_slave_bus(bus->buses.next); in snd_i2c_bus_free() 50 snd_device_free(bus->card, slave); in snd_i2c_bus_free() [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-aspeed.c | 171 static int aspeed_i2c_reset(struct aspeed_i2c_bus *bus); 174 static void aspeed_i2c_do_stop(struct aspeed_i2c_bus *bus) in aspeed_i2c_do_stop() argument 176 bus->master_state = ASPEED_I2C_MASTER_STOP; in aspeed_i2c_do_stop() 177 writel(ASPEED_I2CD_M_STOP_CMD, bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_do_stop() 180 static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) in aspeed_i2c_recover_bus() argument 186 spin_lock_irqsave(&bus->lock, flags); in aspeed_i2c_recover_bus() 187 command = readl(bus->base + ASPEED_I2C_CMD_REG); in aspeed_i2c_recover_bus() 193 dev_dbg(bus->dev, "SCL hung (state %x), attempting recovery\n", in aspeed_i2c_recover_bus() 196 reinit_completion(&bus->cmd_complete); in aspeed_i2c_recover_bus() 197 aspeed_i2c_do_stop(bus); in aspeed_i2c_recover_bus() [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
| H A D | bit.c | 32 nvkm_i2c_drive_scl(struct nvkm_i2c_bus *bus, int state) in nvkm_i2c_drive_scl() argument 34 bus->func->drive_scl(bus, state); in nvkm_i2c_drive_scl() 38 nvkm_i2c_drive_sda(struct nvkm_i2c_bus *bus, int state) in nvkm_i2c_drive_sda() argument 40 bus->func->drive_sda(bus, state); in nvkm_i2c_drive_sda() 44 nvkm_i2c_sense_scl(struct nvkm_i2c_bus *bus) in nvkm_i2c_sense_scl() argument 46 return bus->func->sense_scl(bus); in nvkm_i2c_sense_scl() 50 nvkm_i2c_sense_sda(struct nvkm_i2c_bus *bus) in nvkm_i2c_sense_sda() argument 52 return bus->func->sense_sda(bus); in nvkm_i2c_sense_sda() 56 nvkm_i2c_delay(struct nvkm_i2c_bus *bus, u32 nsec) in nvkm_i2c_delay() argument 62 nvkm_i2c_raise_scl(struct nvkm_i2c_bus *bus) in nvkm_i2c_raise_scl() argument [all …]
|
| H A D | bus.c | 35 struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); in nvkm_i2c_bus_pre_xfer() local 36 return nvkm_i2c_bus_acquire(bus); in nvkm_i2c_bus_pre_xfer() 42 struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); in nvkm_i2c_bus_post_xfer() local 43 return nvkm_i2c_bus_release(bus); in nvkm_i2c_bus_post_xfer() 49 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_setscl() local 50 bus->func->drive_scl(bus, state); in nvkm_i2c_bus_setscl() 56 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_setsda() local 57 bus->func->drive_sda(bus, state); in nvkm_i2c_bus_setsda() 63 struct nvkm_i2c_bus *bus = data; in nvkm_i2c_bus_getscl() local 64 return bus->func->sense_scl(bus); in nvkm_i2c_bus_getscl() [all …]
|
| H A D | busnv50.c | 38 struct nv50_i2c_bus *bus = nv50_i2c_bus(base); in nv50_i2c_bus_drive_scl() local 39 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_scl() 40 if (state) bus->data |= 0x01; in nv50_i2c_bus_drive_scl() 41 else bus->data &= 0xfe; in nv50_i2c_bus_drive_scl() 42 nvkm_wr32(device, bus->addr, bus->data); in nv50_i2c_bus_drive_scl() 48 struct nv50_i2c_bus *bus = nv50_i2c_bus(base); in nv50_i2c_bus_drive_sda() local 49 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; in nv50_i2c_bus_drive_sda() 50 if (state) bus->data |= 0x02; in nv50_i2c_bus_drive_sda() 51 else bus->data &= 0xfd; in nv50_i2c_bus_drive_sda() 52 nvkm_wr32(device, bus->addr, bus->data); in nv50_i2c_bus_drive_sda() [all …]
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | sdio.c | 677 static bool data_ok(struct brcmf_sdio *bus) in data_ok() argument 682 if (bus->ctrl_frame_stat) in data_ok() 685 return (bus->tx_max - bus->tx_seq - tx_rsv) != 0 && in data_ok() 686 ((bus->tx_max - bus->tx_seq - tx_rsv) & 0x80) == 0; in data_ok() 691 static bool txctl_ok(struct brcmf_sdio *bus) in txctl_ok() argument 693 return (bus->tx_max - bus->tx_seq) != 0 && in txctl_ok() 694 ((bus->tx_max - bus->tx_seq) & 0x80) == 0; in txctl_ok() 698 brcmf_sdio_kso_control(struct brcmf_sdio *bus, bool on) in brcmf_sdio_kso_control() argument 707 sdio_retune_crc_disable(bus->sdiodev->func1); in brcmf_sdio_kso_control() 711 sdio_retune_hold_now(bus->sdiodev->func1); in brcmf_sdio_kso_control() [all …]
|
| H A D | bus.h | 198 static inline int brcmf_bus_preinit(struct brcmf_bus *bus) in brcmf_bus_preinit() argument 200 if (!bus->ops->preinit) in brcmf_bus_preinit() 202 return bus->ops->preinit(bus->dev); in brcmf_bus_preinit() 205 static inline void brcmf_bus_stop(struct brcmf_bus *bus) in brcmf_bus_stop() argument 207 bus->ops->stop(bus->dev); in brcmf_bus_stop() 210 static inline int brcmf_bus_txdata(struct brcmf_bus *bus, struct sk_buff *skb) in brcmf_bus_txdata() argument 212 return bus->ops->txdata(bus->dev, skb); in brcmf_bus_txdata() 216 int brcmf_bus_txctl(struct brcmf_bus *bus, unsigned char *msg, uint len) in brcmf_bus_txctl() argument 218 return bus->ops->txctl(bus->dev, msg, len); in brcmf_bus_txctl() 222 int brcmf_bus_rxctl(struct brcmf_bus *bus, unsigned char *msg, uint len) in brcmf_bus_rxctl() argument [all …]
|
| /linux/drivers/ssb/ |
| H A D | scan.c | 160 static u32 scan_read32(struct ssb_bus *bus, u8 current_coreidx, in scan_read32() argument 165 switch (bus->bustype) { in scan_read32() 173 ssb_pcmcia_switch_segment(bus, 1); in scan_read32() 176 ssb_pcmcia_switch_segment(bus, 0); in scan_read32() 177 lo = readw(bus->mmio + offset); in scan_read32() 178 hi = readw(bus->mmio + offset + 2); in scan_read32() 182 return ssb_sdio_scan_read32(bus, offset); in scan_read32() 184 return readl(bus->mmio + offset); in scan_read32() 187 static int scan_switchcore(struct ssb_bus *bus, u8 coreidx) in scan_switchcore() argument 189 switch (bus->bustype) { in scan_switchcore() [all …]
|
| H A D | sdio.c | 104 static inline struct device *ssb_sdio_dev(struct ssb_bus *bus) in ssb_sdio_dev() argument 106 return &bus->host_sdio->dev; in ssb_sdio_dev() 110 static int ssb_sdio_writeb(struct ssb_bus *bus, unsigned int addr, u8 val) in ssb_sdio_writeb() argument 114 sdio_writeb(bus->host_sdio, val, addr, &error); in ssb_sdio_writeb() 116 dev_dbg(ssb_sdio_dev(bus), "%08X <- %02x, error %d\n", in ssb_sdio_writeb() 124 static u8 ssb_sdio_readb(struct ssb_bus *bus, unsigned int addr) 129 val = sdio_readb(bus->host_sdio, addr, &error); 131 dev_dbg(ssb_sdio_dev(bus), "%08X -> %02x, error %d\n", 140 static int ssb_sdio_set_sbaddr_window(struct ssb_bus *bus, u32 address) in ssb_sdio_set_sbaddr_window() argument 144 error = ssb_sdio_writeb(bus, SBSDIO_FUNC1_SBADDRLOW, in ssb_sdio_set_sbaddr_window() [all …]
|
| H A D | embedded.c | 23 int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) in ssb_watchdog_timer_set() argument 25 if (ssb_chipco_available(&bus->chipco)) { in ssb_watchdog_timer_set() 26 ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); in ssb_watchdog_timer_set() 29 if (ssb_extif_available(&bus->extif)) { in ssb_watchdog_timer_set() 30 ssb_extif_watchdog_timer_set(&bus->extif, ticks); in ssb_watchdog_timer_set() 37 int ssb_watchdog_register(struct ssb_bus *bus) in ssb_watchdog_register() argument 42 if (ssb_chipco_available(&bus->chipco)) { in ssb_watchdog_register() 43 wdt.driver_data = &bus->chipco; in ssb_watchdog_register() 46 wdt.max_timer_ms = bus->chipco.max_timer_ms; in ssb_watchdog_register() 47 } else if (ssb_extif_available(&bus->extif)) { in ssb_watchdog_register() [all …]
|
| H A D | ssb_private.h | 15 extern int ssb_pci_switch_core(struct ssb_bus *bus, 17 extern int ssb_pci_switch_coreidx(struct ssb_bus *bus, 19 extern int ssb_pci_xtal(struct ssb_bus *bus, u32 what, 21 extern int ssb_pci_get_invariants(struct ssb_bus *bus, 23 extern void ssb_pci_exit(struct ssb_bus *bus); 24 extern int ssb_pci_init(struct ssb_bus *bus); 29 static inline int ssb_pci_switch_core(struct ssb_bus *bus, in ssb_pci_switch_core() argument 34 static inline int ssb_pci_switch_coreidx(struct ssb_bus *bus, in ssb_pci_switch_coreidx() argument 39 static inline int ssb_pci_xtal(struct ssb_bus *bus, u32 what, in ssb_pci_xtal() argument 44 static inline void ssb_pci_exit(struct ssb_bus *bus) in ssb_pci_exit() argument [all …]
|
| H A D | pcmcia.c | 71 static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value) in ssb_pcmcia_cfg_write() argument 75 res = pcmcia_write_config_byte(bus->host_pcmcia, offset, value); in ssb_pcmcia_cfg_write() 83 static int ssb_pcmcia_cfg_read(struct ssb_bus *bus, u8 offset, u8 *value) in ssb_pcmcia_cfg_read() argument 87 res = pcmcia_read_config_byte(bus->host_pcmcia, offset, value); in ssb_pcmcia_cfg_read() 94 int ssb_pcmcia_switch_coreidx(struct ssb_bus *bus, in ssb_pcmcia_switch_coreidx() argument 106 err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS0, in ssb_pcmcia_switch_coreidx() 110 err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS1, in ssb_pcmcia_switch_coreidx() 114 err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS2, in ssb_pcmcia_switch_coreidx() 121 err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_ADDRESS0, &val); in ssb_pcmcia_switch_coreidx() 125 err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_ADDRESS1, &val); in ssb_pcmcia_switch_coreidx() [all …]
|
| H A D | main.c | 60 struct ssb_bus *bus; in ssb_pci_dev_to_bus() local 63 list_for_each_entry(bus, &buses, list) { in ssb_pci_dev_to_bus() 64 if (bus->bustype == SSB_BUSTYPE_PCI && in ssb_pci_dev_to_bus() 65 bus->host_pci == pdev) in ssb_pci_dev_to_bus() 68 bus = NULL; in ssb_pci_dev_to_bus() 72 return bus; in ssb_pci_dev_to_bus() 79 struct ssb_bus *bus; in ssb_pcmcia_dev_to_bus() local 82 list_for_each_entry(bus, &buses, list) { in ssb_pcmcia_dev_to_bus() 83 if (bus->bustype == SSB_BUSTYPE_PCMCIA && in ssb_pcmcia_dev_to_bus() 84 bus->host_pcmcia == pdev) in ssb_pcmcia_dev_to_bus() [all …]
|
| /linux/drivers/net/phy/ |
| H A D | sfp-bus.c | 36 const struct sfp_module_caps *sfp_get_module_caps(struct sfp_bus *bus) in sfp_get_module_caps() argument 38 return &bus->caps; in sfp_get_module_caps() 42 static void sfp_module_parse_port(struct sfp_bus *bus, in sfp_module_parse_port() argument 81 dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", in sfp_module_parse_port() 89 phylink_set(bus->caps.link_modes, FIBRE); in sfp_module_parse_port() 93 phylink_set(bus->caps.link_modes, TP); in sfp_module_parse_port() 97 bus->caps.port = port; in sfp_module_parse_port() 100 static void sfp_module_parse_may_have_phy(struct sfp_bus *bus, in sfp_module_parse_may_have_phy() argument 104 bus->caps.may_have_phy = true; in sfp_module_parse_may_have_phy() 114 bus->caps.may_have_phy = true; in sfp_module_parse_may_have_phy() [all …]
|
| /linux/arch/powerpc/platforms/pasemi/ |
| H A D | gpio_mdio.c | 34 #define MDC_PIN(bus) (((struct gpio_priv *)bus->priv)->mdc_pin) argument 35 #define MDIO_PIN(bus) (((struct gpio_priv *)bus->priv)->mdio_pin) argument 37 static inline void mdio_lo(struct mii_bus *bus) in mdio_lo() argument 39 out_le32(gpio_regs+0x10, 1 << MDIO_PIN(bus)); in mdio_lo() 42 static inline void mdio_hi(struct mii_bus *bus) in mdio_hi() argument 44 out_le32(gpio_regs, 1 << MDIO_PIN(bus)); in mdio_hi() 47 static inline void mdc_lo(struct mii_bus *bus) in mdc_lo() argument 49 out_le32(gpio_regs+0x10, 1 << MDC_PIN(bus)); in mdc_lo() 52 static inline void mdc_hi(struct mii_bus *bus) in mdc_hi() argument 54 out_le32(gpio_regs, 1 << MDC_PIN(bus)); in mdc_hi() [all …]
|
| /linux/drivers/bcma/ |
| H A D | driver_mips.c | 36 return dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM47162 && in bcma_core_mips_bcm47162a0_quirk() 37 dev->bus->chipinfo.rev == 0 && dev->id.id == BCMA_CORE_MIPS_74K; in bcma_core_mips_bcm47162a0_quirk() 43 return (dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM5357 || in bcma_core_mips_bcm5357b0_quirk() 44 dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM4749) && in bcma_core_mips_bcm5357b0_quirk() 45 dev->bus->chipinfo.pkg == 11 && in bcma_core_mips_bcm5357b0_quirk() 72 struct bcma_device *mdev = dev->bus->drv_mips.core; in bcma_core_mips_irq() 91 struct bcma_bus *bus = dev->bus; in bcma_core_mips_set_irq() local 92 struct bcma_device *mdev = bus->drv_mips.core; in bcma_core_mips_set_irq() 122 list_for_each_entry(core, &bus->cores, list) { in bcma_core_mips_set_irq() 134 bcma_debug(bus, "set_irq: core 0x%04x, irq %d => %d\n", in bcma_core_mips_set_irq() [all …]
|
| H A D | main.c | 80 static u16 bcma_cc_core_id(struct bcma_bus *bus) in bcma_cc_core_id() argument 82 if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) in bcma_cc_core_id() 87 struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, in bcma_find_core_unit() argument 92 list_for_each_entry(core, &bus->cores, list) { in bcma_find_core_unit() 114 bcma_warn(core->bus, "Timeout waiting for register 0x%04X!\n", reg); in bcma_wait_value() 192 bcma_debug(core->bus, "bcma_of_get_irq() failed with rc=%d\n", in bcma_of_get_irq() 216 struct bcma_bus *bus = core->bus; in bcma_core_irq() local 219 switch (bus->hosttype) { in bcma_core_irq() 221 return bus->host_pci->irq; in bcma_core_irq() 223 if (bus->drv_mips.core && num == 0) { in bcma_core_irq() [all …]
|
| H A D | host_pci.c | 16 int win2 = core->bus->host_is_pcie2 ? in bcma_host_pci_switch_core() 19 pci_write_config_dword(core->bus->host_pci, BCMA_PCI_BAR0_WIN, in bcma_host_pci_switch_core() 21 pci_write_config_dword(core->bus->host_pci, win2, core->wrap); in bcma_host_pci_switch_core() 22 core->bus->mapped_core = core; in bcma_host_pci_switch_core() 23 bcma_debug(core->bus, "Switched to core: 0x%X\n", core->id.id); in bcma_host_pci_switch_core() 37 if (core->bus->mapped_core != core) in bcma_host_pci_provide_access_to_core() 45 return ioread8(core->bus->mmio + offset); in bcma_host_pci_read8() 51 return ioread16(core->bus->mmio + offset); in bcma_host_pci_read16() 57 return ioread32(core->bus->mmio + offset); in bcma_host_pci_read32() 64 iowrite8(value, core->bus->mmio + offset); in bcma_host_pci_write8() [all …]
|
| /linux/drivers/net/wireless/silabs/wfx/ |
| H A D | bus_sdio.c | 55 struct wfx_sdio_priv *bus = priv; in wfx_sdio_copy_from_io() local 65 sdio_addr |= (bus->buf_id_rx + 1) << 7; in wfx_sdio_copy_from_io() 66 ret = sdio_memcpy_fromio(bus->func, dst, sdio_addr, count); in wfx_sdio_copy_from_io() 68 bus->buf_id_rx = (bus->buf_id_rx + 1) % 4; in wfx_sdio_copy_from_io() 75 struct wfx_sdio_priv *bus = priv; in wfx_sdio_copy_to_io() local 85 sdio_addr |= bus->buf_id_tx << 7; in wfx_sdio_copy_to_io() 87 ret = sdio_memcpy_toio(bus->func, sdio_addr, (void *)src, count); in wfx_sdio_copy_to_io() 89 bus->buf_id_tx = (bus->buf_id_tx + 1) % 32; in wfx_sdio_copy_to_io() 96 struct wfx_sdio_priv *bus = priv; in wfx_sdio_lock() local 98 sdio_claim_host(bus->func); in wfx_sdio_lock() [all …]
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | bus.h | 44 int (*data_tx)(struct qtnf_bus *bus, struct sk_buff *skb, 47 void (*data_tx_use_meta_set)(struct qtnf_bus *bus, bool use_meta); 75 static inline bool qtnf_fw_is_up(struct qtnf_bus *bus) in qtnf_fw_is_up() argument 77 enum qtnf_fw_state state = bus->fw_state; in qtnf_fw_is_up() 83 static inline bool qtnf_fw_is_attached(struct qtnf_bus *bus) in qtnf_fw_is_attached() argument 85 enum qtnf_fw_state state = bus->fw_state; in qtnf_fw_is_attached() 92 static inline void *get_bus_priv(struct qtnf_bus *bus) in get_bus_priv() argument 94 if (WARN(!bus, "qtnfmac: invalid bus pointer")) in get_bus_priv() 97 return &bus->bus_priv; in get_bus_priv() 102 static inline int qtnf_bus_preinit(struct qtnf_bus *bus) in qtnf_bus_preinit() argument [all …]
|
| /linux/sound/hda/core/ext/ |
| H A D | controller.c | 25 * @bus: the pointer to HDAC bus object 28 void snd_hdac_ext_bus_ppcap_enable(struct hdac_bus *bus, bool enable) in snd_hdac_ext_bus_ppcap_enable() argument 31 if (!bus->ppcap) { in snd_hdac_ext_bus_ppcap_enable() 32 dev_err(bus->dev, "Address of PP capability is NULL"); in snd_hdac_ext_bus_ppcap_enable() 37 snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, in snd_hdac_ext_bus_ppcap_enable() 40 snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, in snd_hdac_ext_bus_ppcap_enable() 47 * @bus: the pointer to HDAC bus object 50 void snd_hdac_ext_bus_ppcap_int_enable(struct hdac_bus *bus, boo argument 80 snd_hdac_ext_bus_get_ml_capabilities(struct hdac_bus * bus) snd_hdac_ext_bus_get_ml_capabilities() argument 124 snd_hdac_ext_link_free_all(struct hdac_bus * bus) snd_hdac_ext_link_free_all() argument 136 snd_hdac_ext_bus_get_hlink_by_id(struct hdac_bus * bus,u32 id) snd_hdac_ext_bus_get_hlink_by_id() argument 154 snd_hdac_ext_bus_get_hlink_by_addr(struct hdac_bus * bus,int addr) snd_hdac_ext_bus_get_hlink_by_addr() argument 170 snd_hdac_ext_bus_get_hlink_by_name(struct hdac_bus * bus,const char * codec_name) snd_hdac_ext_bus_get_hlink_by_name() argument 239 snd_hdac_ext_bus_link_power_up_all(struct hdac_bus * bus) snd_hdac_ext_bus_link_power_up_all() argument 258 snd_hdac_ext_bus_link_power_down_all(struct hdac_bus * bus) snd_hdac_ext_bus_link_power_down_all() argument 297 snd_hdac_ext_bus_link_get(struct hdac_bus * bus,struct hdac_ext_link * hlink) snd_hdac_ext_bus_link_get() argument 338 snd_hdac_ext_bus_link_put(struct hdac_bus * bus,struct hdac_ext_link * hlink) snd_hdac_ext_bus_link_put() argument 397 struct hdac_bus *bus = codec->bus; snd_hdac_ext_bus_link_power() local [all...] |
| /linux/drivers/spmi/ |
| H A D | spmi-pmic-arb.c | 242 struct spmi_pmic_arb_bus *bus); 243 int (*init_apid)(struct spmi_pmic_arb_bus *bus, int index); 244 int (*ppid_to_apid)(struct spmi_pmic_arb_bus *bus, u16 ppid); 246 int (*offset)(struct spmi_pmic_arb_bus *bus, u8 sid, u16 addr, 251 void __iomem *(*owner_acc_status)(struct spmi_pmic_arb_bus *bus, u8 m, 253 void __iomem *(*acc_enable)(struct spmi_pmic_arb_bus *bus, u16 n); 254 void __iomem *(*irq_status)(struct spmi_pmic_arb_bus *bus, u16 n); 255 void __iomem *(*irq_clear)(struct spmi_pmic_arb_bus *bus, u16 n); 257 void __iomem *(*apid_owner)(struct spmi_pmic_arb_bus *bus, u16 n); 387 struct spmi_pmic_arb_bus *bus = spmi_controller_get_drvdata(ctrl); in pmic_arb_wait_for_done() local [all …]
|