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