Home
last modified time | relevance | path

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

12345678910>>...40

/Linux-v6.1/drivers/media/platform/ti/omap3isp/
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
/Linux-v6.1/drivers/power/supply/
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 …]
/Linux-v6.1/drivers/staging/media/atomisp/
DMakefile51 pci/isp/kernels/aa/aa_2/ia_css_aa2.host.o \
52 pci/isp/kernels/anr/anr_1.0/ia_css_anr.host.o \
53 pci/isp/kernels/anr/anr_2/ia_css_anr2.host.o \
54 pci/isp/kernels/anr/anr_2/ia_css_anr2_table.host.o \
55 pci/isp/kernels/bh/bh_2/ia_css_bh.host.o \
56 pci/isp/kernels/bnlm/ia_css_bnlm.host.o \
57 pci/isp/kernels/bnr/bnr_1.0/ia_css_bnr.host.o \
58 pci/isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.o \
59 pci/isp/kernels/cnr/cnr_1.0/ia_css_cnr.host.o \
60 pci/isp/kernels/cnr/cnr_2/ia_css_cnr2.host.o \
[all …]
/Linux-v6.1/drivers/usb/phy/
Dphy-isp1301-omap.c3 * isp1301_omap - ISP 1301 USB transceiver, talking to OMAP OTG controller
55 # define WORK_UPDATE_ISP 0 /* update ISP from OTG */
56 # define WORK_UPDATE_OTG 1 /* update OTG from ISP */
98 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) in enable_vbus_draw() argument
107 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) in enable_vbus_draw() argument
117 static void enable_vbus_source(struct isp1301 *isp) in enable_vbus_source() argument
126 static inline void notresponding(struct isp1301 *isp) in notresponding() argument
139 isp1301_get_u8(struct isp1301 *isp, u8 reg) in isp1301_get_u8() argument
141 return i2c_smbus_read_byte_data(isp->client, reg + 0); in isp1301_get_u8()
145 isp1301_get_u16(struct isp1301 *isp, u8 reg) in isp1301_get_u16() argument
[all …]
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 …]
/Linux-v6.1/drivers/staging/media/atomisp/pci/
Datomisp_v4l2.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
90 output res, and isp output res. however since we do not have this yet,
94 MODULE_PARM_DESC(pad_w, "extra data for ISP processing");
98 MODULE_PARM_DESC(pad_h, "extra data for ISP processing");
444 video->vdev.lock = &video->isp->mutex; in atomisp_video_init()
456 "ATOMISP ISP %s %s", name, direction); in atomisp_video_init()
458 video_set_drvdata(&video->vdev, video->isp); in atomisp_video_init()
472 static int atomisp_save_iunit_reg(struct atomisp_device *isp) in atomisp_save_iunit_reg() argument
474 struct pci_dev *pdev = to_pci_dev(isp->dev); in atomisp_save_iunit_reg()
476 dev_dbg(isp->dev, "%s\n", __func__); in atomisp_save_iunit_reg()
[all …]
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 …]
Datomisp_fops.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
103 dev_warn(asd->isp->dev, "%s: No metadata buffers available for type %d!\n", in atomisp_q_one_metadata_buffer()
141 dev_warn(asd->isp->dev, "%s: No s3a buffers available!\n", in atomisp_q_one_s3a_buffer()
159 dev_warn(asd->isp->dev, "%s: drop one s3a stat which has exp_id %d!\n", in atomisp_q_one_s3a_buffer()
180 dev_warn(asd->isp->dev, "%s: No dis buffers available!\n", in atomisp_q_one_dis_buffer()
294 dev_err(asd->isp->dev, "%s, css q fails: %d\n", in atomisp_q_video_buffers_to_css()
478 /* else for ext isp use case */ in atomisp_qbuffers_to_css()
583 static void atomisp_dev_init_struct(struct atomisp_device *isp) in atomisp_dev_init_struct() argument
587 isp->need_gfx_throttle = true; in atomisp_dev_init_struct()
588 isp->isp_fatal_error = false; in atomisp_dev_init_struct()
[all …]
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 …]
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 …]
Datomisp_ioctl.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
43 static const char *CARD = "ATOM ISP"; /* max size 31 */
46 * FIXME: ISP should not know beforehand all CIDs supported by sensor.
540 lockdep_assert_held(&pipe->isp->mutex); in atomisp_pipe_check()
542 if (pipe->isp->isp_fatal_error) in atomisp_pipe_check()
550 dev_err(pipe->isp->dev, "Set fmt/input IOCTL while streaming\n"); in atomisp_pipe_check()
555 dev_err(pipe->isp->dev, "IOCTL issued while stopping\n"); in atomisp_pipe_check()
566 * return ISP capabilities
572 struct atomisp_device *isp = video_get_drvdata(vdev); in atomisp_querycap() local
576 snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", dev_name(isp->dev)); in atomisp_querycap()
[all …]
/Linux-v6.1/drivers/media/platform/renesas/
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 …]
/Linux-v6.1/drivers/media/platform/samsung/exynos4-is/
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 …]
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 …]
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 …]
/Linux-v6.1/drivers/staging/media/atomisp/pci/hive_isp_css_include/host/
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 …]
/Linux-v6.1/drivers/media/platform/rockchip/rkisp1/
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 …]
/Linux-v6.1/drivers/staging/media/ipu3/
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 …]

12345678910>>...40