Lines Matching refs:temp

126 	unsigned int temp;  in lpi2c_imx_bus_busy()  local
129 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()
132 if (temp & MSR_ALF) { in lpi2c_imx_bus_busy()
133 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()
137 if (temp & (MSR_BBF | MSR_MBF)) in lpi2c_imx_bus_busy()
172 unsigned int temp; in lpi2c_imx_start() local
174 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start()
175 temp |= MCR_RRF | MCR_RTF; in lpi2c_imx_start()
176 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start()
179 temp = i2c_8bit_addr_from_msg(msgs) | (GEN_START << 8); in lpi2c_imx_start()
180 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_start()
188 unsigned int temp; in lpi2c_imx_stop() local
193 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_stop()
194 if (temp & MSR_SDF) in lpi2c_imx_stop()
212 unsigned int temp; in lpi2c_imx_config() local
239 temp = prescale | pincfg << 24; in lpi2c_imx_config()
242 temp |= MCFGR1_IGNACK; in lpi2c_imx_config()
244 writel(temp, lpi2c_imx->base + LPI2C_MCFGR1); in lpi2c_imx_config()
247 temp = (filt << 16) | (filt << 24); in lpi2c_imx_config()
248 writel(temp, lpi2c_imx->base + LPI2C_MCFGR2); in lpi2c_imx_config()
253 temp = datavd << 24 | sethold << 16 | clkhi << 8 | clklo; in lpi2c_imx_config()
256 writel(temp, lpi2c_imx->base + LPI2C_MCCR1); in lpi2c_imx_config()
258 writel(temp, lpi2c_imx->base + LPI2C_MCCR0); in lpi2c_imx_config()
265 unsigned int temp; in lpi2c_imx_master_enable() local
272 temp = MCR_RST; in lpi2c_imx_master_enable()
273 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
280 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
281 temp |= MCR_MEN; in lpi2c_imx_master_enable()
282 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
295 u32 temp; in lpi2c_imx_master_disable() local
297 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_disable()
298 temp &= ~MCR_MEN; in lpi2c_imx_master_disable()
299 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_disable()
347 unsigned int temp, remaining; in lpi2c_imx_set_rx_watermark() local
352 temp = lpi2c_imx->rxfifosize >> 1; in lpi2c_imx_set_rx_watermark()
354 temp = 0; in lpi2c_imx_set_rx_watermark()
356 writel(temp << 16, lpi2c_imx->base + LPI2C_MFCR); in lpi2c_imx_set_rx_watermark()
383 unsigned int temp, data; in lpi2c_imx_read_rxfifo() local
415 temp = remaining; in lpi2c_imx_read_rxfifo()
416 temp |= (RECV_DATA << 8); in lpi2c_imx_read_rxfifo()
417 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read_rxfifo()
419 temp = (remaining > CHUNK_DATA ? CHUNK_DATA : remaining) - 1; in lpi2c_imx_read_rxfifo()
420 temp |= (RECV_DATA << 8); in lpi2c_imx_read_rxfifo()
421 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read_rxfifo()
438 unsigned int temp; in lpi2c_imx_read() local
444 temp = msgs->len > CHUNK_DATA ? CHUNK_DATA - 1 : msgs->len - 1; in lpi2c_imx_read()
445 temp |= (RECV_DATA << 8); in lpi2c_imx_read()
446 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read()
455 unsigned int temp; in lpi2c_imx_xfer() local
494 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_xfer()
495 if ((temp & MSR_NDF) && !result) in lpi2c_imx_xfer()
511 unsigned int temp; in lpi2c_imx_isr() local
514 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_isr()
516 if (temp & MSR_RDF) in lpi2c_imx_isr()
519 if (temp & MSR_TDF) in lpi2c_imx_isr()
522 if (temp & MSR_NDF) in lpi2c_imx_isr()
549 unsigned int temp; in lpi2c_imx_probe() local
607 temp = readl(lpi2c_imx->base + LPI2C_PARAM); in lpi2c_imx_probe()
608 lpi2c_imx->txfifosize = 1 << (temp & 0x0f); in lpi2c_imx_probe()
609 lpi2c_imx->rxfifosize = 1 << ((temp >> 8) & 0x0f); in lpi2c_imx_probe()