Home
last modified time | relevance | path

Searched refs:fsize (Results 1 – 25 of 33) sorted by relevance

12

/linux-3.4.99/sound/core/
Dpcm_timer.c34 unsigned long rate, mult, fsize, l, post; in snd_pcm_timer_resolution_change() local
44 fsize = runtime->period_size; in snd_pcm_timer_resolution_change()
45 if (snd_BUG_ON(!fsize)) in snd_pcm_timer_resolution_change()
47 l = gcd(rate, fsize); in snd_pcm_timer_resolution_change()
49 fsize /= l; in snd_pcm_timer_resolution_change()
51 while ((mult * fsize) / fsize != mult) { in snd_pcm_timer_resolution_change()
60 runtime->timer_resolution = (mult * fsize / rate) * post; in snd_pcm_timer_resolution_change()
/linux-3.4.99/drivers/staging/line6/
Dcapture.c143 void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize) in line6_capture_copy() argument
149 int frames = fsize / bytes_per_frame; in line6_capture_copy()
176 line6pcm->pos_in_done * bytes_per_frame, fbuf, fsize); in line6_capture_copy()
233 int fsize; in audio_in_callback() local
242 fsize = fin->actual_length; in audio_in_callback()
244 if (fsize > line6pcm->max_packet_size) { in audio_in_callback()
247 fsize, line6pcm->max_packet_size); in audio_in_callback()
250 length += fsize; in audio_in_callback()
254 line6pcm->prev_fsize = fsize; in audio_in_callback()
260 && (fsize > 0)) in audio_in_callback()
[all …]
Dplayback.c165 int fsize = 0; in submit_audio_out_urb() local
170 fsize = line6pcm->prev_fsize; in submit_audio_out_urb()
172 if (fsize == 0) { in submit_audio_out_urb()
177 fsize = n * bytes_per_frame; in submit_audio_out_urb()
181 fout->length = fsize; in submit_audio_out_urb()
182 urb_size += fsize; in submit_audio_out_urb()
Dcapture.h23 int fsize);
/linux-3.4.99/arch/m68k/kernel/
Dsignal_mm.c372 int fsize = frame_extra_sizes[formatvec >> 12]; in mangle_kernel_stack() local
373 if (fsize < 0) { in mangle_kernel_stack()
382 if (!fsize) { in mangle_kernel_stack()
387 unsigned long buf[fsize / 2]; /* yes, twice as much */ in mangle_kernel_stack()
390 if (copy_from_user(buf + fsize / 4, fp, fsize)) in mangle_kernel_stack()
417 : "a" (sw), "d" (fsize), "d" (frame_offset/4-1), in mangle_kernel_stack()
418 "n" (frame_offset), "a" (buf + fsize/4) in mangle_kernel_stack()
819 int fsize = frame_extra_sizes[regs->format]; in setup_frame() local
823 if (fsize < 0) { in setup_frame()
831 frame = get_sigframe(ka, regs, sizeof(*frame) + fsize); in setup_frame()
[all …]
/linux-3.4.99/arch/powerpc/platforms/cell/
Diommu.c310 unsigned long fbase, unsigned long fsize) in cell_iommu_setup_stab() argument
315 segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; in cell_iommu_setup_stab()
1000 unsigned long fbase, unsigned long fsize) in cell_iommu_setup_fixed_ptab() argument
1004 ptab = cell_iommu_alloc_ptab(iommu, fbase, fsize, dbase, dsize, 24); in cell_iommu_setup_fixed_ptab()
1008 pr_debug("iommu: mapping 0x%lx pages from 0x%lx\n", fsize, fbase); in cell_iommu_setup_fixed_ptab()
1020 for (uaddr = 0; uaddr < fsize; uaddr += (1 << 24)) { in cell_iommu_setup_fixed_ptab()
1036 unsigned long dbase, dsize, fbase, fsize, hbase, hend; in cell_iommu_fixed_mapping_init() local
1070 fsize = memblock_phys_mem_size(); in cell_iommu_fixed_mapping_init()
1072 if ((fbase + fsize) <= 0x800000000ul) in cell_iommu_fixed_mapping_init()
1123 dbase + dsize, fbase, fbase + fsize); in cell_iommu_fixed_mapping_init()
[all …]
/linux-3.4.99/drivers/media/video/
Dtimblogiw.c454 struct v4l2_frmsizeenum *fsize) in timblogiw_enum_framesizes() argument
460 fsize->index, fsize->pixel_format); in timblogiw_enum_framesizes()
462 if ((fsize->index != 0) || in timblogiw_enum_framesizes()
463 (fsize->pixel_format != V4L2_PIX_FMT_UYVY)) in timblogiw_enum_framesizes()
466 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in timblogiw_enum_framesizes()
467 fsize->discrete.width = fh->cur_norm->width; in timblogiw_enum_framesizes()
468 fsize->discrete.height = fh->cur_norm->height; in timblogiw_enum_framesizes()
Dsr030pc30.c482 const struct sr030pc30_frmsize *fsize = &sr030pc30_sizes[0], in sr030pc30_try_frame_size() local
485 int err = abs(fsize->width - mf->width) in sr030pc30_try_frame_size()
486 + abs(fsize->height - mf->height); in sr030pc30_try_frame_size()
489 match = fsize; in sr030pc30_try_frame_size()
491 fsize++; in sr030pc30_try_frame_size()
Dnoon010pc30.c368 const struct noon010_frmsize *fsize = &noon010_sizes[0], in noon010_try_frame_size() local
372 int err = abs(fsize->width - mf->width) in noon010_try_frame_size()
373 + abs(fsize->height - mf->height); in noon010_try_frame_size()
377 match = fsize; in noon010_try_frame_size()
379 fsize++; in noon010_try_frame_size()
Dmeye.c617 int fsize; in mchip_comp_read_frame() local
625 fsize = (MCHIP_NB_PAGES_MJPEG - pt_start) * PAGE_SIZE + in mchip_comp_read_frame()
628 fsize = (pt_end - pt_start) * PAGE_SIZE + trailer * 4; in mchip_comp_read_frame()
630 if (fsize > size) { in mchip_comp_read_frame()
632 fsize); in mchip_comp_read_frame()
636 ptable_copy(buf, pt_start, fsize, MCHIP_NB_PAGES_MJPEG); in mchip_comp_read_frame()
648 for (i = fsize - 1; i > 0 && buf[i] == 0xff; i--) ; in mchip_comp_read_frame()
655 return fsize; in mchip_comp_read_frame()
Dsoc_camera.c261 struct v4l2_frmsizeenum *fsize) in soc_camera_enum_fsizes() argument
266 return ici->ops->enum_fsizes(icd, fsize); in soc_camera_enum_fsizes()
1248 struct v4l2_frmsizeenum *fsize) in default_enum_fsizes() argument
1253 __u32 pixfmt = fsize->pixel_format; in default_enum_fsizes()
1254 struct v4l2_frmsizeenum fsize_mbus = *fsize; in default_enum_fsizes()
1266 *fsize = fsize_mbus; in default_enum_fsizes()
1267 fsize->pixel_format = pixfmt; in default_enum_fsizes()
Dov7670.c928 struct v4l2_frmsizeenum *fsize) in ov7670_enum_framesizes() argument
933 __u32 index = fsize->index; in ov7670_enum_framesizes()
946 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in ov7670_enum_framesizes()
947 fsize->discrete.width = win->width; in ov7670_enum_framesizes()
948 fsize->discrete.height = win->height; in ov7670_enum_framesizes()
/linux-3.4.99/drivers/video/
Damifb.c1127 u_long maxfetchstop, fstrt, fsize, fconst, xres_n, yres_n; in ami_decode_var() local
1383 fsize = ((maxfmode + clk_shift <= 1) ? fconst : 64); in ami_decode_var()
1384 fstrt = downx(fconst, par->diwstrt_h - 4) - fsize; in ami_decode_var()
1395 fsize; in ami_decode_var()
1402 fsize = upx(fconst, xres_n + in ami_decode_var()
1404 if (fstrt + fsize > maxfetchstop) in ami_decode_var()
1407 fsize = upx(fconst, xres_n); in ami_decode_var()
1408 if (fstrt + fsize > maxfetchstop) { in ami_decode_var()
1414 fsize = up64(xres_n + fconst - 1); in ami_decode_var()
1415 if (min_fstrt + fsize - 64 > maxfetchstop) in ami_decode_var()
[all …]
Dacornfb.c360 u_int vcr, fsize; in acornfb_set_timing() local
400 fsize = var->vsync_len + var->upper_margin + var->lower_margin - 1; in acornfb_set_timing()
425 iomd_writel(fsize, IOMD_FSIZE); in acornfb_set_timing()
486 printk(KERN_DEBUG " Fsize : 0x%08X\n", fsize); in acornfb_set_timing()
/linux-3.4.99/drivers/media/video/em28xx/
Dem28xx-video.c1812 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument
1820 fmt = format_by_fourcc(fsize->pixel_format); in vidioc_enum_framesizes()
1823 fsize->pixel_format); in vidioc_enum_framesizes()
1828 if (fsize->index > 1) in vidioc_enum_framesizes()
1830 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in vidioc_enum_framesizes()
1831 fsize->discrete.width = maxw / (1 + fsize->index); in vidioc_enum_framesizes()
1832 fsize->discrete.height = maxh / (1 + fsize->index); in vidioc_enum_framesizes()
1836 if (fsize->index != 0) in vidioc_enum_framesizes()
1840 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vidioc_enum_framesizes()
1841 fsize->stepwise.min_width = 48; in vidioc_enum_framesizes()
[all …]
/linux-3.4.99/drivers/media/video/pwc/
Dpwc-v4l.c1038 struct v4l2_frmsizeenum *fsize) in pwc_enum_framesizes() argument
1041 unsigned int i = 0, index = fsize->index; in pwc_enum_framesizes()
1043 if (fsize->pixel_format == V4L2_PIX_FMT_YUV420 || in pwc_enum_framesizes()
1044 (fsize->pixel_format == V4L2_PIX_FMT_PWC1 && in pwc_enum_framesizes()
1046 (fsize->pixel_format == V4L2_PIX_FMT_PWC2 && in pwc_enum_framesizes()
1052 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in pwc_enum_framesizes()
1053 fsize->discrete.width = pwc_image_sizes[i][0]; in pwc_enum_framesizes()
1054 fsize->discrete.height = pwc_image_sizes[i][1]; in pwc_enum_framesizes()
/linux-3.4.99/net/core/
Dfilter.c609 unsigned int fsize = sizeof(struct sock_filter) * fprog->len; in sk_attach_filter() local
616 fp = sock_kmalloc(sk, fsize+sizeof(*fp), GFP_KERNEL); in sk_attach_filter()
619 if (copy_from_user(fp->insns, fprog->filter, fsize)) { in sk_attach_filter()
620 sock_kfree_s(sk, fp, fsize+sizeof(*fp)); in sk_attach_filter()
/linux-3.4.99/drivers/media/video/m5mols/
Dm5mols_core.c508 const struct m5mols_resolution *fsize = &m5mols_reg_res[0]; in __find_resolution() local
516 if (stype == fsize->type) { in __find_resolution()
517 err = abs(fsize->width - mf->width) in __find_resolution()
518 + abs(fsize->height - mf->height); in __find_resolution()
522 match = fsize; in __find_resolution()
525 fsize++; in __find_resolution()
/linux-3.4.99/drivers/media/video/uvc/
Duvc_v4l2.c799 struct v4l2_frmsizeenum *fsize = arg; in uvc_v4l2_do_ioctl() local
807 fsize->pixel_format) { in uvc_v4l2_do_ioctl()
815 if (fsize->index >= format->nframes) in uvc_v4l2_do_ioctl()
818 frame = &format->frame[fsize->index]; in uvc_v4l2_do_ioctl()
819 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in uvc_v4l2_do_ioctl()
820 fsize->discrete.width = frame->wWidth; in uvc_v4l2_do_ioctl()
821 fsize->discrete.height = frame->wHeight; in uvc_v4l2_do_ioctl()
/linux-3.4.99/drivers/usb/gadget/
Dfsl_qe_udc.c804 unsigned int fsize; in ep0_setup_handle() local
810 fsize = frame_get_length(pframe); in ep0_setup_handle()
811 if (unlikely(fsize != 8)) in ep0_setup_handle()
814 memcpy(cp, pframe->data, fsize); in ep0_setup_handle()
901 unsigned int fsize; in qe_ep_rxframe_handle() local
915 fsize = frame_get_length(pframe); in qe_ep_rxframe_handle()
923 memcpy(cp, pframe->data, fsize); in qe_ep_rxframe_handle()
924 req->req.actual += fsize; in qe_ep_rxframe_handle()
925 if ((fsize < ep->ep.maxpacket) || in qe_ep_rxframe_handle()
1485 u32 vaddr, fsize; in ep_req_rx() local
[all …]
/linux-3.4.99/drivers/isdn/pcbit/
Dpcbit.h87 unsigned short fsize[8]; /* sent layer2 frames size */ member
/linux-3.4.99/scripts/
DMakefile.lib277 fsize=$$(stat -c "%s" $$F); \
278 dec_size=$$(expr $$dec_size + $$fsize); \
/linux-3.4.99/drivers/staging/media/solo6x10/
Dv4l2-enc.c1335 struct v4l2_frmsizeenum *fsize) in solo_enum_framesizes() argument
1340 if (fsize->pixel_format != V4L2_PIX_FMT_MPEG) in solo_enum_framesizes()
1343 switch (fsize->index) { in solo_enum_framesizes()
1345 fsize->discrete.width = solo_dev->video_hsize >> 1; in solo_enum_framesizes()
1346 fsize->discrete.height = solo_dev->video_vsize; in solo_enum_framesizes()
1349 fsize->discrete.width = solo_dev->video_hsize; in solo_enum_framesizes()
1350 fsize->discrete.height = solo_dev->video_vsize << 1; in solo_enum_framesizes()
1356 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in solo_enum_framesizes()
/linux-3.4.99/net/can/
Draw.c599 int fsize = ro->count * sizeof(struct can_filter); in raw_getsockopt() local
600 if (len > fsize) in raw_getsockopt()
601 len = fsize; in raw_getsockopt()
/linux-3.4.99/include/media/
Dv4l2-subdev.h296 int (*enum_framesizes)(struct v4l2_subdev *sd, struct v4l2_frmsizeenum *fsize);
313 struct v4l2_frmsizeenum *fsize);

12