• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/platforms/ps3/

Lines Matching refs:repo

314 int ps3_repository_find_device(struct ps3_repository_device *repo)
317 struct ps3_repository_device tmp = *repo;
320 BUG_ON(repo->bus_index > 10);
321 BUG_ON(repo->dev_index > 10);
359 *repo = tmp;
363 int ps3_repository_find_device_by_id(struct ps3_repository_device *repo,
436 *repo = tmp;
441 int (*callback)(const struct ps3_repository_device *repo))
444 struct ps3_repository_device repo;
448 repo.bus_type = bus_type;
449 result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index);
455 result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id);
458 repo.bus_index);
462 for (repo.dev_index = 0; ; repo.dev_index++) {
463 result = ps3_repository_find_device(&repo);
470 result = callback(&repo);
506 int ps3_repository_find_interrupt(const struct ps3_repository_device *repo,
520 result = ps3_repository_read_dev_intr(repo->bus_index,
521 repo->dev_index, res_index, &t, &id);
544 int ps3_repository_find_reg(const struct ps3_repository_device *repo,
559 result = ps3_repository_read_dev_reg(repo->bus_index,
560 repo->dev_index, res_index, &t, &a, &l);
1007 int ps3_repository_dump_resource_info(const struct ps3_repository_device *repo)
1013 repo->bus_index, repo->dev_index);
1019 result = ps3_repository_read_dev_intr(repo->bus_index,
1020 repo->dev_index, res_index, &intr_type, &interrupt_id);
1026 repo->bus_index, repo->dev_index);
1031 __func__, __LINE__, repo->bus_index, repo->dev_index,
1040 result = ps3_repository_read_dev_reg(repo->bus_index,
1041 repo->dev_index, res_index, &reg_type, &bus_addr, &len);
1047 repo->bus_index, repo->dev_index);
1052 __func__, __LINE__, repo->bus_index, repo->dev_index,
1060 static int dump_stor_dev_info(struct ps3_repository_device *repo)
1067 repo->bus_index, repo->dev_index);
1069 result = ps3_repository_read_stor_dev_info(repo->bus_index,
1070 repo->dev_index, &port, &blk_size, &num_blocks, &num_regions);
1074 repo->bus_index, repo->dev_index);
1080 __func__, __LINE__, repo->bus_index, repo->dev_index, port,
1087 result = ps3_repository_read_stor_dev_region(repo->bus_index,
1088 repo->dev_index, region_index, &region_id,
1093 repo->bus_index, repo->dev_index);
1098 __func__, __LINE__, repo->bus_index, repo->dev_index,
1107 static int dump_device_info(struct ps3_repository_device *repo,
1112 pr_debug(" -> %s:%d: bus_%u\n", __func__, __LINE__, repo->bus_index);
1114 for (repo->dev_index = 0; repo->dev_index < num_dev;
1115 repo->dev_index++) {
1117 result = ps3_repository_read_dev_type(repo->bus_index,
1118 repo->dev_index, &repo->dev_type);
1123 repo->bus_index, repo->dev_index);
1127 result = ps3_repository_read_dev_id(repo->bus_index,
1128 repo->dev_index, &repo->dev_id);
1133 repo->bus_index, repo->dev_index);
1138 __LINE__, repo->bus_index, repo->dev_index,
1139 repo->dev_type, repo->dev_id);
1141 ps3_repository_dump_resource_info(repo);
1143 if (repo->bus_type == PS3_BUS_TYPE_STORAGE)
1144 dump_stor_dev_info(repo);
1154 struct ps3_repository_device repo;
1158 memset(&repo, 0, sizeof(repo));
1160 for (repo.bus_index = 0; repo.bus_index < 10; repo.bus_index++) {
1163 result = ps3_repository_read_bus_type(repo.bus_index,
1164 &repo.bus_type);
1168 __func__, __LINE__, repo.bus_index);
1172 result = ps3_repository_read_bus_id(repo.bus_index,
1173 &repo.bus_id);
1177 __func__, __LINE__, repo.bus_index);
1181 if (repo.bus_index != repo.bus_id)
1185 result = ps3_repository_read_bus_num_dev(repo.bus_index,
1190 __func__, __LINE__, repo.bus_index);
1195 __func__, __LINE__, repo.bus_index, repo.bus_type,
1196 repo.bus_id, num_dev);
1198 dump_device_info(&repo, num_dev);