Home
last modified time | relevance | path

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

1234

/linux-6.1.9/drivers/s390/char/
Dhmcdrv_cache.c39 size_t fsize; member
49 .fsize = SIZE_MAX,
71 if (ftp->ofs >= hmcdrv_cache_file.fsize) /* EOF ? */ in hmcdrv_cache_get()
81 len = hmcdrv_cache_file.fsize - ftp->ofs; in hmcdrv_cache_get()
99 hmcdrv_cache_file.fsize); in hmcdrv_cache_get()
134 len = func(&cftp, &hmcdrv_cache_file.fsize); /* now do */ in hmcdrv_cache_do()
149 len = func(ftp, &hmcdrv_cache_file.fsize); in hmcdrv_cache_do()
161 ftp->id, hmcdrv_cache_file.fsize, ftp->fname); in hmcdrv_cache_do()
204 hmcdrv_cache_file.fsize = LLONG_MAX; in hmcdrv_cache_cmd()
250 hmcdrv_cache_file.fsize = LLONG_MAX; in hmcdrv_cache_shutdown()
Ddiag_ftp.c61 u64 fsize; member
143 ssize_t diag_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize) in diag_ftp_cmd() argument
169 ldfpl->fsize = 0; in diag_ftp_cmd()
188 diag_ftp_subcode, ldfpl->transferred, ldfpl->fsize); in diag_ftp_cmd()
194 if (fsize) in diag_ftp_cmd()
195 *fsize = ldfpl->fsize; in diag_ftp_cmd()
Dsclp_ftp.c76 sclp_ftp_fsize = diag->mdd.ftp.fsize; in sclp_ftp_rxcb()
114 sccb->evbuf.mdd.ftp.fsize = 0; in sclp_ftp_et7()
174 ssize_t sclp_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize) in sclp_ftp_cmd() argument
208 if (fsize) in sclp_ftp_cmd()
209 *fsize = sclp_ftp_fsize; in sclp_ftp_cmd()
/linux-6.1.9/sound/core/
Dpcm_timer.c21 unsigned long rate, mult, fsize, l, post; in snd_pcm_timer_resolution_change() local
31 fsize = runtime->period_size; in snd_pcm_timer_resolution_change()
32 if (snd_BUG_ON(!fsize)) in snd_pcm_timer_resolution_change()
34 l = gcd(rate, fsize); in snd_pcm_timer_resolution_change()
36 fsize /= l; in snd_pcm_timer_resolution_change()
38 while ((mult * fsize) / fsize != mult) { in snd_pcm_timer_resolution_change()
49 runtime->timer_resolution = (mult * fsize / rate) * post; in snd_pcm_timer_resolution_change()
/linux-6.1.9/sound/usb/line6/
Dcapture.c84 void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize) in line6_capture_copy() argument
92 int frames = fsize / bytes_per_frame; in line6_capture_copy()
120 line6pcm->in.pos_done * bytes_per_frame, fbuf, fsize); in line6_capture_copy()
163 int fsize; in audio_in_callback() local
172 fsize = fin->actual_length; in audio_in_callback()
174 if (fsize > line6pcm->max_packet_size_in) { in audio_in_callback()
177 fsize, line6pcm->max_packet_size_in); in audio_in_callback()
180 length += fsize; in audio_in_callback()
192 line6pcm->prev_fsize = fsize / in audio_in_callback()
198 fsize > 0) in audio_in_callback()
[all …]
Dplayback.c169 int fsize = 0; in submit_audio_out_urb() local
173 fsize = line6pcm->prev_fsize; in submit_audio_out_urb()
174 if (fsize == 0) { in submit_audio_out_urb()
180 fsize = n; in submit_audio_out_urb()
183 fsize *= bytes_per_frame; in submit_audio_out_urb()
186 fout->length = fsize; in submit_audio_out_urb()
187 urb_size += fsize; in submit_audio_out_urb()
/linux-6.1.9/drivers/staging/media/imx/
Dimx-media-capture.c103 struct v4l2_frmsizeenum *fsize) in capture_enum_framesizes() argument
107 if (fsize->index > 0) in capture_enum_framesizes()
110 cc = imx_media_find_pixel_format(fsize->pixel_format, PIXFMT_SEL_ANY); in capture_enum_framesizes()
119 fsize->type = V4L2_FRMSIZE_TYPE_CONTINUOUS; in capture_enum_framesizes()
120 fsize->stepwise.min_width = 1; in capture_enum_framesizes()
121 fsize->stepwise.max_width = 65535; in capture_enum_framesizes()
122 fsize->stepwise.min_height = 1; in capture_enum_framesizes()
123 fsize->stepwise.max_height = 65535; in capture_enum_framesizes()
124 fsize->stepwise.step_width = 1; in capture_enum_framesizes()
125 fsize->stepwise.step_height = 1; in capture_enum_framesizes()
[all …]
/linux-6.1.9/drivers/media/platform/verisilicon/
Dhantro_postproc.c154 struct v4l2_frmsizeenum *fsize) in hantro_postproc_g2_enum_framesizes() argument
160 if (fsize->index > 3) in hantro_postproc_g2_enum_framesizes()
166 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in hantro_postproc_g2_enum_framesizes()
167 fsize->discrete.width = ctx->src_fmt.width >> fsize->index; in hantro_postproc_g2_enum_framesizes()
168 fsize->discrete.height = ctx->src_fmt.height >> fsize->index; in hantro_postproc_g2_enum_framesizes()
265 struct v4l2_frmsizeenum *fsize) in hanto_postproc_enum_framesizes() argument
270 return vpu->variant->postproc_ops->enum_framesizes(ctx, fsize); in hanto_postproc_enum_framesizes()
/linux-6.1.9/drivers/media/usb/gspca/
Dstk1135.c619 struct v4l2_frmsizeenum *fsize) in stk1135_enum_framesizes() argument
621 if (fsize->index != 0 || fsize->pixel_format != V4L2_PIX_FMT_SBGGR8) in stk1135_enum_framesizes()
624 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in stk1135_enum_framesizes()
625 fsize->stepwise.min_width = 32; in stk1135_enum_framesizes()
626 fsize->stepwise.min_height = 32; in stk1135_enum_framesizes()
627 fsize->stepwise.max_width = 1280; in stk1135_enum_framesizes()
628 fsize->stepwise.max_height = 1024; in stk1135_enum_framesizes()
629 fsize->stepwise.step_width = 2; in stk1135_enum_framesizes()
630 fsize->stepwise.step_height = 2; in stk1135_enum_framesizes()
/linux-6.1.9/drivers/media/test-drivers/vimc/
Dvimc-capture.c173 struct v4l2_frmsizeenum *fsize) in vimc_capture_enum_framesizes() argument
177 if (fsize->index) in vimc_capture_enum_framesizes()
181 vpix = vimc_pix_map_by_code(fsize->pixel_format); in vimc_capture_enum_framesizes()
185 fsize->type = V4L2_FRMSIZE_TYPE_CONTINUOUS; in vimc_capture_enum_framesizes()
186 fsize->stepwise.min_width = VIMC_FRAME_MIN_WIDTH; in vimc_capture_enum_framesizes()
187 fsize->stepwise.max_width = VIMC_FRAME_MAX_WIDTH; in vimc_capture_enum_framesizes()
188 fsize->stepwise.min_height = VIMC_FRAME_MIN_HEIGHT; in vimc_capture_enum_framesizes()
189 fsize->stepwise.max_height = VIMC_FRAME_MAX_HEIGHT; in vimc_capture_enum_framesizes()
190 fsize->stepwise.step_width = 1; in vimc_capture_enum_framesizes()
191 fsize->stepwise.step_height = 1; in vimc_capture_enum_framesizes()
/linux-6.1.9/drivers/media/platform/ti/cal/
Dcal-video.c301 struct v4l2_frmsizeenum *fsize) in cal_legacy_enum_framesizes() argument
309 fmtinfo = find_format_by_pix(ctx, fsize->pixel_format); in cal_legacy_enum_framesizes()
312 fsize->pixel_format); in cal_legacy_enum_framesizes()
316 fse.index = fsize->index; in cal_legacy_enum_framesizes()
330 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in cal_legacy_enum_framesizes()
331 fsize->discrete.width = fse.max_width; in cal_legacy_enum_framesizes()
332 fsize->discrete.height = fse.max_height; in cal_legacy_enum_framesizes()
544 struct v4l2_frmsizeenum *fsize) in cal_mc_enum_framesizes() argument
550 if (fsize->index > 0) in cal_mc_enum_framesizes()
553 fmtinfo = cal_format_by_fourcc(fsize->pixel_format); in cal_mc_enum_framesizes()
[all …]
/linux-6.1.9/drivers/media/i2c/
Dov7740.c762 const struct ov7740_framesize *fsize = &ov7740_framesizes[0]; in ov7740_try_fmt_internal() local
778 if ((fsize->width >= fmt->width) && in ov7740_try_fmt_internal()
779 (fsize->height >= fmt->height)) { in ov7740_try_fmt_internal()
780 fmt->width = fsize->width; in ov7740_try_fmt_internal()
781 fmt->height = fsize->height; in ov7740_try_fmt_internal()
785 fsize++; in ov7740_try_fmt_internal()
788 fsize = &ov7740_framesizes[0]; in ov7740_try_fmt_internal()
789 fmt->width = fsize->width; in ov7740_try_fmt_internal()
790 fmt->height = fsize->height; in ov7740_try_fmt_internal()
793 *ret_frmsize = fsize; in ov7740_try_fmt_internal()
[all …]
Dimx335.c518 struct v4l2_subdev_frame_size_enum *fsize) in imx335_enum_frame_size() argument
520 if (fsize->index > 0) in imx335_enum_frame_size()
523 if (fsize->code != supported_mode.code) in imx335_enum_frame_size()
526 fsize->min_width = supported_mode.width; in imx335_enum_frame_size()
527 fsize->max_width = fsize->min_width; in imx335_enum_frame_size()
528 fsize->min_height = supported_mode.height; in imx335_enum_frame_size()
529 fsize->max_height = fsize->min_height; in imx335_enum_frame_size()
Dimx412.c670 struct v4l2_subdev_frame_size_enum *fsize) in imx412_enum_frame_size() argument
672 if (fsize->index > 0) in imx412_enum_frame_size()
675 if (fsize->code != supported_mode.code) in imx412_enum_frame_size()
678 fsize->min_width = supported_mode.width; in imx412_enum_frame_size()
679 fsize->max_width = fsize->min_width; in imx412_enum_frame_size()
680 fsize->min_height = supported_mode.height; in imx412_enum_frame_size()
681 fsize->max_height = fsize->min_height; in imx412_enum_frame_size()
Dimx334.c527 struct v4l2_subdev_frame_size_enum *fsize) in imx334_enum_frame_size() argument
529 if (fsize->index > 0) in imx334_enum_frame_size()
532 if (fsize->code != supported_mode.code) in imx334_enum_frame_size()
535 fsize->min_width = supported_mode.width; in imx334_enum_frame_size()
536 fsize->max_width = fsize->min_width; in imx334_enum_frame_size()
537 fsize->min_height = supported_mode.height; in imx334_enum_frame_size()
538 fsize->max_height = fsize->min_height; in imx334_enum_frame_size()
Dov9282.c528 struct v4l2_subdev_frame_size_enum *fsize) in ov9282_enum_frame_size() argument
530 if (fsize->index > 0) in ov9282_enum_frame_size()
533 if (fsize->code != supported_mode.code) in ov9282_enum_frame_size()
536 fsize->min_width = supported_mode.width; in ov9282_enum_frame_size()
537 fsize->max_width = fsize->min_width; in ov9282_enum_frame_size()
538 fsize->min_height = supported_mode.height; in ov9282_enum_frame_size()
539 fsize->max_height = fsize->min_height; in ov9282_enum_frame_size()
/linux-6.1.9/arch/m68k/kernel/
Dsignal.c873 int fsize = frame_extra_sizes(tregs->format); in setup_frame() local
877 if (fsize < 0) { in setup_frame()
883 frame = get_sigframe(ksig, sizeof(*frame) + fsize); in setup_frame()
885 if (fsize) in setup_frame()
886 err |= copy_to_user (frame + 1, regs + 1, fsize); in setup_frame()
921 if (fsize) { in setup_frame()
922 regs->stkadj = fsize; in setup_frame()
946 int fsize = frame_extra_sizes(tregs->format); in setup_rt_frame() local
949 if (fsize < 0) { in setup_rt_frame()
957 if (fsize) in setup_rt_frame()
[all …]
/linux-6.1.9/arch/powerpc/platforms/cell/
Diommu.c300 unsigned long fbase, unsigned long fsize) in cell_iommu_setup_stab() argument
305 segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; in cell_iommu_setup_stab()
882 unsigned long fbase, unsigned long fsize) in cell_iommu_setup_fixed_ptab() argument
886 ptab = cell_iommu_alloc_ptab(iommu, fbase, fsize, dbase, dsize, 24); in cell_iommu_setup_fixed_ptab()
890 pr_debug("iommu: mapping 0x%lx pages from 0x%lx\n", fsize, fbase); in cell_iommu_setup_fixed_ptab()
902 for (uaddr = 0; uaddr < fsize; uaddr += (1 << 24)) { in cell_iommu_setup_fixed_ptab()
918 unsigned long dbase, dsize, fbase, fsize, hbase, hend; in cell_iommu_fixed_mapping_init() local
952 fsize = memblock_phys_mem_size(); in cell_iommu_fixed_mapping_init()
954 if ((fbase + fsize) <= 0x800000000ul) in cell_iommu_fixed_mapping_init()
1006 dbase + dsize, fbase, fbase + fsize); in cell_iommu_fixed_mapping_init()
[all …]
/linux-6.1.9/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c236 struct v4l2_frmsizeenum *fsize) in rotate_enum_framesizes() argument
240 if (fsize->index != 0) in rotate_enum_framesizes()
243 fmt = rotate_find_format(fsize->pixel_format); in rotate_enum_framesizes()
247 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in rotate_enum_framesizes()
248 fsize->stepwise.min_width = ROTATE_MIN_WIDTH; in rotate_enum_framesizes()
249 fsize->stepwise.min_height = ROTATE_MIN_HEIGHT; in rotate_enum_framesizes()
250 fsize->stepwise.max_width = ROTATE_MAX_WIDTH; in rotate_enum_framesizes()
251 fsize->stepwise.max_height = ROTATE_MAX_HEIGHT; in rotate_enum_framesizes()
252 fsize->stepwise.step_width = fmt->hsub; in rotate_enum_framesizes()
253 fsize->stepwise.step_height = fmt->vsub; in rotate_enum_framesizes()
/linux-6.1.9/drivers/media/platform/qcom/camss/
Dcamss-video.c644 struct v4l2_frmsizeenum *fsize) in video_enum_framesizes() argument
649 if (fsize->index) in video_enum_framesizes()
654 if (video->formats[i].pixelformat == fsize->pixel_format) in video_enum_framesizes()
661 fsize->type = V4L2_FRMSIZE_TYPE_CONTINUOUS; in video_enum_framesizes()
662 fsize->stepwise.min_width = CAMSS_FRAME_MIN_WIDTH; in video_enum_framesizes()
663 fsize->stepwise.max_width = CAMSS_FRAME_MAX_WIDTH; in video_enum_framesizes()
664 fsize->stepwise.min_height = CAMSS_FRAME_MIN_HEIGHT; in video_enum_framesizes()
665 fsize->stepwise.max_height = (video->line_based) ? in video_enum_framesizes()
667 fsize->stepwise.step_width = 1; in video_enum_framesizes()
668 fsize->stepwise.step_height = 1; in video_enum_framesizes()
/linux-6.1.9/drivers/media/platform/sunxi/sun8i-di/
Dsun8i-di.c374 struct v4l2_frmsizeenum *fsize) in deinterlace_enum_framesizes() argument
376 if (fsize->index != 0) in deinterlace_enum_framesizes()
379 if (!deinterlace_check_format(fsize->pixel_format)) in deinterlace_enum_framesizes()
382 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in deinterlace_enum_framesizes()
383 fsize->stepwise.min_width = DEINTERLACE_MIN_WIDTH; in deinterlace_enum_framesizes()
384 fsize->stepwise.min_height = DEINTERLACE_MIN_HEIGHT; in deinterlace_enum_framesizes()
385 fsize->stepwise.max_width = DEINTERLACE_MAX_WIDTH; in deinterlace_enum_framesizes()
386 fsize->stepwise.max_height = DEINTERLACE_MAX_HEIGHT; in deinterlace_enum_framesizes()
387 fsize->stepwise.step_width = 2; in deinterlace_enum_framesizes()
388 fsize->stepwise.step_height = 1; in deinterlace_enum_framesizes()
/linux-6.1.9/drivers/media/pci/tw686x/
Dtw686x-video.c900 struct v4l2_frmsizeenum *fsize) in tw686x_enum_framesizes() argument
904 if (fsize->index) in tw686x_enum_framesizes()
906 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in tw686x_enum_framesizes()
907 fsize->stepwise.max_width = TW686X_VIDEO_WIDTH; in tw686x_enum_framesizes()
908 fsize->stepwise.min_width = fsize->stepwise.max_width / 2; in tw686x_enum_framesizes()
909 fsize->stepwise.step_width = fsize->stepwise.min_width; in tw686x_enum_framesizes()
910 fsize->stepwise.max_height = TW686X_VIDEO_HEIGHT(vc->video_standard); in tw686x_enum_framesizes()
911 fsize->stepwise.min_height = fsize->stepwise.max_height / 2; in tw686x_enum_framesizes()
912 fsize->stepwise.step_height = fsize->stepwise.min_height; in tw686x_enum_framesizes()
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec.c571 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument
577 if (fsize->index != 0) in vidioc_enum_framesizes()
581 if (fsize->pixel_format != dec_pdata->vdec_formats[i].fourcc) in vidioc_enum_framesizes()
588 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vidioc_enum_framesizes()
589 fsize->stepwise = dec_pdata->vdec_formats[i].frmsize; in vidioc_enum_framesizes()
593 fsize->stepwise.min_width, in vidioc_enum_framesizes()
594 fsize->stepwise.max_width, in vidioc_enum_framesizes()
595 fsize->stepwise.step_width, in vidioc_enum_framesizes()
596 fsize->stepwise.min_height, in vidioc_enum_framesizes()
597 fsize->stepwise.max_height, in vidioc_enum_framesizes()
[all …]
/linux-6.1.9/drivers/usb/gadget/function/
Duvc_v4l2.c337 struct v4l2_frmsizeenum *fsize) in uvc_v4l2_enum_framesizes() argument
344 uformat = find_format_by_pix(uvc, fsize->pixel_format); in uvc_v4l2_enum_framesizes()
348 if (fsize->index >= uformat->num_frames) in uvc_v4l2_enum_framesizes()
351 uframe = find_frame_by_index(uvc, uformat, fsize->index + 1); in uvc_v4l2_enum_framesizes()
355 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in uvc_v4l2_enum_framesizes()
356 fsize->discrete.width = uframe->frame.w_width; in uvc_v4l2_enum_framesizes()
357 fsize->discrete.height = uframe->frame.w_height; in uvc_v4l2_enum_framesizes()
/linux-6.1.9/lib/842/
D842_decompress.c163 static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize) in __do_index() argument
175 if (total > fsize) { in __do_index()
177 u64 section = round_down(total, fsize); in __do_index()
185 section -= fsize; in __do_index()

1234