repo 114 arch/powerpc/platforms/ps3/device-init.c const struct ps3_repository_device *repo) repo 124 arch/powerpc/platforms/ps3/device-init.c BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); repo 125 arch/powerpc/platforms/ps3/device-init.c BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_GELIC); repo 136 arch/powerpc/platforms/ps3/device-init.c p->dev.bus_id = repo->bus_id; repo 137 arch/powerpc/platforms/ps3/device-init.c p->dev.dev_id = repo->dev_id; repo 140 arch/powerpc/platforms/ps3/device-init.c result = ps3_repository_find_interrupt(repo, repo 181 arch/powerpc/platforms/ps3/device-init.c const struct ps3_repository_device *repo, enum ps3_match_id match_id, repo 195 arch/powerpc/platforms/ps3/device-init.c BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); repo 196 arch/powerpc/platforms/ps3/device-init.c BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_USB); repo 207 arch/powerpc/platforms/ps3/device-init.c p->dev.bus_id = repo->bus_id; repo 208 arch/powerpc/platforms/ps3/device-init.c p->dev.dev_id = repo->dev_id; repo 212 arch/powerpc/platforms/ps3/device-init.c result = ps3_repository_find_interrupt(repo, repo 221 arch/powerpc/platforms/ps3/device-init.c result = ps3_repository_find_reg(repo, reg_type, repo 271 arch/powerpc/platforms/ps3/device-init.c const struct ps3_repository_device *repo) repo 273 arch/powerpc/platforms/ps3/device-init.c return ps3_setup_uhc_device(repo, PS3_MATCH_ID_EHCI, repo 278 arch/powerpc/platforms/ps3/device-init.c const struct ps3_repository_device *repo) repo 280 arch/powerpc/platforms/ps3/device-init.c return ps3_setup_uhc_device(repo, PS3_MATCH_ID_OHCI, repo 320 arch/powerpc/platforms/ps3/device-init.c static int ps3_setup_storage_dev(const struct ps3_repository_device *repo, repo 330 arch/powerpc/platforms/ps3/device-init.c result = ps3_repository_read_stor_dev_info(repo->bus_index, repo 331 arch/powerpc/platforms/ps3/device-init.c repo->dev_index, &port, repo 341 arch/powerpc/platforms/ps3/device-init.c "num_regions %u\n", __func__, __LINE__, repo->bus_index, repo 342 arch/powerpc/platforms/ps3/device-init.c repo->dev_index, repo->dev_type, port, blk_size, num_blocks, repo 353 arch/powerpc/platforms/ps3/device-init.c p->sbd.bus_id = repo->bus_id; repo 354 arch/powerpc/platforms/ps3/device-init.c p->sbd.dev_id = repo->dev_id; repo 359 arch/powerpc/platforms/ps3/device-init.c result = ps3_repository_find_interrupt(repo, repo 373 arch/powerpc/platforms/ps3/device-init.c result = ps3_repository_read_stor_dev_region(repo->bus_index, repo 374 arch/powerpc/platforms/ps3/device-init.c repo->dev_index, repo 547 arch/powerpc/platforms/ps3/device-init.c static int ps3_setup_dynamic_device(const struct ps3_repository_device *repo) repo 551 arch/powerpc/platforms/ps3/device-init.c switch (repo->dev_type) { repo 553 arch/powerpc/platforms/ps3/device-init.c result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_DISK); repo 568 arch/powerpc/platforms/ps3/device-init.c result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_ROM); repo 575 arch/powerpc/platforms/ps3/device-init.c result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_FLASH); repo 584 arch/powerpc/platforms/ps3/device-init.c repo->dev_type); repo 594 arch/powerpc/platforms/ps3/device-init.c static int __init ps3_setup_static_device(const struct ps3_repository_device *repo) repo 598 arch/powerpc/platforms/ps3/device-init.c switch (repo->dev_type) { repo 600 arch/powerpc/platforms/ps3/device-init.c result = ps3_setup_gelic_device(repo); repo 610 arch/powerpc/platforms/ps3/device-init.c result = ps3_setup_ehci_device(repo); repo 617 arch/powerpc/platforms/ps3/device-init.c result = ps3_setup_ohci_device(repo); repo 626 arch/powerpc/platforms/ps3/device-init.c return ps3_setup_dynamic_device(repo); repo 634 arch/powerpc/platforms/ps3/device-init.c struct ps3_repository_device repo; repo 644 arch/powerpc/platforms/ps3/device-init.c res = ps3_repository_find_device_by_id(&repo, bus_id, dev_id); repo 661 arch/powerpc/platforms/ps3/device-init.c ps3_setup_dynamic_device(&repo); repo 900 arch/powerpc/platforms/ps3/device-init.c struct ps3_repository_device repo; repo 904 arch/powerpc/platforms/ps3/device-init.c memset(&repo, 0, sizeof(repo)); repo 906 arch/powerpc/platforms/ps3/device-init.c repo.bus_type = bus_type; repo 908 arch/powerpc/platforms/ps3/device-init.c result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index); repo 915 arch/powerpc/platforms/ps3/device-init.c result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id); repo 923 arch/powerpc/platforms/ps3/device-init.c task = kthread_run(ps3_probe_thread, (void *)repo.bus_id, repo 134 arch/powerpc/platforms/ps3/platform.h int ps3_repository_find_device(struct ps3_repository_device *repo); repo 135 arch/powerpc/platforms/ps3/platform.h int ps3_repository_find_device_by_id(struct ps3_repository_device *repo, repo 138 arch/powerpc/platforms/ps3/platform.h int (*callback)(const struct ps3_repository_device *repo)); repo 141 arch/powerpc/platforms/ps3/platform.h int ps3_repository_find_interrupt(const struct ps3_repository_device *repo, repo 143 arch/powerpc/platforms/ps3/platform.h int ps3_repository_find_reg(const struct ps3_repository_device *repo, repo 290 arch/powerpc/platforms/ps3/repository.c int ps3_repository_find_device(struct ps3_repository_device *repo) repo 293 arch/powerpc/platforms/ps3/repository.c struct ps3_repository_device tmp = *repo; repo 296 arch/powerpc/platforms/ps3/repository.c BUG_ON(repo->bus_index > 10); repo 297 arch/powerpc/platforms/ps3/repository.c BUG_ON(repo->dev_index > 10); repo 335 arch/powerpc/platforms/ps3/repository.c *repo = tmp; repo 339 arch/powerpc/platforms/ps3/repository.c int ps3_repository_find_device_by_id(struct ps3_repository_device *repo, repo 412 arch/powerpc/platforms/ps3/repository.c *repo = tmp; repo 417 arch/powerpc/platforms/ps3/repository.c int (*callback)(const struct ps3_repository_device *repo)) repo 420 arch/powerpc/platforms/ps3/repository.c struct ps3_repository_device repo; repo 424 arch/powerpc/platforms/ps3/repository.c repo.bus_type = bus_type; repo 425 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index); repo 431 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id); repo 434 arch/powerpc/platforms/ps3/repository.c repo.bus_index); repo 438 arch/powerpc/platforms/ps3/repository.c for (repo.dev_index = 0; ; repo.dev_index++) { repo 439 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_find_device(&repo); repo 446 arch/powerpc/platforms/ps3/repository.c result = callback(&repo); repo 482 arch/powerpc/platforms/ps3/repository.c int ps3_repository_find_interrupt(const struct ps3_repository_device *repo, repo 496 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_dev_intr(repo->bus_index, repo 497 arch/powerpc/platforms/ps3/repository.c repo->dev_index, res_index, &t, &id); repo 520 arch/powerpc/platforms/ps3/repository.c int ps3_repository_find_reg(const struct ps3_repository_device *repo, repo 535 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_dev_reg(repo->bus_index, repo 536 arch/powerpc/platforms/ps3/repository.c repo->dev_index, res_index, &t, &a, &l); repo 1181 arch/powerpc/platforms/ps3/repository.c int ps3_repository_dump_resource_info(const struct ps3_repository_device *repo) repo 1187 arch/powerpc/platforms/ps3/repository.c repo->bus_index, repo->dev_index); repo 1193 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_dev_intr(repo->bus_index, repo 1194 arch/powerpc/platforms/ps3/repository.c repo->dev_index, res_index, &intr_type, &interrupt_id); repo 1200 arch/powerpc/platforms/ps3/repository.c repo->bus_index, repo->dev_index); repo 1205 arch/powerpc/platforms/ps3/repository.c __func__, __LINE__, repo->bus_index, repo->dev_index, repo 1214 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_dev_reg(repo->bus_index, repo 1215 arch/powerpc/platforms/ps3/repository.c repo->dev_index, res_index, ®_type, &bus_addr, &len); repo 1221 arch/powerpc/platforms/ps3/repository.c repo->bus_index, repo->dev_index); repo 1226 arch/powerpc/platforms/ps3/repository.c __func__, __LINE__, repo->bus_index, repo->dev_index, repo 1234 arch/powerpc/platforms/ps3/repository.c static int dump_stor_dev_info(struct ps3_repository_device *repo) repo 1241 arch/powerpc/platforms/ps3/repository.c repo->bus_index, repo->dev_index); repo 1243 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_stor_dev_info(repo->bus_index, repo 1244 arch/powerpc/platforms/ps3/repository.c repo->dev_index, &port, &blk_size, &num_blocks, &num_regions); repo 1248 arch/powerpc/platforms/ps3/repository.c repo->bus_index, repo->dev_index); repo 1254 arch/powerpc/platforms/ps3/repository.c __func__, __LINE__, repo->bus_index, repo->dev_index, repo 1261 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_stor_dev_region(repo->bus_index, repo 1262 arch/powerpc/platforms/ps3/repository.c repo->dev_index, region_index, ®ion_id, repo 1267 arch/powerpc/platforms/ps3/repository.c repo->bus_index, repo->dev_index); repo 1272 arch/powerpc/platforms/ps3/repository.c __func__, __LINE__, repo->bus_index, repo->dev_index, repo 1282 arch/powerpc/platforms/ps3/repository.c static int dump_device_info(struct ps3_repository_device *repo, repo 1287 arch/powerpc/platforms/ps3/repository.c pr_devel(" -> %s:%d: bus_%u\n", __func__, __LINE__, repo->bus_index); repo 1289 arch/powerpc/platforms/ps3/repository.c for (repo->dev_index = 0; repo->dev_index < num_dev; repo 1290 arch/powerpc/platforms/ps3/repository.c repo->dev_index++) { repo 1292 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_dev_type(repo->bus_index, repo 1293 arch/powerpc/platforms/ps3/repository.c repo->dev_index, &repo->dev_type); repo 1298 arch/powerpc/platforms/ps3/repository.c repo->bus_index, repo->dev_index); repo 1302 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_dev_id(repo->bus_index, repo 1303 arch/powerpc/platforms/ps3/repository.c repo->dev_index, &repo->dev_id); repo 1308 arch/powerpc/platforms/ps3/repository.c repo->bus_index, repo->dev_index); repo 1313 arch/powerpc/platforms/ps3/repository.c __LINE__, repo->bus_index, repo->dev_index, repo 1314 arch/powerpc/platforms/ps3/repository.c repo->dev_type, (unsigned long)repo->dev_id); repo 1316 arch/powerpc/platforms/ps3/repository.c ps3_repository_dump_resource_info(repo); repo 1318 arch/powerpc/platforms/ps3/repository.c if (repo->bus_type == PS3_BUS_TYPE_STORAGE) repo 1319 arch/powerpc/platforms/ps3/repository.c dump_stor_dev_info(repo); repo 1329 arch/powerpc/platforms/ps3/repository.c struct ps3_repository_device repo; repo 1333 arch/powerpc/platforms/ps3/repository.c memset(&repo, 0, sizeof(repo)); repo 1335 arch/powerpc/platforms/ps3/repository.c for (repo.bus_index = 0; repo.bus_index < 10; repo.bus_index++) { repo 1338 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_bus_type(repo.bus_index, repo 1339 arch/powerpc/platforms/ps3/repository.c &repo.bus_type); repo 1343 arch/powerpc/platforms/ps3/repository.c __func__, __LINE__, repo.bus_index); repo 1347 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_bus_id(repo.bus_index, repo 1348 arch/powerpc/platforms/ps3/repository.c &repo.bus_id); repo 1352 arch/powerpc/platforms/ps3/repository.c __func__, __LINE__, repo.bus_index); repo 1356 arch/powerpc/platforms/ps3/repository.c if (repo.bus_index != repo.bus_id) repo 1360 arch/powerpc/platforms/ps3/repository.c result = ps3_repository_read_bus_num_dev(repo.bus_index, repo 1365 arch/powerpc/platforms/ps3/repository.c __func__, __LINE__, repo.bus_index); repo 1370 arch/powerpc/platforms/ps3/repository.c __func__, __LINE__, repo.bus_index, repo.bus_type, repo 1371 arch/powerpc/platforms/ps3/repository.c (unsigned long)repo.bus_id, num_dev); repo 1373 arch/powerpc/platforms/ps3/repository.c dump_device_info(&repo, num_dev);