Lines Matching refs:bus_index

149 int ps3_repository_read_bus_str(unsigned int bus_index, const char *bus_str,  in ps3_repository_read_bus_str()  argument
153 make_first_field("bus", bus_index), in ps3_repository_read_bus_str()
159 int ps3_repository_read_bus_id(unsigned int bus_index, u64 *bus_id) in ps3_repository_read_bus_id() argument
161 return read_node(PS3_LPAR_ID_PME, make_first_field("bus", bus_index), in ps3_repository_read_bus_id()
165 int ps3_repository_read_bus_type(unsigned int bus_index, in ps3_repository_read_bus_type() argument
172 make_first_field("bus", bus_index), in ps3_repository_read_bus_type()
180 int ps3_repository_read_bus_num_dev(unsigned int bus_index, in ps3_repository_read_bus_num_dev() argument
187 make_first_field("bus", bus_index), in ps3_repository_read_bus_num_dev()
195 int ps3_repository_read_dev_str(unsigned int bus_index, in ps3_repository_read_dev_str() argument
199 make_first_field("bus", bus_index), in ps3_repository_read_dev_str()
206 int ps3_repository_read_dev_id(unsigned int bus_index, unsigned int dev_index, in ps3_repository_read_dev_id() argument
209 return read_node(PS3_LPAR_ID_PME, make_first_field("bus", bus_index), in ps3_repository_read_dev_id()
214 int ps3_repository_read_dev_type(unsigned int bus_index, in ps3_repository_read_dev_type() argument
221 make_first_field("bus", bus_index), in ps3_repository_read_dev_type()
230 int ps3_repository_read_dev_intr(unsigned int bus_index, in ps3_repository_read_dev_intr() argument
239 make_first_field("bus", bus_index), in ps3_repository_read_dev_intr()
249 int ps3_repository_read_dev_reg_type(unsigned int bus_index, in ps3_repository_read_dev_reg_type() argument
257 make_first_field("bus", bus_index), in ps3_repository_read_dev_reg_type()
266 int ps3_repository_read_dev_reg_addr(unsigned int bus_index, in ps3_repository_read_dev_reg_addr() argument
270 make_first_field("bus", bus_index), in ps3_repository_read_dev_reg_addr()
277 int ps3_repository_read_dev_reg(unsigned int bus_index, in ps3_repository_read_dev_reg() argument
281 int result = ps3_repository_read_dev_reg_type(bus_index, dev_index, in ps3_repository_read_dev_reg()
284 : ps3_repository_read_dev_reg_addr(bus_index, dev_index, in ps3_repository_read_dev_reg()
296 BUG_ON(repo->bus_index > 10); in ps3_repository_find_device()
299 result = ps3_repository_read_bus_num_dev(tmp.bus_index, &num_dev); in ps3_repository_find_device()
307 __func__, __LINE__, tmp.bus_type, tmp.bus_index, tmp.bus_id, in ps3_repository_find_device()
315 result = ps3_repository_read_dev_type(tmp.bus_index, tmp.dev_index, in ps3_repository_find_device()
323 result = ps3_repository_read_dev_id(tmp.bus_index, tmp.dev_index, in ps3_repository_find_device()
349 for (tmp.bus_index = 0; tmp.bus_index < 10; tmp.bus_index++) { in ps3_repository_find_device_by_id()
350 result = ps3_repository_read_bus_id(tmp.bus_index, in ps3_repository_find_device_by_id()
354 __LINE__, tmp.bus_index); in ps3_repository_find_device_by_id()
368 result = ps3_repository_read_bus_type(tmp.bus_index, &tmp.bus_type); in ps3_repository_find_device_by_id()
371 __LINE__, tmp.bus_index); in ps3_repository_find_device_by_id()
375 result = ps3_repository_read_bus_num_dev(tmp.bus_index, &num_dev); in ps3_repository_find_device_by_id()
383 result = ps3_repository_read_dev_id(tmp.bus_index, in ps3_repository_find_device_by_id()
388 __LINE__, tmp.bus_index, tmp.dev_index); in ps3_repository_find_device_by_id()
402 result = ps3_repository_read_dev_type(tmp.bus_index, tmp.dev_index, in ps3_repository_find_device_by_id()
410 __func__, __LINE__, tmp.bus_type, tmp.dev_type, tmp.bus_index, in ps3_repository_find_device_by_id()
425 result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index); in ps3_repository_find_devices()
431 result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id); in ps3_repository_find_devices()
434 repo.bus_index); in ps3_repository_find_devices()
459 unsigned int *bus_index) in ps3_repository_find_bus() argument
470 *bus_index = UINT_MAX; in ps3_repository_find_bus()
474 *bus_index = i; in ps3_repository_find_bus()
478 *bus_index = UINT_MAX; in ps3_repository_find_bus()
496 result = ps3_repository_read_dev_intr(repo->bus_index, in ps3_repository_find_interrupt()
535 result = ps3_repository_read_dev_reg(repo->bus_index, in ps3_repository_find_reg()
560 int ps3_repository_read_stor_dev_port(unsigned int bus_index, in ps3_repository_read_stor_dev_port() argument
564 make_first_field("bus", bus_index), in ps3_repository_read_stor_dev_port()
570 int ps3_repository_read_stor_dev_blk_size(unsigned int bus_index, in ps3_repository_read_stor_dev_blk_size() argument
574 make_first_field("bus", bus_index), in ps3_repository_read_stor_dev_blk_size()
580 int ps3_repository_read_stor_dev_num_blocks(unsigned int bus_index, in ps3_repository_read_stor_dev_num_blocks() argument
584 make_first_field("bus", bus_index), in ps3_repository_read_stor_dev_num_blocks()
590 int ps3_repository_read_stor_dev_num_regions(unsigned int bus_index, in ps3_repository_read_stor_dev_num_regions() argument
597 make_first_field("bus", bus_index), in ps3_repository_read_stor_dev_num_regions()
605 int ps3_repository_read_stor_dev_region_id(unsigned int bus_index, in ps3_repository_read_stor_dev_region_id() argument
613 make_first_field("bus", bus_index), in ps3_repository_read_stor_dev_region_id()
622 int ps3_repository_read_stor_dev_region_size(unsigned int bus_index, in ps3_repository_read_stor_dev_region_size() argument
626 make_first_field("bus", bus_index), in ps3_repository_read_stor_dev_region_size()
633 int ps3_repository_read_stor_dev_region_start(unsigned int bus_index, in ps3_repository_read_stor_dev_region_start() argument
637 make_first_field("bus", bus_index), in ps3_repository_read_stor_dev_region_start()
644 int ps3_repository_read_stor_dev_info(unsigned int bus_index, in ps3_repository_read_stor_dev_info() argument
650 result = ps3_repository_read_stor_dev_port(bus_index, dev_index, port); in ps3_repository_read_stor_dev_info()
654 result = ps3_repository_read_stor_dev_blk_size(bus_index, dev_index, in ps3_repository_read_stor_dev_info()
659 result = ps3_repository_read_stor_dev_num_blocks(bus_index, dev_index, in ps3_repository_read_stor_dev_info()
664 result = ps3_repository_read_stor_dev_num_regions(bus_index, dev_index, in ps3_repository_read_stor_dev_info()
669 int ps3_repository_read_stor_dev_region(unsigned int bus_index, in ps3_repository_read_stor_dev_region() argument
675 result = ps3_repository_read_stor_dev_region_id(bus_index, dev_index, in ps3_repository_read_stor_dev_region()
680 result = ps3_repository_read_stor_dev_region_start(bus_index, dev_index, in ps3_repository_read_stor_dev_region()
685 result = ps3_repository_read_stor_dev_region_size(bus_index, dev_index, in ps3_repository_read_stor_dev_region()
1187 repo->bus_index, repo->dev_index); in ps3_repository_dump_resource_info()
1193 result = ps3_repository_read_dev_intr(repo->bus_index, in ps3_repository_dump_resource_info()
1200 repo->bus_index, repo->dev_index); in ps3_repository_dump_resource_info()
1205 __func__, __LINE__, repo->bus_index, repo->dev_index, in ps3_repository_dump_resource_info()
1214 result = ps3_repository_read_dev_reg(repo->bus_index, in ps3_repository_dump_resource_info()
1221 repo->bus_index, repo->dev_index); in ps3_repository_dump_resource_info()
1226 __func__, __LINE__, repo->bus_index, repo->dev_index, in ps3_repository_dump_resource_info()
1241 repo->bus_index, repo->dev_index); in dump_stor_dev_info()
1243 result = ps3_repository_read_stor_dev_info(repo->bus_index, in dump_stor_dev_info()
1248 repo->bus_index, repo->dev_index); in dump_stor_dev_info()
1254 __func__, __LINE__, repo->bus_index, repo->dev_index, in dump_stor_dev_info()
1261 result = ps3_repository_read_stor_dev_region(repo->bus_index, in dump_stor_dev_info()
1267 repo->bus_index, repo->dev_index); in dump_stor_dev_info()
1272 __func__, __LINE__, repo->bus_index, repo->dev_index, in dump_stor_dev_info()
1287 pr_devel(" -> %s:%d: bus_%u\n", __func__, __LINE__, repo->bus_index); in dump_device_info()
1292 result = ps3_repository_read_dev_type(repo->bus_index, in dump_device_info()
1298 repo->bus_index, repo->dev_index); in dump_device_info()
1302 result = ps3_repository_read_dev_id(repo->bus_index, in dump_device_info()
1308 repo->bus_index, repo->dev_index); in dump_device_info()
1313 __LINE__, repo->bus_index, repo->dev_index, in dump_device_info()
1335 for (repo.bus_index = 0; repo.bus_index < 10; repo.bus_index++) { in ps3_repository_dump_bus_info()
1338 result = ps3_repository_read_bus_type(repo.bus_index, in ps3_repository_dump_bus_info()
1343 __func__, __LINE__, repo.bus_index); in ps3_repository_dump_bus_info()
1347 result = ps3_repository_read_bus_id(repo.bus_index, in ps3_repository_dump_bus_info()
1352 __func__, __LINE__, repo.bus_index); in ps3_repository_dump_bus_info()
1356 if (repo.bus_index != repo.bus_id) in ps3_repository_dump_bus_info()
1360 result = ps3_repository_read_bus_num_dev(repo.bus_index, in ps3_repository_dump_bus_info()
1365 __func__, __LINE__, repo.bus_index); in ps3_repository_dump_bus_info()
1370 __func__, __LINE__, repo.bus_index, repo.bus_type, in ps3_repository_dump_bus_info()