Lines Matching full:ehci

6 /* this file is part of ehci-hcd.c */
14 struct ehci_hcd *ehci; in companion_show() local
18 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_show()
19 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show()
22 if (test_bit(index, &ehci->companion_ports)) in companion_show()
31 * return control of the port to the EHCI controller.
37 struct ehci_hcd *ehci; in companion_store() local
40 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_store()
46 new_owner = 0; /* Owned by EHCI */ in companion_store()
48 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params)) in companion_store()
52 set_bit(portnum, &ehci->companion_ports); in companion_store()
54 clear_bit(portnum, &ehci->companion_ports); in companion_store()
55 set_owner(ehci, portnum, new_owner); in companion_store()
68 struct ehci_hcd *ehci; in uframe_periodic_max_show() local
70 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in uframe_periodic_max_show()
71 return sysfs_emit(buf, "%d\n", ehci->uframe_periodic_max); in uframe_periodic_max_show()
79 struct ehci_hcd *ehci; in uframe_periodic_max_store() local
85 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in uframe_periodic_max_store()
90 ehci_info(ehci, "rejecting invalid request for " in uframe_periodic_max_store()
101 spin_lock_irqsave (&ehci->lock, flags); in uframe_periodic_max_store()
107 if (uframe_periodic_max < ehci->uframe_periodic_max) { in uframe_periodic_max_store()
112 ehci->bandwidth[uframe]); in uframe_periodic_max_store()
115 ehci_info(ehci, in uframe_periodic_max_store()
126 ehci_info(ehci, "setting max periodic bandwidth to %u%% " in uframe_periodic_max_store()
131 ehci_warn(ehci, "max periodic bandwidth set is non-standard\n"); in uframe_periodic_max_store()
133 ehci->uframe_periodic_max = uframe_periodic_max; in uframe_periodic_max_store()
137 spin_unlock_irqrestore (&ehci->lock, flags); in uframe_periodic_max_store()
143 static inline int create_sysfs_files(struct ehci_hcd *ehci) in create_sysfs_files() argument
145 struct device *controller = ehci_to_hcd(ehci)->self.controller; in create_sysfs_files()
149 if (!ehci_is_TDI(ehci)) in create_sysfs_files()
159 static inline void remove_sysfs_files(struct ehci_hcd *ehci) in remove_sysfs_files() argument
161 struct device *controller = ehci_to_hcd(ehci)->self.controller; in remove_sysfs_files()
164 if (!ehci_is_TDI(ehci)) in remove_sysfs_files()