Lines Matching refs:dpage
693 struct nbpf_desc_page *dpage = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in nbpf_desc_page_alloc() local
702 if (!dpage) in nbpf_desc_page_alloc()
706 __func__, NBPF_DESCS_PER_PAGE, NBPF_SEGMENTS_PER_PAGE, sizeof(*dpage)); in nbpf_desc_page_alloc()
708 for (i = 0, ldesc = dpage->ldesc, hwdesc = dpage->hwdesc; in nbpf_desc_page_alloc()
709 i < ARRAY_SIZE(dpage->ldesc); in nbpf_desc_page_alloc()
720 for (i = 0, desc = dpage->desc; in nbpf_desc_page_alloc()
721 i < ARRAY_SIZE(dpage->desc); in nbpf_desc_page_alloc()
737 list_add(&dpage->node, &chan->desc_page); in nbpf_desc_page_alloc()
740 return ARRAY_SIZE(dpage->desc); in nbpf_desc_page_alloc()
1066 struct nbpf_desc_page *dpage, *tmp; in nbpf_free_chan_resources() local
1075 list_for_each_entry_safe(dpage, tmp, &chan->desc_page, node) { in nbpf_free_chan_resources()
1078 list_del(&dpage->node); in nbpf_free_chan_resources()
1079 for (i = 0, ldesc = dpage->ldesc; in nbpf_free_chan_resources()
1080 i < ARRAY_SIZE(dpage->ldesc); in nbpf_free_chan_resources()
1084 free_page((unsigned long)dpage); in nbpf_free_chan_resources()