Lines Matching refs:anx7411_reg_write

314 static int anx7411_reg_write(struct i2c_client *client,  in anx7411_reg_write()  function
753 ret |= anx7411_reg_write(ctx->spi_client, CMD_SEND_BUF, in anx7411_send_msg()
775 ret = anx7411_reg_write(ctx->spi_client, CMD_RECV_BUF, 0); in anx7411_process_cmd()
813 ret = anx7411_reg_write(ctx->spi_client, PD_REV_INIT, PD_REV20); in anx7411_config()
814 ret |= anx7411_reg_write(ctx->tcpc_client, FW_CTRL_0, in anx7411_config()
817 ret |= anx7411_reg_write(ctx->spi_client, FW_CTRL_1, in anx7411_config()
821 ret |= anx7411_reg_write(ctx->tcpc_client, VBUS_THRESHOLD_H, 0xff); in anx7411_config()
822 ret |= anx7411_reg_write(ctx->tcpc_client, VBUS_THRESHOLD_L, 0x03); in anx7411_config()
825 ret |= anx7411_reg_write(ctx->tcpc_client, FW_PARAM, in anx7411_config()
828 ret |= anx7411_reg_write(ctx->spi_client, INT_MASK, 0); in anx7411_config()
830 ret |= anx7411_reg_write(ctx->spi_client, PD_EXT_MSG_CTRL, 0xFF); in anx7411_config()
854 ret |= anx7411_reg_write(ctx->spi_client, MAX_POWER, in anx7411_config()
857 ret |= anx7411_reg_write(ctx->spi_client, MIN_POWER, 2); in anx7411_config()
861 ret |= anx7411_reg_write(ctx->spi_client, MAX_VOLTAGE, in anx7411_config()
882 ret = anx7411_reg_write(ctx->spi_client, OCM_CTRL_0, in anx7411_chip_standby()
885 ret |= anx7411_reg_write(ctx->tcpc_client, ANALOG_CTRL_10, 0x80); in anx7411_chip_standby()
889 ret |= anx7411_reg_write(ctx->tcpc_client, TCPC_ROLE_CTRL, in anx7411_chip_standby()
893 ret |= anx7411_reg_write(ctx->tcpc_client, TCPC_COMMAND, in anx7411_chip_standby()
897 ret |= anx7411_reg_write(ctx->tcpc_client, in anx7411_chip_standby()
933 ret = anx7411_reg_write(ctx->spi_client, INT_STS, 0); in anx7411_work_func()
934 ret |= anx7411_reg_write(ctx->tcpc_client, ALERT_0, alert0); in anx7411_work_func()
935 ret |= anx7411_reg_write(ctx->tcpc_client, ALERT_1, alert1); in anx7411_work_func()
1271 ret = anx7411_reg_write(ctx->spi_client, INT_STS, 0); in anx7411_typec_check_connection()
1272 ret |= anx7411_reg_write(ctx->tcpc_client, ALERT_0, 0xFF); in anx7411_typec_check_connection()
1273 ret |= anx7411_reg_write(ctx->tcpc_client, ALERT_1, 0xFF); in anx7411_typec_check_connection()