Lines Matching refs:urb_p
44 struct urbp *urb_p; in alloc_urbp() local
46 urb_p = kzalloc(sizeof(*urb_p), GFP_KERNEL); in alloc_urbp()
47 if (!urb_p) in alloc_urbp()
48 return urb_p; in alloc_urbp()
50 urb_p->urb = NULL; in alloc_urbp()
51 urb_p->ep = NULL; in alloc_urbp()
52 INIT_LIST_HEAD(&urb_p->urb_entry); in alloc_urbp()
53 return urb_p; in alloc_urbp()
56 static void free_urbp(struct urbp *urb_p) in free_urbp() argument
58 kfree(urb_p); in free_urbp()
61 void free_urbp_and_urb(struct urbp *urb_p) in free_urbp_and_urb() argument
63 if (!urb_p) in free_urbp_and_urb()
65 free_urb(urb_p->urb); in free_urbp_and_urb()
66 free_urbp(urb_p); in free_urbp_and_urb()
93 struct urbp *urb_p, *tmp; in stop_activity() local
100 list_for_each_entry_safe(urb_p, tmp, &udc->urb_queue, urb_entry) { in stop_activity()
101 list_del(&urb_p->urb_entry); in stop_activity()
102 free_urbp_and_urb(urb_p); in stop_activity()