Lines Matching refs:buffhds

276 	struct fsg_buffhd	*buffhds;  member
2246 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2305 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2376 bh = &common->buffhds[i]; in handle_exception()
2388 bh = &common->buffhds[i]; in handle_exception()
2411 bh = &common->buffhds[i]; in handle_exception()
2414 common->next_buffhd_to_fill = &common->buffhds[0]; in handle_exception()
2415 common->next_buffhd_to_drain = &common->buffhds[0]; in handle_exception()
2699 static void _fsg_common_free_buffers(struct fsg_buffhd *buffhds, unsigned n) in _fsg_common_free_buffers() argument
2701 if (buffhds) { in _fsg_common_free_buffers()
2702 struct fsg_buffhd *bh = buffhds; in _fsg_common_free_buffers()
2707 kfree(buffhds); in _fsg_common_free_buffers()
2713 struct fsg_buffhd *bh, *buffhds; in fsg_common_set_num_buffers() local
2720 buffhds = kcalloc(n, sizeof(*buffhds), GFP_KERNEL); in fsg_common_set_num_buffers()
2721 if (!buffhds) in fsg_common_set_num_buffers()
2725 bh = buffhds; in fsg_common_set_num_buffers()
2736 bh->next = buffhds; in fsg_common_set_num_buffers()
2738 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_set_num_buffers()
2740 common->buffhds = buffhds; in fsg_common_set_num_buffers()
2749 _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()
3003 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_release()