Lines Matching refs:b
21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, in iso_packets_buffer_init() argument
30 b->packets = kmalloc(count * sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
31 if (!b->packets) { in iso_packets_buffer_init()
44 err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, in iso_packets_buffer_init()
51 p = page_address(b->iso_buffer.pages[page_index]); in iso_packets_buffer_init()
53 b->packets[i].buffer = p + offset_in_page; in iso_packets_buffer_init()
54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page; in iso_packets_buffer_init()
60 kfree(b->packets); in iso_packets_buffer_init()
71 void iso_packets_buffer_destroy(struct iso_packets_buffer *b, in iso_packets_buffer_destroy() argument
74 fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); in iso_packets_buffer_destroy()
75 kfree(b->packets); in iso_packets_buffer_destroy()