Lines Matching defs:ubi_device

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