Lines Matching refs:buffhds
280 struct fsg_buffhd *buffhds; member
2210 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2267 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2339 bh = &common->buffhds[i]; in handle_exception()
2365 bh = &common->buffhds[i]; in handle_exception()
2368 common->next_buffhd_to_fill = &common->buffhds[0]; in handle_exception()
2369 common->next_buffhd_to_drain = &common->buffhds[0]; in handle_exception()
2594 static void _fsg_common_free_buffers(struct fsg_buffhd *buffhds, unsigned n) in _fsg_common_free_buffers() argument
2596 if (buffhds) { in _fsg_common_free_buffers()
2597 struct fsg_buffhd *bh = buffhds; in _fsg_common_free_buffers()
2602 kfree(buffhds); in _fsg_common_free_buffers()
2608 struct fsg_buffhd *bh, *buffhds; in fsg_common_set_num_buffers() local
2611 buffhds = kcalloc(n, sizeof(*buffhds), GFP_KERNEL); in fsg_common_set_num_buffers()
2612 if (!buffhds) in fsg_common_set_num_buffers()
2616 bh = buffhds; in fsg_common_set_num_buffers()
2627 bh->next = buffhds; in fsg_common_set_num_buffers()
2629 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_set_num_buffers()
2631 common->buffhds = buffhds; in fsg_common_set_num_buffers()
2640 _fsg_common_free_buffers(buffhds, n); in fsg_common_set_num_buffers()
2674 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_free_buffers()
2675 common->buffhds = NULL; in fsg_common_free_buffers()
2886 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_release()