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;
602 struct ubi_wl_entry *fm_anchor;
603 int fm_do_produce_anchor;
606 struct rb_root used;
607 struct rb_root erroneous;
608 struct rb_root free;
609 int free_count;
610 struct rb_root scrub;
611 struct list_head pq[UBI_PROT_QUEUE_LEN];
612 int pq_head;
613 spinlock_t wl_lock;
614 struct mutex move_mutex;
615 struct rw_semaphore work_sem;
616 int wl_scheduled;
617 struct ubi_wl_entry **lookuptbl;
618 struct ubi_wl_entry *move_from;
619 struct ubi_wl_entry *move_to;
620 int move_to_put;
621 struct list_head works;
622 int works_count;
623 struct task_struct *bgt_thread;
624 int thread_enabled;
625 char bgt_name[sizeof(UBI_BGT_NAME_PATTERN)+2];
628 long long flash_size;
629 int peb_count;
630 int peb_size;
631 int bad_peb_count;
632 int good_peb_count;
633 int corr_peb_count;
634 int erroneous_peb_count;
635 int max_erroneous;
636 int min_io_size;
637 int hdrs_min_io_size;
638 int ro_mode;
639 int leb_size;
640 int leb_start;
641 int ec_hdr_alsize;
642 int vid_hdr_alsize;
643 int vid_hdr_offset;
644 int vid_hdr_aloffset;
645 int vid_hdr_shift;
646 unsigned int bad_allowed:1;
647 unsigned int nor_flash:1;
648 int max_write_size;
649 struct mtd_info *mtd;
651 void *peb_buf;
652 struct mutex buf_mutex;
653 struct mutex ckvol_mutex;
655 struct ubi_debug_info dbg;