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