/drivers/gpu/drm/vkms/ |
D | vkms_plane.c | 27 struct vkms_frame_info *frame_info; in vkms_plane_duplicate_state() local 33 frame_info = kzalloc(sizeof(*frame_info), GFP_KERNEL); in vkms_plane_duplicate_state() 34 if (!frame_info) { in vkms_plane_duplicate_state() 40 vkms_state->frame_info = frame_info; in vkms_plane_duplicate_state() 53 if (crtc && vkms_state->frame_info->fb) { in vkms_plane_destroy_state() 57 if (drm_framebuffer_read_refcount(vkms_state->frame_info->fb)) in vkms_plane_destroy_state() 58 drm_framebuffer_put(vkms_state->frame_info->fb); in vkms_plane_destroy_state() 61 kfree(vkms_state->frame_info); in vkms_plane_destroy_state() 62 vkms_state->frame_info = NULL; in vkms_plane_destroy_state() 102 struct vkms_frame_info *frame_info; in vkms_plane_atomic_update() local [all …]
|
D | vkms_formats.c | 12 static size_t pixel_offset(const struct vkms_frame_info *frame_info, int x, int y) in pixel_offset() argument 14 return frame_info->offset + (y * frame_info->pitch) in pixel_offset() 15 + (x * frame_info->cpp); in pixel_offset() 31 static void *packed_pixels_addr(const struct vkms_frame_info *frame_info, in packed_pixels_addr() argument 34 size_t offset = pixel_offset(frame_info, x, y); in packed_pixels_addr() 36 return (u8 *)frame_info->map[0].vaddr + offset; in packed_pixels_addr() 39 static void *get_packed_src_addr(const struct vkms_frame_info *frame_info, int y) in get_packed_src_addr() argument 41 int x_src = frame_info->src.x1 >> 16; in get_packed_src_addr() 42 int y_src = y - frame_info->rotated.y1 + (frame_info->src.y1 >> 16); in get_packed_src_addr() 44 return packed_pixels_addr(frame_info, x_src, y_src); in get_packed_src_addr() [all …]
|
D | vkms_composer.c | 40 static void pre_mul_alpha_blend(struct vkms_frame_info *frame_info, in pre_mul_alpha_blend() argument 44 int x_dst = frame_info->dst.x1; in pre_mul_alpha_blend() 47 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in pre_mul_alpha_blend() 58 static int get_y_pos(struct vkms_frame_info *frame_info, int y) in get_y_pos() argument 60 if (frame_info->rotation & DRM_MODE_REFLECT_Y) in get_y_pos() 61 return drm_rect_height(&frame_info->rotated) - y - 1; in get_y_pos() 63 switch (frame_info->rotation & DRM_MODE_ROTATE_MASK) { in get_y_pos() 65 return frame_info->rotated.x2 - y - 1; in get_y_pos() 67 return y + frame_info->rotated.x1; in get_y_pos() 73 static bool check_limit(struct vkms_frame_info *frame_info, int pos) in check_limit() argument [all …]
|
D | vkms_drv.h | 61 struct vkms_frame_info *frame_info; member
|
/drivers/staging/media/atomisp/pci/runtime/frame/src/ |
D | frame.c | 168 switch (frame->frame_info.format) { in ia_css_frame_init_planes() 175 frame->frame_info.res.height, in ia_css_frame_init_planes() 176 frame->frame_info.padded_width, in ia_css_frame_init_planes() 177 frame->frame_info.raw_bit_depth); in ia_css_frame_init_planes() 181 frame->frame_info.res.height, in ia_css_frame_init_planes() 182 frame->frame_info.padded_width, in ia_css_frame_init_planes() 183 frame->frame_info.raw_bit_depth <= 8 ? 1 : 2); in ia_css_frame_init_planes() 187 frame->frame_info.res.height, in ia_css_frame_init_planes() 188 frame->frame_info.padded_width, 2); in ia_css_frame_init_planes() 192 frame->frame_info.res.height, in ia_css_frame_init_planes() [all …]
|
/drivers/media/platform/mediatek/vcodec/encoder/ |
D | venc_vpu_if.c | 255 struct venc_frame_info *frame_info) in vpu_enc_encode_32bits() argument 285 if (is_ext && frame_info) { in vpu_enc_encode_32bits() 287 out.data[0] = frame_info->frm_count; in vpu_enc_encode_32bits() 288 out.data[1] = frame_info->skip_frm_count; in vpu_enc_encode_32bits() 289 out.data[2] = frame_info->frm_type; in vpu_enc_encode_32bits() 303 struct venc_frame_info *frame_info) in vpu_enc_encode_34bits() argument 331 if (frame_info) { in vpu_enc_encode_34bits() 333 out.data[0] = frame_info->frm_count; in vpu_enc_encode_34bits() 334 out.data[1] = frame_info->skip_frm_count; in vpu_enc_encode_34bits() 335 out.data[2] = frame_info->frm_type; in vpu_enc_encode_34bits() [all …]
|
D | venc_vpu_if.h | 47 struct venc_frame_info *frame_info);
|
/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ |
D | ia_css_bayer_io.host.c | 81 ret = ia_css_dma_configure_from_info(&config, &out_frames[0]->frame_info); in ia_css_bayer_io_config() 85 to->width = out_frames[0]->frame_info.res.width; in ia_css_bayer_io_config() 86 to->height = out_frames[0]->frame_info.res.height; in ia_css_bayer_io_config()
|
/drivers/staging/media/atomisp/pci/ |
D | ia_css_frame_public.h | 161 struct ia_css_frame_info frame_info; /** info struct describing the frame */ member 202 .frame_info = IA_CSS_BINARY_DEFAULT_FRAME_INFO, \ 267 return frame ? &frame->frame_info : NULL; in ia_css_frame_get_info()
|
D | sh_css_sp.c | 281 pipe->copy.raw.height = out_frame->frame_info.res.height; in sh_css_sp_start_raw_copy() 282 pipe->copy.raw.width = out_frame->frame_info.res.width; in sh_css_sp_start_raw_copy() 283 pipe->copy.raw.padded_width = out_frame->frame_info.padded_width; in sh_css_sp_start_raw_copy() 284 pipe->copy.raw.raw_bit_depth = out_frame->frame_info.raw_bit_depth; in sh_css_sp_start_raw_copy() 355 pipe->copy.raw.height = out_frame->frame_info.res.height; in sh_css_sp_start_isys_copy() 356 pipe->copy.raw.width = out_frame->frame_info.res.width; in sh_css_sp_start_isys_copy() 357 pipe->copy.raw.padded_width = out_frame->frame_info.padded_width; in sh_css_sp_start_isys_copy() 358 pipe->copy.raw.raw_bit_depth = out_frame->frame_info.raw_bit_depth; in sh_css_sp_start_isys_copy() 455 ia_css_frame_info_to_frame_sp_info(&sp_frame_out->info, &frame_in->frame_info); in sh_css_copy_frame_to_spframe() 457 switch (frame_in->frame_info.format) { in sh_css_copy_frame_to_spframe() [all …]
|
D | atomisp_fops.c | 58 ret = atomisp_get_css_frame_info(pipe->asd, &pipe->frame_info); in atomisp_queue_setup() 70 ret = atomisp_get_css_frame_info(pipe->asd, &pipe->frame_info); in atomisp_queue_setup() 91 ret = ia_css_frame_init_from_info(frame, &pipe->frame_info); in atomisp_buf_init()
|
D | atomisp_subdev.h | 68 struct ia_css_frame_info frame_info; member
|
D | sh_css.c | 2949 sh_css_pipe_get_viewfinder_frame_info(pipe, &vf_frame->frame_info, idx); in init_vf_frameinfo_defaults() 3118 in_frame->frame_info.format = format; in init_in_frameinfo_memory_defaults() 3121 in_frame->frame_info.format = (pipe->stream->config.pack_raw_pixels) ? in init_in_frameinfo_memory_defaults() 3125 in_frame->frame_info.res.width = pipe->stream->config.input_config.input_res.width; in init_in_frameinfo_memory_defaults() 3126 in_frame->frame_info.res.height = pipe->stream->config.input_config.input_res.height; in init_in_frameinfo_memory_defaults() 3127 in_frame->frame_info.raw_bit_depth = ia_css_pipe_util_pipe_input_format_bpp(pipe); in init_in_frameinfo_memory_defaults() 3128 ia_css_frame_info_set_width(&in_frame->frame_info, in init_in_frameinfo_memory_defaults() 3136 ia_css_get_crop_offsets(pipe, &in_frame->frame_info); in init_in_frameinfo_memory_defaults() 3141 __func__, in_frame->frame_info.raw_bayer_order); in init_in_frameinfo_memory_defaults() 3156 sh_css_pipe_get_output_frame_info(pipe, &out_frame->frame_info, idx); in init_out_frameinfo_defaults() [all …]
|
/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/ |
D | ia_css_yuv444_io.host.c | 82 ret = ia_css_dma_configure_from_info(&config, &out_frames[0]->frame_info); in ia_css_yuv444_io_config() 87 to->width = out_frames[0]->frame_info.res.width; in ia_css_yuv444_io_config() 88 to->height = out_frames[0]->frame_info.res.height; in ia_css_yuv444_io_config()
|
/drivers/media/platform/mediatek/vcodec/encoder/venc/ |
D | venc_h264_if.c | 515 struct venc_frame_info frame_info; in h264_encode_frame() local 527 frame_info.frm_count = inst->frm_cnt; in h264_encode_frame() 528 frame_info.skip_frm_count = inst->skip_frm_cnt; in h264_encode_frame() 529 frame_info.frm_type = h264_frame_type(inst->frm_cnt, gop_size, in h264_encode_frame() 532 frame_info.frm_count, frame_info.skip_frm_count, in h264_encode_frame() 533 frame_info.frm_type); in h264_encode_frame() 536 frm_buf, bs_buf, &frame_info); in h264_encode_frame()
|
/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
D | vdec_av1_req_lat_if.c | 610 struct vdec_av1_slice_frame_info frame_info[AV1_MAX_FRAME_BUF_COUNT]; member 837 if (slots->frame_info[i].ref_count == 0) { in vdec_av1_slice_get_new_slot() 844 slots->frame_info[new_slot_idx].ref_count++; in vdec_av1_slice_get_new_slot() 851 static inline void vdec_av1_slice_clear_fb(struct vdec_av1_slice_frame_info *frame_info) in vdec_av1_slice_clear_fb() argument 853 memset((void *)frame_info, 0, sizeof(struct vdec_av1_slice_frame_info)); in vdec_av1_slice_clear_fb() 858 struct vdec_av1_slice_frame_info *frame_info = slots->frame_info; in vdec_av1_slice_decrease_ref_count() local 860 frame_info[fb_idx].ref_count--; in vdec_av1_slice_decrease_ref_count() 861 if (frame_info[fb_idx].ref_count < 0) { in vdec_av1_slice_decrease_ref_count() 862 frame_info[fb_idx].ref_count = 0; in vdec_av1_slice_decrease_ref_count() 867 vdec_av1_slice_clear_fb(&frame_info[fb_idx]); in vdec_av1_slice_decrease_ref_count() [all …]
|
/drivers/staging/media/atomisp/pci/isp/kernels/tnr/tnr_1.0/ |
D | ia_css_tnr.host.c | 82 ret = ia_css_dma_configure_from_info(&to->port_b, &from->tnr_frames[0]->frame_info); in ia_css_tnr_config() 86 to->frame_height = from->tnr_frames[0]->frame_info.res.height; in ia_css_tnr_config()
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_hal.c | 112 mgmt_desc->frame_info = cpu_to_le16(RSI_INSERT_SEQ_IN_FW); in rsi_prepare_mgmt_desc() 113 mgmt_desc->frame_info |= cpu_to_le16(RATE_INFO_ENABLE); in rsi_prepare_mgmt_desc() 115 mgmt_desc->frame_info |= cpu_to_le16(RSI_BROADCAST_PKT); in rsi_prepare_mgmt_desc() 225 data_desc->frame_info = cpu_to_le16(RATE_INFO_ENABLE); in rsi_prepare_data_desc() 241 data_desc->frame_info = cpu_to_le16(RATE_INFO_ENABLE); in rsi_prepare_data_desc() 272 data_desc->frame_info = cpu_to_le16(RATE_INFO_ENABLE); in rsi_prepare_data_desc() 273 data_desc->frame_info |= cpu_to_le16(RSI_BROADCAST_PKT); in rsi_prepare_data_desc() 287 data_desc->frame_info |= cpu_to_le16(MORE_DATA_PRESENT); in rsi_prepare_data_desc() 458 bcn_frm->frame_info = cpu_to_le16(RSI_DATA_DESC_MAC_BBP_INFO | in rsi_prepare_beacon() 481 bcn_frm->frame_info |= cpu_to_le16(RSI_DATA_DESC_DTIM_BEACON); in rsi_prepare_beacon()
|
D | rsi_hal.h | 192 __le16 frame_info; member 206 __le16 frame_info; member
|
/drivers/staging/media/atomisp/pci/runtime/debug/src/ |
D | ia_css_debug.c | 1303 frame->frame_info.res.width, frame->frame_info.res.height); in ia_css_debug_frame_print() 1305 frame->frame_info.padded_width); in ia_css_debug_frame_print() 1306 ia_css_debug_dtrace(2, " format = %d\n", frame->frame_info.format); in ia_css_debug_frame_print() 1307 switch (frame->frame_info.format) { in ia_css_debug_frame_print() 2567 debug_frame_format2str(frame->frame_info.format), in ia_css_debug_pipe_graph_dump_frame() 2568 frame->frame_info.res.width, in ia_css_debug_pipe_graph_dump_frame() 2569 frame->frame_info.padded_width, in ia_css_debug_pipe_graph_dump_frame() 2570 frame->frame_info.res.height, in ia_css_debug_pipe_graph_dump_frame() 2571 frame->frame_info.raw_bit_depth, in ia_css_debug_pipe_graph_dump_frame() 2868 debug_frame_format2str(out_frame->frame_info.format), in ia_css_debug_pipe_graph_dump_sp_raw_copy() [all …]
|
/drivers/staging/media/atomisp/pci/isp/kernels/ref/ref_1.0/ |
D | ia_css_ref.host.c | 33 ret = ia_css_dma_configure_from_info(&to->port_b, &from->ref_frames[0]->frame_info); in ia_css_ref_config()
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_packet.c | 35 void sparx5_ifh_parse(u32 *ifh, struct frame_info *info) in sparx5_ifh_parse() 60 struct frame_info fi; in sparx5_xtr_grp()
|
D | sparx5_main.h | 307 struct frame_info { struct 313 void sparx5_ifh_parse(u32 *ifh, struct frame_info *info); argument
|
/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_h265.c | 130 struct cedrus_h265_sram_frame_info frame_info = { in cedrus_h265_frame_info_write_single() local 145 cedrus_h265_sram_write_data(dev, &frame_info, sizeof(frame_info)); in cedrus_h265_frame_info_write_single()
|
D | cedrus_h264.c | 31 __le32 frame_info; member 78 pic->frame_info = cpu_to_le32(buf->codec.h264.pic_type << 8); in cedrus_fill_ref_pic()
|