Lines Matching full:temp

122 	unsigned int temp;  in lpi2c_imx_bus_busy()  local
125 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()
128 if (temp & MSR_ALF) { in lpi2c_imx_bus_busy()
129 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()
133 if (temp & (MSR_BBF | MSR_MBF)) in lpi2c_imx_bus_busy()
170 unsigned int temp; in lpi2c_imx_start() local
172 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start()
173 temp |= MCR_RRF | MCR_RTF; in lpi2c_imx_start()
174 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_start()
177 temp = i2c_8bit_addr_from_msg(msgs) | (GEN_START << 8); in lpi2c_imx_start()
178 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_start()
186 unsigned int temp; in lpi2c_imx_stop() local
191 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_stop()
192 if (temp & MSR_SDF) in lpi2c_imx_stop()
212 unsigned int temp; in lpi2c_imx_config() local
240 temp = prescale | pincfg << 24; in lpi2c_imx_config()
243 temp |= MCFGR1_IGNACK; in lpi2c_imx_config()
245 writel(temp, lpi2c_imx->base + LPI2C_MCFGR1); in lpi2c_imx_config()
248 temp = (filt << 16) | (filt << 24); in lpi2c_imx_config()
249 writel(temp, lpi2c_imx->base + LPI2C_MCFGR2); in lpi2c_imx_config()
254 temp = datavd << 24 | sethold << 16 | clkhi << 8 | clklo; in lpi2c_imx_config()
257 writel(temp, lpi2c_imx->base + LPI2C_MCCR1); in lpi2c_imx_config()
259 writel(temp, lpi2c_imx->base + LPI2C_MCCR0); in lpi2c_imx_config()
266 unsigned int temp; in lpi2c_imx_master_enable() local
273 temp = MCR_RST; in lpi2c_imx_master_enable()
274 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
281 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
282 temp |= MCR_MEN; in lpi2c_imx_master_enable()
283 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_enable()
296 u32 temp; in lpi2c_imx_master_disable() local
298 temp = readl(lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_disable()
299 temp &= ~MCR_MEN; in lpi2c_imx_master_disable()
300 writel(temp, lpi2c_imx->base + LPI2C_MCR); in lpi2c_imx_master_disable()
350 unsigned int temp, remaining; in lpi2c_imx_set_rx_watermark() local
355 temp = lpi2c_imx->rxfifosize >> 1; in lpi2c_imx_set_rx_watermark()
357 temp = 0; in lpi2c_imx_set_rx_watermark()
359 writel(temp << 16, lpi2c_imx->base + LPI2C_MFCR); in lpi2c_imx_set_rx_watermark()
386 unsigned int temp, data; in lpi2c_imx_read_rxfifo() local
418 temp = remaining; in lpi2c_imx_read_rxfifo()
419 temp |= (RECV_DATA << 8); in lpi2c_imx_read_rxfifo()
420 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read_rxfifo()
422 temp = (remaining > CHUNK_DATA ? CHUNK_DATA : remaining) - 1; in lpi2c_imx_read_rxfifo()
423 temp |= (RECV_DATA << 8); in lpi2c_imx_read_rxfifo()
424 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read_rxfifo()
441 unsigned int temp; in lpi2c_imx_read() local
447 temp = msgs->len > CHUNK_DATA ? CHUNK_DATA - 1 : msgs->len - 1; in lpi2c_imx_read()
448 temp |= (RECV_DATA << 8); in lpi2c_imx_read()
449 writel(temp, lpi2c_imx->base + LPI2C_MTDR); in lpi2c_imx_read()
458 unsigned int temp; in lpi2c_imx_xfer() local
499 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_xfer()
500 if ((temp & MSR_NDF) && !result) in lpi2c_imx_xfer()
517 unsigned int temp; in lpi2c_imx_isr() local
522 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_isr()
523 temp &= enabled; in lpi2c_imx_isr()
525 if (temp & MSR_NDF) in lpi2c_imx_isr()
527 else if (temp & MSR_RDF) in lpi2c_imx_isr()
529 else if (temp & MSR_TDF) in lpi2c_imx_isr()
569 unsigned int temp; in lpi2c_imx_probe() local
633 temp = readl(lpi2c_imx->base + LPI2C_PARAM); in lpi2c_imx_probe()
634 lpi2c_imx->txfifosize = 1 << (temp & 0x0f); in lpi2c_imx_probe()
635 lpi2c_imx->rxfifosize = 1 << ((temp >> 8) & 0x0f); in lpi2c_imx_probe()