/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/amba/ |
H A D | Makefile | 1 obj-y += bus.o
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/i2c/ |
H A D | i2c.c | 39 static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, 48 static int snd_i2c_bus_free(struct snd_i2c_bus *bus) argument 53 snd_assert(bus != NULL, return -EINVAL); 54 while (!list_empty(&bus->devices)) { 55 device = snd_i2c_device(bus->devices.next); 58 if (bus->master) 59 list_del(&bus->buses); 61 while (!list_empty(&bus->buses)) { 62 slave = snd_i2c_slave_bus(bus->buses.next); 63 snd_device_free(bus 74 struct snd_i2c_bus *bus = device->device_data; local 81 struct snd_i2c_bus *bus; local 111 snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name, unsigned char addr, struct snd_i2c_device **rdevice) argument 157 snd_i2c_probeaddr(struct snd_i2c_bus *bus, unsigned short addr) argument 168 snd_i2c_bit_hw_start(struct snd_i2c_bus *bus) argument 174 snd_i2c_bit_hw_stop(struct snd_i2c_bus *bus) argument 180 snd_i2c_bit_direction(struct snd_i2c_bus *bus, int clock, int data) argument 186 snd_i2c_bit_set(struct snd_i2c_bus *bus, int clock, int data) argument 192 snd_i2c_bit_data(struct snd_i2c_bus *bus, int ack) argument 197 snd_i2c_bit_start(struct snd_i2c_bus *bus) argument 206 snd_i2c_bit_stop(struct snd_i2c_bus *bus) argument 214 snd_i2c_bit_send(struct snd_i2c_bus *bus, int data) argument 221 snd_i2c_bit_ack(struct snd_i2c_bus *bus) argument 234 snd_i2c_bit_sendbyte(struct snd_i2c_bus *bus, unsigned char data) argument 245 snd_i2c_bit_readbyte(struct snd_i2c_bus *bus, int last) argument 266 struct snd_i2c_bus *bus = device->bus; local 290 struct snd_i2c_bus *bus = device->bus; local 312 snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, unsigned short addr) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/mips/pci/ |
H A D | fixup-ocelot3.c | 10 * two PCI busses and each bus has two PCI slots. 28 int bus = dev->bus->number; local 30 if (bus == 0 && slot == 1) 32 if (bus == 0 && slot == 2) 34 if (bus == 1 && slot == 1) 36 if (bus == 1 && slot == 2)
|
H A D | fixup-ocelot-c.c | 24 int bus = dev->bus->number; local 26 if (bus == 0 && slot == 1) 28 if (bus == 1 && slot == 1) 30 if (bus == 1 && slot == 2)
|
H A D | fixup-tb0287.c | 27 unsigned char bus; local 30 bus = dev->bus->number; 31 if (bus == 0) { 42 } else if (bus == 1) { 54 } else if (bus > 1) {
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/sound/ |
H A D | tea6330t.h | 27 int snd_tea6330t_detect(struct snd_i2c_bus *bus, int equalizer); 28 int snd_tea6330t_update_mixer(struct snd_card *card, struct snd_i2c_bus *bus,
|
H A D | i2c.h | 28 struct snd_i2c_bus *bus; /* I2C bus */ member in struct:snd_i2c_device 40 void (*start)(struct snd_i2c_bus *bus); /* transfer start */ 41 void (*stop)(struct snd_i2c_bus *bus); /* transfer stop */ 42 void (*direction)(struct snd_i2c_bus *bus, int clock, int data); /* set line direction (0 = write, 1 = read) */ 43 void (*setlines)(struct snd_i2c_bus *bus, int clock, int data); 44 int (*getclock)(struct snd_i2c_bus *bus); 45 int (*getdata)(struct snd_i2c_bus *bus, int ack); 51 int (*probeaddr)(struct snd_i2c_bus *bus, unsigned short addr); 60 struct snd_i2c_bus *master; /* master bus whe 84 snd_i2c_lock(struct snd_i2c_bus *bus) argument 92 snd_i2c_unlock(struct snd_i2c_bus *bus) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/base/ |
H A D | bus.c | 2 * bus.c - bus driver management 96 struct bus_type * bus = to_bus(kobj); local 100 ret = bus_attr->show(bus, buf); 109 struct bus_type * bus = to_bus(kobj); local 113 ret = bus_attr->store(bus, buf, count); 122 int bus_create_file(struct bus_type * bus, struct bus_attribute * attr) argument 125 if (get_bus(bus)) { 126 error = sysfs_create_file(&bus->subsys.kobj, &attr->attr); 127 put_bus(bus); 133 bus_remove_file(struct bus_type * bus, struct bus_attribute * attr) argument 163 struct bus_type *bus = get_bus(drv->bus); local 190 struct bus_type *bus = get_bus(drv->bus); local 215 show_drivers_autoprobe(struct bus_type *bus, char *buf) argument 220 store_drivers_autoprobe(struct bus_type *bus, const char *buf, size_t count) argument 230 store_drivers_probe(struct bus_type *bus, const char *buf, size_t count) argument 270 bus_for_each_dev(struct bus_type * bus, struct device * start, void * data, int (*fn)(struct device *, void *)) argument 303 bus_find_device(struct bus_type *bus, struct device *start, void *data, int (*match)(struct device *, void *)) argument 349 bus_for_each_drv(struct bus_type * bus, struct device_driver * start, void * data, int (*fn)(struct device_driver *, void *)) argument 367 device_add_attrs(struct bus_type *bus, struct device *dev) argument 386 device_remove_attrs(struct bus_type * bus, struct device * dev) argument 421 struct bus_type * bus = get_bus(dev->bus); local 463 struct bus_type *bus = dev->bus; local 504 driver_add_attrs(struct bus_type * bus, struct device_driver * drv) argument 525 driver_remove_attrs(struct bus_type * bus, struct device_driver * drv) argument 559 add_probe_files(struct bus_type *bus) argument 583 remove_probe_files(struct bus_type *bus) argument 591 add_probe_files(struct bus_type *bus) argument 592 remove_probe_files(struct bus_type *bus) argument 602 struct bus_type * bus = get_bus(drv->bus); local 694 bus_rescan_devices(struct bus_type * bus) argument 721 get_bus(struct bus_type *bus) argument 727 put_bus(struct bus_type * bus) argument 749 bus_add_attrs(struct bus_type * bus) argument 768 bus_remove_attrs(struct bus_type * bus) argument 800 bus_register(struct bus_type * bus) argument 862 bus_unregister(struct bus_type * bus) argument 872 bus_register_notifier(struct bus_type *bus, struct notifier_block *nb) argument 878 bus_unregister_notifier(struct bus_type *bus, struct notifier_block *nb) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/pasemi/ |
H A D | gpio_mdio.c | 44 #define MDC_PIN(bus) (((struct gpio_priv *)bus->priv)->mdc_pin) 45 #define MDIO_PIN(bus) (((struct gpio_priv *)bus->priv)->mdio_pin) 47 static inline void mdio_lo(struct mii_bus *bus) argument 49 out_le32(gpio_regs+0x10, 1 << MDIO_PIN(bus)); 52 static inline void mdio_hi(struct mii_bus *bus) argument 54 out_le32(gpio_regs, 1 << MDIO_PIN(bus)); 57 static inline void mdc_lo(struct mii_bus *bus) argument 59 out_le32(gpio_regs+0x10, 1 << MDC_PIN(bus)); 62 mdc_hi(struct mii_bus *bus) argument 67 mdio_active(struct mii_bus *bus) argument 72 mdio_tristate(struct mii_bus *bus) argument 77 mdio_read(struct mii_bus *bus) argument 82 clock_out(struct mii_bus *bus, int bit) argument 95 bitbang_pre(struct mii_bus *bus, int read, u8 addr, u8 reg) argument 125 gpio_mdio_read(struct mii_bus *bus, int phy_id, int location) argument 164 gpio_mdio_write(struct mii_bus *bus, int phy_id, int location, u16 val) argument 210 gpio_mdio_reset(struct mii_bus *bus) argument 300 struct mii_bus *bus = dev_get_drvdata(&dev->dev); local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ppc/boot/simple/ |
H A D | qspan_pci.c | 4 * QSpan Motorola bus to PCI bridge. The config address register 19 * the bus times out and we get a machine check interrupt. So, the 52 * PCI Bridge hack. We assume (correctly) that bus 0 is the primary 53 * PCI bus from the QSPAN. If we are called with a bus number other 75 #define mk_config_addr(bus, dev, offset) \ 76 (((bus)<<16) | ((dev)<<8) | (offset & 0xfc)) 78 #define mk_config_type1(bus, dev, offset) \ 79 mk_config_addr(bus, dev, offset) | 1; 98 * meet the timing specs of the PQ bus fo 146 qs_pci_read_config_byte(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned char *val) argument 169 qs_pci_read_config_word(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned short *val) argument 192 qs_pci_read_config_dword(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned int *val) argument 207 qs_pci_write_config_byte(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned char val) argument 231 qs_pci_write_config_word(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned short val) argument 255 qs_pci_write_config_dword(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned int val) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sparc64/ |
H A D | isa.h | 20 struct sparc_isa_bridge *bus; member in struct:sparc_isa_device 41 #define for_each_isa(bus) \ 42 for((bus) = isa_chain; (bus); (bus) = (bus)->next) 44 #define for_each_isadev(dev, bus) \ 45 for((dev) = (bus)->devices; (dev); (dev) = (dev)->next)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-powerpc/ |
H A D | pmac_low_i2c.h | 30 /* i2c bus type */ 37 /* i2c bus features */ 42 /* multibus : device node holds multiple busses, bus number is 55 /* Lookup an i2c bus for a device-node. The node can be either the bus 56 * node itself or a device below it. In the case of a multibus, the bus 62 /* Get the address for an i2c device. This strips the bus number if 68 /* Get infos about a bus */ 69 extern struct device_node *pmac_i2c_get_controller(struct pmac_i2c_bus *bus); 70 extern struct device_node *pmac_i2c_get_bus_node(struct pmac_i2c_bus *bus); [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-generic/ |
H A D | topology.h | 49 #define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ 51 node_to_cpumask(pcibus_to_node(bus)) \
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ia64/pci/ |
H A D | fixup.c | 30 struct pci_bus *bus; local 42 bus = pdev->bus; 43 while (bus) { 44 bridge = bus->self; 61 bus = bus->parent;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/i386/pci/ |
H A D | mmconfig.c | 28 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) argument 33 if (seg == 0 && bus < PCI_MMCFG_MAX_CHECK_BUS && 34 test_bit(PCI_SLOT(devfn) + 32*bus, pci_mmcfg_fallback_slots)) 40 (cfg->start_bus_number <= bus) && 41 (cfg->end_bus_number >= bus)) 52 static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) argument 54 u32 dev_base = base | (bus << 20) | (devfn << 12); 64 static int pci_mmcfg_read(unsigned int seg, unsigned int bus, argument 70 if ((bus > 255) || (devfn > 255) || (reg > 4095)) { 75 base = get_base_addr(seg, bus, devf 100 pci_mmcfg_write(unsigned int seg, unsigned int bus, unsigned int devfn, int reg, int len, u32 value) argument 139 pci_mmcfg_arch_reachable(unsigned int seg, unsigned int bus, unsigned int devfn) argument [all...] |
H A D | numa.c | 14 #define PCI_CONF1_MQ_ADDRESS(bus, devfn, reg) \ 15 (0x80000000 | (BUS2LOCAL(bus) << 16) | (devfn << 8) | (reg & ~3)) 17 static int pci_conf1_mq_read(unsigned int seg, unsigned int bus, argument 22 if (!value || (bus >= MAX_MP_BUSSES) || (devfn > 255) || (reg > 255)) 27 outl_quad(PCI_CONF1_MQ_ADDRESS(bus, devfn, reg), 0xCF8, BUS2QUAD(bus)); 31 *value = inb_quad(0xCFC + (reg & 3), BUS2QUAD(bus)); 34 *value = inw_quad(0xCFC + (reg & 2), BUS2QUAD(bus)); 37 *value = inl_quad(0xCFC, BUS2QUAD(bus)); 46 static int pci_conf1_mq_write(unsigned int seg, unsigned int bus, argument [all...] |
H A D | acpi.c | 10 struct pci_bus *bus; local 17 bus = pcibios_scan_root(busnum); 19 if (bus != NULL) { 22 bus->sysdata = (void *)(unsigned long)pxm_to_node(pxm); 23 printk("bus %d -> pxm %d -> node %ld\n", 24 busnum, pxm, (long)(bus->sysdata)); 29 return bus;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/pseries/ |
H A D | pci_dlpar.c | 35 find_bus_among_children(struct pci_bus *bus, argument 42 busdn = pci_bus_to_OF_node(bus); 44 return bus; 46 list_for_each(tmp, &bus->children) { 59 if (!pdn || !pdn->phb || !pdn->phb->bus) 62 return find_bus_among_children(pdn->phb->bus, dn); 67 * pcibios_remove_pci_devices - remove all devices under this bus 69 * Remove all of the PCI devices under this bus both from the 73 pcibios_remove_pci_devices(struct pci_bus *bus) argument 77 list_for_each_entry_safe(dev, tmp, &bus 86 pcibios_fixup_new_pci_devices(struct pci_bus *bus, int fix_bus) argument 156 pcibios_add_pci_devices(struct pci_bus * bus) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/phy/ |
H A D | mdio_bus.c | 39 * mdiobus_register - bring up all the PHYs on a given bus and attach them to bus 40 * @bus: target mii_bus 42 * Description: Called by a bus driver to bring up all the PHYs 43 * on a given bus, and attach them to the bus. 47 int mdiobus_register(struct mii_bus *bus) argument 52 spin_lock_init(&bus->mdio_lock); 54 if (NULL == bus || NULL == bus 108 mdiobus_unregister(struct mii_bus *bus) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ppc/syslib/ |
H A D | qspan_pci.c | 34 * the bus times out and we get a machine check interrupt. So, the 67 * PCI Bridge hack. We assume (correctly) that bus 0 is the primary 68 * PCI bus from the QSPAN. If we are called with a bus number other 90 #define mk_config_addr(bus, dev, offset) \ 91 (((bus)<<16) | ((dev)<<8) | (offset & 0xfc)) 93 #define mk_config_type1(bus, dev, offset) \ 94 mk_config_addr(bus, dev, offset) | 1; 98 int qspan_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn, argument 107 if ((bus > 137 qspan_pcibios_read_config_word(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned short *val) argument 176 qspan_pcibios_read_config_dword(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned int *val) argument 210 qspan_pcibios_write_config_byte(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned char val) argument 250 qspan_pcibios_write_config_word(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned short val) argument 290 qspan_pcibios_write_config_dword(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned int val) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pci/hotplug/ |
H A D | rpaphp_pci.c | 69 struct pci_bus *bus = slot->bus; local 72 bridge = bus->self; 76 sprintf(slot->name, "%04x:%02x:00.0", pci_domain_nr(bus), 77 bus->number); 91 struct pci_bus *bus; local 108 bus = pcibios_find_pci_bus(slot->dn); 109 if (!bus) { 115 slot->bus = bus; [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/cell/ |
H A D | io-workarounds.c | 44 struct spider_pci_bus *bus = &spider_pci_busses[i]; local 45 if (paddr && paddr >= bus->mmio_start && paddr < bus->mmio_end) 46 return bus; 47 if (vaddr && vaddr >= bus->pio_vstart && vaddr < bus->pio_vend) 48 return bus; 55 struct spider_pci_bus *bus; local 62 bus = &spider_pci_busses[token - 1]; 83 bus 172 struct spider_pci_bus *bus; local 190 spider_pci_setup_chip(struct spider_pci_bus *bus) argument 203 struct spider_pci_bus *bus = &spider_pci_busses[spider_pci_count]; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/powerpc/platforms/powermac/ |
H A D | low_i2c.c | 74 * A bus structure. Each bus in the system has such a structure associated. 93 int (*open)(struct pmac_i2c_bus *bus); 94 void (*close)(struct pmac_i2c_bus *bus); 95 int (*xfer)(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, 375 static int kw_i2c_open(struct pmac_i2c_bus *bus) argument 377 struct pmac_i2c_host_kw *host = bus->hostdata; 382 static void kw_i2c_close(struct pmac_i2c_bus *bus) argument 384 struct pmac_i2c_host_kw *host = bus->hostdata; 388 static int kw_i2c_xfer(struct pmac_i2c_bus *bus, u argument 559 struct pmac_i2c_bus *bus; local 638 u8 bus; member in struct:pmu_i2c_hdr 653 pmu_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, u32 subaddr, u8 *data, int len) argument 759 struct pmac_i2c_bus *bus; local 818 smu_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, u32 subaddr, u8 *data, int len) argument 877 struct pmac_i2c_bus *bus; local 939 struct pmac_i2c_bus *bus; local 977 pmac_i2c_get_controller(struct pmac_i2c_bus *bus) argument 983 pmac_i2c_get_bus_node(struct pmac_i2c_bus *bus) argument 989 pmac_i2c_get_type(struct pmac_i2c_bus *bus) argument 995 pmac_i2c_get_flags(struct pmac_i2c_bus *bus) argument 1001 pmac_i2c_get_channel(struct pmac_i2c_bus *bus) argument 1008 pmac_i2c_attach_adapter(struct pmac_i2c_bus *bus, struct i2c_adapter *adapter) argument 1016 pmac_i2c_detach_adapter(struct pmac_i2c_bus *bus, struct i2c_adapter *adapter) argument 1024 pmac_i2c_get_adapter(struct pmac_i2c_bus *bus) argument 1032 struct pmac_i2c_bus *bus; local 1043 struct pmac_i2c_bus *bus = pmac_i2c_find_bus(dev); local 1053 struct pmac_i2c_bus *bus, *found = NULL; local 1069 struct pmac_i2c_bus *bus, *found = NULL; local 1085 pmac_i2c_open(struct pmac_i2c_bus *bus, int polled) argument 1102 pmac_i2c_close(struct pmac_i2c_bus *bus) argument 1112 pmac_i2c_setmode(struct pmac_i2c_bus *bus, int mode) argument 1130 pmac_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, u32 subaddr, u8 *data, int len) argument 1160 struct pmac_i2c_bus *bus; local 1208 struct pmac_i2c_bus *bus; member in struct:pmac_i2c_pf_inst 1219 struct pmac_i2c_bus *bus; local 1472 struct pmac_i2c_bus *bus; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/isdn/hardware/eicon/ |
H A D | diva_pci.h | 11 unsigned long divasa_get_pci_irq(unsigned char bus, 13 unsigned long divasa_get_pci_bar(unsigned char bus,
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/mips/lib/ |
H A D | iomap-pci.c | 16 struct pci_controller *ctrl = dev->bus->sysdata; 21 struct pci_bus *bus = dev->bus; local 24 while (bus->parent) 25 bus = bus->parent; 29 sprintf(name, "%04x:%02x", pci_domain_nr(bus), bus->number); 30 printk(KERN_WARNING "io_map_base of root PCI bus %s unset. "
|