Lines Matching refs:order
4114 static void free_pg_vec(struct pgv *pg_vec, unsigned int order, in free_pg_vec() argument
4125 order); in free_pg_vec()
4132 static char *alloc_one_pg_vec_page(unsigned long order) in alloc_one_pg_vec_page() argument
4138 buffer = (char *) __get_free_pages(gfp_flags, order); in alloc_one_pg_vec_page()
4143 buffer = vzalloc((1 << order) * PAGE_SIZE); in alloc_one_pg_vec_page()
4149 buffer = (char *) __get_free_pages(gfp_flags, order); in alloc_one_pg_vec_page()
4157 static struct pgv *alloc_pg_vec(struct tpacket_req *req, int order) in alloc_pg_vec() argument
4168 pg_vec[i].buffer = alloc_one_pg_vec_page(order); in alloc_pg_vec()
4177 free_pg_vec(pg_vec, order, block_nr); in alloc_pg_vec()
4187 int was_running, order = 0; in packet_set_ring() local
4257 order = get_order(req->tp_block_size); in packet_set_ring()
4258 pg_vec = alloc_pg_vec(req, order); in packet_set_ring()
4304 swap(rb->pg_vec_order, order); in packet_set_ring()
4330 free_pg_vec(pg_vec, order, req->tp_block_nr); in packet_set_ring()