Home
last modified time | relevance | path

Searched full:isp (Results 1 – 25 of 1065) sorted by relevance

12345678910>>...43

/openbmc/linux/drivers/media/platform/ti/omap3isp/
H A Disp.c3 * isp.c
5 * TI OMAP3 ISP - Core
68 #include "isp.h"
82 static void isp_save_ctx(struct isp_device *isp);
84 static void isp_restore_ctx(struct isp_device *isp);
129 /* Structure for saving/restoring ISP module registers */
139 * @isp: OMAP3 ISP device
147 void omap3isp_flush(struct isp_device *isp) in omap3isp_flush() argument
149 isp_reg_writel(isp, 0, OMAP3_ISP_IOMEM_MAIN, ISP_REVISION); in omap3isp_flush()
150 isp_reg_readl(isp, OMAP3_ISP_IOMEM_MAIN, ISP_REVISION); in omap3isp_flush()
[all …]
H A Disp.h3 * isp.h
5 * TI OMAP3 ISP - Core
37 * terminating token for ISP
85 /* ISP: OMAP 34xx ES 1.0 */
98 * struct isp_res_mapping - Map ISP io resources to ISP revision.
100 * @offset: register offsets of various ISP sub-blocks
110 * struct isp_reg - Structure for ISP register values.
126 struct isp_device *isp; member
137 * struct isp_device - ISP device structure.
138 * @dev: Device pointer specific to the OMAP3 ISP.
[all …]
H A Dispcsi2.c5 * TI OMAP3 ISP - CSI2 module
18 #include "isp.h"
27 static void csi2_if_enable(struct isp_device *isp, in csi2_if_enable() argument
32 isp_reg_clr_set(isp, csi2->regs1, ISPCSI2_CTRL, ISPCSI2_CTRL_IF_EN, in csi2_if_enable()
43 static void csi2_recv_config(struct isp_device *isp, in csi2_recv_config() argument
49 reg = isp_reg_readl(isp, csi2->regs1, ISPCSI2_CTRL); in csi2_recv_config()
74 isp_reg_writel(isp, reg, csi2->regs1, ISPCSI2_CTRL); in csi2_recv_config()
94 * - 2 isp revisions (certain format must be handled differently on OMAP3630)
161 * @csi2: ISP CSI2 device
202 is_3630 = csi2->isp->revision == ISP_REVISION_15_0; in csi2_ctx_map_format()
[all …]
H A Dispccp2.c5 * TI OMAP3 ISP - CCP2 module
22 #include "isp.h"
64 #define CCP2_PRINT_REGISTER(isp, name)\ argument
65 dev_dbg(isp->dev, "###CCP2 " #name "=0x%08x\n", \
66 isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_##name))
70 struct isp_device *isp = to_isp_device(ccp2); in ccp2_print_status() local
72 dev_dbg(isp->dev, "-------------CCP2 Register dump-------------\n"); in ccp2_print_status()
74 CCP2_PRINT_REGISTER(isp, SYSCONFIG); in ccp2_print_status()
75 CCP2_PRINT_REGISTER(isp, SYSSTATUS); in ccp2_print_status()
76 CCP2_PRINT_REGISTER(isp, LC01_IRQENABLE); in ccp2_print_status()
[all …]
H A Disphist.c5 * TI OMAP3 ISP - Histogram module
21 #include "isp.h"
32 struct isp_device *isp = hist->isp; in hist_reset_mem() local
36 isp_reg_writel(isp, 0, OMAP3_ISP_IOMEM_HIST, ISPHIST_ADDR); in hist_reset_mem()
42 isp_reg_set(isp, OMAP3_ISP_IOMEM_HIST, ISPHIST_CNT, ISPHIST_CNT_CLEAR); in hist_reset_mem()
49 isp_reg_readl(isp, OMAP3_ISP_IOMEM_HIST, ISPHIST_DATA); in hist_reset_mem()
50 isp_reg_readl(isp, OMAP3_ISP_IOMEM_HIST, ISPHIST_DATA); in hist_reset_mem()
51 isp_reg_readl(isp, OMAP3_ISP_IOMEM_HIST, ISPHIST_DATA); in hist_reset_mem()
52 isp_reg_readl(isp, OMAP3_ISP_IOMEM_HIST, ISPHIST_DATA); in hist_reset_mem()
54 isp_reg_clr(isp, OMAP3_ISP_IOMEM_HIST, ISPHIST_CNT, ISPHIST_CNT_CLEAR); in hist_reset_mem()
[all …]
H A Dispcsiphy.c5 * TI OMAP3 ISP - CSI PHY module
19 #include "isp.h"
30 regmap_read(phy->isp->syscon, phy->isp->syscon_offset, &reg); in csiphy_routing_cfg_3630()
66 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, reg); in csiphy_routing_cfg_3630()
80 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, 0); in csiphy_routing_cfg_3430()
87 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, csirxfe); in csiphy_routing_cfg_3430()
100 * issue since the MPU power domain is forced on whilst the ISP is in use.
106 if (phy->isp->phy_type == ISP_PHY_TYPE_3630 && on) in csiphy_routing_cfg()
108 if (phy->isp->phy_type == ISP_PHY_TYPE_3430) in csiphy_routing_cfg()
118 isp_reg_clr_set(phy->isp, phy->cfg_regs, ISPCSI2_PHY_CFG, in csiphy_power_autoswitch_enable()
[all …]
H A Disppreview.c5 * TI OMAP3 ISP driver - Preview module
20 #include "isp.h"
152 struct isp_device *isp = to_isp_device(prev); in preview_config_luma_enhancement() local
156 isp_reg_writel(isp, ISPPRV_YENH_TABLE_ADDR, in preview_config_luma_enhancement()
159 isp_reg_writel(isp, yt->table[i], in preview_config_luma_enhancement()
170 struct isp_device *isp = to_isp_device(prev); in preview_enable_luma_enhancement() local
173 isp_reg_set(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR, in preview_enable_luma_enhancement()
176 isp_reg_clr(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR, in preview_enable_luma_enhancement()
185 struct isp_device *isp = to_isp_device(prev); in preview_enable_invalaw() local
188 isp_reg_set(isp, OMAP3_ISP_IOMEM_PREV, ISPPRV_PCR, in preview_enable_invalaw()
[all …]
H A Dispccdc.c5 * TI OMAP3 ISP - CCDC module
24 #include "isp.h"
58 * @ccdc: Pointer to ISP CCDC device.
62 #define CCDC_PRINT_REGISTER(isp, name)\ argument
63 dev_dbg(isp->dev, "###CCDC " #name "=0x%08x\n", \
64 isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCDC, ISPCCDC_##name))
68 struct isp_device *isp = to_isp_device(ccdc); in ccdc_print_status() local
70 dev_dbg(isp->dev, "-------------CCDC Register dump-------------\n"); in ccdc_print_status()
72 CCDC_PRINT_REGISTER(isp, PCR); in ccdc_print_status()
73 CCDC_PRINT_REGISTER(isp, SYN_MODE); in ccdc_print_status()
[all …]
/openbmc/linux/drivers/power/supply/
H A Disp1704_charger.c61 static inline int isp1704_read(struct isp1704_charger *isp, u32 reg) in isp1704_read() argument
63 return usb_phy_io_read(isp->phy, reg); in isp1704_read()
66 static inline int isp1704_write(struct isp1704_charger *isp, u32 reg, u32 val) in isp1704_write() argument
68 return usb_phy_io_write(isp->phy, val, reg); in isp1704_write()
71 static void isp1704_charger_set_power(struct isp1704_charger *isp, bool on) in isp1704_charger_set_power() argument
73 gpiod_set_value(isp->enable_gpio, on); in isp1704_charger_set_power()
83 static inline int isp1704_charger_type(struct isp1704_charger *isp) in isp1704_charger_type() argument
90 func_ctrl = isp1704_read(isp, ULPI_FUNC_CTRL); in isp1704_charger_type()
91 otg_ctrl = isp1704_read(isp, ULPI_OTG_CTRL); in isp1704_charger_type()
95 isp1704_write(isp, ULPI_CLR(ULPI_OTG_CTRL), reg); in isp1704_charger_type()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/
H A DMakefile52 pci/isp/kernels/aa/aa_2/ia_css_aa2.host.o \
53 pci/isp/kernels/anr/anr_1.0/ia_css_anr.host.o \
54 pci/isp/kernels/anr/anr_2/ia_css_anr2.host.o \
55 pci/isp/kernels/anr/anr_2/ia_css_anr2_table.host.o \
56 pci/isp/kernels/bh/bh_2/ia_css_bh.host.o \
57 pci/isp/kernels/bnlm/ia_css_bnlm.host.o \
58 pci/isp/kernels/bnr/bnr_1.0/ia_css_bnr.host.o \
59 pci/isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.o \
60 pci/isp/kernels/cnr/cnr_1.0/ia_css_cnr.host.o \
61 pci/isp/kernels/cnr/cnr_2/ia_css_cnr2.host.o \
[all …]
/openbmc/linux/drivers/media/platform/renesas/
H A Drcar-isp.c5 * Driver for Renesas R-Car ISP Channel Selector
7 * The ISP hardware is capable of more than just channel selection, features
140 static void risp_write(struct rcar_isp *isp, u32 offset, u32 value) in risp_write() argument
142 iowrite32(value, isp->base + offset); in risp_write()
145 static u32 risp_read(struct rcar_isp *isp, u32 offset) in risp_read() argument
147 return ioread32(isp->base + offset); in risp_read()
150 static int risp_power_on(struct rcar_isp *isp) in risp_power_on() argument
154 ret = pm_runtime_resume_and_get(isp->dev); in risp_power_on()
158 ret = reset_control_deassert(isp->rstc); in risp_power_on()
160 pm_runtime_put(isp->dev); in risp_power_on()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_v4l2.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
86 output res, and isp output res. however since we do not have this yet,
90 MODULE_PARM_DESC(pad_w, "extra data for ISP processing");
94 MODULE_PARM_DESC(pad_h, "extra data for ISP processing");
350 video->vdev.lock = &video->isp->mutex; in atomisp_video_init()
352 video_set_drvdata(&video->vdev, video->isp); in atomisp_video_init()
365 static int atomisp_save_iunit_reg(struct atomisp_device *isp) in atomisp_save_iunit_reg() argument
367 struct pci_dev *pdev = to_pci_dev(isp->dev); in atomisp_save_iunit_reg()
369 dev_dbg(isp->dev, "%s\n", __func__); in atomisp_save_iunit_reg()
371 pci_read_config_word(pdev, PCI_COMMAND, &isp->saved_regs.pcicmdsts); in atomisp_save_iunit_reg()
[all …]
H A Datomisp_compat_css20.c3 * Support for Clovertrail PNW Camera Imaging ISP subsystem.
70 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_store_8() local
74 writeb(data, isp->base + (addr & 0x003FFFFF)); in atomisp_css2_hw_store_8()
80 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_store_16() local
84 writew(data, isp->base + (addr & 0x003FFFFF)); in atomisp_css2_hw_store_16()
90 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_store_32() local
94 writel(data, isp->base + (addr & 0x003FFFFF)); in atomisp_css2_hw_store_32()
100 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_load_8() local
105 ret = readb(isp->base + (addr & 0x003FFFFF)); in atomisp_css2_hw_load_8()
112 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_load_16() local
[all …]
H A Dia_css_dvs.h3 * Support for Intel Camera Imaging ISP subsystem.
34 /* Structure that holds DVS statistics in the ISP internal
48 /* Structure that holds SKC DVS statistics in the ISP internal
58 /* Map with host-side pointers to ISP-format statistics.
59 * These pointers can either be copies of ISP data or memory mapped
60 * ISP pointers.
84 /* @brief Copy DVS statistics from an ISP buffer to a host buffer.
86 * @param[in] isp_stats ISP buffer
90 * on the ISP version.
95 * advised to map the ISP memory into a host-side pointer and use
[all …]
H A Datomisp_ioctl.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
42 static const char *CARD = "ATOM ISP"; /* max size 31 */
45 * FIXME: ISP should not know beforehand all CIDs supported by sensor.
521 lockdep_assert_held(&pipe->isp->mutex); in atomisp_pipe_check()
523 if (pipe->isp->isp_fatal_error) in atomisp_pipe_check()
527 dev_err(pipe->isp->dev, "Set fmt/input IOCTL while streaming\n"); in atomisp_pipe_check()
536 * return ISP capabilities
542 struct atomisp_device *isp = video_get_drvdata(vdev); in atomisp_querycap() local
546 snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", dev_name(isp->dev)); in atomisp_querycap()
558 struct atomisp_device *isp = video_get_drvdata(vdev); in atomisp_enum_input() local
[all …]
H A Dia_css_types.h4 * Support for Intel Camera Imaging ISP subsystem.
31 #include "isp/kernels/aa/aa_2/ia_css_aa2_types.h"
32 #include "isp/kernels/anr/anr_1.0/ia_css_anr_types.h"
33 #include "isp/kernels/anr/anr_2/ia_css_anr2_types.h"
34 #include "isp/kernels/cnr/cnr_2/ia_css_cnr2_types.h"
35 #include "isp/kernels/csc/csc_1.0/ia_css_csc_types.h"
36 #include "isp/kernels/ctc/ctc_1.0/ia_css_ctc_types.h"
37 #include "isp/kernels/dp/dp_1.0/ia_css_dp_types.h"
38 #include "isp/kernels/de/de_1.0/ia_css_de_types.h"
39 #include "isp/kernels/de/de_2/ia_css_de2_types.h"
[all …]
H A Datomisp_cmd.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
103 struct atomisp_device *isp = asd->isp; in atomisp_get_sensor_fps() local
108 ret = v4l2_subdev_call(isp->inputs[asd->input_curr].camera, in atomisp_get_sensor_fps()
119 * 1. Target frequency is calculated according to FPS/Resolution/ISP running
128 static int write_target_freq_to_hw(struct atomisp_device *isp, in write_target_freq_to_hw() argument
135 if (!isp->hpll_freq) { in write_target_freq_to_hw()
136 dev_err(isp->dev, "failed to get hpll_freq. no change to freq\n"); in write_target_freq_to_hw()
142 dev_dbg(isp->dev, "clearing ISPSSPM1 valid bit.\n"); in write_target_freq_to_hw()
147 ratio = (2 * isp->hpll_freq + new_freq / 2) / new_freq - 1; in write_target_freq_to_hw()
148 guar_ratio = (2 * isp->hpll_freq + 200 / 2) / 200 - 1; in write_target_freq_to_hw()
[all …]
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-is-param.c63 __hw_param_copy(&par->isp.control, &cfg->isp.control); in __fimc_is_hw_update_param()
67 __hw_param_copy(&par->isp.otf_input, &cfg->isp.otf_input); in __fimc_is_hw_update_param()
71 __hw_param_copy(&par->isp.dma1_input, &cfg->isp.dma1_input); in __fimc_is_hw_update_param()
75 __hw_param_copy(&par->isp.dma2_input, &cfg->isp.dma2_input); in __fimc_is_hw_update_param()
79 __hw_param_copy(&par->isp.aa, &cfg->isp.aa); in __fimc_is_hw_update_param()
83 __hw_param_copy(&par->isp.flash, &cfg->isp.flash); in __fimc_is_hw_update_param()
87 __hw_param_copy(&par->isp.awb, &cfg->isp.awb); in __fimc_is_hw_update_param()
91 __hw_param_copy(&par->isp.effect, &cfg->isp.effect); in __fimc_is_hw_update_param()
95 __hw_param_copy(&par->isp.iso, &cfg->isp.iso); in __fimc_is_hw_update_param()
99 __hw_param_copy(&par->isp.adjust, &cfg->isp.adjust); in __fimc_is_hw_update_param()
[all …]
H A Dfimc-isp-video.c5 * FIMC-IS ISP video input and video output DMA interface driver
35 #include "fimc-isp-video.h"
42 struct fimc_isp *isp = vb2_get_drv_priv(vq); in isp_video_capture_queue_setup() local
43 struct v4l2_pix_format_mplane *vid_fmt = &isp->video_capture.pixfmt; in isp_video_capture_queue_setup()
44 const struct fimc_fmt *fmt = isp->video_capture.format; in isp_video_capture_queue_setup()
73 return &__get_curr_is_config(is)->isp.dma2_output; in __get_isp_dma2()
79 struct fimc_isp *isp = vb2_get_drv_priv(q); in isp_video_capture_start_streaming() local
80 struct fimc_is *is = fimc_isp_to_is(isp); in isp_video_capture_start_streaming()
82 struct fimc_is_video *video = &isp->video_capture; in isp_video_capture_start_streaming()
85 if (!test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state) || in isp_video_capture_start_streaming()
[all …]
H A Dfimc-isp.c25 #include "fimc-isp-video.h"
125 struct fimc_isp *isp = v4l2_get_subdevdata(sd); in fimc_isp_subdev_get_fmt() local
135 mutex_lock(&isp->subdev_lock); in fimc_isp_subdev_get_fmt()
138 /* ISP OTF input image format */ in fimc_isp_subdev_get_fmt()
139 *mf = isp->sink_fmt; in fimc_isp_subdev_get_fmt()
141 /* ISP OTF output image format */ in fimc_isp_subdev_get_fmt()
142 *mf = isp->src_fmt; in fimc_isp_subdev_get_fmt()
150 mutex_unlock(&isp->subdev_lock); in fimc_isp_subdev_get_fmt()
158 static void __isp_subdev_try_format(struct fimc_isp *isp, in __isp_subdev_try_format() argument
175 format = v4l2_subdev_get_try_format(&isp->subdev, in __isp_subdev_try_format()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
H A Disp_public.h3 * Support for Intel Camera Imaging ISP subsystem.
22 /*! Enable or disable the program complete irq signal of ISP[ID]
27 \return none, if(cnd) enable(ISP[ID].irq) else disable(ISP[ID].irq)
33 /*! Read the state of cell ISP[ID]
35 \param ID[in] ISP identifier
36 \param state[out] isp state structure
37 \param stall[out] isp stall conditions
39 \return none, state = ISP[ID].state, stall = ISP[ID].stall
46 /*! Write to the status and control register of ISP[ID]
48 \param ID[in] ISP identifier
[all …]
/openbmc/linux/drivers/usb/phy/
H A Dphy-isp1301.c41 static int __isp1301_write(struct isp1301 *isp, u8 reg, u8 value, u8 clear) in __isp1301_write() argument
43 return i2c_smbus_write_byte_data(isp->client, reg | clear, value); in __isp1301_write()
46 static int isp1301_write(struct isp1301 *isp, u8 reg, u8 value) in isp1301_write() argument
48 return __isp1301_write(isp, reg, value, 0); in isp1301_write()
51 static int isp1301_clear(struct isp1301 *isp, u8 reg, u8 value) in isp1301_clear() argument
53 return __isp1301_write(isp, reg, value, ISP1301_I2C_REG_CLEAR_ADDR); in isp1301_clear()
58 struct isp1301 *isp = phy_to_isp(phy); in isp1301_phy_init() local
61 isp1301_clear(isp, ISP1301_I2C_MODE_CONTROL_1, MC1_UART_EN); in isp1301_phy_init()
62 isp1301_clear(isp, ISP1301_I2C_MODE_CONTROL_1, ~MC1_SPEED_REG); in isp1301_phy_init()
63 isp1301_write(isp, ISP1301_I2C_MODE_CONTROL_1, MC1_SPEED_REG); in isp1301_phy_init()
[all …]
/openbmc/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-isp.c3 * Rockchip ISP1 Driver - ISP Subdevice
27 * This is because ISP Subdev describes not only ISP submodule (input size,
37 * Cropping regions of ISP
61 rkisp1_isp_get_pad_fmt(struct rkisp1_isp *isp, in rkisp1_isp_get_pad_fmt() argument
66 .pads = isp->pad_cfg in rkisp1_isp_get_pad_fmt()
70 return v4l2_subdev_get_try_format(&isp->sd, sd_state, pad); in rkisp1_isp_get_pad_fmt()
72 return v4l2_subdev_get_try_format(&isp->sd, &state, pad); in rkisp1_isp_get_pad_fmt()
76 rkisp1_isp_get_pad_crop(struct rkisp1_isp *isp, in rkisp1_isp_get_pad_crop() argument
81 .pads = isp->pad_cfg in rkisp1_isp_get_pad_crop()
85 return v4l2_subdev_get_try_crop(&isp->sd, sd_state, pad); in rkisp1_isp_get_pad_crop()
[all …]
/openbmc/linux/drivers/staging/media/ipu3/
H A Dipu3-css-fw.c24 bi->info.isp.sp.id, bi->info.isp.sp.pipeline.mode, in imgu_css_fw_show_binary()
25 bi->info.isp.sp.bds.supported_bds_factors, in imgu_css_fw_show_binary()
26 bi->info.isp.sp.enable.vf_veceven, in imgu_css_fw_show_binary()
27 bi->info.isp.sp.vf_dec.is_variable, in imgu_css_fw_show_binary()
28 bi->info.isp.num_output_pins); in imgu_css_fw_show_binary()
31 bi->info.isp.sp.input.min_width, in imgu_css_fw_show_binary()
32 bi->info.isp.sp.input.min_height, in imgu_css_fw_show_binary()
33 bi->info.isp.sp.input.max_width, in imgu_css_fw_show_binary()
34 bi->info.isp.sp.input.max_height, in imgu_css_fw_show_binary()
35 bi->info.isp.sp.enable.input_yuv ? "yuv420 " : "", in imgu_css_fw_show_binary()
[all …]
/openbmc/linux/Documentation/admin-guide/media/
H A Domap3isp.rst5 OMAP 3 Image Signal Processor (ISP) driver
19 This file documents the Texas Instruments OMAP 3 Image Signal Processor (ISP)
38 The OMAP 3 ISP is split into V4L2 subdevs, each of the blocks inside the ISP
42 - OMAP3 ISP CCP2
43 - OMAP3 ISP CSI2a
44 - OMAP3 ISP CCDC
45 - OMAP3 ISP preview
46 - OMAP3 ISP resizer
47 - OMAP3 ISP AEWB
48 - OMAP3 ISP AF
[all …]

12345678910>>...43