Home
last modified time | relevance | path

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

12345678910>>...38

/Linux-v5.10/drivers/media/platform/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()
65 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, reg); in csiphy_routing_cfg_3630()
79 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, 0); in csiphy_routing_cfg_3430()
86 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, csirxfe); in csiphy_routing_cfg_3430()
99 * issue since the MPU power domain is forced on whilst the ISP is in use.
105 if (phy->isp->phy_type == ISP_PHY_TYPE_3630 && on) in csiphy_routing_cfg()
107 if (phy->isp->phy_type == ISP_PHY_TYPE_3430) in csiphy_routing_cfg()
117 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 …]
/Linux-v5.10/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-v5.10/drivers/staging/media/atomisp/
DMakefile57 pci/isp/kernels/aa/aa_2/ia_css_aa2.host.o \
58 pci/isp/kernels/anr/anr_1.0/ia_css_anr.host.o \
59 pci/isp/kernels/anr/anr_2/ia_css_anr2.host.o \
60 pci/isp/kernels/anr/anr_2/ia_css_anr2_table.host.o \
61 pci/isp/kernels/bh/bh_2/ia_css_bh.host.o \
62 pci/isp/kernels/bnlm/ia_css_bnlm.host.o \
63 pci/isp/kernels/bnr/bnr_1.0/ia_css_bnr.host.o \
64 pci/isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.o \
65 pci/isp/kernels/cnr/cnr_1.0/ia_css_cnr.host.o \
66 pci/isp/kernels/cnr/cnr_2/ia_css_cnr2.host.o \
[all …]
/Linux-v5.10/drivers/staging/media/atomisp/pci/
Datomisp_v4l2.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
108 output res, and isp output res. however since we do not have this yet,
112 MODULE_PARM_DESC(pad_w, "extra data for ISP processing");
116 MODULE_PARM_DESC(pad_h, "extra data for ISP processing");
478 "ATOMISP ISP %s %s", name, direction); in atomisp_video_init()
480 video_set_drvdata(&video->vdev, video->isp); in atomisp_video_init()
492 "ATOMISP ISP %s", name); in atomisp_acc_init()
494 video_set_drvdata(&video->vdev, video->isp); in atomisp_acc_init()
511 static int atomisp_save_iunit_reg(struct atomisp_device *isp) in atomisp_save_iunit_reg() argument
513 struct pci_dev *pdev = to_pci_dev(isp->dev); in atomisp_save_iunit_reg()
[all …]
Datomisp_ioctl.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
44 static const char *CARD = "ATOM ISP"; /* max size 31 */
47 * FIXME: ISP should not know beforehand all CIDs supported by sensor.
542 * return ISP capabilities
548 struct atomisp_device *isp = video_get_drvdata(vdev); in atomisp_querycap() local
552 snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", dev_name(isp->dev)); in atomisp_querycap()
564 struct atomisp_device *isp = video_get_drvdata(vdev); in atomisp_enum_input() local
568 if (index >= isp->input_cnt) in atomisp_enum_input()
571 if (!isp->inputs[index].camera) in atomisp_enum_input()
575 strscpy(input->name, isp->inputs[index].camera->name, in atomisp_enum_input()
[all …]
Datomisp_compat_css20.c3 * Support for Clovertrail PNW Camera Imaging ISP subsystem.
71 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_store_8() local
75 writeb(data, isp->base + (addr & 0x003FFFFF)); in atomisp_css2_hw_store_8()
81 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_store_16() local
85 writew(data, isp->base + (addr & 0x003FFFFF)); in atomisp_css2_hw_store_16()
91 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_store_32() local
95 writel(data, isp->base + (addr & 0x003FFFFF)); in atomisp_css2_hw_store_32()
101 struct atomisp_device *isp = dev_get_drvdata(atomisp_dev); in atomisp_css2_hw_load_8() local
106 ret = readb(isp->base + (addr & 0x003FFFFF)); in atomisp_css2_hw_load_8()
113 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.
105 dev_warn(asd->isp->dev, "%s: No metadata buffers available for type %d!\n", in atomisp_q_one_metadata_buffer()
143 dev_warn(asd->isp->dev, "%s: No s3a buffers available!\n", in atomisp_q_one_s3a_buffer()
161 dev_warn(asd->isp->dev, "%s: drop one s3a stat which has exp_id %d!\n", in atomisp_q_one_s3a_buffer()
182 dev_warn(asd->isp->dev, "%s: No dis buffers available!\n", in atomisp_q_one_dis_buffer()
293 dev_err(asd->isp->dev, "%s, css q fails: %d\n", in atomisp_q_video_buffers_to_css()
425 if (asd->isp->inputs[asd->input_curr].camera_caps-> in atomisp_qbuffers_to_css()
523 /* else for ext isp use case */ in atomisp_qbuffers_to_css()
684 static void atomisp_dev_init_struct(struct atomisp_device *isp) in atomisp_dev_init_struct() argument
688 isp->sw_contex.file_input = 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_cmd.c3 * Support for Medifield PNW Camera Imaging ISP subsystem.
114 struct atomisp_device *isp = asd->isp; in atomisp_get_sensor_fps() local
119 ret = v4l2_subdev_call(isp->inputs[asd->input_curr].camera, in atomisp_get_sensor_fps()
130 * 1. Target frequency is calculated according to FPS/Resolution/ISP running
139 static int write_target_freq_to_hw(struct atomisp_device *isp, in write_target_freq_to_hw() argument
146 if (!isp->hpll_freq) { in write_target_freq_to_hw()
147 dev_err(isp->dev, "failed to get hpll_freq. no change to freq\n"); in write_target_freq_to_hw()
153 dev_dbg(isp->dev, "clearing ISPSSPM1 valid bit.\n"); in write_target_freq_to_hw()
158 ratio = (2 * isp->hpll_freq + new_freq / 2) / new_freq - 1; in write_target_freq_to_hw()
159 guar_ratio = (2 * isp->hpll_freq + 200 / 2) / 200 - 1; in write_target_freq_to_hw()
[all …]
/Linux-v5.10/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-v5.10/drivers/media/platform/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, cfg, in __isp_subdev_try_format()
[all …]
/Linux-v5.10/drivers/usb/isp1760/
Disp1760-core.c26 static void isp1760_init_core(struct isp1760_device *isp) in isp1760_init_core() argument
32 if (isp->rst_gpio) { in isp1760_init_core()
33 gpiod_set_value_cansleep(isp->rst_gpio, 1); in isp1760_init_core()
35 gpiod_set_value_cansleep(isp->rst_gpio, 0); in isp1760_init_core()
42 isp1760_write32(isp->regs, HC_RESET_REG, SW_RESET_RESET_ALL); in isp1760_init_core()
48 if (isp->devflags & ISP1760_FLAG_BUS_WIDTH_16) in isp1760_init_core()
50 if (isp->devflags & ISP1760_FLAG_ANALOG_OC) in isp1760_init_core()
52 if (isp->devflags & ISP1760_FLAG_DACK_POL_HIGH) in isp1760_init_core()
54 if (isp->devflags & ISP1760_FLAG_DREQ_POL_HIGH) in isp1760_init_core()
56 if (isp->devflags & ISP1760_FLAG_INTR_POL_HIGH) in isp1760_init_core()
[all …]
/Linux-v5.10/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-v5.10/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 …]
/Linux-v5.10/drivers/staging/media/rkisp1/
Drkisp1-isp.c3 * Rockchip ISP1 Driver - ISP Subdevice
28 * This is because ISP Subdev describes not only ISP submodule (input size,
38 * Cropping regions of ISP
210 rkisp1_isp_get_pad_fmt(struct rkisp1_isp *isp, in rkisp1_isp_get_pad_fmt() argument
215 return v4l2_subdev_get_try_format(&isp->sd, cfg, pad); in rkisp1_isp_get_pad_fmt()
217 return v4l2_subdev_get_try_format(&isp->sd, isp->pad_cfg, pad); in rkisp1_isp_get_pad_fmt()
221 rkisp1_isp_get_pad_crop(struct rkisp1_isp *isp, in rkisp1_isp_get_pad_crop() argument
226 return v4l2_subdev_get_try_crop(&isp->sd, cfg, pad); in rkisp1_isp_get_pad_crop()
228 return v4l2_subdev_get_try_crop(&isp->sd, isp->pad_cfg, pad); in rkisp1_isp_get_pad_crop()
243 rkisp1_isp_get_pad_crop(&rkisp1->isp, NULL, in rkisp1_config_ism()
[all …]

12345678910>>...38