Lines Matching refs:temp

120 	unsigned int temp;  in lpi2c_imx_bus_busy()  local
123 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()
126 if (temp & MSR_ALF) { in lpi2c_imx_bus_busy()
127 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()
131 if (temp & (MSR_BBF | MSR_MBF)) in lpi2c_imx_bus_busy()
166 unsigned int temp; in lpi2c_imx_start() local
168 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start()
169 temp |= MCR_RRF | MCR_RTF; in lpi2c_imx_start()
170 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start()
173 temp = i2c_8bit_addr_from_msg(msgs) | (GEN_START << 8); in lpi2c_imx_start()
174 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_start()
182 unsigned int temp; in lpi2c_imx_stop() local
187 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_stop()
188 if (temp & MSR_SDF) in lpi2c_imx_stop()
206 unsigned int temp; in lpi2c_imx_config() local
233 temp = prescale | pincfg << 24; in lpi2c_imx_config()
236 temp |= MCFGR1_IGNACK; in lpi2c_imx_config()
238 writel(temp, lpi2c_imx->base + LPI2C_MCFGR1); in lpi2c_imx_config()
241 temp = (filt << 16) | (filt << 24); in lpi2c_imx_config()
242 writel(temp, lpi2c_imx->base + LPI2C_MCFGR2); in lpi2c_imx_config()
247 temp = datavd << 24 | sethold << 16 | clkhi << 8 | clklo; in lpi2c_imx_config()
250 writel(temp, lpi2c_imx->base + LPI2C_MCCR1); in lpi2c_imx_config()
252 writel(temp, lpi2c_imx->base + LPI2C_MCCR0); in lpi2c_imx_config()
259 unsigned int temp; in lpi2c_imx_master_enable() local
266 temp = MCR_RST; in lpi2c_imx_master_enable()
267 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
274 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
275 temp |= MCR_MEN; in lpi2c_imx_master_enable()
276 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
289 u32 temp; in lpi2c_imx_master_disable() local
291 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_disable()
292 temp &= ~MCR_MEN; in lpi2c_imx_master_disable()
293 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_disable()
341 unsigned int temp, remaining; in lpi2c_imx_set_rx_watermark() local
346 temp = lpi2c_imx->rxfifosize >> 1; in lpi2c_imx_set_rx_watermark()
348 temp = 0; in lpi2c_imx_set_rx_watermark()
350 writel(temp << 16, lpi2c_imx->base + LPI2C_MFCR); in lpi2c_imx_set_rx_watermark()
377 unsigned int temp, data; in lpi2c_imx_read_rxfifo() local
409 temp = remaining; in lpi2c_imx_read_rxfifo()
410 temp |= (RECV_DATA << 8); in lpi2c_imx_read_rxfifo()
411 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read_rxfifo()
413 temp = (remaining > CHUNK_DATA ? CHUNK_DATA : remaining) - 1; in lpi2c_imx_read_rxfifo()
414 temp |= (RECV_DATA << 8); in lpi2c_imx_read_rxfifo()
415 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read_rxfifo()
432 unsigned int temp; in lpi2c_imx_read() local
438 temp = msgs->len > CHUNK_DATA ? CHUNK_DATA - 1 : msgs->len - 1; in lpi2c_imx_read()
439 temp |= (RECV_DATA << 8); in lpi2c_imx_read()
440 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read()
449 unsigned int temp; in lpi2c_imx_xfer() local
488 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_xfer()
489 if ((temp & MSR_NDF) && !result) in lpi2c_imx_xfer()
505 unsigned int temp; in lpi2c_imx_isr() local
508 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_isr()
510 if (temp & MSR_RDF) in lpi2c_imx_isr()
513 if (temp & MSR_TDF) in lpi2c_imx_isr()
516 if (temp & MSR_NDF) in lpi2c_imx_isr()
542 unsigned int temp; in lpi2c_imx_probe() local
597 temp = readl(lpi2c_imx->base + LPI2C_PARAM); in lpi2c_imx_probe()
598 lpi2c_imx->txfifosize = 1 << (temp & 0x0f); in lpi2c_imx_probe()
599 lpi2c_imx->rxfifosize = 1 << ((temp >> 8) & 0x0f); in lpi2c_imx_probe()