Home
last modified time | relevance | path

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

12

/drivers/infiniband/hw/hns/
Dhns_roce_eq.c52 (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/
Dn_hdlc.c159 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/
Dcx18-queue.h48 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()
Dcx18-queue.c43 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()
Dcx18-mailbox.c146 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()
Dcx18-fileops.c386 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()
Dcx18-vbi.c270 list_for_each_entry(buf, &mdl->buf_list, list) { in cx18_process_vbi_data()
Dcx18-ioctl.c737 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/
Dtw686x-audio.c56 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()
Dtw686x.h77 struct list_head buf_list; member
/drivers/media/usb/dvb-usb/
Dusb-urb.c100 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()
Ddvb-usb.h324 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; member
/drivers/media/usb/dvb-usb-v2/
Dusb_urb.c153 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()
Ddvb_usb.h298 u8 *buf_list[MAX_NO_URBS_FOR_DATA_STREAM]; member
/drivers/media/platform/
Dsh_vou.c85 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/
Drcar-dma.c861 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()
Drcar-vin.h135 struct list_head buf_list; member
/drivers/input/touchscreen/
Dsur40.c176 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/
Drpc.c211 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()
Dselftest.h163 struct list_head buf_list; /* chain on srpc_service::*_msgq */ member
/drivers/media/usb/airspy/
Dairspy.c130 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/
Dhackrf.c143 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/
Drtl2832_sdr.c147 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/
Ds2255drv.c223 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/
Dhtc_mbox.c387 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()

12