Lines Matching refs:buffhds

276 	struct fsg_buffhd	*buffhds;  member
2246 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2303 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2372 bh = &common->buffhds[i]; in handle_exception()
2384 bh = &common->buffhds[i]; in handle_exception()
2407 bh = &common->buffhds[i]; in handle_exception()
2410 common->next_buffhd_to_fill = &common->buffhds[0]; in handle_exception()
2411 common->next_buffhd_to_drain = &common->buffhds[0]; in handle_exception()
2697 static void _fsg_common_free_buffers(struct fsg_buffhd *buffhds, unsigned n) in _fsg_common_free_buffers() argument
2699 if (buffhds) { in _fsg_common_free_buffers()
2700 struct fsg_buffhd *bh = buffhds; in _fsg_common_free_buffers()
2705 kfree(buffhds); in _fsg_common_free_buffers()
2711 struct fsg_buffhd *bh, *buffhds; in fsg_common_set_num_buffers() local
2718 buffhds = kcalloc(n, sizeof(*buffhds), GFP_KERNEL); in fsg_common_set_num_buffers()
2719 if (!buffhds) in fsg_common_set_num_buffers()
2723 bh = buffhds; in fsg_common_set_num_buffers()
2734 bh->next = buffhds; in fsg_common_set_num_buffers()
2736 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_set_num_buffers()
2738 common->buffhds = buffhds; in fsg_common_set_num_buffers()
2747 _fsg_common_free_buffers(buffhds, n); in fsg_common_set_num_buffers()
2788 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_free_buffers()
2789 common->buffhds = NULL; in fsg_common_free_buffers()
3002 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_release()