Lines Matching refs:buffhds

254 	struct fsg_buffhd	*buffhds;  member
2324 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2381 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2463 bh = &common->buffhds[i]; in handle_exception()
2489 bh = &common->buffhds[i]; in handle_exception()
2492 common->next_buffhd_to_fill = &common->buffhds[0]; in handle_exception()
2493 common->next_buffhd_to_drain = &common->buffhds[0]; in handle_exception()
2734 static void _fsg_common_free_buffers(struct fsg_buffhd *buffhds, unsigned n) in _fsg_common_free_buffers() argument
2736 if (buffhds) { in _fsg_common_free_buffers()
2737 struct fsg_buffhd *bh = buffhds; in _fsg_common_free_buffers()
2742 kfree(buffhds); in _fsg_common_free_buffers()
2748 struct fsg_buffhd *bh, *buffhds; in fsg_common_set_num_buffers() local
2751 buffhds = kzalloc_objs(*buffhds, n); in fsg_common_set_num_buffers()
2752 if (!buffhds) in fsg_common_set_num_buffers()
2756 bh = buffhds; in fsg_common_set_num_buffers()
2767 bh->next = buffhds; in fsg_common_set_num_buffers()
2769 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_set_num_buffers()
2771 common->buffhds = buffhds; in fsg_common_set_num_buffers()
2780 _fsg_common_free_buffers(buffhds, n); in fsg_common_set_num_buffers()
2814 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_free_buffers()
2815 common->buffhds = NULL; in fsg_common_free_buffers()
3023 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_release()