Lines Matching refs:reg_id
666 static inline u32 hdmi_map_reg(struct hdmi_context *hdata, u32 reg_id) in hdmi_map_reg() argument
668 if ((reg_id & 0xffff0000) == HDMI_MAPPED_BASE) in hdmi_map_reg()
669 return hdmi_reg_map[reg_id & 0xffff][hdata->drv_data->type]; in hdmi_map_reg()
670 return reg_id; in hdmi_map_reg()
673 static inline u32 hdmi_reg_read(struct hdmi_context *hdata, u32 reg_id) in hdmi_reg_read() argument
675 return readl(hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_read()
679 u32 reg_id, u8 value) in hdmi_reg_writeb() argument
681 writel(value, hdata->regs + hdmi_map_reg(hdata, reg_id)); in hdmi_reg_writeb()
684 static inline void hdmi_reg_writev(struct hdmi_context *hdata, u32 reg_id, in hdmi_reg_writev() argument
687 reg_id = hdmi_map_reg(hdata, reg_id); in hdmi_reg_writev()
690 writel(val & 0xff, hdata->regs + reg_id); in hdmi_reg_writev()
692 reg_id += 4; in hdmi_reg_writev()
696 static inline void hdmi_reg_write_buf(struct hdmi_context *hdata, u32 reg_id, in hdmi_reg_write_buf() argument
699 for (reg_id = hdmi_map_reg(hdata, reg_id); size; --size, reg_id += 4) in hdmi_reg_write_buf()
700 writel(*buf++, hdata->regs + reg_id); in hdmi_reg_write_buf()
704 u32 reg_id, u32 value, u32 mask) in hdmi_reg_writemask() argument
708 reg_id = hdmi_map_reg(hdata, reg_id); in hdmi_reg_writemask()
709 old = readl(hdata->regs + reg_id); in hdmi_reg_writemask()
711 writel(value, hdata->regs + reg_id); in hdmi_reg_writemask()