Lines Matching refs:buffhds

251 	struct fsg_buffhd	*buffhds;  member
2178 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2235 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2307 bh = &common->buffhds[i]; in handle_exception()
2333 bh = &common->buffhds[i]; in handle_exception()
2336 common->next_buffhd_to_fill = &common->buffhds[0]; in handle_exception()
2337 common->next_buffhd_to_drain = &common->buffhds[0]; in handle_exception()
2562 static void _fsg_common_free_buffers(struct fsg_buffhd *buffhds, unsigned n) in _fsg_common_free_buffers() argument
2564 if (buffhds) { in _fsg_common_free_buffers()
2565 struct fsg_buffhd *bh = buffhds; in _fsg_common_free_buffers()
2570 kfree(buffhds); in _fsg_common_free_buffers()
2576 struct fsg_buffhd *bh, *buffhds; in fsg_common_set_num_buffers() local
2579 buffhds = kcalloc(n, sizeof(*buffhds), GFP_KERNEL); in fsg_common_set_num_buffers()
2580 if (!buffhds) in fsg_common_set_num_buffers()
2584 bh = buffhds; in fsg_common_set_num_buffers()
2595 bh->next = buffhds; in fsg_common_set_num_buffers()
2597 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_set_num_buffers()
2599 common->buffhds = buffhds; in fsg_common_set_num_buffers()
2608 _fsg_common_free_buffers(buffhds, n); in fsg_common_set_num_buffers()
2642 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_free_buffers()
2643 common->buffhds = NULL; in fsg_common_free_buffers()
2854 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_release()