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;
573 struct work_struct fm_work;
575 int fm_work_scheduled;
578 struct rb_root used;
579 struct rb_root erroneous;
580 struct rb_root free;
581 int free_count;
582 struct rb_root scrub;
583 struct list_head pq[UBI_PROT_QUEUE_LEN];
584 int pq_head;
585 spinlock_t wl_lock;
586 struct mutex move_mutex;
587 struct rw_semaphore work_sem;
588 int wl_scheduled;
589 struct ubi_wl_entry **lookuptbl;
590 struct ubi_wl_entry *move_from;
591 struct ubi_wl_entry *move_to;
592 int move_to_put;
593 struct list_head works;
594 int works_count;
595 struct task_struct *bgt_thread;
596 int thread_enabled;
597 char bgt_name[sizeof(UBI_BGT_NAME_PATTERN)+2];
600 long long flash_size;
601 int peb_count;
602 int peb_size;
603 int bad_peb_count;
604 int good_peb_count;
605 int corr_peb_count;
606 int erroneous_peb_count;
607 int max_erroneous;
608 int min_io_size;
609 int hdrs_min_io_size;
610 int ro_mode;
611 int leb_size;
612 int leb_start;
613 int ec_hdr_alsize;
614 int vid_hdr_alsize;
615 int vid_hdr_offset;
616 int vid_hdr_aloffset;
617 int vid_hdr_shift;
618 unsigned int bad_allowed:1;
619 unsigned int nor_flash:1;
620 int max_write_size;
621 struct mtd_info *mtd;
623 void *peb_buf;
624 struct mutex buf_mutex;
625 struct mutex ckvol_mutex;
627 struct ubi_debug_info dbg;