Lines Matching refs:repo

115 	const struct ps3_repository_device *repo)  in ps3_setup_gelic_device()  argument
125 BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); in ps3_setup_gelic_device()
126 BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_GELIC); in ps3_setup_gelic_device()
137 p->dev.bus_id = repo->bus_id; in ps3_setup_gelic_device()
138 p->dev.dev_id = repo->dev_id; in ps3_setup_gelic_device()
141 result = ps3_repository_find_interrupt(repo, in ps3_setup_gelic_device()
182 const struct ps3_repository_device *repo, enum ps3_match_id match_id, in ps3_setup_uhc_device() argument
196 BUG_ON(repo->bus_type != PS3_BUS_TYPE_SB); in ps3_setup_uhc_device()
197 BUG_ON(repo->dev_type != PS3_DEV_TYPE_SB_USB); in ps3_setup_uhc_device()
208 p->dev.bus_id = repo->bus_id; in ps3_setup_uhc_device()
209 p->dev.dev_id = repo->dev_id; in ps3_setup_uhc_device()
213 result = ps3_repository_find_interrupt(repo, in ps3_setup_uhc_device()
222 result = ps3_repository_find_reg(repo, reg_type, in ps3_setup_uhc_device()
272 const struct ps3_repository_device *repo) in ps3_setup_ehci_device() argument
274 return ps3_setup_uhc_device(repo, PS3_MATCH_ID_EHCI, in ps3_setup_ehci_device()
279 const struct ps3_repository_device *repo) in ps3_setup_ohci_device() argument
281 return ps3_setup_uhc_device(repo, PS3_MATCH_ID_OHCI, in ps3_setup_ohci_device()
321 static int ps3_setup_storage_dev(const struct ps3_repository_device *repo, in ps3_setup_storage_dev() argument
331 result = ps3_repository_read_stor_dev_info(repo->bus_index, in ps3_setup_storage_dev()
332 repo->dev_index, &port, in ps3_setup_storage_dev()
342 "num_regions %u\n", __func__, __LINE__, repo->bus_index, in ps3_setup_storage_dev()
343 repo->dev_index, repo->dev_type, port, blk_size, num_blocks, in ps3_setup_storage_dev()
354 p->sbd.bus_id = repo->bus_id; in ps3_setup_storage_dev()
355 p->sbd.dev_id = repo->dev_id; in ps3_setup_storage_dev()
360 result = ps3_repository_find_interrupt(repo, in ps3_setup_storage_dev()
374 result = ps3_repository_read_stor_dev_region(repo->bus_index, in ps3_setup_storage_dev()
375 repo->dev_index, in ps3_setup_storage_dev()
548 static int ps3_setup_dynamic_device(const struct ps3_repository_device *repo) in ps3_setup_dynamic_device() argument
552 switch (repo->dev_type) { in ps3_setup_dynamic_device()
554 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_DISK); in ps3_setup_dynamic_device()
569 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_ROM); in ps3_setup_dynamic_device()
576 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_FLASH); in ps3_setup_dynamic_device()
585 repo->dev_type); in ps3_setup_dynamic_device()
595 static int __init ps3_setup_static_device(const struct ps3_repository_device *repo) in ps3_setup_static_device() argument
599 switch (repo->dev_type) { in ps3_setup_static_device()
601 result = ps3_setup_gelic_device(repo); in ps3_setup_static_device()
611 result = ps3_setup_ehci_device(repo); in ps3_setup_static_device()
618 result = ps3_setup_ohci_device(repo); in ps3_setup_static_device()
627 return ps3_setup_dynamic_device(repo); in ps3_setup_static_device()
635 struct ps3_repository_device repo; in ps3_find_and_add_device() local
645 res = ps3_repository_find_device_by_id(&repo, bus_id, dev_id); in ps3_find_and_add_device()
662 ps3_setup_dynamic_device(&repo); in ps3_find_and_add_device()
900 struct ps3_repository_device repo; in ps3_start_probe_thread() local
904 memset(&repo, 0, sizeof(repo)); in ps3_start_probe_thread()
906 repo.bus_type = bus_type; in ps3_start_probe_thread()
908 result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index); in ps3_start_probe_thread()
915 result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id); in ps3_start_probe_thread()
923 task = kthread_run(ps3_probe_thread, (void *)repo.bus_id, in ps3_start_probe_thread()