Lines Matching refs:seg
65 static void xhci_segment_free(struct xhci_segment *seg) in xhci_segment_free() argument
67 free(seg->trbs); in xhci_segment_free()
68 seg->trbs = NULL; in xhci_segment_free()
70 free(seg); in xhci_segment_free()
81 struct xhci_segment *seg; in xhci_ring_free() local
87 seg = first_seg->next; in xhci_ring_free()
88 while (seg != first_seg) { in xhci_ring_free()
89 struct xhci_segment *next = seg->next; in xhci_ring_free()
90 xhci_segment_free(seg); in xhci_ring_free()
91 seg = next; in xhci_ring_free()
276 struct xhci_segment *seg; in xhci_segment_alloc() local
278 seg = (struct xhci_segment *)malloc(sizeof(struct xhci_segment)); in xhci_segment_alloc()
279 BUG_ON(!seg); in xhci_segment_alloc()
281 seg->trbs = (union xhci_trb *)xhci_malloc(SEGMENT_SIZE); in xhci_segment_alloc()
283 seg->next = NULL; in xhci_segment_alloc()
285 return seg; in xhci_segment_alloc()
511 struct xhci_segment *seg; in xhci_mem_init() local
556 for (val = 0, seg = ctrl->event_ring->first_seg; in xhci_mem_init()
560 trb_64 = (uintptr_t)seg->trbs; in xhci_mem_init()
565 seg = seg->next; in xhci_mem_init()