Lines Matching refs:dev
138 struct device_data *dev; in count_usb_urbs() local
161 dev = devices; in count_usb_urbs()
162 while (dev) { in count_usb_urbs()
163 if (dev->urbs != dev->previous_urbs) { in count_usb_urbs()
164 push_line(dev->human_name, dev->urbs - dev->previous_urbs); in count_usb_urbs()
166 dev = dev->next; in count_usb_urbs()
173 struct device_data *dev; in display_usb_activity() local
177 dev = devices; in display_usb_activity()
178 while (dev) { in display_usb_activity()
179 printf("%5.1f%%\t%s\n", 100.0*(dev->active - dev->previous_active) / in display_usb_activity()
180 (0.00001 + dev->connected - dev->previous_connected), dev->human_name); in display_usb_activity()
181 dev = dev->next; in display_usb_activity()
190 struct device_data *dev; in usb_activity_hint() local
191 dev = devices; in usb_activity_hint()
192 while (dev) { in usb_activity_hint()
193 if (dev->active-1 > dev->previous_active && !dev->controller) in usb_activity_hint()
195 dev = dev->next; in usb_activity_hint()
202 dev = devices; in usb_activity_hint()
203 while (dev) { in usb_activity_hint()
204 if (dev->active-1 > dev->previous_active && !dev->controller) { in usb_activity_hint()
208 100.0*(dev->active - dev->previous_active) / in usb_activity_hint()
209 (0.00001 + dev->connected - dev->previous_connected), in usb_activity_hint()
210 dev->human_name); in usb_activity_hint()
216 dev = dev->next; in usb_activity_hint()