Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 14 of 14) sorted by relevance

/hal_nxp-3.7.0/mcux/mcux-sdk/components/codec/tfa9xxx/vas_tfa_drv/
Dtfa2_dev.c100 int rc; in tfa2_i2c_get_revid() local
102 rc = tfa2_i2c_read_bf(i2c, TFA9XXX_BF_REV); in tfa2_i2c_get_revid()
103 if (rc < 0) in tfa2_i2c_get_revid()
104 return rc; in tfa2_i2c_get_revid()
106 dev_dbg(&i2c->dev, "HW rev: 0x%04x\n", (uint16_t)rc); in tfa2_i2c_get_revid()
108 return rc; in tfa2_i2c_get_revid()
114 int rc = 0; in tfa2_dev_probe() local
121 rc = tfa2_i2c_get_revid(tfa->i2c); in tfa2_dev_probe()
122 if (rc < 0) in tfa2_dev_probe()
125 return rc; in tfa2_dev_probe()
[all …]
Dtfa2_haptic.c83 int rc = -EINVAL; //, virtual_object = index - FW_HB_SEQ_OBJ; in tfa2_haptic_start() local
89 rc = tfa2_haptic_start_object(tfa->i2c, data, index); in tfa2_haptic_start()
93 rc = tfa2_hap_sequencer_object(tfa, index + 1); in tfa2_haptic_start()
96 return rc; in tfa2_haptic_start()
100 int rc; in tfa2_haptic_start_object() local
154rc = tfa2_i2c_write_cf_mem32(client, address, (int32_t *)obj, FW_XMEM_OBJECTSIZE, TFA2_CF_MEM_XMEM… in tfa2_haptic_start_object()
155 if (rc < 0) in tfa2_haptic_start_object()
156 return rc; in tfa2_haptic_start_object()
160rc = tfa2_i2c_write_cf_mem32(client, cmdobjsel, (int32_t *)&cmdobjsel_index, 1, TFA2_CF_MEM_XMEM); in tfa2_haptic_start_object()
168 return rc; in tfa2_haptic_start_object()
[all …]
Dtfa2_init.c16 int rc = 0; in tfa9894_init() local
69 rc = -EINVAL; in tfa9894_init()
75 return rc; in tfa9894_init()
82 int rc; in tfa9894_tfa_mtp_write_wrapper() local
106 rc = (*mtp_write)(tfa, addr, mtp_new); in tfa9894_tfa_mtp_write_wrapper()
107 if (rc < 0) in tfa9894_tfa_mtp_write_wrapper()
117 return rc; in tfa9894_tfa_mtp_write_wrapper()
123 int rc = 0; in tfa9872_init() local
180 rc = -EINVAL; in tfa9872_init()
184 if (rc == 0) in tfa9872_init()
[all …]
Dtfa2_container.c26 int rc = 0, i; in tfa2_cnt_write_dspmem() local
32rc = tfa2_i2c_write_cf_mem32(tfa->i2c, address++, (int32_t *)cfmem + offsetof(nxpTfaDspMem_t, word… in tfa2_cnt_write_dspmem()
34 if (rc < 0) in tfa2_cnt_write_dspmem()
35 return rc; in tfa2_cnt_write_dspmem()
38 return rc; in tfa2_cnt_write_dspmem()
500 int rc; in tfa2_dev_cnt_write_register() local
506 rc = tfa2_i2c_read_reg(tfa->i2c, reg->address); /* will report error */ in tfa2_dev_cnt_write_register()
507 if (rc < 0) in tfa2_dev_cnt_write_register()
508 return rc; in tfa2_dev_cnt_write_register()
509 value = (uint16_t)rc; in tfa2_dev_cnt_write_register()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/components/codec/tfa9xxx/
Dfsl_tfa9xxx.c54 status_t rc; in TFA9XXX_Init() local
71 rc = TFA9XXX_CreatePlatform(handle, config->tfaContainer); in TFA9XXX_Init()
72 if (rc != kStatus_Success) in TFA9XXX_Init()
75 return rc; in TFA9XXX_Init()
79 rc = TFA9XXX_Reset(handle); in TFA9XXX_Init()
80 if (rc != kStatus_Success) in TFA9XXX_Init()
83 return rc; in TFA9XXX_Init()
87 rc = TFA9XXX_PreStartConfigure(handle); in TFA9XXX_Init()
88 if (rc != kStatus_Success) in TFA9XXX_Init()
91 return rc; in TFA9XXX_Init()
[all …]
DREADME.md34 status_t rc;
35 rc = CODEC_Init(&codecHandle, &boardCodecConfig);
36 if(rc != kStatus_Success)
59 status_t rc;
60 rc = CODEC_SetMute(&codecHandle, kCODEC_PlayChannelLeft0 | kCODEC_PlayChannelRight0, mute);
61 if(rc != kStatus_Success)
Dfsl_tfa9xxx_IMX.c205 status_t TFA9XXX_ConvertErrorCode(int32_t rc) in TFA9XXX_ConvertErrorCode() argument
207 switch (rc) in TFA9XXX_ConvertErrorCode()
215 return rc; /* if input is already the predefined error code, return rc directly */ in TFA9XXX_ConvertErrorCode()
255 TFA9XXX_Printf("Error code unknown: %d\n", rc); in TFA9XXX_ConvertErrorCode()
Dfsl_tfa9xxx.h270 status_t TFA9XXX_ConvertErrorCode(int32_t rc);
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/enet_qos/
Dfsl_enet_qos.c3420 status_t rc; in ENET_QOS_EstProgramGcl() local
3467 rc = ENET_QOS_EstProgramWord(base, i, &data, 0); in ENET_QOS_EstProgramGcl()
3468 if (rc != kStatus_Success) in ENET_QOS_EstProgramGcl()
3470 return rc; in ENET_QOS_EstProgramGcl()
3478 rc = ENET_QOS_EstProgramWord(base, (uint32_t)kENET_QOS_Ets_btr_high, &data, 1U); in ENET_QOS_EstProgramGcl()
3479 if (rc != kStatus_Success) in ENET_QOS_EstProgramGcl()
3481 return rc; in ENET_QOS_EstProgramGcl()
3486 rc = ENET_QOS_EstProgramWord(base, (uint32_t)kENET_QOS_Ets_btr_low, &data, 1); in ENET_QOS_EstProgramGcl()
3487 if (rc != kStatus_Success) in ENET_QOS_EstProgramGcl()
3489 return rc; in ENET_QOS_EstProgramGcl()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/devices/MIMX8UD5/drivers/upower/
Dupower_api.c390 int rc; in upwr_srv_req() local
396 rc = upwr_tx(msg, size, upwr_next_req); in upwr_srv_req()
397 if (rc < 0) { in upwr_srv_req()
/hal_nxp-3.7.0/mcux/mcux-sdk/devices/MIMX8UD3/drivers/upower/
Dupower_api.c390 int rc; in upwr_srv_req() local
396 rc = upwr_tx(msg, size, upwr_next_req); in upwr_srv_req()
397 if (rc < 0) { in upwr_srv_req()
/hal_nxp-3.7.0/mcux/mcux-sdk/devices/MIMX8UD7/drivers/upower/
Dupower_api.c390 int rc; in upwr_srv_req() local
396 rc = upwr_tx(msg, size, upwr_next_req); in upwr_srv_req()
397 if (rc < 0) { in upwr_srv_req()
/hal_nxp-3.7.0/mcux/mcux-sdk/devices/MIMX8US3/drivers/upower/
Dupower_api.c390 int rc; in upwr_srv_req() local
396 rc = upwr_tx(msg, size, upwr_next_req); in upwr_srv_req()
397 if (rc < 0) { in upwr_srv_req()
/hal_nxp-3.7.0/mcux/mcux-sdk/devices/MIMX8US5/drivers/upower/
Dupower_api.c390 int rc; in upwr_srv_req() local
396 rc = upwr_tx(msg, size, upwr_next_req); in upwr_srv_req()
397 if (rc < 0) { in upwr_srv_req()