Lines Matching refs:ehci
27 struct ehci_hcd *ehci; in show_companion() local
32 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in show_companion()
33 nports = HCS_N_PORTS(ehci->hcs_params); in show_companion()
36 if (test_bit(index, &ehci->companion_ports)) { in show_companion()
54 struct ehci_hcd *ehci; in store_companion() local
57 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in store_companion()
65 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params)) in store_companion()
69 set_bit(portnum, &ehci->companion_ports); in store_companion()
71 clear_bit(portnum, &ehci->companion_ports); in store_companion()
72 set_owner(ehci, portnum, new_owner); in store_companion()
85 struct ehci_hcd *ehci; in show_uframe_periodic_max() local
88 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in show_uframe_periodic_max()
89 n = scnprintf(buf, PAGE_SIZE, "%d\n", ehci->uframe_periodic_max); in show_uframe_periodic_max()
98 struct ehci_hcd *ehci; in store_uframe_periodic_max() local
104 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in store_uframe_periodic_max()
109 ehci_info(ehci, "rejecting invalid request for " in store_uframe_periodic_max()
120 spin_lock_irqsave (&ehci->lock, flags); in store_uframe_periodic_max()
126 if (uframe_periodic_max < ehci->uframe_periodic_max) { in store_uframe_periodic_max()
131 ehci->bandwidth[uframe]); in store_uframe_periodic_max()
134 ehci_info(ehci, in store_uframe_periodic_max()
145 ehci_info(ehci, "setting max periodic bandwidth to %u%% " in store_uframe_periodic_max()
150 ehci_warn(ehci, "max periodic bandwidth set is non-standard\n"); in store_uframe_periodic_max()
152 ehci->uframe_periodic_max = uframe_periodic_max; in store_uframe_periodic_max()
156 spin_unlock_irqrestore (&ehci->lock, flags); in store_uframe_periodic_max()
162 static inline int create_sysfs_files(struct ehci_hcd *ehci) in create_sysfs_files() argument
164 struct device *controller = ehci_to_hcd(ehci)->self.controller; in create_sysfs_files()
168 if (!ehci_is_TDI(ehci)) in create_sysfs_files()
178 static inline void remove_sysfs_files(struct ehci_hcd *ehci) in remove_sysfs_files() argument
180 struct device *controller = ehci_to_hcd(ehci)->self.controller; in remove_sysfs_files()
183 if (!ehci_is_TDI(ehci)) in remove_sysfs_files()