Lines Matching defs:ubi_device

557 struct ubi_device {  struct
558 struct cdev cdev;
559 struct device dev;
560 int ubi_num;
561 char ubi_name[sizeof(UBI_NAME_STR)+5];
562 int vol_count;
563 struct ubi_volume *volumes[UBI_MAX_VOLUMES+UBI_INT_VOL_COUNT];
564 spinlock_t volumes_lock;
565 int ref_count;
566 int image_seq;
568 int rsvd_pebs;
569 int avail_pebs;
570 int beb_rsvd_pebs;
571 int beb_rsvd_level;
572 int bad_peb_limit;
574 int autoresize_vol_id;
575 int vtbl_slots;
576 int vtbl_size;
577 struct ubi_vtbl_record *vtbl;
578 struct mutex device_mutex;
580 int max_ec;
582 int mean_ec;
585 unsigned long long global_sqnum;
586 spinlock_t ltree_lock;
587 struct rb_root ltree;
588 struct mutex alc_mutex;
591 int fm_disabled;
592 struct ubi_fastmap_layout *fm;
593 struct ubi_fm_pool fm_pool;
594 struct ubi_fm_pool fm_wl_pool;
595 struct rw_semaphore fm_eba_sem;
596 struct rw_semaphore fm_protect;
597 void *fm_buf;
598 size_t fm_size;
599 struct work_struct fm_work;
600 int fm_work_scheduled;
601 int fast_attach;
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;