Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/media/platform/st/stm32/dma2d/
Ddma2d-hw.c61 void dma2d_config_out(struct dma2d_dev *d, struct dma2d_frame *frm, in dma2d_config_out() argument
70 if (frm->fmt->cmode >= CM_MODE_ARGB8888 && in dma2d_config_out()
71 frm->fmt->cmode <= CM_MODE_ARGB4444) in dma2d_config_out()
73 frm->fmt->cmode); in dma2d_config_out()
78 (frm->a_rgb[3] << 24) | in dma2d_config_out()
79 (frm->a_rgb[2] << 16) | in dma2d_config_out()
80 (frm->a_rgb[1] << 8) | in dma2d_config_out()
81 frm->a_rgb[0]); in dma2d_config_out()
84 frm->line_offset & 0x3fff); in dma2d_config_out()
87 void dma2d_config_fg(struct dma2d_dev *d, struct dma2d_frame *frm, in dma2d_config_fg() argument
[all …]
Ddma2d.c228 struct dma2d_frame *frm; in dma2d_s_ctrl() local
242 frm = get_frame(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in dma2d_s_ctrl()
243 frm->a_rgb[2] = (ctrl->val >> 16) & 0xff; in dma2d_s_ctrl()
244 frm->a_rgb[1] = (ctrl->val >> 8) & 0xff; in dma2d_s_ctrl()
245 frm->a_rgb[0] = (ctrl->val >> 0) & 0xff; in dma2d_s_ctrl()
359 struct dma2d_frame *frm; in vidioc_g_fmt() local
365 frm = get_frame(ctx, f->type); in vidioc_g_fmt()
366 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
367 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
369 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
[all …]
Ddma2d.h126 void dma2d_config_out(struct dma2d_dev *d, struct dma2d_frame *frm,
128 void dma2d_config_fg(struct dma2d_dev *d, struct dma2d_frame *frm,
130 void dma2d_config_bg(struct dma2d_dev *d, struct dma2d_frame *frm,
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/media/platform/samsung/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 …]
/linux-6.1.9/drivers/media/platform/rockchip/rga/
Drga.c466 struct rga_frame *frm; in vidioc_g_fmt() local
471 frm = rga_get_frame(ctx, f->type); in vidioc_g_fmt()
472 if (IS_ERR(frm)) in vidioc_g_fmt()
473 return PTR_ERR(frm); in vidioc_g_fmt()
475 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
476 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
478 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
479 f->fmt.pix.bytesperline = frm->stride; in vidioc_g_fmt()
480 f->fmt.pix.sizeimage = frm->size; in vidioc_g_fmt()
481 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()
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/media/platform/samsung/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
344 f_chk_addr = frm->addr.y; in gsc_set_prefbuf()
345 f_chk_len = frm->payload[0]; in gsc_set_prefbuf()
[all …]
/linux-6.1.9/drivers/media/platform/amlogic/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 …]
/linux-6.1.9/drivers/gpu/drm/exynos/
Dexynos5433_drm_decon.c137 u32 frm, pfrm, status, cnt = 2; in decon_get_frame_count() local
143 frm = readl(ctx->addr + DECON_CRFMID); in decon_get_frame_count()
146 pfrm = frm; in decon_get_frame_count()
147 frm = readl(ctx->addr + DECON_CRFMID); in decon_get_frame_count()
148 } while (frm != pfrm && --cnt); in decon_get_frame_count()
153 if (!frm) in decon_get_frame_count()
159 --frm; in decon_get_frame_count()
162 --frm; in decon_get_frame_count()
167 --frm; in decon_get_frame_count()
173 return frm; in decon_get_frame_count()
[all …]
/linux-6.1.9/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,
/linux-6.1.9/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++) \
/linux-6.1.9/drivers/staging/media/deprecated/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 …]
/linux-6.1.9/drivers/usb/gadget/function/
Duvc_configfs.c1111 struct uvcg_frame *frm = to_uvcg_frame(item); in uvcg_frame_dw_frame_interval_show() local
1114 struct mutex *su_mutex = &frm->item.ci_group->cg_subsys->su_mutex; in uvcg_frame_dw_frame_interval_show()
1120 opts_item = frm->item.ci_parent->ci_parent->ci_parent->ci_parent; in uvcg_frame_dw_frame_interval_show()
1124 for (result = 0, i = 0; i < frm->frame.b_frame_interval_type; ++i) { in uvcg_frame_dw_frame_interval_show()
1125 result += sprintf(pg, "%u\n", frm->dw_frame_interval[i]); in uvcg_frame_dw_frame_interval_show()
1304 frame_ptr->frm = h; in uvcg_frame_make()
1330 if (frame_ptr->frm == target_frm) { in uvcg_frame_drop()
1347 struct uvcg_frame *frm; in uvcg_format_set_indices() local
1352 frm = to_uvcg_frame(ci); in uvcg_format_set_indices()
1353 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
/linux-6.1.9/sound/soc/uniphier/
Daio-compress.c287 u32 frm, frm_a, frm_b; in aio_compr_send_to_hw() local
290 ret = get_user(frm, srcbuf + src); in aio_compr_send_to_hw()
295 frm_a = frm & 0xffff; in aio_compr_send_to_hw()
296 frm_b = (frm >> 16) & 0xffff; in aio_compr_send_to_hw()
298 if (frm == IEC61937_HEADER_SIGN) { in aio_compr_send_to_hw()
/linux-6.1.9/drivers/message/fusion/lsi/
Dmpi_lan.h194 #define SET_LAN_FORM(x, frm) \ argument
196 (((frm) << LAN_REPLY_FORM_SHIFT) & \
/linux-6.1.9/net/bpf/
Dtest_run.c100 struct xdp_frame frm; member
126 struct xdp_frame *frm; in xdp_test_run_init_page() local
135 frm = &head->frm; in xdp_test_run_init_page()
143 xdp_update_frame_from_buff(new_ctx, frm); in xdp_test_run_init_page()
144 frm->mem = new_ctx->rxq->mem; in xdp_test_run_init_page()
226 xdp_update_frame_from_buff(&head->ctx, &head->frm); in reset_ctx()
268 struct xdp_frame *frm; in xdp_test_run_batch() local
288 frm = &head->frm; in xdp_test_run_batch()
295 ret = xdp_update_frame_from_buff(ctx, frm); in xdp_test_run_batch()
314 ret = xdp_do_redirect_frame(xdp->dev, ctx, frm, prog); in xdp_test_run_batch()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_fdma.c579 u32 ident, llp, frm, err, err_code; in ocelot_fdma_interrupt() local
583 frm = ocelot_fdma_readl(ocelot, MSCC_FDMA_INTR_FRM); in ocelot_fdma_interrupt()
587 ocelot_fdma_writel(ocelot, MSCC_FDMA_INTR_FRM, frm & ident); in ocelot_fdma_interrupt()
588 if (frm || llp) { in ocelot_fdma_interrupt()
/linux-6.1.9/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()
/linux-6.1.9/include/linux/
Dsvga.h122 int svga_match_format(const struct svga_fb_format *frm, struct fb_var_screeninfo *var, struct fb_fi…

12