Lines Matching refs:clk_state
426 int clk_state = -1; in i2cWrite() local
435 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()
459 } else if (0 > (clk_state = ioctl(fid, ST21NFC_CLK_STATE, NULL))) { in i2cWrite()
462 clk_state = -1; in i2cWrite()
464 if (clk_state != 1) { in i2cWrite()
465 STLOG_HAL_E("CLK_ENABLE STATE ERROR clk_state = %d", clk_state); in i2cWrite()