Searched refs:tcr_val (Results 1 – 3 of 3) sorted by relevance
24 u16 val, tcr_val = i2c->tcr; in viai2c_write() local48 tcr_val |= pmsg->addr & VIAI2C_TCR_ADDR_MASK; in viai2c_write()50 writew(tcr_val, i2c->base + VIAI2C_REG_TCR); in viai2c_write()66 u16 val, tcr_val = i2c->tcr; in viai2c_read() local81 tcr_val |= VIAI2C_TCR_READ | (pmsg->addr & VIAI2C_TCR_ADDR_MASK); in viai2c_read()83 writew(tcr_val, i2c->base + VIAI2C_REG_TCR); in viai2c_read()
83 u16 tcr_val = i2c->tcr; in viai2c_fifo_xfer() local86 tcr_val |= read ? VIAI2C_TCR_READ : 0; in viai2c_fifo_xfer()87 writew(tcr_val | msg->addr, base + VIAI2C_REG_TCR); in viai2c_fifo_xfer()
572 u32 tcr_val; in dwmac1000_ptp_enable() local577 tcr_val = readl(ptpaddr + PTP_TCR); in dwmac1000_ptp_enable()580 tcr_val |= GMAC_PTP_TCR_ATSEN0; in dwmac1000_ptp_enable()581 tcr_val |= GMAC_PTP_TCR_ATSFC; in dwmac1000_ptp_enable()584 tcr_val &= ~GMAC_PTP_TCR_ATSEN0; in dwmac1000_ptp_enable()590 writel(tcr_val, ptpaddr + PTP_TCR); in dwmac1000_ptp_enable()593 ret = readl_poll_timeout(ptpaddr + PTP_TCR, tcr_val, in dwmac1000_ptp_enable()594 !(tcr_val & GMAC_PTP_TCR_ATSFC), in dwmac1000_ptp_enable()