Lines Matching refs:buffhds
280 struct fsg_buffhd *buffhds; member
2203 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2260 struct fsg_buffhd *bh = &common->buffhds[i]; in do_set_interface()
2331 bh = &common->buffhds[i]; in handle_exception()
2357 bh = &common->buffhds[i]; in handle_exception()
2360 common->next_buffhd_to_fill = &common->buffhds[0]; in handle_exception()
2361 common->next_buffhd_to_drain = &common->buffhds[0]; in handle_exception()
2585 static void _fsg_common_free_buffers(struct fsg_buffhd *buffhds, unsigned n) in _fsg_common_free_buffers() argument
2587 if (buffhds) { in _fsg_common_free_buffers()
2588 struct fsg_buffhd *bh = buffhds; in _fsg_common_free_buffers()
2593 kfree(buffhds); in _fsg_common_free_buffers()
2599 struct fsg_buffhd *bh, *buffhds; in fsg_common_set_num_buffers() local
2602 buffhds = kcalloc(n, sizeof(*buffhds), GFP_KERNEL); in fsg_common_set_num_buffers()
2603 if (!buffhds) in fsg_common_set_num_buffers()
2607 bh = buffhds; in fsg_common_set_num_buffers()
2618 bh->next = buffhds; in fsg_common_set_num_buffers()
2620 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_set_num_buffers()
2622 common->buffhds = buffhds; in fsg_common_set_num_buffers()
2631 _fsg_common_free_buffers(buffhds, n); in fsg_common_set_num_buffers()
2665 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_free_buffers()
2666 common->buffhds = NULL; in fsg_common_free_buffers()
2877 _fsg_common_free_buffers(common->buffhds, common->fsg_num_buffers); in fsg_common_release()