Lines Matching refs:ehci

14 	struct ehci_hcd		*ehci;  in companion_show()  local
19 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_show()
20 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show()
23 if (test_bit(index, &ehci->companion_ports)) { in companion_show()
41 struct ehci_hcd *ehci; in companion_store() local
44 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_store()
52 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params)) in companion_store()
56 set_bit(portnum, &ehci->companion_ports); in companion_store()
58 clear_bit(portnum, &ehci->companion_ports); in companion_store()
59 set_owner(ehci, portnum, new_owner); in companion_store()
72 struct ehci_hcd *ehci; in uframe_periodic_max_show() local
75 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in uframe_periodic_max_show()
76 n = scnprintf(buf, PAGE_SIZE, "%d\n", ehci->uframe_periodic_max); in uframe_periodic_max_show()
85 struct ehci_hcd *ehci; in uframe_periodic_max_store() local
91 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in uframe_periodic_max_store()
96 ehci_info(ehci, "rejecting invalid request for " in uframe_periodic_max_store()
107 spin_lock_irqsave (&ehci->lock, flags); in uframe_periodic_max_store()
113 if (uframe_periodic_max < ehci->uframe_periodic_max) { in uframe_periodic_max_store()
118 ehci->bandwidth[uframe]); in uframe_periodic_max_store()
121 ehci_info(ehci, in uframe_periodic_max_store()
132 ehci_info(ehci, "setting max periodic bandwidth to %u%% " in uframe_periodic_max_store()
137 ehci_warn(ehci, "max periodic bandwidth set is non-standard\n"); in uframe_periodic_max_store()
139 ehci->uframe_periodic_max = uframe_periodic_max; in uframe_periodic_max_store()
143 spin_unlock_irqrestore (&ehci->lock, flags); in uframe_periodic_max_store()
149 static inline int create_sysfs_files(struct ehci_hcd *ehci) in create_sysfs_files() argument
151 struct device *controller = ehci_to_hcd(ehci)->self.controller; in create_sysfs_files()
155 if (!ehci_is_TDI(ehci)) in create_sysfs_files()
165 static inline void remove_sysfs_files(struct ehci_hcd *ehci) in remove_sysfs_files() argument
167 struct device *controller = ehci_to_hcd(ehci)->self.controller; in remove_sysfs_files()
170 if (!ehci_is_TDI(ehci)) in remove_sysfs_files()