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