/openbmc/linux/drivers/media/platform/allegro-dvt/ |
H A D | nal-h264.c | 11 * generator to generate the RBSP for SPS/PPS nal units and add them to the 198 static void nal_h264_rbsp_sps(struct rbsp *rbsp, struct nal_h264_sps *sps) in nal_h264_rbsp_sps() argument 202 if (!sps) { in nal_h264_rbsp_sps() 207 rbsp_bits(rbsp, 8, &sps->profile_idc); in nal_h264_rbsp_sps() 208 rbsp_bit(rbsp, &sps->constraint_set0_flag); in nal_h264_rbsp_sps() 209 rbsp_bit(rbsp, &sps->constraint_set1_flag); in nal_h264_rbsp_sps() 210 rbsp_bit(rbsp, &sps->constraint_set2_flag); in nal_h264_rbsp_sps() 211 rbsp_bit(rbsp, &sps->constraint_set3_flag); in nal_h264_rbsp_sps() 212 rbsp_bit(rbsp, &sps->constraint_set4_flag); in nal_h264_rbsp_sps() 213 rbsp_bit(rbsp, &sps->constraint_set5_flag); in nal_h264_rbsp_sps() [all …]
|
H A D | nal-hevc.c | 11 * RBSP for VPS/SPS/PPS nal units and add them to the encoded stream if the 340 static void nal_hevc_rbsp_sps(struct rbsp *rbsp, struct nal_hevc_sps *sps) in nal_hevc_rbsp_sps() argument 344 rbsp_bits(rbsp, 4, &sps->video_parameter_set_id); in nal_hevc_rbsp_sps() 345 rbsp_bits(rbsp, 3, &sps->max_sub_layers_minus1); in nal_hevc_rbsp_sps() 346 rbsp_bit(rbsp, &sps->temporal_id_nesting_flag); in nal_hevc_rbsp_sps() 347 nal_hevc_rbsp_profile_tier_level(rbsp, &sps->profile_tier_level); in nal_hevc_rbsp_sps() 348 rbsp_uev(rbsp, &sps->seq_parameter_set_id); in nal_hevc_rbsp_sps() 350 rbsp_uev(rbsp, &sps->chroma_format_idc); in nal_hevc_rbsp_sps() 351 if (sps->chroma_format_idc == 3) in nal_hevc_rbsp_sps() 352 rbsp_bit(rbsp, &sps->separate_colour_plane_flag); in nal_hevc_rbsp_sps() [all …]
|
H A D | allegro-core.c | 94 * because it needs to write SPS/PPS NAL units. The encoder writes the actual 1574 struct nal_h264_sps *sps; in allegro_h264_write_sps() local 1585 sps = kzalloc(sizeof(*sps), GFP_KERNEL); in allegro_h264_write_sps() 1586 if (!sps) in allegro_h264_write_sps() 1592 sps->profile_idc = nal_h264_profile(profile); in allegro_h264_write_sps() 1593 sps->constraint_set0_flag = 0; in allegro_h264_write_sps() 1594 sps->constraint_set1_flag = 1; in allegro_h264_write_sps() 1595 sps->constraint_set2_flag = 0; in allegro_h264_write_sps() 1596 sps->constraint_set3_flag = 0; in allegro_h264_write_sps() 1597 sps->constraint_set4_flag = 0; in allegro_h264_write_sps() [all …]
|
/openbmc/linux/drivers/media/platform/chips-media/ |
H A D | coda-h264.c | 36 /* Find SPS header */ in coda_sps_parse_profile() 239 * coda_h264_sps_fixup - fixes frame cropping values in h.264 SPS 243 * @buf: buffer containing h.264 SPS RBSP, starting with NAL header 247 * Rewrites the frame cropping values in an h.264 SPS RBSP correctly for the 259 struct rbsp sps; in coda_h264_sps_fixup() local 266 sps.buf = buf + 5; /* Skip NAL header */ in coda_h264_sps_fixup() 267 sps.size = *size - 5; in coda_h264_sps_fixup() 269 profile_idc = sps.buf[0]; in coda_h264_sps_fixup() 272 sps.pos = 24; in coda_h264_sps_fixup() 275 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup() [all …]
|
/openbmc/linux/drivers/pmdomain/actions/ |
H A D | owl-sps.c | 3 * Actions Semi Owl Smart Power System (SPS) 14 #include <linux/soc/actions/owl-sps.h> 44 struct owl_sps *sps; member 54 return owl_sps_set_pg(pd->sps->base, pwr_mask, ack_mask, enable); in owl_sps_set_power() 61 dev_dbg(pd->sps->dev, "%s power on", pd->info->name); in owl_sps_power_on() 70 dev_dbg(pd->sps->dev, "%s power off", pd->info->name); in owl_sps_power_off() 75 static int owl_sps_init_domain(struct owl_sps *sps, int index) in owl_sps_init_domain() argument 79 pd = devm_kzalloc(sps->dev, sizeof(*pd), GFP_KERNEL); in owl_sps_init_domain() 83 pd->info = &sps->info->domains[index]; in owl_sps_init_domain() 84 pd->sps = sps; in owl_sps_init_domain() [all …]
|
H A D | Makefile | 2 obj-$(CONFIG_OWL_PM_DOMAINS_HELPER) += owl-sps-helper.o 3 obj-$(CONFIG_OWL_PM_DOMAINS) += owl-sps.o
|
/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_g2_hevc_dec.c | 30 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in prepare_tile_info_buffer() local 44 max_log2_ctb_size = sps->log2_min_luma_coding_block_size_minus3 + 3 + in prepare_tile_info_buffer() 45 sps->log2_diff_max_min_luma_coding_block_size; in prepare_tile_info_buffer() 46 pic_width_in_ctbs = (sps->pic_width_in_luma_samples + in prepare_tile_info_buffer() 48 pic_height_in_ctbs = (sps->pic_height_in_luma_samples + (1 << max_log2_ctb_size) - 1) in prepare_tile_info_buffer() 124 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in compute_header_skip_length() local 132 if (sps->flags & V4L2_HEVC_SPS_FLAG_SEPARATE_COLOUR_PLANE) in compute_header_skip_length() 138 skip += sps->log2_max_pic_order_cnt_lsb_minus4 + 4; in compute_header_skip_length() 146 else if (sps->num_short_term_ref_pic_sets > 1) in compute_header_skip_length() 147 skip += fls(sps->num_short_term_ref_pic_sets - 1); in compute_header_skip_length() [all …]
|
H A D | hantro_g1_h264_dec.c | 26 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params() local 33 if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in set_params() 35 if (sps->profile_idc > 66) { in set_params() 41 if (!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) && in set_params() 42 (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD || in set_params() 54 G1_REG_DEC_CTRL1_REF_FRAMES(sps->max_num_ref_frames); in set_params() 63 if (!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY)) in set_params() 74 reg = G1_REG_DEC_CTRL4_FRAMENUM_LEN(sps->log2_max_frame_num_minus4 + 4) | in set_params() 79 if (sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE) in set_params() 81 if (sps->profile_idc >= 100 && sps->chroma_format_idc == 0) in set_params() [all …]
|
H A D | hantro_hevc.c | 76 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in tile_buffer_reallocate() local 78 unsigned int height64 = (sps->pic_height_in_luma_samples + 63) & ~63; in tile_buffer_reallocate() 152 static int hantro_hevc_validate_sps(struct hantro_ctx *ctx, const struct v4l2_ctrl_hevc_sps *sps) in hantro_hevc_validate_sps() argument 160 ALIGN(sps->pic_width_in_luma_samples, ctx->vpu_dst_fmt->frmsize.step_width)) in hantro_hevc_validate_sps() 164 ALIGN(sps->pic_height_in_luma_samples, ctx->vpu_dst_fmt->frmsize.step_height)) in hantro_hevc_validate_sps() 189 ctrls->sps = in hantro_hevc_dec_prepare_run() 191 if (WARN_ON(!ctrls->sps)) in hantro_hevc_dec_prepare_run() 194 ret = hantro_hevc_validate_sps(ctx, ctrls->sps); in hantro_hevc_dec_prepare_run()
|
H A D | rockchip_vpu2_hw_h264_dec.c | 197 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params() local 238 VDPU_REG_PIC_INTERLACE_E(!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) && in set_params() 239 (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD || in set_params() 243 VDPU_REG_WRITE_MVS_E((sps->profile_idc > 66) && dec_param->nal_ref_idc) | in set_params() 244 VDPU_REG_SEQ_MBAFF_E(sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) | in set_params() 245 VDPU_REG_PICORD_COUNT_E(sps->profile_idc > 66) | in set_params() 268 VDPU_REG_REF_FRAMES(sps->max_num_ref_frames); in set_params() 273 VDPU_REG_FRAMENUM_LEN(sps->log2_max_frame_num_minus4 + 4) | in set_params() 288 VDPU_REG_DIR_8X8_INFER_E(sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE) | in set_params() 289 VDPU_REG_BLACKWHITE_E(sps->profile_idc >= 100 && sps->chroma_format_idc == 0) | in set_params() [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | stream-ipc.c | 30 struct snd_sof_pcm_stream *sps, in sof_ipc_msg_data() argument 33 if (!sps || !sdev->stream_box.size) { in sof_ipc_msg_data() 38 if (sps->substream) { in sof_ipc_msg_data() 39 struct sof_stream *stream = sps->substream->runtime->private_data; in sof_ipc_msg_data() 46 } else if (sps->cstream) { in sof_ipc_msg_data() 48 struct sof_compr_stream *sstream = sps->cstream->runtime->private_data; in sof_ipc_msg_data() 68 struct snd_sof_pcm_stream *sps, in sof_set_stream_data_offset() argument 78 if (sps->substream) { in sof_set_stream_data_offset() 79 struct sof_stream *stream = sps->substream->runtime->private_data; in sof_set_stream_data_offset() 83 sps->substream->stream, posn_offset); in sof_set_stream_data_offset() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | fdt.c | 25 PPCHash64SegmentPageSizes *sps = &cpu->hash64_opts->sps[i]; in ppc_create_page_sizes_prop() local 27 if (!sps->page_shift) { in ppc_create_page_sizes_prop() 31 if (sps->enc[count].page_shift == 0) { in ppc_create_page_sizes_prop() 38 *(p++) = cpu_to_be32(sps->page_shift); in ppc_create_page_sizes_prop() 39 *(p++) = cpu_to_be32(sps->slb_enc); in ppc_create_page_sizes_prop() 42 *(p++) = cpu_to_be32(sps->enc[j].page_shift); in ppc_create_page_sizes_prop() 43 *(p++) = cpu_to_be32(sps->enc[j].pte_enc); in ppc_create_page_sizes_prop()
|
/openbmc/linux/Documentation/devicetree/bindings/power/ |
H A D | actions,owl-sps.txt | 1 Actions Semi Owl Smart Power System (SPS) 4 - compatible : "actions,s500-sps" for S500 5 "actions,s700-sps" for S700 6 "actions,s900-sps" for S900 17 sps: power-controller@b01b0100 { 18 compatible = "actions,s500-sps";
|
/openbmc/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_h265.c | 420 const struct v4l2_ctrl_hevc_sps *sps; in cedrus_h265_setup() local 439 sps = run->h265.sps; in cedrus_h265_setup() 457 sps->log2_min_luma_coding_block_size_minus3 + 3 + in cedrus_h265_setup() 458 sps->log2_diff_max_min_luma_coding_block_size; in cedrus_h265_setup() 461 DIV_ROUND_UP(sps->pic_width_in_luma_samples, ctb_size_luma); in cedrus_h265_setup() 566 /* SPS. */ in cedrus_h265_setup() 568 …reg = VE_DEC_H265_DEC_SPS_HDR_MAX_TRANSFORM_HIERARCHY_DEPTH_INTRA(sps->max_transform_hierarchy_dep… in cedrus_h265_setup() 569 …VE_DEC_H265_DEC_SPS_HDR_MAX_TRANSFORM_HIERARCHY_DEPTH_INTER(sps->max_transform_hierarchy_depth_int… in cedrus_h265_setup() 570 …VE_DEC_H265_DEC_SPS_HDR_LOG2_DIFF_MAX_MIN_TRANSFORM_BLOCK_SIZE(sps->log2_diff_max_min_luma_transfo… in cedrus_h265_setup() 571 …VE_DEC_H265_DEC_SPS_HDR_LOG2_MIN_TRANSFORM_BLOCK_SIZE_MINUS2(sps->log2_min_luma_transform_block_si… in cedrus_h265_setup() [all …]
|
H A D | cedrus_h264.c | 91 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_write_frame_list() local 143 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_write_frame_list() local 148 if (!(sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE)) in cedrus_write_frame_list() 150 if (!(sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY)) in cedrus_write_frame_list() 169 else if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in cedrus_write_frame_list() 347 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_set_params() local 423 reg |= (sps->chroma_format_idc & 0x7) << 19; in cedrus_set_params() 424 reg |= (sps->pic_width_in_mbs_minus1 & 0xff) << 8; in cedrus_set_params() 425 reg |= sps->pic_height_in_map_units_minus1 & 0xff; in cedrus_set_params() 426 if (sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) in cedrus_set_params() [all …]
|
H A D | cedrus.c | 34 const struct v4l2_ctrl_h264_sps *sps = ctrl->p_new.p_h264_sps; in cedrus_try_ctrl() local 36 if (sps->chroma_format_idc != 1) in cedrus_try_ctrl() 39 if (sps->bit_depth_luma_minus8 != sps->bit_depth_chroma_minus8) in cedrus_try_ctrl() 42 if (sps->bit_depth_luma_minus8 != 0) in cedrus_try_ctrl() 46 const struct v4l2_ctrl_hevc_sps *sps = ctrl->p_new.p_hevc_sps; in cedrus_try_ctrl() local 51 if (sps->chroma_format_idc != 1) in cedrus_try_ctrl() 55 bit_depth = max(sps->bit_depth_luma_minus8, in cedrus_try_ctrl() 56 sps->bit_depth_chroma_minus8) + 8; in cedrus_try_ctrl()
|
/openbmc/qemu/target/ppc/ |
H A D | mmu-hash64.c | 245 const PPCHash64SegmentPageSizes *sps = NULL; in ppc_store_slb() local 262 const PPCHash64SegmentPageSizes *sps1 = &cpu->hash64_opts->sps[i]; in ppc_store_slb() 269 sps = sps1; in ppc_store_slb() 274 if (!sps) { in ppc_store_slb() 283 slb->sps = sps; in ppc_store_slb() 598 static unsigned hpte_page_shift(const PPCHash64SegmentPageSizes *sps, in hpte_page_shift() argument 604 if (sps->page_shift != 12) { in hpte_page_shift() 613 const PPCHash64PageSize *ps = &sps->enc[i]; in hpte_page_shift() 648 const PPCHash64SegmentPageSizes *sps, in ppc_hash64_pteg_search() argument 679 *pshift = hpte_page_shift(sps, pte0, pte1); in ppc_hash64_pteg_search() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_h264_req_multi_if.c | 34 * @sps: h264 sps syntax parameters 42 struct mtk_h264_sps_param sps; member 115 * @sps: sequence header information from user space 123 struct v4l2_ctrl_h264_sps sps; member 179 const struct v4l2_ctrl_h264_sps *sps; in vdec_h264_slice_fill_decode_parameters() local 192 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in vdec_h264_slice_fill_decode_parameters() 193 if (IS_ERR(sps)) in vdec_h264_slice_fill_decode_parameters() 194 return PTR_ERR(sps); in vdec_h264_slice_fill_decode_parameters() 206 mtk_vdec_h264_copy_sps_params(&slice_param->sps, sps); in vdec_h264_slice_fill_decode_parameters() 210 memcpy(&share_info->sps, sps, sizeof(*sps)); in vdec_h264_slice_fill_decode_parameters() [all …]
|
H A D | vdec_h264_req_if.c | 20 struct mtk_h264_sps_param sps; member 99 const struct v4l2_ctrl_h264_sps *sps; in get_vdec_decode_parameters() local 116 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in get_vdec_decode_parameters() 117 if (IS_ERR(sps)) in get_vdec_decode_parameters() 118 return PTR_ERR(sps); in get_vdec_decode_parameters() 131 mtk_vdec_h264_copy_sps_params(&slice_param->sps, sps); in get_vdec_decode_parameters() 140 v4l2_h264_init_reflist_builder(&reflist_builder, dec_params, sps, in get_vdec_decode_parameters()
|
/openbmc/openbmc/meta-arm/meta-arm/recipes-security/trusted-services/ |
H A D | ts-sp-common.inc | 1 # Common part of all Trusted Services SPs recipes 32 # Trusted Services SPs do not compile with clang 35 # FORTIFY_SOURCE is a glibc feature. Disable it for all SPs as these do not use glibc.
|
/openbmc/linux/arch/arm/mach-actions/ |
H A D | platsmp.c | 18 #include <linux/soc/actions/owl-sps.h> 113 node = of_find_compatible_node(NULL, NULL, "actions,s500-sps"); in s500_smp_prepare_cpus() 115 pr_err("%s: missing sps\n", __func__); in s500_smp_prepare_cpus() 121 pr_err("%s: could not map sps registers\n", __func__); in s500_smp_prepare_cpus()
|
/openbmc/openbmc/meta-arm/documentation/ |
H A D | trusted-services.md | 9 These recipes produce ELF and DTB files for SPs. 12 ### How to include TS SPs 14 To include TS SPs into optee-os image you need to add into MACHINE_FEATURES 46 4. Trusted Services supports an SPMC agonistic binary format. To build SPs to this format the `TS_E…
|
/openbmc/linux/drivers/misc/mei/ |
H A D | hw-me.h | 97 * SPS firmware exclusion. 101 * SPS firmware exclusion. 104 * SPS firmware exclusion. 108 * SPS firmware exclusion.
|
/openbmc/openbmc/meta-arm/meta-arm/recipes-security/optee/ |
H A D | optee-os-ts.inc | 1 # Include Trusted Services SPs accordingly to defined machine features 3 # Please notice that OPTEE will load SPs in the order listed in this file. 6 # TS SPs UUIDs definitions 57 # SPM test SPs
|
/openbmc/linux/drivers/staging/media/rkvdec/ |
H A D | rkvdec-h264.c | 109 const struct v4l2_ctrl_h264_sps *sps; member 637 const struct v4l2_ctrl_h264_sps *sps = run->sps; in assemble_hw_pps() local 648 * HW read the SPS/PPS information from PPS packet index by PPS id. in assemble_hw_pps() 650 * packet unit). so the driver copy SPS/PPS information to the exact PPS in assemble_hw_pps() 657 /* write sps */ in assemble_hw_pps() 661 WRITE_PPS(sps->chroma_format_idc, CHROMA_FORMAT_IDC); in assemble_hw_pps() 662 WRITE_PPS(sps->bit_depth_luma_minus8, BIT_DEPTH_LUMA); in assemble_hw_pps() 663 WRITE_PPS(sps->bit_depth_chroma_minus8, BIT_DEPTH_CHROMA); in assemble_hw_pps() 665 WRITE_PPS(sps->log2_max_frame_num_minus4, LOG2_MAX_FRAME_NUM_MINUS4); in assemble_hw_pps() 666 WRITE_PPS(sps->max_num_ref_frames, MAX_NUM_REF_FRAMES); in assemble_hw_pps() [all …]
|