Lines Matching refs:rx_agg
768 struct rx_agg {
1389 r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags);
1559 struct rx_agg *agg;
1737 static void free_rx_agg(struct r8152 *tp, struct rx_agg *agg)
1748 static struct rx_agg *alloc_rx_agg(struct r8152 *tp, gfp_t mflags)
1753 struct rx_agg *rx_agg;
1756 rx_agg = kmalloc_node(sizeof(*rx_agg), mflags, node);
1757 if (!rx_agg)
1760 rx_agg->page = alloc_pages(mflags | __GFP_COMP, order);
1761 if (!rx_agg->page)
1764 rx_agg->buffer = page_address(rx_agg->page);
1766 rx_agg->urb = usb_alloc_urb(0, mflags);
1767 if (!rx_agg->urb)
1770 rx_agg->context = tp;
1772 INIT_LIST_HEAD(&rx_agg->list);
1773 INIT_LIST_HEAD(&rx_agg->info_list);
1775 list_add_tail(&rx_agg->info_list, &tp->rx_info);
1780 return rx_agg;
1783 __free_pages(rx_agg->page, order);
1785 kfree(rx_agg);
1791 struct rx_agg *agg, *agg_next;
2194 static inline int agg_offset(struct rx_agg *agg, void *addr)
2199 static struct rx_agg *rtl_get_free_rx(struct r8152 *tp, gfp_t mflags)
2201 struct rx_agg *agg, *agg_next, *agg_free = NULL;
2264 struct rx_agg *agg, *agg_free;
2271 agg = list_entry(cursor, struct rx_agg, list);
2459 int r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags)
2686 struct rx_agg *agg, *agg_next;
2705 /* Only RTL8152_MAX_RX rx_agg need to be submitted. */
2729 struct rx_agg *agg, *agg_next;
2746 /* At least RTL8152_MAX_RX rx_agg have the page_count being