Searched refs:tcr_val (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-wmt.c130 u16 val, tcr_val; wmt_i2c_write() local
165 tcr_val = TCR_STANDARD_MODE; wmt_i2c_write()
167 tcr_val = TCR_FAST_MODE; wmt_i2c_write()
169 tcr_val |= (TCR_MASTER_WRITE | (pmsg->addr & TCR_SLAVE_ADDR_MASK)); wmt_i2c_write()
171 writew(tcr_val, i2c_dev->base + REG_TCR); wmt_i2c_write()
221 u16 val, tcr_val; wmt_i2c_read() local
255 tcr_val = TCR_STANDARD_MODE; wmt_i2c_read()
257 tcr_val = TCR_FAST_MODE; wmt_i2c_read()
259 tcr_val |= TCR_MASTER_READ | (pmsg->addr & TCR_SLAVE_ADDR_MASK); wmt_i2c_read()
261 writew(tcr_val, i2c_dev->base + REG_TCR); wmt_i2c_read()

Completed in 88 milliseconds