Home
last modified time | relevance | path

Searched refs:buf_list (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.6.21/io_uring/
Dkbuf.h13 struct list_head buf_list; member
74 if (req->buf_list) { in io_kbuf_recycle_ring()
83 req->buf_list->head++; in io_kbuf_recycle_ring()
84 req->buf_list = NULL; in io_kbuf_recycle_ring()
86 req->buf_index = req->buf_list->bgid; in io_kbuf_recycle_ring()
113 if (req->buf_list) { in __io_put_kbuf_list()
114 req->buf_index = req->buf_list->bgid; in __io_put_kbuf_list()
115 req->buf_list->head++; in __io_put_kbuf_list()
Dkbuf.c95 list_add(&buf->list, &bl->buf_list); in io_kbuf_recycle_legacy()
139 if (!list_empty(&bl->buf_list)) { in io_provided_buffer_select()
142 kbuf = list_first_entry(&bl->buf_list, struct io_buffer, list); in io_provided_buffer_select()
178 req->buf_list = bl; in io_ring_buffer_select()
192 req->buf_list = NULL; in io_ring_buffer_select()
228 INIT_LIST_HEAD(&bl[i].buf_list); in io_init_bl_list()
283 INIT_LIST_HEAD(&bl->buf_list); in __io_remove_buffers()
291 while (!list_empty(&bl->buf_list)) { in __io_remove_buffers()
294 nxt = list_first_entry(&bl->buf_list, struct io_buffer, list); in __io_remove_buffers()
466 list_move_tail(&buf->list, &bl->buf_list); in io_add_buffers()
[all …]
/linux-6.6.21/drivers/tty/
Dn_hdlc.c145 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-6.6.21/drivers/media/pci/cx18/
Dcx18-queue.h34 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()
Dcx18-queue.c29 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()
Dcx18-mailbox.c132 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()
Dcx18-fileops.c371 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()
/linux-6.6.21/drivers/media/pci/tw686x/
Dtw686x-audio.c53 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()
Dtw686x.h74 struct list_head buf_list; member
/linux-6.6.21/drivers/media/usb/dvb-usb/
Dusb-urb.c101 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()
/linux-6.6.21/drivers/media/usb/dvb-usb-v2/
Dusb_urb.c154 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()
/linux-6.6.21/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_dma.c124 if (list_empty(&csi->buf_list)) in sun4i_csi_buffer_fill_slot()
127 c_buf = list_first_entry(&csi->buf_list, struct sun4i_csi_buffer, list); in sun4i_csi_buffer_fill_slot()
200 list_add_tail(&buf->list, &csi->buf_list); in sun4i_csi_buffer_queue()
210 list_for_each_entry_safe(buf, node, &csi->buf_list, list) { in return_all_buffers()
410 INIT_LIST_HEAD(&csi->buf_list); in sun4i_csi_dma_register()
Dsun4i_csi.h151 struct list_head buf_list; member
/linux-6.6.21/drivers/media/test-drivers/vimc/
Dvimc-capture.c21 struct list_head buf_list; member
233 list_for_each_entry_safe(vbuf, node, &vcapture->buf_list, list) { in vimc_capture_return_all_buffers()
290 list_add_tail(&buf->list, &vcapture->buf_list); in vimc_capture_buf_queue()
368 vimc_buf = list_first_entry_or_null(&vcapture->buf_list, in vimc_capture_process_frame()
447 INIT_LIST_HEAD(&vcapture->buf_list); in vimc_capture_add()
/linux-6.6.21/drivers/media/platform/renesas/
Dsh_vou.c82 struct list_head buf_list; member
283 list_add_tail(&shbuf->list, &vou_dev->buf_list); in sh_vou_buf_queue()
297 list_for_each_entry_safe(buf, node, &vou_dev->buf_list, list) { in sh_vou_start_streaming()
306 buf = list_entry(vou_dev->buf_list.next, struct sh_vou_buffer, list); in sh_vou_start_streaming()
349 list_for_each_entry_safe(buf, node, &vou_dev->buf_list, list) { in sh_vou_stop_streaming()
1031 if (!vou_dev->active || list_empty(&vou_dev->buf_list)) { in sh_vou_isr()
1067 vou_dev->active = list_entry(vou_dev->buf_list.next, in sh_vou_isr()
1070 if (list_is_singular(&vou_dev->buf_list)) { in sh_vou_isr()
1243 INIT_LIST_HEAD(&vou_dev->buf_list); in sh_vou_probe()
1308 INIT_LIST_HEAD(&vou_dev->buf_list); in sh_vou_probe()
/linux-6.6.21/samples/v4l/
Dv4l2-pci-skeleton.c66 struct list_head buf_list; member
210 list_add_tail(&buf->list, &skel->buf_list); in buffer_queue()
224 list_for_each_entry_safe(buf, node, &skel->buf_list, list) { in return_all_buffers()
843 INIT_LIST_HEAD(&skel->buf_list); in skeleton_probe()
/linux-6.6.21/drivers/input/touchscreen/
Dsur40.c218 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()
891 list_add_tail(&buf->list, &sur40->buf_list); in sur40_buffer_queue()
901 list_for_each_entry_safe(buf, node, &sur40->buf_list, list) { in return_all_buffers()
/linux-6.6.21/drivers/vfio/pci/mlx5/
Dmain.c137 if (list_empty(&migf->buf_list)) { in mlx5vf_get_data_buff_from_pos()
142 buf = list_first_entry(&migf->buf_list, struct mlx5_vhca_data_buffer, in mlx5vf_get_data_buff_from_pos()
221 !list_empty(&migf->buf_list) || in mlx5vf_save_read()
289 else if (!list_empty(&migf->buf_list) || in mlx5vf_save_poll()
341 list_add_tail(&header_buf->buf_elm, &migf->buf_list); in mlx5vf_add_stop_copy_header()
574 INIT_LIST_HEAD(&migf->buf_list); in mlx5vf_pci_save_device_data()
995 INIT_LIST_HEAD(&migf->buf_list); in mlx5vf_pci_resume_device_data()
/linux-6.6.21/drivers/media/platform/renesas/rzg2l-cru/
Drzg2l-video.c135 list_for_each_entry_safe(buf, node, &cru->buf_list, list) { in return_unused_buffers()
182 list_add_tail(to_buf_list(vbuf), &cru->buf_list); in rzg2l_cru_buffer_queue()
260 if (list_empty(&cru->buf_list)) { in rzg2l_cru_fill_hw_slot()
265 buf = list_entry(cru->buf_list.next, in rzg2l_cru_fill_hw_slot()
752 INIT_LIST_HEAD(&cru->buf_list); in rzg2l_cru_dma_register()
Drzg2l-cru.h129 struct list_head buf_list; member
/linux-6.6.21/drivers/media/usb/airspy/
Dairspy.c119 u8 *buf_list[MAX_BULK_BUFS]; member
355 s->buf_list[s->buf_num], in airspy_free_stream_bufs()
373 s->buf_list[s->buf_num] = usb_alloc_coherent(s->udev, in airspy_alloc_stream_bufs()
376 if (!s->buf_list[s->buf_num]) { in airspy_alloc_stream_bufs()
383 s->buf_list[s->buf_num], in airspy_alloc_stream_bufs()
428 s->buf_list[i], in airspy_alloc_urbs()
/linux-6.6.21/drivers/media/platform/renesas/rcar-vin/
Drcar-dma.c1024 list_empty(&vin->buf_list)) { in rvin_fill_hw_slot()
1030 buf = list_entry(vin->buf_list.next, struct rvin_buffer, list); in rvin_fill_hw_slot()
1181 list_for_each_entry_safe(buf, node, &vin->buf_list, list) { in return_unused_buffers()
1230 list_add_tail(to_buf_list(vbuf), &vin->buf_list); in rvin_buffer_queue()
1544 INIT_LIST_HEAD(&vin->buf_list); in rvin_dma_register()
Drcar-vin.h241 struct list_head buf_list; member
/linux-6.6.21/sound/pci/
Des1968.c507 struct list_head buf_list; member
1330 list_for_each_entry(buf, &chip->buf_list, list) { in calc_available_memory_size()
1347 list_for_each_entry(buf, &chip->buf_list, list) { in snd_es1968_new_memory()
1381 if (buf->list.prev != &chip->buf_list) { in snd_es1968_free_memory()
1390 if (buf->list.next != &chip->buf_list) { in snd_es1968_free_memory()
1408 while ((p = chip->buf_list.next) != &chip->buf_list) { in snd_es1968_free_dmabuf()
1436 INIT_LIST_HEAD(&chip->buf_list); in snd_es1968_init_dmabuf()
1449 list_add(&chunk->list, &chip->buf_list); in snd_es1968_init_dmabuf()
2652 INIT_LIST_HEAD(&chip->buf_list); in snd_es1968_create()
/linux-6.6.21/net/smc/
Dsmc_core.c1344 struct list_head *buf_list; in __smc_lgr_free_bufs() local
1349 buf_list = &lgr->rmbs[i]; in __smc_lgr_free_bufs()
1351 buf_list = &lgr->sndbufs[i]; in __smc_lgr_free_bufs()
1352 list_for_each_entry_safe(buf_desc, bf_desc, buf_list, in __smc_lgr_free_bufs()
2008 struct list_head *buf_list) in smc_buf_get_slot() argument
2013 list_for_each_entry(buf_slot, buf_list, list) { in smc_buf_get_slot()
2324 struct list_head *buf_list; in __smc_buf_create() local
2340 buf_list = &lgr->rmbs[bufsize_comp]; in __smc_buf_create()
2343 buf_list = &lgr->sndbufs[bufsize_comp]; in __smc_buf_create()
2348 buf_desc = smc_buf_get_slot(bufsize_comp, lock, buf_list); in __smc_buf_create()
[all …]

12