Lines Matching refs:temp
410 unsigned int temp; in i2c_imx_bus_busy() local
415 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
418 if (temp & I2SR_IAL) { in i2c_imx_bus_busy()
419 temp &= ~I2SR_IAL; in i2c_imx_bus_busy()
420 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
424 if (for_busy && (temp & I2SR_IBB)) { in i2c_imx_bus_busy()
428 if (!for_busy && !(temp & I2SR_IBB)) { in i2c_imx_bus_busy()
525 unsigned int temp = 0; in i2c_imx_start() local
539 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
540 temp |= I2CR_MSTA; in i2c_imx_start()
541 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
546 temp |= I2CR_IIEN | I2CR_MTX | I2CR_TXAK; in i2c_imx_start()
547 temp &= ~I2CR_DMAEN; in i2c_imx_start()
548 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
554 unsigned int temp = 0; in i2c_imx_stop() local
559 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
560 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_stop()
562 temp &= ~I2CR_DMAEN; in i2c_imx_stop()
563 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
577 temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN, in i2c_imx_stop()
578 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
584 unsigned int temp; in i2c_imx_isr() local
586 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_isr()
587 if (temp & I2SR_IIF) { in i2c_imx_isr()
589 i2c_imx->i2csr = temp; in i2c_imx_isr()
590 temp &= ~I2SR_IIF; in i2c_imx_isr()
591 temp |= (i2c_imx->hwdata->i2sr_clr_opcode & I2SR_IIF); in i2c_imx_isr()
592 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_isr()
605 unsigned int temp = 0; in i2c_imx_dma_write() local
618 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
619 temp |= I2CR_DMAEN; in i2c_imx_dma_write()
620 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
637 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_write()
638 if (temp & I2SR_ICF) in i2c_imx_dma_write()
648 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
649 temp &= ~I2CR_DMAEN; in i2c_imx_dma_write()
650 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
667 unsigned int temp; in i2c_imx_dma_read() local
692 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_read()
693 if (temp & I2SR_ICF) in i2c_imx_dma_read()
703 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
704 temp &= ~I2CR_DMAEN; in i2c_imx_dma_read()
705 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
708 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
709 temp |= I2CR_TXAK; in i2c_imx_dma_read()
710 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
724 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
725 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_dma_read()
726 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
736 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
737 temp |= I2CR_MTX; in i2c_imx_dma_read()
738 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
781 unsigned int temp; in i2c_imx_read() local
801 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
802 temp &= ~I2CR_MTX; in i2c_imx_read()
809 temp &= ~I2CR_TXAK; in i2c_imx_read()
811 temp |= I2CR_DMAEN; in i2c_imx_read()
812 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
849 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
850 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_read()
851 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
861 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
862 temp |= I2CR_MTX; in i2c_imx_read()
863 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
868 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
869 temp |= I2CR_TXAK; in i2c_imx_read()
870 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
886 unsigned int i, temp; in i2c_imx_xfer() local
917 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer()
918 temp |= I2CR_RSTA; in i2c_imx_xfer()
919 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer()
928 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer()
932 (temp & I2CR_IEN ? 1 : 0), (temp & I2CR_IIEN ? 1 : 0), in i2c_imx_xfer()
933 (temp & I2CR_MSTA ? 1 : 0), (temp & I2CR_MTX ? 1 : 0), in i2c_imx_xfer()
934 (temp & I2CR_TXAK ? 1 : 0), (temp & I2CR_RSTA ? 1 : 0)); in i2c_imx_xfer()
935 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_xfer()
939 (temp & I2SR_ICF ? 1 : 0), (temp & I2SR_IAAS ? 1 : 0), in i2c_imx_xfer()
940 (temp & I2SR_IBB ? 1 : 0), (temp & I2SR_IAL ? 1 : 0), in i2c_imx_xfer()
941 (temp & I2SR_SRW ? 1 : 0), (temp & I2SR_IIF ? 1 : 0), in i2c_imx_xfer()
942 (temp & I2SR_RXAK ? 1 : 0)); in i2c_imx_xfer()