Lines Matching defs:ubi_device

530 struct ubi_device {  struct
531 struct cdev cdev;
532 struct device dev;
533 int ubi_num;
534 char ubi_name[sizeof(UBI_NAME_STR)+5];
535 int vol_count;
536 struct ubi_volume *volumes[UBI_MAX_VOLUMES+UBI_INT_VOL_COUNT];
537 spinlock_t volumes_lock;
538 int ref_count;
539 int image_seq;
541 int rsvd_pebs;
542 int avail_pebs;
543 int beb_rsvd_pebs;
544 int beb_rsvd_level;
545 int bad_peb_limit;
547 int autoresize_vol_id;
548 int vtbl_slots;
549 int vtbl_size;
550 struct ubi_vtbl_record *vtbl;
551 struct mutex device_mutex;
553 int max_ec;
555 int mean_ec;
558 unsigned long long global_sqnum;
559 spinlock_t ltree_lock;
560 struct rb_root ltree;
561 struct mutex alc_mutex;
564 int fm_disabled;
565 struct ubi_fastmap_layout *fm;
566 struct ubi_fm_pool fm_pool;
567 struct ubi_fm_pool fm_wl_pool;
568 struct rw_semaphore fm_eba_sem;
569 struct rw_semaphore fm_protect;
570 void *fm_buf;
571 size_t fm_size;
572 struct work_struct fm_work;
573 int fm_work_scheduled;
574 int fast_attach;
577 struct rb_root used;
578 struct rb_root erroneous;
579 struct rb_root free;
580 int free_count;
581 struct rb_root scrub;
582 struct list_head pq[UBI_PROT_QUEUE_LEN];
583 int pq_head;
584 spinlock_t wl_lock;
585 struct mutex move_mutex;
586 struct rw_semaphore work_sem;
587 int wl_scheduled;
588 struct ubi_wl_entry **lookuptbl;
589 struct ubi_wl_entry *move_from;
590 struct ubi_wl_entry *move_to;
591 int move_to_put;
592 struct list_head works;
593 int works_count;
594 struct task_struct *bgt_thread;
595 int thread_enabled;
596 char bgt_name[sizeof(UBI_BGT_NAME_PATTERN)+2];
599 long long flash_size;
600 int peb_count;
601 int peb_size;
602 int bad_peb_count;
603 int good_peb_count;
604 int corr_peb_count;
605 int erroneous_peb_count;
606 int max_erroneous;
607 int min_io_size;
608 int hdrs_min_io_size;
609 int ro_mode;
610 int leb_size;
611 int leb_start;
612 int ec_hdr_alsize;
613 int vid_hdr_alsize;
614 int vid_hdr_offset;
615 int vid_hdr_aloffset;
616 int vid_hdr_shift;
617 unsigned int bad_allowed:1;
618 unsigned int nor_flash:1;
619 int max_write_size;
620 struct mtd_info *mtd;
622 void *peb_buf;
623 struct mutex buf_mutex;
624 struct mutex ckvol_mutex;
626 struct ubi_debug_info dbg;