Home
last modified time | relevance | path

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

/drivers/staging/media/atomisp/i2c/
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()
958 dev->fmt_idx = get_resolution_index(fmt->width, fmt->height); in ov2680_set_fmt()
960 __func__, dev->fmt_idx); in ov2680_set_fmt()
961 if (dev->fmt_idx == -1) { in ov2680_set_fmt()
967 __func__, dev->fmt_idx, fmt->width, fmt->height); in ov2680_set_fmt()
971 ret = ov2680_write_reg_array(client, ov2680_res[dev->fmt_idx].regs); in ov2680_set_fmt()
977 &ov2680_res[dev->fmt_idx]); in ov2680_set_fmt()
992 v4l2_info(client, "\n%s idx %d\n", __func__, dev->fmt_idx); in ov2680_set_fmt()
[all …]
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 …]
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()
958 ret = gc0310_write_reg_array(client, gc0310_res[dev->fmt_idx].regs); in startup()
1007 dev->fmt_idx = get_resolution_index(fmt->width, fmt->height); in gc0310_set_fmt()
1008 if (dev->fmt_idx == -1) { in gc0310_set_fmt()
1015 __func__, gc0310_res[dev->fmt_idx].desc); in gc0310_set_fmt()
1023 &gc0310_res[dev->fmt_idx]); in gc0310_set_fmt()
1047 fmt->width = gc0310_res[dev->fmt_idx].width; in gc0310_get_fmt()
1048 fmt->height = gc0310_res[dev->fmt_idx].height; in gc0310_get_fmt()
1202 interval->interval.denominator = gc0310_res[dev->fmt_idx].fps; in gc0310_g_frame_interval()
[all …]
Datomisp-gc2235.c761 ret = gc2235_write_reg_array(client, gc2235_res[dev->fmt_idx].regs); in startup()
806 dev->fmt_idx = get_resolution_index(fmt->width, fmt->height); in gc2235_set_fmt()
807 if (dev->fmt_idx == -1) { in gc2235_set_fmt()
820 &gc2235_res[dev->fmt_idx]); in gc2235_set_fmt()
842 fmt->width = gc2235_res[dev->fmt_idx].width; in gc2235_get_fmt()
843 fmt->height = gc2235_res[dev->fmt_idx].height; in gc2235_get_fmt()
956 interval->interval.denominator = gc2235_res[dev->fmt_idx].fps; in gc2235_g_frame_interval()
994 *frames = gc2235_res[dev->fmt_idx].skip_frames; in gc2235_g_skip_frames()
1058 dev->fmt_idx = 0; in gc2235_probe()
Dov2680.h177 int fmt_idx; member
Dgc0310.h153 int fmt_idx; member
Dgc2235.h164 int fmt_idx; member
Dov2722.h207 int fmt_idx; member
/drivers/staging/media/atomisp/i2c/ov5693/
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 …]
Dov5693.h232 int fmt_idx; member
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c3172 int fmt_idx; in rvu_nix_reserve_mark_format() local
3174 for (fmt_idx = 0; fmt_idx < nix_hw->mark_format.in_use; fmt_idx++) { in rvu_nix_reserve_mark_format()
3175 if (nix_hw->mark_format.cfg[fmt_idx] == cfg) in rvu_nix_reserve_mark_format()
3176 return fmt_idx; in rvu_nix_reserve_mark_format()
3178 if (fmt_idx >= nix_hw->mark_format.total) in rvu_nix_reserve_mark_format()
3181 rvu_write64(rvu, blkaddr, NIX_AF_MARK_FORMATX_CTL(fmt_idx), cfg); in rvu_nix_reserve_mark_format()
3182 nix_hw->mark_format.cfg[fmt_idx] = cfg; in rvu_nix_reserve_mark_format()
3184 return fmt_idx; in rvu_nix_reserve_mark_format()