Home
last modified time | relevance | path

Searched refs:num_bufs (Results 1 – 25 of 26) sorted by relevance

12

/drivers/media/usb/stk1160/
Dstk1160-video.c345 int i, num_bufs = dev->isoc_ctl.num_bufs; in stk1160_cancel_isoc() local
351 if (!num_bufs) in stk1160_cancel_isoc()
354 stk1160_dbg("killing %d urbs...\n", num_bufs); in stk1160_cancel_isoc()
356 for (i = 0; i < num_bufs; i++) { in stk1160_cancel_isoc()
376 int i, num_bufs = dev->isoc_ctl.num_bufs; in stk1160_free_isoc() local
378 stk1160_dbg("freeing %d urb buffers...\n", num_bufs); in stk1160_free_isoc()
380 for (i = 0; i < num_bufs; i++) { in stk1160_free_isoc()
406 dev->isoc_ctl.num_bufs = 0; in stk1160_free_isoc()
427 int i, j, k, sb_size, max_packets, num_bufs; in stk1160_alloc_isoc() local
434 if (dev->isoc_ctl.num_bufs) in stk1160_alloc_isoc()
[all …]
Dstk1160.h101 int num_bufs; member
Dstk1160-v4l.c184 if (!dev->isoc_ctl.num_bufs || new_pkt_size) { in stk1160_start_streaming()
191 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in stk1160_start_streaming()
/drivers/staging/tidspbridge/rmgr/
Dstrm.c69 u32 num_bufs; /* Max # of bufs allowed in stream */ member
93 u8 **ap_buffer, u32 num_bufs, in strm_allocate_buffer() argument
115 for (i = 0; i < num_bufs; i++) { in strm_allocate_buffer()
130 drv_proc_update_strm_res(num_bufs, strmres); in strm_allocate_buffer()
227 u32 num_bufs, struct process_context *pr_ctxt) in strm_free_buffer() argument
237 for (i = 0; i < num_bufs; i++) { in strm_free_buffer()
246 drv_proc_update_strm_res(num_bufs - i, strmres); in strm_free_buffer()
291 stream_info->user_strm->number_bufs_allowed = stream_obj->num_bufs; in strm_get_info()
423 strm_obj->num_bufs = in strm_open()
424 pattr->stream_attr_in->num_bufs; in strm_open()
[all …]
Ddrv.c229 if (strm_res->num_bufs) { in drv_proc_free_strm_res()
230 ap_buffer = kmalloc((strm_res->num_bufs * in drv_proc_free_strm_res()
235 strm_res->num_bufs, in drv_proc_free_strm_res()
264 int drv_proc_update_strm_res(u32 num_bufs, void *strm_resources) in drv_proc_update_strm_res() argument
270 (*strm_res)->num_bufs = num_bufs; in drv_proc_update_strm_res()
Ddisp.c546 strm_def_obj->nbufs = strm_def.num_bufs; in fill_stream_def()
Dnode.c2590 pstrm_def->num_bufs = pattrs->num_bufs; in fill_stream_def()
2597 pstrm_def->num_bufs = DEFAULTNBUFS; in fill_stream_def()
/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c246 if (!dev->vbi_mode.bulk_ctl.num_bufs) in vbi_buffer_prepare()
351 for (i = 0; i < dev->vbi_mode.bulk_ctl.num_bufs; i++) { in cx231xx_uninit_vbi_isoc()
377 dev->vbi_mode.bulk_ctl.num_bufs = 0; in cx231xx_uninit_vbi_isoc()
387 int num_bufs, int max_pkt_size, in cx231xx_init_vbi_isoc() argument
408 dev->vbi_mode.bulk_ctl.num_bufs = num_bufs; in cx231xx_init_vbi_isoc()
420 dev->vbi_mode.bulk_ctl.urb = kzalloc(sizeof(void *) * num_bufs, in cx231xx_init_vbi_isoc()
428 kzalloc(sizeof(void *) * num_bufs, GFP_KERNEL); in cx231xx_init_vbi_isoc()
441 for (i = 0; i < dev->vbi_mode.bulk_ctl.num_bufs; i++) { in cx231xx_init_vbi_isoc()
471 for (i = 0; i < dev->vbi_mode.bulk_ctl.num_bufs; i++) { in cx231xx_init_vbi_isoc()
Dcx231xx-core.c883 for (i = 0; i < dev->video_mode.isoc_ctl.num_bufs; i++) { in cx231xx_uninit_isoc()
910 dev->video_mode.isoc_ctl.num_bufs = 0; in cx231xx_uninit_isoc()
933 for (i = 0; i < dev->video_mode.bulk_ctl.num_bufs; i++) { in cx231xx_uninit_bulk()
959 dev->video_mode.bulk_ctl.num_bufs = 0; in cx231xx_uninit_bulk()
974 int num_bufs, int max_pkt_size, in cx231xx_init_isoc() argument
996 dev->video_mode.isoc_ctl.num_bufs = num_bufs; in cx231xx_init_isoc()
1017 kzalloc(sizeof(void *) * num_bufs, GFP_KERNEL); in cx231xx_init_isoc()
1024 kzalloc(sizeof(void *) * num_bufs, GFP_KERNEL); in cx231xx_init_isoc()
1043 for (i = 0; i < dev->video_mode.isoc_ctl.num_bufs; i++) { in cx231xx_init_isoc()
1087 for (i = 0; i < dev->video_mode.isoc_ctl.num_bufs; i++) { in cx231xx_init_isoc()
[all …]
Dcx231xx-vbi.h43 int num_bufs, int max_pkt_size,
Dcx231xx.h156 int num_bufs; member
190 int num_bufs; member
874 int num_bufs, int max_pkt_size,
878 int num_bufs, int max_pkt_size,
Dcx231xx-417.c1413 if (!dev->video_mode.isoc_ctl.num_bufs) in bb_buf_prepare()
1416 if (!dev->video_mode.bulk_ctl.num_bufs) in bb_buf_prepare()
/drivers/media/usb/em28xx/
Dem28xx-core.c1018 for (i = 0; i < usb_bufs->num_bufs; i++) { in em28xx_uninit_usb_xfer()
1043 usb_bufs->num_bufs = 0; in em28xx_uninit_usb_xfer()
1060 for (i = 0; i < isoc_bufs->num_bufs; i++) { in em28xx_stop_urbs()
1078 int num_bufs, int max_pkt_size, int packet_multiplier) in em28xx_alloc_urbs() argument
1114 usb_bufs->num_bufs = num_bufs; in em28xx_alloc_urbs()
1116 usb_bufs->urb = kzalloc(sizeof(void *)*num_bufs, GFP_KERNEL); in em28xx_alloc_urbs()
1122 usb_bufs->transfer_buffer = kzalloc(sizeof(void *)*num_bufs, in em28xx_alloc_urbs()
1141 for (i = 0; i < usb_bufs->num_bufs; i++) { in em28xx_alloc_urbs()
1201 int xfer_bulk, int num_bufs, int max_pkt_size, in em28xx_init_usb_xfer() argument
1227 rc = em28xx_alloc_urbs(dev, mode, xfer_bulk, num_bufs, in em28xx_init_usb_xfer()
[all …]
Dem28xx.h199 int num_bufs; member
692 int num_bufs, int max_pkt_size, int packet_multiplier);
695 int num_bufs, int max_pkt_size, int packet_multiplier,
/drivers/staging/tidspbridge/pmgr/
Ddspapi.c1479 u32 num_bufs = args->args_strm_allocatebuffer.num_bufs; in strmwrap_allocate_buffer() local
1488 if (num_bufs > MAX_BUFS) in strmwrap_allocate_buffer()
1491 ap_buffer = kmalloc((num_bufs * sizeof(u8 *)), GFP_KERNEL); in strmwrap_allocate_buffer()
1497 ap_buffer, num_bufs, pr_ctxt); in strmwrap_allocate_buffer()
1500 status, num_bufs); in strmwrap_allocate_buffer()
1504 ap_buffer, num_bufs, pr_ctxt); in strmwrap_allocate_buffer()
1534 u32 num_bufs = args->args_strm_freebuffer.num_bufs; in strmwrap_free_buffer() local
1543 if (num_bufs > MAX_BUFS) in strmwrap_free_buffer()
1546 ap_buffer = kmalloc_array(num_bufs, sizeof(u8 *), GFP_KERNEL); in strmwrap_free_buffer()
1551 num_bufs); in strmwrap_free_buffer()
[all …]
/drivers/staging/tidspbridge/include/dspbridge/
Dstrm.h49 u32 num_bufs,
124 u8 **ap_buffer, u32 num_bufs,
Dresourcecleanup.h33 extern int drv_proc_update_strm_res(u32 num_bufs, void *strm_resources);
Ddbdefs.h230 u32 num_bufs; /* Number of buffers */ member
407 u32 num_bufs; member
Dnodepriv.h44 u32 num_bufs; /* max # of buffers in SIO stream at once */ member
Ddrv.h105 u32 num_bufs; member
Ddspapi-ioctl.h262 u32 num_bufs; member
272 u32 num_bufs; member
/drivers/media/usb/tm6000/
Dtm6000-video.c474 int num_bufs = TM6000_NUM_URB_BUF; in tm6000_alloc_urb_buffers() local
480 dev->urb_buffer = kmalloc(sizeof(void *)*num_bufs, GFP_KERNEL); in tm6000_alloc_urb_buffers()
486 dev->urb_dma = kmalloc(sizeof(dma_addr_t *)*num_bufs, GFP_KERNEL); in tm6000_alloc_urb_buffers()
492 for (i = 0; i < num_bufs; i++) { in tm6000_alloc_urb_buffers()
543 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in tm6000_uninit_isoc()
562 dev->isoc_ctl.num_bufs = 0; in tm6000_uninit_isoc()
572 int num_bufs = TM6000_NUM_URB_BUF; in tm6000_prepare_isoc() local
602 dev->isoc_ctl.num_bufs = num_bufs; in tm6000_prepare_isoc()
604 dev->isoc_ctl.urb = kmalloc(sizeof(void *)*num_bufs, GFP_KERNEL); in tm6000_prepare_isoc()
610 dev->isoc_ctl.transfer_buffer = kmalloc(sizeof(void *)*num_bufs, in tm6000_prepare_isoc()
[all …]
Dtm6000-usb-isoc.h29 int num_bufs; member
/drivers/media/usb/au0828/
Dau0828-video.c176 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in au0828_uninit_isoc()
201 dev->isoc_ctl.num_bufs = 0; in au0828_uninit_isoc()
208 int num_bufs, int max_pkt_size, in au0828_init_isoc() argument
224 dev->isoc_ctl.num_bufs = num_bufs; in au0828_init_isoc()
226 dev->isoc_ctl.urb = kzalloc(sizeof(void *)*num_bufs, GFP_KERNEL); in au0828_init_isoc()
232 dev->isoc_ctl.transfer_buffer = kzalloc(sizeof(void *)*num_bufs, in au0828_init_isoc()
246 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in au0828_init_isoc()
289 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in au0828_init_isoc()
726 if (!dev->isoc_ctl.num_bufs) in buffer_prepare()
Dau0828.h139 int num_bufs; member

12