Home
last modified time | relevance | path

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

123

/Linux-v4.19/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);
/Linux-v4.19/sound/core/
Dpcm_timer.c36 unsigned long rate, mult, fsize, l, post; in snd_pcm_timer_resolution_change() local
46 fsize = runtime->period_size; in snd_pcm_timer_resolution_change()
47 if (snd_BUG_ON(!fsize)) in snd_pcm_timer_resolution_change()
49 l = gcd(rate, fsize); in snd_pcm_timer_resolution_change()
51 fsize /= l; in snd_pcm_timer_resolution_change()
53 while ((mult * fsize) / fsize != mult) { in snd_pcm_timer_resolution_change()
64 runtime->timer_resolution = (mult * fsize / rate) * post; in snd_pcm_timer_resolution_change()
/Linux-v4.19/sound/usb/line6/
Dcapture.c88 void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize) in line6_capture_copy() argument
96 int frames = fsize / bytes_per_frame; in line6_capture_copy()
124 line6pcm->in.pos_done * bytes_per_frame, fbuf, fsize); in line6_capture_copy()
167 int fsize; in audio_in_callback() local
176 fsize = fin->actual_length; in audio_in_callback()
178 if (fsize > line6pcm->max_packet_size_in) { in audio_in_callback()
181 fsize, line6pcm->max_packet_size_in); in audio_in_callback()
184 length += fsize; in audio_in_callback()
196 line6pcm->prev_fsize = fsize / in audio_in_callback()
202 fsize > 0) in audio_in_callback()
[all …]
Dplayback.c173 int fsize = 0; in submit_audio_out_urb() local
177 fsize = line6pcm->prev_fsize; in submit_audio_out_urb()
178 if (fsize == 0) { in submit_audio_out_urb()
184 fsize = n; in submit_audio_out_urb()
187 fsize *= bytes_per_frame; in submit_audio_out_urb()
190 fout->length = fsize; in submit_audio_out_urb()
191 urb_size += fsize; in submit_audio_out_urb()
Dcapture.h23 int fsize);
/Linux-v4.19/arch/m68k/kernel/
Dsignal.c641 int fsize = frame_extra_sizes(formatvec >> 12); in mangle_kernel_stack() local
642 if (fsize < 0) { in mangle_kernel_stack()
649 if (!fsize) { in mangle_kernel_stack()
654 unsigned long buf[fsize / 2]; /* yes, twice as much */ 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()
889 int fsize = frame_extra_sizes(regs->format); in setup_frame() local
893 if (fsize < 0) { in setup_frame()
899 frame = get_sigframe(ksig, sizeof(*frame) + fsize); in setup_frame()
[all …]
/Linux-v4.19/drivers/media/usb/gspca/
Dstk1135.c628 struct v4l2_frmsizeenum *fsize) in stk1135_enum_framesizes() argument
630 if (fsize->index != 0 || fsize->pixel_format != V4L2_PIX_FMT_SBGGR8) in stk1135_enum_framesizes()
633 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in stk1135_enum_framesizes()
634 fsize->stepwise.min_width = 32; in stk1135_enum_framesizes()
635 fsize->stepwise.min_height = 32; in stk1135_enum_framesizes()
636 fsize->stepwise.max_width = 1280; in stk1135_enum_framesizes()
637 fsize->stepwise.max_height = 1024; in stk1135_enum_framesizes()
638 fsize->stepwise.step_width = 2; in stk1135_enum_framesizes()
639 fsize->stepwise.step_height = 2; in stk1135_enum_framesizes()
/Linux-v4.19/drivers/media/platform/vimc/
Dvimc-capture.c174 struct v4l2_frmsizeenum *fsize) in vimc_cap_enum_framesizes() argument
178 if (fsize->index) in vimc_cap_enum_framesizes()
182 vpix = vimc_pix_map_by_code(fsize->pixel_format); in vimc_cap_enum_framesizes()
186 fsize->type = V4L2_FRMSIZE_TYPE_CONTINUOUS; in vimc_cap_enum_framesizes()
187 fsize->stepwise.min_width = VIMC_FRAME_MIN_WIDTH; in vimc_cap_enum_framesizes()
188 fsize->stepwise.max_width = VIMC_FRAME_MAX_WIDTH; in vimc_cap_enum_framesizes()
189 fsize->stepwise.min_height = VIMC_FRAME_MIN_HEIGHT; in vimc_cap_enum_framesizes()
190 fsize->stepwise.max_height = VIMC_FRAME_MAX_HEIGHT; in vimc_cap_enum_framesizes()
191 fsize->stepwise.step_width = 2; in vimc_cap_enum_framesizes()
192 fsize->stepwise.step_height = 2; in vimc_cap_enum_framesizes()
/Linux-v4.19/drivers/staging/media/imx/
Dimx-media-capture.c85 struct v4l2_frmsizeenum *fsize) in capture_enum_framesizes() argument
90 .index = fsize->index, in capture_enum_framesizes()
96 cc = imx_media_find_format(fsize->pixel_format, CS_SEL_ANY, true); in capture_enum_framesizes()
108 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in capture_enum_framesizes()
109 fsize->discrete.width = fse.min_width; in capture_enum_framesizes()
110 fsize->discrete.height = fse.min_height; in capture_enum_framesizes()
112 fsize->type = V4L2_FRMSIZE_TYPE_CONTINUOUS; in capture_enum_framesizes()
113 fsize->stepwise.min_width = fse.min_width; in capture_enum_framesizes()
114 fsize->stepwise.max_width = fse.max_width; in capture_enum_framesizes()
115 fsize->stepwise.min_height = fse.min_height; in capture_enum_framesizes()
[all …]
/Linux-v4.19/arch/powerpc/platforms/cell/
Diommu.c311 unsigned long fbase, unsigned long fsize) in cell_iommu_setup_stab() argument
316 segments = max(dbase + dsize, fbase + fsize) >> IO_SEGMENT_SHIFT; in cell_iommu_setup_stab()
989 unsigned long fbase, unsigned long fsize) in cell_iommu_setup_fixed_ptab() argument
993 ptab = cell_iommu_alloc_ptab(iommu, fbase, fsize, dbase, dsize, 24); in cell_iommu_setup_fixed_ptab()
997 pr_debug("iommu: mapping 0x%lx pages from 0x%lx\n", fsize, fbase); in cell_iommu_setup_fixed_ptab()
1009 for (uaddr = 0; uaddr < fsize; uaddr += (1 << 24)) { in cell_iommu_setup_fixed_ptab()
1025 unsigned long dbase, dsize, fbase, fsize, hbase, hend; in cell_iommu_fixed_mapping_init() local
1059 fsize = memblock_phys_mem_size(); in cell_iommu_fixed_mapping_init()
1061 if ((fbase + fsize) <= 0x800000000ul) in cell_iommu_fixed_mapping_init()
1112 dbase + dsize, fbase, fbase + fsize); in cell_iommu_fixed_mapping_init()
[all …]
/Linux-v4.19/drivers/media/i2c/
Dov7740.c739 const struct ov7740_framesize *fsize = &ov7740_framesizes[0]; in ov7740_try_fmt_internal() local
755 if ((fsize->width >= fmt->width) && in ov7740_try_fmt_internal()
756 (fsize->height >= fmt->height)) { in ov7740_try_fmt_internal()
757 fmt->width = fsize->width; in ov7740_try_fmt_internal()
758 fmt->height = fsize->height; in ov7740_try_fmt_internal()
762 fsize++; in ov7740_try_fmt_internal()
766 *ret_frmsize = fsize; in ov7740_try_fmt_internal()
782 const struct ov7740_framesize *fsize; in ov7740_set_fmt() local
810 ret = ov7740_try_fmt_internal(sd, &format->format, &ovfmt, &fsize); in ov7740_set_fmt()
815 ov7740->frmsize = fsize; in ov7740_set_fmt()
Dvideo-i2c.c404 struct v4l2_frmsizeenum *fsize) in video_i2c_enum_framesizes() argument
410 if (fsize->index > 0) in video_i2c_enum_framesizes()
413 if (fsize->pixel_format != data->chip->format->pixelformat) in video_i2c_enum_framesizes()
416 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in video_i2c_enum_framesizes()
417 fsize->discrete.width = size->width; in video_i2c_enum_framesizes()
418 fsize->discrete.height = size->height; in video_i2c_enum_framesizes()
Ds5k4ecgx.c510 const struct s5k4ecgx_frmsize *fsize = &s5k4ecgx_prev_sizes[0], in s5k4ecgx_try_frame_size() local
514 int err = abs(fsize->size.width - mf->width) in s5k4ecgx_try_frame_size()
515 + abs(fsize->size.height - mf->height); in s5k4ecgx_try_frame_size()
518 match = fsize; in s5k4ecgx_try_frame_size()
520 fsize++; in s5k4ecgx_try_frame_size()
588 const struct s5k4ecgx_frmsize *fsize = NULL; in s5k4ecgx_set_fmt() local
594 s5k4ecgx_try_frame_size(&fmt->format, &fsize); in s5k4ecgx_set_fmt()
608 priv->curr_frmsize = fsize; in s5k4ecgx_set_fmt()
/Linux-v4.19/drivers/media/pci/tw686x/
Dtw686x-video.c910 struct v4l2_frmsizeenum *fsize) in tw686x_enum_framesizes() argument
914 if (fsize->index) in tw686x_enum_framesizes()
916 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in tw686x_enum_framesizes()
917 fsize->stepwise.max_width = TW686X_VIDEO_WIDTH; in tw686x_enum_framesizes()
918 fsize->stepwise.min_width = fsize->stepwise.max_width / 2; in tw686x_enum_framesizes()
919 fsize->stepwise.step_width = fsize->stepwise.min_width; in tw686x_enum_framesizes()
920 fsize->stepwise.max_height = TW686X_VIDEO_HEIGHT(vc->video_standard); in tw686x_enum_framesizes()
921 fsize->stepwise.min_height = fsize->stepwise.max_height / 2; in tw686x_enum_framesizes()
922 fsize->stepwise.step_height = fsize->stepwise.min_height; in tw686x_enum_framesizes()
/Linux-v4.19/lib/842/
D842_decompress.c172 static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize) in __do_index() argument
184 if (total > fsize) { in __do_index()
186 u64 section = round_down(total, fsize); in __do_index()
194 section -= fsize; in __do_index()
/Linux-v4.19/drivers/media/usb/em28xx/
Dem28xx-video.c1964 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument
1971 fmt = format_by_fourcc(fsize->pixel_format); in vidioc_enum_framesizes()
1974 fsize->pixel_format); in vidioc_enum_framesizes()
1979 if (fsize->index > 1) in vidioc_enum_framesizes()
1981 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in vidioc_enum_framesizes()
1982 fsize->discrete.width = maxw / (1 + fsize->index); in vidioc_enum_framesizes()
1983 fsize->discrete.height = maxh / (1 + fsize->index); in vidioc_enum_framesizes()
1987 if (fsize->index != 0) in vidioc_enum_framesizes()
1991 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vidioc_enum_framesizes()
1993 &fsize->stepwise.min_width, &fsize->stepwise.min_height); in vidioc_enum_framesizes()
[all …]
/Linux-v4.19/drivers/media/platform/qcom/venus/
Dvdec.c402 struct v4l2_frmsizeenum *fsize) in vdec_enum_framesizes() argument
407 fmt = find_format(inst, fsize->pixel_format, in vdec_enum_framesizes()
410 fmt = find_format(inst, fsize->pixel_format, in vdec_enum_framesizes()
416 if (fsize->index) in vdec_enum_framesizes()
419 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vdec_enum_framesizes()
421 fsize->stepwise.min_width = frame_width_min(inst); in vdec_enum_framesizes()
422 fsize->stepwise.max_width = frame_width_max(inst); in vdec_enum_framesizes()
423 fsize->stepwise.step_width = frame_width_step(inst); in vdec_enum_framesizes()
424 fsize->stepwise.min_height = frame_height_min(inst); in vdec_enum_framesizes()
425 fsize->stepwise.max_height = frame_height_max(inst); in vdec_enum_framesizes()
[all …]
Dvenc.c549 struct v4l2_frmsizeenum *fsize) in venc_enum_framesizes() argument
554 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in venc_enum_framesizes()
556 fmt = find_format(inst, fsize->pixel_format, in venc_enum_framesizes()
559 fmt = find_format(inst, fsize->pixel_format, in venc_enum_framesizes()
565 if (fsize->index) in venc_enum_framesizes()
568 fsize->stepwise.min_width = frame_width_min(inst); in venc_enum_framesizes()
569 fsize->stepwise.max_width = frame_width_max(inst); in venc_enum_framesizes()
570 fsize->stepwise.step_width = frame_width_step(inst); in venc_enum_framesizes()
571 fsize->stepwise.min_height = frame_height_min(inst); in venc_enum_framesizes()
572 fsize->stepwise.max_height = frame_height_max(inst); in venc_enum_framesizes()
[all …]
/Linux-v4.19/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_dec.c879 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument
884 if (fsize->index != 0) in vidioc_enum_framesizes()
888 if (fsize->pixel_format != mtk_vdec_framesizes[i].fourcc) in vidioc_enum_framesizes()
891 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vidioc_enum_framesizes()
892 fsize->stepwise = mtk_vdec_framesizes[i].stepwise; in vidioc_enum_framesizes()
896 fsize->stepwise.max_width = in vidioc_enum_framesizes()
898 fsize->stepwise.max_height = in vidioc_enum_framesizes()
903 fsize->stepwise.min_width, in vidioc_enum_framesizes()
904 fsize->stepwise.max_width, in vidioc_enum_framesizes()
905 fsize->stepwise.step_width, in vidioc_enum_framesizes()
[all …]
/Linux-v4.19/drivers/media/platform/stm32/
Dstm32-dcmi.c779 struct dcmi_framesize *fsize = &dcmi->sd_framesizes[i]; in __find_outer_frame_size() local
780 int w_err = (fsize->width - pix->width); in __find_outer_frame_size()
781 int h_err = (fsize->height - pix->height); in __find_outer_frame_size()
786 match = fsize; in __find_outer_frame_size()
1033 struct dcmi_framesize *fsize = &dcmi->sd_framesizes[i]; in dcmi_get_sensor_bounds() local
1034 unsigned int pixsize = fsize->width * fsize->height; in dcmi_get_sensor_bounds()
1038 max_width = fsize->width; in dcmi_get_sensor_bounds()
1039 max_height = fsize->height; in dcmi_get_sensor_bounds()
1182 struct v4l2_frmsizeenum *fsize) in dcmi_enum_framesizes() argument
1187 .index = fsize->index, in dcmi_enum_framesizes()
[all …]
/Linux-v4.19/drivers/video/fbdev/
Damifb.c1126 u_long maxfetchstop, fstrt, fsize, fconst, xres_n, yres_n; in ami_decode_var() local
1382 fsize = ((maxfmode + clk_shift <= 1) ? fconst : 64); in ami_decode_var()
1383 fstrt = downx(fconst, par->diwstrt_h - 4) - fsize; in ami_decode_var()
1394 fsize; in ami_decode_var()
1401 fsize = upx(fconst, xres_n + in ami_decode_var()
1403 if (fstrt + fsize > maxfetchstop) in ami_decode_var()
1406 fsize = upx(fconst, xres_n); in ami_decode_var()
1407 if (fstrt + fsize > maxfetchstop) { in ami_decode_var()
1413 fsize = up64(xres_n + fconst - 1); in ami_decode_var()
1414 if (min_fstrt + fsize - 64 > maxfetchstop) in ami_decode_var()
[all …]

123