Lines Matching refs:buffhds

253 	struct fsg_buffhd	*buffhds;  member
2300 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2357 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2439 bh = &common->buffhds[i]; in handle_exception()
2465 bh = &common->buffhds[i]; in handle_exception()
2468 common->next_buffhd_to_fill = &common->buffhds[0]; in handle_exception()
2469 common->next_buffhd_to_drain = &common->buffhds[0]; in handle_exception()
2710 static void _fsg_common_free_buffers(struct fsg_buffhd *buffhds, unsigned n) in _fsg_common_free_buffers() argument
2712 if (buffhds) { in _fsg_common_free_buffers()
2713 struct fsg_buffhd *bh = buffhds; in _fsg_common_free_buffers()
2718 kfree(buffhds); in _fsg_common_free_buffers()
2724 struct fsg_buffhd *bh, *buffhds; in fsg_common_set_num_buffers() local
2727 buffhds = kcalloc(n, sizeof(*buffhds), GFP_KERNEL); in fsg_common_set_num_buffers()
2728 if (!buffhds) in fsg_common_set_num_buffers()
2732 bh = buffhds; in fsg_common_set_num_buffers()
2743 bh->next = buffhds; in fsg_common_set_num_buffers()
2745 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_set_num_buffers()
2747 common->buffhds = buffhds; in fsg_common_set_num_buffers()
2756 _fsg_common_free_buffers(buffhds, n); in fsg_common_set_num_buffers()
2790 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_free_buffers()
2791 common->buffhds = NULL; in fsg_common_free_buffers()
2999 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_release()