/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
H A D | ispp.c | 186 struct v4l2_subdev_selection *sel) in rkispp_sd_get_selection() 192 if (!sel) { in rkispp_sd_get_selection() 195 if (sel->pad != RKISPP_PAD_SINK) { in rkispp_sd_get_selection() 199 crop = &sel->r; in rkispp_sd_get_selection() 200 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in rkispp_sd_get_selection() 204 crop = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in rkispp_sd_get_selection() 215 ret = v4l2_subdev_call(ispp_sdev->remote_sd, pad, get_selection, cfg, sel); in rkispp_sd_get_selection() 216 if (!ret && sel->target == V4L2_SEL_TGT_CROP) { in rkispp_sd_get_selection() 227 struct v4l2_subdev_selection *sel) in rkispp_sd_set_selection() 233 if (!sel) { in rkispp_sd_set_selection() 185 rkispp_sd_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkispp_sd_get_selection() argument 226 rkispp_sd_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkispp_sd_set_selection() argument 344 struct v4l2_subdev_selection sel; rkispp_sd_s_power() local [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/ |
H A D | ispp.c | 188 struct v4l2_subdev_selection *sel) in rkispp_sd_get_selection() 194 if (!sel) in rkispp_sd_get_selection() 196 if (sel->pad != RKISPP_PAD_SINK) in rkispp_sd_get_selection() 199 crop = &sel->r; in rkispp_sd_get_selection() 200 if (sel->which == V4L2_SUBDEV_FORMAT_TRY) { in rkispp_sd_get_selection() 203 crop = v4l2_subdev_get_try_crop(sd, cfg, sel->pad); in rkispp_sd_get_selection() 215 pad, get_selection, cfg, sel); in rkispp_sd_get_selection() 216 if (!ret && sel->target == V4L2_SEL_TGT_CROP) { in rkispp_sd_get_selection() 228 struct v4l2_subdev_selection *sel) in rkispp_sd_set_selection() 234 if (!sel) in rkispp_sd_set_selection() 186 rkispp_sd_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkispp_sd_get_selection() argument 226 rkispp_sd_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkispp_sd_set_selection() argument 341 struct v4l2_subdev_selection sel; rkispp_sd_s_power() local [all...] |
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/ |
H A D | mipi-csi2.c | 374 struct v4l2_subdev_selection *sel)
in csi2_get_selection() 381 if (!sel) {
in csi2_get_selection() 382 v4l2_dbg(1, csi2_debug, &csi2->sd, "sel is null\n");
in csi2_get_selection() 386 if (sel->pad > RK_CSI2X_PAD_SOURCE3) {
in csi2_get_selection() 387 v4l2_dbg(1, csi2_debug, &csi2->sd, "pad[%d] isn't matched\n", sel->pad);
in csi2_get_selection() 391 switch (sel->target) {
in csi2_get_selection() 393 if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
in csi2_get_selection() 394 sel->pad = 0;
in csi2_get_selection() 395 ret = v4l2_subdev_call(sensor, pad, get_selection, cfg, sel);
in csi2_get_selection() 402 sel in csi2_get_selection() 373 csi2_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_get_selection() argument 431 csi2_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_set_selection() argument [all...] |
H A D | procfs.c | 250 struct v4l2_subdev_selection *sel = &sensor->selection; in rkcif_show_format() local 297 seq_printf(f, "\tcrop.bounds:(%u, %u)/%ux%u\n", sel->r.left, sel->r.top, sel->r.width, sel->r.height); in rkcif_show_format()
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/ |
H A D | mipi-csi2.c | 373 struct v4l2_subdev_selection *sel) in csi2_get_selection() 380 if (!sel) { in csi2_get_selection() 381 v4l2_dbg(1, csi2_debug, &csi2->sd, "sel is null\n"); in csi2_get_selection() 385 if (sel->pad > RK_CSI2X_PAD_SOURCE3) { in csi2_get_selection() 386 v4l2_dbg(1, csi2_debug, &csi2->sd, "pad[%d] isn't matched\n", sel->pad); in csi2_get_selection() 390 switch (sel->target) { in csi2_get_selection() 392 if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) { in csi2_get_selection() 393 sel->pad = 0; in csi2_get_selection() 395 cfg, sel); in csi2_get_selection() 402 sel in csi2_get_selection() 371 csi2_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_get_selection() argument 431 csi2_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_set_selection() argument [all...] |
H A D | procfs.c | 251 struct v4l2_subdev_selection *sel = &sensor->selection; in rkcif_show_format() local 301 sel->r.left, sel->r.top, in rkcif_show_format() 302 sel->r.width, sel->r.height); in rkcif_show_format()
|
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/ |
H A D | v4l2core.h | 32 struct v4l2_subdev_selection *sel, int *ret), 33 TP_ARGS(sd, pad, sel, ret)); 49 struct v4l2_subdev_selection *sel, int *ret), 50 TP_ARGS(sd, pad, sel, ret), 1);
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
H A D | capture.c | 1435 static int rkisp_g_selection(struct file *file, void *prv, struct v4l2_selection *sel)
in rkisp_g_selection() argument 1444 switch (sel->target) {
in rkisp_g_selection() 1446 sel->r.width = input_win->width;
in rkisp_g_selection() 1447 sel->r.height = input_win->height;
in rkisp_g_selection() 1448 sel->r.left = 0;
in rkisp_g_selection() 1449 sel->r.top = 0;
in rkisp_g_selection() 1452 sel->r = *dcrop;
in rkisp_g_selection() 1461 static struct v4l2_rect *rkisp_update_crop(struct rkisp_stream *stream, struct v4l2_rect *sel,
in rkisp_update_crop() argument 1472 sel->left = 0;
in rkisp_update_crop() 1473 sel in rkisp_update_crop() 1493 rkisp_s_selection(struct file *file, void *prv, struct v4l2_selection *sel) rkisp_s_selection() argument [all...] |
H A D | dev.c | 412 struct v4l2_subdev_selection sel; in _set_pipeline_default_fmt() local 428 rkisp_align_sensor_resolution(dev, &sel.r, false); in _set_pipeline_default_fmt() 429 width = sel.r.width; in _set_pipeline_default_fmt() 430 height = sel.r.height; in _set_pipeline_default_fmt() 431 sel.target = V4L2_SEL_TGT_CROP; in _set_pipeline_default_fmt() 432 sel.which = V4L2_SUBDEV_FORMAT_ACTIVE; in _set_pipeline_default_fmt() 433 sel.pad = RKISP_ISP_PAD_SINK; in _set_pipeline_default_fmt() 435 v4l2_subdev_call(isp, pad, set_selection, NULL, &sel); in _set_pipeline_default_fmt() 442 sel.r.left = 0; in _set_pipeline_default_fmt() 443 sel in _set_pipeline_default_fmt() [all...] |
H A D | rkisp.c | 193 struct v4l2_subdev_selection sel;
in rkisp_align_sensor_resolution() local 233 sel.pad = 0;
in rkisp_align_sensor_resolution() 234 sel.which = V4L2_SUBDEV_FORMAT_ACTIVE;
in rkisp_align_sensor_resolution() 235 sel.target = V4L2_SEL_TGT_CROP;
in rkisp_align_sensor_resolution() 237 ret = v4l2_subdev_call(sensor, pad, get_selection, NULL, &sel);
in rkisp_align_sensor_resolution() 241 crop->width = clamp_t(u32, sel.r.width, CIF_ISP_INPUT_W_MIN, w);
in rkisp_align_sensor_resolution() 242 crop->height = clamp_t(u32, sel.r.height, CIF_ISP_INPUT_H_MIN, h);
in rkisp_align_sensor_resolution() 247 sel.target = V4L2_SEL_TGT_CROP_BOUNDS;
in rkisp_align_sensor_resolution() 249 ret = v4l2_subdev_call(sensor, pad, get_selection, NULL, &sel);
in rkisp_align_sensor_resolution() 251 crop->left = ALIGN(sel in rkisp_align_sensor_resolution() 2322 rkisp_isp_sd_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkisp_isp_sd_get_selection() argument 2390 rkisp_isp_sd_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkisp_isp_sd_set_selection() argument [all...] |
H A D | bridge.c | 324 struct v4l2_subdev_selection *sel) in bridge_set_selection() 332 if (!sel) { in bridge_set_selection() 335 if (sel->target != V4L2_SEL_TGT_CROP) { in bridge_set_selection() 339 crop = &sel->r; in bridge_set_selection() 350 struct v4l2_subdev_selection *sel) in bridge_get_selection() 356 if (!sel) { in bridge_get_selection() 360 crop = &sel->r; in bridge_get_selection() 361 switch (sel->target) { in bridge_get_selection() 323 bridge_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) bridge_set_selection() argument 349 bridge_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) bridge_get_selection() argument
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
H A D | capture.c | 1455 struct v4l2_selection *sel) in rkisp_g_selection() 1464 switch (sel->target) { in rkisp_g_selection() 1466 sel->r.width = input_win->width; in rkisp_g_selection() 1467 sel->r.height = input_win->height; in rkisp_g_selection() 1468 sel->r.left = 0; in rkisp_g_selection() 1469 sel->r.top = 0; in rkisp_g_selection() 1472 sel->r = *dcrop; in rkisp_g_selection() 1482 struct v4l2_rect *sel, in rkisp_update_crop() 1496 sel->left = 0; in rkisp_update_crop() 1497 sel in rkisp_update_crop() 1454 rkisp_g_selection(struct file *file, void *prv, struct v4l2_selection *sel) rkisp_g_selection() argument 1481 rkisp_update_crop(struct rkisp_stream *stream, struct v4l2_rect *sel, const struct v4l2_rect *in) rkisp_update_crop() argument 1522 rkisp_s_selection(struct file *file, void *prv, struct v4l2_selection *sel) rkisp_s_selection() argument [all...] |
H A D | dev.c | 380 struct v4l2_subdev_selection sel; in _set_pipeline_default_fmt() local 395 rkisp_align_sensor_resolution(dev, &sel.r, false); in _set_pipeline_default_fmt() 396 width = sel.r.width; in _set_pipeline_default_fmt() 397 height = sel.r.height; in _set_pipeline_default_fmt() 398 sel.target = V4L2_SEL_TGT_CROP; in _set_pipeline_default_fmt() 399 sel.which = V4L2_SUBDEV_FORMAT_ACTIVE; in _set_pipeline_default_fmt() 400 sel.pad = RKISP_ISP_PAD_SINK; in _set_pipeline_default_fmt() 402 v4l2_subdev_call(isp, pad, set_selection, NULL, &sel); in _set_pipeline_default_fmt() 408 sel.r.left = 0; in _set_pipeline_default_fmt() 409 sel in _set_pipeline_default_fmt() [all...] |
H A D | rkisp.c | 189 struct v4l2_subdev_selection sel; in rkisp_align_sensor_resolution() local 245 sel.pad = 0; in rkisp_align_sensor_resolution() 246 sel.which = V4L2_SUBDEV_FORMAT_ACTIVE; in rkisp_align_sensor_resolution() 247 sel.target = V4L2_SEL_TGT_CROP; in rkisp_align_sensor_resolution() 249 ret = v4l2_subdev_call(sensor, pad, get_selection, NULL, &sel); in rkisp_align_sensor_resolution() 253 crop->width = clamp_t(u32, sel.r.width, in rkisp_align_sensor_resolution() 255 crop->height = clamp_t(u32, sel.r.height, in rkisp_align_sensor_resolution() 261 sel.target = V4L2_SEL_TGT_CROP_BOUNDS; in rkisp_align_sensor_resolution() 263 ret = v4l2_subdev_call(sensor, pad, get_selection, NULL, &sel); in rkisp_align_sensor_resolution() 265 crop->left = ALIGN(sel in rkisp_align_sensor_resolution() 2336 rkisp_isp_sd_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkisp_isp_sd_get_selection() argument 2404 rkisp_isp_sd_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkisp_isp_sd_set_selection() argument [all...] |
H A D | bridge.c | 333 struct v4l2_subdev_selection *sel) in bridge_set_selection() 341 if (!sel) in bridge_set_selection() 343 if (sel->target != V4L2_SEL_TGT_CROP) in bridge_set_selection() 346 crop = &sel->r; in bridge_set_selection() 360 struct v4l2_subdev_selection *sel) in bridge_get_selection() 366 if (!sel) in bridge_get_selection() 369 crop = &sel->r; in bridge_get_selection() 370 switch (sel->target) { in bridge_get_selection() 331 bridge_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) bridge_set_selection() argument 358 bridge_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) bridge_get_selection() argument
|
/device/soc/rockchip/common/vendor/drivers/rockchip/ |
H A D | rockchip_opp_select.c | 39 int sel;
member 44 int sel;
member 159 of_property_read_u32_index(np, porp_name, 0x03 * i + 0x02, &sel_table[i].sel);
in rockchip_get_sel_table() 163 sel_table[i].sel = SEL_TABLE_END;
in rockchip_get_sel_table() 201 of_property_read_u32_index(np, porp_name, 0x02 * i + 1, &sel_table[i].sel);
in rockchip_get_bin_sel_table() 205 sel_table[i].sel = SEL_TABLE_END;
in rockchip_get_bin_sel_table() 212 static int rockchip_get_sel(struct device_node *np, char *name, int value, int *sel)
in rockchip_get_sel() argument 217 if (!sel) {
in rockchip_get_sel() 225 for (i = 0; table[i].sel != SEL_TABLE_END; i++) {
in rockchip_get_sel() 227 *sel in rockchip_get_sel() 236 rockchip_get_bin_sel(struct device_node *np, char *name, int value, int *sel) rockchip_get_bin_sel() argument [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/ |
H A D | rockchip_opp_select.c | 40 int sel; member 45 int sel; member 198 &sel_table[i].sel); in rockchip_get_sel_table() 202 sel_table[i].sel = SEL_TABLE_END; in rockchip_get_sel_table() 238 &sel_table[i].sel); in rockchip_get_bin_sel_table() 242 sel_table[i].sel = SEL_TABLE_END; in rockchip_get_bin_sel_table() 250 int value, int *sel) in rockchip_get_sel() 255 if (!sel) in rockchip_get_sel() 261 for (i = 0; table[i].sel != SEL_TABLE_END; i++) { in rockchip_get_sel() 263 *sel in rockchip_get_sel() 249 rockchip_get_sel(struct device_node *np, char *name, int value, int *sel) rockchip_get_sel() argument 272 rockchip_get_bin_sel(struct device_node *np, char *name, int value, int *sel) rockchip_get_bin_sel() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/regulator/ |
H A D | rk808-regulator.c | 223 static int rk808_buck1_2_i2c_set_voltage_sel(struct regulator_dev *rdev, unsigned sel)
in rk808_buck1_2_i2c_set_voltage_sel() argument 236 delta_sel = sel - old_sel;
in rk808_buck1_2_i2c_set_voltage_sel() 255 delta_sel = sel - old_sel;
in rk808_buck1_2_i2c_set_voltage_sel() 258 sel <<= ffs(mask) - 1;
in rk808_buck1_2_i2c_set_voltage_sel() 259 val = tmp | sel;
in rk808_buck1_2_i2c_set_voltage_sel() 280 static int rk816_regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned int sel)
in rk816_regulator_set_voltage_sel_regmap() argument 288 sel <<= ffs(rdev->desc->vsel_mask) - 1;
in rk816_regulator_set_voltage_sel_regmap() 291 if (sel > 0x17) {
in rk816_regulator_set_voltage_sel_regmap() 299 ret = regmap_update_bits(rdev->regmap, rdev->desc->vsel_reg, rdev->desc->vsel_mask, sel);
in rk816_regulator_set_voltage_sel_regmap() 314 } while ((sel ! in rk816_regulator_set_voltage_sel_regmap() 323 rk808_buck1_2_set_voltage_sel(struct regulator_dev *rdev, unsigned sel) rk808_buck1_2_set_voltage_sel() argument 466 int sel = regulator_map_voltage_linear(rdev, uv, uv); rk808_set_suspend_voltage() local 477 int sel = regulator_map_voltage_linear_range(rdev, uv, uv); rk808_set_suspend_voltage_range() local [all...] |
/device/soc/rockchip/common/sdk_linux/include/linux/regulator/ |
H A D | driver.h | 492 int regulator_set_voltage_sel_pickable_regmap(struct regulator_dev *rdev, unsigned int sel); 494 int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel);
|
/device/soc/rockchip/rk3588/kernel/drivers/regulator/ |
H A D | rk806-regulator.c | 684 int sel = regulator_map_voltage_linear_range(rdev, uv, uv); in rk806_set_suspend_voltage_range() local 690 if (sel < 0) in rk806_set_suspend_voltage_range() 698 sel); in rk806_set_suspend_voltage_range() 726 int sel; in rk806_set_voltage() local 731 sel = ret; in rk806_set_voltage() 738 sel <<= ffs(rdev->desc->vsel_mask) - 1; in rk806_set_voltage() 741 rdev->desc->vsel_mask, sel); in rk806_set_voltage()
|
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/ |
H A D | clk-pll.c | 46 int sel; member 95 int rockchip_pll_clk_adaptive_scaling(struct clk *clk, int sel) in rockchip_pll_clk_adaptive_scaling() argument 109 pll->sel = sel; in rockchip_pll_clk_adaptive_scaling() 347 if (i < pll->sel) { in rockchip_get_pll_settings() 349 return &rate_table[pll->sel]; in rockchip_get_pll_settings() 467 if (pll->sel && pll->scaling) { in rockchip_rk3036_pll_recalc_rate() 692 if (pll->sel && pll->scaling) { in rockchip_rk3066_pll_recalc_rate() 923 if (pll->sel && pll->scaling) { in rockchip_rk3399_pll_recalc_rate()
|
/device/soc/rockchip/common/vendor/drivers/phy/ |
H A D | phy-rockchip-mipi-rx.c | 952 struct v4l2_subdev_selection *sel)
in mipidphy_get_selection() 956 return v4l2_subdev_call(sensor, pad, get_selection, NULL, sel);
in mipidphy_get_selection() 1064 u8 val, sel;
in rv1126_mipidphy_individual_init() local 1072 sel = !priv->phy_index ? 0 : RV1126_GRF_PHY1_SEL_ISP;
in rv1126_mipidphy_individual_init() 1074 sel = !priv->phy_index ? 0 : RV1126_GRF_PHY1_SEL_CIF | RV1126_GRF_PHY1_SEL_CIFLITE;
in rv1126_mipidphy_individual_init() 1077 write_grf_reg(priv, GRF_DPHY_SEL, val | sel);
in rv1126_mipidphy_individual_init() 951 mipidphy_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) mipidphy_get_selection() argument
|
H A D | phy-rockchip-csi2-dphy.c | 293 struct v4l2_subdev_selection *sel)
in csi2_dphy_get_selection() 297 return v4l2_subdev_call(sensor, pad, get_selection, NULL, sel);
in csi2_dphy_get_selection() 292 csi2_dphy_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_dphy_get_selection() argument
|
/device/soc/rockchip/rk3588/kernel/drivers/media/i2c/ |
H A D | ov13855.c | 1681 struct v4l2_subdev_selection *sel) in ov13855_get_selection() 1685 if (sel->target == V4L2_SEL_TGT_CROP_BOUNDS) { in ov13855_get_selection() 1686 sel->r.left = 0; in ov13855_get_selection() 1687 sel->r.width = ov13855->cur_mode->width; in ov13855_get_selection() 1688 sel->r.top = 0; in ov13855_get_selection() 1689 sel->r.height = ov13855->cur_mode->height; in ov13855_get_selection() 1679 ov13855_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) ov13855_get_selection() argument
|
/device/soc/rockchip/rk3588/kernel/drivers/phy/rockchip/ |
H A D | phy-rockchip-mipi-rx.c | 958 struct v4l2_subdev_selection *sel) in mipidphy_get_selection() 962 return v4l2_subdev_call(sensor, pad, get_selection, NULL, sel); in mipidphy_get_selection() 1090 u8 val, sel; in rv1126_mipidphy_individual_init() local 1099 sel = !priv->phy_index ? 0 : RV1126_GRF_PHY1_SEL_ISP; in rv1126_mipidphy_individual_init() 1101 sel = !priv->phy_index ? 0 : in rv1126_mipidphy_individual_init() 1104 write_grf_reg(priv, GRF_DPHY_SEL, val | sel); in rv1126_mipidphy_individual_init() 956 mipidphy_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) mipidphy_get_selection() argument
|