Lines Matching refs:rx_agg
849 struct rx_agg {
1660 r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags);
1843 struct rx_agg *agg;
2029 static void free_rx_agg(struct r8152 *tp, struct rx_agg *agg)
2040 static struct rx_agg *alloc_rx_agg(struct r8152 *tp, gfp_t mflags)
2045 struct rx_agg *rx_agg;
2048 rx_agg = kmalloc_node(sizeof(*rx_agg), mflags, node);
2049 if (!rx_agg)
2052 rx_agg->page = alloc_pages(mflags | __GFP_COMP | __GFP_NOWARN, order);
2053 if (!rx_agg->page)
2056 rx_agg->buffer = page_address(rx_agg->page);
2058 rx_agg->urb = usb_alloc_urb(0, mflags);
2059 if (!rx_agg->urb)
2062 rx_agg->context = tp;
2064 INIT_LIST_HEAD(&rx_agg->list);
2065 INIT_LIST_HEAD(&rx_agg->info_list);
2067 list_add_tail(&rx_agg->info_list, &tp->rx_info);
2072 return rx_agg;
2075 __free_pages(rx_agg->page, order);
2077 kfree(rx_agg);
2083 struct rx_agg *agg, *agg_next;
2486 static inline int agg_offset(struct rx_agg *agg, void *addr)
2491 static struct rx_agg *rtl_get_free_rx(struct r8152 *tp, gfp_t mflags)
2493 struct rx_agg *agg, *agg_next, *agg_free = NULL;
2557 struct rx_agg *agg, *agg_free;
2573 agg = list_entry(cursor, struct rx_agg, list);
2758 int r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags)
3024 struct rx_agg *agg, *agg_next;
3043 /* Only RTL8152_MAX_RX rx_agg need to be submitted. */
3067 struct rx_agg *agg, *agg_next;
3084 /* At least RTL8152_MAX_RX rx_agg have the page_count being