Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/media/platform/coda/
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-v5.4/drivers/staging/media/allegro-dvt/
Dnal-h264.c594 static void nal_h264_rbsp_sps(struct rbsp *rbsp, struct nal_h264_sps *sps) in nal_h264_rbsp_sps() argument
598 if (!sps) { in nal_h264_rbsp_sps()
603 rbsp_bits(rbsp, 8, &sps->profile_idc); in nal_h264_rbsp_sps()
604 rbsp_bit(rbsp, &sps->constraint_set0_flag); in nal_h264_rbsp_sps()
605 rbsp_bit(rbsp, &sps->constraint_set1_flag); in nal_h264_rbsp_sps()
606 rbsp_bit(rbsp, &sps->constraint_set2_flag); in nal_h264_rbsp_sps()
607 rbsp_bit(rbsp, &sps->constraint_set3_flag); in nal_h264_rbsp_sps()
608 rbsp_bit(rbsp, &sps->constraint_set4_flag); in nal_h264_rbsp_sps()
609 rbsp_bit(rbsp, &sps->constraint_set5_flag); in nal_h264_rbsp_sps()
610 rbsp_bits(rbsp, 2, &sps->reserved_zero_2bits); in nal_h264_rbsp_sps()
[all …]
Dallegro-core.c1310 struct nal_h264_sps *sps; in allegro_h264_write_sps() local
1317 sps = kzalloc(sizeof(*sps), GFP_KERNEL); in allegro_h264_write_sps()
1318 if (!sps) in allegro_h264_write_sps()
1321 sps->profile_idc = nal_h264_profile_from_v4l2(channel->profile); in allegro_h264_write_sps()
1322 sps->constraint_set0_flag = 0; in allegro_h264_write_sps()
1323 sps->constraint_set1_flag = 1; in allegro_h264_write_sps()
1324 sps->constraint_set2_flag = 0; in allegro_h264_write_sps()
1325 sps->constraint_set3_flag = 0; in allegro_h264_write_sps()
1326 sps->constraint_set4_flag = 0; in allegro_h264_write_sps()
1327 sps->constraint_set5_flag = 0; in allegro_h264_write_sps()
[all …]
Dnal-h264.h194 void *dest, size_t n, struct nal_h264_sps *sps);
196 struct nal_h264_sps *sps, void *src, size_t n);
197 void nal_h264_print_sps(const struct device *dev, struct nal_h264_sps *sps);
/Linux-v5.4/drivers/soc/actions/
Dowl-sps.c44 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()
92 sps->genpd_data.domains[index] = &pd->genpd; in owl_sps_init_domain()
101 struct owl_sps *sps; in owl_sps_probe() local
[all …]
DMakefile3 obj-$(CONFIG_OWL_PM_DOMAINS_HELPER) += owl-sps-helper.o
4 obj-$(CONFIG_OWL_PM_DOMAINS) += owl-sps.o
/Linux-v5.4/drivers/staging/media/hantro/
Dhantro_g1_h264_dec.c27 const struct v4l2_ctrl_h264_sps *sps = ctrls->sps; in set_params() local
35 if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) 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()
52 reg = G1_REG_DEC_CTRL1_PIC_MB_WIDTH(sps->pic_width_in_mbs_minus1 + 1) | in set_params()
53 G1_REG_DEC_CTRL1_PIC_MB_HEIGHT_P(sps->pic_height_in_map_units_minus1 + 1) | in set_params()
54 G1_REG_DEC_CTRL1_REF_FRAMES(sps->max_num_ref_frames); in set_params()
75 reg = G1_REG_DEC_CTRL4_FRAMENUM_LEN(sps->log2_max_frame_num_minus4 + 4) | in set_params()
80 if (sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE) in set_params()
82 if (sps->chroma_format_idc == 0) in set_params()
[all …]
Dhantro_hw.h61 const struct v4l2_ctrl_h264_sps *sps; member
Dhantro_h264.c591 ctrls->sps = in hantro_h264_dec_prepare_run()
593 if (WARN_ON(!ctrls->sps)) in hantro_h264_dec_prepare_run()
/Linux-v5.4/Documentation/devicetree/bindings/power/
Dactions,owl-sps.txt4 - 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";
/Linux-v5.4/drivers/staging/media/sunxi/cedrus/
Dcedrus_h264.c98 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_write_frame_list() local
146 else if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in cedrus_write_frame_list()
298 const struct v4l2_ctrl_h264_sps *sps = run->h264.sps; in cedrus_set_params() local
362 reg |= (sps->chroma_format_idc & 0x7) << 19; in cedrus_set_params()
363 reg |= (sps->pic_width_in_mbs_minus1 & 0xff) << 8; in cedrus_set_params()
364 reg |= sps->pic_height_in_map_units_minus1 & 0xff; in cedrus_set_params()
365 if (sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY) in cedrus_set_params()
367 if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) in cedrus_set_params()
369 if (sps->flags & V4L2_H264_SPS_FLAG_DIRECT_8X8_INFERENCE) in cedrus_set_params()
Dcedrus_dec.c58 run.h264.sps = cedrus_find_control_data(ctx, in cedrus_device_run()
Dcedrus.h62 const struct v4l2_ctrl_h264_sps *sps; member
/Linux-v5.4/drivers/iio/imu/
Dadis16400.c358 int sps, ret; in adis16400_get_freq() local
365 sps = (t & ADIS16400_SMPL_PRD_TIME_BASE) ? 52851 : 1638404; in adis16400_get_freq()
366 sps /= (t & ADIS16400_SMPL_PRD_DIV_MASK) + 1; in adis16400_get_freq()
368 return sps; in adis16400_get_freq()
407 static int adis16400_set_filter(struct iio_dev *indio_dev, int sps, int val) in adis16400_set_filter() argument
414 if (sps / adis16400_3db_divisors[i] >= val) in adis16400_set_filter()
510 int ret, sps; in adis16400_write_raw() local
527 sps = st->variant->get_freq(st); in adis16400_write_raw()
528 if (sps < 0) { in adis16400_write_raw()
530 return sps; in adis16400_write_raw()
[all …]
/Linux-v5.4/arch/arm/boot/dts/
Dowl-s500.dtsi46 power-domains = <&sps S500_PD_CPU2>;
54 power-domains = <&sps S500_PD_CPU3>;
182 sps: power-controller@b01b0100 { label
183 compatible = "actions,s500-sps";
/Linux-v5.4/arch/powerpc/sysdev/
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-v5.4/fs/dlm/
Dconfig.c346 struct dlm_spaces *sps = NULL; in make_cluster() local
350 sps = kzalloc(sizeof(struct dlm_spaces), GFP_NOFS); in make_cluster()
353 if (!cl || !sps || !cms) in make_cluster()
357 config_group_init_type_name(&sps->ss_group, "spaces", &spaces_type); in make_cluster()
360 configfs_add_default_group(&sps->ss_group, &cl->group); in make_cluster()
379 space_list = &sps->ss_group; in make_cluster()
385 kfree(sps); in make_cluster()
/Linux-v5.4/arch/powerpc/mm/nohash/
Dtlb.c537 unsigned int ps, sps; in setup_page_sizes() local
539 sps = eptcfg & 0x1f; in setup_page_sizes()
543 if (!ps || !sps) in setup_page_sizes()
550 if (sps == (def->shift - 10)) in setup_page_sizes()
/Linux-v5.4/arch/powerpc/kvm/
Dbook3s_pr.c1946 info->sps[0].page_shift = 12; in kvm_vm_ioctl_get_smmu_info_pr()
1947 info->sps[0].slb_enc = 0; in kvm_vm_ioctl_get_smmu_info_pr()
1948 info->sps[0].enc[0].page_shift = 12; in kvm_vm_ioctl_get_smmu_info_pr()
1949 info->sps[0].enc[0].pte_enc = 0; in kvm_vm_ioctl_get_smmu_info_pr()
1964 info->sps[i].page_shift = 16; in kvm_vm_ioctl_get_smmu_info_pr()
1965 info->sps[i].slb_enc = SLB_VSID_L | SLB_VSID_LP_01; in kvm_vm_ioctl_get_smmu_info_pr()
1966 info->sps[i].enc[0].page_shift = 16; in kvm_vm_ioctl_get_smmu_info_pr()
1967 info->sps[i].enc[0].pte_enc = 1; in kvm_vm_ioctl_get_smmu_info_pr()
1972 info->sps[i].page_shift = 24; in kvm_vm_ioctl_get_smmu_info_pr()
1973 info->sps[i].slb_enc = SLB_VSID_L; in kvm_vm_ioctl_get_smmu_info_pr()
[all …]
Dbook3s_hv.c4336 static void kvmppc_add_seg_page_size(struct kvm_ppc_one_seg_page_size **sps, in kvmppc_add_seg_page_size() argument
4339 (*sps)->page_shift = shift; in kvmppc_add_seg_page_size()
4340 (*sps)->slb_enc = sllp; in kvmppc_add_seg_page_size()
4341 (*sps)->enc[0].page_shift = shift; in kvmppc_add_seg_page_size()
4342 (*sps)->enc[0].pte_enc = kvmppc_pgsize_lp_encoding(shift, shift); in kvmppc_add_seg_page_size()
4349 (*sps)->enc[1].page_shift = 24; in kvmppc_add_seg_page_size()
4350 (*sps)->enc[1].pte_enc = penc; in kvmppc_add_seg_page_size()
4353 (*sps)++; in kvmppc_add_seg_page_size()
4359 struct kvm_ppc_one_seg_page_size *sps; in kvm_vm_ioctl_get_smmu_info_hv() local
4374 sps = &info->sps[0]; in kvm_vm_ioctl_get_smmu_info_hv()
[all …]
/Linux-v5.4/arch/arm64/boot/dts/actions/
Ds700.dtsi219 sps: power-controller@e01b0100 { label
220 compatible = "actions,s700-sps";
Ds900.dtsi177 sps: power-controller@e012e000 { label
178 compatible = "actions,s900-sps";
/Linux-v5.4/drivers/mtd/nand/raw/
Dmtk_nand.c1189 static int mtk_nfc_set_spare_per_sector(u32 *sps, struct mtd_info *mtd) in mtk_nfc_set_spare_per_sector() argument
1197 *sps = mtd->oobsize / eccsteps; in mtk_nfc_set_spare_per_sector()
1200 *sps >>= 1; in mtk_nfc_set_spare_per_sector()
1202 if (*sps < MTK_NFC_MIN_SPARE) in mtk_nfc_set_spare_per_sector()
1206 if (*sps >= spare[i] && spare[i] >= spare[closest_spare]) { in mtk_nfc_set_spare_per_sector()
1208 if (*sps == spare[i]) in mtk_nfc_set_spare_per_sector()
1213 *sps = spare[closest_spare]; in mtk_nfc_set_spare_per_sector()
1216 *sps <<= 1; in mtk_nfc_set_spare_per_sector()
/Linux-v5.4/sound/soc/sof/
Dpcm.c60 struct snd_sof_pcm_stream *sps = in sof_pcm_period_elapsed_work() local
64 snd_pcm_period_elapsed(sps->substream); in sof_pcm_period_elapsed_work()
/Linux-v5.4/tools/include/uapi/linux/
Dkvm.h750 struct kvm_ppc_one_seg_page_size sps[KVM_PPC_PAGE_SIZES_MAX_SZ]; member

12