Home
last modified time | relevance | path

Searched refs:sps (Results 1 – 25 of 39) sorted by relevance

12

/linux/drivers/media/platform/allegro-dvt/
H A Dnal-h264.c198 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()
214 rbsp_bits(rbsp, 2, &sps->reserved_zero_2bits); in nal_h264_rbsp_sps()
[all …]
H A Dnal-hevc.c340 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()
353 rbsp_uev(rbsp, &sps->pic_width_in_luma_samples); in nal_hevc_rbsp_sps()
[all …]
H A Dallegro-core.c1624 struct nal_h264_sps *sps; in allegro_h264_write_sps() local
1635 sps = kzalloc_obj(*sps); in allegro_h264_write_sps()
1636 if (!sps) in allegro_h264_write_sps()
1642 sps->profile_idc = nal_h264_profile(profile); in allegro_h264_write_sps()
1643 sps->constraint_set0_flag = 0; in allegro_h264_write_sps()
1644 sps->constraint_set1_flag = 1; in allegro_h264_write_sps()
1645 sps->constraint_set2_flag = 0; in allegro_h264_write_sps()
1646 sps->constraint_set3_flag = 0; in allegro_h264_write_sps()
1647 sps->constraint_set4_flag = 0; in allegro_h264_write_sps()
1648 sps->constraint_set5_flag = 0; in allegro_h264_write_sps()
[all …]
H A Dnal-h264.h390 void *dest, size_t n, struct nal_h264_sps *sps);
392 struct nal_h264_sps *sps, void *src, size_t n);
393 void nal_h264_print_sps(const struct device *dev, struct nal_h264_sps *sps);
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-h264.c259 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()
291 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
295 ret = rbsp_read_uev(&sps, &pic_order_cnt_type); in coda_h264_sps_fixup()
301 ret = rbsp_read_uev(&sps, NULL); in coda_h264_sps_fixup()
308 ret = rbsp_read_bit(&sps); in coda_h264_sps_fixup()
[all …]
/linux/drivers/pmdomain/actions/
H A Dowl-sps.c45 struct owl_sps *sps; member
55 return owl_sps_set_pg(pd->sps->base, pwr_mask, ack_mask, enable); in owl_sps_set_power()
62 dev_dbg(pd->sps->dev, "%s power on", pd->info->name); in owl_sps_power_on()
71 dev_dbg(pd->sps->dev, "%s power off", pd->info->name); in owl_sps_power_off()
76 static int owl_sps_init_domain(struct owl_sps *sps, int index) in owl_sps_init_domain() argument
80 pd = devm_kzalloc(sps->dev, sizeof(*pd), GFP_KERNEL); in owl_sps_init_domain()
84 pd->info = &sps->info->domains[index]; in owl_sps_init_domain()
85 pd->sps = sps; in owl_sps_init_domain()
93 sps->genpd_data.domains[index] = &pd->genpd; in owl_sps_init_domain()
101 struct owl_sps *sps; in owl_sps_probe() local
[all …]
H A DMakefile2 obj-$(CONFIG_OWL_PM_DOMAINS_HELPER) += owl-sps-helper.o
3 obj-$(CONFIG_OWL_PM_DOMAINS) += owl-sps.o
/linux/sound/soc/sof/
H A Dstream-ipc.c30 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 …]
H A Dipc4-pcm.c65 sof_ipc4_sps_to_time_info(struct snd_sof_pcm_stream *sps) in sof_ipc4_sps_to_time_info() argument
67 struct sof_ipc4_pcm_stream_priv *stream_priv = sps->private; in sof_ipc4_sps_to_time_info()
978 static void sof_ipc4_build_time_info(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps) in sof_ipc4_build_time_info() argument
989 for_each_dapm_widgets(sps->list, i, widget) { in sof_ipc4_build_time_info()
1009 time_info = sof_ipc4_sps_to_time_info(sps); in sof_ipc4_build_time_info()
1107 struct snd_sof_pcm_stream *sps, in sof_ipc4_get_stream_start_offset() argument
1183 struct snd_sof_pcm_stream *sps; in sof_ipc4_pcm_pointer() local
1192 sps = &spcm->stream[substream->stream]; in sof_ipc4_pcm_pointer()
1193 time_info = sof_ipc4_sps_to_time_info(sps); in sof_ipc4_pcm_pointer()
1203 ret = sof_ipc4_get_stream_start_offset(sdev, substream, sps, time_info); in sof_ipc4_pcm_pointer()
/linux/drivers/media/platform/rockchip/rkvdec/
H A Drkvdec-vdpu381-h264.c68 struct rkvdec_sps sps; member
90 const struct v4l2_ctrl_h264_sps *sps = run->sps; in assemble_hw_pps() local
110 hw_ps->sps.seq_parameter_set_id = sps->seq_parameter_set_id; in assemble_hw_pps()
111 hw_ps->sps.profile_idc = sps->profile_idc; in assemble_hw_pps()
112 hw_ps->sps.constraint_set3_flag = !!(sps->constraint_set_flags & (1 << 3)); in assemble_hw_pps()
113 hw_ps->sps.chroma_format_idc = sps->chroma_format_idc; in assemble_hw_pps()
114 hw_ps->sps.bit_depth_luma = sps->bit_depth_luma_minus8; in assemble_hw_pps()
115 hw_ps->sps.bit_depth_chroma = sps->bit_depth_chroma_minus8; in assemble_hw_pps()
116 hw_ps->sps.qpprime_y_zero_transform_bypass_flag = in assemble_hw_pps()
117 !!(sps->flags & V4L2_H264_SPS_FLAG_QPPRIME_Y_ZERO_TRANSFORM_BYPASS); in assemble_hw_pps()
[all …]
/linux/drivers/media/platform/verisilicon/
H A Dhantro_g1_h264_dec.c26 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 Dhantro_hevc.c81 const struct v4l2_ctrl_hevc_sps *sps = ctrls->sps; in tile_buffer_reallocate() local
83 unsigned int height64 = (sps->pic_height_in_luma_samples + 63) & ~63; in tile_buffer_reallocate()
157 static int hantro_hevc_validate_sps(struct hantro_ctx *ctx, const struct v4l2_ctrl_hevc_sps *sps) in hantro_hevc_validate_sps() argument
165 ALIGN(sps->pic_width_in_luma_samples, ctx->vpu_dst_fmt->frmsize.step_width)) in hantro_hevc_validate_sps()
169 ALIGN(sps->pic_height_in_luma_samples, ctx->vpu_dst_fmt->frmsize.step_height)) in hantro_hevc_validate_sps()
194 ctrls->sps = in hantro_hevc_dec_prepare_run()
196 if (WARN_ON(!ctrls->sps)) in hantro_hevc_dec_prepare_run()
199 ret = hantro_hevc_validate_sps(ctx, ctrls->sps); in hantro_hevc_dec_prepare_run()
H A Drockchip_vpu2_hw_h264_dec.c197 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 …]
/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_h265.c420 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()
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()
572 …VE_DEC_H265_DEC_SPS_HDR_LOG2_DIFF_MAX_MIN_LUMA_CODING_BLOCK_SIZE(sps->log2_diff_max_min_luma_codin… in cedrus_h265_setup()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_h264_req_if.c20 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()
H A Dvdec_h264_req_multi_if.c43 struct mtk_h264_sps_param sps; member
123 struct v4l2_ctrl_h264_sps sps; member
274 const struct v4l2_ctrl_h264_sps *sps; in vdec_h264_slice_fill_decode_parameters() local
287 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in vdec_h264_slice_fill_decode_parameters()
288 if (IS_ERR(sps)) in vdec_h264_slice_fill_decode_parameters()
289 return PTR_ERR(sps); in vdec_h264_slice_fill_decode_parameters()
301 mtk_vdec_h264_copy_sps_params(&slice_param->sps, sps); in vdec_h264_slice_fill_decode_parameters()
305 memcpy(&share_info->sps, sps, sizeof(*sps)); in vdec_h264_slice_fill_decode_parameters()
314 const struct v4l2_ctrl_h264_sps *sps; in get_vdec_sig_decode_parameters() local
331 sps = mtk_vdec_h264_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_H264_SPS); in get_vdec_sig_decode_parameters()
[all …]
H A Dvdec_hevc_req_multi_if.c245 struct mtk_hevc_sps_param sps; member
336 struct v4l2_ctrl_hevc_sps sps; member
594 const struct v4l2_ctrl_hevc_sps *sps; in vdec_hevc_slice_fill_decode_parameters() local
607 sps = vdec_hevc_get_ctrl_ptr(inst->ctx, V4L2_CID_STATELESS_HEVC_SPS); in vdec_hevc_slice_fill_decode_parameters()
608 if (IS_ERR(sps)) in vdec_hevc_slice_fill_decode_parameters()
609 return PTR_ERR(sps); in vdec_hevc_slice_fill_decode_parameters()
615 vdec_hevc_copy_sps_params(&slice_param->sps, sps); in vdec_hevc_slice_fill_decode_parameters()
619 memcpy(&share_info->sps, sps, sizeof(*sps)); in vdec_hevc_slice_fill_decode_parameters()
/linux/drivers/iio/imu/
H A Dadis16400.c326 int sps, ret; in adis16400_get_freq() local
333 sps = (t & ADIS16400_SMPL_PRD_TIME_BASE) ? 52851 : 1638404; in adis16400_get_freq()
334 sps /= (t & ADIS16400_SMPL_PRD_DIV_MASK) + 1; in adis16400_get_freq()
336 return sps; in adis16400_get_freq()
375 static int __adis16400_set_filter(struct iio_dev *indio_dev, int sps, int val) in __adis16400_set_filter() argument
382 if (sps / adis16400_3db_divisors[i] >= val) in __adis16400_set_filter()
477 int sps; in adis16400_write_raw() local
492 sps = st->variant->get_freq(st); in adis16400_write_raw()
493 if (sps < 0) in adis16400_write_raw()
494 return sps; in adis16400_write_raw()
[all …]
/linux/sound/soc/sof/amd/
H A Dacp-ipc.c256 int acp_sof_ipc_msg_data(struct snd_sof_dev *sdev, struct snd_sof_pcm_stream *sps, in acp_sof_ipc_msg_data()
261 if (!sps || !sdev->stream_box.size) { in acp_sof_ipc_msg_data()
264 struct snd_pcm_substream *substream = sps->substream; in acp_sof_ipc_msg_data()
283 struct snd_sof_pcm_stream *sps, in acp_set_stream_data_offset()
286 struct snd_pcm_substream *substream = sps->substream; in acp_set_stream_data_offset()
249 acp_sof_ipc_msg_data(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,void * p,size_t sz) acp_sof_ipc_msg_data() argument
276 acp_set_stream_data_offset(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,size_t posn_offset) acp_set_stream_data_offset() argument
/linux/fs/dlm/
H A Dconfig.c77 struct dlm_spaces *sps; member
426 struct dlm_spaces *sps = NULL; in make_cluster() local
430 sps = kzalloc_obj(struct dlm_spaces, GFP_NOFS); in make_cluster()
433 if (!cl || !sps || !cms) in make_cluster()
436 cl->sps = sps; in make_cluster()
440 config_group_init_type_name(&sps->ss_group, "spaces", &spaces_type); in make_cluster()
443 configfs_add_default_group(&sps->ss_group, &cl->group); in make_cluster()
446 space_list = &sps->ss_group; in make_cluster()
452 kfree(sps); in make_cluster()
473 kfree(cl->sps); in release_cluster()
/linux/arch/powerpc/sysdev/
H A Dfsl_gtm.c173 u8 sps; in gtm_set_ref_timer16() local
197 sps = prescaler - 1; in gtm_set_ref_timer16()
200 sps = prescaler / 256 - 1; in gtm_set_ref_timer16()
216 clrsetbits_be16(tmr->gtmdr, 0xFFFF, iclk | GTMDR_SPS(sps) | in gtm_set_ref_timer16()
/linux/arch/arm/boot/dts/actions/
H A Dowl-s500.dtsi49 power-domains = <&sps S500_PD_CPU2>;
57 power-domains = <&sps S500_PD_CPU3>;
256 sps: power-controller@b01b0100 { label
257 compatible = "actions,s500-sps";
292 power-domains = <&sps S500_PD_DMA>;
/linux/sound/soc/sof/intel/
H A Dhda-ipc.c403 struct snd_sof_pcm_stream *sps, in hda_dsp_ipc_get_window_offset()
406 if (!sps || !sdev->stream_box.size) { in hda_dsp_ipc_get_window_offset()
409 struct snd_pcm_substream *substream = sps->substream; in hda_ipc_msg_data()
429 struct snd_sof_pcm_stream *sps, in hda_ipc_msg_data()
432 struct snd_pcm_substream *substream = sps->substream; in hda_ipc_msg_data()
410 hda_ipc_msg_data(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,void * p,size_t sz) hda_ipc_msg_data() argument
436 hda_set_stream_data_offset(struct snd_sof_dev * sdev,struct snd_sof_pcm_stream * sps,size_t posn_offset) hda_set_stream_data_offset() argument
/linux/drivers/platform/x86/amd/pmf/
H A DMakefile8 amd-pmf-y := core.o acpi.o sps.o \
/linux/include/media/
H A Dv4l2-h264.h51 const struct v4l2_ctrl_h264_sps *sps,

12