Lines Matching refs:buffhds
252 struct fsg_buffhd *buffhds; member
2299 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2356 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2438 bh = &common->buffhds[i]; in handle_exception()
2464 bh = &common->buffhds[i]; in handle_exception()
2467 common->next_buffhd_to_fill = &common->buffhds[0]; in handle_exception()
2468 common->next_buffhd_to_drain = &common->buffhds[0]; in handle_exception()
2709 static void _fsg_common_free_buffers(struct fsg_buffhd *buffhds, unsigned n) in _fsg_common_free_buffers() argument
2711 if (buffhds) { in _fsg_common_free_buffers()
2712 struct fsg_buffhd *bh = buffhds; in _fsg_common_free_buffers()
2717 kfree(buffhds); in _fsg_common_free_buffers()
2723 struct fsg_buffhd *bh, *buffhds; in fsg_common_set_num_buffers() local
2726 buffhds = kcalloc(n, sizeof(*buffhds), GFP_KERNEL); in fsg_common_set_num_buffers()
2727 if (!buffhds) in fsg_common_set_num_buffers()
2731 bh = buffhds; in fsg_common_set_num_buffers()
2742 bh->next = buffhds; in fsg_common_set_num_buffers()
2744 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_set_num_buffers()
2746 common->buffhds = buffhds; in fsg_common_set_num_buffers()
2755 _fsg_common_free_buffers(buffhds, n); in fsg_common_set_num_buffers()
2789 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_free_buffers()
2790 common->buffhds = NULL; in fsg_common_free_buffers()
3002 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_release()