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