Lines Matching refs:cas_page_t

444 static int cas_page_free(struct cas *cp, cas_page_t *page)  in cas_page_free()
464 static cas_page_t *cas_page_alloc(struct cas *cp, const gfp_t flags) in cas_page_alloc()
466 cas_page_t *page; in cas_page_alloc()
468 page = kmalloc(sizeof(cas_page_t), flags); in cas_page_alloc()
510 cas_page_free(cp, list_entry(elem, cas_page_t, list)); in cas_spare_free()
528 cas_page_free(cp, list_entry(elem, cas_page_t, list)); in cas_spare_free()
549 cas_page_t *page = list_entry(elem, cas_page_t, list); in cas_spare_recover()
595 cas_page_t *spare = cas_page_alloc(cp, flags); in cas_spare_recover()
609 static cas_page_t *cas_page_dequeue(struct cas *cp) in cas_page_dequeue()
644 return list_entry(entry, cas_page_t, list); in cas_page_dequeue()
1334 static inline cas_page_t *cas_page_spare(struct cas *cp, const int index) in cas_page_spare()
1336 cas_page_t *page = cp->rx_pages[1][index]; in cas_page_spare()
1337 cas_page_t *new; in cas_page_spare()
1352 static cas_page_t *cas_page_swap(struct cas *cp, const int ring, in cas_page_swap()
1355 cas_page_t **page0 = cp->rx_pages[0]; in cas_page_swap()
1356 cas_page_t **page1 = cp->rx_pages[1]; in cas_page_swap()
1360 cas_page_t *new = cas_page_spare(cp, index); in cas_page_swap()
1387 cas_page_t *page = cas_page_swap(cp, 0, i); in cas_clean_rxds()
2139 cas_page_t *new; in cas_post_page()
2169 cas_page_t **page = cp->rx_pages[ring]; in cas_post_rxds_ringN()
2183 cas_page_t *new = cas_page_dequeue(cp); in cas_post_rxds_ringN()
3881 cas_page_t **page = cp->rx_pages[ring]; in cas_free_rx_desc()
3921 cas_page_t **page = cp->rx_pages[ring]; in cas_alloc_rx_desc()