vfe 965 drivers/media/pci/cx23885/cx23885-video.c struct vb2_dvb_frontend *vfe; vfe 989 drivers/media/pci/cx23885/cx23885-video.c vfe = vb2_dvb_get_frontend(&dev->ts2.frontends, 1); vfe 990 drivers/media/pci/cx23885/cx23885-video.c if (!vfe) { vfe 994 drivers/media/pci/cx23885/cx23885-video.c fe = vfe->dvb.frontend; vfe 395 drivers/media/platform/qcom/camss/camss-ispif.c u8 vfe, u8 enable) vfe 402 drivers/media/platform/qcom/camss/camss-ispif.c val &= ~(0xf << (vfe * 8)); vfe 404 drivers/media/platform/qcom/camss/camss-ispif.c val |= (csid << (vfe * 8)); vfe 410 drivers/media/platform/qcom/camss/camss-ispif.c val &= ~(0xf << (vfe * 12)); vfe 412 drivers/media/platform/qcom/camss/camss-ispif.c val |= (csid << (vfe * 12)); vfe 418 drivers/media/platform/qcom/camss/camss-ispif.c val &= ~(0xf << (4 + (vfe * 8))); vfe 420 drivers/media/platform/qcom/camss/camss-ispif.c val |= (csid << (4 + (vfe * 8))); vfe 426 drivers/media/platform/qcom/camss/camss-ispif.c val &= ~(0xf << (4 + (vfe * 12))); vfe 428 drivers/media/platform/qcom/camss/camss-ispif.c val |= (csid << (4 + (vfe * 12))); vfe 434 drivers/media/platform/qcom/camss/camss-ispif.c val &= ~(0xf << (8 + (vfe * 12))); vfe 436 drivers/media/platform/qcom/camss/camss-ispif.c val |= (csid << (8 + (vfe * 12))); vfe 453 drivers/media/platform/qcom/camss/camss-ispif.c enum ispif_intf intf, u8 vfe) vfe 461 drivers/media/platform/qcom/camss/camss-ispif.c ISPIF_VFE_m_PIX_INTF_n_STATUS(vfe, 0)); vfe 465 drivers/media/platform/qcom/camss/camss-ispif.c ISPIF_VFE_m_RDI_INTF_n_STATUS(vfe, 0)); vfe 469 drivers/media/platform/qcom/camss/camss-ispif.c ISPIF_VFE_m_PIX_INTF_n_STATUS(vfe, 1)); vfe 473 drivers/media/platform/qcom/camss/camss-ispif.c ISPIF_VFE_m_RDI_INTF_n_STATUS(vfe, 1)); vfe 477 drivers/media/platform/qcom/camss/camss-ispif.c ISPIF_VFE_m_RDI_INTF_n_STATUS(vfe, 2)); vfe 499 drivers/media/platform/qcom/camss/camss-ispif.c enum ispif_intf intf, u8 vfe) vfe 507 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_PIX_INTF_n_STATUS(vfe, 0); vfe 510 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_STATUS(vfe, 0); vfe 513 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_PIX_INTF_n_STATUS(vfe, 1); vfe 516 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_STATUS(vfe, 1); vfe 519 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_STATUS(vfe, 2); vfe 544 drivers/media/platform/qcom/camss/camss-ispif.c u8 csid, u8 vfe, u8 enable) vfe 548 drivers/media/platform/qcom/camss/camss-ispif.c val = readl_relaxed(ispif->base + ISPIF_VFE_m_INTF_INPUT_SEL(vfe)); vfe 577 drivers/media/platform/qcom/camss/camss-ispif.c writel(val, ispif->base + ISPIF_VFE_m_INTF_INPUT_SEL(vfe)); vfe 589 drivers/media/platform/qcom/camss/camss-ispif.c u8 cid, u8 vfe, u8 enable) vfe 597 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_PIX_INTF_n_CID_MASK(vfe, 0); vfe 600 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_CID_MASK(vfe, 0); vfe 603 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_PIX_INTF_n_CID_MASK(vfe, 1); vfe 606 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_CID_MASK(vfe, 1); vfe 609 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_CID_MASK(vfe, 2); vfe 630 drivers/media/platform/qcom/camss/camss-ispif.c u8 vfe, u8 enable) vfe 636 drivers/media/platform/qcom/camss/camss-ispif.c val = readl_relaxed(ispif->base + ISPIF_VFE_m_IRQ_MASK_0(vfe)); vfe 640 drivers/media/platform/qcom/camss/camss-ispif.c writel_relaxed(val, ispif->base + ISPIF_VFE_m_IRQ_MASK_0(vfe)); vfe 642 drivers/media/platform/qcom/camss/camss-ispif.c ispif->base + ISPIF_VFE_m_IRQ_CLEAR_0(vfe)); vfe 645 drivers/media/platform/qcom/camss/camss-ispif.c val = readl_relaxed(ispif->base + ISPIF_VFE_m_IRQ_MASK_0(vfe)); vfe 649 drivers/media/platform/qcom/camss/camss-ispif.c writel_relaxed(val, ispif->base + ISPIF_VFE_m_IRQ_MASK_0(vfe)); vfe 651 drivers/media/platform/qcom/camss/camss-ispif.c ispif->base + ISPIF_VFE_m_IRQ_CLEAR_0(vfe)); vfe 654 drivers/media/platform/qcom/camss/camss-ispif.c val = readl_relaxed(ispif->base + ISPIF_VFE_m_IRQ_MASK_1(vfe)); vfe 658 drivers/media/platform/qcom/camss/camss-ispif.c writel_relaxed(val, ispif->base + ISPIF_VFE_m_IRQ_MASK_1(vfe)); vfe 660 drivers/media/platform/qcom/camss/camss-ispif.c ispif->base + ISPIF_VFE_m_IRQ_CLEAR_1(vfe)); vfe 663 drivers/media/platform/qcom/camss/camss-ispif.c val = readl_relaxed(ispif->base + ISPIF_VFE_m_IRQ_MASK_1(vfe)); vfe 667 drivers/media/platform/qcom/camss/camss-ispif.c writel_relaxed(val, ispif->base + ISPIF_VFE_m_IRQ_MASK_1(vfe)); vfe 669 drivers/media/platform/qcom/camss/camss-ispif.c ispif->base + ISPIF_VFE_m_IRQ_CLEAR_1(vfe)); vfe 672 drivers/media/platform/qcom/camss/camss-ispif.c val = readl_relaxed(ispif->base + ISPIF_VFE_m_IRQ_MASK_2(vfe)); vfe 676 drivers/media/platform/qcom/camss/camss-ispif.c writel_relaxed(val, ispif->base + ISPIF_VFE_m_IRQ_MASK_2(vfe)); vfe 678 drivers/media/platform/qcom/camss/camss-ispif.c ispif->base + ISPIF_VFE_m_IRQ_CLEAR_2(vfe)); vfe 695 drivers/media/platform/qcom/camss/camss-ispif.c enum ispif_intf intf, u8 cid, u8 vfe, u8 enable) vfe 706 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_PACK_CFG_0(vfe, 0); vfe 708 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_PACK_CFG_1(vfe, 0); vfe 712 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_PACK_CFG_0(vfe, 1); vfe 714 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_PACK_CFG_1(vfe, 1); vfe 718 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_PACK_CFG_0(vfe, 2); vfe 720 drivers/media/platform/qcom/camss/camss-ispif.c addr = ISPIF_VFE_m_RDI_INTF_n_PACK_CFG_1(vfe, 2); vfe 743 drivers/media/platform/qcom/camss/camss-ispif.c enum ispif_intf intf, u8 vfe, u8 vc) vfe 748 drivers/media/platform/qcom/camss/camss-ispif.c val = &ispif->intf_cmd[vfe].cmd_1; vfe 752 drivers/media/platform/qcom/camss/camss-ispif.c writel_relaxed(*val, ispif->base + ISPIF_VFE_m_INTF_CMD_1(vfe)); vfe 755 drivers/media/platform/qcom/camss/camss-ispif.c val = &ispif->intf_cmd[vfe].cmd_0; vfe 759 drivers/media/platform/qcom/camss/camss-ispif.c writel_relaxed(*val, ispif->base + ISPIF_VFE_m_INTF_CMD_0(vfe)); vfe 779 drivers/media/platform/qcom/camss/camss-ispif.c u8 vfe = line->vfe_id; vfe 791 drivers/media/platform/qcom/camss/camss-ispif.c ispif_select_clk_mux(ispif, intf, csid, vfe, 1); vfe 793 drivers/media/platform/qcom/camss/camss-ispif.c ret = ispif_validate_intf_status(ispif, intf, vfe); vfe 799 drivers/media/platform/qcom/camss/camss-ispif.c ispif_select_csid(ispif, intf, csid, vfe, 1); vfe 800 drivers/media/platform/qcom/camss/camss-ispif.c ispif_select_cid(ispif, intf, cid, vfe, 1); vfe 801 drivers/media/platform/qcom/camss/camss-ispif.c ispif_config_irq(ispif, intf, vfe, 1); vfe 805 drivers/media/platform/qcom/camss/camss-ispif.c intf, cid, vfe, 1); vfe 807 drivers/media/platform/qcom/camss/camss-ispif.c intf, vfe, vc); vfe 811 drivers/media/platform/qcom/camss/camss-ispif.c intf, vfe, vc); vfe 814 drivers/media/platform/qcom/camss/camss-ispif.c ret = ispif_wait_for_stop(ispif, intf, vfe); vfe 822 drivers/media/platform/qcom/camss/camss-ispif.c intf, cid, vfe, 0); vfe 823 drivers/media/platform/qcom/camss/camss-ispif.c ispif_config_irq(ispif, intf, vfe, 0); vfe 824 drivers/media/platform/qcom/camss/camss-ispif.c ispif_select_cid(ispif, intf, cid, vfe, 0); vfe 825 drivers/media/platform/qcom/camss/camss-ispif.c ispif_select_csid(ispif, intf, csid, vfe, 0); vfe 826 drivers/media/platform/qcom/camss/camss-ispif.c ispif_select_clk_mux(ispif, intf, csid, vfe, 0); vfe 211 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_hw_version_read(struct vfe_device *vfe, struct device *dev) vfe 213 drivers/media/platform/qcom/camss/camss-vfe-4-1.c u32 hw_version = readl_relaxed(vfe->base + VFE_0_HW_VERSION); vfe 226 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) vfe 228 drivers/media/platform/qcom/camss/camss-vfe-4-1.c u32 bits = readl_relaxed(vfe->base + reg); vfe 230 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(bits & ~clr_bits, vfe->base + reg); vfe 233 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) vfe 235 drivers/media/platform/qcom/camss/camss-vfe-4-1.c u32 bits = readl_relaxed(vfe->base + reg); vfe 237 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(bits | set_bits, vfe->base + reg); vfe 240 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_global_reset(struct vfe_device *vfe) vfe 252 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reset_bits, vfe->base + VFE_0_GLOBAL_RESET_CMD); vfe 255 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_halt_request(struct vfe_device *vfe) vfe 258 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->base + VFE_0_BUS_BDG_CMD); vfe 261 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_halt_clear(struct vfe_device *vfe) vfe 263 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(0x0, vfe->base + VFE_0_BUS_BDG_CMD); vfe 266 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_enable(struct vfe_device *vfe, u8 wm, u8 enable) vfe 269 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), vfe 272 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), vfe 276 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_frame_based(struct vfe_device *vfe, u8 wm, u8 enable) vfe 279 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), vfe 282 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), vfe 331 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_line_based(struct vfe_device *vfe, u32 wm, vfe 347 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + vfe 356 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + vfe 359 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(0, vfe->base + vfe 361 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(0, vfe->base + vfe 366 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_set_framedrop_period(struct vfe_device *vfe, u8 wm, u8 per) vfe 370 drivers/media/platform/qcom/camss/camss-vfe-4-1.c reg = readl_relaxed(vfe->base + vfe 379 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm)); vfe 382 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_set_framedrop_pattern(struct vfe_device *vfe, u8 wm, vfe 386 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_FRAMEDROP_PATTERN(wm)); vfe 389 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_set_ub_cfg(struct vfe_device *vfe, u8 wm, vfe 396 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_UB_CFG(wm)); vfe 399 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_bus_reload_wm(struct vfe_device *vfe, u8 wm) vfe 402 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(VFE_0_BUS_CMD_Mx_RLD_CMD(wm), vfe->base + VFE_0_BUS_CMD); vfe 406 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_set_ping_addr(struct vfe_device *vfe, u8 wm, u32 addr) vfe 409 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_PING_ADDR(wm)); vfe 412 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_set_pong_addr(struct vfe_device *vfe, u8 wm, u32 addr) vfe 415 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_PONG_ADDR(wm)); vfe 418 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static int vfe_wm_get_ping_pong_status(struct vfe_device *vfe, u8 wm) vfe 422 drivers/media/platform/qcom/camss/camss-vfe-4-1.c reg = readl_relaxed(vfe->base + VFE_0_BUS_PING_PONG_STATUS); vfe 427 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_bus_enable_wr_if(struct vfe_device *vfe, u8 enable) vfe 430 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(0x10000009, vfe->base + VFE_0_BUS_CFG); vfe 432 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(0, vfe->base + VFE_0_BUS_CFG); vfe 435 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_bus_connect_wm_to_rdi(struct vfe_device *vfe, u8 wm, vfe 442 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_RDI_CFG_x(0), reg); vfe 447 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_RDI_CFG_x(id), reg); vfe 468 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); vfe 471 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_wm_set_subsample(struct vfe_device *vfe, u8 wm) vfe 474 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->base + vfe 478 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_bus_disconnect_wm_from_rdi(struct vfe_device *vfe, u8 wm, vfe 484 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_RDI_CFG_x(0), reg); vfe 487 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_RDI_CFG_x(id), reg); vfe 508 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); vfe 511 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_xbar_cfg(struct vfe_device *vfe, struct vfe_output *output, vfe 536 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, vfe 540 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, vfe 546 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_realign_cfg(struct vfe_device *vfe, struct vfe_line *line, vfe 551 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_rdi_cid(struct vfe_device *vfe, enum vfe_line_id id, u8 cid) vfe 553 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_RDI_CFG_x(id), vfe 556 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_RDI_CFG_x(id), vfe 560 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_reg_update(struct vfe_device *vfe, enum vfe_line_id line_id) vfe 562 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->reg_update |= VFE_0_REG_UPDATE_line_n(line_id); vfe 564 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(vfe->reg_update, vfe->base + VFE_0_REG_UPDATE); vfe 568 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static inline void vfe_reg_update_clear(struct vfe_device *vfe, vfe 571 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->reg_update &= ~VFE_0_REG_UPDATE_line_n(line_id); vfe 574 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_enable_irq_wm_line(struct vfe_device *vfe, u8 wm, vfe 583 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 584 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 586 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 587 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 591 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_enable_irq_pix_line(struct vfe_device *vfe, u8 comp, vfe 594 drivers/media/platform/qcom/camss/camss-vfe-4-1.c struct vfe_output *output = &vfe->line[line_id].output; vfe 612 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 613 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 614 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_IRQ_COMPOSITE_MASK_0, comp_mask); vfe 616 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 617 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 618 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_IRQ_COMPOSITE_MASK_0, comp_mask); vfe 622 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_enable_irq_common(struct vfe_device *vfe) vfe 628 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 629 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 632 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_demux_cfg(struct vfe_device *vfe, struct vfe_line *line) vfe 636 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(VFE_0_DEMUX_CFG_PERIOD, vfe->base + VFE_0_DEMUX_CFG); vfe 639 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_DEMUX_GAIN_0); vfe 642 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_DEMUX_GAIN_1); vfe 664 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(even_cfg, vfe->base + VFE_0_DEMUX_EVEN_CFG); vfe 665 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(odd_cfg, vfe->base + VFE_0_DEMUX_ODD_CFG); vfe 682 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_scale_cfg(struct vfe_device *vfe, struct vfe_line *line) vfe 690 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(0x3, vfe->base + VFE_0_SCALE_ENC_Y_CFG); vfe 695 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_Y_H_IMAGE_SIZE); vfe 700 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_Y_H_PHASE); vfe 705 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_Y_V_IMAGE_SIZE); vfe 710 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_Y_V_PHASE); vfe 712 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(0x3, vfe->base + VFE_0_SCALE_ENC_CBCR_CFG); vfe 717 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_CBCR_H_IMAGE_SIZE); vfe 722 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_CBCR_H_PHASE); vfe 729 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_CBCR_V_IMAGE_SIZE); vfe 734 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_CBCR_V_PHASE); vfe 737 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_crop_cfg(struct vfe_device *vfe, struct vfe_line *line) vfe 746 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_CROP_ENC_Y_WIDTH); vfe 751 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_CROP_ENC_Y_HEIGHT); vfe 756 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_CROP_ENC_CBCR_WIDTH); vfe 765 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(reg, vfe->base + VFE_0_CROP_ENC_CBCR_HEIGHT); vfe 768 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_clamp_cfg(struct vfe_device *vfe) vfe 774 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CLAMP_ENC_MAX_CFG); vfe 780 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CLAMP_ENC_MIN_CFG); vfe 783 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_qos(struct vfe_device *vfe) vfe 788 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_0); vfe 789 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_1); vfe 790 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_2); vfe 791 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_3); vfe 792 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_4); vfe 793 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_5); vfe 794 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_6); vfe 795 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val7, vfe->base + VFE_0_BUS_BDG_QOS_CFG_7); vfe 798 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_ds(struct vfe_device *vfe) vfe 803 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_cgc_override(struct vfe_device *vfe, u8 wm, u8 enable) vfe 808 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_CGC_OVERRIDE_1, val); vfe 810 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_clr(vfe, VFE_0_CGC_OVERRIDE_1, val); vfe 815 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_camif_cfg(struct vfe_device *vfe, struct vfe_line *line) vfe 835 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CORE_CFG); vfe 839 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_FRAME_CFG); vfe 842 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_WINDOW_WIDTH_CFG); vfe 845 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_WINDOW_HEIGHT_CFG); vfe 848 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_SUBSAMPLE_CFG_0); vfe 851 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN); vfe 854 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_reg_set(vfe, VFE_0_RDI_CFG_x(0), val); vfe 857 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_CFG); vfe 860 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_camif_cmd(struct vfe_device *vfe, u8 enable) vfe 865 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(cmd, vfe->base + VFE_0_CAMIF_CMD); vfe 873 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(cmd, vfe->base + VFE_0_CAMIF_CMD); vfe 876 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_set_module_cfg(struct vfe_device *vfe, u8 enable) vfe 884 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(val, vfe->base + VFE_0_MODULE_CFG); vfe 886 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(0x0, vfe->base + VFE_0_MODULE_CFG); vfe 889 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static int vfe_camif_wait_for_stop(struct vfe_device *vfe, struct device *dev) vfe 894 drivers/media/platform/qcom/camss/camss-vfe-4-1.c ret = readl_poll_timeout(vfe->base + VFE_0_CAMIF_STATUS, vfe 905 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_isr_read(struct vfe_device *vfe, u32 *value0, u32 *value1) vfe 907 drivers/media/platform/qcom/camss/camss-vfe-4-1.c *value0 = readl_relaxed(vfe->base + VFE_0_IRQ_STATUS_0); vfe 908 drivers/media/platform/qcom/camss/camss-vfe-4-1.c *value1 = readl_relaxed(vfe->base + VFE_0_IRQ_STATUS_1); vfe 910 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(*value0, vfe->base + VFE_0_IRQ_CLEAR_0); vfe 911 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(*value1, vfe->base + VFE_0_IRQ_CLEAR_1); vfe 914 drivers/media/platform/qcom/camss/camss-vfe-4-1.c writel_relaxed(VFE_0_IRQ_CMD_GLOBAL_CLEAR, vfe->base + VFE_0_IRQ_CMD); vfe 917 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_violation_read(struct vfe_device *vfe) vfe 919 drivers/media/platform/qcom/camss/camss-vfe-4-1.c u32 violation = readl_relaxed(vfe->base + VFE_0_VIOLATION_STATUS); vfe 933 drivers/media/platform/qcom/camss/camss-vfe-4-1.c struct vfe_device *vfe = dev; vfe 937 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->ops->isr_read(vfe, &value0, &value1); vfe 943 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->isr_ops.reset_ack(vfe); vfe 946 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->ops->violation_read(vfe); vfe 949 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->isr_ops.halt_ack(vfe); vfe 953 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->isr_ops.reg_update(vfe, i); vfe 956 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->isr_ops.sof(vfe, VFE_LINE_PIX); vfe 960 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->isr_ops.sof(vfe, i); vfe 964 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->isr_ops.comp_done(vfe, i); vfe 965 drivers/media/platform/qcom/camss/camss-vfe-4-1.c for (j = 0; j < ARRAY_SIZE(vfe->wm_output_map); j++) vfe 966 drivers/media/platform/qcom/camss/camss-vfe-4-1.c if (vfe->wm_output_map[j] == VFE_LINE_PIX) vfe 972 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe->isr_ops.wm_done(vfe, i); vfe 242 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_hw_version_read(struct vfe_device *vfe, struct device *dev) vfe 244 drivers/media/platform/qcom/camss/camss-vfe-4-7.c u32 hw_version = readl_relaxed(vfe->base + VFE_0_HW_VERSION); vfe 259 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits) vfe 261 drivers/media/platform/qcom/camss/camss-vfe-4-7.c u32 bits = readl_relaxed(vfe->base + reg); vfe 263 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(bits & ~clr_bits, vfe->base + reg); vfe 266 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) vfe 268 drivers/media/platform/qcom/camss/camss-vfe-4-7.c u32 bits = readl_relaxed(vfe->base + reg); vfe 270 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(bits | set_bits, vfe->base + reg); vfe 273 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_global_reset(struct vfe_device *vfe) vfe 286 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(BIT(31), vfe->base + VFE_0_IRQ_MASK_0); vfe 288 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reset_bits, vfe->base + VFE_0_GLOBAL_RESET_CMD); vfe 291 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_halt_request(struct vfe_device *vfe) vfe 294 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->base + VFE_0_BUS_BDG_CMD); vfe 297 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_halt_clear(struct vfe_device *vfe) vfe 299 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(0x0, vfe->base + VFE_0_BUS_BDG_CMD); vfe 302 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_enable(struct vfe_device *vfe, u8 wm, u8 enable) vfe 305 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), vfe 308 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_CFG(wm), vfe 312 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_frame_based(struct vfe_device *vfe, u8 wm, u8 enable) vfe 315 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm), vfe 318 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm), vfe 381 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_line_based(struct vfe_device *vfe, u32 wm, vfe 397 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + vfe 406 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + vfe 409 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(0, vfe->base + vfe 411 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(0, vfe->base + vfe 416 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_set_framedrop_period(struct vfe_device *vfe, u8 wm, u8 per) vfe 420 drivers/media/platform/qcom/camss/camss-vfe-4-7.c reg = readl_relaxed(vfe->base + vfe 429 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_ADDR_CFG(wm)); vfe 432 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_set_framedrop_pattern(struct vfe_device *vfe, u8 wm, vfe 436 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_FRAMEDROP_PATTERN(wm)); vfe 439 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_set_ub_cfg(struct vfe_device *vfe, u8 wm, vfe 446 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_UB_CFG(wm)); vfe 449 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_bus_reload_wm(struct vfe_device *vfe, u8 wm) vfe 452 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(VFE_0_BUS_CMD_Mx_RLD_CMD(wm), vfe->base + VFE_0_BUS_CMD); vfe 456 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_set_ping_addr(struct vfe_device *vfe, u8 wm, u32 addr) vfe 459 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_PING_ADDR(wm)); vfe 462 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_set_pong_addr(struct vfe_device *vfe, u8 wm, u32 addr) vfe 465 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->base + VFE_0_BUS_IMAGE_MASTER_n_WR_PONG_ADDR(wm)); vfe 468 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static int vfe_wm_get_ping_pong_status(struct vfe_device *vfe, u8 wm) vfe 472 drivers/media/platform/qcom/camss/camss-vfe-4-7.c reg = readl_relaxed(vfe->base + VFE_0_BUS_PING_PONG_STATUS); vfe 477 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_bus_enable_wr_if(struct vfe_device *vfe, u8 enable) vfe 480 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(0x101, vfe->base + VFE_0_BUS_CFG); vfe 482 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(0, vfe->base + VFE_0_BUS_CFG); vfe 485 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_bus_connect_wm_to_rdi(struct vfe_device *vfe, u8 wm, vfe 491 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_RDI_CFG_x(0), reg); vfe 496 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_RDI_CFG_x(id), reg); vfe 517 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); vfe 520 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_wm_set_subsample(struct vfe_device *vfe, u8 wm) vfe 523 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->base + vfe 527 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_bus_disconnect_wm_from_rdi(struct vfe_device *vfe, u8 wm, vfe 533 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_RDI_CFG_x(id), reg); vfe 554 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_BUS_XBAR_CFG_x(wm), reg); vfe 557 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_xbar_cfg(struct vfe_device *vfe, struct vfe_output *output, vfe 576 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, vfe 580 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, vfe 592 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, vfe 596 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, vfe 614 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, vfe 618 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, vfe 627 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_realign_cfg(struct vfe_device *vfe, struct vfe_line *line, vfe 638 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_MODULE_ZOOM_EN, val); vfe 640 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_MODULE_ZOOM_EN, val); vfe 651 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_REALIGN_BUF_CFG); vfe 654 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_rdi_cid(struct vfe_device *vfe, enum vfe_line_id id, u8 cid) vfe 656 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_RDI_CFG_x(id), vfe 659 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_RDI_CFG_x(id), vfe 663 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_reg_update(struct vfe_device *vfe, enum vfe_line_id line_id) vfe 665 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->reg_update |= VFE_0_REG_UPDATE_line_n(line_id); vfe 667 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(vfe->reg_update, vfe->base + VFE_0_REG_UPDATE); vfe 671 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static inline void vfe_reg_update_clear(struct vfe_device *vfe, vfe 674 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->reg_update &= ~VFE_0_REG_UPDATE_line_n(line_id); vfe 677 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_enable_irq_wm_line(struct vfe_device *vfe, u8 wm, vfe 686 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 687 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 689 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 690 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 694 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_enable_irq_pix_line(struct vfe_device *vfe, u8 comp, vfe 697 drivers/media/platform/qcom/camss/camss-vfe-4-7.c struct vfe_output *output = &vfe->line[line_id].output; vfe 715 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 716 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 717 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_IRQ_COMPOSITE_MASK_0, comp_mask); vfe 719 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 720 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 721 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_IRQ_COMPOSITE_MASK_0, comp_mask); vfe 725 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_enable_irq_common(struct vfe_device *vfe) vfe 731 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_0, irq_en0); vfe 732 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_IRQ_MASK_1, irq_en1); vfe 735 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_demux_cfg(struct vfe_device *vfe, struct vfe_line *line) vfe 739 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(VFE_0_DEMUX_CFG_PERIOD, vfe->base + VFE_0_DEMUX_CFG); vfe 742 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_DEMUX_GAIN_0); vfe 745 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_DEMUX_GAIN_1); vfe 767 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(even_cfg, vfe->base + VFE_0_DEMUX_EVEN_CFG); vfe 768 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(odd_cfg, vfe->base + VFE_0_DEMUX_ODD_CFG); vfe 785 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_scale_cfg(struct vfe_device *vfe, struct vfe_line *line) vfe 793 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(0x3, vfe->base + VFE_0_SCALE_ENC_Y_CFG); vfe 798 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_Y_H_IMAGE_SIZE); vfe 803 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_Y_H_PHASE); vfe 808 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_Y_V_IMAGE_SIZE); vfe 813 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_Y_V_PHASE); vfe 815 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(0x3, vfe->base + VFE_0_SCALE_ENC_CBCR_CFG); vfe 820 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_CBCR_H_IMAGE_SIZE); vfe 825 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_CBCR_H_PHASE); vfe 832 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_CBCR_V_IMAGE_SIZE); vfe 837 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_SCALE_ENC_CBCR_V_PHASE); vfe 840 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_crop_cfg(struct vfe_device *vfe, struct vfe_line *line) vfe 849 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_CROP_ENC_Y_WIDTH); vfe 854 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_CROP_ENC_Y_HEIGHT); vfe 859 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_CROP_ENC_CBCR_WIDTH); vfe 868 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(reg, vfe->base + VFE_0_CROP_ENC_CBCR_HEIGHT); vfe 871 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_clamp_cfg(struct vfe_device *vfe) vfe 877 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CLAMP_ENC_MAX_CFG); vfe 883 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CLAMP_ENC_MIN_CFG); vfe 886 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_qos(struct vfe_device *vfe) vfe 891 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_0); vfe 892 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_1); vfe 893 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_2); vfe 894 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_3); vfe 895 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_4); vfe 896 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_5); vfe 897 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_QOS_CFG_6); vfe 898 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val7, vfe->base + VFE_0_BUS_BDG_QOS_CFG_7); vfe 901 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_ds(struct vfe_device *vfe) vfe 906 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_0); vfe 907 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_1); vfe 908 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_2); vfe 909 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_3); vfe 910 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_4); vfe 911 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_5); vfe 912 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_6); vfe 913 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_7); vfe 914 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_8); vfe 915 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_9); vfe 916 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_10); vfe 917 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_11); vfe 918 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_12); vfe 919 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_13); vfe 920 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_14); vfe 921 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_BUS_BDG_DS_CFG_15); vfe 922 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val16, vfe->base + VFE_0_BUS_BDG_DS_CFG_16); vfe 925 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_cgc_override(struct vfe_device *vfe, u8 wm, u8 enable) vfe 930 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_camif_cfg(struct vfe_device *vfe, struct vfe_line *line) vfe 951 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CORE_CFG); vfe 955 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_FRAME_CFG); vfe 958 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_WINDOW_WIDTH_CFG); vfe 961 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_WINDOW_HEIGHT_CFG); vfe 964 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_SUBSAMPLE_CFG); vfe 967 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_IRQ_FRAMEDROP_PATTERN); vfe 970 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN); vfe 973 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_RDI_CFG_x(0), val); vfe 976 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(val, vfe->base + VFE_0_CAMIF_CFG); vfe 979 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_camif_cmd(struct vfe_device *vfe, u8 enable) vfe 984 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(cmd, vfe->base + VFE_0_CAMIF_CMD); vfe 992 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(cmd, vfe->base + VFE_0_CAMIF_CMD); vfe 995 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_set_module_cfg(struct vfe_device *vfe, u8 enable) vfe 1003 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_MODULE_LENS_EN, val_lens); vfe 1004 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_set(vfe, VFE_0_MODULE_ZOOM_EN, val_zoom); vfe 1006 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_MODULE_LENS_EN, val_lens); vfe 1007 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_reg_clr(vfe, VFE_0_MODULE_ZOOM_EN, val_zoom); vfe 1011 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static int vfe_camif_wait_for_stop(struct vfe_device *vfe, struct device *dev) vfe 1016 drivers/media/platform/qcom/camss/camss-vfe-4-7.c ret = readl_poll_timeout(vfe->base + VFE_0_CAMIF_STATUS, vfe 1027 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_isr_read(struct vfe_device *vfe, u32 *value0, u32 *value1) vfe 1029 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *value0 = readl_relaxed(vfe->base + VFE_0_IRQ_STATUS_0); vfe 1030 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *value1 = readl_relaxed(vfe->base + VFE_0_IRQ_STATUS_1); vfe 1032 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(*value0, vfe->base + VFE_0_IRQ_CLEAR_0); vfe 1033 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(*value1, vfe->base + VFE_0_IRQ_CLEAR_1); vfe 1036 drivers/media/platform/qcom/camss/camss-vfe-4-7.c writel_relaxed(VFE_0_IRQ_CMD_GLOBAL_CLEAR, vfe->base + VFE_0_IRQ_CMD); vfe 1039 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_violation_read(struct vfe_device *vfe) vfe 1041 drivers/media/platform/qcom/camss/camss-vfe-4-7.c u32 violation = readl_relaxed(vfe->base + VFE_0_VIOLATION_STATUS); vfe 1055 drivers/media/platform/qcom/camss/camss-vfe-4-7.c struct vfe_device *vfe = dev; vfe 1059 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->ops->isr_read(vfe, &value0, &value1); vfe 1065 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->isr_ops.reset_ack(vfe); vfe 1068 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->ops->violation_read(vfe); vfe 1071 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->isr_ops.halt_ack(vfe); vfe 1075 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->isr_ops.reg_update(vfe, i); vfe 1078 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->isr_ops.sof(vfe, VFE_LINE_PIX); vfe 1082 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->isr_ops.sof(vfe, i); vfe 1086 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->isr_ops.comp_done(vfe, i); vfe 1087 drivers/media/platform/qcom/camss/camss-vfe-4-7.c for (j = 0; j < ARRAY_SIZE(vfe->wm_output_map); j++) vfe 1088 drivers/media/platform/qcom/camss/camss-vfe-4-7.c if (vfe->wm_output_map[j] == VFE_LINE_PIX) vfe 1094 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe->isr_ops.wm_done(vfe, i); vfe 158 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 160 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->camss->version == CAMSS_8x16) vfe 208 drivers/media/platform/qcom/camss/camss-vfe.c else if (vfe->camss->version == CAMSS_8x96) vfe 278 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_reset(struct vfe_device *vfe) vfe 282 drivers/media/platform/qcom/camss/camss-vfe.c reinit_completion(&vfe->reset_complete); vfe 284 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->global_reset(vfe); vfe 286 drivers/media/platform/qcom/camss/camss-vfe.c time = wait_for_completion_timeout(&vfe->reset_complete, vfe 289 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, "VFE reset timeout\n"); vfe 302 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_halt(struct vfe_device *vfe) vfe 306 drivers/media/platform/qcom/camss/camss-vfe.c reinit_completion(&vfe->halt_complete); vfe 308 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->halt_request(vfe); vfe 310 drivers/media/platform/qcom/camss/camss-vfe.c time = wait_for_completion_timeout(&vfe->halt_complete, vfe 313 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, "VFE halt timeout\n"); vfe 320 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_init_outputs(struct vfe_device *vfe) vfe 324 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < ARRAY_SIZE(vfe->line); i++) { vfe 325 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_output *output = &vfe->line[i].output; vfe 334 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_reset_output_maps(struct vfe_device *vfe) vfe 338 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < ARRAY_SIZE(vfe->wm_output_map); i++) vfe 339 drivers/media/platform/qcom/camss/camss-vfe.c vfe->wm_output_map[i] = VFE_LINE_NONE; vfe 342 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_output_init_addrs(struct vfe_device *vfe, vfe 362 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->wm_set_ping_addr(vfe, output->wm_idx[i], ping_addr); vfe 363 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->wm_set_pong_addr(vfe, output->wm_idx[i], pong_addr); vfe 365 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->bus_reload_wm(vfe, output->wm_idx[i]); vfe 369 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_output_update_ping_addr(struct vfe_device *vfe, vfe 381 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->wm_set_ping_addr(vfe, output->wm_idx[i], addr); vfe 383 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->bus_reload_wm(vfe, output->wm_idx[i]); vfe 387 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_output_update_pong_addr(struct vfe_device *vfe, vfe 399 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->wm_set_pong_addr(vfe, output->wm_idx[i], addr); vfe 401 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->bus_reload_wm(vfe, output->wm_idx[i]); vfe 406 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_reserve_wm(struct vfe_device *vfe, enum vfe_line_id line_id) vfe 411 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < ARRAY_SIZE(vfe->wm_output_map); i++) { vfe 412 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->wm_output_map[i] == VFE_LINE_NONE) { vfe 413 drivers/media/platform/qcom/camss/camss-vfe.c vfe->wm_output_map[i] = line_id; vfe 422 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_release_wm(struct vfe_device *vfe, u8 wm) vfe 424 drivers/media/platform/qcom/camss/camss-vfe.c if (wm >= ARRAY_SIZE(vfe->wm_output_map)) vfe 427 drivers/media/platform/qcom/camss/camss-vfe.c vfe->wm_output_map[wm] = VFE_LINE_NONE; vfe 432 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_output_frame_drop(struct vfe_device *vfe, vfe 445 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->wm_set_framedrop_period(vfe, output->wm_idx[i], vfe 447 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->wm_set_framedrop_pattern(vfe, output->wm_idx[i], vfe 450 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->reg_update(vfe, vfe 497 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_buf_update_wm_on_next(struct vfe_device *vfe, vfe 502 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 3); vfe 506 drivers/media/platform/qcom/camss/camss-vfe.c dev_err_ratelimited(vfe->camss->dev, vfe 513 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_buf_update_wm_on_last(struct vfe_device *vfe, vfe 519 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 1); vfe 523 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 0); vfe 526 drivers/media/platform/qcom/camss/camss-vfe.c dev_err_ratelimited(vfe->camss->dev, vfe 533 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_buf_update_wm_on_new(struct vfe_device *vfe, vfe 547 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_update_pong_addr(vfe, output, 0); vfe 549 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_update_ping_addr(vfe, output, 0); vfe 551 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 3); vfe 555 drivers/media/platform/qcom/camss/camss-vfe.c dev_err_ratelimited(vfe->camss->dev, vfe 564 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_init_addrs(vfe, output, 1); vfe 566 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 1); vfe 570 drivers/media/platform/qcom/camss/camss-vfe.c dev_err_ratelimited(vfe->camss->dev, vfe 584 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 591 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 595 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, "Output is running\n"); vfe 615 drivers/media/platform/qcom/camss/camss-vfe.c wm_idx = vfe_reserve_wm(vfe, line->id); vfe 617 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, "Can not reserve wm\n"); vfe 625 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 631 drivers/media/platform/qcom/camss/camss-vfe.c vfe_release_wm(vfe, output->wm_idx[i]); vfe 634 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 641 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 646 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 649 drivers/media/platform/qcom/camss/camss-vfe.c vfe_release_wm(vfe, output->wm_idx[i]); vfe 653 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 659 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 661 drivers/media/platform/qcom/camss/camss-vfe.c const struct vfe_hw_ops *ops = vfe->ops; vfe 668 drivers/media/platform/qcom/camss/camss-vfe.c ub_size = ops->get_ub_size(vfe->id); vfe 683 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 685 drivers/media/platform/qcom/camss/camss-vfe.c ops->reg_update_clear(vfe, line->id); vfe 688 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, "Output is not in reserved state %d\n", vfe 690 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 711 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 1 << frame_skip); vfe 714 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 3 << frame_skip); vfe 717 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 0); vfe 727 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_init_addrs(vfe, output, 0); vfe 730 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_cgc_override(vfe, output->wm_idx[0], 1); vfe 731 drivers/media/platform/qcom/camss/camss-vfe.c ops->enable_irq_wm_line(vfe, output->wm_idx[0], line->id, 1); vfe 732 drivers/media/platform/qcom/camss/camss-vfe.c ops->bus_connect_wm_to_rdi(vfe, output->wm_idx[0], line->id); vfe 733 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_set_subsample(vfe, output->wm_idx[0]); vfe 734 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_rdi_cid(vfe, line->id, 0); vfe 735 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_set_ub_cfg(vfe, output->wm_idx[0], vfe 737 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_frame_based(vfe, output->wm_idx[0], 1); vfe 738 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_enable(vfe, output->wm_idx[0], 1); vfe 739 drivers/media/platform/qcom/camss/camss-vfe.c ops->bus_reload_wm(vfe, output->wm_idx[0]); vfe 743 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_cgc_override(vfe, output->wm_idx[i], 1); vfe 744 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_set_subsample(vfe, output->wm_idx[i]); vfe 745 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_set_ub_cfg(vfe, output->wm_idx[i], vfe 748 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_line_based(vfe, output->wm_idx[i], vfe 751 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_enable(vfe, output->wm_idx[i], 1); vfe 752 drivers/media/platform/qcom/camss/camss-vfe.c ops->bus_reload_wm(vfe, output->wm_idx[i]); vfe 754 drivers/media/platform/qcom/camss/camss-vfe.c ops->enable_irq_pix_line(vfe, 0, line->id, 1); vfe 755 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_module_cfg(vfe, 1); vfe 756 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_camif_cfg(vfe, line); vfe 757 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_realign_cfg(vfe, line, 1); vfe 758 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_xbar_cfg(vfe, output, 1); vfe 759 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_demux_cfg(vfe, line); vfe 760 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_scale_cfg(vfe, line); vfe 761 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_crop_cfg(vfe, line); vfe 762 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_clamp_cfg(vfe); vfe 763 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_camif_cmd(vfe, 1); vfe 766 drivers/media/platform/qcom/camss/camss-vfe.c ops->reg_update(vfe, line->id); vfe 768 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 775 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 777 drivers/media/platform/qcom/camss/camss-vfe.c const struct vfe_hw_ops *ops = vfe->ops; vfe 782 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 785 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 790 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, "VFE sof timeout\n"); vfe 792 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 794 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_enable(vfe, output->wm_idx[i], 0); vfe 796 drivers/media/platform/qcom/camss/camss-vfe.c ops->reg_update(vfe, line->id); vfe 798 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 803 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, "VFE reg update timeout\n"); vfe 805 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 808 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_frame_based(vfe, output->wm_idx[0], 0); vfe 809 drivers/media/platform/qcom/camss/camss-vfe.c ops->bus_disconnect_wm_from_rdi(vfe, output->wm_idx[0], vfe 811 drivers/media/platform/qcom/camss/camss-vfe.c ops->enable_irq_wm_line(vfe, output->wm_idx[0], line->id, 0); vfe 812 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_cgc_override(vfe, output->wm_idx[0], 0); vfe 813 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 816 drivers/media/platform/qcom/camss/camss-vfe.c ops->wm_line_based(vfe, output->wm_idx[i], NULL, i, 0); vfe 817 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_cgc_override(vfe, output->wm_idx[i], 0); vfe 820 drivers/media/platform/qcom/camss/camss-vfe.c ops->enable_irq_pix_line(vfe, 0, line->id, 0); vfe 821 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_module_cfg(vfe, 0); vfe 822 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_realign_cfg(vfe, line, 0); vfe 823 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_xbar_cfg(vfe, output, 0); vfe 825 drivers/media/platform/qcom/camss/camss-vfe.c ops->set_camif_cmd(vfe, 0); vfe 826 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 828 drivers/media/platform/qcom/camss/camss-vfe.c ops->camif_wait_for_stop(vfe, vfe->camss->dev); vfe 842 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 845 drivers/media/platform/qcom/camss/camss-vfe.c mutex_lock(&vfe->stream_lock); vfe 847 drivers/media/platform/qcom/camss/camss-vfe.c if (!vfe->stream_count) { vfe 848 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->enable_irq_common(vfe); vfe 850 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->bus_enable_wr_if(vfe, 1); vfe 852 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->set_qos(vfe); vfe 854 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->set_ds(vfe); vfe 857 drivers/media/platform/qcom/camss/camss-vfe.c vfe->stream_count++; vfe 859 drivers/media/platform/qcom/camss/camss-vfe.c mutex_unlock(&vfe->stream_lock); vfe 869 drivers/media/platform/qcom/camss/camss-vfe.c vfe->was_streaming = 1; vfe 878 drivers/media/platform/qcom/camss/camss-vfe.c mutex_lock(&vfe->stream_lock); vfe 880 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->stream_count == 1) vfe 881 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->bus_enable_wr_if(vfe, 0); vfe 883 drivers/media/platform/qcom/camss/camss-vfe.c vfe->stream_count--; vfe 885 drivers/media/platform/qcom/camss/camss-vfe.c mutex_unlock(&vfe->stream_lock); vfe 898 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 904 drivers/media/platform/qcom/camss/camss-vfe.c mutex_lock(&vfe->stream_lock); vfe 906 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->stream_count == 1) vfe 907 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->bus_enable_wr_if(vfe, 0); vfe 909 drivers/media/platform/qcom/camss/camss-vfe.c vfe->stream_count--; vfe 911 drivers/media/platform/qcom/camss/camss-vfe.c mutex_unlock(&vfe->stream_lock); vfe 921 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_isr_sof(struct vfe_device *vfe, enum vfe_line_id line_id) vfe 926 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 927 drivers/media/platform/qcom/camss/camss-vfe.c output = &vfe->line[line_id].output; vfe 932 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 940 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_isr_reg_update(struct vfe_device *vfe, enum vfe_line_id line_id) vfe 945 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 946 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->reg_update_clear(vfe, line_id); vfe 948 drivers/media/platform/qcom/camss/camss-vfe.c output = &vfe->line[line_id].output; vfe 953 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 985 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 2); vfe 988 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 3); vfe 991 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_frame_drop(vfe, output, 0); vfe 995 drivers/media/platform/qcom/camss/camss-vfe.c vfe_output_init_addrs(vfe, output, 1); vfe 998 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 1006 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_isr_wm_done(struct vfe_device *vfe, u8 wm) vfe 1016 drivers/media/platform/qcom/camss/camss-vfe.c active_index = vfe->ops->wm_get_ping_pong_status(vfe, wm); vfe 1018 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 1020 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->wm_output_map[wm] == VFE_LINE_NONE) { vfe 1021 drivers/media/platform/qcom/camss/camss-vfe.c dev_err_ratelimited(vfe->camss->dev, vfe 1025 drivers/media/platform/qcom/camss/camss-vfe.c output = &vfe->line[vfe->wm_output_map[wm]].output; vfe 1028 drivers/media/platform/qcom/camss/camss-vfe.c dev_err_ratelimited(vfe->camss->dev, vfe 1036 drivers/media/platform/qcom/camss/camss-vfe.c dev_err_ratelimited(vfe->camss->dev, vfe 1050 drivers/media/platform/qcom/camss/camss-vfe.c vfe_buf_update_wm_on_last(vfe, output); vfe 1053 drivers/media/platform/qcom/camss/camss-vfe.c vfe_buf_update_wm_on_next(vfe, output); vfe 1058 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->wm_set_ping_addr(vfe, output->wm_idx[i], vfe 1062 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->wm_set_pong_addr(vfe, output->wm_idx[i], vfe 1065 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 1075 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 1083 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_isr_comp_done(struct vfe_device *vfe, u8 comp) vfe 1087 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < ARRAY_SIZE(vfe->wm_output_map); i++) vfe 1088 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->wm_output_map[i] == VFE_LINE_PIX) { vfe 1089 drivers/media/platform/qcom/camss/camss-vfe.c vfe_isr_wm_done(vfe, i); vfe 1094 drivers/media/platform/qcom/camss/camss-vfe.c static inline void vfe_isr_reset_ack(struct vfe_device *vfe) vfe 1096 drivers/media/platform/qcom/camss/camss-vfe.c complete(&vfe->reset_complete); vfe 1099 drivers/media/platform/qcom/camss/camss-vfe.c static inline void vfe_isr_halt_ack(struct vfe_device *vfe) vfe 1101 drivers/media/platform/qcom/camss/camss-vfe.c complete(&vfe->halt_complete); vfe 1102 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->halt_clear(vfe); vfe 1111 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_set_clock_rates(struct vfe_device *vfe) vfe 1113 drivers/media/platform/qcom/camss/camss-vfe.c struct device *dev = vfe->camss->dev; vfe 1119 drivers/media/platform/qcom/camss/camss-vfe.c ret = camss_get_pixel_clock(&vfe->line[i].subdev.entity, vfe 1125 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < vfe->nclocks; i++) { vfe 1126 drivers/media/platform/qcom/camss/camss-vfe.c struct camss_clock *clock = &vfe->clock[i]; vfe 1140 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_line *l = &vfe->line[j]; vfe 1194 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_check_clock_rates(struct vfe_device *vfe) vfe 1201 drivers/media/platform/qcom/camss/camss-vfe.c ret = camss_get_pixel_clock(&vfe->line[i].subdev.entity, vfe 1207 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < vfe->nclocks; i++) { vfe 1208 drivers/media/platform/qcom/camss/camss-vfe.c struct camss_clock *clock = &vfe->clock[i]; vfe 1222 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_line *l = &vfe->line[j]; vfe 1251 drivers/media/platform/qcom/camss/camss-vfe.c static int vfe_get(struct vfe_device *vfe) vfe 1255 drivers/media/platform/qcom/camss/camss-vfe.c mutex_lock(&vfe->power_lock); vfe 1257 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->power_count == 0) { vfe 1258 drivers/media/platform/qcom/camss/camss-vfe.c ret = camss_pm_domain_on(vfe->camss, vfe->id); vfe 1262 drivers/media/platform/qcom/camss/camss-vfe.c ret = pm_runtime_get_sync(vfe->camss->dev); vfe 1266 drivers/media/platform/qcom/camss/camss-vfe.c ret = vfe_set_clock_rates(vfe); vfe 1270 drivers/media/platform/qcom/camss/camss-vfe.c ret = camss_enable_clocks(vfe->nclocks, vfe->clock, vfe 1271 drivers/media/platform/qcom/camss/camss-vfe.c vfe->camss->dev); vfe 1275 drivers/media/platform/qcom/camss/camss-vfe.c ret = vfe_reset(vfe); vfe 1279 drivers/media/platform/qcom/camss/camss-vfe.c vfe_reset_output_maps(vfe); vfe 1281 drivers/media/platform/qcom/camss/camss-vfe.c vfe_init_outputs(vfe); vfe 1283 drivers/media/platform/qcom/camss/camss-vfe.c ret = vfe_check_clock_rates(vfe); vfe 1287 drivers/media/platform/qcom/camss/camss-vfe.c vfe->power_count++; vfe 1289 drivers/media/platform/qcom/camss/camss-vfe.c mutex_unlock(&vfe->power_lock); vfe 1294 drivers/media/platform/qcom/camss/camss-vfe.c camss_disable_clocks(vfe->nclocks, vfe->clock); vfe 1297 drivers/media/platform/qcom/camss/camss-vfe.c pm_runtime_put_sync(vfe->camss->dev); vfe 1300 drivers/media/platform/qcom/camss/camss-vfe.c camss_pm_domain_off(vfe->camss, vfe->id); vfe 1303 drivers/media/platform/qcom/camss/camss-vfe.c mutex_unlock(&vfe->power_lock); vfe 1312 drivers/media/platform/qcom/camss/camss-vfe.c static void vfe_put(struct vfe_device *vfe) vfe 1314 drivers/media/platform/qcom/camss/camss-vfe.c mutex_lock(&vfe->power_lock); vfe 1316 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->power_count == 0) { vfe 1317 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, "vfe power off on power_count == 0\n"); vfe 1319 drivers/media/platform/qcom/camss/camss-vfe.c } else if (vfe->power_count == 1) { vfe 1320 drivers/media/platform/qcom/camss/camss-vfe.c if (vfe->was_streaming) { vfe 1321 drivers/media/platform/qcom/camss/camss-vfe.c vfe->was_streaming = 0; vfe 1322 drivers/media/platform/qcom/camss/camss-vfe.c vfe_halt(vfe); vfe 1324 drivers/media/platform/qcom/camss/camss-vfe.c camss_disable_clocks(vfe->nclocks, vfe->clock); vfe 1325 drivers/media/platform/qcom/camss/camss-vfe.c pm_runtime_put_sync(vfe->camss->dev); vfe 1326 drivers/media/platform/qcom/camss/camss-vfe.c camss_pm_domain_off(vfe->camss, vfe->id); vfe 1329 drivers/media/platform/qcom/camss/camss-vfe.c vfe->power_count--; vfe 1332 drivers/media/platform/qcom/camss/camss-vfe.c mutex_unlock(&vfe->power_lock); vfe 1349 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 1355 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 1357 drivers/media/platform/qcom/camss/camss-vfe.c vfe_buf_update_wm_on_new(vfe, output, buf); vfe 1359 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 1378 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 1384 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_irqsave(&vfe->output_lock, flags); vfe 1399 drivers/media/platform/qcom/camss/camss-vfe.c spin_unlock_irqrestore(&vfe->output_lock, flags); vfe 1414 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 1418 drivers/media/platform/qcom/camss/camss-vfe.c ret = vfe_get(vfe); vfe 1422 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops->hw_version_read(vfe, vfe->camss->dev); vfe 1424 drivers/media/platform/qcom/camss/camss-vfe.c vfe_put(vfe); vfe 1442 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe = to_vfe(line); vfe 1448 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, vfe 1453 drivers/media/platform/qcom/camss/camss-vfe.c dev_err(vfe->camss->dev, vfe 1980 drivers/media/platform/qcom/camss/camss-vfe.c int msm_vfe_subdev_init(struct camss *camss, struct vfe_device *vfe, vfe 1989 drivers/media/platform/qcom/camss/camss-vfe.c vfe->isr_ops.reset_ack = vfe_isr_reset_ack; vfe 1990 drivers/media/platform/qcom/camss/camss-vfe.c vfe->isr_ops.halt_ack = vfe_isr_halt_ack; vfe 1991 drivers/media/platform/qcom/camss/camss-vfe.c vfe->isr_ops.reg_update = vfe_isr_reg_update; vfe 1992 drivers/media/platform/qcom/camss/camss-vfe.c vfe->isr_ops.sof = vfe_isr_sof; vfe 1993 drivers/media/platform/qcom/camss/camss-vfe.c vfe->isr_ops.comp_done = vfe_isr_comp_done; vfe 1994 drivers/media/platform/qcom/camss/camss-vfe.c vfe->isr_ops.wm_done = vfe_isr_wm_done; vfe 1997 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops = &vfe_ops_4_1; vfe 1999 drivers/media/platform/qcom/camss/camss-vfe.c vfe->ops = &vfe_ops_4_7; vfe 2006 drivers/media/platform/qcom/camss/camss-vfe.c vfe->base = devm_ioremap_resource(dev, r); vfe 2007 drivers/media/platform/qcom/camss/camss-vfe.c if (IS_ERR(vfe->base)) { vfe 2009 drivers/media/platform/qcom/camss/camss-vfe.c return PTR_ERR(vfe->base); vfe 2021 drivers/media/platform/qcom/camss/camss-vfe.c vfe->irq = r->start; vfe 2022 drivers/media/platform/qcom/camss/camss-vfe.c snprintf(vfe->irq_name, sizeof(vfe->irq_name), "%s_%s%d", vfe 2023 drivers/media/platform/qcom/camss/camss-vfe.c dev_name(dev), MSM_VFE_NAME, vfe->id); vfe 2024 drivers/media/platform/qcom/camss/camss-vfe.c ret = devm_request_irq(dev, vfe->irq, vfe->ops->isr, vfe 2025 drivers/media/platform/qcom/camss/camss-vfe.c IRQF_TRIGGER_RISING, vfe->irq_name, vfe); vfe 2033 drivers/media/platform/qcom/camss/camss-vfe.c vfe->nclocks = 0; vfe 2034 drivers/media/platform/qcom/camss/camss-vfe.c while (res->clock[vfe->nclocks]) vfe 2035 drivers/media/platform/qcom/camss/camss-vfe.c vfe->nclocks++; vfe 2037 drivers/media/platform/qcom/camss/camss-vfe.c vfe->clock = devm_kcalloc(dev, vfe->nclocks, sizeof(*vfe->clock), vfe 2039 drivers/media/platform/qcom/camss/camss-vfe.c if (!vfe->clock) vfe 2042 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < vfe->nclocks; i++) { vfe 2043 drivers/media/platform/qcom/camss/camss-vfe.c struct camss_clock *clock = &vfe->clock[i]; vfe 2071 drivers/media/platform/qcom/camss/camss-vfe.c mutex_init(&vfe->power_lock); vfe 2072 drivers/media/platform/qcom/camss/camss-vfe.c vfe->power_count = 0; vfe 2074 drivers/media/platform/qcom/camss/camss-vfe.c mutex_init(&vfe->stream_lock); vfe 2075 drivers/media/platform/qcom/camss/camss-vfe.c vfe->stream_count = 0; vfe 2077 drivers/media/platform/qcom/camss/camss-vfe.c spin_lock_init(&vfe->output_lock); vfe 2079 drivers/media/platform/qcom/camss/camss-vfe.c vfe->camss = camss; vfe 2080 drivers/media/platform/qcom/camss/camss-vfe.c vfe->id = id; vfe 2081 drivers/media/platform/qcom/camss/camss-vfe.c vfe->reg_update = 0; vfe 2084 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_line *l = &vfe->line[i]; vfe 2113 drivers/media/platform/qcom/camss/camss-vfe.c init_completion(&vfe->reset_complete); vfe 2114 drivers/media/platform/qcom/camss/camss-vfe.c init_completion(&vfe->halt_complete); vfe 2128 drivers/media/platform/qcom/camss/camss-vfe.c struct vfe_device *vfe; vfe 2132 drivers/media/platform/qcom/camss/camss-vfe.c vfe = to_vfe(line); vfe 2134 drivers/media/platform/qcom/camss/camss-vfe.c *id = vfe->id; vfe 2210 drivers/media/platform/qcom/camss/camss-vfe.c void msm_vfe_stop_streaming(struct vfe_device *vfe) vfe 2214 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < ARRAY_SIZE(vfe->line); i++) vfe 2215 drivers/media/platform/qcom/camss/camss-vfe.c msm_video_stop_streaming(&vfe->line[i].video_out); vfe 2230 drivers/media/platform/qcom/camss/camss-vfe.c int msm_vfe_register_entities(struct vfe_device *vfe, vfe 2233 drivers/media/platform/qcom/camss/camss-vfe.c struct device *dev = vfe->camss->dev; vfe 2240 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < ARRAY_SIZE(vfe->line); i++) { vfe 2243 drivers/media/platform/qcom/camss/camss-vfe.c sd = &vfe->line[i].subdev; vfe 2244 drivers/media/platform/qcom/camss/camss-vfe.c pads = vfe->line[i].pads; vfe 2245 drivers/media/platform/qcom/camss/camss-vfe.c video_out = &vfe->line[i].video_out; vfe 2252 drivers/media/platform/qcom/camss/camss-vfe.c MSM_VFE_NAME, vfe->id, "pix"); vfe 2255 drivers/media/platform/qcom/camss/camss-vfe.c MSM_VFE_NAME, vfe->id, "rdi", i); vfe 2257 drivers/media/platform/qcom/camss/camss-vfe.c v4l2_set_subdevdata(sd, &vfe->line[i]); vfe 2291 drivers/media/platform/qcom/camss/camss-vfe.c MSM_VFE_NAME, vfe->id, "video", i); vfe 2325 drivers/media/platform/qcom/camss/camss-vfe.c sd = &vfe->line[i].subdev; vfe 2326 drivers/media/platform/qcom/camss/camss-vfe.c video_out = &vfe->line[i].video_out; vfe 2340 drivers/media/platform/qcom/camss/camss-vfe.c void msm_vfe_unregister_entities(struct vfe_device *vfe) vfe 2344 drivers/media/platform/qcom/camss/camss-vfe.c mutex_destroy(&vfe->power_lock); vfe 2345 drivers/media/platform/qcom/camss/camss-vfe.c mutex_destroy(&vfe->stream_lock); vfe 2347 drivers/media/platform/qcom/camss/camss-vfe.c for (i = 0; i < ARRAY_SIZE(vfe->line); i++) { vfe 2348 drivers/media/platform/qcom/camss/camss-vfe.c struct v4l2_subdev *sd = &vfe->line[i].subdev; vfe 2349 drivers/media/platform/qcom/camss/camss-vfe.c struct camss_video *video_out = &vfe->line[i].video_out; vfe 81 drivers/media/platform/qcom/camss/camss-vfe.h void (*hw_version_read)(struct vfe_device *vfe, struct device *dev); vfe 83 drivers/media/platform/qcom/camss/camss-vfe.h void (*global_reset)(struct vfe_device *vfe); vfe 84 drivers/media/platform/qcom/camss/camss-vfe.h void (*halt_request)(struct vfe_device *vfe); vfe 85 drivers/media/platform/qcom/camss/camss-vfe.h void (*halt_clear)(struct vfe_device *vfe); vfe 86 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_enable)(struct vfe_device *vfe, u8 wm, u8 enable); vfe 87 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_frame_based)(struct vfe_device *vfe, u8 wm, u8 enable); vfe 88 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_line_based)(struct vfe_device *vfe, u32 wm, vfe 91 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_set_framedrop_period)(struct vfe_device *vfe, u8 wm, u8 per); vfe 92 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_set_framedrop_pattern)(struct vfe_device *vfe, u8 wm, vfe 94 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_set_ub_cfg)(struct vfe_device *vfe, u8 wm, u16 offset, vfe 96 drivers/media/platform/qcom/camss/camss-vfe.h void (*bus_reload_wm)(struct vfe_device *vfe, u8 wm); vfe 97 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_set_ping_addr)(struct vfe_device *vfe, u8 wm, u32 addr); vfe 98 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_set_pong_addr)(struct vfe_device *vfe, u8 wm, u32 addr); vfe 99 drivers/media/platform/qcom/camss/camss-vfe.h int (*wm_get_ping_pong_status)(struct vfe_device *vfe, u8 wm); vfe 100 drivers/media/platform/qcom/camss/camss-vfe.h void (*bus_enable_wr_if)(struct vfe_device *vfe, u8 enable); vfe 101 drivers/media/platform/qcom/camss/camss-vfe.h void (*bus_connect_wm_to_rdi)(struct vfe_device *vfe, u8 wm, vfe 103 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_set_subsample)(struct vfe_device *vfe, u8 wm); vfe 104 drivers/media/platform/qcom/camss/camss-vfe.h void (*bus_disconnect_wm_from_rdi)(struct vfe_device *vfe, u8 wm, vfe 106 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_xbar_cfg)(struct vfe_device *vfe, struct vfe_output *output, vfe 108 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_rdi_cid)(struct vfe_device *vfe, enum vfe_line_id id, vfe 110 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_realign_cfg)(struct vfe_device *vfe, struct vfe_line *line, vfe 112 drivers/media/platform/qcom/camss/camss-vfe.h void (*reg_update)(struct vfe_device *vfe, enum vfe_line_id line_id); vfe 113 drivers/media/platform/qcom/camss/camss-vfe.h void (*reg_update_clear)(struct vfe_device *vfe, vfe 115 drivers/media/platform/qcom/camss/camss-vfe.h void (*enable_irq_wm_line)(struct vfe_device *vfe, u8 wm, vfe 117 drivers/media/platform/qcom/camss/camss-vfe.h void (*enable_irq_pix_line)(struct vfe_device *vfe, u8 comp, vfe 119 drivers/media/platform/qcom/camss/camss-vfe.h void (*enable_irq_common)(struct vfe_device *vfe); vfe 120 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_demux_cfg)(struct vfe_device *vfe, struct vfe_line *line); vfe 121 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_scale_cfg)(struct vfe_device *vfe, struct vfe_line *line); vfe 122 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_crop_cfg)(struct vfe_device *vfe, struct vfe_line *line); vfe 123 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_clamp_cfg)(struct vfe_device *vfe); vfe 124 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_qos)(struct vfe_device *vfe); vfe 125 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_ds)(struct vfe_device *vfe); vfe 126 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_cgc_override)(struct vfe_device *vfe, u8 wm, u8 enable); vfe 127 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_camif_cfg)(struct vfe_device *vfe, struct vfe_line *line); vfe 128 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_camif_cmd)(struct vfe_device *vfe, u8 enable); vfe 129 drivers/media/platform/qcom/camss/camss-vfe.h void (*set_module_cfg)(struct vfe_device *vfe, u8 enable); vfe 130 drivers/media/platform/qcom/camss/camss-vfe.h int (*camif_wait_for_stop)(struct vfe_device *vfe, struct device *dev); vfe 131 drivers/media/platform/qcom/camss/camss-vfe.h void (*isr_read)(struct vfe_device *vfe, u32 *value0, u32 *value1); vfe 132 drivers/media/platform/qcom/camss/camss-vfe.h void (*violation_read)(struct vfe_device *vfe); vfe 137 drivers/media/platform/qcom/camss/camss-vfe.h void (*reset_ack)(struct vfe_device *vfe); vfe 138 drivers/media/platform/qcom/camss/camss-vfe.h void (*halt_ack)(struct vfe_device *vfe); vfe 139 drivers/media/platform/qcom/camss/camss-vfe.h void (*reg_update)(struct vfe_device *vfe, enum vfe_line_id line_id); vfe 140 drivers/media/platform/qcom/camss/camss-vfe.h void (*sof)(struct vfe_device *vfe, enum vfe_line_id line_id); vfe 141 drivers/media/platform/qcom/camss/camss-vfe.h void (*comp_done)(struct vfe_device *vfe, u8 comp); vfe 142 drivers/media/platform/qcom/camss/camss-vfe.h void (*wm_done)(struct vfe_device *vfe, u8 wm); vfe 170 drivers/media/platform/qcom/camss/camss-vfe.h int msm_vfe_subdev_init(struct camss *camss, struct vfe_device *vfe, vfe 173 drivers/media/platform/qcom/camss/camss-vfe.h int msm_vfe_register_entities(struct vfe_device *vfe, vfe 176 drivers/media/platform/qcom/camss/camss-vfe.h void msm_vfe_unregister_entities(struct vfe_device *vfe); vfe 181 drivers/media/platform/qcom/camss/camss-vfe.h void msm_vfe_stop_streaming(struct vfe_device *vfe); vfe 571 drivers/media/platform/qcom/camss/camss.c ret = msm_vfe_subdev_init(camss, &camss->vfe[i], vfe 624 drivers/media/platform/qcom/camss/camss.c ret = msm_vfe_register_entities(&camss->vfe[i], vfe 674 drivers/media/platform/qcom/camss/camss.c for (j = 0; j < ARRAY_SIZE(camss->vfe[k].line); j++) { vfe 678 drivers/media/platform/qcom/camss/camss.c &camss->vfe[k].line[j].subdev.entity, vfe 685 drivers/media/platform/qcom/camss/camss.c camss->vfe[k].line[j].subdev.entity.name, vfe 697 drivers/media/platform/qcom/camss/camss.c msm_vfe_unregister_entities(&camss->vfe[i]); vfe 734 drivers/media/platform/qcom/camss/camss.c msm_vfe_unregister_entities(&camss->vfe[i]); vfe 851 drivers/media/platform/qcom/camss/camss.c camss->vfe = devm_kcalloc(dev, camss->vfe_num, sizeof(*camss->vfe), vfe 853 drivers/media/platform/qcom/camss/camss.c if (!camss->vfe) vfe 972 drivers/media/platform/qcom/camss/camss.c msm_vfe_stop_streaming(&camss->vfe[i]); vfe 82 drivers/media/platform/qcom/camss/camss.h struct vfe_device *vfe; vfe 774 drivers/pinctrl/qcom/pinctrl-msm8660.c FUNCTION(vfe), vfe 810 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(29, vfe, gp_mn, _, _, _, _, _), vfe 811 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(30, vfe, gp_clk_0a, _, _, _, _, _), vfe 812 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(31, vfe, gp_clk_1a, _, _, _, _, _), vfe 823 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(42, gsbi3, vfe, _, _, _, _, _), vfe 827 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(46, gsbi4, gsbi3_spi_cs3_n, vfe, _, _, _, _), vfe 886 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(105, mi2s, gsbi11, vfe, _, _, _, _), vfe 887 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(106, mi2s, gsbi11, vfe, _, _, _, _), vfe 898 drivers/pinctrl/qcom/pinctrl-msm8660.c PINGROUP(117, i2s, gsbi12, vfe, _, _, _, _),