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()
316 int io_result __maybe_unused; in boot_fmc2_nand()
318 io_result = stm32_fmc2_init(); in boot_fmc2_nand()
319 assert(io_result == 0); in boot_fmc2_nand()
322 io_result = register_io_dev_mtd(&nand_dev_con); in boot_fmc2_nand()
323 assert(io_result == 0); in boot_fmc2_nand()
326 io_result = io_dev_open(nand_dev_con, (uintptr_t)&nand_dev_spec, in boot_fmc2_nand()
328 assert(io_result == 0); in boot_fmc2_nand()
335 int io_result __maybe_unused; in boot_spi_nand()
337 io_result = stm32_qspi_init(); in boot_spi_nand()
338 assert(io_result == 0); in boot_spi_nand()
340 io_result = register_io_dev_mtd(&spi_dev_con); in boot_spi_nand()
341 assert(io_result == 0); in boot_spi_nand()
344 io_result = io_dev_open(spi_dev_con, in boot_spi_nand()
347 assert(io_result == 0); in boot_spi_nand()
354 int io_result __maybe_unused; in mmap_io_setup()
356 io_result = register_io_dev_memmap(&memmap_dev_con); in mmap_io_setup()
357 assert(io_result == 0); in mmap_io_setup()
359 io_result = io_dev_open(memmap_dev_con, (uintptr_t)NULL, in mmap_io_setup()
361 assert(io_result == 0); in mmap_io_setup()
395 int io_result __maybe_unused; in stm32mp_io_setup()
407 io_result = register_io_dev_fip(&fip_dev_con); in stm32mp_io_setup()
408 assert(io_result == 0); in stm32mp_io_setup()
410 io_result = io_dev_open(fip_dev_con, (uintptr_t)NULL, in stm32mp_io_setup()
414 io_result = register_io_dev_enc(&enc_dev_con); in stm32mp_io_setup()
415 assert(io_result == 0); in stm32mp_io_setup()
417 io_result = io_dev_open(enc_dev_con, (uintptr_t)NULL, in stm32mp_io_setup()
419 assert(io_result == 0); in stm32mp_io_setup()