| /linux/drivers/media/platform/qcom/camss/ |
| H A D | camss-vfe-680.c | 18 #define VFE_TOP_IRQn_STATUS(vfe, n) ((vfe_is_lite(vfe) ? 0x1c : 0x44) + (n) * 4) argument 19 #define VFE_TOP_IRQn_MASK(vfe, n) ((vfe_is_lite(vfe) ? 0x24 : 0x34) + (n) * 4) argument 20 #define VFE_TOP_IRQn_CLEAR(vfe, n) ((vfe_is_lite(vfe) ? 0x2c : 0x3c) + (n) * 4) argument 21 #define VFE_IRQ1_SOF(vfe, n) ((vfe_is_lite(vfe) ? BIT(2) : BIT(8)) << ((n) * 2)) argument 22 #define VFE_IRQ1_EOF(vfe, n) ((vfe_is_lite(vfe) ? BIT(3) : BIT(9)) << ((n) * 2)) argument 23 #define VFE_TOP_IRQ_CMD(vfe) (vfe_is_lite(vfe) ? 0x38 : 0x30) argument 25 #define VFE_TOP_DIAG_CONFIG (vfe_is_lite(vfe) ? 0x40 : 0x50) 27 #define VFE_TOP_DEBUG_11(vfe) (vfe_is_lite(vfe) ? 0x40 : 0xcc) argument 28 #define VFE_TOP_DEBUG_12(vfe) (vfe_is_lite(vfe) ? 0x40 : 0xd0) argument 29 #define VFE_TOP_DEBUG_13(vfe) (vfe_is_lite(vfe) ? 0x40 : 0xd4) argument [all …]
|
| H A D | camss-vfe-gen1.c | 18 int vfe_gen1_halt(struct vfe_device *vfe) in vfe_gen1_halt() argument 22 reinit_completion(&vfe->halt_complete); in vfe_gen1_halt() 24 vfe->ops_gen1->halt_request(vfe); in vfe_gen1_halt() 26 time = wait_for_completion_timeout(&vfe->halt_complete, in vfe_gen1_halt() 29 dev_err(vfe->camss->dev, "VFE halt timeout\n"); in vfe_gen1_halt() 38 struct vfe_device *vfe = to_vfe(line); in vfe_disable_output() local 40 const struct vfe_hw_ops *ops = vfe->res->hw_ops; in vfe_disable_output() 45 spin_lock_irqsave(&vfe->output_lock, flags); in vfe_disable_output() 48 spin_unlock_irqrestore(&vfe->output_lock, flags); in vfe_disable_output() 52 dev_err(vfe->camss->dev, "VFE sof timeout\n"); in vfe_disable_output() [all …]
|
| H A D | camss-vfe-17x.c | 177 static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) in vfe_reg_set() argument 179 u32 bits = readl_relaxed(vfe->base + reg); in vfe_reg_set() 181 writel_relaxed(bits | set_bits, vfe->base + reg); in vfe_reg_set() 184 static void vfe_global_reset(struct vfe_device *vfe) in vfe_global_reset() argument 199 writel_relaxed(BIT(31), vfe->base + VFE_IRQ_MASK_0); in vfe_global_reset() 204 writel_relaxed(reset_bits, vfe->base + VFE_GLOBAL_RESET_CMD); in vfe_global_reset() 207 static void vfe_wm_start(struct vfe_device *vfe, u8 wm, struct vfe_line *line) in vfe_wm_start() argument 214 writel_relaxed(val, vfe->base + VFE_BUS_WM_DEBUG_STATUS_CFG); in vfe_wm_start() 217 writel_relaxed(0, vfe->base + VFE_BUS_WM_ADDR_SYNC_FRAME_HEADER); in vfe_wm_start() 221 writel_relaxed(val, vfe->base + VFE_BUS_WM_CGC_OVERRIDE); in vfe_wm_start() [all …]
|
| H A D | camss-vfe-4-1.c | 222 static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) in vfe_reg_clr() argument 224 u32 bits = readl_relaxed(vfe->base + reg); in vfe_reg_clr() 226 writel_relaxed(bits & ~clr_bits, vfe->base + reg); in vfe_reg_clr() 229 static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) in vfe_reg_set() argument 231 u32 bits = readl_relaxed(vfe->base + reg); in vfe_reg_set() 233 writel_relaxed(bits | set_bits, vfe->base + reg); in vfe_reg_set() 236 static void vfe_global_reset(struct vfe_device *vfe) in vfe_global_reset() argument 248 writel_relaxed(reset_bits, vfe->base + VFE_0_GLOBAL_RESET_CMD); in vfe_global_reset() 251 static void vfe_halt_request(struct vfe_device *vfe) in vfe_halt_request() argument 254 vfe->base + VFE_0_BUS_BDG_CMD); in vfe_halt_request() [all …]
|
| H A D | camss-vfe-4-7.c | 265 static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) in vfe_reg_clr() argument 267 u32 bits = readl_relaxed(vfe->base + reg); in vfe_reg_clr() 269 writel_relaxed(bits & ~clr_bits, vfe->base + reg); in vfe_reg_clr() 272 static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) in vfe_reg_set() argument 274 u32 bits = readl_relaxed(vfe->base + reg); in vfe_reg_set() 276 writel_relaxed(bits | set_bits, vfe->base + reg); in vfe_reg_set() 279 static void vfe_global_reset(struct vfe_device *vfe) in vfe_global_reset() argument 292 writel_relaxed(BIT(31), vfe->base + VFE_0_IRQ_MASK_0); in vfe_global_reset() 296 writel_relaxed(reset_bits, vfe->base + VFE_0_GLOBAL_RESET_CMD); in vfe_global_reset() 299 static void vfe_halt_request(struct vfe_device *vfe) in vfe_halt_request() argument [all …]
|
| H A D | camss-vfe-4-8.c | 248 static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) in vfe_reg_clr() argument 250 u32 bits = readl_relaxed(vfe->base + reg); in vfe_reg_clr() 252 writel_relaxed(bits & ~clr_bits, vfe->base + reg); in vfe_reg_clr() 255 static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) in vfe_reg_set() argument 257 u32 bits = readl_relaxed(vfe->base + reg); in vfe_reg_set() 259 writel_relaxed(bits | set_bits, vfe->base + reg); in vfe_reg_set() 262 static void vfe_global_reset(struct vfe_device *vfe) in vfe_global_reset() argument 275 writel_relaxed(BIT(31), vfe->base + VFE_0_IRQ_MASK_0); in vfe_global_reset() 279 writel_relaxed(reset_bits, vfe->base + VFE_0_GLOBAL_RESET_CMD); in vfe_global_reset() 282 static void vfe_halt_request(struct vfe_device *vfe) in vfe_halt_request() argument [all …]
|
| H A D | camss-vfe-gen3.c | 15 #define IS_VFE_690(vfe) \ argument 16 ((vfe->camss->res->version == CAMSS_8775P) \ 17 || (vfe->camss->res->version == CAMSS_8300)) 20 (vfe_is_lite(vfe) ? 0x480 : 0x400) 22 (vfe_is_lite(vfe) ? 0x200 : 0xC00) 24 (IS_VFE_690(vfe) ? BUS_REG_BASE_690 : BUS_REG_BASE_780) 33 (IS_VFE_690(vfe) ? VFE_BUS_WM_TEST_BUS_CTRL_690 \ 46 #define RDI_WM_690(n) ((vfe_is_lite(vfe) ? 0x0 : 0x10) + (n)) 47 #define RDI_WM_780(n) ((vfe_is_lite(vfe) ? 0x0 : 0x17) + (n)) 48 #define RDI_WM(n) (IS_VFE_690(vfe) ? RDI_WM_690(n) : RDI_WM_780(n)) [all …]
|
| H A D | camss-vfe-340.c | 159 static void vfe_global_reset(struct vfe_device *vfe) in vfe_global_reset() argument 161 writel(TFE_IRQ_MASK_0_RST_DONE, vfe->base + TFE_IRQ_MASK_0); in vfe_global_reset() 162 writel(TFE_GLOBAL_RESET_CMD_CORE, vfe->base + TFE_GLOBAL_RESET_CMD); in vfe_global_reset() 167 struct vfe_device *vfe = dev; in vfe_isr() local 171 status = readl_relaxed(vfe->base + TFE_IRQ_STATUS_0); in vfe_isr() 172 writel_relaxed(status, vfe->base + TFE_IRQ_CLEAR_0); in vfe_isr() 173 writel_relaxed(TFE_IRQ_CMD_CLEAR, vfe->base + TFE_IRQ_CMD); in vfe_isr() 176 dev_dbg(vfe->camss->dev, "VFE%u: Reset done!", vfe->id); in vfe_isr() 177 vfe_isr_reset_ack(vfe); in vfe_isr() 181 u32 bus_status = readl_relaxed(vfe->base + TFE_BUS_IRQ_STATUS_0); in vfe_isr() [all …]
|
| H A D | camss-vfe-gen1.h | 21 void (*bus_connect_wm_to_rdi)(struct vfe_device *vfe, u8 wm, enum vfe_line_id id); 22 void (*bus_disconnect_wm_from_rdi)(struct vfe_device *vfe, u8 wm, enum vfe_line_id id); 23 void (*bus_enable_wr_if)(struct vfe_device *vfe, u8 enable); 24 void (*bus_reload_wm)(struct vfe_device *vfe, u8 wm); 25 int (*camif_wait_for_stop)(struct vfe_device *vfe, struct device *dev); 26 void (*enable_irq_common)(struct vfe_device *vfe); 27 void (*enable_irq_wm_line)(struct vfe_device *vfe, u8 wm, enum vfe_line_id line_id, 29 void (*enable_irq_pix_line)(struct vfe_device *vfe, u8 comp, enum vfe_line_id line_id, 32 void (*halt_clear)(struct vfe_device *vfe); 33 void (*halt_request)(struct vfe_device *vfe); [all …]
|
| H A D | camss-vfe.h | 102 void (*enable_irq)(struct vfe_device *vfe); 103 void (*global_reset)(struct vfe_device *vfe); 104 u32 (*hw_version)(struct vfe_device *vfe); 106 void (*isr_read)(struct vfe_device *vfe, u32 *value0, u32 *value1); 107 void (*pm_domain_off)(struct vfe_device *vfe); 108 int (*pm_domain_on)(struct vfe_device *vfe); 109 void (*reg_update)(struct vfe_device *vfe, enum vfe_line_id line_id); 110 void (*reg_update_clear)(struct vfe_device *vfe, 112 void (*subdev_init)(struct device *dev, struct vfe_device *vfe); 115 int (*vfe_halt)(struct vfe_device *vfe); [all …]
|
| H A D | camss-ispif.c | 424 u8 vfe, u8 enable) in ispif_select_clk_mux() argument 431 val &= ~(0xf << (vfe * 8)); in ispif_select_clk_mux() 433 val |= (csid << (vfe * 8)); in ispif_select_clk_mux() 439 val &= ~(0xf << (vfe * 12)); in ispif_select_clk_mux() 441 val |= (csid << (vfe * 12)); in ispif_select_clk_mux() 447 val &= ~(0xf << (4 + (vfe * 8))); in ispif_select_clk_mux() 449 val |= (csid << (4 + (vfe * 8))); in ispif_select_clk_mux() 455 val &= ~(0xf << (4 + (vfe * 12))); in ispif_select_clk_mux() 457 val |= (csid << (4 + (vfe * 12))); in ispif_select_clk_mux() 463 val &= ~(0xf << (8 + (vfe * 12))); in ispif_select_clk_mux() [all …]
|
| H A D | Makefile | 17 camss-vfe-4-1.o \ 18 camss-vfe-4-7.o \ 19 camss-vfe-4-8.o \ 20 camss-vfe-17x.o \ 21 camss-vfe-340.o \ 22 camss-vfe-480.o \ 23 camss-vfe-680.o \ 24 camss-vfe-gen3.o \ 25 camss-vfe-gen1.o \ 26 camss-vfe-vbif.o \ [all …]
|
| H A D | camss-vfe-vbif.c | 20 void vfe_vbif_write_reg(struct vfe_device *vfe, u32 reg, u32 val) in vfe_vbif_write_reg() argument 22 writel_relaxed(val, vfe->vbif_base + reg); in vfe_vbif_write_reg() 25 int vfe_vbif_apply_settings(struct vfe_device *vfe) in vfe_vbif_apply_settings() argument 27 vfe_vbif_write_reg(vfe, VBIF_FIXED_SORT_EN, 0xfff); in vfe_vbif_apply_settings() 28 vfe_vbif_write_reg(vfe, VBIF_FIXED_SORT_SEL0, 0x555000); in vfe_vbif_apply_settings()
|
| H A D | camss-vfe-vbif.h | 15 void vfe_vbif_write_reg(struct vfe_device *vfe, u32 reg, u32 val); 17 int vfe_vbif_apply_settings(struct vfe_device *vfe);
|
| /linux/drivers/media/pci/zoran/ |
| H A D | zoran_device.c | 589 if (zr->vfe) in jpeg_start() 590 zr36016_write(zr->vfe, 0, 1); in jpeg_start() 656 if (zr->vfe) { in zr36057_enable_jpg() 657 zr->vfe->control(zr->vfe, CODEC_S_JPEG_TDS_BYTE, in zr36057_enable_jpg() 659 zr->vfe->set_video(zr->vfe, zr->timing, &cap, in zr36057_enable_jpg() 661 zr->vfe->set_mode(zr->vfe, CODEC_DO_COMPRESSION); in zr36057_enable_jpg() 683 if (zr->vfe) { in zr36057_enable_jpg() 684 zr->vfe->set_video(zr->vfe, zr->timing, &cap, in zr36057_enable_jpg() 686 zr->vfe->set_mode(zr->vfe, CODEC_DO_EXPANSION); in zr36057_enable_jpg()
|
| H A D | zoran_card.c | 1079 if (zr->vfe) in zoran_remove() 1080 videocodec_detach(zr->vfe); in zoran_remove() 1383 zr->vfe = videocodec_attach(master_vfe); in zoran_probe() 1384 if (!zr->vfe) { in zoran_probe() 1388 if (zr->vfe->type != zr->card.video_vfe) { in zoran_probe() 1409 videocodec_detach(zr->vfe); in zoran_probe()
|
| H A D | zoran.h | 207 struct videocodec *vfe; /* video front end */ member
|
| /linux/drivers/pinctrl/qcom/ |
| H A D | pinctrl-msm8660.c | 766 MSM_PIN_FUNCTION(vfe), 802 PINGROUP(29, vfe, gp_mn, _, _, _, _, _), 803 PINGROUP(30, vfe, gp_clk_0a, _, _, _, _, _), 804 PINGROUP(31, vfe, gp_clk_1a, _, _, _, _, _), 815 PINGROUP(42, gsbi3, vfe, _, _, _, _, _), 819 PINGROUP(46, gsbi4, gsbi3_spi_cs3_n, vfe, _, _, _, _), 878 PINGROUP(105, mi2s, gsbi11, vfe, _, _, _, _), 879 PINGROUP(106, mi2s, gsbi11, vfe, _, _, _, _), 890 PINGROUP(117, i2s, gsbi12, vfe, _, _, _, _),
|
| /linux/drivers/media/pci/cx23885/ |
| H A D | cx23885-video.c | 1013 struct vb2_dvb_frontend *vfe; in cx23885_set_freq_via_ops() local 1037 vfe = vb2_dvb_get_frontend(&dev->ts2.frontends, 1); in cx23885_set_freq_via_ops() 1038 if (!vfe) { in cx23885_set_freq_via_ops() 1042 fe = vfe->dvb.frontend; in cx23885_set_freq_via_ops()
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sdm630.dtsi | 2123 interconnect-names = "vfe-mem";
|
| H A D | msm8939.dtsi | 1642 /* vfe */
|