Home
last modified time | relevance | path

Searched refs:packets_per_page (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/sound/firewire/
H A Dpackets-buffer.c25 unsigned int packets_per_page, pages; in iso_packets_buffer_init() local
37 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()
/openbmc/linux/sound/usb/misc/
H A Dua101.c1022 unsigned int remaining_packets, packets, packets_per_page, i; in alloc_stream_buffers() local
1038 packets_per_page = PAGE_SIZE / stream->max_packet_bytes; in alloc_stream_buffers()
1040 packets = min(remaining_packets, packets_per_page); in alloc_stream_buffers()