Home
last modified time | relevance | path

Searched refs:bus (Results 1 – 25 of 3104) sorted by relevance

12345678910>>...125

/linux/drivers/i2c/busses/
A Di2c-npcm7xx.c686 bus->cmd_err = bus->msgs_num; in npcm_i2c_callback()
750 if (bus->wr_ind < bus->wr_size) in npcm_i2c_write_to_fifo_master()
751 npcm_i2c_wr_byte(bus, bus->wr_buf[bus->wr_ind++]); in npcm_i2c_write_to_fifo_master()
813 if (bus->rd_ind < bus->rd_size) in npcm_i2c_read_fifo()
883 npcm_i2c_wr_byte(bus, bus->slv_wr_buf[bus->slv_wr_ind]); in npcm_i2c_write_fifo_slave()
1333 if (bus->wr_ind == bus->wr_size) { in npcm_i2c_irq_master_handler_write()
1376 npcm_i2c_wr_byte(bus, bus->wr_buf[bus->wr_ind++]); in npcm_i2c_irq_master_handler_write()
1439 npcm_i2c_callback(bus, bus->stop_ind, npcm_i2c_get_index(bus)); in npcm_i2c_irq_handle_nmatch()
1485 npcm_i2c_callback(bus, bus->stop_ind, bus->wr_ind); in npcm_i2c_irq_handle_nack()
1503 npcm_i2c_callback(bus, bus->stop_ind, npcm_i2c_get_index(bus)); in npcm_i2c_irq_handle_ber()
[all …]
A Di2c-aspeed.c196 &bus->cmd_complete, bus->adap.timeout); in aspeed_i2c_recover_bus()
219 &bus->cmd_complete, bus->adap.timeout); in aspeed_i2c_recover_bus()
343 struct i2c_msg *msg = &bus->msgs[bus->msgs_index]; in aspeed_i2c_do_start()
382 if (bus->msgs_index + 1 < bus->msgs_count) { in aspeed_i2c_next_msg_or_stop()
448 msg = &bus->msgs[bus->msgs_index]; in aspeed_i2c_master_irq()
589 bus->master_xfer_result = bus->cmd_err; in aspeed_i2c_master_irq()
591 bus->master_xfer_result = bus->msgs_index + 1; in aspeed_i2c_master_irq()
894 clk_reg_val |= bus->get_clk_reg_val(bus->dev, divisor); in aspeed_i2c_init_clk()
927 __aspeed_i2c_reg_slave(bus, bus->slave->addr); in aspeed_i2c_init()
981 if (!bus) in aspeed_i2c_probe_bus()
[all …]
/linux/sound/hda/
A Dhdac_controller.c49 bus->corb.addr = bus->rb.addr; in snd_hdac_bus_init_cmd_io()
50 bus->corb.buf = (__le32 *)bus->rb.area; in snd_hdac_bus_init_cmd_io()
68 bus->rirb.addr = bus->rb.addr + 2048; in snd_hdac_bus_init_cmd_io()
69 bus->rirb.buf = (__le32 *)(bus->rb.area + 2048); in snd_hdac_bus_init_cmd_io()
70 bus->rirb.wp = bus->rirb.rp = 0; in snd_hdac_bus_init_cmd_io()
328 bus->mlcap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
333 bus->gtscap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
339 bus->ppcap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
345 bus->spbcap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
351 bus->drsmcap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
[all …]
A Dhdac_bus.c34 memset(bus, 0, sizeof(*bus)); in snd_hdac_bus_init()
35 bus->dev = dev; in snd_hdac_bus_init()
49 bus->irq = -1; in snd_hdac_bus_init()
122 err = bus->ops->command(bus, cmd); in snd_hdac_bus_exec_verb_unlocked()
126 err = bus->ops->get_response(bus, addr, &tmp); in snd_hdac_bus_exec_verb_unlocked()
131 err = bus->ops->get_response(bus, addr, res); in snd_hdac_bus_exec_verb_unlocked()
152 if (!bus) in snd_hdac_bus_queue_event()
177 while (bus->unsol_rp != bus->unsol_wp) { in snd_hdac_bus_process_unsol_events()
229 WARN_ON(bus != codec->bus); in snd_hdac_bus_remove_device()
271 struct hdac_bus *bus = codec->bus; in snd_hdac_codec_link_up() local
[all …]
/linux/sound/i2c/
A Di2c.c54 bus->private_free(bus); in snd_i2c_bus_free()
75 bus = kzalloc(sizeof(*bus), GFP_KERNEL); in snd_i2c_bus_create()
87 strscpy(bus->name, name, sizeof(bus->name)); in snd_i2c_bus_create()
113 device->bus = bus; in snd_i2c_device_create()
148 return bus->ops->probeaddr(bus, addr); in snd_i2c_probeaddr()
160 bus->hw_ops.bit->start(bus); in snd_i2c_bit_hw_start()
166 bus->hw_ops.bit->stop(bus); in snd_i2c_bit_hw_stop()
184 return bus->hw_ops.bit->getclock(bus);
191 return bus->hw_ops.bit->getdata(bus, ack); in snd_i2c_bit_data()
264 struct snd_i2c_bus *bus = device->bus; in snd_i2c_bit_sendbytes() local
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dsdio.c1529 bus->glomd, skb_peek(&bus->glom)); in brcmf_sdio_rxglom()
1780 if (bus->roundup && bus->blocksize && (rdlen > bus->blocksize)) { in brcmf_sdio_read_control()
1845 if (bus->roundup && bus->blocksize && *rdlen > bus->blocksize) { in brcmf_sdio_pad()
2419 if (bus->roundup && bus->blocksize && (len > bus->blocksize)) { in brcmf_sdio_tx_ctrlframe()
2469 struct brcmf_sdio *bus = sdiodev->bus; in brcmf_sdio_bus_stop() local
2536 bus->tx_seq = bus->rx_seq = 0; in brcmf_sdio_bus_stop()
2749 struct brcmf_sdio *bus = sdiodev->bus; in brcmf_sdio_bus_gettxq() local
2802 struct brcmf_sdio *bus = sdiodev->bus; in brcmf_sdio_bus_txdata() local
3673 bus->poll && (++bus->polltick >= bus->pollrate)) { in brcmf_sdio_bus_watchdog()
4205 struct brcmf_sdio *bus = sdiod->bus; in brcmf_sdio_firmware_callback() local
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
A Dbus.c35 struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); in nvkm_i2c_bus_pre_xfer() local
42 struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); in nvkm_i2c_bus_post_xfer() local
50 bus->func->drive_scl(bus, state); in nvkm_i2c_bus_setscl()
57 bus->func->drive_sda(bus, state); in nvkm_i2c_bus_setsda()
64 return bus->func->sense_scl(bus); in nvkm_i2c_bus_getscl()
71 return bus->func->sense_sda(bus); in nvkm_i2c_bus_getsda()
87 ret = bus->func->xfer(bus, msgs, num); in nvkm_i2c_bus_xfer()
112 bus->func->init(bus); in nvkm_i2c_bus_init()
197 if (bus && !WARN_ON(!bus->func)) { in nvkm_i2c_bus_del()
223 bus->id = id; in nvkm_i2c_bus_ctor()
[all …]
A Dbit.c34 bus->func->drive_scl(bus, state); in nvkm_i2c_drive_scl()
40 bus->func->drive_sda(bus, state); in nvkm_i2c_drive_sda()
46 return bus->func->sense_scl(bus); in nvkm_i2c_sense_scl()
52 return bus->func->sense_sda(bus); in nvkm_i2c_sense_sda()
66 nvkm_i2c_drive_scl(bus, 1); in nvkm_i2c_raise_scl()
87 nvkm_i2c_drive_sda(bus, 0); in i2c_start()
89 nvkm_i2c_drive_scl(bus, 0); in i2c_start()
148 bit = i2c_bitr(bus); in nvkm_i2c_get_byte()
167 ret = i2c_bitr(bus); in nvkm_i2c_put_byte()
192 ret = i2c_start(bus); in nvkm_i2c_bit_xfer()
[all …]
/linux/drivers/ssb/
A Ddriver_gpio.c30 if (bus->bustype == SSB_BUSTYPE_SSB) in ssb_gpio_to_irq()
123 struct ssb_bus *bus = dev_id; in ssb_gpio_irq_chipco_handler() local
152 if (!bus->irq_domain) { in ssb_gpio_irq_chipco_domain_init()
159 irq_set_chip_data(irq, bus); in ssb_gpio_irq_chipco_domain_init()
166 "gpio", bus); in ssb_gpio_irq_chipco_domain_init()
321 struct ssb_bus *bus = dev_id; in ssb_gpio_irq_extif_handler() local
350 if (!bus->irq_domain) { in ssb_gpio_irq_extif_domain_init()
357 irq_set_chip_data(irq, bus); in ssb_gpio_irq_extif_domain_init()
364 "gpio", bus); in ssb_gpio_irq_extif_domain_init()
464 return ssb_gpio_extif_init(bus); in ssb_gpio_init()
[all …]
A Dscan.c211 pci_iounmap(bus->host_pci, bus->mmio); in ssb_iounmap()
219 bus->mmio = NULL; in ssb_iounmap()
284 bus->mmio = mmio; in ssb_bus_scan()
312 bus->chip_id = pcidev_to_chipid(bus->host_pci); in ssb_bus_scan()
313 bus->chip_rev = bus->host_pci->revision; in ssb_bus_scan()
322 bus->chip_id, bus->chip_rev, bus->chip_package); in ssb_bus_scan()
324 bus->nr_devices = chipid_to_nrcores(bus->chip_id); in ssb_bus_scan()
325 if (bus->nr_devices > ARRAY_SIZE(bus->devices)) { in ssb_bus_scan()
340 bus->mmio = mmio; in ssb_bus_scan()
356 dev->bus = bus; in ssb_bus_scan()
[all …]
A Dsdio.c156 bus->sdio_sbaddr = address; in ssb_sdio_set_sbaddr_window()
222 bus->mapped_device = dev; in ssb_sdio_switch_core()
231 struct ssb_bus *bus = dev->bus; in ssb_sdio_read8() local
253 struct ssb_bus *bus = dev->bus; in ssb_sdio_read16() local
275 struct ssb_bus *bus = dev->bus; in ssb_sdio_read32() local
301 struct ssb_bus *bus = dev->bus; in ssb_sdio_block_read() local
345 struct ssb_bus *bus = dev->bus; in ssb_sdio_write8() local
364 struct ssb_bus *bus = dev->bus; in ssb_sdio_write16() local
383 struct ssb_bus *bus = dev->bus; in ssb_sdio_write32() local
408 struct ssb_bus *bus = dev->bus; in ssb_sdio_block_write() local
[all …]
A Dembedded.c25 if (ssb_chipco_available(&bus->chipco)) { in ssb_watchdog_timer_set()
29 if (ssb_extif_available(&bus->extif)) { in ssb_watchdog_timer_set()
42 if (ssb_chipco_available(&bus->chipco)) { in ssb_watchdog_register()
43 wdt.driver_data = &bus->chipco; in ssb_watchdog_register()
48 wdt.driver_data = &bus->extif; in ssb_watchdog_register()
57 bus->busnumber, &wdt, in ssb_watchdog_register()
65 bus->watchdog = pdev; in ssb_watchdog_register()
75 if (ssb_chipco_available(&bus->chipco)) in ssb_gpio_in()
93 if (ssb_chipco_available(&bus->chipco)) in ssb_gpio_out()
182 dev = &(bus->devices[i]); in gige_pci_init_callback()
[all …]
A Dpcmcia.c199 struct ssb_bus *bus = dev->bus; in select_core_and_segment() local
225 struct ssb_bus *bus = dev->bus; in ssb_pcmcia_read8() local
241 struct ssb_bus *bus = dev->bus; in ssb_pcmcia_read16() local
257 struct ssb_bus *bus = dev->bus; in ssb_pcmcia_read32() local
277 struct ssb_bus *bus = dev->bus; in ssb_pcmcia_block_read() local
333 struct ssb_bus *bus = dev->bus; in ssb_pcmcia_write8() local
346 struct ssb_bus *bus = dev->bus; in ssb_pcmcia_write16() local
359 struct ssb_bus *bus = dev->bus; in ssb_pcmcia_write32() local
376 struct ssb_bus *bus = dev->bus; in ssb_pcmcia_block_write() local
735 if (!bus) in ssb_sprom_show()
[all …]
A Dssb_private.h15 extern int ssb_pci_switch_core(struct ssb_bus *bus,
17 extern int ssb_pci_switch_coreidx(struct ssb_bus *bus,
23 extern void ssb_pci_exit(struct ssb_bus *bus);
24 extern int ssb_pci_init(struct ssb_bus *bus);
63 extern void ssb_pcmcia_exit(struct ssb_bus *bus);
64 extern int ssb_pcmcia_init(struct ssb_bus *bus);
106 extern void ssb_sdio_exit(struct ssb_bus *bus);
107 extern int ssb_sdio_init(struct ssb_bus *bus);
141 extern int ssb_bus_scan(struct ssb_bus *bus,
168 struct ssb_bus *bus; member
[all …]
/linux/sound/soc/intel/skylake/
A Dskl.c268 dev_err(bus->dev, in skl_acquire_irq()
318 skl_dum_set(bus); in _skl_resume()
444 if (bus->irq >= 0) in skl_free()
445 free_irq(bus->irq, (void *)bus); in skl_free()
450 if (bus->remap_addr) in skl_free()
807 skl_dum_set(bus); in skl_probe_work()
927 if (!bus->ppcap) { in skl_first_init()
1057 if (bus->mlcap) in skl_probe()
1079 skl_free(bus); in skl_probe()
1091 if (!bus) in skl_shutdown()
[all …]
/linux/drivers/net/phy/
A Dsfp-bus.c435 return bus->registered ? bus->upstream_ops : NULL; in sfp_get_upstream_ops()
487 if (bus) in sfp_bus_put()
507 bus->socket_ops->attach(bus->sfp); in sfp_register_bus()
509 bus->socket_ops->start(bus->sfp); in sfp_register_bus()
510 bus->upstream_ops->attach(bus->upstream, bus); in sfp_register_bus()
519 bus->upstream_ops->detach(bus->upstream, bus); in sfp_unregister_bus()
521 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus()
522 bus->socket_ops->detach(bus->sfp); in sfp_unregister_bus()
595 bus->socket_ops->start(bus->sfp); in sfp_upstream_start()
612 bus->socket_ops->stop(bus->sfp); in sfp_upstream_stop()
[all …]
A Dmdio_bus.c151 if (!bus) in mdiobus_alloc_size()
156 bus->priv = (void *)bus + aligned_size; in mdiobus_alloc_size()
241 struct mii_bus *bus = mdiodev->bus; in mdio_bus_device_stat_field_show() local
527 if (NULL == bus || NULL == bus->name || in __mdiobus_register()
528 NULL == bus->read || NULL == bus->write) in __mdiobus_register()
531 if (bus->parent && bus->parent->of_node) in __mdiobus_register()
539 bus->dev.parent = bus->parent; in __mdiobus_register()
542 dev_set_name(&bus->dev, "%s", bus->id); in __mdiobus_register()
577 err = bus->reset(bus); in __mdiobus_register()
758 retval = bus->read(bus, addr, regnum); in __mdiobus_read()
[all …]
/linux/arch/powerpc/platforms/pasemi/
A Dgpio_mdio.c34 #define MDC_PIN(bus) (((struct gpio_priv *)bus->priv)->mdc_pin) argument
79 mdc_hi(bus); in clock_out()
81 mdc_lo(bus); in clock_out()
127 mdc_hi(bus); in gpio_mdio_read()
129 mdc_lo(bus); in gpio_mdio_read()
144 mdc_hi(bus); in gpio_mdio_read()
146 mdc_lo(bus); in gpio_mdio_read()
165 mdc_lo(bus); in gpio_mdio_write()
168 mdc_hi(bus); in gpio_mdio_write()
170 mdc_lo(bus); in gpio_mdio_write()
[all …]
/linux/drivers/devfreq/
A Dexynos-bus.c50 if (!bus->edev[i]) \
71 if (!bus->edev[i]) in exynos_bus_get_event()
109 mutex_lock(&bus->lock); in exynos_bus_target()
112 bus->curr_freq = *freq; in exynos_bus_target()
165 bus->opp_table = NULL; in exynos_bus_exit()
209 if (!bus->edev) { in exynos_bus_parent_parse_of()
240 bus->opp_table = NULL; in exynos_bus_parent_parse_of()
404 bus = devm_kzalloc(&pdev->dev, sizeof(*bus), GFP_KERNEL); in exynos_bus_probe()
405 if (!bus) in exynos_bus_probe()
408 bus->dev = &pdev->dev; in exynos_bus_probe()
[all …]
/linux/drivers/bcma/
A Dmain.c215 struct bcma_bus *bus = core->bus; in bcma_core_irq() local
218 switch (bus->hosttype) { in bcma_core_irq()
226 if (bus->dev) in bcma_core_irq()
244 if (bus->dev) in bcma_prepare_core()
272 bus->nr_cores = 0; in bcma_init_bus()
274 bcma_detect_chip(bus); in bcma_init_bus()
392 core = bcma_find_core(bus, bcma_cc_core_id(bus)); in bcma_bus_register()
405 if (bus->dev) in bcma_bus_register()
406 of_platform_default_populate(bus->dev->of_node, NULL, bus->dev); in bcma_bus_register()
422 core = bcma_find_core(bus, bcma_cc_core_id(bus)); in bcma_bus_register()
[all …]
A Ddriver_mips.c97 struct bcma_bus *bus = dev->bus; in bcma_core_mips_set_irq() local
151 bcma_warn(bus, in bcma_core_mips_set_irq_name()
185 struct bcma_bus *bus = mcore->core->bus; in bcma_cpu_clock() local
236 struct bcma_bus *bus = mcore->core->bus; in bcma_core_mips_nvram_init() local
262 struct bcma_bus *bus = mcore->core->bus; in bcma_core_mips_early_init() local
294 bcma_debug(bus, in bcma_fix_i2s_irqflag()
301 struct bcma_bus *bus; in bcma_core_mips_init() local
303 bus = mcore->core->bus; in bcma_core_mips_init()
312 bcma_fix_i2s_irqflag(bus); in bcma_core_mips_init()
352 bcma_err(bus, in bcma_core_mips_init()
[all …]
A Dhost_pci.c163 struct bcma_bus *bus; in bcma_host_pci_probe() local
168 bus = kzalloc(sizeof(*bus), GFP_KERNEL); in bcma_host_pci_probe()
169 if (!bus) in bcma_host_pci_probe()
195 bus->dev = &dev->dev; in bcma_host_pci_probe()
200 if (!bus->mmio) in bcma_host_pci_probe()
204 bus->host_pci = dev; in bcma_host_pci_probe()
208 bus->boardinfo.vendor = bus->host_pci->subsystem_vendor; in bcma_host_pci_probe()
209 bus->boardinfo.type = bus->host_pci->subsystem_device; in bcma_host_pci_probe()
212 bcma_init_bus(bus); in bcma_host_pci_probe()
241 kfree(bus); in bcma_host_pci_probe()
[all …]
/linux/drivers/staging/wfx/
A Dbus_sdio.c51 bus->buf_id_rx = (bus->buf_id_rx + 1) % 4; in wfx_sdio_copy_from_io()
73 bus->buf_id_tx = (bus->buf_id_tx + 1) % 32; in wfx_sdio_copy_to_io()
116 if (!bus->of_irq) { in wfx_sdio_irq_subscribe()
127 ret = devm_request_threaded_irq(&bus->func->dev, bus->of_irq, NULL, in wfx_sdio_irq_subscribe()
129 "wfx", bus); in wfx_sdio_irq_subscribe()
146 if (bus->of_irq) in wfx_sdio_irq_unsubscribe()
147 devm_free_irq(&bus->func->dev, bus->of_irq, bus); in wfx_sdio_irq_unsubscribe()
191 bus = devm_kzalloc(&func->dev, sizeof(*bus), GFP_KERNEL); in wfx_sdio_probe()
192 if (!bus) in wfx_sdio_probe()
208 bus->func = func; in wfx_sdio_probe()
[all …]
/linux/sound/hda/ext/
A Dhdac_ext_stream.c33 if (bus->ppcap) { in snd_hdac_ext_stream_init()
42 if (bus->spbcap) { in snd_hdac_ext_stream_init()
52 if (bus->drsmcap) in snd_hdac_ext_stream_init()
258 if (!bus->ppcap) { in hdac_ext_link_stream_assign()
298 if (!bus->ppcap) { in hdac_ext_host_stream_assign()
381 struct hdac_bus *bus = stream->hstream.bus; in snd_hdac_ext_stream_release() local
423 if (!bus->spbcap) { in snd_hdac_ext_stream_spbcap_enable()
447 if (!bus->spbcap) { in snd_hdac_ext_stream_set_spib()
469 if (!bus->spbcap) { in snd_hdac_ext_stream_get_spbmaxfifo()
506 if (!bus->drsmcap) { in snd_hdac_ext_stream_drsm_enable()
[all …]
/linux/drivers/soundwire/
A Dstream.c772 bus = m_rt->bus; in do_bank_switch()
810 bus = m_rt->bus; in do_bank_switch()
848 bus = m_rt->bus; in do_bank_switch()
859 bus = m_rt->bus; in do_bank_switch()
959 m_rt->bus = bus; in sdw_alloc_master_rt()
1466 bus = m_rt->bus; in sdw_acquire_bus_lock()
1488 bus = m_rt->bus; in sdw_release_bus_lock()
1504 bus = m_rt->bus; in _sdw_prepare_stream()
1553 bus = m_rt->bus; in _sdw_prepare_stream()
1631 bus = m_rt->bus; in _sdw_enable_stream()
[all …]

Completed in 91 milliseconds

12345678910>>...125