/drivers/infiniband/hw/hns/ |
D | hns_roce_eq.c | 52 (eq->buf_list[off / HNS_ROCE_BA_SIZE].buf) + in get_aeqe() 318 (eq->buf_list[off / HNS_ROCE_BA_SIZE].buf) + in get_ceqe() 532 eq->buf_list = kcalloc(num_bas, sizeof(*eq->buf_list), GFP_KERNEL); in hns_roce_create_eq() 533 if (!eq->buf_list) in hns_roce_create_eq() 537 eq->buf_list[i].buf = dma_alloc_coherent(dev, HNS_ROCE_BA_SIZE, in hns_roce_create_eq() 540 if (!eq->buf_list[i].buf) { in hns_roce_create_eq() 545 eq->buf_list[i].map = tmp_dma_addr; in hns_roce_create_eq() 546 memset(eq->buf_list[i].buf, 0, HNS_ROCE_BA_SIZE); in hns_roce_create_eq() 560 writel((u32)(eq->buf_list[0].map >> 12), (u8 *)eqc + 4); in hns_roce_create_eq() 570 eq->buf_list[0].map >> 44); in hns_roce_create_eq() [all …]
|
/drivers/tty/ |
D | n_hdlc.c | 159 static void n_hdlc_buf_return(struct n_hdlc_buf_list *buf_list, 885 static void n_hdlc_buf_return(struct n_hdlc_buf_list *buf_list, in n_hdlc_buf_return() argument 890 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_return() 892 list_add(&buf->list_item, &buf_list->list); in n_hdlc_buf_return() 893 buf_list->count++; in n_hdlc_buf_return() 895 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_return() 903 static void n_hdlc_buf_put(struct n_hdlc_buf_list *buf_list, in n_hdlc_buf_put() argument 908 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_put() 910 list_add_tail(&buf->list_item, &buf_list->list); in n_hdlc_buf_put() 911 buf_list->count++; in n_hdlc_buf_put() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-queue.h | 48 if (list_is_singular(&mdl->buf_list)) in cx18_mdl_sync_for_device() 49 cx18_buf_sync_for_device(s, list_first_entry(&mdl->buf_list, in cx18_mdl_sync_for_device() 61 if (list_is_singular(&mdl->buf_list)) in cx18_mdl_swap() 62 cx18_buf_swap(list_first_entry(&mdl->buf_list, in cx18_mdl_swap()
|
D | cx18-queue.c | 43 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_swap() 110 list_for_each_entry(buf, &mdl->buf_list, list) { in _cx18_mdl_update_bufs_for_cpu() 128 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_update_bufs_for_cpu() 129 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_update_bufs_for_cpu() 260 while (!list_empty(&mdl->buf_list)) { in cx18_unload_queues() 261 buf = list_first_entry(&mdl->buf_list, in cx18_unload_queues() 304 list_move_tail(&buf->list, &mdl->buf_list); in cx18_load_queues() 342 list_for_each_entry(buf, &mdl->buf_list, list) in _cx18_mdl_sync_for_device() 399 INIT_LIST_HEAD(&mdl->buf_list); in cx18_stream_alloc()
|
D | cx18-mailbox.c | 146 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_dvb() 147 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_dvb() 155 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_dvb() 187 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_videobuf() 228 if (list_is_singular(&mdl->buf_list)) { in cx18_mdl_send_to_alsa() 229 buf = list_first_entry(&mdl->buf_list, struct cx18_buffer, in cx18_mdl_send_to_alsa() 237 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_mdl_send_to_alsa()
|
D | cx18-fileops.c | 386 mdl->curr_buf = list_first_entry(&mdl->buf_list, in cx18_copy_mdl_to_user() 389 if (list_entry_is_past_end(mdl->curr_buf, &mdl->buf_list, list)) { in cx18_copy_mdl_to_user() 399 list_for_each_entry_from(mdl->curr_buf, &mdl->buf_list, list) { in cx18_copy_mdl_to_user()
|
D | cx18-vbi.c | 270 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_process_vbi_data()
|
D | cx18-ioctl.c | 737 mdl->curr_buf = list_first_entry(&mdl->buf_list, in cx18_process_idx_data() 740 if (list_entry_is_past_end(mdl->curr_buf, &mdl->buf_list, list)) { in cx18_process_idx_data() 750 list_for_each_entry_from(mdl->curr_buf, &mdl->buf_list, list) { in cx18_process_idx_data()
|
/drivers/media/pci/tw686x/ |
D | tw686x-audio.c | 56 if (!list_empty(&ac->buf_list)) { in tw686x_audio_irq() 57 next = list_first_entry(&ac->buf_list, in tw686x_audio_irq() 59 list_move_tail(&next->list, &ac->buf_list); in tw686x_audio_irq() 192 INIT_LIST_HEAD(&ac->buf_list); in tw686x_pcm_prepare() 198 list_add_tail(&ac->buf[i].list, &ac->buf_list); in tw686x_pcm_prepare() 201 p_buf = list_first_entry(&ac->buf_list, struct tw686x_audio_buf, list); in tw686x_pcm_prepare() 202 list_move_tail(&p_buf->list, &ac->buf_list); in tw686x_pcm_prepare() 204 b_buf = list_first_entry(&ac->buf_list, struct tw686x_audio_buf, list); in tw686x_pcm_prepare() 205 list_move_tail(&b_buf->list, &ac->buf_list); in tw686x_pcm_prepare()
|
D | tw686x.h | 77 struct list_head buf_list; member
|
/drivers/media/usb/dvb-usb/ |
D | usb-urb.c | 100 stream->buf_list[stream->buf_num], in usb_free_stream_buffers() 119 if (( stream->buf_list[stream->buf_num] = in usb_allocate_stream_buffers() 128 stream->buf_list[stream->buf_num], (long long)stream->dma_addr[stream->buf_num]); in usb_allocate_stream_buffers() 129 memset(stream->buf_list[stream->buf_num],0,size); in usb_allocate_stream_buffers() 156 stream->buf_list[i], in usb_bulk_urb_init() 198 urb->transfer_buffer = stream->buf_list[i]; in usb_isoc_urb_init()
|
D | dvb-usb.h | 324 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; member
|
/drivers/media/usb/dvb-usb-v2/ |
D | usb_urb.c | 153 stream->buf_list[i], in usb_urb_alloc_bulk_urbs() 194 urb->transfer_buffer = stream->buf_list[i]; in usb_urb_alloc_isoc_urbs() 217 stream->buf_list[stream->buf_num], in usb_free_stream_buffers() 238 stream->buf_list[stream->buf_num] = usb_alloc_coherent( in usb_alloc_stream_buffers() 241 if (!stream->buf_list[stream->buf_num]) { in usb_alloc_stream_buffers() 250 stream->buf_list[stream->buf_num], in usb_alloc_stream_buffers() 252 memset(stream->buf_list[stream->buf_num], 0, size); in usb_alloc_stream_buffers()
|
D | dvb_usb.h | 298 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; member
|
/drivers/media/platform/ |
D | sh_vou.c | 85 struct list_head buf_list; member 291 list_add_tail(&shbuf->list, &vou_dev->buf_list); in sh_vou_buf_queue() 305 list_for_each_entry_safe(buf, node, &vou_dev->buf_list, list) { in sh_vou_start_streaming() 314 buf = list_entry(vou_dev->buf_list.next, struct sh_vou_buffer, list); in sh_vou_start_streaming() 357 list_for_each_entry_safe(buf, node, &vou_dev->buf_list, list) { in sh_vou_stop_streaming() 1043 if (!vou_dev->active || list_empty(&vou_dev->buf_list)) { in sh_vou_isr() 1079 vou_dev->active = list_entry(vou_dev->buf_list.next, in sh_vou_isr() 1082 if (list_is_singular(&vou_dev->buf_list)) { in sh_vou_isr() 1249 INIT_LIST_HEAD(&vou_dev->buf_list); in sh_vou_probe() 1314 INIT_LIST_HEAD(&vou_dev->buf_list); in sh_vou_probe()
|
/drivers/media/platform/rcar-vin/ |
D | rcar-dma.c | 861 if (list_empty(&vin->buf_list)) in rvin_fill_hw_slot() 867 buf = list_entry(vin->buf_list.next, struct rvin_buffer, list); in rvin_fill_hw_slot() 930 !list_empty(&vin->buf_list)); in rvin_irq() 990 list_for_each_entry_safe(buf, node, &vin->buf_list, list) { in return_all_buffers() 1037 list_add_tail(to_buf_list(vbuf), &vin->buf_list); in rvin_buffer_queue() 1168 INIT_LIST_HEAD(&vin->buf_list); in rvin_dma_probe()
|
D | rcar-vin.h | 135 struct list_head buf_list; member
|
/drivers/input/touchscreen/ |
D | sur40.c | 176 struct list_head buf_list; member 411 if (list_empty(&sur40->buf_list)) { in sur40_process_video() 416 new_buf = list_entry(sur40->buf_list.next, struct sur40_buffer, list); in sur40_process_video() 550 INIT_LIST_HEAD(&sur40->buf_list); in sur40_probe() 717 list_add_tail(&buf->list, &sur40->buf_list); in sur40_buffer_queue() 727 list_for_each_entry_safe(buf, node, &sur40->buf_list, list) { in return_all_buffers()
|
/drivers/staging/lustre/lnet/selftest/ |
D | rpc.c | 211 buf_list); in srpc_service_fini() 212 list_del(&buf->buf_list); in srpc_service_fini() 469 list_add(&buf->buf_list, &scd->scd_buf_posted); in srpc_service_post_buffer() 503 list_del(&buf->buf_list); in srpc_service_post_buffer() 785 list_for_each_entry(buf, &scd->scd_buf_posted, buf_list) in srpc_shutdown_service() 948 struct srpc_buffer, buf_list); in srpc_server_rpc_done() 949 list_del(&buffer->buf_list); in srpc_server_rpc_done() 1517 list_del(&buffer->buf_list); /* from scd->scd_buf_posted */ in srpc_lnet_ev_handler() 1550 list_add_tail(&buffer->buf_list, in srpc_lnet_ev_handler()
|
D | selftest.h | 163 struct list_head buf_list; /* chain on srpc_service::*_msgq */ member
|
/drivers/media/usb/airspy/ |
D | airspy.c | 130 u8 *buf_list[MAX_BULK_BUFS]; member 366 s->buf_list[s->buf_num], in airspy_free_stream_bufs() 384 s->buf_list[s->buf_num] = usb_alloc_coherent(s->udev, in airspy_alloc_stream_bufs() 387 if (!s->buf_list[s->buf_num]) { in airspy_alloc_stream_bufs() 394 s->buf_list[s->buf_num], in airspy_alloc_stream_bufs() 436 s->buf_list[i], in airspy_alloc_urbs()
|
/drivers/media/usb/hackrf/ |
D | hackrf.c | 143 u8 *buf_list[MAX_BULK_BUFS]; member 620 dev->buf_list[dev->buf_num], in hackrf_free_stream_bufs() 638 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in hackrf_alloc_stream_bufs() 641 if (!dev->buf_list[dev->buf_num]) { in hackrf_alloc_stream_bufs() 649 dev->buf_list[dev->buf_num], in hackrf_alloc_stream_bufs() 701 dev->buf_list[i], in hackrf_alloc_urbs()
|
/drivers/media/dvb-frontends/ |
D | rtl2832_sdr.c | 147 u8 *buf_list[MAX_BULK_BUFS]; member 327 dev->buf_list[dev->buf_num], in rtl2832_sdr_free_stream_bufs() 347 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in rtl2832_sdr_alloc_stream_bufs() 350 if (!dev->buf_list[dev->buf_num]) { in rtl2832_sdr_alloc_stream_bufs() 358 dev->buf_num, dev->buf_list[dev->buf_num], in rtl2832_sdr_alloc_stream_bufs() 402 dev->buf_list[i], in rtl2832_sdr_alloc_urbs()
|
/drivers/media/usb/s2255/ |
D | s2255drv.c | 223 struct list_head buf_list; member 569 if (list_empty(&vc->buf_list)) { in s2255_got_frame() 574 buf = list_entry(vc->buf_list.next, in s2255_got_frame() 713 list_add_tail(&buf->list, &vc->buf_list); in buffer_queue() 1120 list_for_each_entry_safe(buf, node, &vc->buf_list, list) { in stop_streaming() 1634 INIT_LIST_HEAD(&vc->buf_list); in s2255_probe_v4l()
|
/drivers/net/wireless/ath/ath6kl/ |
D | htc_mbox.c | 387 struct list_head *buf_list; in htc_get_control_buf() local 389 buf_list = tx ? &target->free_ctrl_txbuf : &target->free_ctrl_rxbuf; in htc_get_control_buf() 393 if (list_empty(buf_list)) { in htc_get_control_buf() 398 packet = list_first_entry(buf_list, struct htc_packet, list); in htc_get_control_buf()
|