Home
last modified time | relevance | path

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

12345678910>>...26

/linux-2.4.37.9/drivers/media/video/
Di2c-old.c49 static void i2c_attach_device(struct i2c_bus *bus, struct i2c_driver *driver) in i2c_attach_device() argument
57 LOCK_I2C_BUS(bus); in i2c_attach_device()
60 i2c_start(bus); in i2c_attach_device()
61 ack = i2c_sendbyte(bus,addr,0); in i2c_attach_device()
62 i2c_stop(bus); in i2c_attach_device()
66 UNLOCK_I2C_BUS(bus); in i2c_attach_device()
78 if (NULL == bus->devices[j]) in i2c_attach_device()
85 device->bus = bus; in i2c_attach_device()
98 bus->devices[j] = device; in i2c_attach_device()
99 bus->devcount++; in i2c_attach_device()
[all …]
Dsaa7185.c56 struct i2c_bus *bus; member
78 LOCK_I2C_BUS(dev->bus); in saa7185_read()
80 i2c_start(dev->bus); in saa7185_read()
81 i2c_sendbyte(dev->bus, dev->addr | 1, I2C_DELAY); in saa7185_read()
82 ack = i2c_readbyte(dev->bus, 1); in saa7185_read()
83 i2c_stop(dev->bus); in saa7185_read()
84 UNLOCK_I2C_BUS(dev->bus); in saa7185_read()
96 LOCK_I2C_BUS(dev->bus); in saa7185_write()
98 i2c_start(dev->bus); in saa7185_write()
99 i2c_sendbyte(dev->bus, dev->addr, I2C_DELAY); in saa7185_write()
[all …]
Dbt819.c50 struct i2c_bus *bus; member
90 LOCK_I2C_BUS(dev->bus); in bt819_write()
91 i2c_start(dev->bus); in bt819_write()
92 i2c_sendbyte(dev->bus, dev->addr, I2C_DELAY); in bt819_write()
93 i2c_sendbyte(dev->bus, subaddr, I2C_DELAY); in bt819_write()
94 ack = i2c_sendbyte(dev->bus, data, I2C_DELAY); in bt819_write()
96 i2c_stop(dev->bus); in bt819_write()
97 UNLOCK_I2C_BUS(dev->bus); in bt819_write()
114 LOCK_I2C_BUS(dev->bus); in bt819_write_block()
115 i2c_start(dev->bus); in bt819_write_block()
[all …]
Dsaa7111.c46 struct i2c_bus *bus; member
70 LOCK_I2C_BUS(dev->bus); in saa7111_write()
71 i2c_start(dev->bus); in saa7111_write()
72 i2c_sendbyte(dev->bus, dev->addr, I2C_DELAY); in saa7111_write()
73 i2c_sendbyte(dev->bus, subaddr, I2C_DELAY); in saa7111_write()
74 ack = i2c_sendbyte(dev->bus, data, I2C_DELAY); in saa7111_write()
76 i2c_stop(dev->bus); in saa7111_write()
77 UNLOCK_I2C_BUS(dev->bus); in saa7111_write()
88 LOCK_I2C_BUS(dev->bus); in saa7111_write_block()
89 i2c_start(dev->bus); in saa7111_write_block()
[all …]
/linux-2.4.37.9/arch/mips/tx4927/toshiba_rbtx4927/
Dtoshiba_rbtx4927_pci_ops.c76 mkaddr(unsigned char bus, unsigned char dev_fn, unsigned char where, in mkaddr() argument
79 if (bus > 0) { in mkaddr()
81 tx4927_pcicptr->g2pcfgadrs = ((bus & 0xff) << 0x10) | in mkaddr()
88 tx4927_pcicptr->g2pcfgadrs = ((bus & 0xff) << 0x10) | in mkaddr()
123 unsigned char bus, func_num; in tx4927_pcibios_read_config_byte() local
129 if (dev->bus->parent != NULL) { in tx4927_pcibios_read_config_byte()
130 bus = dev->bus->number; in tx4927_pcibios_read_config_byte()
131 db_assert(bus != 0); in tx4927_pcibios_read_config_byte()
133 bus = 0; in tx4927_pcibios_read_config_byte()
137 if (mkaddr(bus, dev->devfn, where, &flags)) in tx4927_pcibios_read_config_byte()
[all …]
/linux-2.4.37.9/arch/mips/pmc-sierra/yosemite/
Dht-irq.c63 void __init titan_ht_pcibios_fixup_bus(struct pci_bus *bus) in titan_ht_pcibios_fixup_bus() argument
65 struct pci_bus *current_bus = bus; in titan_ht_pcibios_fixup_bus()
89 bus->ops->read_word(devices, PCI_COMMAND, &cmd); in titan_ht_pcibios_fixup_bus()
91 bus->ops->write_word(devices, PCI_COMMAND, cmd); in titan_ht_pcibios_fixup_bus()
102 bus->ops->write_byte(devices, 0xc2, 0x48); in titan_ht_pcibios_fixup_bus()
113 bus->ops->write_dword(devices, 0xa0, 0xc0c1c0c0); in titan_ht_pcibios_fixup_bus()
114 bus->ops->write_dword(devices, 0xa4, 0xc0c3c0c2); in titan_ht_pcibios_fixup_bus()
115 bus->ops->write_dword(devices, 0xa8, 0xc0c1c0c0); in titan_ht_pcibios_fixup_bus()
116 bus->ops->write_dword(devices, 0xac, 0xc0c3c0c2); in titan_ht_pcibios_fixup_bus()
117 bus->ops->write_dword(devices, 0xb0, 0xc0c1c0c0); in titan_ht_pcibios_fixup_bus()
[all …]
Dht.c59 int dev, bus, func; in titan_ht_config_read_dword() local
63 bus = device->bus->number; in titan_ht_config_read_dword()
67 if (bus != 0) in titan_ht_config_read_dword()
68 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_ht_config_read_dword()
71 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_ht_config_read_dword()
103 int dev, bus, func; in titan_ht_config_read_word() local
107 bus = device->bus->number; in titan_ht_config_read_word()
111 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_ht_config_read_word()
144 int dev, bus, func; in titan_ht_config_read_byte() local
148 bus = device->bus->number; in titan_ht_config_read_byte()
[all …]
/linux-2.4.37.9/include/linux/
Di2c-old.h101 # define LOCK_I2C_BUS(bus) spin_lock_irqsave(&(bus->bus_lock),flags);
102 # define UNLOCK_I2C_BUS(bus) spin_unlock_irqrestore(&(bus->bus_lock),flags);
105 # define LOCK_I2C_BUS(bus) spin_lock(&(bus->bus_lock)); argument
106 # define UNLOCK_I2C_BUS(bus) spin_unlock(&(bus->bus_lock)); argument
110 # define LOCK_I2C_BUS(bus) { save_flags(flags); cli(); } argument
111 # define UNLOCK_I2C_BUS(bus) { restore_flags(flags); } argument
125 void (*attach_inform)(struct i2c_bus *bus, int id);
126 void (*detach_inform)(struct i2c_bus *bus, int id);
129 void (*i2c_setlines)(struct i2c_bus *bus, int ctrl, int data);
130 int (*i2c_getdataline)(struct i2c_bus *bus);
[all …]
/linux-2.4.37.9/arch/mips/momentum/ocelot_g/
Dpci.c81 static __inline__ int pci_range_ck(unsigned char bus, unsigned char dev) in pci_range_ck() argument
114 int dev, bus, func; in galileo_pcibios_read_config_dword() local
118 bus = device->bus->number; in galileo_pcibios_read_config_dword()
123 if (pci_range_ck(bus, dev)) in galileo_pcibios_read_config_dword()
127 if (bus == 0) { in galileo_pcibios_read_config_dword()
135 if (bus == 1) in galileo_pcibios_read_config_dword()
136 bus = 0; in galileo_pcibios_read_config_dword()
139 address = (bus << 16) | (dev << 11) | (func << 8) | in galileo_pcibios_read_config_dword()
155 int dev, bus, func; in galileo_pcibios_read_config_word() local
159 bus = device->bus->number; in galileo_pcibios_read_config_word()
[all …]
/linux-2.4.37.9/drivers/hotplug/
Dpci_hotplug_util.c53 static int build_dev (struct pci_bus *bus, unsigned int devfn, struct pci_dev **pci_dev) in build_dev() argument
64 my_dev->bus = bus; in build_dev()
65 my_dev->sysdata = bus->sysdata; in build_dev()
81 int pci_bus_read_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 *value) in pci_bus_read_config_byte() argument
86 dbg("%p, %d, %d, %p\n", bus, devfn, where, value); in pci_bus_read_config_byte()
87 dev = pci_find_slot(bus->number, devfn); in pci_bus_read_config_byte()
93 result = build_dev(bus, devfn, &dev); in pci_bus_read_config_byte()
112 int pci_bus_read_config_word (struct pci_bus *bus, unsigned int devfn, int where, u16 *value) in pci_bus_read_config_word() argument
117 dbg("%p, %d, %d, %p\n", bus, devfn, where, value); in pci_bus_read_config_word()
118 dev = pci_find_slot(bus->number, devfn); in pci_bus_read_config_word()
[all …]
/linux-2.4.37.9/arch/mips/momentum/ocelot_c/
Dpci.c80 static __inline__ int pci_range_ck(unsigned char bus, unsigned char dev) in pci_range_ck() argument
113 int dev, bus, func; in marvell_pcibios_read_config_dword() local
117 bus = device->bus->number; in marvell_pcibios_read_config_dword()
122 if (pci_range_ck(bus, dev)) in marvell_pcibios_read_config_dword()
126 if (bus == 0) { in marvell_pcibios_read_config_dword()
134 address = (bus << 16) | (dev << 11) | (func << 8) | in marvell_pcibios_read_config_dword()
150 int dev, bus, func; in marvell_pcibios_read_config_word() local
154 bus = device->bus->number; in marvell_pcibios_read_config_word()
159 if (pci_range_ck(bus, dev)) in marvell_pcibios_read_config_word()
163 if (bus == 0) { in marvell_pcibios_read_config_word()
[all …]
/linux-2.4.37.9/arch/ppc/kernel/
Dqspan_pci.c91 #define mk_config_addr(bus, dev, offset) \ argument
92 (((bus)<<16) | ((dev)<<8) | (offset & 0xfc))
94 #define mk_config_type1(bus, dev, offset) \ argument
95 mk_config_addr(bus, dev, offset) | 1;
97 int qspan_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn, in qspan_pcibios_read_config_byte() argument
106 if ((bus > 7) || (dev_fn > 127)) { in qspan_pcibios_read_config_byte()
118 if (bus == 0) in qspan_pcibios_read_config_byte()
119 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset); in qspan_pcibios_read_config_byte()
121 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset); in qspan_pcibios_read_config_byte()
136 int qspan_pcibios_read_config_word(unsigned char bus, unsigned char dev_fn, in qspan_pcibios_read_config_word() argument
[all …]
/linux-2.4.37.9/drivers/pci/
Dsetup-bus.c39 pbus_assign_resources_sorted(struct pci_bus *bus) in pbus_assign_resources_sorted() argument
47 for (ln=bus->devices.next; ln != &bus->devices; ln=ln->next) { in pbus_assign_resources_sorted()
89 pci_setup_bridge(struct pci_bus *bus) in pci_setup_bridge() argument
92 struct pci_dev *bridge = bus->self; in pci_setup_bridge()
98 ranges.io_start = bus->resource[0]->start; in pci_setup_bridge()
99 ranges.io_end = bus->resource[0]->end; in pci_setup_bridge()
100 ranges.mem_start = bus->resource[1]->start; in pci_setup_bridge()
101 ranges.mem_end = bus->resource[1]->end; in pci_setup_bridge()
102 ranges.prefetch_start = bus->resource[2]->start; in pci_setup_bridge()
103 ranges.prefetch_end = bus->resource[2]->end; in pci_setup_bridge()
[all …]
/linux-2.4.37.9/arch/mips/jmr3927/rbhma3100/
Dpci_ops.c71 mkaddr(unsigned char bus, unsigned char dev_fn, unsigned char where, int *flagsp) in mkaddr() argument
73 if (bus == 0 && dev_fn >= PCI_DEVFN(TX3927_PCIC_MAX_DEVNU, 0)) in mkaddr()
76 tx3927_pcicptr->ica = ((bus & 0xff) << 0x10) | in mkaddr()
106 unsigned char bus, func_num; in jmr3927_pcibios_read_config_byte() local
112 if (dev->bus->parent != NULL) { in jmr3927_pcibios_read_config_byte()
113 bus = dev->bus->number; in jmr3927_pcibios_read_config_byte()
114 db_assert(bus != 0); in jmr3927_pcibios_read_config_byte()
116 bus = 0; in jmr3927_pcibios_read_config_byte()
120 if (mkaddr(bus, dev->devfn, where, &flags)) in jmr3927_pcibios_read_config_byte()
131 unsigned char bus, func_num; in jmr3927_pcibios_read_config_word() local
[all …]
/linux-2.4.37.9/arch/mips/momentum/jaguar_atx/
Dpci.c83 static __inline__ int pci_range_ck(unsigned char bus, unsigned char dev) in pci_range_ck() argument
116 int dev, bus, func; in galileo_pcibios_read_config_dword() local
120 bus = device->bus->number; in galileo_pcibios_read_config_dword()
125 if (pci_range_ck(bus, dev)) in galileo_pcibios_read_config_dword()
129 if (bus == 0) { in galileo_pcibios_read_config_dword()
137 address = (bus << 16) | (dev << 11) | (func << 8) | in galileo_pcibios_read_config_dword()
153 int dev, bus, func; in galileo_pcibios_read_config_word() local
157 bus = device->bus->number; in galileo_pcibios_read_config_word()
162 if (pci_range_ck(bus, dev)) in galileo_pcibios_read_config_word()
166 if (bus == 0) { in galileo_pcibios_read_config_word()
[all …]
/linux-2.4.37.9/drivers/net/wan/8253x/
Dreadme.txt77 128: port 0: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG
78 129: port 1: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: openA: NOPRG
79 130: port 2: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: openA: NOPRG
80 131: port 3: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG
81 132: port 4: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG
82 133: port 5: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: openS: NOPRG
83 134: port 6: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG
84 135: port 7: sab82538: v3: chip 0: ATI 8520P: bus 2: slot 10: NR: close: NOPRG
85 136: port 0: sab82538: v2: chip 0: ATI WANMS: bus 2: slot 11: NR: openA: RS232
86 137: port 1: sab82538: v2: chip 0: ATI WANMS: bus 2: slot 11: NR: openA: RS232
[all …]
/linux-2.4.37.9/arch/m68k/kernel/
Dbios32.c98 struct pci_bus *bus; in disable_dev() local
106 bus = dev->bus; in disable_dev()
107 pcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd); in disable_dev()
110 pcibios_write_config_word(bus->number, dev->devfn, PCI_COMMAND, cmd); in disable_dev()
125 struct pci_bus *bus; in layout_dev() local
140 bus = dev->bus; in layout_dev()
141 pcibios_read_config_word(bus->number, dev->devfn, PCI_COMMAND, &cmd); in layout_dev()
150 pcibios_write_config_dword(bus->number, dev->devfn, reg, in layout_dev()
152 pcibios_read_config_dword(bus->number, dev->devfn, reg, &base); in layout_dev()
187 pcibios_write_config_dword(bus->number, dev->devfn, in layout_dev()
[all …]
/linux-2.4.37.9/arch/ia64/sn/io/machvec/
Dpci_bus_cvlink.c184 int bus; in sn_dma_flush_init() local
194 bus = (start >> 23) & 0x1; in sn_dma_flush_init()
211 bus = flush_nasid_list[nasid].iio_itte1 & 0xf; in sn_dma_flush_init()
212 if (bus == 0x4 || bus == 0x8) in sn_dma_flush_init()
213 bus = 0; in sn_dma_flush_init()
215 bus = 1; in sn_dma_flush_init()
220 bus = flush_nasid_list[nasid].iio_itte2 & 0xf; in sn_dma_flush_init()
221 if (bus == 0x4 || bus == 0x8) in sn_dma_flush_init()
222 bus = 0; in sn_dma_flush_init()
224 bus = 1; in sn_dma_flush_init()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dqla1280.c937 bdp->name, pdev->bus->number, PCI_SLOT(pdev->devfn)); in qla1280_do_device_init()
956 ha->pci_bus = pdev->bus->number; in qla1280_do_device_init()
1099 if ((pdev->bus->number != 1) || (PCI_SLOT(pdev->devfn) != 2)) in qla1280_detect()
1145 (pdev->bus->number == 1) && in qla1280_detect()
1260 int bus, target, lun; in qla1280_queuecommand() local
1279 bus = SCSI_BUS_32(cmd); in qla1280_queuecommand()
1345 int bus, target, lun; in qla1280_error_action() local
1403 bus = SCSI_BUS_32(cmd); in qla1280_error_action()
1442 ha->host_no, bus, target, lun); in qla1280_error_action()
1453 "command.\n", ha->host_no, bus, target, lun); in qla1280_error_action()
[all …]
/linux-2.4.37.9/arch/m68k/atari/
Dhades-pci.c70 dev->bus->number, dev->devfn, where, pci_addr)); in mk_conf_addr()
78 if (dev->bus->number != 0) in mk_conf_addr()
314 pcibios_write_config_byte(dev->bus->number, dev->devfn, in hades_fixup()
331 static void __init hades_conf_device(unsigned char bus, unsigned char device_fn) in hades_conf_device() argument
333 pcibios_write_config_byte(bus, device_fn, PCI_CACHE_LINE_SIZE, 0); in hades_conf_device()
358 struct pci_bus_info *bus; in init_hades_pci() local
374 bus = kmalloc(sizeof(struct pci_bus_info), GFP_KERNEL); in init_hades_pci()
375 if (!bus) in init_hades_pci()
377 memset(bus, 0, sizeof(struct pci_bus_info)); in init_hades_pci()
387 kfree(bus); in init_hades_pci()
[all …]
/linux-2.4.37.9/include/asm-sparc64/
Dsbus.h44 struct sbus_bus *bus; /* Our toplevel parent SBUS */ member
83 #define for_each_sbus(bus) \ argument
84 for((bus) = sbus_root; (bus); (bus)=(bus)->next)
86 #define for_each_sbusdev(device, bus) \ argument
87 for((device) = (bus)->devices; (device); (device)=(device)->next)
89 #define for_all_sbusdev(device, bus) \ argument
90 for ((bus) = sbus_root; (bus); (bus) = (bus)->next) \
91 for ((device) = (bus)->devices; (device); (device) = (device)->next)
/linux-2.4.37.9/arch/parisc/kernel/
Dpci.c135 void pcibios_fixup_bus(struct pci_bus *bus) in pcibios_fixup_bus() argument
140 pci_bios->fixup_bus(bus); in pcibios_fixup_bus()
240 barval = PCI_BUS_ADDR(HBA_DATA(dev->bus->sysdata), res->start); in pcibios_update_resource()
296 pcibios_init_bus(struct pci_bus *bus) in pcibios_init_bus() argument
298 struct pci_dev *dev = bus->self; in pcibios_init_bus()
310 pci_read_config_word(dev, PCI_BRIDGE_CONTROL, &bus->bridge_ctl); in pcibios_init_bus()
311 bus->bridge_ctl |= PCI_BRIDGE_CTL_PARITY | PCI_BRIDGE_CTL_SERR; in pcibios_init_bus()
312 pci_write_config_word(dev, PCI_BRIDGE_CONTROL, bus->bridge_ctl); in pcibios_init_bus()
315 bus->bridge_ctl |= PCI_BRIDGE_CTL_PARITY | PCI_BRIDGE_CTL_SERR; in pcibios_init_bus()
347 struct pci_bus *bus, in pcibios_fixup_pbus_ranges() argument
[all …]
/linux-2.4.37.9/drivers/message/i2o/
Di2o_pci.c51 if(c->bus.pci.irq > 0) in i2o_pci_dispose()
52 free_irq(c->bus.pci.irq, c); in i2o_pci_dispose()
56 if(c->bus.pci.mtrr_reg0 > 0) in i2o_pci_dispose()
57 mtrr_del(c->bus.pci.mtrr_reg0, 0, 0); in i2o_pci_dispose()
58 if(c->bus.pci.mtrr_reg1 > 0) in i2o_pci_dispose()
59 mtrr_del(c->bus.pci.mtrr_reg1, 0, 0); in i2o_pci_dispose()
196 c->bus.pci.irq = -1; in i2o_pci_install()
197 c->bus.pci.dpt = 0; in i2o_pci_install()
198 c->bus.pci.short_req = 0; in i2o_pci_install()
223 c->bus.pci.short_req = 1; in i2o_pci_install()
[all …]
/linux-2.4.37.9/include/asm-sparc/
Dsbus.h44 struct sbus_bus *bus; /* Back ptr to sbus */ member
90 #define for_each_sbus(bus) \ argument
91 for((bus) = sbus_root; (bus); (bus)=(bus)->next)
93 #define for_each_sbusdev(device, bus) \ argument
94 for((device) = (bus)->devices; (device); (device)=(device)->next)
96 #define for_all_sbusdev(device, bus) \ argument
97 for ((bus) = sbus_root; (bus); (bus) = (bus)->next) \
98 for ((device) = (bus)->devices; (device); (device) = (device)->next)
/linux-2.4.37.9/arch/mips/pmc-sierra/stretch/
Dpci.c46 int dev, bus, func; in pmc_stretch_read_config_dword() local
49 bus = device->bus->number; in pmc_stretch_read_config_dword()
53 address = (bus << 8) | (dev << 16) | (func << 21) | in pmc_stretch_read_config_dword()
65 int dev, bus, func; in pmc_stretch_read_config_word() local
68 bus = device->bus->number; in pmc_stretch_read_config_word()
72 address = (bus << 8) | (dev << 16) | (func << 21) | in pmc_stretch_read_config_word()
84 int dev, bus, func; in pmc_stretch_read_config_byte() local
87 bus = device->bus->number; in pmc_stretch_read_config_byte()
91 address = (bus << 8) | (dev << 16) | (func << 21) | in pmc_stretch_read_config_byte()
103 int dev, bus, func; in pmc_stretch_write_config_dword() local
[all …]

12345678910>>...26