Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/xhci.c
Show First 20 Lines • Show All 3,706 Lines • ▼ Show 20 Lines | done: | ||||
return (err); | return (err); | ||||
} | } | ||||
static void | static void | ||||
xhci_xfer_setup(struct usb_setup_params *parm) | xhci_xfer_setup(struct usb_setup_params *parm) | ||||
{ | { | ||||
struct usb_page_search page_info; | struct usb_page_search page_info; | ||||
struct usb_page_cache *pc; | struct usb_page_cache *pc; | ||||
struct xhci_softc *sc; | |||||
struct usb_xfer *xfer; | struct usb_xfer *xfer; | ||||
void *last_obj; | void *last_obj; | ||||
uint32_t ntd; | uint32_t ntd; | ||||
uint32_t n; | uint32_t n; | ||||
sc = XHCI_BUS2SC(parm->udev->bus); | |||||
xfer = parm->curr_xfer; | xfer = parm->curr_xfer; | ||||
/* | /* | ||||
* The proof for the "ntd" formula is illustrated like this: | * The proof for the "ntd" formula is illustrated like this: | ||||
* | * | ||||
* +------------------------------------+ | * +------------------------------------+ | ||||
* | | | * | | | ||||
* | |remainder -> | | * | |remainder -> | | ||||
▲ Show 20 Lines • Show All 630 Lines • Show Last 20 Lines |