/drivers/infiniband/hw/hns/ |
D | hns_roce_alloc.c | 187 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()
|
D | hns_roce_hw_v1.c | 3850 (eq->buf_list[off / HNS_ROCE_BA_SIZE].buf) + in get_aeqe_v1() 3954 (eq->buf_list[off / HNS_ROCE_BA_SIZE].buf) + in get_ceqe_v1() 4159 if (!eq->buf_list) in hns_roce_v1_free_eq() 4164 eq->buf_list[i].buf, eq->buf_list[i].map); in hns_roce_v1_free_eq() 4166 kfree(eq->buf_list); in hns_roce_v1_free_eq() 4220 eq->buf_list = kcalloc(num_bas, sizeof(*eq->buf_list), GFP_KERNEL); in hns_roce_v1_create_eq() 4221 if (!eq->buf_list) in hns_roce_v1_create_eq() 4225 eq->buf_list[i].buf = dma_alloc_coherent(dev, HNS_ROCE_BA_SIZE, in hns_roce_v1_create_eq() 4228 if (!eq->buf_list[i].buf) { in hns_roce_v1_create_eq() 4233 eq->buf_list[i].map = tmp_dma_addr; in hns_roce_v1_create_eq() [all …]
|
/drivers/tty/ |
D | n_hdlc.c | 150 static void n_hdlc_buf_return(struct n_hdlc_buf_list *buf_list, 753 static void n_hdlc_buf_return(struct n_hdlc_buf_list *buf_list, in n_hdlc_buf_return() argument 758 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_return() 760 list_add(&buf->list_item, &buf_list->list); in n_hdlc_buf_return() 761 buf_list->count++; in n_hdlc_buf_return() 763 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_return() 771 static void n_hdlc_buf_put(struct n_hdlc_buf_list *buf_list, in n_hdlc_buf_put() argument 776 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_put() 778 list_add_tail(&buf->list_item, &buf_list->list); in n_hdlc_buf_put() 779 buf_list->count++; in n_hdlc_buf_put() [all …]
|
/drivers/media/pci/cx18/ |
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()
|
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()
|
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() 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()
|
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()
|
D | cx18-vbi.c | 256 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_process_vbi_data()
|
/drivers/media/pci/tw686x/ |
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()
|
D | tw686x.h | 74 struct list_head buf_list; member
|
/drivers/media/usb/dvb-usb/ |
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()
|
D | dvb-usb.h | 338 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; member
|
/drivers/media/usb/dvb-usb-v2/ |
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()
|
D | dvb_usb.h | 291 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; member
|
/drivers/media/platform/sunxi/sun4i-csi/ |
D | sun4i_dma.c | 124 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()
|
D | sun4i_csi.h | 151 struct list_head buf_list; member
|
/drivers/media/test-drivers/vimc/ |
D | vimc-capture.c | 20 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()
|
/drivers/media/platform/ |
D | sh_vou.c | 82 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()
|
/drivers/input/touchscreen/ |
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() 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()
|
/drivers/media/usb/airspy/ |
D | airspy.c | 119 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()
|
/drivers/media/platform/rcar-vin/ |
D | rcar-dma.c | 906 } else if (list_empty(&vin->buf_list)) { in rvin_fill_hw_slot() 912 buf = list_entry(vin->buf_list.next, struct rvin_buffer, list); in rvin_fill_hw_slot() 1080 list_for_each_entry_safe(buf, node, &vin->buf_list, list) { in return_all_buffers() 1127 list_add_tail(to_buf_list(vbuf), &vin->buf_list); in rvin_buffer_queue() 1390 INIT_LIST_HEAD(&vin->buf_list); in rvin_dma_register()
|
D | rcar-vin.h | 230 struct list_head buf_list; member
|
/drivers/media/dvb-frontends/ |
D | rtl2832_sdr.c | 131 u8 *buf_list[MAX_BULK_BUFS]; member 311 dev->buf_list[dev->buf_num], in rtl2832_sdr_free_stream_bufs() 331 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in rtl2832_sdr_alloc_stream_bufs() 334 if (!dev->buf_list[dev->buf_num]) { in rtl2832_sdr_alloc_stream_bufs() 342 dev->buf_num, dev->buf_list[dev->buf_num], in rtl2832_sdr_alloc_stream_bufs() 386 dev->buf_list[i], in rtl2832_sdr_alloc_urbs()
|
/drivers/media/usb/hackrf/ |
D | hackrf.c | 134 u8 *buf_list[MAX_BULK_BUFS]; member 611 dev->buf_list[dev->buf_num], in hackrf_free_stream_bufs() 629 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in hackrf_alloc_stream_bufs() 632 if (!dev->buf_list[dev->buf_num]) { in hackrf_alloc_stream_bufs() 640 dev->buf_list[dev->buf_num], in hackrf_alloc_stream_bufs() 692 dev->buf_list[i], in hackrf_alloc_urbs()
|
/drivers/media/usb/gspca/ |
D | gspca.h | 198 struct list_head buf_list; member
|