Home
last modified time | relevance | path

Searched refs:uframes (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/usb/
H A Dhcd-ehci.c2238 static void ehci_update_frindex(EHCIState *ehci, int uframes) in ehci_update_frindex() argument
2245 if ((ehci->frindex % 0x2000) + uframes >= 0x2000) { in ehci_update_frindex()
2252 int rollovers = (ehci->frindex + uframes) / 0x4000; in ehci_update_frindex()
2261 ehci->frindex = (ehci->frindex + uframes) % 0x4000; in ehci_update_frindex()
2270 uint64_t uframes, skipped_uframes; in ehci_work_bh() local
2280 uframes = ns_elapsed / UFRAME_TIMER_NS; in ehci_work_bh()
2285 if (uframes > (ehci->maxframes * 8)) { in ehci_work_bh()
2286 skipped_uframes = uframes - (ehci->maxframes * 8); in ehci_work_bh()
2289 uframes -= skipped_uframes; in ehci_work_bh()
2293 for (i = 0; i < uframes; i++) { in ehci_work_bh()
[all …]
/openbmc/linux/drivers/thunderbolt/
H A Dusb4.c2170 unsigned long uframes; in usb3_bw_to_mbps() local
2172 uframes = bw * 512UL << scale; in usb3_bw_to_mbps()
2173 return DIV_ROUND_CLOSEST(uframes * 8000, MEGA); in usb3_bw_to_mbps()
2178 unsigned long uframes; in mbps_to_usb3_bw() local
2181 uframes = ((unsigned long)mbps * MEGA) / 8000; in mbps_to_usb3_bw()
2182 return DIV_ROUND_UP(uframes, 512UL << scale); in mbps_to_usb3_bw()