Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/hal_nxp-latest/mcux/mcux-sdk/CMSIS/Core/Include/
Dcmsis_gcc.h297 uint32_t result; in __REV()
299 __ASM ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REV()
300 return result; in __REV()
313 uint32_t result; in __REV16() local
315 __ASM ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REV16()
316 return result; in __REV16()
331 int16_t result; in __REVSH()
333 __ASM ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __REVSH()
334 return result; in __REVSH()
375 uint32_t result; in __RBIT() local
[all …]
Dcmsis_armclang_ltm.h421 uint32_t result; in __RRX() local
423 __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __RRX()
424 return(result); in __RRX()
436 uint32_t result; in __LDRBT() local
438 __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); in __LDRBT()
439 return ((uint8_t) result); /* Add explicit type cast here */ in __LDRBT()
451 uint32_t result; in __LDRHT() local
453 __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); in __LDRHT()
454 return ((uint16_t) result); /* Add explicit type cast here */ in __LDRHT()
466 uint32_t result; in __LDRT() local
[all …]
Dcmsis_armclang.h427 uint32_t result; in __RRX() local
429 __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) ); in __RRX()
430 return(result); in __RRX()
442 uint32_t result; in __LDRBT() local
444 __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) ); in __LDRBT()
445 return ((uint8_t) result); /* Add explicit type cast here */ in __LDRBT()
457 uint32_t result; in __LDRHT() local
459 __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) ); in __LDRHT()
460 return ((uint16_t) result); /* Add explicit type cast here */ in __LDRHT()
472 uint32_t result; in __LDRT() local
[all …]
/hal_nxp-latest/mcux/mcux-sdk/CMSIS/Include/
Dcmsis_gcc.h220 uint32_t result; in __get_CONTROL() local
222 __ASM volatile ("MRS %0, control" : "=r" (result) ); in __get_CONTROL()
223 return(result); in __get_CONTROL()
235 uint32_t result; in __TZ_get_CONTROL_NS() local
237 __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); in __TZ_get_CONTROL_NS()
238 return(result); in __TZ_get_CONTROL_NS()
274 uint32_t result; in __get_IPSR() local
276 __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); in __get_IPSR()
277 return(result); in __get_IPSR()
288 uint32_t result; in __get_APSR() local
[all …]
Dcmsis_armclang_ltm.h169 uint32_t result; in __get_CONTROL() local
171 __ASM volatile ("MRS %0, control" : "=r" (result) ); in __get_CONTROL()
172 return(result); in __get_CONTROL()
184 uint32_t result; in __TZ_get_CONTROL_NS() local
186 __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); in __TZ_get_CONTROL_NS()
187 return(result); in __TZ_get_CONTROL_NS()
223 uint32_t result; in __get_IPSR() local
225 __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); in __get_IPSR()
226 return(result); in __get_IPSR()
237 uint32_t result; in __get_APSR() local
[all …]
Dcmsis_armclang.h168 uint32_t result; in __get_CONTROL() local
170 __ASM volatile ("MRS %0, control" : "=r" (result) ); in __get_CONTROL()
171 return(result); in __get_CONTROL()
183 uint32_t result; in __TZ_get_CONTROL_NS() local
185 __ASM volatile ("MRS %0, control_ns" : "=r" (result) ); in __TZ_get_CONTROL_NS()
186 return(result); in __TZ_get_CONTROL_NS()
222 uint32_t result; in __get_IPSR() local
224 __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); in __get_IPSR()
225 return(result); in __get_IPSR()
236 uint32_t result; in __get_APSR() local
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phyrtl8211f/
Dfsl_phyrtl8211f.c103 status_t result; in PHY_RTL8211F_Init() local
112 result = PHY_RTL8211F_READ(handle, PHY_ID1_REG, &regValue); in PHY_RTL8211F_Init()
113 if (result != kStatus_Success) in PHY_RTL8211F_Init()
115 return result; in PHY_RTL8211F_Init()
126 result = PHY_RTL8211F_WRITE(handle, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_RTL8211F_Init()
127 if (result != kStatus_Success) in PHY_RTL8211F_Init()
129 return result; in PHY_RTL8211F_Init()
134 result = PHY_RTL8211F_READ(handle, PHY_BASICCONTROL_REG, &regValue); in PHY_RTL8211F_Init()
135 if (result != kStatus_Success) in PHY_RTL8211F_Init()
137 return result; in PHY_RTL8211F_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phyar8031/
Dfsl_phyar8031.c108 status_t result = kStatus_Success; in PHY_AR8031_Init() local
118 result = PHY_AR8031_READ(handle, PHY_ID1_REG, &regValue); in PHY_AR8031_Init()
119 if (result != kStatus_Success) in PHY_AR8031_Init()
121 return result; in PHY_AR8031_Init()
132 result = PHY_AR8031_WRITE(handle, PHY_DEBUGPORT_ADDR_REG, 0x1F); in PHY_AR8031_Init()
133 if (result != kStatus_Success) in PHY_AR8031_Init()
135 return result; in PHY_AR8031_Init()
137 result = PHY_AR8031_WRITE(handle, PHY_DEBUGPORT_DATA_REG, 0x8); in PHY_AR8031_Init()
138 if (result != kStatus_Success) in PHY_AR8031_Init()
140 return result; in PHY_AR8031_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phyrtl8201/
Dfsl_phyrtl8201.c72 status_t result; in PHY_RTL8201_Init() local
82 result = PHY_RTL8201_READ(handle, PHY_ID1_REG, &regValue); in PHY_RTL8201_Init()
83 if (result != kStatus_Success) in PHY_RTL8201_Init()
85 return result; in PHY_RTL8201_Init()
89 result = PHY_RTL8201_READ(handle, PHY_ID2_REG, &regValue); in PHY_RTL8201_Init()
90 if (result != kStatus_Success) in PHY_RTL8201_Init()
92 return result; in PHY_RTL8201_Init()
105 result = PHY_RTL8201_WRITE(handle, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_RTL8201_Init()
106 if (result != kStatus_Success) in PHY_RTL8201_Init()
108 return result; in PHY_RTL8201_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/codec/wm8904/
Dfsl_wm8904.c75 status_t result = kStatus_Success; in WM8904_UpdateFormat() local
78 result = WM8904_WriteRegister(handle, WM8904_CLK_RATES_2, 0x00); in WM8904_UpdateFormat()
79 if (result != kStatus_WM8904_Success) in WM8904_UpdateFormat()
81 return result; in WM8904_UpdateFormat()
85 result = WM8904_WriteRegister(handle, WM8904_CLK_RATES_1, in WM8904_UpdateFormat()
87 if (result != kStatus_WM8904_Success) in WM8904_UpdateFormat()
89 return result; in WM8904_UpdateFormat()
93result = WM8904_ModifyRegister(handle, WM8904_AUDIO_IF_1, (0x000CU), ((uint16_t)(bitWidth) << 2U)); in WM8904_UpdateFormat()
94 if (result != kStatus_WM8904_Success) in WM8904_UpdateFormat()
96 return result; in WM8904_UpdateFormat()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phyaqr113c/
Dfsl_phyaqr113c.c150 status_t result; in PHY_AQR113C_Init() local
159 result = PHY_AQR113C_READ(handle, PHY_MMD_VEND1, PHY_MMD_VEND1_ID1_REG, &regValue1); in PHY_AQR113C_Init()
160 if (result != kStatus_Success) in PHY_AQR113C_Init()
162 return result; in PHY_AQR113C_Init()
164 result = PHY_AQR113C_READ(handle, PHY_MMD_VEND1, PHY_MMD_VEND1_ID2_REG, &regValue2); in PHY_AQR113C_Init()
165 if (result != kStatus_Success) in PHY_AQR113C_Init()
167 return result; in PHY_AQR113C_Init()
181 result = PHY_AQR113C_READ(handle, PHY_MMD_VEND1, PHY_MMD_VEND1_FW_ID_REG, &regValue1); in PHY_AQR113C_Init()
182 if (result != kStatus_Success) in PHY_AQR113C_Init()
184 return result; in PHY_AQR113C_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/pca9422/
Dfsl_pca9422.c139 bool result; in PCA9422_InitCharger() local
168 result = PCA9422_WriteRegs(handle, PCA9422_CHG_CNTL0, chgCntl, sizeof(chgCntl)); in PCA9422_InitCharger()
170 result = result ? PCA9422_WriteRegs(handle, PCA9422_CHG_CNTL0, &regVal, 1U) : result; in PCA9422_InitCharger()
171 if (!result) in PCA9422_InitCharger()
180 result = PCA9422_WriteRegs(handle, PCA9422_CHGIN_CNTL_0, chgInCntl, sizeof(chgInCntl)); in PCA9422_InitCharger()
181 if (!result) in PCA9422_InitCharger()
190 bool result = true; in PCA9422_SetPreChargeCurrent() local
194 result = PCA9422_WriteRegs(handle, PCA9422_CHG_CNTL0, &regVal, 1U); in PCA9422_SetPreChargeCurrent()
195 if (result == false) in PCA9422_SetPreChargeCurrent()
202result = PCA9422_ModifyReg(handle, PCA9422_CHG_CNTL1, PCA9422_CHARGER_CNTL_1_PRECHG_CURRENT, regVa… in PCA9422_SetPreChargeCurrent()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/iap/
Dfsl_iap.c105 uint32_t result[5] = {0x00U}; in IAP_ReadPartID() local
108 iap_entry(command, result); in IAP_ReadPartID()
109 *partID = result[1]; in IAP_ReadPartID()
111 return translate_iap_status(result[0]); in IAP_ReadPartID()
128 uint32_t result[5] = {0x00U}; in IAP_ReadBootCodeVersion() local
131 iap_entry(command, result); in IAP_ReadBootCodeVersion()
132 bootCodeVersion[0] = result[1]; in IAP_ReadBootCodeVersion()
133 bootCodeVersion[1] = result[2]; in IAP_ReadBootCodeVersion()
135 return translate_iap_status(result[0]); in IAP_ReadBootCodeVersion()
156 uint32_t result[5] = {0x00U}; in IAP_ReinvokeISP() local
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phyvsc8541/
Dfsl_phyvsc8541.c77 status_t result; in PHY_VSC8541_Init() local
87 result = PHY_VSC8541_READ(handle, PHY_ID1_REG, &regValue); in PHY_VSC8541_Init()
88 if (result != kStatus_Success) in PHY_VSC8541_Init()
90 return result; in PHY_VSC8541_Init()
94 result = PHY_VSC8541_READ(handle, PHY_ID2_REG, &regValue); in PHY_VSC8541_Init()
95 if (result != kStatus_Success) in PHY_VSC8541_Init()
97 return result; in PHY_VSC8541_Init()
110 result = PHY_VSC8541_WRITE(handle, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_VSC8541_Init()
111 if (result != kStatus_Success) in PHY_VSC8541_Init()
113 return result; in PHY_VSC8541_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phyksz8081/
Dfsl_phyksz8081.c72 status_t result = kStatus_Success; in PHY_KSZ8081_Init() local
82 result = PHY_KSZ8081_READ(handle, PHY_ID1_REG, &regValue); in PHY_KSZ8081_Init()
83 if (result != kStatus_Success) in PHY_KSZ8081_Init()
85 return result; in PHY_KSZ8081_Init()
96 result = PHY_KSZ8081_WRITE(handle, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_KSZ8081_Init()
97 if (result == kStatus_Success) in PHY_KSZ8081_Init()
100 result = PHY_KSZ8081_READ(handle, PHY_CONTROL2_REG, &regValue); in PHY_KSZ8081_Init()
101 if (result != kStatus_Success) in PHY_KSZ8081_Init()
103 return result; in PHY_KSZ8081_Init()
105result = PHY_KSZ8081_WRITE(handle, PHY_CONTROL2_REG, (regValue | PHY_CTL2_REFCLK_SELECT_MASK)); in PHY_KSZ8081_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/i3c_bus/
Dfsl_component_i3c.c99 status_t result = kStatus_Success; in I3C_BusMasterGetMaxReadLength() local
116 result = I3C_BusMasterSendCCC(master, &getMRLCmd); in I3C_BusMasterGetMaxReadLength()
128 return result; in I3C_BusMasterGetMaxReadLength()
134 status_t result = kStatus_Success; in I3C_BusMasterGetMaxWriteLength() local
143 result = I3C_BusMasterSendCCC(master, &getMWLCmd); in I3C_BusMasterGetMaxWriteLength()
147 return result; in I3C_BusMasterGetMaxWriteLength()
153 status_t result = kStatus_Success; in I3C_BusMasterGetHDRCapability() local
162 result = I3C_BusMasterSendCCC(master, &getHDRCapCmd); in I3C_BusMasterGetHDRCapability()
166 return result; in I3C_BusMasterGetHDRCapability()
173 status_t result = kStatus_Success; in I3C_BusMasterGetPID() local
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phylan8741/
Dfsl_phylan8741.c68 status_t result = kStatus_Success; in PHY_LAN8741_Init() local
79 result = PHY_LAN8741_READ(handle, PHY_ID1_REG, &regValue); in PHY_LAN8741_Init()
80 if (result != kStatus_Success) in PHY_LAN8741_Init()
82 return result; in PHY_LAN8741_Init()
86 result = PHY_LAN8741_READ(handle, PHY_ID2_REG, &regValue); in PHY_LAN8741_Init()
87 if (result != kStatus_Success) in PHY_LAN8741_Init()
89 return result; in PHY_LAN8741_Init()
106 result = PHY_LAN8741_WRITE(handle, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_LAN8741_Init()
107 if (result != kStatus_Success) in PHY_LAN8741_Init()
109 return result; in PHY_LAN8741_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phylan8720a/
Dfsl_phylan8720a.c67 status_t result = kStatus_Success; in PHY_LAN8720A_Init() local
77 result = PHY_LAN8720A_READ(handle, PHY_ID1_REG, &regValue); in PHY_LAN8720A_Init()
78 if (result != kStatus_Success) in PHY_LAN8720A_Init()
80 return result; in PHY_LAN8720A_Init()
92 result = PHY_LAN8720A_WRITE(handle, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_LAN8720A_Init()
93 if (result != kStatus_Success) in PHY_LAN8720A_Init()
95 return result; in PHY_LAN8720A_Init()
99 result = PHY_LAN8720A_READ(handle, PHY_BASICCONTROL_REG, &regValue); in PHY_LAN8720A_Init()
100 if (result != kStatus_Success) in PHY_LAN8720A_Init()
102 return result; in PHY_LAN8720A_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/sx1502/
Dfsl_sx1502.c144 status_t result; in SX1502_ModifyRegister() local
147 result = SX1502_ReadRegister(handle, reg, &regValue); in SX1502_ModifyRegister()
148 if (result != kStatus_Success) in SX1502_ModifyRegister()
150 return result; in SX1502_ModifyRegister()
170 status_t result; in SX1502_Init() local
174 result = SX1502_I2C_Init(handle->i2cHandle, sx1502Config->sx1502I2CInstance, SX1502_I2C_BITRATE, in SX1502_Init()
176 if (result != (status_t)kStatus_HAL_I2cSuccess) in SX1502_Init()
181 result = SX1502_WriteRegister(handle, SX1502_REGPLDMODE, 0U); in SX1502_Init()
182 if (result != kStatus_Success) in SX1502_Init()
184 return result; in SX1502_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phyksz8041/
Dfsl_phyksz8041.c61 status_t result = kStatus_Success; in PHY_KSZ8041_Init() local
71 result = PHY_KSZ8041_READ(handle, PHY_ID1_REG, &regValue); in PHY_KSZ8041_Init()
72 if (result != kStatus_Success) in PHY_KSZ8041_Init()
74 return result; in PHY_KSZ8041_Init()
85 result = PHY_KSZ8041_WRITE(handle, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_KSZ8041_Init()
86 if (result == kStatus_Success) in PHY_KSZ8041_Init()
91 result = PHY_KSZ8041_WRITE(handle, PHY_AUTONEG_ADVERTISE_REG, in PHY_KSZ8041_Init()
95 if (result == kStatus_Success) in PHY_KSZ8041_Init()
97 result = PHY_KSZ8041_WRITE(handle, PHY_BASICCONTROL_REG, in PHY_KSZ8041_Init()
107 result = PHY_KSZ8041_READ(handle, PHY_BASICCONTROL_REG, &regValue); in PHY_KSZ8041_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/icm42688p/
Dfsl_icm42688p.c23 status_t result = kStatus_Success; in ICM42688P_WriteReg() local
24result = handle->Sensor_WriteTransfer(handle->sensorAddress, regAddress, regData, dataSiz… in ICM42688P_WriteReg()
26 return (result == kStatus_Success) ? result : kStatus_Fail; in ICM42688P_WriteReg()
31 status_t result = kStatus_Success; in ICM42688P_ReadReg() local
32result = handle->Sensor_ReadTransfer(handle->sensorAddress, regAddress, regData, dataSize… in ICM42688P_ReadReg()
34 return (result == kStatus_Success) ? result : kStatus_Fail; in ICM42688P_ReadReg()
48 status_t result = kStatus_Success; in ICM42688P_Init() local
55 result = ICM42688P_WriteReg(handle, BANK_SEL, &bankSel, 1U); in ICM42688P_Init()
56 if (result != kStatus_Success) in ICM42688P_Init()
58 return result; in ICM42688P_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phy/device/phydp83848/
Dfsl_phydp83848.c51 status_t result = kStatus_Success; in PHY_DP83848_Init() local
63 result = MDIO_Read(handle->mdioHandle, handle->phyAddr, PHY_ID1_REG, &regValue); in PHY_DP83848_Init()
64 if (result != kStatus_Success) in PHY_DP83848_Init()
66 return result; in PHY_DP83848_Init()
77result = MDIO_Write(handle->mdioHandle, handle->phyAddr, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK… in PHY_DP83848_Init()
78 if (result == kStatus_Success) in PHY_DP83848_Init()
83 result = in PHY_DP83848_Init()
87 if (result == kStatus_Success) in PHY_DP83848_Init()
89 result = MDIO_Write(handle->mdioHandle, handle->phyAddr, PHY_BASICCONTROL_REG, in PHY_DP83848_Init()
99result = MDIO_Read(handle->mdioHandle, handle->phyAddr, PHY_BASICCONTROL_REG, &regValue); in PHY_DP83848_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/pca9420/
Dfsl_pca9420.c75 bool result; in PCA9420_Init() local
99 result = PCA9420_WriteRegs(handle, PCA9420_TOP_CNTL0, topCtl, sizeof(topCtl)); in PCA9420_Init()
100 result = result ? PCA9420_WriteRegs(handle, PCA9420_ACT_DISCHARGE_CNTL_1, &regCtl, 1U) : result; in PCA9420_Init()
101 if (!result) in PCA9420_Init()
203 bool result; in PCA9420_WriteModeConfigs() local
239 result = PCA9420_WriteRegs(handle, modeCfgRegBase, modeCfg, 4U * num); in PCA9420_WriteModeConfigs()
240 if (!result) in PCA9420_WriteModeConfigs()
254 bool result; in PCA9420_ReadModeConfigs() local
277 result = PCA9420_ReadRegs(handle, modeCfgRegBase, modeCfg, 4U * num); in PCA9420_ReadModeConfigs()
278 if (!result) in PCA9420_ReadModeConfigs()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/components/phyksz8081/
Dfsl_phy.c35 status_t result = kStatus_Success; in PHY_Init() local
60 result = PHY_Write(base, phyAddr, PHY_BASICCONTROL_REG, PHY_BCTL_RESET_MASK); in PHY_Init()
61 if (result == kStatus_Success) in PHY_Init()
65 result = PHY_Read(base, phyAddr, PHY_CONTROL2_REG, &data); in PHY_Init()
66 if (result != kStatus_Success) in PHY_Init()
68 return result; in PHY_Init()
70 result = PHY_Write(base, phyAddr, PHY_CONTROL2_REG, (data | PHY_CTL2_REFCLK_SELECT_MASK)); in PHY_Init()
71 if (result != kStatus_Success) in PHY_Init()
73 return result; in PHY_Init()
78 result = PHY_Write(base, phyAddr, PHY_AUTONEG_ADVERTISE_REG, in PHY_Init()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/ii2c/
Dfsl_i2c.c179 status_t result = kStatus_Success; in I2C_InitTransferStateMachine() local
233 result = I2C_MasterRepeatedStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachine()
237 result = I2C_MasterStart(base, handle->transfer.slaveAddress, direction); in I2C_InitTransferStateMachine()
240 return result; in I2C_InitTransferStateMachine()
245 status_t result = kStatus_Success; in I2C_CheckAndClearError() local
257 result = kStatus_I2C_ArbitrationLost; in I2C_CheckAndClearError()
262 result = kStatus_I2C_Nak; in I2C_CheckAndClearError()
269 return result; in I2C_CheckAndClearError()
274 status_t result = kStatus_Success; in I2C_MasterTransferRunStateMachine() local
285 result = I2C_CheckAndClearError(base, statusFlags); in I2C_MasterTransferRunStateMachine()
[all …]

12345678910>>...13