Lines Matching full:pr

494 			struct pi_protocol *pr, int mode, int unit, int delay)  in pi_init_one()  argument
500 struct pi_device_match match = { .parport = parport, .proto = pr }; in pi_init_one()
523 pi->dev.driver = &pr->driver; in pi_init_one()
533 pi->proto = pr; in pi_init_one()
585 int pata_parport_register_driver(struct pi_protocol *pr) in pata_parport_register_driver() argument
591 pr->driver.bus = &pata_parport_bus_type; in pata_parport_register_driver()
592 pr->driver.name = pr->name; in pata_parport_register_driver()
593 error = driver_register(&pr->driver); in pata_parport_register_driver()
598 error = idr_alloc(&protocols, pr, 0, 0, GFP_KERNEL); in pata_parport_register_driver()
600 driver_unregister(&pr->driver); in pata_parport_register_driver()
605 pr_info("pata_parport: protocol %s registered\n", pr->name); in pata_parport_register_driver()
610 pi_init_one(parport, pr, -1, -1, -1); in pata_parport_register_driver()
618 void pata_parport_unregister_driver(struct pi_protocol *pr) in pata_parport_unregister_driver() argument
625 if (pr_iter == pr) in pata_parport_unregister_driver()
630 driver_unregister(&pr->driver); in pata_parport_unregister_driver()
639 struct pi_protocol *pr, *pr_wanted; in new_device_store() local
679 idr_for_each_entry(&protocols, pr, pr_num) { in new_device_store()
680 if (pr == pr_wanted || !pr_wanted) in new_device_store()
681 if (pi_init_one(parport, pr, mode, unit, in new_device_store()
729 struct pi_protocol *pr; in pata_parport_attach() local
742 idr_for_each_entry(&protocols, pr, pr_num) in pata_parport_attach()
743 pi_init_one(port, pr, -1, -1, -1); in pata_parport_attach()