Lines Matching refs:packets
3 * helpers for managing a buffer for many packets
11 #include "packets-buffer.h"
14 * iso_packets_buffer_init - allocates the memory for packets
17 * @count: the number of packets
30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL);
31 if (!b->packets) {
53 b->packets[i].buffer = p + offset_in_page;
54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page;
60 kfree(b->packets);
75 kfree(b->packets);