Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/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.c60 u64 fsize; member
142 ssize_t diag_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize) in diag_ftp_cmd() argument
168 ldfpl->fsize = 0; in diag_ftp_cmd()
187 diag_ftp_subcode, ldfpl->transferred, ldfpl->fsize); in diag_ftp_cmd()
193 if (fsize) in diag_ftp_cmd()
194 *fsize = ldfpl->fsize; in diag_ftp_cmd()
Dsclp_ftp.c73 sclp_ftp_fsize = diag->mdd.ftp.fsize; in sclp_ftp_rxcb()
111 sccb->evbuf.mdd.ftp.fsize = 0; in sclp_ftp_et7()
171 ssize_t sclp_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize) in sclp_ftp_cmd() argument
205 if (fsize) in sclp_ftp_cmd()
206 *fsize = sclp_ftp_fsize; in sclp_ftp_cmd()
Ddiag_ftp.h20 ssize_t diag_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize);
Dsclp_ftp.h20 ssize_t sclp_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/m68k/kernel/
Dsignal.c640 int fsize = frame_extra_sizes(formatvec >> 12); in mangle_kernel_stack() local
641 if (fsize < 0) { in mangle_kernel_stack()
648 if (!fsize) { in mangle_kernel_stack()
657 if (copy_from_user(buf + fsize / 4, fp, fsize)) in mangle_kernel_stack()
684 : "a" (sw), "d" (fsize), "d" (frame_offset/4-1), in mangle_kernel_stack()
685 "n" (frame_offset), "a" (buf + fsize/4) in mangle_kernel_stack()
897 int fsize = frame_extra_sizes(tregs->format); in setup_frame() local
901 if (fsize < 0) { in setup_frame()
907 frame = get_sigframe(ksig, sizeof(*frame) + fsize); in setup_frame()
909 if (fsize) in setup_frame()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/
Dvimc-capture.c172 struct v4l2_frmsizeenum *fsize) in vimc_cap_enum_framesizes() argument
176 if (fsize->index) in vimc_cap_enum_framesizes()
180 vpix = vimc_pix_map_by_code(fsize->pixel_format); in vimc_cap_enum_framesizes()
184 fsize->type = V4L2_FRMSIZE_TYPE_CONTINUOUS; in vimc_cap_enum_framesizes()
185 fsize->stepwise.min_width = VIMC_FRAME_MIN_WIDTH; in vimc_cap_enum_framesizes()
186 fsize->stepwise.max_width = VIMC_FRAME_MAX_WIDTH; in vimc_cap_enum_framesizes()
187 fsize->stepwise.min_height = VIMC_FRAME_MIN_HEIGHT; in vimc_cap_enum_framesizes()
188 fsize->stepwise.max_height = VIMC_FRAME_MAX_HEIGHT; in vimc_cap_enum_framesizes()
189 fsize->stepwise.step_width = 1; in vimc_cap_enum_framesizes()
190 fsize->stepwise.step_height = 1; in vimc_cap_enum_framesizes()
/kernel/linux/linux-5.10/drivers/staging/media/imx/
Dimx-media-capture.c83 struct v4l2_frmsizeenum *fsize) in capture_enum_framesizes() argument
88 .index = fsize->index, in capture_enum_framesizes()
94 cc = imx_media_find_pixel_format(fsize->pixel_format, PIXFMT_SEL_ANY); in capture_enum_framesizes()
106 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in capture_enum_framesizes()
107 fsize->discrete.width = fse.min_width; in capture_enum_framesizes()
108 fsize->discrete.height = fse.min_height; in capture_enum_framesizes()
110 fsize->type = V4L2_FRMSIZE_TYPE_CONTINUOUS; in capture_enum_framesizes()
111 fsize->stepwise.min_width = fse.min_width; in capture_enum_framesizes()
112 fsize->stepwise.max_width = fse.max_width; in capture_enum_framesizes()
113 fsize->stepwise.min_height = fse.min_height; in capture_enum_framesizes()
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov7740.c764 const struct ov7740_framesize *fsize = &ov7740_framesizes[0]; in ov7740_try_fmt_internal() local
780 if ((fsize->width >= fmt->width) && in ov7740_try_fmt_internal()
781 (fsize->height >= fmt->height)) { in ov7740_try_fmt_internal()
782 fmt->width = fsize->width; in ov7740_try_fmt_internal()
783 fmt->height = fsize->height; in ov7740_try_fmt_internal()
787 fsize++; in ov7740_try_fmt_internal()
790 fsize = &ov7740_framesizes[0]; in ov7740_try_fmt_internal()
791 fmt->width = fsize->width; in ov7740_try_fmt_internal()
792 fmt->height = fsize->height; in ov7740_try_fmt_internal()
795 *ret_frmsize = fsize; in ov7740_try_fmt_internal()
[all …]
Ds5k4ecgx.c504 const struct s5k4ecgx_frmsize *fsize = &s5k4ecgx_prev_sizes[0], in s5k4ecgx_try_frame_size() local
508 int err = abs(fsize->size.width - mf->width) in s5k4ecgx_try_frame_size()
509 + abs(fsize->size.height - mf->height); in s5k4ecgx_try_frame_size()
512 match = fsize; in s5k4ecgx_try_frame_size()
514 fsize++; in s5k4ecgx_try_frame_size()
582 const struct s5k4ecgx_frmsize *fsize = NULL; in s5k4ecgx_set_fmt() local
588 s5k4ecgx_try_frame_size(&fmt->format, &fsize); in s5k4ecgx_set_fmt()
602 priv->curr_frmsize = fsize; in s5k4ecgx_set_fmt()
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
Diommu.c298 unsigned long fbase, unsigned long fsize) in cell_iommu_setup_stab() argument
303 segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; in cell_iommu_setup_stab()
877 unsigned long fbase, unsigned long fsize) in cell_iommu_setup_fixed_ptab() argument
881 ptab = cell_iommu_alloc_ptab(iommu, fbase, fsize, dbase, dsize, 24); in cell_iommu_setup_fixed_ptab()
885 pr_debug("iommu: mapping 0x%lx pages from 0x%lx\n", fsize, fbase); in cell_iommu_setup_fixed_ptab()
897 for (uaddr = 0; uaddr < fsize; uaddr += (1 << 24)) { in cell_iommu_setup_fixed_ptab()
913 unsigned long dbase, dsize, fbase, fsize, hbase, hend; in cell_iommu_fixed_mapping_init() local
947 fsize = memblock_phys_mem_size(); in cell_iommu_fixed_mapping_init()
949 if ((fbase + fsize) <= 0x800000000ul) in cell_iommu_fixed_mapping_init()
1001 dbase + dsize, fbase, fbase + fsize); in cell_iommu_fixed_mapping_init()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/
Dcamss-video.c616 struct v4l2_frmsizeenum *fsize) in video_enum_framesizes() argument
621 if (fsize->index) in video_enum_framesizes()
626 if (video->formats[i].pixelformat == fsize->pixel_format) in video_enum_framesizes()
633 fsize->type = V4L2_FRMSIZE_TYPE_CONTINUOUS; in video_enum_framesizes()
634 fsize->stepwise.min_width = CAMSS_FRAME_MIN_WIDTH; in video_enum_framesizes()
635 fsize->stepwise.max_width = CAMSS_FRAME_MAX_WIDTH; in video_enum_framesizes()
636 fsize->stepwise.min_height = CAMSS_FRAME_MIN_HEIGHT; in video_enum_framesizes()
637 fsize->stepwise.max_height = (video->line_based) ? in video_enum_framesizes()
639 fsize->stepwise.step_width = 1; in video_enum_framesizes()
640 fsize->stepwise.step_height = 1; in video_enum_framesizes()
/kernel/liteos_a/fs/fat/os_adapt/
Dfatfs.c456 finfo_new->fsize = fs->csize * SS(fs); in fatfs_create_obj()
566 finfo->fsize = fs->csize * SS(fs); in fatfs_lookup()
624 fp->obj.objsize = finfo->fsize; in fatfs_open()
691 fp->obj.objsize = finfo->fsize; in fatfs_read()
717 st_dword(dbuff + DIR_FileSize, (DWORD)finfo->fsize); /* Update file size */ in update_dir()
760 offset = (off_t)((long long)finfo->fsize + offset); in fatfs_lseek64()
779 if (fpos > finfo->fsize) { in fatfs_lseek64()
790 fp->obj.objsize = finfo->fsize; in fatfs_lseek64()
793 finfo->fsize = fp->obj.objsize; in fatfs_lseek64()
852 fp->obj.objsize = finfo->fsize; in fatfs_write()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/pci/tw686x/
Dtw686x-video.c903 struct v4l2_frmsizeenum *fsize) in tw686x_enum_framesizes() argument
907 if (fsize->index) in tw686x_enum_framesizes()
909 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in tw686x_enum_framesizes()
910 fsize->stepwise.max_width = TW686X_VIDEO_WIDTH; in tw686x_enum_framesizes()
911 fsize->stepwise.min_width = fsize->stepwise.max_width / 2; in tw686x_enum_framesizes()
912 fsize->stepwise.step_width = fsize->stepwise.min_width; in tw686x_enum_framesizes()
913 fsize->stepwise.max_height = TW686X_VIDEO_HEIGHT(vc->video_standard); in tw686x_enum_framesizes()
914 fsize->stepwise.min_height = fsize->stepwise.max_height / 2; in tw686x_enum_framesizes()
915 fsize->stepwise.step_height = fsize->stepwise.min_height; in tw686x_enum_framesizes()
/kernel/linux/linux-5.10/drivers/staging/media/hantro/
Dhantro_v4l2.c114 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument
119 if (fsize->index != 0) { in vidioc_enum_framesizes()
121 fsize->index); in vidioc_enum_framesizes()
125 fmt = hantro_find_format(ctx, fsize->pixel_format); in vidioc_enum_framesizes()
128 fsize->pixel_format); in vidioc_enum_framesizes()
136 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vidioc_enum_framesizes()
137 fsize->stepwise = fmt->frmsize; in vidioc_enum_framesizes()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dvenc.c429 struct v4l2_frmsizeenum *fsize) in venc_enum_framesizes() argument
434 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in venc_enum_framesizes()
436 fmt = find_format(inst, fsize->pixel_format, in venc_enum_framesizes()
439 fmt = find_format(inst, fsize->pixel_format, in venc_enum_framesizes()
445 if (fsize->index) in venc_enum_framesizes()
448 fsize->stepwise.min_width = frame_width_min(inst); in venc_enum_framesizes()
449 fsize->stepwise.max_width = frame_width_max(inst); in venc_enum_framesizes()
450 fsize->stepwise.step_width = frame_width_step(inst); in venc_enum_framesizes()
451 fsize->stepwise.min_height = frame_height_min(inst); in venc_enum_framesizes()
452 fsize->stepwise.max_height = frame_height_max(inst); in venc_enum_framesizes()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_dec.c910 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument
915 if (fsize->index != 0) in vidioc_enum_framesizes()
919 if (fsize->pixel_format != mtk_vdec_framesizes[i].fourcc) in vidioc_enum_framesizes()
922 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vidioc_enum_framesizes()
923 fsize->stepwise = mtk_vdec_framesizes[i].stepwise; in vidioc_enum_framesizes()
927 fsize->stepwise.max_width = in vidioc_enum_framesizes()
929 fsize->stepwise.max_height = in vidioc_enum_framesizes()
934 fsize->stepwise.min_width, in vidioc_enum_framesizes()
935 fsize->stepwise.max_width, in vidioc_enum_framesizes()
936 fsize->stepwise.step_width, in vidioc_enum_framesizes()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/cpia2/
Dcpia2_v4l.c551 struct v4l2_frmsizeenum *fsize) in cpia2_enum_framesizes() argument
554 if (fsize->pixel_format != V4L2_PIX_FMT_MJPEG && in cpia2_enum_framesizes()
555 fsize->pixel_format != V4L2_PIX_FMT_JPEG) in cpia2_enum_framesizes()
557 if (fsize->index >= ARRAY_SIZE(cpia2_framesizes)) in cpia2_enum_framesizes()
559 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in cpia2_enum_framesizes()
560 fsize->discrete.width = cpia2_framesizes[fsize->index].width; in cpia2_enum_framesizes()
561 fsize->discrete.height = cpia2_framesizes[fsize->index].height; in cpia2_enum_framesizes()

1234