/drivers/s390/char/ |
D | hmcdrv_cache.c | 38 size_t fsize; member 48 .fsize = SIZE_MAX, 70 if (ftp->ofs >= hmcdrv_cache_file.fsize) /* EOF ? */ in hmcdrv_cache_get() 80 len = hmcdrv_cache_file.fsize - ftp->ofs; in hmcdrv_cache_get() 98 hmcdrv_cache_file.fsize); in hmcdrv_cache_get() 133 len = func(&cftp, &hmcdrv_cache_file.fsize); /* now do */ in hmcdrv_cache_do() 148 len = func(ftp, &hmcdrv_cache_file.fsize); in hmcdrv_cache_do() 160 ftp->id, hmcdrv_cache_file.fsize, ftp->fname); in hmcdrv_cache_do() 203 hmcdrv_cache_file.fsize = LLONG_MAX; in hmcdrv_cache_cmd() 249 hmcdrv_cache_file.fsize = LLONG_MAX; in hmcdrv_cache_shutdown()
|
D | diag_ftp.c | 58 u64 fsize; member 139 ssize_t diag_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize) in diag_ftp_cmd() argument 165 ldfpl->fsize = 0; in diag_ftp_cmd() 184 diag_ftp_subcode, ldfpl->transferred, ldfpl->fsize); in diag_ftp_cmd() 190 if (fsize) in diag_ftp_cmd() 191 *fsize = ldfpl->fsize; in diag_ftp_cmd()
|
D | sclp_ftp.c | 72 sclp_ftp_fsize = diag->mdd.ftp.fsize; in sclp_ftp_rxcb() 110 sccb->evbuf.mdd.ftp.fsize = 0; in sclp_ftp_et7() 170 ssize_t sclp_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize) in sclp_ftp_cmd() argument 204 if (fsize) in sclp_ftp_cmd() 205 *fsize = sclp_ftp_fsize; in sclp_ftp_cmd()
|
D | sclp_ftp.h | 19 ssize_t sclp_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize);
|
D | diag_ftp.h | 19 ssize_t diag_ftp_cmd(const struct hmcdrv_ftp_cmdspec *ftp, size_t *fsize);
|
D | hmcdrv_cache.h | 17 size_t *fsize);
|
/drivers/staging/line6/ |
D | capture.c | 144 void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize) in line6_capture_copy() argument 150 int frames = fsize / bytes_per_frame; in line6_capture_copy() 178 line6pcm->pos_in_done * bytes_per_frame, fbuf, fsize); in line6_capture_copy() 225 int fsize; in audio_in_callback() local 234 fsize = fin->actual_length; in audio_in_callback() 236 if (fsize > line6pcm->max_packet_size) { in audio_in_callback() 239 fsize, line6pcm->max_packet_size); in audio_in_callback() 242 length += fsize; in audio_in_callback() 246 line6pcm->prev_fsize = fsize; in audio_in_callback() 252 &line6pcm->flags) && (fsize > 0)) in audio_in_callback() [all …]
|
D | playback.c | 169 int fsize = 0; in submit_audio_out_urb() local 174 fsize = line6pcm->prev_fsize; in submit_audio_out_urb() 176 if (fsize == 0) { in submit_audio_out_urb() 182 fsize = n * 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()
|
D | capture.h | 23 int fsize);
|
/drivers/media/usb/gspca/ |
D | stk1135.c | 631 struct v4l2_frmsizeenum *fsize) in stk1135_enum_framesizes() argument 633 if (fsize->index != 0 || fsize->pixel_format != V4L2_PIX_FMT_SBGGR8) in stk1135_enum_framesizes() 636 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in stk1135_enum_framesizes() 637 fsize->stepwise.min_width = 32; in stk1135_enum_framesizes() 638 fsize->stepwise.min_height = 32; in stk1135_enum_framesizes() 639 fsize->stepwise.max_width = 1280; in stk1135_enum_framesizes() 640 fsize->stepwise.max_height = 1024; in stk1135_enum_framesizes() 641 fsize->stepwise.step_width = 2; in stk1135_enum_framesizes() 642 fsize->stepwise.step_height = 2; in stk1135_enum_framesizes()
|
/drivers/media/usb/em28xx/ |
D | em28xx-video.c | 1751 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument 1758 fmt = format_by_fourcc(fsize->pixel_format); in vidioc_enum_framesizes() 1761 fsize->pixel_format); in vidioc_enum_framesizes() 1766 if (fsize->index > 1) in vidioc_enum_framesizes() 1768 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in vidioc_enum_framesizes() 1769 fsize->discrete.width = maxw / (1 + fsize->index); in vidioc_enum_framesizes() 1770 fsize->discrete.height = maxh / (1 + fsize->index); in vidioc_enum_framesizes() 1774 if (fsize->index != 0) in vidioc_enum_framesizes() 1778 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vidioc_enum_framesizes() 1780 &fsize->stepwise.min_width, &fsize->stepwise.min_height); in vidioc_enum_framesizes() [all …]
|
/drivers/media/platform/ |
D | timblogiw.c | 453 struct v4l2_frmsizeenum *fsize) in timblogiw_enum_framesizes() argument 459 fsize->index, fsize->pixel_format); in timblogiw_enum_framesizes() 461 if ((fsize->index != 0) || in timblogiw_enum_framesizes() 462 (fsize->pixel_format != V4L2_PIX_FMT_UYVY)) in timblogiw_enum_framesizes() 465 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in timblogiw_enum_framesizes() 466 fsize->discrete.width = fh->cur_norm->width; in timblogiw_enum_framesizes() 467 fsize->discrete.height = fh->cur_norm->height; in timblogiw_enum_framesizes()
|
/drivers/video/fbdev/ |
D | amifb.c | 1126 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 …]
|
/drivers/media/i2c/ |
D | s5k4ecgx.c | 511 const struct s5k4ecgx_frmsize *fsize = &s5k4ecgx_prev_sizes[0], in s5k4ecgx_try_frame_size() local 515 int err = abs(fsize->size.width - mf->width) in s5k4ecgx_try_frame_size() 516 + abs(fsize->size.height - mf->height); in s5k4ecgx_try_frame_size() 519 match = fsize; in s5k4ecgx_try_frame_size() 521 fsize++; in s5k4ecgx_try_frame_size() 589 const struct s5k4ecgx_frmsize *fsize = NULL; in s5k4ecgx_set_fmt() local 595 s5k4ecgx_try_frame_size(&fmt->format, &fsize); in s5k4ecgx_set_fmt() 609 priv->curr_frmsize = fsize; in s5k4ecgx_set_fmt()
|
D | sr030pc30.c | 402 const struct sr030pc30_frmsize *fsize = &sr030pc30_sizes[0], in sr030pc30_try_frame_size() local 405 int err = abs(fsize->width - mf->width) in sr030pc30_try_frame_size() 406 + abs(fsize->height - mf->height); in sr030pc30_try_frame_size() 409 match = fsize; in sr030pc30_try_frame_size() 411 fsize++; in sr030pc30_try_frame_size()
|
D | noon010pc30.c | 367 const struct noon010_frmsize *fsize = &noon010_sizes[0], in noon010_try_frame_size() local 371 int err = abs(fsize->width - mf->width) in noon010_try_frame_size() 372 + abs(fsize->height - mf->height); in noon010_try_frame_size() 376 match = fsize; in noon010_try_frame_size() 378 fsize++; in noon010_try_frame_size()
|
/drivers/media/parport/ |
D | bw-qcam.c | 843 struct v4l2_frmsizeenum *fsize) in qcam_enum_framesizes() argument 851 if (fsize->index > 2) in qcam_enum_framesizes() 853 if (fsize->pixel_format != V4L2_PIX_FMT_Y4 && in qcam_enum_framesizes() 854 fsize->pixel_format != V4L2_PIX_FMT_Y6) in qcam_enum_framesizes() 856 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in qcam_enum_framesizes() 857 fsize->discrete = sizes[fsize->index]; in qcam_enum_framesizes()
|
/drivers/media/usb/cpia2/ |
D | cpia2_v4l.c | 587 struct v4l2_frmsizeenum *fsize) in cpia2_enum_framesizes() argument 590 if (fsize->pixel_format != V4L2_PIX_FMT_MJPEG && in cpia2_enum_framesizes() 591 fsize->pixel_format != V4L2_PIX_FMT_JPEG) in cpia2_enum_framesizes() 593 if (fsize->index >= ARRAY_SIZE(cpia2_framesizes)) in cpia2_enum_framesizes() 595 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in cpia2_enum_framesizes() 596 fsize->discrete.width = cpia2_framesizes[fsize->index].width; in cpia2_enum_framesizes() 597 fsize->discrete.height = cpia2_framesizes[fsize->index].height; in cpia2_enum_framesizes()
|
/drivers/media/platform/vivid/ |
D | vivid-vid-cap.c | 1608 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument 1614 if (vivid_get_format(dev, fsize->pixel_format) == NULL) in vidioc_enum_framesizes() 1617 if (fsize->index >= ARRAY_SIZE(webcam_sizes)) in vidioc_enum_framesizes() 1619 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in vidioc_enum_framesizes() 1620 fsize->discrete = webcam_sizes[fsize->index]; in vidioc_enum_framesizes() 1623 if (fsize->index) in vidioc_enum_framesizes() 1625 fsize->type = V4L2_FRMSIZE_TYPE_STEPWISE; in vidioc_enum_framesizes() 1626 fsize->stepwise.min_width = MIN_WIDTH; in vidioc_enum_framesizes() 1627 fsize->stepwise.max_width = MAX_WIDTH * MAX_ZOOM; in vidioc_enum_framesizes() 1628 fsize->stepwise.step_width = 2; in vidioc_enum_framesizes() [all …]
|
/drivers/media/usb/pwc/ |
D | pwc-v4l.c | 926 struct v4l2_frmsizeenum *fsize) in pwc_enum_framesizes() argument 929 unsigned int i = 0, index = fsize->index; in pwc_enum_framesizes() 931 if (fsize->pixel_format == V4L2_PIX_FMT_YUV420 || in pwc_enum_framesizes() 932 (fsize->pixel_format == V4L2_PIX_FMT_PWC1 && in pwc_enum_framesizes() 934 (fsize->pixel_format == V4L2_PIX_FMT_PWC2 && in pwc_enum_framesizes() 940 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in pwc_enum_framesizes() 941 fsize->discrete.width = pwc_image_sizes[i][0]; in pwc_enum_framesizes() 942 fsize->discrete.height = pwc_image_sizes[i][1]; in pwc_enum_framesizes()
|
/drivers/media/usb/go7007/ |
D | go7007-v4l2.c | 538 struct v4l2_frmsizeenum *fsize) in vidioc_enum_framesizes() argument 543 if (fsize->index > 2) in vidioc_enum_framesizes() 546 if (!valid_pixelformat(fsize->pixel_format)) in vidioc_enum_framesizes() 550 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in vidioc_enum_framesizes() 551 fsize->discrete.width = (width >> fsize->index) & ~0xf; in vidioc_enum_framesizes() 552 fsize->discrete.height = (height >> fsize->index) & ~0xf; in vidioc_enum_framesizes()
|
/drivers/media/i2c/m5mols/ |
D | m5mols_core.c | 508 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()
|
/drivers/usb/gadget/udc/ |
D | fsl_qe_udc.c | 798 unsigned int fsize; in ep0_setup_handle() local 804 fsize = frame_get_length(pframe); in ep0_setup_handle() 805 if (unlikely(fsize != 8)) in ep0_setup_handle() 808 memcpy(cp, pframe->data, fsize); in ep0_setup_handle() 895 unsigned int fsize; in qe_ep_rxframe_handle() local 909 fsize = frame_get_length(pframe); in qe_ep_rxframe_handle() 917 memcpy(cp, pframe->data, fsize); in qe_ep_rxframe_handle() 918 req->req.actual += fsize; in qe_ep_rxframe_handle() 919 if ((fsize < ep->ep.maxpacket) || in qe_ep_rxframe_handle() 1479 u32 vaddr, fsize; in ep_req_rx() local [all …]
|
/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2-enc.c | 1007 struct v4l2_frmsizeenum *fsize) in solo_enum_framesizes() argument 1012 if (solo_valid_pixfmt(fsize->pixel_format, solo_dev->type)) in solo_enum_framesizes() 1015 switch (fsize->index) { in solo_enum_framesizes() 1017 fsize->discrete.width = solo_dev->video_hsize >> 1; in solo_enum_framesizes() 1018 fsize->discrete.height = solo_dev->video_vsize; in solo_enum_framesizes() 1021 fsize->discrete.width = solo_dev->video_hsize; in solo_enum_framesizes() 1022 fsize->discrete.height = solo_dev->video_vsize << 1; in solo_enum_framesizes() 1028 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in solo_enum_framesizes()
|
/drivers/media/usb/uvc/ |
D | uvc_v4l2.c | 845 struct v4l2_frmsizeenum *fsize = arg; in uvc_v4l2_do_ioctl() local 853 fsize->pixel_format) { in uvc_v4l2_do_ioctl() 861 if (fsize->index >= format->nframes) in uvc_v4l2_do_ioctl() 864 frame = &format->frame[fsize->index]; in uvc_v4l2_do_ioctl() 865 fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE; in uvc_v4l2_do_ioctl() 866 fsize->discrete.width = frame->wWidth; in uvc_v4l2_do_ioctl() 867 fsize->discrete.height = frame->wHeight; in uvc_v4l2_do_ioctl()
|