Lines Matching refs:hal2_write

97 static inline void hal2_write(u32 val, u32 *reg)  in hal2_write()  function
108 hal2_write(H2_READ_ADDR(addr), &regs->iar); in hal2_i_read32()
111 hal2_write(H2_READ_ADDR(addr) | 0x1, &regs->iar); in hal2_i_read32()
121 hal2_write(val, &regs->idr0); in hal2_i_write16()
122 hal2_write(0, &regs->idr1); in hal2_i_write16()
123 hal2_write(0, &regs->idr2); in hal2_i_write16()
124 hal2_write(0, &regs->idr3); in hal2_i_write16()
125 hal2_write(H2_WRITE_ADDR(addr), &regs->iar); in hal2_i_write16()
133 hal2_write(val & 0xffff, &regs->idr0); in hal2_i_write32()
134 hal2_write(val >> 16, &regs->idr1); in hal2_i_write32()
135 hal2_write(0, &regs->idr2); in hal2_i_write32()
136 hal2_write(0, &regs->idr3); in hal2_i_write32()
137 hal2_write(H2_WRITE_ADDR(addr), &regs->iar); in hal2_i_write32()
145 hal2_write(H2_READ_ADDR(addr), &regs->iar); in hal2_i_setbit16()
147 hal2_write((hal2_read(&regs->idr0) & 0xffff) | bit, &regs->idr0); in hal2_i_setbit16()
148 hal2_write(0, &regs->idr1); in hal2_i_setbit16()
149 hal2_write(0, &regs->idr2); in hal2_i_setbit16()
150 hal2_write(0, &regs->idr3); in hal2_i_setbit16()
151 hal2_write(H2_WRITE_ADDR(addr), &regs->iar); in hal2_i_setbit16()
159 hal2_write(H2_READ_ADDR(addr), &regs->iar); in hal2_i_clearbit16()
161 hal2_write((hal2_read(&regs->idr0) & 0xffff) & ~bit, &regs->idr0); in hal2_i_clearbit16()
162 hal2_write(0, &regs->idr1); in hal2_i_clearbit16()
163 hal2_write(0, &regs->idr2); in hal2_i_clearbit16()
164 hal2_write(0, &regs->idr3); in hal2_i_clearbit16()
165 hal2_write(H2_WRITE_ADDR(addr), &regs->iar); in hal2_i_clearbit16()
748 hal2_write(0, &hal2->ctl_regs->isr); in hal2_detect()
751 hal2_write(H2_ISR_GLOBAL_RESET_N | H2_ISR_CODEC_RESET_N, in hal2_detect()