Lines Matching refs:io_result

162 	int io_result;  in get_boot_part_fip_header()  local
166 io_result = io_open(storage_dev_handle, (uintptr_t)&emmc_boot_fip_block_spec, in get_boot_part_fip_header()
168 assert(io_result == 0); in get_boot_part_fip_header()
170 io_result = io_read(fip_hdr_handle, (uintptr_t)&magic, sizeof(magic), in get_boot_part_fip_header()
172 if ((io_result != 0) || (bytes_read != sizeof(magic))) { in get_boot_part_fip_header()
225 int io_result __maybe_unused; in boot_mmc()
263 io_result = register_io_dev_block(&mmc_dev_con); in boot_mmc()
264 if (io_result != 0) { in boot_mmc()
268 io_result = io_dev_open(mmc_dev_con, (uintptr_t)&mmc_block_dev_spec, in boot_mmc()
270 assert(io_result == 0); in boot_mmc()
274 io_result = mmc_part_switch_current_boot(); in boot_mmc()
275 assert(io_result == 0); in boot_mmc()
280 io_result = mmc_part_switch_user(); in boot_mmc()
281 assert(io_result == 0); in boot_mmc()
297 int io_result __maybe_unused; in boot_spi_nor()
299 io_result = stm32_qspi_init(); in boot_spi_nor()
300 assert(io_result == 0); in boot_spi_nor()
302 io_result = register_io_dev_mtd(&spi_dev_con); in boot_spi_nor()
303 assert(io_result == 0); in boot_spi_nor()
306 io_result = io_dev_open(spi_dev_con, in boot_spi_nor()
309 assert(io_result == 0); in boot_spi_nor()
358 int io_result __maybe_unused; in boot_fmc2_nand()
362 io_result = stm32_fmc2_init(); in boot_fmc2_nand()
363 assert(io_result == 0); in boot_fmc2_nand()
366 io_result = register_io_dev_mtd(&nand_dev_con); in boot_fmc2_nand()
367 assert(io_result == 0); in boot_fmc2_nand()
370 io_result = io_dev_open(nand_dev_con, (uintptr_t)&nand_dev_spec, in boot_fmc2_nand()
372 assert(io_result == 0); in boot_fmc2_nand()
381 int io_result __maybe_unused; in boot_spi_nand()
385 io_result = stm32_qspi_init(); in boot_spi_nand()
386 assert(io_result == 0); in boot_spi_nand()
388 io_result = register_io_dev_mtd(&spi_dev_con); in boot_spi_nand()
389 assert(io_result == 0); in boot_spi_nand()
392 io_result = io_dev_open(spi_dev_con, in boot_spi_nand()
395 assert(io_result == 0); in boot_spi_nand()
404 int io_result __maybe_unused; in mmap_io_setup()
406 io_result = register_io_dev_memmap(&memmap_dev_con); in mmap_io_setup()
407 assert(io_result == 0); in mmap_io_setup()
409 io_result = io_dev_open(memmap_dev_con, (uintptr_t)NULL, in mmap_io_setup()
411 assert(io_result == 0); in mmap_io_setup()
447 int io_result __maybe_unused; in stm32mp_io_setup()
459 io_result = register_io_dev_fip(&fip_dev_con); in stm32mp_io_setup()
460 assert(io_result == 0); in stm32mp_io_setup()
462 io_result = io_dev_open(fip_dev_con, (uintptr_t)NULL, &fip_dev_handle); in stm32mp_io_setup()
465 io_result = register_io_dev_enc(&enc_dev_con); in stm32mp_io_setup()
466 assert(io_result == 0); in stm32mp_io_setup()
468 io_result = io_dev_open(enc_dev_con, (uintptr_t)NULL, &enc_dev_handle); in stm32mp_io_setup()
469 assert(io_result == 0); in stm32mp_io_setup()