Searched refs:clk_state (Results 1 – 1 of 1) sorted by relevance
426 int clk_state = -1; in i2cWrite() local435 if (hal_ctrl_clk && 0 > (clk_state = ioctl(fid, ST21NFC_CLK_STATE, NULL))) { in i2cWrite()438 clk_state = -1; in i2cWrite()440 STLOG_HAL_D("ST21NFC_CLK_STATE = %d", clk_state); in i2cWrite()441 if (clk_state == 1 && (pvBuffer[3] == 0x01 || pvBuffer[3] == 0x03)) { in i2cWrite()446 } else if (0 > (clk_state = ioctl(fid, ST21NFC_CLK_STATE, NULL))) { in i2cWrite()449 clk_state = -1; in i2cWrite()451 if (clk_state != 0) { in i2cWrite()452 STLOG_HAL_E("CLK_DISABLE STATE ERROR clk_state = %d", clk_state); in i2cWrite()454 } else if (clk_state == 0 && (pvBuffer[3] == 0x02 || pvBuffer[3] == 0x00)) { in i2cWrite()[all …]