• Home
  • Raw
  • Download

Lines Matching refs:temp

418 	unsigned int temp;  in i2c_imx_bus_busy()  local
423 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
426 if (temp & I2SR_IAL) { in i2c_imx_bus_busy()
427 temp &= ~I2SR_IAL; in i2c_imx_bus_busy()
428 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
432 if (for_busy && (temp & I2SR_IBB)) in i2c_imx_bus_busy()
434 if (!for_busy && !(temp & I2SR_IBB)) in i2c_imx_bus_busy()
516 unsigned int temp = 0; in i2c_imx_start() local
532 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
533 temp |= I2CR_MSTA; in i2c_imx_start()
534 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
540 temp |= I2CR_IIEN | I2CR_MTX | I2CR_TXAK; in i2c_imx_start()
541 temp &= ~I2CR_DMAEN; in i2c_imx_start()
542 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
548 unsigned int temp = 0; in i2c_imx_stop() local
553 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
554 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_stop()
556 temp &= ~I2CR_DMAEN; in i2c_imx_stop()
557 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
573 temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN, in i2c_imx_stop()
574 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
580 unsigned int temp; in i2c_imx_isr() local
582 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_isr()
583 if (temp & I2SR_IIF) { in i2c_imx_isr()
585 i2c_imx->i2csr = temp; in i2c_imx_isr()
586 temp &= ~I2SR_IIF; in i2c_imx_isr()
587 temp |= (i2c_imx->hwdata->i2sr_clr_opcode & I2SR_IIF); in i2c_imx_isr()
588 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_isr()
601 unsigned int temp = 0; in i2c_imx_dma_write() local
614 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
615 temp |= I2CR_DMAEN; in i2c_imx_dma_write()
616 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
633 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_write()
634 if (temp & I2SR_ICF) in i2c_imx_dma_write()
644 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
645 temp &= ~I2CR_DMAEN; in i2c_imx_dma_write()
646 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
663 unsigned int temp; in i2c_imx_dma_read() local
688 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_read()
689 if (temp & I2SR_ICF) in i2c_imx_dma_read()
699 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
700 temp &= ~I2CR_DMAEN; in i2c_imx_dma_read()
701 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
704 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
705 temp |= I2CR_TXAK; in i2c_imx_dma_read()
706 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
720 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
721 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_dma_read()
722 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
733 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
734 temp |= I2CR_MTX; in i2c_imx_dma_read()
735 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
778 unsigned int temp; in i2c_imx_read() local
798 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
799 temp &= ~I2CR_MTX; in i2c_imx_read()
806 temp &= ~I2CR_TXAK; in i2c_imx_read()
808 temp |= I2CR_DMAEN; in i2c_imx_read()
809 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
846 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
847 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_read()
848 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
859 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
860 temp |= I2CR_MTX; in i2c_imx_read()
861 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
866 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
867 temp |= I2CR_TXAK; in i2c_imx_read()
868 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
884 unsigned int i, temp; in i2c_imx_xfer() local
915 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer()
916 temp |= I2CR_RSTA; in i2c_imx_xfer()
917 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer()
926 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer()
930 (temp & I2CR_IEN ? 1 : 0), (temp & I2CR_IIEN ? 1 : 0), in i2c_imx_xfer()
931 (temp & I2CR_MSTA ? 1 : 0), (temp & I2CR_MTX ? 1 : 0), in i2c_imx_xfer()
932 (temp & I2CR_TXAK ? 1 : 0), (temp & I2CR_RSTA ? 1 : 0)); in i2c_imx_xfer()
933 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_xfer()
937 (temp & I2SR_ICF ? 1 : 0), (temp & I2SR_IAAS ? 1 : 0), in i2c_imx_xfer()
938 (temp & I2SR_IBB ? 1 : 0), (temp & I2SR_IAL ? 1 : 0), in i2c_imx_xfer()
939 (temp & I2SR_SRW ? 1 : 0), (temp & I2SR_IIF ? 1 : 0), in i2c_imx_xfer()
940 (temp & I2SR_RXAK ? 1 : 0)); in i2c_imx_xfer()