Lines Matching defs:index
226 static inline void write_sys_grf_reg(struct csi2_dphy_hw *hw, int index, u8 value)
228 const struct grf_reg *reg = &hw->grf_regs[index];
236 static inline void write_grf_reg(struct csi2_dphy_hw *hw, int index, u8 value)
238 const struct grf_reg *reg = &hw->grf_regs[index];
246 static inline u32 read_grf_reg(struct csi2_dphy_hw *hw, int index)
248 const struct grf_reg *reg = &hw->grf_regs[index];
259 static inline void write_csi2_dphy_reg(struct csi2_dphy_hw *hw, int index, u32 value)
261 const struct csi2dphy_reg *reg = &hw->csi2dphy_regs[index];
263 if ((index == CSI2PHY_REG_CTRL_LANE_ENABLE) || (index == CSI2PHY_CLK_LANE_ENABLE) ||
264 (index != CSI2PHY_REG_CTRL_LANE_ENABLE && reg->offset != 0x0)) {
269 static inline void write_csi2_dphy_reg_mask(struct csi2_dphy_hw *hw, int index, u32 value, u32 mask)
271 const struct csi2dphy_reg *reg = &hw->csi2dphy_regs[index];
280 static inline void read_csi2_dphy_reg(struct csi2_dphy_hw *hw, int index, u32 *value)
282 const struct csi2dphy_reg *reg = &hw->csi2dphy_regs[index];
284 if ((index == CSI2PHY_REG_CTRL_LANE_ENABLE) || (index == CSI2PHY_CLK_LANE_ENABLE) ||
285 (index != CSI2PHY_REG_CTRL_LANE_ENABLE && reg->offset != 0x0)) {
739 static int csi_dcphy_wait_lane_prepare(struct csi2_dphy_hw *hw, int index)
744 read_csi2_dphy_reg(hw, index, &val);
747 read_csi2_dphy_reg(hw, index, &val);