Lines Matching defs:ubi_device

560 struct ubi_device {  struct
561 struct cdev cdev;
562 struct device dev;
563 int ubi_num;
564 char ubi_name[sizeof(UBI_NAME_STR)+5];
565 int vol_count;
566 struct ubi_volume *volumes[UBI_MAX_VOLUMES+UBI_INT_VOL_COUNT];
567 spinlock_t volumes_lock;
568 int ref_count;
569 int image_seq;
571 int rsvd_pebs;
572 int avail_pebs;
573 int beb_rsvd_pebs;
574 int beb_rsvd_level;
575 int bad_peb_limit;
577 int autoresize_vol_id;
578 int vtbl_slots;
579 int vtbl_size;
580 struct ubi_vtbl_record *vtbl;
581 struct mutex device_mutex;
583 int max_ec;
585 int mean_ec;
588 unsigned long long global_sqnum;
589 spinlock_t ltree_lock;
590 struct rb_root ltree;
591 struct mutex alc_mutex;
594 int fm_disabled;
595 struct ubi_fastmap_layout *fm;
596 struct ubi_fm_pool fm_pool;
597 struct ubi_fm_pool fm_wl_pool;
598 struct rw_semaphore fm_eba_sem;
599 struct rw_semaphore fm_protect;
600 void *fm_buf;
601 size_t fm_size;
602 struct work_struct fm_work;
603 int fm_work_scheduled;
604 int fast_attach;
605 struct ubi_wl_entry *fm_anchor;
606 struct ubi_wl_entry *fm_next_anchor;
607 int fm_do_produce_anchor;
610 struct rb_root used;
611 struct rb_root erroneous;
612 struct rb_root free;
613 int free_count;
614 struct rb_root scrub;
615 struct list_head pq[UBI_PROT_QUEUE_LEN];
616 int pq_head;
617 spinlock_t wl_lock;
618 struct mutex move_mutex;
619 struct rw_semaphore work_sem;
620 int wl_scheduled;
621 struct ubi_wl_entry **lookuptbl;
622 struct ubi_wl_entry *move_from;
623 struct ubi_wl_entry *move_to;
624 int move_to_put;
625 struct list_head works;
626 int works_count;
627 struct task_struct *bgt_thread;
628 int thread_enabled;
629 char bgt_name[sizeof(UBI_BGT_NAME_PATTERN)+2];
632 long long flash_size;
633 int peb_count;
634 int peb_size;
635 int bad_peb_count;
636 int good_peb_count;
637 int corr_peb_count;
638 int erroneous_peb_count;
639 int max_erroneous;
640 int min_io_size;
641 int hdrs_min_io_size;
642 int ro_mode;
643 int leb_size;
644 int leb_start;
645 int ec_hdr_alsize;
646 int vid_hdr_alsize;
647 int vid_hdr_offset;
648 int vid_hdr_aloffset;
649 int vid_hdr_shift;
650 unsigned int bad_allowed:1;
651 unsigned int nor_flash:1;
652 int max_write_size;
653 struct mtd_info *mtd;
655 void *peb_buf;
656 struct mutex buf_mutex;
657 struct mutex ckvol_mutex;
659 struct ubi_debug_info dbg;