Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/ebc-dev/bufmanage/
H A Dbuf_manage.c25 struct buf_list_s *buf_list; /* buffer list. */ member
142 if (ebc_buf_info.buf_list) { in ebc_find_buf_by_phy_addr()
144 while (temp_pos < ebc_buf_info.buf_list->nb_elt) { in ebc_find_buf_by_phy_addr()
145 temp_buf = (struct ebc_buf_s *)buf_list_get(ebc_buf_info.buf_list, temp_pos++); in ebc_find_buf_by_phy_addr()
193 if (ebc_buf_info.buf_list) { in ebc_empty_buf_get()
196 while (temp_pos < ebc_buf_info.buf_list->nb_elt) { in ebc_empty_buf_get()
197 temp_buf = (struct ebc_buf_s *)buf_list_get(ebc_buf_info.buf_list, temp_pos++); in ebc_empty_buf_get()
236 if (ebc_buf_info.buf_list) { in ebc_buf_uninit()
237 pos = ebc_buf_info.buf_list->nb_elt - 1; in ebc_buf_uninit()
239 temp_buf = (struct ebc_buf_s *)buf_list_get(ebc_buf_info.buf_list, pos); in ebc_buf_uninit()
[all …]
H A DMakefile3 obj-$(CONFIG_ROCKCHIP_EBC_DEV) += buf_manage.o buf_list.o
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/
H A Dhns_roce_alloc.c187 struct hns_roce_buf_list *buf_list; in hns_roce_buf_alloc() local
207 buf_list = kcalloc(buf->npages, sizeof(*buf_list), GFP_KERNEL); in hns_roce_buf_alloc()
208 if (!buf_list) in hns_roce_buf_alloc()
212 buf_list[i].buf = dma_alloc_coherent(dev, page_size, in hns_roce_buf_alloc()
213 &buf_list[i].map, in hns_roce_buf_alloc()
215 if (!buf_list[i].buf) in hns_roce_buf_alloc()
222 buf_list[i].buf, in hns_roce_buf_alloc()
223 buf_list[i].map); in hns_roce_buf_alloc()
224 kfree(buf_list); in hns_roce_buf_alloc()
227 buf->page_list = buf_list; in hns_roce_buf_alloc()
/OK3568_Linux_fs/kernel/drivers/tty/
H A Dn_hdlc.c149 static void n_hdlc_buf_return(struct n_hdlc_buf_list *buf_list,
752 static void n_hdlc_buf_return(struct n_hdlc_buf_list *buf_list, in n_hdlc_buf_return() argument
757 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_return()
759 list_add(&buf->list_item, &buf_list->list); in n_hdlc_buf_return()
760 buf_list->count++; in n_hdlc_buf_return()
762 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_return()
770 static void n_hdlc_buf_put(struct n_hdlc_buf_list *buf_list, in n_hdlc_buf_put() argument
775 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_put()
777 list_add_tail(&buf->list_item, &buf_list->list); in n_hdlc_buf_put()
778 buf_list->count++; in n_hdlc_buf_put()
[all …]
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/hwi/isp20/
H A DRawStreamCapUnit.cpp165 buf_list[i].clear (); in stop()
373 buf_list[dev_index].push(buf); in poll_buffer_ready()
457 if (buf_list[i].is_empty()) { in sync_raw_buf()
462 buf_l = buf_list[ISP_MIPI_HDR_L].front(); in sync_raw_buf()
466 buf_m = buf_list[ISP_MIPI_HDR_M].front(); in sync_raw_buf()
470 buf_s = buf_list[ISP_MIPI_HDR_S].front(); in sync_raw_buf()
479 buf_list[ISP_MIPI_HDR_S].erase(buf_s); in sync_raw_buf()
480 buf_list[ISP_MIPI_HDR_M].erase(buf_m); in sync_raw_buf()
481 buf_list[ISP_MIPI_HDR_L].erase(buf_l); in sync_raw_buf()
489 buf_list[ISP_MIPI_HDR_S].erase(buf_s); in sync_raw_buf()
[all …]
H A DRawStreamProcUnit.cpp82 buf_list[i].clear (); in start()
106 buf_list[i].clear (); in stop()
258 if (!buf_list[dev_index].is_empty()) { in poll_buffer_ready()
259 SmartPtr<V4l2BufferProxy> rx_buf = buf_list[dev_index].pop(-1); in poll_buffer_ready()
474 buf_list[i].push(buf_proxy); in trigger_isp_readback()
514 buf_list[i].pop(-1); in trigger_isp_readback()
H A DRawStreamCapUnit.h96 SafeList<V4l2BufferProxy> buf_list[3]; variable
/OK3568_Linux_fs/external/camera_engine_rkaiq/rk_stream/stream_cfg/
H A DRawStreamCapUnit.cpp173 buf_list[i].clear (); in stop()
206 buf_list[i].clear (); in release_buffer()
411 buf_list[dev_index].push(buf); in poll_buffer_ready()
477 if (buf_list[i].is_empty()) { in sync_raw_buf()
482 buf_l = buf_list[ISP_MIPI_HDR_L].front(); in sync_raw_buf()
486 buf_m = buf_list[ISP_MIPI_HDR_M].front(); in sync_raw_buf()
490 buf_s = buf_list[ISP_MIPI_HDR_S].front(); in sync_raw_buf()
499 buf_list[ISP_MIPI_HDR_S].erase(buf_s); in sync_raw_buf()
500 buf_list[ISP_MIPI_HDR_M].erase(buf_m); in sync_raw_buf()
501 buf_list[ISP_MIPI_HDR_L].erase(buf_l); in sync_raw_buf()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/cx18/
H A 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()
H A 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()
H A 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()
173 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_videobuf()
214 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_alsa()
215 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_alsa()
223 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_alsa()
/OK3568_Linux_fs/kernel/drivers/media/pci/tw686x/
H A 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()
/OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb/
H A 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()
/OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb-v2/
H A 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()
/OK3568_Linux_fs/kernel/drivers/media/platform/sunxi/sun4i-csi/
H A 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()
H A Dsun4i_csi.h151 struct list_head buf_list; member
/OK3568_Linux_fs/kernel/drivers/media/test-drivers/vimc/
H A Dvimc-capture.c20 struct list_head buf_list; member
232 list_for_each_entry_safe(vbuf, node, &vcap->buf_list, list) { in vimc_cap_return_all_buffers()
290 list_add_tail(&buf->list, &vcap->buf_list); in vimc_cap_buf_queue()
368 vimc_buf = list_first_entry_or_null(&vcap->buf_list, in vimc_cap_process_frame()
443 INIT_LIST_HEAD(&vcap->buf_list); in vimc_cap_add()
/OK3568_Linux_fs/kernel/drivers/media/platform/
H A 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()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A 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()
/OK3568_Linux_fs/kernel/net/smc/
H A Dsmc_core.c788 struct list_head *buf_list; in __smc_lgr_free_bufs() local
793 buf_list = &lgr->rmbs[i]; in __smc_lgr_free_bufs()
795 buf_list = &lgr->sndbufs[i]; in __smc_lgr_free_bufs()
796 list_for_each_entry_safe(buf_desc, bf_desc, buf_list, in __smc_lgr_free_bufs()
1408 struct list_head *buf_list) in smc_buf_get_slot() argument
1413 list_for_each_entry(buf_slot, buf_list, list) { in smc_buf_get_slot()
1655 struct list_head *buf_list; in __smc_buf_create() local
1672 buf_list = &lgr->rmbs[bufsize_short]; in __smc_buf_create()
1675 buf_list = &lgr->sndbufs[bufsize_short]; in __smc_buf_create()
1682 buf_desc = smc_buf_get_slot(bufsize_short, lock, buf_list); in __smc_buf_create()
[all …]
/OK3568_Linux_fs/kernel/samples/v4l/
H A Dv4l2-pci-skeleton.c78 struct list_head buf_list; member
222 list_add_tail(&buf->list, &skel->buf_list); in buffer_queue()
236 list_for_each_entry_safe(buf, node, &skel->buf_list, list) { in return_all_buffers()
855 INIT_LIST_HEAD(&skel->buf_list); in skeleton_probe()
/OK3568_Linux_fs/kernel/drivers/media/usb/airspy/
H A 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()
425 s->buf_list[i], in airspy_alloc_urbs()
/OK3568_Linux_fs/kernel/drivers/media/platform/rcar-vin/
H A Drcar-dma.c908 } else if (list_empty(&vin->buf_list)) { in rvin_fill_hw_slot()
914 buf = list_entry(vin->buf_list.next, struct rvin_buffer, list); in rvin_fill_hw_slot()
1082 list_for_each_entry_safe(buf, node, &vin->buf_list, list) { in return_all_buffers()
1129 list_add_tail(to_buf_list(vbuf), &vin->buf_list); in rvin_buffer_queue()
1392 INIT_LIST_HEAD(&vin->buf_list); in rvin_dma_register()
H A Drcar-vin.h230 struct list_head buf_list; member
/OK3568_Linux_fs/kernel/sound/pci/
H A Des1968.c511 struct list_head buf_list; member
1334 list_for_each_entry(buf, &chip->buf_list, list) { in calc_available_memory_size()
1351 list_for_each_entry(buf, &chip->buf_list, list) { in snd_es1968_new_memory()
1385 if (buf->list.prev != &chip->buf_list) { in snd_es1968_free_memory()
1394 if (buf->list.next != &chip->buf_list) { in snd_es1968_free_memory()
1412 while ((p = chip->buf_list.next) != &chip->buf_list) { in snd_es1968_free_dmabuf()
1440 INIT_LIST_HEAD(&chip->buf_list); in snd_es1968_init_dmabuf()
1453 list_add(&chunk->list, &chip->buf_list); in snd_es1968_init_dmabuf()
2689 INIT_LIST_HEAD(&chip->buf_list); in snd_es1968_create()

12