Home
last modified time | relevance | path

Searched refs:bus_num (Results 1 – 25 of 238) sorted by relevance

12345678910

/linux-2.6.39/arch/mips/pci/
Dops-emma2rh.c40 static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) in check_args() argument
44 *bus_num = bus->number; in check_args()
45 db_assert(bus_num != NULL); in check_args()
47 *bus_num = 0; in check_args()
49 if (*bus_num == 0) { in check_args()
55 if ((*bus_num >= 64) || (PCI_SLOT(devfn) >= 16)) in check_args()
61 static inline int set_pci_configuration_address(unsigned char bus_num, in set_pci_configuration_address() argument
67 if (bus_num == 0) in set_pci_configuration_address()
76 config_win0 = (bus_num << 26) | (PCI_SLOT(devfn) << 22) | in set_pci_configuration_address()
87 u32 bus_num; in pci_config_read() local
[all …]
/linux-2.6.39/drivers/staging/westbridge/astoria/block/
Dcyasblkdev_block.c567 int bus_num = 0; in cyasblkdev_blk_issue_rq() local
582 bus_num = bd->user_disk_0_bus_num; in cyasblkdev_blk_issue_rq()
594 bus_num = bd->user_disk_1_bus_num; in cyasblkdev_blk_issue_rq()
606 bus_num = bd->system_disk_bus_num; in cyasblkdev_blk_issue_rq()
633 ret = cy_as_storage_read_async(bd->dev_handle, bus_num, 0, in cyasblkdev_blk_issue_rq()
654 ret = cy_as_storage_write_async(bd->dev_handle, bus_num, 0, in cyasblkdev_blk_issue_rq()
714 uint32_t cyasblkdev_get_vfat_offset(int bus_num, int unit_no) in cyasblkdev_get_vfat_offset() argument
758 bus_num, in cyasblkdev_get_vfat_offset()
813 static int cyasblkdev_add_disks(int bus_num, in cyasblkdev_add_disks() argument
846 bd->dev_handle, bus_num, 0, 0, 0); in cyasblkdev_add_disks()
[all …]
/linux-2.6.39/arch/blackfin/mach-bf537/boards/
Dstamp.c1040 .bus_num = 0, /* Framework bus number */
1052 .bus_num = 0, /* Framework bus number */
1064 .bus_num = 0, /* Framework bus number */
1076 .bus_num = 0,
1088 .bus_num = 0,
1099 .bus_num = 0,
1111 .bus_num = 0,
1122 .bus_num = 0,
1133 .bus_num = 0,
1144 .bus_num = 0,
[all …]
Dpnav10.c243 .bus_num = 0, /* Framework bus number */
256 .bus_num = 0, /* Framework bus number */
268 .bus_num = 0,
277 .bus_num = 0,
289 .bus_num = 0,
/linux-2.6.39/arch/arm/mach-ixp4xx/
Dcommon-pci.c169 static u32 ixp4xx_config_addr(u8 bus_num, u16 devfn, int where) in ixp4xx_config_addr() argument
172 if (!bus_num) { in ixp4xx_config_addr()
178 addr = (bus_num << 16) | ((PCI_SLOT(devfn)) << 11) | in ixp4xx_config_addr()
245 u8 bus_num = bus->number; in ixp4xx_pci_read_config() local
248 bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn)); in ixp4xx_pci_read_config()
256 addr = ixp4xx_config_addr(bus_num, devfn, where); in ixp4xx_pci_read_config()
268 u8 bus_num = bus->number; in ixp4xx_pci_write_config() local
271 size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn)); in ixp4xx_pci_write_config()
278 addr = ixp4xx_config_addr(bus_num, devfn, where); in ixp4xx_pci_write_config()
/linux-2.6.39/arch/arm/mach-pxa/
Dicontrol.c85 .bus_num = 3,
94 .bus_num = 3,
103 .bus_num = 4,
112 .bus_num = 4,
/linux-2.6.39/drivers/pci/hotplug/
Dibmphp_ebda.c180 __func__, ptr->rsrc_type ,ptr->bus_num, ptr->dev_fun,ptr->start_addr, ptr->end_addr); in print_ebda_pci_rsrc()
219 …g ("%s - bus# of each bus controlled by this ctlr: %x\n", __func__, hpc_ptr->buses[index].bus_num); in print_ebda_hpc()
746 u16 slot_num, bus_num, index; in ebda_rsrc_controller() local
767 bus_num = readb (io_mem + addr); in ebda_rsrc_controller()
771 addr += (bus_num * 9); /* offset of ctlr_type */ in ebda_rsrc_controller()
776 hpc_ptr = alloc_ebda_hpc (slot_num, bus_num); in ebda_rsrc_controller()
784 hpc_ptr->bus_count = bus_num; in ebda_rsrc_controller()
789 debug ("count of buses controlled by this ctlr: %x\n", bus_num); in ebda_rsrc_controller()
835 for (bus = 0; bus < bus_num; bus++) { in ebda_rsrc_controller()
836 bus_ptr->bus_num = readb (io_mem + addr_bus + bus); in ebda_rsrc_controller()
[all …]
Dcpqphp_pci.c155 int cpqhp_set_irq (u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num) in cpqhp_set_irq() argument
174 fakebus->number = bus_num; in cpqhp_set_irq()
176 __func__, dev_num, bus_num, int_pin, irq_num); in cpqhp_set_irq()
200 static int PCI_ScanBusForNonBridge(struct controller *ctrl, u8 bus_num, u8 * dev_num) in PCI_ScanBusForNonBridge() argument
206 ctrl->pci_bus->number = bus_num; in PCI_ScanBusForNonBridge()
212 dbg("Looking for nonbridge bus_num %d dev_num %d\n", bus_num, tdevice); in PCI_ScanBusForNonBridge()
224 dbg("Looking for bridge bus_num %d dev_num %d\n", bus_num, tdevice); in PCI_ScanBusForNonBridge()
238 static int PCI_GetBusDevHelper(struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot, u8 nobri… in PCI_GetBusDevHelper() argument
251 *bus_num = tbus; in PCI_GetBusDevHelper()
258 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num); in PCI_GetBusDevHelper()
[all …]
/linux-2.6.39/arch/powerpc/platforms/83xx/
Dmpc832x_rdb.c69 pdata.bus_num = *(u32 *)prop; in of_fsl_spi_probe()
80 if (board_infos[j].bus_num == pdata.bus_num) in of_fsl_spi_probe()
160 .bus_num = 0x4c0,
/linux-2.6.39/arch/blackfin/mach-bf518/boards/
Dezbrd.c264 .bus_num = 0, /* Framework bus number */
277 .bus_num = 0, /* Framework bus number */
290 .bus_num = 0,
303 .bus_num = 0,
315 .bus_num = 0,
325 .bus_num = 0,
335 .bus_num = 0,
344 .bus_num = 0,
Dtcm-bf518.c204 .bus_num = 0, /* Framework bus number */
217 .bus_num = 0, /* Framework bus number */
228 .bus_num = 0,
240 .bus_num = 0,
250 .bus_num = 0,
260 .bus_num = 0,
269 .bus_num = 0,
/linux-2.6.39/drivers/spi/
Dspi.c455 if (master->bus_num != bi->bus_num) in spi_match_master_to_boardinfo()
601 if (master->bus_num < 0) { in spi_register_master()
605 master->bus_num = atomic_dec_return(&dyn_bus_id); in spi_register_master()
616 dev_set_name(&master->dev, "spi%u", master->bus_num); in spi_register_master()
671 u16 *bus_num = data; in __spi_master_match() local
674 return m->bus_num == *bus_num; in __spi_master_match()
687 struct spi_master *spi_busnum_to_master(u16 bus_num) in spi_busnum_to_master() argument
692 dev = class_find_device(&spi_master_class, NULL, &bus_num, in spi_busnum_to_master()
/linux-2.6.39/arch/blackfin/mach-bf527/boards/
Dtll6527m.c422 .bus_num = 0, /* Framework bus number */
439 .bus_num = 0, /* Framework bus number */
457 .bus_num = 0,
471 .bus_num = 0,
482 .bus_num = 0,
492 .bus_num = 0,
503 .bus_num = 0,
512 .bus_num = 0,
Dezbrd.c350 .bus_num = 0, /* Framework bus number */
363 .bus_num = 0, /* Framework bus number */
374 .bus_num = 0,
386 .bus_num = 0,
397 .bus_num = 0,
408 .bus_num = 0,
418 .bus_num = 0,
427 .bus_num = 0,
Dcm_bf527.c428 .bus_num = 0, /* Framework bus number */
441 .bus_num = 0, /* Framework bus number */
453 .bus_num = 0,
462 .bus_num = 0,
474 .bus_num = 0,
484 .bus_num = 0,
494 .bus_num = 0,
Dezkit.c559 .bus_num = 0, /* Framework bus number */
572 .bus_num = 0, /* Framework bus number */
584 .bus_num = 0,
593 .bus_num = 0,
606 .bus_num = 0,
617 .bus_num = 0,
627 .bus_num = 0,
636 .bus_num = 0,
/linux-2.6.39/arch/arm/mach-at91/
Dboard-gsia18s.c352 .bus_num = 0,
359 .bus_num = 1,
366 .bus_num = 1,
373 .bus_num = 1,
380 .bus_num = 1,
Dboard-sam9260ek.c132 .bus_num = 0,
139 .bus_num = 0,
148 .bus_num = 1,
Dboard-sam9-l9260.c101 .bus_num = 0,
108 .bus_num = 0,
/linux-2.6.39/arch/mips/ath79/
Dmach-ap81.c71 .bus_num = 0,
79 .bus_num = 0,
Dmach-pb44.c90 .bus_num = 0,
98 .bus_num = 0,
/linux-2.6.39/drivers/i2c/busses/
Di2c-s6000.c264 int bus_num, rc; in s6i2c_probe() local
292 bus_num = -1; in s6i2c_probe()
295 bus_num = pdata->bus_num; in s6i2c_probe()
314 p_adap->nr = bus_num; in s6i2c_probe()
344 if (bus_num < 0) in s6i2c_probe()
/linux-2.6.39/drivers/staging/vme/devices/
Dvme_user.c47 static unsigned int bus_num; variable
611 if (bus_num == 0) { in vme_user_init()
621 if (bus_num > USER_BUS_MAX) { in vme_user_init()
624 bus_num = USER_BUS_MAX; in vme_user_init()
629 ids = kmalloc(sizeof(struct vme_device_id) * (bus_num + 1), GFP_KERNEL); in vme_user_init()
637 memset(ids, 0, (sizeof(struct vme_device_id) * (bus_num + 1))); in vme_user_init()
639 for (i = 0; i < bus_num; i++) { in vme_user_init()
884 module_param_array(bus, int, &bus_num, 0);
/linux-2.6.39/arch/mips/txx9/generic/
Dspi_eeprom.c27 .bus_num = busid, in spi_eeprom_register()
63 if (read_param->busid != spi->master->bus_num || in early_seeprom_probe()
/linux-2.6.39/arch/blackfin/mach-bf533/boards/
Dstamp.c235 .bus_num = 0, /* Framework bus number */
247 .bus_num = 0, /* Framework bus number */
258 .bus_num = 0,
270 .bus_num = 0,
279 .bus_num = 0,

12345678910