Home
last modified time | relevance | path

Searched refs:node_offset (Results 1 – 3 of 3) sorted by relevance

/system/dev/lib/usb/
A Dusb-request.c326 __EXPORT void usb_request_pool_init(usb_request_pool_t* pool, uint64_t node_offset) { in usb_request_pool_init() argument
329 pool->node_offset = node_offset; in usb_request_pool_init()
334 if (req->alloc_size < (pool->node_offset + sizeof(list_node_t))) { in usb_request_pool_add()
338 list_add_tail(&pool->free_reqs, (list_node_t*)((uintptr_t)req + pool->node_offset)); in usb_request_pool_add()
350 req = (usb_request_t*)((uintptr_t)node - pool->node_offset); in usb_request_pool_get()
370 req = (usb_request_t*)((uintptr_t)node - pool->node_offset); in usb_request_pool_release()
/system/dev/lib/usb/include/usb/
A Dusb-request.h29 uint64_t node_offset; member
108 void usb_request_pool_init(usb_request_pool_t* pool, uint64_t node_offset);
/system/dev/usb/xhci/
A Dxhci.cpp669 uint64_t node_offset = sizeof(usb_request_t) + offsetof(xhci_usb_request_internal_t, node); in xhci_add_to_list_tail() local
670 list_add_tail(list, (list_node_t*)((uintptr_t)req + node_offset)); in xhci_add_to_list_tail()
675 uint64_t node_offset = sizeof(usb_request_t) + offsetof(xhci_usb_request_internal_t, node); in xhci_add_to_list_head() local
676 list_add_head(list, (list_node_t*)((uintptr_t)req + node_offset)); in xhci_add_to_list_head()
681 uint64_t node_offset = sizeof(usb_request_t) + offsetof(xhci_usb_request_internal_t, node); in xhci_remove_from_list_head() local
687 *req = (usb_request_t*)((uintptr_t)node - node_offset); in xhci_remove_from_list_head()
692 uint64_t node_offset = sizeof(usb_request_t) + offsetof(xhci_usb_request_internal_t, node); in xhci_remove_from_list_tail() local
698 *req = (usb_request_t*)((uintptr_t)node - node_offset); in xhci_remove_from_list_tail()
703 uint64_t node_offset = sizeof(usb_request_t) + offsetof(xhci_usb_request_internal_t, node); in xhci_delete_req_node() local
704 list_node_t* node = (list_node_t*)((uintptr_t)req + node_offset); in xhci_delete_req_node()

Completed in 13 milliseconds