Lines Matching refs:write_reg
89 write_reg(reg_control, read_reg(reg_control) | KW_I2C_CTL_STOP); in do_stop()
129 write_reg(reg_control, read_reg(reg_control) in handle_interrupt()
134 write_reg(reg_data, *(iface->data++)); in handle_interrupt()
150 write_reg(reg_control, 0); in handle_interrupt()
166 write_reg(reg_data, *(iface->data++)); in handle_interrupt()
178 write_reg(reg_control, 0x00); in handle_interrupt()
179 write_reg(reg_ier, 0x00); in handle_interrupt()
185 write_reg(reg_isr, isr); in handle_interrupt()
291 write_reg(reg_mode, iface->cur_mode | (chan->chan_no << 4)); in keywest_smbus_xfer()
292 write_reg(reg_isr, read_reg(reg_isr)); in keywest_smbus_xfer()
293 write_reg(reg_status, 0); in keywest_smbus_xfer()
296 write_reg(reg_addr, in keywest_smbus_xfer()
302 write_reg(reg_subaddr, command); in keywest_smbus_xfer()
309 write_reg(reg_control, read_reg(reg_control) | KW_I2C_CTL_XADDR); in keywest_smbus_xfer()
310 write_reg(reg_ier, KW_I2C_IRQ_MASK); in keywest_smbus_xfer()
363 write_reg(reg_mode, iface->cur_mode | (chan->chan_no << 4)); in keywest_xfer()
364 write_reg(reg_isr, read_reg(reg_isr)); in keywest_xfer()
365 write_reg(reg_status, 0); in keywest_xfer()
380 write_reg(reg_addr, in keywest_xfer()
389 write_reg(reg_control, read_reg(reg_control) | KW_I2C_CTL_XADDR); in keywest_xfer()
390 write_reg(reg_ier, KW_I2C_IRQ_MASK); in keywest_xfer()
510 write_reg(reg_mode, iface->cur_mode); in create_iface()
513 write_reg(reg_ier, 0x00); in create_iface()
514 write_reg(reg_isr, KW_I2C_IRQ_MASK); in create_iface()