Lines Matching defs:ubi_device

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