Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 690) sorted by relevance

12345678910>>...28

/rk3399_ARM-atf/drivers/clk/
H A Dclk.c18 assert((ops != NULL) && (ops->enable != NULL)); in clk_enable()
25 assert((ops != NULL) && (ops->disable != NULL)); in clk_disable()
32 assert((ops != NULL) && (ops->get_rate != NULL)); in clk_get_rate()
41 assert((ops != NULL) && (ops->set_rate != NULL)); in clk_set_rate()
43 if (orate != NULL) { in clk_set_rate()
53 assert((ops != NULL) && (ops->get_possible_parents_num != NULL)); in clk_get_possible_parents_num()
60 assert((ops != NULL) && (ops->get_parent != NULL)); in clk_get_parent()
67 assert((ops != NULL) && (ops->set_parent != NULL)); in clk_set_parent()
74 assert((ops != NULL) && (ops->is_enabled != NULL)); in clk_is_enabled()
85 assert((ops_ptr != NULL) && in clk_register()
[all …]
/rk3399_ARM-atf/lib/debugfs/
H A Ddev.c37 chan_t *channel = NULL; in create_new_channel()
58 return NULL; in fd_to_channel()
70 return (channel == NULL) ? -1 : (channel - fdset); in channel_to_fd()
109 return NULL; in next()
132 if (*dp == NULL) { in get_device_index()
156 if (channel != NULL) { in channel_close()
171 if ((channel == NULL) || (dst == NULL) || (src == NULL)) { in buf_to_channel()
202 if (channel == NULL) { in mount_point_to_channel()
211 return NULL; in mount_point_to_channel()
223 return NULL; in attach()
[all …]
/rk3399_ARM-atf/plat/mediatek/common/lpm/
H A Dmt_lp_rm.c22 if ((rm == NULL) || (rm->consts == NULL) || in mt_lp_rm_register()
23 (plat_mt_rm.plat_rm != NULL)) { in mt_lp_rm_register()
27 for (i = 0U, rc = rm->consts; *rc != NULL; i++, rc++) { in mt_lp_rm_register()
28 if ((*rc)->init != NULL) { in mt_lp_rm_register()
41 struct mt_resource_constraint const *rc = NULL; in mt_lp_rm_reset_constraint()
43 if ((plat_mt_rm.plat_rm == NULL) || (idx >= plat_mt_rm.count)) { in mt_lp_rm_reset_constraint()
49 if ((rc == NULL) || (rc->reset == NULL)) { in mt_lp_rm_reset_constraint()
62 if ((rm == NULL) || (type >= PLAT_RC_MAX)) { in mt_lp_rm_get_status()
66 for (con = rm->consts; *con != NULL; con++) { in mt_lp_rm_get_status()
67 if ((*con)->get_status == NULL) { in mt_lp_rm_get_status()
[all …]
/rk3399_ARM-atf/drivers/auth/
H A Dcrypto_mod.c49 assert(crypto_lib_desc.name != NULL); in crypto_mod_init()
50 assert(crypto_lib_desc.init != NULL); in crypto_mod_init()
53 assert(crypto_lib_desc.verify_signature != NULL); in crypto_mod_init()
54 assert(crypto_lib_desc.verify_hash != NULL); in crypto_mod_init()
60 assert(crypto_lib_desc.calc_hash != NULL); in crypto_mod_init()
86 assert(data_ptr != NULL); in crypto_mod_verify_signature()
88 assert(sig_ptr != NULL); in crypto_mod_verify_signature()
90 assert(sig_alg_ptr != NULL); in crypto_mod_verify_signature()
92 assert(pk_ptr != NULL); in crypto_mod_verify_signature()
112 assert(data_ptr != NULL); in crypto_mod_verify_hash()
[all …]
H A Dimg_parser_mod.c26 assert(desc != NULL); in validate_desc()
27 assert(desc->init != NULL); in validate_desc()
28 assert(desc->name != NULL); in validate_desc()
29 assert(desc->check_integrity != NULL); in validate_desc()
30 assert(desc->get_auth_param != NULL); in validate_desc()
71 assert(img_ptr != NULL); in img_parser_check_integrity()
105 assert(type_desc != NULL); in img_parser_get_auth_param()
106 assert(img_ptr != NULL); in img_parser_get_auth_param()
108 assert(param_ptr != NULL); in img_parser_get_auth_param()
109 assert(param_len != NULL); in img_parser_get_auth_param()
/rk3399_ARM-atf/drivers/mtd/spi-mem/
H A Dspi_mem.c112 if (ops->claim_bus == NULL) { in spi_mem_check_bus_ops()
117 if (ops->release_bus == NULL) { in spi_mem_check_bus_ops()
122 if (ops->exec_op == NULL) { in spi_mem_check_bus_ops()
127 if (ops->set_speed == NULL) { in spi_mem_check_bus_ops()
132 if (ops->set_mode == NULL) { in spi_mem_check_bus_ops()
194 const fdt32_t *cuint = NULL; in spi_mem_init_slave()
212 cuint = fdt_getprop(fdt, bus_subnode, "reg", NULL); in spi_mem_init_slave()
213 if (cuint == NULL) { in spi_mem_init_slave()
222 "spi-max-frequency", NULL); in spi_mem_init_slave()
223 if (cuint != NULL) { in spi_mem_init_slave()
[all …]
/rk3399_ARM-atf/plat/st/common/
H A Dstm32mp_dt.c44 if (fdt == NULL) { in fdt_get_address()
64 return (cchar != NULL) && (len >= 0); in fdt_check_node()
75 cchar = fdt_getprop(fdt, node, "status", NULL); in fdt_get_status()
76 if ((cchar == NULL) || in fdt_get_status()
81 cchar = fdt_getprop(fdt, node, "secure-status", NULL); in fdt_get_status()
82 if (((cchar == NULL) && (status == DT_NON_SECURE)) || in fdt_get_status()
83 ((cchar != NULL) && (strncmp(cchar, "okay", strlen("okay")) == 0))) { in fdt_get_status()
138 cuint = fdt_getprop(fdt, node, "reg", NULL); in dt_fill_device_info()
139 if (cuint != NULL) { in dt_fill_device_info()
145 cuint = fdt_getprop(fdt, node, "clocks", NULL); in dt_fill_device_info()
[all …]
/rk3399_ARM-atf/plat/mediatek/common/lpm_v2/
H A Dmt_lp_rm.c23 if ((rm == NULL) || (rm->consts == NULL) || in mt_lp_rm_register()
24 (plat_mt_rm.plat_rm != NULL)) { in mt_lp_rm_register()
28 for (i = 0U, rc = rm->consts; *rc != NULL; i++, rc++) { in mt_lp_rm_register()
29 if ((*rc)->init != NULL) in mt_lp_rm_register()
41 struct mt_resource_constraint const *rc = NULL; in mt_lp_rm_reset_constraint()
43 if ((plat_mt_rm.plat_rm == NULL) || (idx >= plat_mt_rm.count)) in mt_lp_rm_reset_constraint()
48 if ((rc == NULL) || (rc->reset == NULL)) in mt_lp_rm_reset_constraint()
60 if ((rm == NULL) || (type >= PLAT_RC_MAX)) in mt_lp_rm_get_status()
63 for (con = rm->consts; *con != NULL; con++) { in mt_lp_rm_get_status()
64 if ((*con)->get_status == NULL) in mt_lp_rm_get_status()
[all …]
/rk3399_ARM-atf/tools/cert_create/src/
H A Dkey.c41 if (key->key == NULL) { in key_new()
53 if (rsa == NULL) { in key_create_rsa()
61 RSA *rsa = NULL; in key_create_rsa()
64 if (e == NULL) { in key_create_rsa()
75 if (rsa == NULL) { in key_create_rsa()
80 if (!RSA_generate_key_ex(rsa, key_bits, e, NULL)) { in key_create_rsa()
106 if (ec == NULL) { in key_create_ecdsa()
140 if (ec == NULL) { in key_create_ecdsa()
219 if (!OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, NULL)) { in key_load_pkcs11()
221 return NULL; in key_load_pkcs11()
[all …]
H A Dext.c63 if (extensions == NULL) {
84 cmd_opt.long_opt.flag = NULL;
90 if (ext->oid == NULL) {
151 ex = X509_EXTENSION_create_by_NID(NULL, nid, crit, ext_data); in ext_new()
187 unsigned char *p = NULL; in ext_new_hash()
192 if (hash == NULL) { in ext_new_hash()
193 return NULL; in ext_new_hash()
198 if (algorithm == NULL) { in ext_new_hash()
200 return NULL; in ext_new_hash()
206 ASN1_TYPE_set(hash->hashAlgorithm->parameter, V_ASN1_NULL, NULL); in ext_new_hash()
[all …]
/rk3399_ARM-atf/lib/psci/
H A Dpsci_system_off.c22 assert(psci_plat_pm_ops->system_off != NULL); in psci_system_off()
25 if ((psci_spd_pm != NULL) && (psci_spd_pm->svc_system_off != NULL)) { in psci_system_off()
46 assert(psci_plat_pm_ops->system_reset != NULL); in psci_system_reset()
49 if ((psci_spd_pm != NULL) && (psci_spd_pm->svc_system_reset != NULL)) { in psci_system_reset()
72 assert(psci_plat_pm_ops->system_reset2 != NULL); in psci_system_reset2()
82 if ((psci_plat_pm_ops->write_mem_protect != NULL) && in psci_system_reset2()
89 if ((psci_spd_pm != NULL) && (psci_spd_pm->svc_system_reset != NULL)) { in psci_system_reset2()
/rk3399_ARM-atf/plat/imx/imx8ulp/upower/
H A Dupower_hal.c71 status = upwr_init(APD_DOMAIN, muptr, NULL, NULL, upower_apd_inst_isr, NULL); in upower_init()
101 ret = upwr_pwm_power_on(&swt, NULL, NULL); in upower_pwm()
103 ret = upwr_pwm_power_off(&swt, NULL, NULL); in upower_pwm()
112 ret = upwr_poll_req_status(UPWR_SG_PWRMGMT, NULL, NULL, &ret_val, 1000); in upower_pwm()
131 ret = upwr_tpm_get_temperature(sensor_id, NULL); in upower_read_temperature()
137 ret = upwr_poll_req_status(UPWR_SG_TEMPM, NULL, &err_code, &ret_val, 1000); in upower_read_temperature()
154 ret = upwr_xcp_i2c_access(0x32, 1, 1, reg_addr, reg_val, NULL); in upower_pmic_i2c_write()
161 ret = upwr_poll_req_status(UPWR_SG_EXCEPT, NULL, &err_code, &ret_val, 1000); in upower_pmic_i2c_write()
178 if (reg_val == NULL) { in upower_pmic_i2c_read()
182 ret = upwr_xcp_i2c_access(0x32, -1, 1, reg_addr, 0, NULL); in upower_pmic_i2c_read()
[all …]
/rk3399_ARM-atf/drivers/io/
H A Dio_storage.c37 return (dev_con != NULL) && (dev_con->dev_open != NULL); in is_valid_dev_connector()
45 return (dev != NULL) && (dev->funcs != NULL) && in is_valid_dev()
46 (dev->funcs->type != NULL) && in is_valid_dev()
56 return (entity != NULL) && in is_valid_entity()
76 assert(dev_info != NULL); in io_storage_dev_open()
86 assert(handle != NULL); in set_handle()
110 assert(entity != NULL); in allocate_entity()
114 result = find_first_entity(NULL, &index); in allocate_entity()
130 assert(entity != NULL); in free_entity()
134 entity_map[index] = NULL; in free_entity()
[all …]
H A Dio_semihosting.c49 .dev_init = NULL, /* NOP */
50 .dev_close = NULL, /* NOP */
56 .info = (uintptr_t)NULL
64 assert(dev_info != NULL); in sh_dev_open()
78 assert(file_spec != NULL); in sh_file_open()
79 assert(entity != NULL); in sh_file_open()
96 assert(entity != NULL); in sh_file_seek()
111 assert(entity != NULL); in sh_file_len()
112 assert(length != NULL); in sh_file_len()
135 assert(entity != NULL); in sh_file_read()
[all …]
/rk3399_ARM-atf/drivers/st/regulator/
H A Dregulator_core.c29 ((rdev) <= &rdev_array[PLAT_NB_RDEVS - 1U]) && ((rdev)->desc != NULL); (rdev)++)
33 if (rdev->desc->ops->lock != NULL) { in lock_driver()
40 if (rdev->desc->ops->unlock != NULL) { in unlock_driver()
56 return NULL; in regulator_get_by_phandle()
70 assert(node_name != NULL); in regulator_get_by_name()
80 return NULL; in regulator_get_by_name()
93 cuint = fdt_getprop(fdt, node, prop_name, NULL); in get_supply_phandle()
94 if (cuint != NULL) { in get_supply_phandle()
115 return NULL; in regulator_get_by_supply_name()
123 if (rdev->desc->ops->set_state == NULL) { in __regulator_set_state()
[all …]
/rk3399_ARM-atf/plat/arm/common/
H A Darm_transfer_list.c35 assert(te != NULL); in arm_transfer_list_set_heap_info()
44 assert(heap_addr != NULL); in arm_get_mbedtls_heap()
45 assert(heap_size != NULL); in arm_get_mbedtls_heap()
59 assert(next_param_node != NULL); in arm_transfer_list_dyn_cfg_init()
66 te = transfer_list_add(tl, TL_TAG_FDT, PLAT_ARM_HW_CONFIG_SIZE, NULL); in arm_transfer_list_dyn_cfg_init()
67 assert(te != NULL); in arm_transfer_list_dyn_cfg_init()
76 assert(te != NULL); in arm_transfer_list_dyn_cfg_init()
94 if (next_param_node == NULL) { in arm_transfer_list_dyn_cfg_init()
100 PLAT_ARM_SPMC_SP_MANIFEST_SIZE, NULL); in arm_transfer_list_dyn_cfg_init()
103 PLAT_ARM_SPMC_SP_MANIFEST_SIZE, NULL); in arm_transfer_list_dyn_cfg_init()
[all …]
/rk3399_ARM-atf/tools/encrypt_fw/src/
H A Dmain.c44 assert(cmd != NULL); in print_help()
45 assert(long_opt != NULL); in print_help()
106 { "help", no_argument, NULL, 'h' },
110 { "fw-enc-status", required_argument, NULL, 'f' },
114 { "key-alg", required_argument, NULL, 'a' },
118 { "key", required_argument, NULL, 'k' },
122 { "nonce", required_argument, NULL, 'n' },
126 { "in", required_argument, NULL, 'i' },
130 { "out", required_argument, NULL, 'o' },
140 char *key = NULL; in main()
[all …]
/rk3399_ARM-atf/drivers/arm/gic/v2/
H A Dgicv2_main.c39 assert(driver_data != NULL); in gicv2_cpuif_enable()
62 assert(driver_data != NULL); in gicv2_cpuif_disable()
81 assert(driver_data != NULL); in gicv2_pcpu_distif_init()
105 assert(driver_data != NULL); in gicv2_distif_init()
132 assert(plat_driver_data != NULL); in gicv2_driver_init()
137 plat_driver_data->interrupt_props != NULL : 1); in gicv2_driver_init()
182 assert(driver_data != NULL); in gicv2_is_fiq_enabled()
199 assert(driver_data != NULL); in gicv2_get_pending_interrupt_type()
214 assert(driver_data != NULL); in gicv2_get_pending_interrupt_id()
236 assert(driver_data != NULL); in gicv2_acknowledge_interrupt()
[all …]
/rk3399_ARM-atf/drivers/console/
H A Dmulti_console.c40 assert(to_be_deleted != NULL); in console_unregister()
42 for (ptr = &console_list; *ptr != NULL; ptr = &(*ptr)->next) { in console_unregister()
49 return NULL; in console_unregister()
56 assert(to_find != NULL); in console_is_registered()
58 for (console = console_list; console != NULL; console = console->next) { in console_is_registered()
74 assert(console != NULL); in console_set_scope()
98 for (console = console_list; console != NULL; console = console->next) { in console_putc()
99 if (((console->flags & console_state) != 0U) && (console->putc != NULL)) { in console_putc()
125 for (console = console_list; console != NULL; in console_getc()
127 if (((console->flags & console_state) != 0U) && (console->getc != NULL)) { in console_getc()
[all …]
/rk3399_ARM-atf/common/
H A Dfdt_wrappers.c32 assert(dtb != NULL); in fdt_read_uint32_array()
33 assert(prop_name != NULL); in fdt_read_uint32_array()
34 assert(value != NULL); in fdt_read_uint32_array()
39 if (prop == NULL) { in fdt_read_uint32_array()
115 assert(dtb != NULL); in fdtw_read_bytes()
116 assert(prop != NULL); in fdtw_read_bytes()
117 assert(value != NULL); in fdtw_read_bytes()
123 if (ptr == NULL) { in fdtw_read_bytes()
150 assert(dtb != NULL); in fdtw_read_string()
152 assert(prop != NULL); in fdtw_read_string()
[all …]
/rk3399_ARM-atf/lib/libc/
H A Dstrtok.c45 if (s == NULL && (s = *last) == NULL) in strtok_r()
46 return (NULL); in strtok_r()
59 *last = NULL; in strtok_r()
60 return (NULL); in strtok_r()
74 s = NULL; in strtok_r()
/rk3399_ARM-atf/drivers/delay_timer/
H A Ddelay_timer.c25 assert((timer_ops != NULL) && in udelay()
28 (timer_ops->get_timer_value != NULL)); in udelay()
76 assert((ops_ptr != NULL) && in timer_init()
79 (ops_ptr->get_timer_value != NULL)); in timer_init()
89 assert(timer_ops != NULL); in timeout_init_us()
90 assert(timer_ops->timeout_init_us != NULL); in timeout_init_us()
100 assert(timer_ops != NULL); in timeout_elapsed()
101 assert(timer_ops->timeout_elapsed != NULL); in timeout_elapsed()
/rk3399_ARM-atf/tools/cert_create/src/tbbr/
H A Dtbb_cert.c23 .fn = NULL,
40 .fn = NULL,
55 .fn = NULL,
69 .fn = NULL,
83 .fn = NULL,
97 .fn = NULL,
112 .fn = NULL,
126 .fn = NULL,
143 .fn = NULL,
157 .fn = NULL,
[all …]
/rk3399_ARM-atf/plat/amd/common/
H A Dplat_fdt.c69 void *dtb = NULL; in plat_retrieve_dt_addr()
72 if (dtb == NULL) { in plat_retrieve_dt_addr()
81 struct reserve_mem_range *rsvmr = NULL; in get_reserved_entries_fdt()
83 if ((rsv_count > 0) && (reserve_nodes != NULL)) { in get_reserved_entries_fdt()
95 void *dtb = NULL; in retrieve_reserved_entries()
112 if (fdt_getprop(dtb, node, "no-map", NULL) == NULL) { in retrieve_reserved_entries()
120 reg_prop = fdt_getprop(dtb, node, "reg", NULL); in retrieve_reserved_entries()
121 if (reg_prop == NULL) { in retrieve_reserved_entries()
/rk3399_ARM-atf/drivers/auth/mbedtls/
H A Dmbedtls_crypto.c97 void *sig_opts = NULL; in verify_signature()
139 if (md_info == NULL) { in verify_signature()
213 if (md_info == NULL) { in verify_hash()
281 if (md_info == NULL) { in calc_hash()
330 rc = mbedtls_gcm_starts(&ctx, MBEDTLS_GCM_DECRYPT, iv, iv_len, NULL, 0); in aes_gcm_decrypt()
361 rc = mbedtls_gcm_finish(&ctx, NULL, 0, &output_length, tag_buf, sizeof(tag_buf)); in aes_gcm_decrypt()
420 auth_decrypt, NULL, NULL);
423 NULL, NULL, NULL);
427 REGISTER_CRYPTO_LIB(LIB_NAME, init, verify_signature, verify_hash, NULL,
428 auth_decrypt, NULL, NULL);
[all …]

12345678910>>...28