Lines Matching refs:rx_agg
849 struct rx_agg { struct
1660 r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags);
1843 struct rx_agg *agg; in read_bulk_callback()
2029 static void free_rx_agg(struct r8152 *tp, struct rx_agg *agg) in free_rx_agg()
2040 static struct rx_agg *alloc_rx_agg(struct r8152 *tp, gfp_t mflags) in alloc_rx_agg()
2045 struct rx_agg *rx_agg; in alloc_rx_agg() local
2048 rx_agg = kmalloc_node(sizeof(*rx_agg), mflags, node); in alloc_rx_agg()
2049 if (!rx_agg) in alloc_rx_agg()
2052 rx_agg->page = alloc_pages(mflags | __GFP_COMP | __GFP_NOWARN, order); in alloc_rx_agg()
2053 if (!rx_agg->page) in alloc_rx_agg()
2056 rx_agg->buffer = page_address(rx_agg->page); in alloc_rx_agg()
2058 rx_agg->urb = usb_alloc_urb(0, mflags); in alloc_rx_agg()
2059 if (!rx_agg->urb) in alloc_rx_agg()
2062 rx_agg->context = tp; in alloc_rx_agg()
2064 INIT_LIST_HEAD(&rx_agg->list); in alloc_rx_agg()
2065 INIT_LIST_HEAD(&rx_agg->info_list); in alloc_rx_agg()
2067 list_add_tail(&rx_agg->info_list, &tp->rx_info); in alloc_rx_agg()
2072 return rx_agg; in alloc_rx_agg()
2075 __free_pages(rx_agg->page, order); in alloc_rx_agg()
2077 kfree(rx_agg); in alloc_rx_agg()
2083 struct rx_agg *agg, *agg_next; in free_all_mem()
2486 static inline int agg_offset(struct rx_agg *agg, void *addr) in agg_offset()
2491 static struct rx_agg *rtl_get_free_rx(struct r8152 *tp, gfp_t mflags) in rtl_get_free_rx()
2493 struct rx_agg *agg, *agg_next, *agg_free = NULL; in rtl_get_free_rx()
2557 struct rx_agg *agg, *agg_free; in rx_bottom()
2573 agg = list_entry(cursor, struct rx_agg, list); in rx_bottom()
2758 int r8152_submit_rx(struct r8152 *tp, struct rx_agg *agg, gfp_t mem_flags) in r8152_submit_rx()
3024 struct rx_agg *agg, *agg_next; in rtl_start_rx()
3067 struct rx_agg *agg, *agg_next; in rtl_stop_rx()