/linux-master/drivers/bcma/ |
H A D | host_pci.c | 16 int win2 = core->bus->host_is_pcie2 ? 19 pci_write_config_dword(core->bus->host_pci, BCMA_PCI_BAR0_WIN, 21 pci_write_config_dword(core->bus->host_pci, win2, core->wrap); 22 core->bus->mapped_core = core; 23 bcma_debug(core->bus, "Switched to core: 0x%X\n", core->id.id); 37 if (core->bus->mapped_core != core) 45 return ioread8(core->bus->mmio + offset); 51 return ioread16(core->bus->mmio + offset); 57 return ioread32(core->bus->mmio + offset); 64 iowrite8(value, core->bus 163 struct bcma_bus *bus; local 247 struct bcma_bus *bus = pci_get_drvdata(dev); local 259 struct bcma_bus *bus = dev_get_drvdata(dev); local 268 struct bcma_bus *bus = dev_get_drvdata(dev); local 331 bcma_host_pci_up(struct bcma_bus *bus) argument 344 bcma_host_pci_down(struct bcma_bus *bus) argument 355 bcma_host_pci_irq_ctl(struct bcma_bus *bus, struct bcma_device *core, bool enable) argument [all...] |
H A D | main.c | 23 /* contains the number the next bus should get. */ 80 static u16 bcma_cc_core_id(struct bcma_bus *bus) argument 82 if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) 87 struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, argument 92 list_for_each_entry(core, &bus->cores, list) { 114 bcma_warn(core->bus, "Timeout waiting for register 0x%04X!\n", reg); 192 bcma_debug(core->bus, "bcma_of_get_irq() failed with rc=%d\n", 216 struct bcma_bus *bus = core->bus; local 219 switch (bus 238 bcma_prepare_core(struct bcma_bus *bus, struct bcma_device *core) argument 266 bcma_init_bus(struct bcma_bus *bus) argument 278 bcma_register_core(struct bcma_bus *bus, struct bcma_device *core) argument 291 bcma_register_devices(struct bcma_bus *bus) argument 362 bcma_unregister_cores(struct bcma_bus *bus) argument 382 bcma_bus_register(struct bcma_bus *bus) argument 481 bcma_bus_unregister(struct bcma_bus *bus) argument 501 bcma_bus_early_register(struct bcma_bus *bus) argument 533 bcma_bus_suspend(struct bcma_bus *bus) argument 548 bcma_bus_resume(struct bcma_bus *bus) argument [all...] |
H A D | bcma_private.h | 12 #define bcma_err(bus, fmt, ...) \ 13 dev_err((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__) 14 #define bcma_warn(bus, fmt, ...) \ 15 dev_warn((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__) 16 #define bcma_info(bus, fmt, ...) \ 17 dev_info((bus) [all...] |
/linux-master/drivers/net/mdio/ |
H A D | mdio-octeon.c | 18 struct cavium_mdiobus *bus; local 26 mii_bus = devm_mdiobus_alloc_size(&pdev->dev, sizeof(*bus)); 36 bus = mii_bus->priv; 37 bus->mii_bus = mii_bus; 47 bus->register_base = devm_ioremap(&pdev->dev, mdio_phys, regsize); 48 if (!bus->register_base) { 55 oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN); 57 bus->mii_bus->name = KBUILD_MODNAME; 58 snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%px", bus 83 struct cavium_mdiobus *bus; local [all...] |
H A D | mdio-moxart.c | 33 static int moxart_mdio_read(struct mii_bus *bus, int mii_id, int regnum) argument 35 struct moxart_mdio_data *data = bus->priv; 39 dev_dbg(&bus->dev, "%s\n", __func__); 56 dev_dbg(&bus->dev, "%s timed out\n", __func__); 61 static int moxart_mdio_write(struct mii_bus *bus, int mii_id, argument 64 struct moxart_mdio_data *data = bus->priv; 68 dev_dbg(&bus->dev, "%s\n", __func__); 88 dev_dbg(&bus->dev, "%s timed out\n", __func__); 93 static int moxart_mdio_reset(struct mii_bus *bus) argument 98 data = moxart_mdio_read(bus, 113 struct mii_bus *bus; local 160 struct mii_bus *bus = platform_get_drvdata(pdev); local [all...] |
/linux-master/drivers/nubus/ |
H A D | Makefile | 6 obj-y := nubus.o bus.o
|
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | bus.h | 43 /* The level of bus communication with the dongle */ 49 /* The level of bus communication with the dongle */ 71 * struct brcmf_bus_ops - bus callback operations. 73 * @preinit: execute bus/device specific dongle init commands (optional). 83 * @gettxq: obtain a reference of bus transmit queue (optional). 91 * bus specific driver. For control messages to common driver 114 * struct brcmf_bus_msgbuf - bus ringbuf if in case of msgbuf. 136 * struct brcmf_bus_stats - bus statistic counters. 147 * struct brcmf_bus - interface structure between common and bus layer 149 * @bus_priv: pointer to private bus devic 192 brcmf_bus_preinit(struct brcmf_bus *bus) argument 199 brcmf_bus_stop(struct brcmf_bus *bus) argument 204 brcmf_bus_txdata(struct brcmf_bus *bus, struct sk_buff *skb) argument 210 brcmf_bus_txctl(struct brcmf_bus *bus, unsigned char *msg, uint len) argument 216 brcmf_bus_rxctl(struct brcmf_bus *bus, unsigned char *msg, uint len) argument 222 brcmf_bus_gettxq(struct brcmf_bus *bus) argument 231 brcmf_bus_wowl_config(struct brcmf_bus *bus, bool enabled) argument 237 brcmf_bus_get_ramsize(struct brcmf_bus *bus) argument 246 brcmf_bus_get_memdump(struct brcmf_bus *bus, void *data, size_t len) argument 255 brcmf_bus_get_blob(struct brcmf_bus *bus, const struct firmware **fw, enum brcmf_blob_type type) argument 262 brcmf_bus_debugfs_create(struct brcmf_bus *bus) argument 271 brcmf_bus_reset(struct brcmf_bus *bus) argument 279 brcmf_bus_remove(struct brcmf_bus *bus) argument [all...] |
/linux-master/drivers/soundwire/ |
H A D | irq.h | 15 int sdw_irq_create(struct sdw_bus *bus, 17 void sdw_irq_delete(struct sdw_bus *bus); 23 static inline int sdw_irq_create(struct sdw_bus *bus, argument 29 static inline void sdw_irq_delete(struct sdw_bus *bus) argument
|
H A D | slave.c | 8 #include "bus.h" 25 int sdw_slave_add(struct sdw_bus *bus, argument 38 slave->dev.parent = bus->dev; 44 bus->controller_id, bus->link_id, id->mfg_id, id->part_id, 49 bus->controller_id, bus->link_id, id->mfg_id, id->part_id, 53 slave->dev.bus = &sdw_bus_type; 57 slave->bus = bus; 96 find_slave(struct sdw_bus *bus, struct acpi_device *adev, struct sdw_slave_id *id) argument 132 struct sdw_bus *bus; member in struct:sdw_acpi_child_walk_data 141 struct sdw_bus *bus = cwd->bus; local 171 struct sdw_bus *bus = data; local 202 sdw_acpi_find_slaves(struct sdw_bus *bus) argument 223 sdw_of_find_slaves(struct sdw_bus *bus) argument [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | pci.h | 35 static inline struct pci_sysdata *to_pci_sysdata(const struct pci_bus *bus) argument 37 return bus->sysdata; 43 static inline int pci_domain_nr(struct pci_bus *bus) argument 45 return to_pci_sysdata(bus)->domain; 48 static inline int pci_proc_domain(struct pci_bus *bus) argument 50 return pci_domain_nr(bus); 55 static inline void *_pci_root_bus_fwnode(struct pci_bus *bus) argument 57 return to_pci_sysdata(bus)->fwnode; 64 static inline bool is_vmd(struct pci_bus *bus) argument 66 return to_pci_sysdata(bus) 110 __pcibus_to_node(const struct pci_bus *bus) argument 116 cpumask_of_pcibus(const struct pci_bus *bus) argument [all...] |
/linux-master/arch/powerpc/kernel/ |
H A D | io-workarounds.c | 34 struct iowa_bus *bus = &iowa_busses[i]; local 35 struct pci_controller *phb = bus->phb; 41 return bus; 48 return bus; 58 struct iowa_bus *bus; local 64 bus = &iowa_busses[token - 1]; 74 bus = iowa_pci_find(vaddr, paddr); 76 if (bus == NULL) 80 return bus; 105 struct iowa_bus *bus; \ 145 struct iowa_bus *bus; local 173 struct iowa_bus *bus; local [all...] |
/linux-master/drivers/video/fbdev/via/ |
H A D | via_aux_vt1621.c | 16 void via_aux_vt1621_probe(struct via_aux_bus *bus) argument 19 .bus = bus,
|
/linux-master/drivers/firmware/arm_ffa/ |
H A D | Makefile | 2 ffa-bus-y = bus.o 5 ffa-module-objs := $(ffa-bus-y) $(ffa-driver-y) $(ffa-transport-y)
|
/linux-master/drivers/devfreq/ |
H A D | exynos-bus.c | 42 * Control the devfreq-event device to get the current state of bus 45 static int exynos_bus_##ops(struct exynos_bus *bus) \ 49 for (i = 0; i < bus->edev_count; i++) { \ 50 if (!bus->edev[i]) \ 52 ret = devfreq_event_##ops(bus->edev[i]); \ 63 static int exynos_bus_get_event(struct exynos_bus *bus, argument 70 for (i = 0; i < bus->edev_count; i++) { 71 if (!bus->edev[i]) 74 ret = devfreq_event_get_event(bus->edev[i], &event_data); 95 struct exynos_bus *bus local 122 struct exynos_bus *bus = dev_get_drvdata(dev); local 153 struct exynos_bus *bus = dev_get_drvdata(dev); local 169 struct exynos_bus *bus = dev_get_drvdata(dev); local 177 exynos_bus_parent_parse_of(struct device_node *np, struct exynos_bus *bus) argument 241 exynos_bus_parse_of(struct device_node *np, struct exynos_bus *bus) argument 290 exynos_bus_profile_init(struct exynos_bus *bus, struct devfreq_dev_profile *profile) argument 351 exynos_bus_profile_init_passive(struct exynos_bus *bus, struct devfreq_dev_profile *profile) argument 390 struct exynos_bus *bus; local 465 struct exynos_bus *bus = dev_get_drvdata(&pdev->dev); local 472 struct exynos_bus *bus = dev_get_drvdata(dev); local 486 struct exynos_bus *bus = dev_get_drvdata(dev); local [all...] |
/linux-master/drivers/ssb/ |
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, argument 34 static inline int ssb_pci_switch_coreidx(struct ssb_bus *bus, argument 39 static inline int ssb_pci_xtal(struct ssb_bus *bus, u32 what, argument 44 static inline void ssb_pci_exit(struct ssb_bus *bus) argument 47 ssb_pci_init(struct ssb_bus *bus) argument 69 ssb_pcmcia_switch_coreidx(struct ssb_bus *bus, u8 coreidx) argument 74 ssb_pcmcia_switch_segment(struct ssb_bus *bus, u8 seg) argument 79 ssb_pcmcia_hardware_setup(struct ssb_bus *bus) argument 83 ssb_pcmcia_exit(struct ssb_bus *bus) argument 86 ssb_pcmcia_init(struct ssb_bus *bus) argument 111 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset) argument 115 ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx) argument 119 ssb_sdio_exit(struct ssb_bus *bus) argument 122 ssb_sdio_init(struct ssb_bus *bus) argument 168 struct ssb_bus *bus; member in struct:ssb_freeze_context 238 ssb_watchdog_register(struct ssb_bus *bus) argument 256 ssb_gpio_init(struct ssb_bus *bus) argument 260 ssb_gpio_unregister(struct ssb_bus *bus) argument [all...] |
H A D | sdio.c | 104 static inline struct device *ssb_sdio_dev(struct ssb_bus *bus) argument 106 return &bus->host_sdio->dev; 110 static int ssb_sdio_writeb(struct ssb_bus *bus, unsigned int addr, u8 val) argument 114 sdio_writeb(bus->host_sdio, val, addr, &error); 116 dev_dbg(ssb_sdio_dev(bus), "%08X <- %02x, error %d\n", 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) argument 144 error = ssb_sdio_writeb(bus, SBSDIO_FUNC1_SBADDRLO 167 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset) argument 184 ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx) argument 203 ssb_sdio_switch_core(struct ssb_bus *bus, struct ssb_device *dev) argument 231 struct ssb_bus *bus = dev->bus; local 253 struct ssb_bus *bus = dev->bus; local 275 struct ssb_bus *bus = dev->bus; local 301 struct ssb_bus *bus = dev->bus; local 345 struct ssb_bus *bus = dev->bus; local 364 struct ssb_bus *bus = dev->bus; local 383 struct ssb_bus *bus = dev->bus; local 408 struct ssb_bus *bus = dev->bus; local 471 ssb_sdio_get_invariants(struct ssb_bus *bus, struct ssb_init_invariants *iv) argument 590 ssb_sdio_exit(struct ssb_bus *bus) argument 597 ssb_sdio_init(struct ssb_bus *bus) argument [all...] |
/linux-master/include/asm-generic/ |
H A D | topology.h | 55 #define pcibus_to_node(bus) ((void)(bus), -1) 59 #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ 61 cpumask_of_node(pcibus_to_node(bus)))
|
/linux-master/arch/sh/include/asm/ |
H A D | pci.h | 6 already-configured bus numbers - to be used for buggy BIOSes 17 struct pci_bus *bus; member in struct:pci_channel 46 int bus, int devfn, int offset, u8 *value); 48 int bus, int devfn, int offset, u16 *value); 50 int bus, int devfn, int offset, u32 *value); 52 int bus, int devfn, int offset, u8 value); 54 int bus, int devfn, int offset, u16 value); 56 int bus, int devfn, int offset, u32 value); 83 #define pci_domain_nr(bus) ((struct pci_channel *)(bus) 85 pci_proc_domain(struct pci_bus *bus) argument [all...] |
/linux-master/include/linux/ssb/ |
H A D | ssb_embedded.h | 9 extern int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks); 12 u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask); 13 u32 ssb_gpio_out(struct ssb_bus *bus, u32 mask, u32 value); 14 u32 ssb_gpio_outen(struct ssb_bus *bus, u32 mask, u32 value); 15 u32 ssb_gpio_control(struct ssb_bus *bus, u32 mask, u32 value); 16 u32 ssb_gpio_intmask(struct ssb_bus *bus, u32 mask, u32 value); 17 u32 ssb_gpio_polarity(struct ssb_bus *bus, u32 mask, u32 value);
|
/linux-master/include/linux/device/ |
H A D | bus.h | 3 * bus.h - the bus-specific portions of the driver model 25 * struct bus_type - The bus type of the device 27 * @name: The name of the bus. 29 * @bus_groups: Default attributes of the bus. 30 * @dev_groups: Default attributes of the devices on the bus. 31 * @drv_groups: Default attributes of the device drivers on the bus. 33 * is added for this bus. It should return a positive value if the 40 * @probe: Called when a new device or driver add to this bus, and callback 49 * @remove: Called when a device removed from this bus 151 bus_find_device_by_name(const struct bus_type *bus, struct device *start, const char *name) argument 165 bus_find_device_by_of_node(const struct bus_type *bus, const struct device_node *np) argument 177 bus_find_device_by_fwnode(const struct bus_type *bus, const struct fwnode_handle *fwnode) argument 188 bus_find_device_by_devt(const struct bus_type *bus, dev_t devt) argument 201 bus_find_next_device(const struct bus_type *bus,struct device *cur) argument 216 bus_find_device_by_acpi_dev(const struct bus_type *bus, const struct acpi_device *adev) argument 222 bus_find_device_by_acpi_dev(const struct bus_type *bus, const void *adev) argument [all...] |
/linux-master/sound/soc/sof/intel/ |
H A D | hda-codec.c | 79 struct hdac_bus *bus = sof_to_bus(sdev); local 102 snd_hdac_chip_updatew(bus, WAKEEN, mask & STATESTS_INT_MASK, val); 127 #define is_generic_config(bus) \ 128 ((bus)->modelname && !strcmp((bus)->modelname, "generic")) 133 static struct hda_codec *hda_codec_device_init(struct hdac_bus *bus, int addr, int type) argument 137 codec = snd_hda_codec_device_init(to_hda_bus(bus), addr, "ehdaudio%dD%d", bus->idx, addr); 139 dev_err(bus->dev, "device init failed for hdac device\n"); 219 struct hdac_bus *bus local 244 struct hdac_bus *bus = sof_to_bus(sdev); local 257 struct hdac_bus *bus = sof_to_bus(sdev); local 282 struct hdac_bus *bus = sof_to_bus(sdev); local 295 struct hdac_bus *bus = sof_to_bus(sdev); local 309 struct hdac_bus *bus = sof_to_bus(sdev); local 322 struct hdac_bus *bus = sof_to_bus(sdev); local 337 struct hdac_bus *bus = sof_to_bus(sdev); local 350 struct hdac_bus *bus = sof_to_bus(sdev); local 361 struct hdac_bus *bus = sof_to_bus(sdev); local 388 struct hdac_bus *bus = sof_to_bus(sdev); local 405 struct hdac_bus *bus = sof_to_bus(sdev); local 420 struct hdac_bus *bus = sof_to_bus(sdev); local 441 struct hdac_bus *bus = sof_to_bus(sdev); local [all...] |
/linux-master/arch/mips/pci/ |
H A D | ops-rc32434.c | 41 #define PCI_CFG_SET(bus, slot, func, off) \ 43 ((bus) << 16) | ((slot)<<11) | \ 47 struct pci_bus *bus, unsigned int devfn, 54 PCI_CFG_SET(bus->number, slot, func, where); 72 static int read_config_byte(struct pci_bus *bus, unsigned int devfn, argument 78 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); 83 static int read_config_word(struct pci_bus *bus, unsigned int devfn, argument 89 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); 94 static int read_config_dword(struct pci_bus *bus, unsigned int devfn, argument 104 if (bus 46 config_access(unsigned char access_type, struct pci_bus *bus, unsigned int devfn, unsigned char where, u32 *data) argument 129 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val) argument 148 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val) argument 168 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) argument 177 pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) argument 190 pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument [all...] |
/linux-master/sound/hda/ext/ |
H A D | hdac_ext_stream.c | 47 snd_hdac_ext_stream_decouple(hstream->bus, hext_stream, false); 49 snd_hdac_ext_stream_decouple(hstream->bus, hext_stream, true); 56 * @bus: HD-audio core bus 65 static void snd_hdac_ext_stream_init(struct hdac_bus *bus, argument 69 if (bus->ppcap) { 70 hext_stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + 73 hext_stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + 74 AZX_PPLC_MULTI * bus->num_streams + 79 snd_hdac_stream_init(bus, 90 snd_hdac_ext_stream_init_all(struct hdac_bus *bus, int start_idx, int num_stream, int dir) argument 124 snd_hdac_ext_stream_free_all(struct hdac_bus *bus) argument 138 snd_hdac_ext_stream_decouple_locked(struct hdac_bus *bus, struct hdac_ext_stream *hext_stream, bool decouple) argument 163 snd_hdac_ext_stream_decouple(struct hdac_bus *bus, struct hdac_ext_stream *hext_stream, bool decouple) argument 257 hdac_ext_link_dma_stream_assign(struct hdac_bus *bus, struct snd_pcm_substream *substream) argument 293 hdac_ext_host_dma_stream_assign(struct hdac_bus *bus, struct snd_pcm_substream *substream) argument 345 snd_hdac_ext_stream_assign(struct hdac_bus *bus, struct snd_pcm_substream *substream, int type) argument 382 struct hdac_bus *bus = hext_stream->hstream.bus; local 424 snd_hdac_ext_cstream_assign(struct hdac_bus *bus, struct snd_compr_stream *cstream) argument [all...] |
/linux-master/drivers/media/pci/cx25821/ |
H A D | cx25821-i2c.c | 22 MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 38 struct cx25821_i2c *bus = i2c_adap->algo_data; local 39 struct cx25821_dev *dev = bus->dev; 40 return cx_read(bus->reg_stat) & 0x01; 45 struct cx25821_i2c *bus = i2c_adap->algo_data; local 46 struct cx25821_dev *dev = bus->dev; 47 return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; 69 struct cx25821_i2c *bus = i2c_adap->algo_data; local 70 struct cx25821_dev *dev = bus->dev; 82 cx_write(bus 163 struct cx25821_i2c *bus = i2c_adap->algo_data; local 226 struct cx25821_i2c *bus = i2c_adap->algo_data; local 289 cx25821_i2c_register(struct cx25821_i2c *bus) argument 313 cx25821_i2c_unregister(struct cx25821_i2c *bus) argument 344 cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value) argument 378 cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value) argument [all...] |
/linux-master/drivers/media/pci/cx23885/ |
H A D | cx23885-i2c.c | 23 MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 39 struct cx23885_i2c *bus = i2c_adap->algo_data; local 40 struct cx23885_dev *dev = bus->dev; 41 return cx_read(bus->reg_stat) & 0x01; 46 struct cx23885_i2c *bus = i2c_adap->algo_data; local 47 struct cx23885_dev *dev = bus->dev; 48 return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; 70 struct cx23885_i2c *bus = i2c_adap->algo_data; local 71 struct cx23885_dev *dev = bus->dev; 83 cx_write(bus 151 struct cx23885_i2c *bus = i2c_adap->algo_data; local 299 cx23885_i2c_register(struct cx23885_i2c *bus) argument 347 cx23885_i2c_unregister(struct cx23885_i2c *bus) argument [all...] |