• 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

126 	const struct ps3_repository_device *repo)
136 BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB);
137 BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_GELIC);
148 p->dev.bus_id = repo->bus_id;
149 p->dev.dev_id = repo->dev_id;
152 result = ps3_repository_find_interrupt(repo,
193 const struct ps3_repository_device *repo, enum ps3_match_id match_id,
207 BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB);
208 BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_USB);
219 p->dev.bus_id = repo->bus_id;
220 p->dev.dev_id = repo->dev_id;
224 result = ps3_repository_find_interrupt(repo,
233 result = ps3_repository_find_reg(repo, reg_type,
283 const struct ps3_repository_device *repo)
285 return ps3_setup_uhc_device(repo, PS3_MATCH_ID_EHCI,
290 const struct ps3_repository_device *repo)
292 return ps3_setup_uhc_device(repo, PS3_MATCH_ID_OHCI,
332 static int ps3_setup_storage_dev(const struct ps3_repository_device *repo,
342 result = ps3_repository_read_stor_dev_info(repo->bus_index,
343 repo->dev_index, &port,
353 "num_regions %u\n", __func__, __LINE__, repo->bus_index,
354 repo->dev_index, repo->dev_type, port, blk_size, num_blocks,
367 p->sbd.bus_id = repo->bus_id;
368 p->sbd.dev_id = repo->dev_id;
373 result = ps3_repository_find_interrupt(repo,
387 result = ps3_repository_read_stor_dev_region(repo->bus_index,
388 repo->dev_index,
561 static int ps3_setup_dynamic_device(const struct ps3_repository_device *repo)
565 switch (repo->dev_type) {
567 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_DISK);
582 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_ROM);
589 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_FLASH);
598 repo->dev_type);
608 static int __init ps3_setup_static_device(const struct ps3_repository_device *repo)
612 switch (repo->dev_type) {
614 result = ps3_setup_gelic_device(repo);
624 result = ps3_setup_ehci_device(repo);
631 result = ps3_setup_ohci_device(repo);
640 return ps3_setup_dynamic_device(repo);
648 struct ps3_repository_device repo;
658 res = ps3_repository_find_device_by_id(&repo, bus_id, dev_id);
675 ps3_setup_dynamic_device(&repo);
916 struct ps3_repository_device repo;
920 memset(&repo, 0, sizeof(repo));
922 repo.bus_type = bus_type;
924 result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index);
931 result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id);
939 task = kthread_run(ps3_probe_thread, (void *)repo.bus_id,