/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
D | hw.c | 102 if (dev->hw_dev->is_unite) { in default_sw_reg_flag() 112 struct rkisp_hw_dev *hw_dev = dev_get_drvdata(dev); in mipi_irq_hdl() local 113 struct rkisp_device *isp = hw_dev->isp[hw_dev->mipi_dev_id]; in mipi_irq_hdl() 114 void __iomem *base = !hw_dev->is_unite ? hw_dev->base_addr : hw_dev->base_next_addr; in mipi_irq_hdl() 116 if (hw_dev->is_thunderboot) { in mipi_irq_hdl() 120 if (hw_dev->isp_ver == ISP_V13 || hw_dev->isp_ver == ISP_V12) { in mipi_irq_hdl() 129 …} else if (hw_dev->isp_ver == ISP_V20 || hw_dev->isp_ver == ISP_V21 || hw_dev->isp_ver == ISP_V30)… in mipi_irq_hdl() 137 if (hw_dev->isp_ver == ISP_V20) { in mipi_irq_hdl() 139 } else if (hw_dev->isp_ver == ISP_V21) { in mipi_irq_hdl() 158 struct rkisp_hw_dev *hw_dev = dev_get_drvdata(dev); in mi_irq_hdl() local [all …]
|
D | common.c | 19 if (dev->hw_dev->is_single || is_direct) { in rkisp_write() 21 writel(val, dev->hw_dev->base_addr + reg); in rkisp_write() 33 if (dev->hw_dev->is_single || is_direct) { in rkisp_next_write() 35 writel(val, dev->hw_dev->base_next_addr + reg); in rkisp_next_write() 43 if (dev->hw_dev->is_single || is_direct) { in rkisp_read() 44 val = readl(dev->hw_dev->base_addr + reg); in rkisp_read() 55 if (dev->hw_dev->is_single || is_direct) { in rkisp_next_read() 56 val = readl(dev->hw_dev->base_next_addr + reg); in rkisp_next_read() 103 void IO_MEM *base = dev->hw_dev->base_addr; in rkisp_update_regs() 123 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkisp_alloc_buffer() [all …]
|
D | dev.c | 185 struct rkisp_hw_dev *hw_dev = dev->hw_dev; in isp_pipeline_s_isp_clk() local 186 u32 w = hw_dev->max_in.w ? hw_dev->max_in.w : dev->isp_sdev.in_frm.width; in isp_pipeline_s_isp_clk() 193 for (i = 0; i < hw_dev->num_clk_rate_tbl; i++) { in isp_pipeline_s_isp_clk() 194 if (w <= hw_dev->clk_rate_tbl[i].refer_data) { in isp_pipeline_s_isp_clk() 198 if (!hw_dev->is_single) { in isp_pipeline_s_isp_clk() 201 if (i > hw_dev->num_clk_rate_tbl - 1) { in isp_pipeline_s_isp_clk() 202 i = hw_dev->num_clk_rate_tbl - 1; in isp_pipeline_s_isp_clk() 207 if (dev->isp_inp == INP_DMARX_ISP && dev->hw_dev->clks[0]) { in isp_pipeline_s_isp_clk() 208 rkisp_set_clk_rate(hw_dev->clks[0], RKISP_DEV_FH * RKISP_DEV_UL); in isp_pipeline_s_isp_clk() 241 for (i = 0; i < hw_dev->num_clk_rate_tbl; i++) { in isp_pipeline_s_isp_clk() [all …]
|
D | csi.c | 275 bool is_feature_on = dev->hw_dev->is_feature_on; in csi_config() 276 u64 iq_feature = dev->hw_dev->iq_feature; in csi_config() 291 … if (dev->hdr.op_mode == HDR_NORMAL && (dev->isp_inp & INP_RAWRD2 || !dev->hw_dev->is_single)) { in csi_config() 302 if (!dev->hw_dev->is_mi_update) { in csi_config() 311 if (dev->hw_dev->is_single) { in csi_config() 316 for (i = 0; i < dev->hw_dev->dev_num; i++) { in csi_config() 317 rkisp_set_bits(dev->hw_dev->isp[i], CSI2RX_DATA_IDS_1, mask, val, false); in csi_config() 404 bool is_feature_on = dev->hw_dev->is_feature_on; in rkisp_csi_config_patch() 405 u64 iq_feature = dev->hw_dev->iq_feature; in rkisp_csi_config_patch() 408 dev->hw_dev->mipi_dev_id = dev->dev_id; in rkisp_csi_config_patch() [all …]
|
D | capture_v30.c | 151 !dev->hw_dev->is_unite) { in rkisp_stream_config_dcrop() 277 bool is_unite = dev->hw_dev->is_unite; in mp_config_mi() 361 bool is_unite = dev->hw_dev->is_unite; in sp_config_mi() 425 bool is_unite = stream->ispdev->hw_dev->is_unite; in fbc_config_mi() 449 bool is_unite = dev->hw_dev->is_unite; in bp_config_mi() 497 …rkisp_unite_set_bits(stream->ispdev, ISP3X_MI_WR_CTRL, mask, val, false, stream->ispdev->hw_dev->i… in mp_enable_mi() 503 stream->ispdev->hw_dev->is_unite); in sp_enable_mi() 509 bool is_unite = stream->ispdev->hw_dev->is_unite; in fbc_enable_mi() 521 …rkisp_unite_write(stream->ispdev, ISP3X_MI_BP_WR_CTRL, val, false, stream->ispdev->hw_dev->is_unit… in bp_enable_mi() 528 …rkisp_unite_clear_bits(stream->ispdev, ISP3X_MI_WR_CTRL, mask, false, stream->ispdev->hw_dev->is_u… in mp_disable_mi() [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
D | hw.c | 112 if (dev->hw_dev->is_unite) { in default_sw_reg_flag() 122 struct rkisp_hw_dev *hw_dev = dev_get_drvdata(dev); in mipi_irq_hdl() local 123 struct rkisp_device *isp = hw_dev->isp[hw_dev->mipi_dev_id]; in mipi_irq_hdl() 124 void __iomem *base = !hw_dev->is_unite ? in mipi_irq_hdl() 125 hw_dev->base_addr : hw_dev->base_next_addr; in mipi_irq_hdl() 127 if (hw_dev->is_thunderboot) in mipi_irq_hdl() 130 if (hw_dev->isp_ver == ISP_V13 || hw_dev->isp_ver == ISP_V12) { in mipi_irq_hdl() 139 } else if (hw_dev->isp_ver == ISP_V20 || in mipi_irq_hdl() 140 hw_dev->isp_ver == ISP_V21 || in mipi_irq_hdl() 141 hw_dev->isp_ver == ISP_V30) { in mipi_irq_hdl() [all …]
|
D | common.c | 19 if (dev->hw_dev->is_single || is_direct) { in rkisp_write() 21 writel(val, dev->hw_dev->base_addr + reg); in rkisp_write() 33 if (dev->hw_dev->is_single || is_direct) { in rkisp_next_write() 35 writel(val, dev->hw_dev->base_next_addr + reg); in rkisp_next_write() 43 if (dev->hw_dev->is_single || is_direct) in rkisp_read() 44 val = readl(dev->hw_dev->base_addr + reg); in rkisp_read() 54 if (dev->hw_dev->is_single || is_direct) in rkisp_next_read() 55 val = readl(dev->hw_dev->base_next_addr + reg); in rkisp_next_read() 101 void __iomem *base = dev->hw_dev->base_addr; in rkisp_update_regs() 121 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkisp_alloc_buffer() [all …]
|
D | dev.c | 166 struct rkisp_hw_dev *hw_dev = dev->hw_dev; in __isp_pipeline_s_isp_clk() local 167 u32 w = hw_dev->max_in.w ? hw_dev->max_in.w : dev->isp_sdev.in_frm.width; in __isp_pipeline_s_isp_clk() 174 for (i = 0; i < hw_dev->num_clk_rate_tbl; i++) { in __isp_pipeline_s_isp_clk() 175 if (w <= hw_dev->clk_rate_tbl[i].refer_data) in __isp_pipeline_s_isp_clk() 178 if (!hw_dev->is_single) in __isp_pipeline_s_isp_clk() 180 if (i > hw_dev->num_clk_rate_tbl - 1) in __isp_pipeline_s_isp_clk() 181 i = hw_dev->num_clk_rate_tbl - 1; in __isp_pipeline_s_isp_clk() 185 if (dev->isp_inp == INP_DMARX_ISP && dev->hw_dev->clks[0]) { in __isp_pipeline_s_isp_clk() 186 rkisp_set_clk_rate(hw_dev->clks[0], 400 * 1000000UL); in __isp_pipeline_s_isp_clk() 219 for (i = 0; i < hw_dev->num_clk_rate_tbl; i++) in __isp_pipeline_s_isp_clk() [all …]
|
D | csi.c | 277 bool is_feature_on = dev->hw_dev->is_feature_on; in csi_config() 278 u64 iq_feature = dev->hw_dev->iq_feature; in csi_config() 297 (dev->isp_inp & INP_RAWRD2 || !dev->hw_dev->is_single)) in csi_config() 305 if (!dev->hw_dev->is_mi_update) in csi_config() 316 if (dev->hw_dev->is_single) { in csi_config() 321 for (i = 0; i < dev->hw_dev->dev_num; i++) in csi_config() 322 rkisp_set_bits(dev->hw_dev->isp[i], in csi_config() 432 bool is_feature_on = dev->hw_dev->is_feature_on; in rkisp_csi_config_patch() 433 u64 iq_feature = dev->hw_dev->iq_feature; in rkisp_csi_config_patch() 436 dev->hw_dev->mipi_dev_id = dev->dev_id; in rkisp_csi_config_patch() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/driv/media/isp/ |
D | hw.c | 112 if (dev->hw_dev->is_unite) { in default_sw_reg_flag() 122 struct rkisp_hw_dev *hw_dev = dev_get_drvdata(dev); in mipi_irq_hdl() local 123 struct rkisp_device *isp = hw_dev->isp[hw_dev->mipi_dev_id]; in mipi_irq_hdl() 124 void __iomem *base = !hw_dev->is_unite ? in mipi_irq_hdl() 125 hw_dev->base_addr : hw_dev->base_next_addr; in mipi_irq_hdl() 127 if (hw_dev->is_thunderboot) in mipi_irq_hdl() 130 if (hw_dev->isp_ver == ISP_V13 || hw_dev->isp_ver == ISP_V12) { in mipi_irq_hdl() 139 } else if (hw_dev->isp_ver == ISP_V20 || in mipi_irq_hdl() 140 hw_dev->isp_ver == ISP_V21 || in mipi_irq_hdl() 141 hw_dev->isp_ver == ISP_V30) { in mipi_irq_hdl() [all …]
|
D | common.c | 19 if (dev->hw_dev->is_single || is_direct) { in rkisp_write() 21 writel(val, dev->hw_dev->base_addr + reg); in rkisp_write() 33 if (dev->hw_dev->is_single || is_direct) { in rkisp_next_write() 35 writel(val, dev->hw_dev->base_next_addr + reg); in rkisp_next_write() 43 if (dev->hw_dev->is_single || is_direct) in rkisp_read() 44 val = readl(dev->hw_dev->base_addr + reg); in rkisp_read() 54 if (dev->hw_dev->is_single || is_direct) in rkisp_next_read() 55 val = readl(dev->hw_dev->base_next_addr + reg); in rkisp_next_read() 101 void __iomem *base = dev->hw_dev->base_addr; in rkisp_update_regs() 121 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkisp_alloc_buffer() [all …]
|
D | dev.c | 166 struct rkisp_hw_dev *hw_dev = dev->hw_dev; in __isp_pipeline_s_isp_clk() local 167 u32 w = hw_dev->max_in.w ? hw_dev->max_in.w : dev->isp_sdev.in_frm.width; in __isp_pipeline_s_isp_clk() 174 for (i = 0; i < hw_dev->num_clk_rate_tbl; i++) { in __isp_pipeline_s_isp_clk() 175 if (w <= hw_dev->clk_rate_tbl[i].refer_data) in __isp_pipeline_s_isp_clk() 178 if (!hw_dev->is_single) in __isp_pipeline_s_isp_clk() 180 if (i > hw_dev->num_clk_rate_tbl - 1) in __isp_pipeline_s_isp_clk() 181 i = hw_dev->num_clk_rate_tbl - 1; in __isp_pipeline_s_isp_clk() 185 if (dev->isp_inp == INP_DMARX_ISP && dev->hw_dev->clks[0]) { in __isp_pipeline_s_isp_clk() 186 rkisp_set_clk_rate(hw_dev->clks[0], 400 * 1000000UL); in __isp_pipeline_s_isp_clk() 219 for (i = 0; i < hw_dev->num_clk_rate_tbl; i++) in __isp_pipeline_s_isp_clk() [all …]
|
D | csi.c | 277 bool is_feature_on = dev->hw_dev->is_feature_on; in csi_config() 278 u64 iq_feature = dev->hw_dev->iq_feature; in csi_config() 297 (dev->isp_inp & INP_RAWRD2 || !dev->hw_dev->is_single)) in csi_config() 305 if (!dev->hw_dev->is_mi_update) in csi_config() 316 if (dev->hw_dev->is_single) { in csi_config() 321 for (i = 0; i < dev->hw_dev->dev_num; i++) in csi_config() 322 rkisp_set_bits(dev->hw_dev->isp[i], in csi_config() 432 bool is_feature_on = dev->hw_dev->is_feature_on; in rkisp_csi_config_patch() 433 u64 iq_feature = dev->hw_dev->iq_feature; in rkisp_csi_config_patch() 436 dev->hw_dev->mipi_dev_id = dev->dev_id; in rkisp_csi_config_patch() [all …]
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
D | hw.c | 81 if (dev->hw_dev->ispp_ver == ISPP_V10) { in default_sw_reg_flag() 91 } else if (dev->hw_dev->ispp_ver == ISPP_V20) { in default_sw_reg_flag() 168 struct rkispp_hw_dev *hw_dev = dev_get_drvdata(dev); in irq_hdl() local 169 struct rkispp_device *ispp = hw_dev->ispp[hw_dev->cur_dev_id]; in irq_hdl() 170 void __iomem *base = hw_dev->base_addr; in irq_hdl() 173 spin_lock(&hw_dev->irq_lock); in irq_hdl() 176 spin_unlock(&hw_dev->irq_lock); in irq_hdl() 180 rkispp_fec_irq(hw_dev); in irq_hdl() 295 struct rkispp_hw_dev *hw_dev; in rkispp_hw_probe() local 305 hw_dev = devm_kzalloc(dev, sizeof(*hw_dev), GFP_KERNEL); in rkispp_hw_probe() [all …]
|
D | common.c | 18 if (dev->hw_dev->is_single) { in rkispp_write() 19 writel(val, dev->hw_dev->base_addr + reg); in rkispp_write() 27 if (dev->hw_dev->is_single) { in rkispp_read() 28 val = readl(dev->hw_dev->base_addr + reg); in rkispp_read() 51 void __iomem *base = dev->hw_dev->base_addr; in rkispp_update_regs() 71 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkispp_allow_buffer() 81 if (dev->hw_dev->is_dma_contig) { in rkispp_allow_buffer() 85 …mem_priv = g_ops->alloc(dev->hw_dev->dev, attrs, buf->size, DMA_BIDIRECTIONAL, GFP_KERNEL | GFP_DM… in rkispp_allow_buffer() 92 if (dev->hw_dev->is_dma_sg_ops) { in rkispp_allow_buffer() 124 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkispp_free_buffer() [all …]
|
D | stream_v20.c | 45 dummy_buf = &dev->hw_dev->dummy_buf; in update_mi() 60 struct rkispp_hw_dev *hw = dev->hw_dev; in config_fec() 135 rkispp_set_clk_rate(dev->hw_dev->clks[0], dev->hw_dev->core_clk_max); in config_fec() 190 void IO_MEM *base = dev->hw_dev->base_addr; in fec_work_event() 281 if (!dev->hw_dev->is_single) { in fec_work_event() 305 if (!dev->hw_dev->is_shutdown) { in fec_work_event() 318 if (dev->hw_dev->is_shutdown) { in rkispp_module_work_event() 345 if (!dev->hw_dev->is_idle) { in rkispp_module_work_event() 346 dev->hw_dev->is_idle = true; in rkispp_module_work_event() 386 mutex_lock(&dev->hw_dev->dev_lock); in start_isp() [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/ |
D | hw.c | 84 if (dev->hw_dev->ispp_ver == ISPP_V10) { in default_sw_reg_flag() 105 } else if (dev->hw_dev->ispp_ver == ISPP_V20) { in default_sw_reg_flag() 178 struct rkispp_hw_dev *hw_dev = dev_get_drvdata(dev); in irq_hdl() local 179 struct rkispp_device *ispp = hw_dev->ispp[hw_dev->cur_dev_id]; in irq_hdl() 180 void __iomem *base = hw_dev->base_addr; in irq_hdl() 183 spin_lock(&hw_dev->irq_lock); in irq_hdl() 186 spin_unlock(&hw_dev->irq_lock); in irq_hdl() 190 rkispp_fec_irq(hw_dev); in irq_hdl() 295 struct rkispp_hw_dev *hw_dev; in rkispp_hw_probe() local 304 hw_dev = devm_kzalloc(dev, sizeof(*hw_dev), GFP_KERNEL); in rkispp_hw_probe() [all …]
|
D | common.c | 18 if (dev->hw_dev->is_single) in rkispp_write() 19 writel(val, dev->hw_dev->base_addr + reg); in rkispp_write() 26 if (dev->hw_dev->is_single) in rkispp_read() 27 val = readl(dev->hw_dev->base_addr + reg); in rkispp_read() 49 void __iomem *base = dev->hw_dev->base_addr; in rkispp_update_regs() 69 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkispp_allow_buffer() 79 if (dev->hw_dev->is_dma_contig) in rkispp_allow_buffer() 82 mem_priv = g_ops->alloc(dev->hw_dev->dev, attrs, buf->size, in rkispp_allow_buffer() 90 if (dev->hw_dev->is_dma_sg_ops) { in rkispp_allow_buffer() 123 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkispp_free_buffer() [all …]
|
D | stream_v20.c | 46 dummy_buf = &dev->hw_dev->dummy_buf; in update_mi() 63 struct rkispp_hw_dev *hw = dev->hw_dev; in config_fec() 141 rkispp_set_clk_rate(dev->hw_dev->clks[0], dev->hw_dev->core_clk_max); in config_fec() 200 void __iomem *base = dev->hw_dev->base_addr; in fec_work_event() 287 if (!dev->hw_dev->is_single) in fec_work_event() 311 if (!dev->hw_dev->is_shutdown) in fec_work_event() 327 if (dev->hw_dev->is_shutdown) in rkispp_module_work_event() 353 if (!dev->hw_dev->is_idle) in rkispp_module_work_event() 354 dev->hw_dev->is_idle = true; in rkispp_module_work_event() 391 mutex_lock(&dev->hw_dev->dev_lock); in start_isp() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/driv/media/ispp/ |
D | hw.c | 84 if (dev->hw_dev->ispp_ver == ISPP_V10) { in default_sw_reg_flag() 105 } else if (dev->hw_dev->ispp_ver == ISPP_V20) { in default_sw_reg_flag() 178 struct rkispp_hw_dev *hw_dev = dev_get_drvdata(dev); in irq_hdl() local 179 struct rkispp_device *ispp = hw_dev->ispp[hw_dev->cur_dev_id]; in irq_hdl() 180 void __iomem *base = hw_dev->base_addr; in irq_hdl() 183 spin_lock(&hw_dev->irq_lock); in irq_hdl() 186 spin_unlock(&hw_dev->irq_lock); in irq_hdl() 190 rkispp_fec_irq(hw_dev); in irq_hdl() 295 struct rkispp_hw_dev *hw_dev; in rkispp_hw_probe() local 304 hw_dev = devm_kzalloc(dev, sizeof(*hw_dev), GFP_KERNEL); in rkispp_hw_probe() [all …]
|
D | common.c | 18 if (dev->hw_dev->is_single) in rkispp_write() 19 writel(val, dev->hw_dev->base_addr + reg); in rkispp_write() 26 if (dev->hw_dev->is_single) in rkispp_read() 27 val = readl(dev->hw_dev->base_addr + reg); in rkispp_read() 49 void __iomem *base = dev->hw_dev->base_addr; in rkispp_update_regs() 69 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkispp_allow_buffer() 79 if (dev->hw_dev->is_dma_contig) in rkispp_allow_buffer() 82 mem_priv = g_ops->alloc(dev->hw_dev->dev, attrs, buf->size, in rkispp_allow_buffer() 90 if (dev->hw_dev->is_dma_sg_ops) { in rkispp_allow_buffer() 123 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkispp_free_buffer() [all …]
|
D | stream_v20.c | 46 dummy_buf = &dev->hw_dev->dummy_buf; in update_mi() 63 struct rkispp_hw_dev *hw = dev->hw_dev; in config_fec() 141 rkispp_set_clk_rate(dev->hw_dev->clks[0], dev->hw_dev->core_clk_max); in config_fec() 200 void __iomem *base = dev->hw_dev->base_addr; in fec_work_event() 287 if (!dev->hw_dev->is_single) in fec_work_event() 311 if (!dev->hw_dev->is_shutdown) in fec_work_event() 327 if (dev->hw_dev->is_shutdown) in rkispp_module_work_event() 353 if (!dev->hw_dev->is_idle) in rkispp_module_work_event() 354 dev->hw_dev->is_idle = true; in rkispp_module_work_event() 391 mutex_lock(&dev->hw_dev->dev_lock); in start_isp() [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/ |
D | common.c | 14 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkcif_alloc_buffer() 24 if (dev->hw_dev->is_dma_contig) in rkcif_alloc_buffer() 27 mem_priv = g_ops->alloc(dev->hw_dev->dev, attrs, buf->size, in rkcif_alloc_buffer() 35 if (dev->hw_dev->is_dma_sg_ops) { in rkcif_alloc_buffer() 68 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkcif_free_buffer() 89 struct rkcif_hw *hw = dev->hw_dev; in rkcif_alloc_page_dummy_buf() 137 dma_unmap_sg(dev->hw_dev->dev, sg->sgl, sg->nents, DMA_BIDIRECTIONAL); in rkcif_free_page_dummy_buf() 148 struct rkcif_hw *hw = dev->hw_dev; in rkcif_alloc_common_dummy_buf() 177 struct rkcif_hw *hw = dev->hw_dev; in rkcif_free_common_dummy_buf()
|
/device/board/isoftstone/yangfan/kernel/src/driv/media/cif/ |
D | common.c | 14 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkcif_alloc_buffer() 24 if (dev->hw_dev->is_dma_contig) in rkcif_alloc_buffer() 27 mem_priv = g_ops->alloc(dev->hw_dev->dev, attrs, buf->size, in rkcif_alloc_buffer() 35 if (dev->hw_dev->is_dma_sg_ops) { in rkcif_alloc_buffer() 68 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkcif_free_buffer() 89 struct rkcif_hw *hw = dev->hw_dev; in rkcif_alloc_page_dummy_buf() 137 dma_unmap_sg(dev->hw_dev->dev, sg->sgl, sg->nents, DMA_BIDIRECTIONAL); in rkcif_free_page_dummy_buf() 148 struct rkcif_hw *hw = dev->hw_dev; in rkcif_alloc_common_dummy_buf() 177 struct rkcif_hw *hw = dev->hw_dev; in rkcif_free_common_dummy_buf()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/ |
D | common.c | 13 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkcif_alloc_buffer() 23 if (dev->hw_dev->is_dma_contig) { in rkcif_alloc_buffer() 27 …mem_priv = g_ops->alloc(dev->hw_dev->dev, attrs, buf->size, DMA_BIDIRECTIONAL, GFP_KERNEL | GFP_DM… in rkcif_alloc_buffer() 34 if (dev->hw_dev->is_dma_sg_ops) { in rkcif_alloc_buffer() 66 const struct vb2_mem_ops *g_ops = dev->hw_dev->mem_ops; in rkcif_free_buffer() 87 struct rkcif_hw *hw = dev->hw_dev; in rkcif_alloc_page_dummy_buf() 139 dma_unmap_sg(dev->hw_dev->dev, sg->sgl, sg->nents, DMA_BIDIRECTIONAL); in rkcif_free_page_dummy_buf() 150 struct rkcif_hw *hw = dev->hw_dev; in rkcif_alloc_common_dummy_buf() 181 struct rkcif_hw *hw = dev->hw_dev; in rkcif_free_common_dummy_buf()
|