Lines Matching refs:ncl_ret
82 enum ncl_status ncl_ret; in entropy_npcx_drbg_enable_sha_power() local
84 ncl_ret = NPCX_NCL_SHA_POWER->power(ctx, enable); in entropy_npcx_drbg_enable_sha_power()
85 if (ncl_ret != NCL_STATUS_OK) { in entropy_npcx_drbg_enable_sha_power()
86 LOG_ERR("Fail to %s SHA power: err 0x%02x", enable ? "enable" : "disable", ncl_ret); in entropy_npcx_drbg_enable_sha_power()
95 enum ncl_status ncl_ret; in entropy_npcx_drbg_enable_drbg_power() local
97 ncl_ret = NPCX_NCL_DRBG->power(ctx, enable); in entropy_npcx_drbg_enable_drbg_power()
98 if (ncl_ret != NCL_STATUS_OK) { in entropy_npcx_drbg_enable_drbg_power()
100 ncl_ret); in entropy_npcx_drbg_enable_drbg_power()
110 enum ncl_status ncl_ret; in entropy_npcx_drbg_get_entropy() local
121 ncl_ret = NPCX_NCL_DRBG->generate(ctx, NULL, 0, buf, len); in entropy_npcx_drbg_get_entropy()
122 if (ncl_ret != NCL_STATUS_OK) { in entropy_npcx_drbg_get_entropy()
123 LOG_ERR("Fail to generate: err 0x%02x", ncl_ret); in entropy_npcx_drbg_get_entropy()
140 enum ncl_status ncl_ret; in entropy_npcx_drbg_init() local
160 ncl_ret = NPCX_NCL_DRBG->init_context(ctx); in entropy_npcx_drbg_init()
161 if (ncl_ret != NCL_STATUS_OK) { in entropy_npcx_drbg_init()
162 LOG_ERR("Fail to init ctx: err 0x%02x", ncl_ret); in entropy_npcx_drbg_init()
166 ncl_ret = NPCX_NCL_DRBG->init(ctx, false); in entropy_npcx_drbg_init()
167 if (ncl_ret != NCL_STATUS_OK) { in entropy_npcx_drbg_init()
168 LOG_ERR("Fail to init: err 0x%02x", ncl_ret); in entropy_npcx_drbg_init()
172 ncl_ret = NPCX_NCL_DRBG->config(ctx, NPCX_DRBG_RESEED_INTERVAL, false); in entropy_npcx_drbg_init()
173 if (ncl_ret != NCL_STATUS_OK) { in entropy_npcx_drbg_init()
174 LOG_ERR("Fail to config: err 0x%02x", ncl_ret); in entropy_npcx_drbg_init()
178 ncl_ret = NPCX_NCL_DRBG->instantiate(ctx, NPCX_DRBG_SECURITY_STRENGTH, NULL, 0); in entropy_npcx_drbg_init()
179 if (ncl_ret != NCL_STATUS_OK) { in entropy_npcx_drbg_init()
180 LOG_ERR("Fail to config: err 0x%02x", ncl_ret); in entropy_npcx_drbg_init()