Lines Matching refs:rx_agg
850 struct rx_agg {
1661 r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags);
1844 struct rx_agg *agg;
2030 static void free_rx_agg(struct r8152 *tp, struct rx_agg *agg)
2041 static struct rx_agg *alloc_rx_agg(struct r8152 *tp, gfp_t mflags)
2046 struct rx_agg *rx_agg;
2049 rx_agg = kmalloc_node(sizeof(*rx_agg), mflags, node);
2050 if (!rx_agg)
2053 rx_agg->page = alloc_pages(mflags | __GFP_COMP | __GFP_NOWARN, order);
2054 if (!rx_agg->page)
2057 rx_agg->buffer = page_address(rx_agg->page);
2059 rx_agg->urb = usb_alloc_urb(0, mflags);
2060 if (!rx_agg->urb)
2063 rx_agg->context = tp;
2065 INIT_LIST_HEAD(&rx_agg->list);
2066 INIT_LIST_HEAD(&rx_agg->info_list);
2068 list_add_tail(&rx_agg->info_list, &tp->rx_info);
2073 return rx_agg;
2076 __free_pages(rx_agg->page, order);
2078 kfree(rx_agg);
2084 struct rx_agg *agg, *agg_next;
2487 static inline int agg_offset(struct rx_agg *agg, void *addr)
2492 static struct rx_agg *rtl_get_free_rx(struct r8152 *tp, gfp_t mflags)
2494 struct rx_agg *agg, *agg_next, *agg_free = NULL;
2558 struct rx_agg *agg, *agg_free;
2574 agg = list_entry(cursor, struct rx_agg, list);
2792 int r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags)
3058 struct rx_agg *agg, *agg_next;
3077 /* Only RTL8152_MAX_RX rx_agg need to be submitted. */
3101 struct rx_agg *agg, *agg_next;
3118 /* At least RTL8152_MAX_RX rx_agg have the page_count being