Lines Matching refs:pages
1338 struct qdf_mem_multi_page_t *pages, in dp_desc_multi_pages_mem_alloc() argument
1349 pages->num_pages = 0; in dp_desc_multi_pages_mem_alloc()
1350 pages->is_mem_prealloc = 0; in dp_desc_multi_pages_mem_alloc()
1354 pages, in dp_desc_multi_pages_mem_alloc()
1356 if (pages->num_pages) in dp_desc_multi_pages_mem_alloc()
1360 qdf_mem_multi_pages_alloc(soc->osdev, pages, element_size, in dp_desc_multi_pages_mem_alloc()
1364 pages->is_mem_prealloc ? "pre-alloc" : "dynamic-alloc", in dp_desc_multi_pages_mem_alloc()
1370 struct qdf_mem_multi_page_t *pages, in dp_desc_multi_pages_mem_free() argument
1374 if (pages->is_mem_prealloc) { in dp_desc_multi_pages_mem_free()
1381 soc->cdp_soc.ol_ops->dp_put_multi_pages(desc_type, pages); in dp_desc_multi_pages_mem_free()
1382 qdf_mem_zero(pages, sizeof(*pages)); in dp_desc_multi_pages_mem_free()
1384 qdf_mem_multi_pages_free(soc->osdev, pages, in dp_desc_multi_pages_mem_free()
2591 struct qdf_mem_multi_page_t *pages; in dp_link_desc_ring_replenish() local
2611 pages = &soc->link_desc_pages; in dp_link_desc_ring_replenish()
2615 pages = dp_monitor_get_link_desc_pages(soc, mac_id); in dp_link_desc_ring_replenish()
2619 if (!pages) { in dp_link_desc_ring_replenish()
2630 dma_pages = pages->dma_pages; in dp_link_desc_ring_replenish()
2633 pages->page_size); in dp_link_desc_ring_replenish()
2635 } while (page_idx < pages->num_pages); in dp_link_desc_ring_replenish()
2643 qdf_assert(pages->num_element_per_page != 0); in dp_link_desc_ring_replenish()
2647 page_idx = count / pages->num_element_per_page; in dp_link_desc_ring_replenish()
2648 if (desc_id == pages->num_element_per_page) in dp_link_desc_ring_replenish()
2651 offset = count % pages->num_element_per_page; in dp_link_desc_ring_replenish()
2677 num_descs_per_page = pages->num_element_per_page; in dp_link_desc_ring_replenish()
2683 if (desc_id == pages->num_element_per_page) in dp_link_desc_ring_replenish()