/drivers/amba/ |
H A D | Makefile | 1 obj-y += bus.o
|
/drivers/net/wireless/iwlwifi/ |
H A D | iwl-io.c | 37 static inline void __iwl_set_bit(struct iwl_bus *bus, u32 reg, u32 mask) argument 39 iwl_write32(bus, reg, iwl_read32(bus, reg) | mask); 42 static inline void __iwl_clear_bit(struct iwl_bus *bus, u32 reg, u32 mask) argument 44 iwl_write32(bus, reg, iwl_read32(bus, reg) & ~mask); 47 void iwl_set_bit(struct iwl_bus *bus, u32 reg, u32 mask) argument 51 spin_lock_irqsave(&bus->reg_lock, flags); 52 __iwl_set_bit(bus, reg, mask); 53 spin_unlock_irqrestore(&bus 56 iwl_clear_bit(struct iwl_bus *bus, u32 reg, u32 mask) argument 65 iwl_poll_bit(struct iwl_bus *bus, u32 addr, u32 bits, u32 mask, int timeout) argument 80 iwl_grab_nic_access_silent(struct iwl_bus *bus) argument 120 iwl_grab_nic_access(struct iwl_bus *bus) argument 132 iwl_release_nic_access(struct iwl_bus *bus) argument 139 iwl_read_direct32(struct iwl_bus *bus, u32 reg) argument 153 iwl_write_direct32(struct iwl_bus *bus, u32 reg, u32 value) argument 165 iwl_poll_direct_bit(struct iwl_bus *bus, u32 addr, u32 mask, int timeout) argument 180 __iwl_read_prph(struct iwl_bus *bus, u32 reg) argument 187 __iwl_write_prph(struct iwl_bus *bus, u32 addr, u32 val) argument 195 iwl_read_prph(struct iwl_bus *bus, u32 reg) argument 208 iwl_write_prph(struct iwl_bus *bus, u32 addr, u32 val) argument 220 iwl_set_bits_prph(struct iwl_bus *bus, u32 reg, u32 mask) argument 231 iwl_set_bits_mask_prph(struct iwl_bus *bus, u32 reg, u32 bits, u32 mask) argument 244 iwl_clear_bits_prph(struct iwl_bus *bus, u32 reg, u32 mask) argument 257 _iwl_read_targ_mem_words(struct iwl_bus *bus, u32 addr, void *buf, int words) argument 277 iwl_read_targ_mem(struct iwl_bus *bus, u32 addr) argument 286 _iwl_write_targ_mem_words(struct iwl_bus *bus, u32 addr, void *buf, int words) argument 308 iwl_write_targ_mem(struct iwl_bus *bus, u32 addr, u32 val) argument [all...] |
H A D | iwl-bus.h | 72 * iwl-bus.h defines the API to the bus layer of the iwlwifi driver. 73 * The bus layer is responsible for doing very basic bus operations that are 75 * The bus layer registers to the bus driver, advertises the supported HW and 77 * For the moment, the bus layer is not a linux kernel module as itself, and 78 * the module_init function of the driver must call the bus specific 87 * The iwl_bus describes the data that is shared amongst all the bus layer 88 * implementations. This data is visible to other layers. Data in the bus 167 bus_get_pm_support(struct iwl_bus *bus) argument 172 bus_apm_config(struct iwl_bus *bus) argument 177 bus_get_hw_id_string(struct iwl_bus *bus, char buf[], int buf_len) argument 183 bus_get_hw_id(struct iwl_bus *bus) argument 188 bus_write8(struct iwl_bus *bus, u32 ofs, u8 val) argument 193 bus_write32(struct iwl_bus *bus, u32 ofs, u32 val) argument 198 bus_read32(struct iwl_bus *bus, u32 ofs) argument [all...] |
H A D | iwl-io.h | 34 #include "iwl-bus.h" 36 static inline void iwl_write8(struct iwl_bus *bus, u32 ofs, u8 val) argument 38 trace_iwlwifi_dev_iowrite8(priv(bus), ofs, val); 39 bus_write8(bus, ofs, val); 42 static inline void iwl_write32(struct iwl_bus *bus, u32 ofs, u32 val) argument 44 trace_iwlwifi_dev_iowrite32(priv(bus), ofs, val); 45 bus_write32(bus, ofs, val); 48 static inline u32 iwl_read32(struct iwl_bus *bus, u32 ofs) argument 50 u32 val = bus_read32(bus, ofs); 51 trace_iwlwifi_dev_ioread32(priv(bus), of [all...] |
/drivers/media/video/saa7164/ |
H A D | saa7164-i2c.c | 32 struct saa7164_i2c *bus = i2c_adap->algo_data; local 33 struct saa7164_dev *dev = bus->dev; 49 retval = saa7164_api_i2c_read(bus, msgs[i].addr, 60 retval = saa7164_api_i2c_write(bus, msgs[i].addr, 72 void saa7164_call_i2c_clients(struct saa7164_i2c *bus, unsigned int cmd, argument 75 if (bus->i2c_rc != 0) 78 i2c_clients_command(&bus->i2c_adap, cmd, arg); 103 int saa7164_i2c_register(struct saa7164_i2c *bus) argument 105 struct saa7164_dev *dev = bus->dev; 107 dprintk(DBGLVL_I2C, "%s(bus 137 saa7164_i2c_unregister(struct saa7164_i2c *bus) argument [all...] |
/drivers/pci/ |
H A D | of.c | 20 if (!dev->bus->dev.of_node) 22 dev->dev.of_node = of_pci_find_child_device(dev->bus->dev.of_node, 32 void pci_set_bus_of_node(struct pci_bus *bus) argument 34 if (bus->self == NULL) 35 bus->dev.of_node = pcibios_get_phb_of_node(bus); 37 bus->dev.of_node = of_node_get(bus->self->dev.of_node); 40 void pci_release_bus_of_node(struct pci_bus *bus) argument 42 of_node_put(bus 46 pcibios_get_phb_of_node(struct pci_bus *bus) argument [all...] |
H A D | hotplug-pci.c | 8 unsigned int __devinit pci_do_scan_bus(struct pci_bus *bus) argument 12 max = pci_scan_child_bus(bus); 17 pci_bus_add_devices(bus);
|
/drivers/ssb/ |
H A D | ssb_private.h | 35 extern int ssb_pci_switch_core(struct ssb_bus *bus, 37 extern int ssb_pci_switch_coreidx(struct ssb_bus *bus, 39 extern int ssb_pci_xtal(struct ssb_bus *bus, u32 what, 41 extern int ssb_pci_get_invariants(struct ssb_bus *bus, 43 extern void ssb_pci_exit(struct ssb_bus *bus); 44 extern int ssb_pci_init(struct ssb_bus *bus); 49 static inline int ssb_pci_switch_core(struct ssb_bus *bus, argument 54 static inline int ssb_pci_switch_coreidx(struct ssb_bus *bus, argument 59 static inline int ssb_pci_xtal(struct ssb_bus *bus, u32 what, argument 64 static inline void ssb_pci_exit(struct ssb_bus *bus) argument 67 ssb_pci_init(struct ssb_bus *bus) argument 89 ssb_pcmcia_switch_core(struct ssb_bus *bus, struct ssb_device *dev) argument 94 ssb_pcmcia_switch_coreidx(struct ssb_bus *bus, u8 coreidx) argument 99 ssb_pcmcia_switch_segment(struct ssb_bus *bus, u8 seg) argument 104 ssb_pcmcia_hardware_setup(struct ssb_bus *bus) argument 108 ssb_pcmcia_exit(struct ssb_bus *bus) argument 111 ssb_pcmcia_init(struct ssb_bus *bus) argument 131 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset) argument 135 ssb_sdio_switch_core(struct ssb_bus *bus, struct ssb_device *dev) argument 140 ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx) argument 144 ssb_sdio_hardware_setup(struct ssb_bus *bus) argument 148 ssb_sdio_exit(struct ssb_bus *bus) argument 151 ssb_sdio_init(struct ssb_bus *bus) argument 187 struct ssb_bus *bus; member in struct:ssb_freeze_context [all...] |
H A D | scan.c | 160 static u32 scan_read32(struct ssb_bus *bus, u8 current_coreidx, argument 165 switch (bus->bustype) { 173 ssb_pcmcia_switch_segment(bus, 1); 176 ssb_pcmcia_switch_segment(bus, 0); 177 lo = readw(bus->mmio + offset); 178 hi = readw(bus->mmio + offset + 2); 182 return ssb_sdio_scan_read32(bus, offset); 184 return readl(bus->mmio + offset); 187 static int scan_switchcore(struct ssb_bus *bus, u8 coreidx) argument 189 switch (bus 202 ssb_iounmap(struct ssb_bus *bus) argument 223 ssb_ioremap(struct ssb_bus *bus, unsigned long baseaddr) argument 251 we_support_multiple_80211_cores(struct ssb_bus *bus) argument 271 ssb_bus_scan(struct ssb_bus *bus, unsigned long baseaddr) argument [all...] |
H A D | embedded.c | 21 int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) argument 23 if (ssb_chipco_available(&bus->chipco)) { 24 ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); 27 if (ssb_extif_available(&bus->extif)) { 28 ssb_extif_watchdog_timer_set(&bus->extif, ticks); 35 u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask) argument 40 spin_lock_irqsave(&bus->gpio_lock, flags); 41 if (ssb_chipco_available(&bus->chipco)) 42 res = ssb_chipco_gpio_in(&bus->chipco, mask); 43 else if (ssb_extif_available(&bus 53 ssb_gpio_out(struct ssb_bus *bus, u32 mask, u32 value) argument 71 ssb_gpio_outen(struct ssb_bus *bus, u32 mask, u32 value) argument 89 ssb_gpio_control(struct ssb_bus *bus, u32 mask, u32 value) argument 103 ssb_gpio_intmask(struct ssb_bus *bus, u32 mask, u32 value) argument 121 ssb_gpio_polarity(struct ssb_bus *bus, u32 mask, u32 value) argument 140 gige_pci_init_callback(struct ssb_bus *bus, unsigned long data) argument 182 gige_map_irq_callback(struct ssb_bus *bus, unsigned long data) argument [all...] |
H A D | driver_mipscore.c | 62 struct ssb_bus *bus = rdev->bus; local 64 for (i = 0; i < bus->nr_devices; i++) { 66 dev = &(bus->devices[i]); 80 struct ssb_bus *bus = dev->bus; local 81 struct ssb_device *mdev = bus->mipscore.dev; 90 ipsflag = ssb_read32(bus->mipscore.dev, SSB_IPSFLAG); 104 static void clear_irq(struct ssb_bus *bus, unsigned int irq) argument 106 struct ssb_device *dev = bus 121 struct ssb_bus *bus = dev->bus; local 167 dump_irq(struct ssb_bus *bus) argument 179 struct ssb_bus *bus = mcore->dev->bus; local 191 struct ssb_bus *bus = mcore->dev->bus; local 208 struct ssb_bus *bus = mcore->dev->bus; local 233 struct ssb_bus *bus; local [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 472 ssb_sdio_get_invariants(struct ssb_bus *bus, struct ssb_init_invariants *iv) argument 595 ssb_sdio_exit(struct ssb_bus *bus) argument 602 ssb_sdio_init(struct ssb_bus *bus) argument [all...] |
/drivers/net/wireless/bcmdhd/ |
H A D | dhd_sdio.c | 136 * bufpool was present for gspi bus. 138 #define PKTFREE2() if ((bus->bus != SPI_BUS) || bus->usebufpool) \ 139 PKTFREE(bus->dhd->osh, pkt, FALSE); 162 #define REMAP_ENAB(bus) ((bus)->remap) 163 #define REMAP_ISADDR(bus, a) (((a) >= ((bus)->orig_ramsize)) && ((a) < ((bus) 191 uint32 bus; /* gSPI or SDIO bus */ member in struct:dhd_bus 535 dhd_dongle_setmemsize(struct dhd_bus *bus, int mem_size) argument 547 dhdsdio_set_siaddr_window(dhd_bus_t *bus, uint32 address) argument 564 dhdsdio_oobwakeup_init(dhd_bus_t *bus) argument 591 dhdsdio_clk_kso_init(dhd_bus_t *bus) argument 616 dhdsdio_clk_kso_enab(dhd_bus_t *bus, bool on) argument 631 dhdsdio_clk_kso_iovar(dhd_bus_t *bus, bool on) argument 675 dhdsdio_sleepcsr_get(dhd_bus_t *bus) argument 688 dhdsdio_devcap_get(dhd_bus_t *bus) argument 694 dhdsdio_devcap_set(dhd_bus_t *bus, uint8 cap) argument 706 dhdsdio_clk_devsleep_iovar(dhd_bus_t *bus, bool on) argument 839 dhdsdio_htclk(dhd_bus_t *bus, bool on, bool pendok) argument 971 dhdsdio_sdclk(dhd_bus_t *bus, bool on) argument 1057 dhdsdio_clkctl(dhd_bus_t *bus, uint target, bool pendok) argument 1122 dhdsdio_bussleep(dhd_bus_t *bus, bool sleep) argument 1222 dhd_enable_oob_intr(struct dhd_bus *bus, bool enable) argument 1254 dhdsdio_txpkt(dhd_bus_t *bus, void *pkt, uint chan, bool free_pkt) argument 1432 dhd_bus_txdata(struct dhd_bus *bus, void *pkt) argument 1560 dhdsdio_sendfromq(dhd_bus_t *bus, uint maxframes) argument 1625 dhd_bus_txctl(struct dhd_bus *bus, uchar *msg, uint msglen) argument 1782 dhd_bus_rxctl(struct dhd_bus *bus, uchar *msg, uint msglen) argument 1951 dhd_bus_t *bus = dhdp->bus; local 2033 dhd_bus_t *bus = (dhd_bus_t *)dhdp->bus; local 2045 dhdsdio_pktgen_get(dhd_bus_t *bus, uint8 *arg) argument 2068 dhdsdio_pktgen_set(dhd_bus_t *bus, uint8 *arg) argument 2102 dhdsdio_devram_remap(dhd_bus_t *bus, bool val) argument 2112 dhdsdio_membytes(dhd_bus_t *bus, bool write, uint32 address, uint8 *data, uint size) argument 2176 dhdsdio_readshared(dhd_bus_t *bus, sdpcm_shared_t *sh) argument 2228 dhdsdio_readconsole(dhd_bus_t *bus) argument 2301 dhdsdio_checkdied(dhd_bus_t *bus, char *data, uint size) argument 2479 dhdsdio_downloadvars(dhd_bus_t *bus, void *arg, int len) argument 2520 dhd_serialconsole(dhd_bus_t *bus, bool set, bool enable, int *bcmerror) argument 2584 dhdsdio_doiovar(dhd_bus_t *bus, const bcm_iovar_t *vi, uint32 actionid, const char *name, void *params, int plen, void *arg, int len, int val_size) argument 3112 dhdsdio_write_vars(dhd_bus_t *bus) argument 3205 dhdsdio_download_state(dhd_bus_t *bus, bool enter) argument 3319 dhd_bus_t *bus = dhdp->bus; local 3421 dhd_bus_stop(struct dhd_bus *bus, bool enforce_mutex) argument 3504 dhd_bus_t *bus = dhdp->bus; local 3619 dhdsdio_rxfail(dhd_bus_t *bus, bool abort, bool rtx) argument 3683 dhdsdio_read_control(dhd_bus_t *bus, uint8 *hdr, uint len, uint doff) argument 3783 dhdsdio_rxglom(dhd_bus_t *bus, uint8 rxseq) argument 4213 dhdsdio_readframes(dhd_bus_t *bus, uint maxframes, bool *finished) argument 4818 dhdsdio_hostmail(dhd_bus_t *bus) argument 4917 dhdsdio_dpc(dhd_bus_t *bus) argument 5186 dhd_bus_dpc(struct dhd_bus *bus) argument 5200 dhd_bus_t *bus = (dhd_bus_t*)arg; local 5256 dhdsdio_pktgen_init(dhd_bus_t *bus) argument 5279 dhdsdio_pktgen(dhd_bus_t *bus) argument 5380 dhdsdio_sdtest_set(dhd_bus_t *bus, uint8 count) argument 5407 dhdsdio_testrcv(dhd_bus_t *bus, void *pkt, uint seq) argument 5521 dhd_bus_t *bus; local 5529 dhd_bus_t *bus; local 5627 dhd_bus_t *bus = dhdp->bus; local 5750 dhd_bus_t *bus; local 5935 dhdsdio_probe_attach(struct dhd_bus *bus, osl_t *osh, void *sdh, void *regsva, uint16 devid) argument 6107 dhdsdio_probe_malloc(dhd_bus_t *bus, osl_t *osh, void *sdh) argument 6142 dhdsdio_probe_init(dhd_bus_t *bus, osl_t *osh, void *sdh) argument 6214 dhd_bus_download_firmware(struct dhd_bus *bus, osl_t *osh, char *pfw_path, char *pnv_path) argument 6228 dhdsdio_download_firmware(struct dhd_bus *bus, osl_t *osh, void *sdh) argument 6257 dhdsdio_release(dhd_bus_t *bus, osl_t *osh) argument 6295 dhdsdio_release_malloc(dhd_bus_t *bus, osl_t *osh) argument 6326 dhdsdio_release_dongle(dhd_bus_t *bus, osl_t *osh, bool dongle_isolation, bool reset_flag) argument 6357 dhd_bus_t *bus = (dhd_bus_t *)ptr; local 6409 dhdsdio_download_code_array(struct dhd_bus *bus) argument 6487 dhdsdio_download_code_file(struct dhd_bus *bus, char *pfw_path) argument 6546 dhd_bus_set_nvram_params(struct dhd_bus * bus, const char *nvram_params) argument 6552 dhdsdio_download_nvram(struct dhd_bus *bus) argument 6623 _dhdsdio_download_firmware(struct dhd_bus *bus) argument 6701 dhd_bcmsdh_recv_buf(dhd_bus_t *bus, uint32 addr, uint fn, uint flags, uint8 *buf, uint nbytes, void *pkt, bcmsdh_cmplt_fn_t complete, void *handle) argument 6717 dhd_bcmsdh_send_buf(dhd_bus_t *bus, uint32 addr, uint fn, uint flags, uint8 *buf, uint nbytes, void *pkt, bcmsdh_cmplt_fn_t complete, void *handle) argument 6729 dhd_bus_chip(struct dhd_bus *bus) argument 6736 dhd_bus_pub(struct dhd_bus *bus) argument 6742 dhd_bus_txq(struct dhd_bus *bus) argument 6748 dhd_bus_hdrlen(struct dhd_bus *bus) argument 6757 dhd_bus_t *bus; local 6858 dhd_bus_t *bus; local [all...] |
H A D | dhd_bus.h | 5 * DHD OS, bus, and protocol modules. 34 * Exported from dhd bus module (dhd_usb, dhd_sdio) 42 extern bool dhd_bus_download_firmware(struct dhd_bus *bus, osl_t *osh, 45 /* Stop bus module: clear pending frames, disable data flow */ 46 extern void dhd_bus_stop(struct dhd_bus *bus, bool enforce_mutex); 48 /* Initialize bus module: prepare for communication w/dongle */ 58 extern int dhd_bus_txdata(struct dhd_bus *bus, void *txp); 63 extern int dhd_bus_txctl(struct dhd_bus *bus, uchar *msg, uint msglen); 64 extern int dhd_bus_rxctl(struct dhd_bus *bus, uchar *msg, uint msglen); 75 /* Deferred processing for the bus, retur [all...] |
/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | dhd_sdio.c | 125 * sdio bus power cycle to clear (rev 9) */ 455 /* Private data for SDIO bus interaction */ 522 s32 idleclock; /* How to set bus driver when idle */ 525 bool sleeping; /* Is SDIO bus sleeping? */ 618 static bool data_ok(struct brcmf_sdio *bus) argument 620 return (u8)(bus->tx_max - bus->tx_seq) != 0 && 621 ((u8)(bus->tx_max - bus->tx_seq) & 0x80) == 0; 626 * adresses on the 32 bit backplane bus 629 r_sdreg32(struct brcmf_sdio *bus, u32 *regvar, u32 reg_offset, u32 *retryvar) argument 649 w_sdreg32(struct brcmf_sdio *bus, u32 regval, u32 reg_offset, u32 *retryvar) argument 674 brcmf_sdbrcm_pktfree2(struct brcmf_sdio *bus, struct sk_buff *pkt) argument 681 brcmf_sdbrcm_htclk(struct brcmf_sdio *bus, bool on, bool pendok) argument 802 brcmf_sdbrcm_sdclk(struct brcmf_sdio *bus, bool on) argument 815 brcmf_sdbrcm_clkctl(struct brcmf_sdio *bus, uint target, bool pendok) argument 871 brcmf_sdbrcm_bussleep(struct brcmf_sdio *bus, bool sleep) argument 943 bus_wake(struct brcmf_sdio *bus) argument 949 brcmf_sdbrcm_hostmail(struct brcmf_sdio *bus) argument 1025 brcmf_sdbrcm_rxfail(struct brcmf_sdio *bus, bool abort, bool rtx) argument 1086 brcmf_sdbrcm_glom_from_buf(struct brcmf_sdio *bus, uint len) argument 1109 brcmf_sdbrcm_glom_len(struct brcmf_sdio *bus) argument 1120 brcmf_sdbrcm_free_glom(struct brcmf_sdio *bus) argument 1130 brcmf_sdbrcm_rxglom(struct brcmf_sdio *bus, u8 rxseq) argument 1485 brcmf_sdbrcm_dcmd_resp_wait(struct brcmf_sdio *bus, uint *condition, bool *pending) argument 1507 brcmf_sdbrcm_dcmd_resp_wake(struct brcmf_sdio *bus) argument 1515 brcmf_sdbrcm_read_control(struct brcmf_sdio *bus, u8 *hdr, uint len, uint doff) argument 1604 brcmf_pad(struct brcmf_sdio *bus, u16 *pad, u16 *rdlen) argument 1617 brcmf_alloc_pkt_and_read(struct brcmf_sdio *bus, u16 rdlen, struct sk_buff **pkt, u8 **rxbuf) argument 1649 brcmf_check_rxbuf(struct brcmf_sdio *bus, struct sk_buff *pkt, u8 *rxbuf, u8 rxseq, u16 nextlen, u16 *len) argument 1705 brcmf_sdbrcm_readframes(struct brcmf_sdio *bus, uint maxframes, bool *finished) argument 2098 brcmf_sdbrcm_wait_for_event(struct brcmf_sdio *bus, bool *lockvar) argument 2108 brcmf_sdbrcm_wait_event_wakeup(struct brcmf_sdio *bus) argument 2117 brcmf_sdbrcm_txpkt(struct brcmf_sdio *bus, struct sk_buff *pkt, uint chan, bool free_pkt) argument 2254 brcmf_sdbrcm_sendfromq(struct brcmf_sdio *bus, uint maxframes) argument 2318 struct brcmf_sdio *bus = sdiodev->bus; local 2391 brcmf_sdbrcm_dpc(struct brcmf_sdio *bus) argument 2637 struct brcmf_sdio *bus = (struct brcmf_sdio *) data; local 2668 struct brcmf_sdio *bus = sdiodev->bus; local 2719 brcmf_sdbrcm_membytes(struct brcmf_sdio *bus, bool write, u32 address, u8 *data, uint size) argument 2780 brcmf_sdbrcm_readconsole(struct brcmf_sdio *bus) argument 2857 brcmf_tx_frame(struct brcmf_sdio *bus, u8 *frame, u16 len) argument 2910 struct brcmf_sdio *bus = sdiodev->bus; local 3025 struct brcmf_sdio *bus = sdiodev->bus; local 3058 brcmf_sdbrcm_downloadvars(struct brcmf_sdio *bus, void *arg, int len) argument 3091 brcmf_sdbrcm_write_vars(struct brcmf_sdio *bus) argument 3180 brcmf_sdbrcm_download_state(struct brcmf_sdio *bus, bool enter) argument 3229 brcmf_sdbrcm_get_image(char *buf, int len, struct brcmf_sdio *bus) argument 3239 brcmf_sdbrcm_download_code_file(struct brcmf_sdio *bus) argument 3338 brcmf_sdbrcm_download_nvram(struct brcmf_sdio *bus) argument 3385 _brcmf_sdbrcm_download_firmware(struct brcmf_sdio *bus) argument 3418 brcmf_sdbrcm_download_firmware(struct brcmf_sdio *bus) argument 3436 struct brcmf_sdio *bus = sdiodev->bus; local 3538 struct brcmf_sdio *bus = (struct brcmf_sdio *) arg; local 3570 brcmf_sdbrcm_bus_watchdog(struct brcmf_sdio *bus) argument 3662 brcmf_sdbrcm_release_malloc(struct brcmf_sdio *bus) argument 3674 brcmf_sdbrcm_probe_malloc(struct brcmf_sdio *bus) argument 3710 brcmf_sdbrcm_probe_attach(struct brcmf_sdio *bus, u32 regsva) argument 3795 brcmf_sdbrcm_probe_init(struct brcmf_sdio *bus) argument 3830 struct brcmf_sdio *bus = (struct brcmf_sdio *)data; local 3850 struct brcmf_sdio *bus = (struct brcmf_sdio *)data; local 3861 brcmf_sdbrcm_release_dongle(struct brcmf_sdio *bus) argument 3878 brcmf_sdbrcm_release(struct brcmf_sdio *bus) argument 3902 struct brcmf_sdio *bus; local 4020 struct brcmf_sdio *bus = (struct brcmf_sdio *)ptr; local 4031 brcmf_sdbrcm_wd_timer(struct brcmf_sdio *bus, uint wdtick) argument [all...] |
/drivers/bcma/ |
H A D | bcma_private.h | 16 int bcma_bus_register(struct bcma_bus *bus); 17 void bcma_bus_unregister(struct bcma_bus *bus); 18 int __init bcma_bus_early_register(struct bcma_bus *bus, 22 int bcma_bus_suspend(struct bcma_bus *bus); 23 int bcma_bus_resume(struct bcma_bus *bus); 27 int bcma_bus_scan(struct bcma_bus *bus); 28 int __init bcma_bus_scan_early(struct bcma_bus *bus, 31 void bcma_init_bus(struct bcma_bus *bus); 34 int bcma_sprom_get(struct bcma_bus *bus);
|
H A D | scan.c | 95 static u32 bcma_scan_read32(struct bcma_bus *bus, u8 current_coreidx, argument 98 return readl(bus->mmio + offset); 101 static void bcma_scan_switch_core(struct bcma_bus *bus, u32 addr) argument 103 if (bus->hosttype == BCMA_HOSTTYPE_PCI) 104 pci_write_config_dword(bus->host_pci, BCMA_PCI_BAR0_WIN, 108 static u32 bcma_erom_get_ent(struct bcma_bus *bus, u32 **eromptr) argument 120 static s32 bcma_erom_get_ci(struct bcma_bus *bus, u32 **eromptr) argument 122 u32 ent = bcma_erom_get_ent(bus, eromptr); 130 static bool bcma_erom_is_end(struct bcma_bus *bus, u32 **eromptr) argument 132 u32 ent = bcma_erom_get_ent(bus, erompt 137 bcma_erom_is_bridge(struct bcma_bus *bus, u32 **eromptr) argument 146 bcma_erom_skip_component(struct bcma_bus *bus, u32 **eromptr) argument 160 bcma_erom_get_mst_port(struct bcma_bus *bus, u32 **eromptr) argument 170 bcma_erom_get_addr_desc(struct bcma_bus *bus, u32 **eromptr, u32 type, u8 port) argument 203 bcma_find_core_by_index(struct bcma_bus *bus, u16 index) argument 215 bcma_get_next_core(struct bcma_bus *bus, u32 __iomem **eromptr, struct bcma_device_id *match, int core_num, struct bcma_device *core) argument 353 bcma_init_bus(struct bcma_bus *bus) argument 372 bcma_bus_scan(struct bcma_bus *bus) argument 433 bcma_bus_scan_early(struct bcma_bus *bus, struct bcma_device_id *match, struct bcma_device *core) argument [all...] |
H A D | host_pci.c | 16 pci_write_config_dword(core->bus->host_pci, BCMA_PCI_BAR0_WIN, 18 pci_write_config_dword(core->bus->host_pci, BCMA_PCI_BAR0_WIN2, 20 core->bus->mapped_core = core; 35 if (core->bus->mapped_core != core) 43 return ioread8(core->bus->mmio + offset); 49 return ioread16(core->bus->mmio + offset); 55 return ioread32(core->bus->mmio + offset); 62 iowrite8(value, core->bus->mmio + offset); 69 iowrite16(value, core->bus->mmio + offset); 76 iowrite32(value, core->bus 160 struct bcma_bus *bus; local 227 struct bcma_bus *bus = pci_get_drvdata(dev); local 241 struct bcma_bus *bus = pci_get_drvdata(pdev); local 251 struct bcma_bus *bus = pci_get_drvdata(pdev); local [all...] |
/drivers/pcmcia/ |
H A D | cardbus.c | 30 static void cardbus_config_irq_and_cls(struct pci_bus *bus, int irq) argument 34 list_for_each_entry(dev, &bus->devices, bus_list) { 69 struct pci_bus *bus = s->cb_dev->subordinate; local 73 s->functions = pci_scan_slot(bus, PCI_DEVFN(0, 0)); 74 pci_fixup_cardbus(bus); 76 max = bus->secondary; 78 list_for_each_entry(dev, &bus->devices, bus_list) 81 max = pci_scan_bridge(bus, dev, max, pass); 86 pci_bus_size_bridges(bus); 87 pci_bus_assign_resources(bus); [all...] |
/drivers/net/phy/ |
H A D | mdio-octeon.c | 27 static int octeon_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum) argument 29 struct octeon_mdiobus *p = bus->priv; 42 * Wait 1000 clocks so we don't saturate the RSL bus 55 static int octeon_mdiobus_write(struct mii_bus *bus, int phy_id, argument 58 struct octeon_mdiobus *p = bus->priv; 75 * Wait 1000 clocks so we don't saturate the RSL bus 90 struct octeon_mdiobus *bus; local 95 bus = devm_kzalloc(&pdev->dev, sizeof(*bus), GFP_KERNEL); 96 if (!bus) 149 struct octeon_mdiobus *bus; local [all...] |
H A D | mdio_bus.c | 42 * If non-zero, then bus->priv is points to that memory. 44 * Description: called by a bus driver to allocate an mii_bus 49 struct mii_bus *bus; local 50 size_t aligned_size = ALIGN(sizeof(*bus), NETDEV_ALIGN); 57 alloc_size = sizeof(*bus); 59 bus = kzalloc(alloc_size, GFP_KERNEL); 60 if (bus) { 61 bus->state = MDIOBUS_ALLOCATED; 63 bus->priv = (void *)bus 79 struct mii_bus *bus = to_mii_bus(d); local 100 mdiobus_register(struct mii_bus *bus) argument 154 mdiobus_unregister(struct mii_bus *bus) argument 178 mdiobus_free(struct mii_bus *bus) argument 195 mdiobus_scan(struct mii_bus *bus, int addr) argument 224 mdiobus_read(struct mii_bus *bus, int addr, u32 regnum) argument 249 mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val) argument [all...] |
/drivers/iommu/ |
H A D | intr_remapping.h | 6 unsigned int bus; /* PCI bus number */ member in struct:ioapic_scope 13 unsigned int bus; member in struct:hpet_scope
|
/drivers/media/video/cx23885/ |
H A D | cx23885-i2c.c | 38 MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 53 struct cx23885_i2c *bus = i2c_adap->algo_data; local 54 struct cx23885_dev *dev = bus->dev; 55 return cx_read(bus->reg_stat) & 0x01; 60 struct cx23885_i2c *bus = i2c_adap->algo_data; local 61 struct cx23885_dev *dev = bus->dev; 62 return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; 84 struct cx23885_i2c *bus = i2c_adap->algo_data; local 85 struct cx23885_dev *dev = bus->dev; 97 cx_write(bus 165 struct cx23885_i2c *bus = i2c_adap->algo_data; local 226 struct cx23885_i2c *bus = i2c_adap->algo_data; local 313 cx23885_i2c_register(struct cx23885_i2c *bus) argument 367 cx23885_i2c_unregister(struct cx23885_i2c *bus) argument [all...] |
/drivers/media/video/cx25821/ |
H A D | cx25821-i2c.c | 35 MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 51 struct cx25821_i2c *bus = i2c_adap->algo_data; local 52 struct cx25821_dev *dev = bus->dev; 53 return cx_read(bus->reg_stat) & 0x01; 58 struct cx25821_i2c *bus = i2c_adap->algo_data; local 59 struct cx25821_dev *dev = bus->dev; 60 return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; 82 struct cx25821_i2c *bus = i2c_adap->algo_data; local 83 struct cx25821_dev *dev = bus->dev; 95 cx_write(bus 176 struct cx25821_i2c *bus = i2c_adap->algo_data; local 239 struct cx25821_i2c *bus = i2c_adap->algo_data; local 302 cx25821_i2c_register(struct cx25821_i2c *bus) argument 332 cx25821_i2c_unregister(struct cx25821_i2c *bus) argument 361 cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value) argument 396 cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value) argument [all...] |
/drivers/base/ |
H A D | bus.c | 2 * bus.c - bus driver management 39 static struct bus_type *bus_get(struct bus_type *bus) argument 41 if (bus) { 42 kset_get(&bus->p->subsys); 43 return bus; 48 static void bus_put(struct bus_type *bus) argument 50 if (bus) 51 kset_put(&bus->p->subsys); 107 ret = bus_attr->show(subsys_priv->bus, bu 128 bus_create_file(struct bus_type *bus, struct bus_attribute *attr) argument 140 bus_remove_file(struct bus_type *bus, struct bus_attribute *attr) argument 174 struct bus_type *bus = bus_get(drv->bus); local 201 struct bus_type *bus = bus_get(drv->bus); local 229 show_drivers_autoprobe(struct bus_type *bus, char *buf) argument 234 store_drivers_autoprobe(struct bus_type *bus, const char *buf, size_t count) argument 244 store_drivers_probe(struct bus_type *bus, const char *buf, size_t count) argument 290 bus_for_each_dev(struct bus_type *bus, struct device *start, void *data, int (*fn)(struct device *, void *)) argument 324 bus_find_device(struct bus_type *bus, struct device *start, void *data, int (*match)(struct device *dev, void *data)) argument 361 bus_find_device_by_name(struct bus_type *bus, struct device *start, const char *name) argument 440 bus_for_each_drv(struct bus_type *bus, struct device_driver *start, void *data, int (*fn)(struct device_driver *, void *)) argument 459 device_add_attrs(struct bus_type *bus, struct device *dev) argument 478 device_remove_attrs(struct bus_type *bus, struct device *dev) argument 498 struct bus_type *bus = bus_get(dev->bus); local 535 struct bus_type *bus = dev->bus; local 566 struct bus_type *bus = dev->bus; local 591 driver_add_attrs(struct bus_type *bus, struct device_driver *drv) argument 611 driver_remove_attrs(struct bus_type *bus, struct device_driver *drv) argument 650 add_probe_files(struct bus_type *bus) argument 665 remove_probe_files(struct bus_type *bus) argument 673 add_probe_files(struct bus_type *bus) argument 674 remove_probe_files(struct bus_type *bus) argument 694 struct bus_type *bus; local 808 bus_rescan_devices(struct bus_type *bus) argument 859 bus_add_attrs(struct bus_type *bus) argument 879 bus_remove_attrs(struct bus_type *bus) argument 905 bus_uevent_store(struct bus_type *bus, const char *buf, size_t count) argument 925 __bus_register(struct bus_type *bus, struct lock_class_key *key) argument 1009 bus_unregister(struct bus_type *bus) argument 1025 bus_register_notifier(struct bus_type *bus, struct notifier_block *nb) argument 1031 bus_unregister_notifier(struct bus_type *bus, struct notifier_block *nb) argument 1037 bus_get_kset(struct bus_type *bus) argument 1043 bus_get_device_klist(struct bus_type *bus) argument 1078 bus_sort_breadthfirst(struct bus_type *bus, int (*compare)(const struct device *a, const struct device *b)) argument [all...] |