Lines Matching refs:order
4296 static void free_pg_vec(struct pgv *pg_vec, unsigned int order, in free_pg_vec() argument
4307 order); in free_pg_vec()
4314 static char *alloc_one_pg_vec_page(unsigned long order) in alloc_one_pg_vec_page() argument
4320 buffer = (char *) __get_free_pages(gfp_flags, order); in alloc_one_pg_vec_page()
4325 buffer = vzalloc(array_size((1 << order), PAGE_SIZE)); in alloc_one_pg_vec_page()
4331 buffer = (char *) __get_free_pages(gfp_flags, order); in alloc_one_pg_vec_page()
4339 static struct pgv *alloc_pg_vec(struct tpacket_req *req, int order) in alloc_pg_vec() argument
4350 pg_vec[i].buffer = alloc_one_pg_vec_page(order); in alloc_pg_vec()
4359 free_pg_vec(pg_vec, order, block_nr); in alloc_pg_vec()
4370 int was_running, order = 0; in packet_set_ring() local
4434 order = get_order(req->tp_block_size); in packet_set_ring()
4435 pg_vec = alloc_pg_vec(req, order); in packet_set_ring()
4497 swap(rb->pg_vec_order, order); in packet_set_ring()
4525 free_pg_vec(pg_vec, order, req->tp_block_nr); in packet_set_ring()