Lines Matching refs:err
258 status_t err; in spifs_commit_toc() local
295 err = spifs_write_page(spifs, toc_page_addr); in spifs_commit_toc()
296 if (err != NO_ERROR) { in spifs_commit_toc()
297 return err; in spifs_commit_toc()
328 err = spifs_write_page(spifs, toc_page_addr); in spifs_commit_toc()
329 if (err != NO_ERROR) in spifs_commit_toc()
330 return err; in spifs_commit_toc()
477 status_t err = NO_ERROR; in spifs_format() local
503 err = get_device_page_info(dev, &page_size, &page_count); in spifs_format()
504 if (err != NO_ERROR) in spifs_format()
505 return err; in spifs_format()
567 err = spifs_commit_toc(&spifs); in spifs_format()
568 if (err != NO_ERROR) in spifs_format()
569 goto err; in spifs_format()
572 err = spifs_commit_toc(&spifs); in spifs_format()
573 if (err != NO_ERROR) in spifs_format()
574 goto err; in spifs_format()
576 err: in spifs_format()
579 return err; in spifs_format()
623 goto err; in spifs_mount()
637 goto err; in spifs_mount()
648 goto err; in spifs_mount()
658 goto err; in spifs_mount()
670 goto err; in spifs_mount()
677 err: in spifs_mount()
734 goto err; in spifs_create()
742 goto err; in spifs_create()
755 goto err; in spifs_create()
761 goto err; in spifs_create()
778 goto err; in spifs_create()
791 goto err; in spifs_create()
796 err: in spifs_create()
847 goto err; in spifs_remove()
866 err: in spifs_remove()
905 status_t err = NO_ERROR; in spifs_write() local
919 err = ERR_OUT_OF_RANGE; in spifs_write()
920 goto err; in spifs_write()
945 err = spifs_read_page(spifs, target_page_id); in spifs_write()
946 if (err != NO_ERROR) { in spifs_write()
947 goto err; in spifs_write()
954 err = spifs_write_page(spifs, target_page_id); in spifs_write()
955 if (err != NO_ERROR) { in spifs_write()
956 goto err; in spifs_write()
967 err = spifs_write_page(spifs, target_page_id); in spifs_write()
968 if (err != NO_ERROR) { in spifs_write()
969 goto err; in spifs_write()
980 err = spifs_read_page(spifs, target_page_id); in spifs_write()
981 if (err != NO_ERROR) { in spifs_write()
982 goto err; in spifs_write()
989 err = spifs_write_page(spifs, target_page_id); in spifs_write()
990 if (err != NO_ERROR) { in spifs_write()
991 goto err; in spifs_write()
998 err = spifs_commit_toc(spifs); in spifs_write()
1001 err: in spifs_write()
1003 return len == 0 ? (ssize_t)size : err; in spifs_write()
1083 status_t err; in spifs_readdir() local
1097 err = NO_ERROR; in spifs_readdir()
1099 err = ERR_NOT_FOUND; in spifs_readdir()
1104 return err; in spifs_readdir()