Lines Matching refs:io_result
163 int io_result; in get_boot_part_fip_header() local
167 io_result = io_open(storage_dev_handle, (uintptr_t)&emmc_boot_fip_block_spec, in get_boot_part_fip_header()
169 assert(io_result == 0); in get_boot_part_fip_header()
171 io_result = io_read(fip_hdr_handle, (uintptr_t)&magic, sizeof(magic), in get_boot_part_fip_header()
173 if ((io_result != 0) || (bytes_read != sizeof(magic))) { in get_boot_part_fip_header()
226 int io_result __unused; in boot_mmc()
264 io_result = register_io_dev_block(&mmc_dev_con); in boot_mmc()
265 if (io_result != 0) { in boot_mmc()
269 io_result = io_dev_open(mmc_dev_con, (uintptr_t)&mmc_block_dev_spec, in boot_mmc()
271 assert(io_result == 0); in boot_mmc()
275 io_result = mmc_part_switch_current_boot(); in boot_mmc()
276 assert(io_result == 0); in boot_mmc()
281 io_result = mmc_part_switch_user(); in boot_mmc()
282 assert(io_result == 0); in boot_mmc()
298 int io_result __unused; in boot_spi_nor()
300 io_result = stm32_qspi_init(); in boot_spi_nor()
301 assert(io_result == 0); in boot_spi_nor()
303 io_result = register_io_dev_mtd(&spi_dev_con); in boot_spi_nor()
304 assert(io_result == 0); in boot_spi_nor()
307 io_result = io_dev_open(spi_dev_con, in boot_spi_nor()
310 assert(io_result == 0); in boot_spi_nor()
317 int io_result __unused; in boot_fmc2_nand()
319 io_result = stm32_fmc2_init(); in boot_fmc2_nand()
320 assert(io_result == 0); in boot_fmc2_nand()
323 io_result = register_io_dev_mtd(&nand_dev_con); in boot_fmc2_nand()
324 assert(io_result == 0); in boot_fmc2_nand()
327 io_result = io_dev_open(nand_dev_con, (uintptr_t)&nand_dev_spec, in boot_fmc2_nand()
329 assert(io_result == 0); in boot_fmc2_nand()
336 int io_result __unused; in boot_spi_nand()
338 io_result = stm32_qspi_init(); in boot_spi_nand()
339 assert(io_result == 0); in boot_spi_nand()
341 io_result = register_io_dev_mtd(&spi_dev_con); in boot_spi_nand()
342 assert(io_result == 0); in boot_spi_nand()
345 io_result = io_dev_open(spi_dev_con, in boot_spi_nand()
348 assert(io_result == 0); in boot_spi_nand()
355 int io_result __unused; in mmap_io_setup()
357 io_result = register_io_dev_memmap(&memmap_dev_con); in mmap_io_setup()
358 assert(io_result == 0); in mmap_io_setup()
360 io_result = io_dev_open(memmap_dev_con, (uintptr_t)NULL, in mmap_io_setup()
362 assert(io_result == 0); in mmap_io_setup()
397 int io_result __unused; in stm32mp_io_setup()
409 io_result = register_io_dev_fip(&fip_dev_con); in stm32mp_io_setup()
410 assert(io_result == 0); in stm32mp_io_setup()
412 io_result = io_dev_open(fip_dev_con, (uintptr_t)NULL, in stm32mp_io_setup()
416 io_result = register_io_dev_enc(&enc_dev_con); in stm32mp_io_setup()
417 assert(io_result == 0); in stm32mp_io_setup()
419 io_result = io_dev_open(enc_dev_con, (uintptr_t)NULL, in stm32mp_io_setup()
421 assert(io_result == 0); in stm32mp_io_setup()