Searched refs:packets_per_page (Results 1 – 2 of 2) sorted by relevance
25 unsigned int packets_per_page, pages; in iso_packets_buffer_init() local37 packets_per_page = PAGE_SIZE / packet_size; in iso_packets_buffer_init()38 if (WARN_ON(!packets_per_page)) { in iso_packets_buffer_init()42 pages = DIV_ROUND_UP(count, packets_per_page); in iso_packets_buffer_init()50 page_index = i / packets_per_page; in iso_packets_buffer_init()52 offset_in_page = (i % packets_per_page) * packet_size; in iso_packets_buffer_init()
1064 unsigned int remaining_packets, packets, packets_per_page, i; in alloc_stream_buffers() local1080 packets_per_page = PAGE_SIZE / stream->max_packet_bytes; in alloc_stream_buffers()1082 packets = min(remaining_packets, packets_per_page); in alloc_stream_buffers()