Home
last modified time | relevance | path

Searched refs:frm (Results 1 – 23 of 23) sorted by relevance

/drivers/usb/gadget/udc/
Dfsl_qe_udc.h226 #define frame_get_length(frm) (frm->len) argument
227 #define frame_set_length(frm, leng) (frm->len = leng) argument
228 #define frame_get_data(frm) (frm->data) argument
229 #define frame_set_data(frm, dat) (frm->data = dat) argument
230 #define frame_get_info(frm) (frm->info) argument
231 #define frame_set_info(frm, inf) (frm->info = inf) argument
232 #define frame_get_status(frm) (frm->status) argument
233 #define frame_set_status(frm, stat) (frm->status = stat) argument
234 #define frame_get_privdata(frm) (frm->privdata) argument
235 #define frame_set_privdata(frm, dat) (frm->privdata = dat) argument
[all …]
/drivers/media/platform/s5p-g2d/
Dg2d.c312 struct g2d_frame *frm; in vidioc_g_fmt() local
317 frm = get_frame(ctx, f->type); in vidioc_g_fmt()
318 if (IS_ERR(frm)) in vidioc_g_fmt()
319 return PTR_ERR(frm); in vidioc_g_fmt()
321 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
322 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
324 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
325 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; in vidioc_g_fmt()
326 f->fmt.pix.sizeimage = frm->size; in vidioc_g_fmt()
365 struct g2d_frame *frm; in vidioc_s_fmt() local
[all …]
/drivers/media/platform/rockchip/rga/
Drga.c457 struct rga_frame *frm; in vidioc_g_fmt() local
462 frm = rga_get_frame(ctx, f->type); in vidioc_g_fmt()
463 if (IS_ERR(frm)) in vidioc_g_fmt()
464 return PTR_ERR(frm); in vidioc_g_fmt()
466 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
467 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
469 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
470 f->fmt.pix.bytesperline = frm->stride; in vidioc_g_fmt()
471 f->fmt.pix.sizeimage = frm->size; in vidioc_g_fmt()
472 f->fmt.pix.colorspace = frm->colorspace; in vidioc_g_fmt()
[all …]
Drga-hw.c46 rga_get_addr_offset(struct rga_frame *frm, unsigned int x, unsigned int y, in rga_get_addr_offset() argument
59 x_div = frm->fmt->x_div; in rga_get_addr_offset()
60 y_div = frm->fmt->y_div; in rga_get_addr_offset()
61 uv_factor = frm->fmt->uv_factor; in rga_get_addr_offset()
62 uv_stride = frm->stride / x_div; in rga_get_addr_offset()
63 pixel_width = frm->stride / frm->width; in rga_get_addr_offset()
65 lt->y_off = y * frm->stride + x * pixel_width; in rga_get_addr_offset()
67 frm->width * frm->height + (y / y_div) * uv_stride + x / x_div; in rga_get_addr_offset()
68 lt->v_off = lt->u_off + frm->width * frm->height / uv_factor; in rga_get_addr_offset()
70 lb->y_off = lt->y_off + (h - 1) * frm->stride; in rga_get_addr_offset()
/drivers/video/fbdev/core/
Dsvgalib.c601 static inline int match_format(const struct svga_fb_format *frm, in match_format() argument
607 while (frm->bits_per_pixel != SVGA_FORMAT_END_VAL) in match_format()
609 if ((var->bits_per_pixel == frm->bits_per_pixel) && in match_format()
610 (var->red.length <= frm->red.length) && in match_format()
611 (var->green.length <= frm->green.length) && in match_format()
612 (var->blue.length <= frm->blue.length) && in match_format()
613 (var->transp.length <= frm->transp.length) && in match_format()
614 (var->nonstd == frm->nonstd)) in match_format()
616 if (var->bits_per_pixel == frm->bits_per_pixel) in match_format()
619 frm++; in match_format()
[all …]
/drivers/media/platform/exynos-gsc/
Dgsc-core.c322 static int get_plane_info(struct gsc_frame *frm, u32 addr, u32 *index, u32 *ret_addr) in get_plane_info() argument
324 if (frm->addr.y == addr) { in get_plane_info()
326 *ret_addr = frm->addr.y; in get_plane_info()
327 } else if (frm->addr.cb == addr) { in get_plane_info()
329 *ret_addr = frm->addr.cb; in get_plane_info()
330 } else if (frm->addr.cr == addr) { in get_plane_info()
332 *ret_addr = frm->addr.cr; in get_plane_info()
340 void gsc_set_prefbuf(struct gsc_dev *gsc, struct gsc_frame *frm) in gsc_set_prefbuf() argument
345 f_chk_addr = frm->addr.y; in gsc_set_prefbuf()
346 f_chk_len = frm->payload[0]; in gsc_set_prefbuf()
[all …]
Dgsc-core.h385 void gsc_set_prefbuf(struct gsc_dev *gsc, struct gsc_frame *frm);
/drivers/media/platform/meson/ge2d/
Dge2d.c598 struct ge2d_frame *frm; in vidioc_s_fmt_cap() local
614 frm = get_frame(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in vidioc_s_fmt_cap()
616 frm->pix_fmt = f->fmt.pix; in vidioc_s_fmt_cap()
617 frm->fmt = find_fmt(f); in vidioc_s_fmt_cap()
618 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_s_fmt_cap()
621 frm->crop.left = 0; in vidioc_s_fmt_cap()
622 frm->crop.top = 0; in vidioc_s_fmt_cap()
623 frm->crop.width = frm->pix_fmt.width; in vidioc_s_fmt_cap()
624 frm->crop.height = frm->pix_fmt.height; in vidioc_s_fmt_cap()
633 struct ge2d_frame *frm; in vidioc_g_fmt() local
[all …]
/drivers/gpu/drm/exynos/
Dexynos5433_drm_decon.c135 u32 frm, pfrm, status, cnt = 2; in decon_get_frame_count() local
141 frm = readl(ctx->addr + DECON_CRFMID); in decon_get_frame_count()
144 pfrm = frm; in decon_get_frame_count()
145 frm = readl(ctx->addr + DECON_CRFMID); in decon_get_frame_count()
146 } while (frm != pfrm && --cnt); in decon_get_frame_count()
151 if (!frm) in decon_get_frame_count()
157 --frm; in decon_get_frame_count()
160 --frm; in decon_get_frame_count()
165 --frm; in decon_get_frame_count()
171 return frm; in decon_get_frame_count()
[all …]
Dexynos_hdmi.c814 union hdmi_infoframe frm; in hdmi_reg_infoframes() local
827 ret = drm_hdmi_avi_infoframe_from_display_mode(&frm.avi, in hdmi_reg_infoframes()
830 ret = hdmi_avi_infoframe_pack(&frm.avi, buf, sizeof(buf)); in hdmi_reg_infoframes()
838 ret = drm_hdmi_vendor_infoframe_from_display_mode(&frm.vendor.hdmi, in hdmi_reg_infoframes()
841 ret = hdmi_vendor_infoframe_pack(&frm.vendor.hdmi, buf, in hdmi_reg_infoframes()
/drivers/media/test-drivers/vicodec/
Dcodec-fwht.c777 u32 fwht_encode_frame(struct fwht_raw_frame *frm, in fwht_encode_frame() argument
790 encoding = encode_plane(frm->luma, ref_frm->luma, &rlco, rlco_max, cf, in fwht_encode_frame()
792 frm->luma_alpha_step, is_intra, next_is_intra); in fwht_encode_frame()
797 if (frm->components_num >= 3) { in fwht_encode_frame()
798 u32 chroma_h = height / frm->height_div; in fwht_encode_frame()
799 u32 chroma_w = width / frm->width_div; in fwht_encode_frame()
803 encoding |= encode_plane(frm->cb, ref_frm->cb, &rlco, rlco_max, in fwht_encode_frame()
805 chroma_stride, frm->chroma_step, in fwht_encode_frame()
811 encoding |= encode_plane(frm->cr, ref_frm->cr, &rlco, rlco_max, in fwht_encode_frame()
813 chroma_stride, frm->chroma_step, in fwht_encode_frame()
[all …]
Dcodec-fwht.h106 u32 fwht_encode_frame(struct fwht_raw_frame *frm,
/drivers/usb/gadget/function/
Duvc_configfs.c1168 struct uvcg_frame *frm = to_uvcg_frame(item); in uvcg_frame_dw_frame_interval_show() local
1171 struct mutex *su_mutex = &frm->item.ci_group->cg_subsys->su_mutex; in uvcg_frame_dw_frame_interval_show()
1177 opts_item = frm->item.ci_parent->ci_parent->ci_parent->ci_parent; in uvcg_frame_dw_frame_interval_show()
1181 for (result = 0, i = 0; i < frm->frame.b_frame_interval_type; ++i) { in uvcg_frame_dw_frame_interval_show()
1182 result += sprintf(pg, "%u\n", frm->dw_frame_interval[i]); in uvcg_frame_dw_frame_interval_show()
1361 frame_ptr->frm = h; in uvcg_frame_make()
1387 if (frame_ptr->frm == target_frm) { in uvcg_frame_drop()
1404 struct uvcg_frame *frm; in uvcg_format_set_indices() local
1409 frm = to_uvcg_frame(ci); in uvcg_format_set_indices()
1410 frm->frame.b_frame_index = i++; in uvcg_format_set_indices()
[all …]
Duvc_v4l2.c105 if (index == frame->frm->frame.b_frame_index) { in find_frame_by_index()
106 uframe = frame->frm; in find_frame_by_index()
156 w = frame->frm->frame.w_width; in find_closest_frame_by_size()
157 h = frame->frm->frame.w_height; in find_closest_frame_by_size()
163 uframe = frame->frm; in find_closest_frame_by_size()
311 if (frame->frm->frame.w_width == fival->width && in uvc_v4l2_enum_frameintervals()
312 frame->frm->frame.w_height == fival->height) { in uvc_v4l2_enum_frameintervals()
313 uframe = frame->frm; in uvc_v4l2_enum_frameintervals()
Duvc_configfs.h78 struct uvcg_frame *frm; member
/drivers/media/usb/zr364xx/
Dzr364xx.c557 struct zr364xx_framei *frm = &cam->buffer.frame[idx]; in zr364xx_read_video_callback() local
573 frm->ulState = ZR364XX_READ_IDLE; in zr364xx_read_video_callback()
578 ptr = pdest = frm->lpvbits; in zr364xx_read_video_callback()
580 if (frm->ulState == ZR364XX_READ_IDLE) { in zr364xx_read_video_callback()
589 frm->ulState = ZR364XX_READ_FRAME; in zr364xx_read_video_callback()
590 frm->cur_size = 0; in zr364xx_read_video_callback()
614 frm->cur_size = ptr - pdest; in zr364xx_read_video_callback()
616 if (frm->cur_size + purb->actual_length > MAX_FRAME_SIZE) { in zr364xx_read_video_callback()
621 pdest += frm->cur_size; in zr364xx_read_video_callback()
623 frm->cur_size += purb->actual_length; in zr364xx_read_video_callback()
[all …]
/drivers/video/fbdev/kyro/
DSTG4000Reg.h33 #define CLEAR_BITS_FRM_TO(frm, to) \ argument
36 for(i = frm; i<= to; i++) \
43 #define CLEAR_BITS_FRM_TO_2(frm, to) \ argument
46 for(i = frm; i<= to; i++) \
/drivers/media/usb/s2255/
Ds2255drv.c1699 struct s2255_framei *frm; in save_frame() local
1705 frm = &vc->buffer.frame[idx]; in save_frame()
1706 if (frm->ulState == S2255_READ_IDLE) { in save_frame()
1791 frm = &vc->buffer.frame[idx]; in save_frame()
1795 frm->ulState = S2255_READ_IDLE; in save_frame()
1799 if (frm->ulState == S2255_READ_IDLE) { in save_frame()
1800 frm->ulState = S2255_READ_FRAME; in save_frame()
1801 frm->cur_size = 0; in save_frame()
1808 if (frm->lpvbits == NULL) { in save_frame()
1810 frm, dev, dev->cc, idx); in save_frame()
[all …]
/drivers/message/fusion/lsi/
Dmpi_lan.h194 #define SET_LAN_FORM(x, frm) \ argument
196 (((frm) << LAN_REPLY_FORM_SHIFT) & \
/drivers/net/caif/
Dcaif_virtio.c218 u8 *frm, u32 frm_len) in cfv_alloc_and_copy_skb() argument
235 pad_len = (unsigned long)(frm + cfv->rx_hr) & (IP_HDR_ALIGN - 1); in cfv_alloc_and_copy_skb()
245 skb_put_data(skb, frm + cfv->rx_hr, cfpkt_len); in cfv_alloc_and_copy_skb()
/drivers/gpu/drm/bridge/
Dsil-sii8620.c1100 union hdmi_infoframe frm; in sii8620_set_infoframes() local
1104 ret = drm_hdmi_avi_infoframe_from_display_mode(&frm.avi, in sii8620_set_infoframes()
1107 frm.avi.colorspace = HDMI_COLORSPACE_YUV422; in sii8620_set_infoframes()
1110 ret = hdmi_avi_infoframe_pack(&frm.avi, buf, ARRAY_SIZE(buf)); in sii8620_set_infoframes()
/drivers/staging/media/atomisp/pci/
Dsh_css.c3564 int frm; in create_host_video_pipeline() local
3566 for (frm = 0; frm < NUM_TNR_FRAMES; frm++) { in create_host_video_pipeline()
3567 video_stage->args.tnr_frames[frm] = in create_host_video_pipeline()
3568 pipe->pipe_settings.video.tnr_frames[frm]; in create_host_video_pipeline()
3570 for (frm = 0; frm < MAX_NUM_VIDEO_DELAY_FRAMES; frm++) { in create_host_video_pipeline()
3571 video_stage->args.delay_frames[frm] = in create_host_video_pipeline()
3572 pipe->pipe_settings.video.delay_frames[frm]; in create_host_video_pipeline()
/drivers/net/wireless/ath/ath11k/
Dwmi.h3902 u8 *frm; member