Home
last modified time | relevance | path

Searched refs:fmt_idx (Results 1 – 17 of 17) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/media/i2c/nvp6158_drv/
H A Dnvp6158_drv.c760 NC_VIVO_CH_FORMATDEF fmt_idx; in nvp6158_start() local
763 fmt_idx = video_init->ch_param[0].format; in nvp6158_start()
774 switch (fmt_idx) { in nvp6158_start()
856 if ((fmt_idx == AHD20_1080P_25P) || (fmt_idx == AHD20_1080P_30P)) { in nvp6158_start()
861 } else if ((fmt_idx == AHD20_720P_25P) || (fmt_idx == AHD20_720P_30P)) { in nvp6158_start()
866 } else if ((fmt_idx == AHD30_3M_18P) || (fmt_idx == AHD30_4M_15P) || in nvp6158_start()
867 (fmt_idx == AHD30_5M_12_5P) || (fmt_idx == AHD30_8M_7_5P)) { in nvp6158_start()
872 } else if ((fmt_idx == AHD20_1080P_50P) || (fmt_idx == AHD20_1080P_60P) || in nvp6158_start()
873 (fmt_idx == AHD30_3M_30P) || (fmt_idx == AHD30_4M_30P) || in nvp6158_start()
874 (fmt_idx == AHD30_3M_25P) || (fmt_idx == AHD30_4M_25P) || in nvp6158_start()
[all …]
H A Dnvp6158_v4l2.c115 NC_VIVO_CH_FORMATDEF fmt_idx; member
182 .fmt_idx = AHD20_720P_30P,
190 .fmt_idx = AHD20_1080P_25P,
198 .fmt_idx = AHD30_3M_18P,
206 .fmt_idx = AHD30_4M_30P,
214 .fmt_idx = AHD30_4M_15P,
222 .fmt_idx = AHD30_5M_12_5P,
230 .fmt_idx = AHD30_8M_7_5P,
238 .fmt_idx = AHD20_SD_SH720_NT,
246 .fmt_idx = AHD20_SD_SH720_PAL,
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/i2c/
H A Datomisp-ov2680.c150 *val = ov2680_res[dev->fmt_idx].bin_factor_x; in ov2680_g_bin_factor_x()
160 *val = ov2680_res[dev->fmt_idx].bin_factor_y; in ov2680_g_bin_factor_y()
257 vts = ov2680_res[dev->fmt_idx].lines_per_frame; in __ov2680_set_exposure()
955 dev->fmt_idx = get_resolution_index(fmt->width, fmt->height); in ov2680_set_fmt()
957 __func__, dev->fmt_idx); in ov2680_set_fmt()
958 if (dev->fmt_idx == -1) { in ov2680_set_fmt()
964 __func__, dev->fmt_idx, fmt->width, fmt->height); in ov2680_set_fmt()
968 ret = ov2680_write_reg_array(client, ov2680_res[dev->fmt_idx].regs); in ov2680_set_fmt()
974 &ov2680_res[dev->fmt_idx]); in ov2680_set_fmt()
988 v4l2_info(client, "\n%s idx %d\n", __func__, dev->fmt_idx); in ov2680_set_fmt()
[all …]
H A Datomisp-ov2722.c560 val = ov2722_res[dev->fmt_idx].mipi_freq; in ov2722_g_volatile_ctrl()
869 ret = ov2722_write_reg_array(client, ov2722_res[dev->fmt_idx].regs); in startup()
914 dev->fmt_idx = get_resolution_index(fmt->width, fmt->height); in ov2722_set_fmt()
915 if (dev->fmt_idx == -1) { in ov2722_set_fmt()
921 dev->pixels_per_line = ov2722_res[dev->fmt_idx].pixels_per_line; in ov2722_set_fmt()
922 dev->lines_per_frame = ov2722_res[dev->fmt_idx].lines_per_frame; in ov2722_set_fmt()
954 &ov2722_res[dev->fmt_idx]); in ov2722_set_fmt()
975 fmt->width = ov2722_res[dev->fmt_idx].width; in ov2722_get_fmt()
976 fmt->height = ov2722_res[dev->fmt_idx].height; in ov2722_get_fmt()
1101 interval->interval.denominator = ov2722_res[dev->fmt_idx].fps; in ov2722_g_frame_interval()
[all …]
H A Datomisp-gc0310.c269 *val = gc0310_res[dev->fmt_idx].bin_factor_x; in gc0310_g_bin_factor_x()
278 *val = gc0310_res[dev->fmt_idx].bin_factor_y; in gc0310_g_bin_factor_y()
964 ret = gc0310_write_reg_array(client, gc0310_res[dev->fmt_idx].regs); in startup()
1016 dev->fmt_idx = get_resolution_index(fmt->width, fmt->height); in gc0310_set_fmt()
1017 if (dev->fmt_idx == -1) { in gc0310_set_fmt()
1024 gc0310_res[dev->fmt_idx].desc); in gc0310_set_fmt()
1032 &gc0310_res[dev->fmt_idx]); in gc0310_set_fmt()
1057 fmt->width = gc0310_res[dev->fmt_idx].width; in gc0310_get_fmt()
1058 fmt->height = gc0310_res[dev->fmt_idx].height; in gc0310_get_fmt()
1218 interval->interval.denominator = gc0310_res[dev->fmt_idx].fps; in gc0310_g_frame_interval()
[all …]
H A Datomisp-gc2235.c759 ret = gc2235_write_reg_array(client, gc2235_res[dev->fmt_idx].regs); in startup()
804 dev->fmt_idx = get_resolution_index(fmt->width, fmt->height); in gc2235_set_fmt()
805 if (dev->fmt_idx == -1) { in gc2235_set_fmt()
818 &gc2235_res[dev->fmt_idx]); in gc2235_set_fmt()
840 fmt->width = gc2235_res[dev->fmt_idx].width; in gc2235_get_fmt()
841 fmt->height = gc2235_res[dev->fmt_idx].height; in gc2235_get_fmt()
960 interval->interval.denominator = gc2235_res[dev->fmt_idx].fps; in gc2235_g_frame_interval()
998 *frames = gc2235_res[dev->fmt_idx].skip_frames; in gc2235_g_skip_frames()
1062 dev->fmt_idx = 0; in gc2235_probe()
H A Dov2680.h177 int fmt_idx; member
H A Dgc0310.h153 int fmt_idx; member
H A Dgc2235.h164 int fmt_idx; member
H A Dov2722.h207 int fmt_idx; member
/OK3568_Linux_fs/kernel/drivers/media/i2c/jaguar1_drv/
H A Djaguar1_v4l2.c98 enum NC_VIVO_CH_FORMATDEF fmt_idx; member
150 .fmt_idx = AHD20_720P_25P,
160 .fmt_idx = AHD20_SD_H960_2EX_Btype_NT,
170 .fmt_idx = AHD20_SD_H960_2EX_Btype_PAL,
180 .fmt_idx = AHD20_720P_25P_EX_Btype,
190 .fmt_idx = AHD20_1080P_25P,
200 .fmt_idx = AHD20_720P_25P,
438 enum NC_VIVO_CH_FORMATDEF fmt_idx; in jaguar1_stream() local
450 fmt_idx = jaguar1->frame_size->fmt_idx; in jaguar1_stream()
453 video_init.ch_param[ch].format = fmt_idx; in jaguar1_stream()
/OK3568_Linux_fs/kernel/sound/soc/intel/skylake/
H A Dskl-topology.c116 struct skl_module_iface *iface = &mcfg->module->formats[mcfg->fmt_idx]; in skl_dump_mconfig()
198 in_fmt = &m_cfg->module->formats[m_cfg->fmt_idx].inputs[0].fmt; in skl_tplg_update_params_fixup()
199 out_fmt = &m_cfg->module->formats[m_cfg->fmt_idx].outputs[0].fmt; in skl_tplg_update_params_fixup()
243 in_fmt = &mcfg->module->formats[mcfg->fmt_idx].inputs[0].fmt; in skl_tplg_update_buffer_size()
244 out_fmt = &mcfg->module->formats[mcfg->fmt_idx].outputs[0].fmt; in skl_tplg_update_buffer_size()
291 int fmt_idx = m_cfg->fmt_idx; in skl_tplg_update_be_blob() local
292 struct skl_module_iface *m_iface = &m_cfg->module->formats[fmt_idx]; in skl_tplg_update_be_blob()
493 mconfig->fmt_idx = mconfig->mod_cfg[cfg_idx].fmt_idx; in skl_tplg_init_pipe_modules()
1641 mconfig->fmt_idx = mconfig->mod_cfg[cfg_idx].fmt_idx; in skl_tplg_update_pipe_params()
1648 format = &mconfig->module->formats[mconfig->fmt_idx].inputs[0].fmt; in skl_tplg_update_pipe_params()
[all …]
H A Dskl-topology.h286 u8 fmt_idx; member
332 u8 fmt_idx; member
375 int fmt_idx; member
H A Dskl-messages.c450 struct skl_module_iface *fmt = &module->formats[mconfig->fmt_idx]; in skl_set_base_module_format()
665 struct skl_module_iface *fmt = &module->formats[mconfig->fmt_idx]; in skl_setup_out_format()
692 struct skl_module_iface *iface = &module->formats[mconfig->fmt_idx]; in skl_set_src_format()
711 struct skl_module_iface *iface = &module->formats[mconfig->fmt_idx]; in skl_set_updown_mixer_format()
1155 fmt = &module->formats[src_mcfg->fmt_idx]; in skl_bind_modules()
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/i2c/ov5693/
H A Datomisp-ov5693.c443 *val = ov5693_res[dev->fmt_idx].bin_factor_x; in ov5693_g_bin_factor_x()
452 *val = ov5693_res[dev->fmt_idx].bin_factor_y; in ov5693_g_bin_factor_y()
544 hts = ov5693_res[dev->fmt_idx].pixels_per_line; in __ov5693_set_exposure()
545 vts = ov5693_res[dev->fmt_idx].lines_per_frame; in __ov5693_set_exposure()
1570 ret = ov5693_write_reg_array(client, ov5693_res[dev->fmt_idx].regs); in startup()
1616 dev->fmt_idx = get_resolution_index(fmt->width, fmt->height); in ov5693_set_fmt()
1617 if (dev->fmt_idx == -1) { in ov5693_set_fmt()
1663 &ov5693_res[dev->fmt_idx]); in ov5693_set_fmt()
1691 fmt->width = ov5693_res[dev->fmt_idx].width; in ov5693_get_fmt()
1692 fmt->height = ov5693_res[dev->fmt_idx].height; in ov5693_get_fmt()
[all …]
H A Dov5693.h232 int fmt_idx; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_nix.c2234 int fmt_idx; in rvu_nix_reserve_mark_format() local
2236 for (fmt_idx = 0; fmt_idx < nix_hw->mark_format.in_use; fmt_idx++) { in rvu_nix_reserve_mark_format()
2237 if (nix_hw->mark_format.cfg[fmt_idx] == cfg) in rvu_nix_reserve_mark_format()
2238 return fmt_idx; in rvu_nix_reserve_mark_format()
2240 if (fmt_idx >= nix_hw->mark_format.total) in rvu_nix_reserve_mark_format()
2243 rvu_write64(rvu, blkaddr, NIX_AF_MARK_FORMATX_CTL(fmt_idx), cfg); in rvu_nix_reserve_mark_format()
2244 nix_hw->mark_format.cfg[fmt_idx] = cfg; in rvu_nix_reserve_mark_format()
2246 return fmt_idx; in rvu_nix_reserve_mark_format()