/linux/drivers/tty/ |
H A D | n_hdlc.c | 145 static void n_hdlc_buf_return(struct n_hdlc_buf_list *buf_list, 726 static void n_hdlc_buf_return(struct n_hdlc_buf_list *buf_list, in n_hdlc_buf_return() argument 731 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_return() 733 list_add(&buf->list_item, &buf_list->list); in n_hdlc_buf_return() 734 buf_list->count++; in n_hdlc_buf_return() 736 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_return() 744 static void n_hdlc_buf_put(struct n_hdlc_buf_list *buf_list, in n_hdlc_buf_put() argument 749 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_put() 751 list_add_tail(&buf->list_item, &buf_list->list); in n_hdlc_buf_put() 752 buf_list->count++; in n_hdlc_buf_put() [all …]
|
/linux/drivers/media/pci/cx18/ |
H A D | cx18-queue.h | 34 if (list_is_singular(&mdl->buf_list)) in cx18_mdl_sync_for_device() 35 cx18_buf_sync_for_device(s, list_first_entry(&mdl->buf_list, in cx18_mdl_sync_for_device() 47 if (list_is_singular(&mdl->buf_list)) in cx18_mdl_swap() 48 cx18_buf_swap(list_first_entry(&mdl->buf_list, in cx18_mdl_swap()
|
H A D | cx18-queue.c | 29 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_swap() 96 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_update_bufs_for_cpu() 114 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_update_bufs_for_cpu() 115 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_update_bufs_for_cpu() 245 while (!list_empty(&mdl->buf_list)) { in cx18_unload_queues() 246 buf = list_first_entry(&mdl->buf_list, in cx18_unload_queues() 289 list_move_tail(&buf->list, &mdl->buf_list); in cx18_load_queues() 327 list_for_each_entry(buf, &mdl->buf_list, list) in _cx18_mdl_sync_for_device() 383 INIT_LIST_HEAD(&mdl->buf_list); in cx18_stream_alloc()
|
H A D | cx18-mailbox.c | 132 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_dvb() 133 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_dvb() 141 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_dvb() 174 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_vb2() 215 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_alsa() 216 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_alsa() 224 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_alsa()
|
H A D | cx18-fileops.c | 371 mdl->curr_buf = list_first_entry(&mdl->buf_list, in cx18_copy_mdl_to_user() 374 if (list_entry_is_past_end(mdl->curr_buf, &mdl->buf_list, list)) { in cx18_copy_mdl_to_user() 384 list_for_each_entry_from(mdl->curr_buf, &mdl->buf_list, list) { in cx18_copy_mdl_to_user()
|
H A D | cx18-vbi.c | 256 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_process_vbi_data()
|
/linux/drivers/media/pci/tw686x/ |
H A D | tw686x-audio.c | 53 if (!list_empty(&ac->buf_list)) { in tw686x_audio_irq() 54 next = list_first_entry(&ac->buf_list, in tw686x_audio_irq() 56 list_move_tail(&next->list, &ac->buf_list); in tw686x_audio_irq() 178 INIT_LIST_HEAD(&ac->buf_list); in tw686x_pcm_prepare() 184 list_add_tail(&ac->buf[i].list, &ac->buf_list); in tw686x_pcm_prepare() 187 p_buf = list_first_entry(&ac->buf_list, struct tw686x_audio_buf, list); in tw686x_pcm_prepare() 188 list_move_tail(&p_buf->list, &ac->buf_list); in tw686x_pcm_prepare() 190 b_buf = list_first_entry(&ac->buf_list, struct tw686x_audio_buf, list); in tw686x_pcm_prepare() 191 list_move_tail(&b_buf->list, &ac->buf_list); in tw686x_pcm_prepare()
|
H A D | tw686x.h | 74 struct list_head buf_list; member
|
/linux/drivers/media/usb/dvb-usb/ |
H A D | usb-urb.c | 101 stream->buf_list[stream->buf_num], in usb_free_stream_buffers() 120 if (( stream->buf_list[stream->buf_num] = in usb_allocate_stream_buffers() 129 stream->buf_list[stream->buf_num], (long long)stream->dma_addr[stream->buf_num]); in usb_allocate_stream_buffers() 130 memset(stream->buf_list[stream->buf_num],0,size); in usb_allocate_stream_buffers() 157 stream->buf_list[i], in usb_bulk_urb_init() 199 urb->transfer_buffer = stream->buf_list[i]; in usb_isoc_urb_init()
|
H A D | dvb-usb.h | 351 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; member
|
/linux/io_uring/ |
H A D | kbuf.c | 65 list_add(&buf->list, &bl->buf_list); in io_kbuf_recycle_legacy() 103 if (!list_empty(&bl->buf_list)) { in io_provided_buffer_select() 106 kbuf = list_first_entry(&bl->buf_list, struct io_buffer, list); in io_provided_buffer_select() 110 if (list_empty(&bl->buf_list)) in io_provided_buffer_select() 154 req->buf_list = bl; in io_ring_buffer_select() 169 req->buf_list = NULL; in io_ring_buffer_select() 283 req->buf_list = bl; in io_ring_buffers_peek() 366 INIT_LIST_HEAD(&bl->buf_list); in __io_remove_buffers() 374 while (!list_empty(&bl->buf_list)) { in __io_remove_buffers() 377 nxt = list_first_entry(&bl->buf_list, struct io_buffer, list); in __io_remove_buffers() [all …]
|
H A D | kbuf.h | 23 struct list_head buf_list; member 101 if (req->buf_list) { in io_kbuf_recycle_ring() 102 req->buf_index = req->buf_list->bgid; in io_kbuf_recycle_ring() 160 struct io_buffer_list *bl = req->buf_list; in __io_put_kbuf_ring()
|
/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | usb_urb.c | 154 stream->buf_list[i], in usb_urb_alloc_bulk_urbs() 193 urb->transfer_buffer = stream->buf_list[i]; in usb_urb_alloc_isoc_urbs() 212 kfree(stream->buf_list[stream->buf_num]); in usb_free_stream_buffers() 232 stream->buf_list[stream->buf_num] = kzalloc(size, GFP_ATOMIC); in usb_alloc_stream_buffers() 233 if (!stream->buf_list[stream->buf_num]) { in usb_alloc_stream_buffers() 242 stream->buf_list[stream->buf_num], in usb_alloc_stream_buffers()
|
H A D | dvb_usb.h | 300 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; member
|
/linux/drivers/media/pci/mgb4/ |
H A D | mgb4_vout.c | 98 list_for_each_entry_safe(buf, node, &voutdev->buf_list, list) { in return_all_buffers() 171 list_add_tail(&buf->list, &vindev->buf_list); in buffer_queue() 208 buf = list_first_entry(&voutdev->buf_list, struct mgb4_frame_buffer, in start_streaming() 210 list_del_init(voutdev->buf_list.next); in start_streaming() 589 if (!list_empty(&voutdev->buf_list)) { in dma_transfer() 590 buf = list_first_entry(&voutdev->buf_list, in dma_transfer() 592 list_del_init(voutdev->buf_list.next); in dma_transfer() 734 INIT_LIST_HEAD(&voutdev->buf_list); in mgb4_vout_create()
|
H A D | mgb4_vout.h | 44 struct list_head buf_list; member
|
H A D | mgb4_vin.h | 47 struct list_head buf_list; member
|
H A D | mgb4_vin.c | 181 list_for_each_entry_safe(buf, node, &vindev->buf_list, list) { in return_all_buffers() 256 list_add_tail(&buf->list, &vindev->buf_list); in buffer_queue() 709 if (!list_empty(&vindev->buf_list)) { in dma_transfer() 710 buf = list_first_entry(&vindev->buf_list, in dma_transfer() 712 list_del_init(vindev->buf_list.next); in dma_transfer() 904 INIT_LIST_HEAD(&vindev->buf_list); in mgb4_vin_create()
|
/linux/drivers/input/touchscreen/ |
H A D | sur40.c | 218 struct list_head buf_list; member 542 if (list_empty(&sur40->buf_list)) { in sur40_process_video() 547 new_buf = list_entry(sur40->buf_list.next, struct sur40_buffer, list); in sur40_process_video() 686 INIT_LIST_HEAD(&sur40->buf_list); in sur40_probe() 892 list_add_tail(&buf->list, &sur40->buf_list); in sur40_buffer_queue() 902 list_for_each_entry_safe(buf, node, &sur40->buf_list, list) { in return_all_buffers()
|
/linux/drivers/vfio/pci/mlx5/ |
H A D | main.c | 95 if (list_empty(&migf->buf_list)) { in mlx5vf_get_data_buff_from_pos() 100 buf = list_first_entry(&migf->buf_list, struct mlx5_vhca_data_buffer, in mlx5vf_get_data_buff_from_pos() 210 !list_empty(&migf->buf_list) || in mlx5vf_save_read() 278 else if (!list_empty(&migf->buf_list) || in mlx5vf_save_poll() 398 list_add_tail(&header_buf->buf_elm, &migf->buf_list); in mlx5vf_add_stop_copy_header() 660 INIT_LIST_HEAD(&migf->buf_list); in mlx5vf_pci_save_device_data() 1025 INIT_LIST_HEAD(&migf->buf_list); in mlx5vf_pci_resume_device_data()
|
H A D | cmd.h | 110 struct list_head buf_list; member
|
/linux/net/smc/ |
H A D | smc_core.c | 226 struct list_head *buf_list, in smc_lgr_buf_list_add() argument 229 list_add(&buf_desc->list, buf_list); in smc_lgr_buf_list_add() 1415 struct list_head *buf_list; in __smc_lgr_free_bufs() local 1420 buf_list = &lgr->rmbs[i]; in __smc_lgr_free_bufs() 1422 buf_list = &lgr->sndbufs[i]; in __smc_lgr_free_bufs() 1423 list_for_each_entry_safe(buf_desc, bf_desc, buf_list, in __smc_lgr_free_bufs() 2100 struct list_head *buf_list) in smc_buf_get_slot() argument 2105 list_for_each_entry(buf_slot, buf_list, list) { in smc_buf_get_slot() 2416 struct list_head *buf_list; in __smc_buf_create() local 2432 buf_list = &lgr->rmbs[bufsize_comp]; in __smc_buf_create() [all …]
|
/linux/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_csi.h | 152 struct list_head buf_list; member
|
/linux/sound/pci/ |
H A D | es1968.c | 505 struct list_head buf_list; member 1322 list_for_each_entry(buf, &chip->buf_list, list) { in calc_available_memory_size() 1339 list_for_each_entry(buf, &chip->buf_list, list) { in snd_es1968_new_memory() 1373 if (buf->list.prev != &chip->buf_list) { in snd_es1968_free_memory() 1382 if (buf->list.next != &chip->buf_list) { in snd_es1968_free_memory() 1400 while ((p = chip->buf_list.next) != &chip->buf_list) { in snd_es1968_free_dmabuf() 1428 INIT_LIST_HEAD(&chip->buf_list); in snd_es1968_init_dmabuf() 1441 list_add(&chunk->list, &chip->buf_list); in snd_es1968_init_dmabuf() 2639 INIT_LIST_HEAD(&chip->buf_list); in snd_es1968_create()
|
/linux/drivers/media/usb/gspca/ |
H A D | gspca.h | 198 struct list_head buf_list; member
|