Home
last modified time | relevance | path

Searched refs:ubi_device (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/drivers/mtd/ubi/
Dubi.h39 struct ubi_device;
43 void ubi_msg(const struct ubi_device *ubi, const char *fmt, ...);
47 void ubi_warn(const struct ubi_device *ubi, const char *fmt, ...);
51 void ubi_err(const struct ubi_device *ubi, const char *fmt, ...);
333 struct ubi_device *ubi;
555 struct ubi_device { struct
803 int (*func)(struct ubi_device *ubi, struct ubi_work *wrk, int shutdown);
825 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum,
831 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi,
833 int ubi_attach(struct ubi_device *ubi, int force_scan);
[all …]
Ddebug.h11 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len);
48 int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset,
52 int ubi_debugfs_init_dev(struct ubi_device *ubi);
53 void ubi_debugfs_exit_dev(struct ubi_device *ubi);
60 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller);
62 static inline int ubi_dbg_bitflip(const struct ubi_device *ubi) in ubi_dbg_bitflip()
69 static inline int ubi_dbg_write_failure(const struct ubi_device *ubi) in ubi_dbg_write_failure()
76 static inline int ubi_dbg_erase_failure(const struct ubi_device *ubi) in ubi_dbg_erase_failure()
130 static inline bool ubi_dbg_fail_bitflip(const struct ubi_device *ubi) in ubi_dbg_fail_bitflip()
137 static inline bool ubi_dbg_fail_write(const struct ubi_device *ubi) in ubi_dbg_fail_write()
[all …]
Dwl.h7 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
8 static struct ubi_wl_entry *next_peb_for_wl(struct ubi_device *ubi);
9 static bool need_wear_leveling(struct ubi_device *ubi);
10 static void ubi_fastmap_close(struct ubi_device *ubi);
11 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) in ubi_fastmap_init()
19 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi,
23 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);
24 static inline void ubi_fastmap_close(struct ubi_device *ubi) { } in ubi_fastmap_close()
25 static inline void ubi_fastmap_init(struct ubi_device *ubi, int *count) { } in ubi_fastmap_init()
26 static struct ubi_wl_entry *may_reserve_for_fm(struct ubi_device *ubi, in may_reserve_for_fm()
Dfastmap-wl.c14 struct ubi_device *ubi = container_of(wrk, struct ubi_device, fm_work); in update_fastmap_work_fn()
42 static inline void return_unused_peb(struct ubi_device *ubi, in return_unused_peb()
54 static void return_unused_pool_pebs(struct ubi_device *ubi, in return_unused_pool_pebs()
75 struct ubi_wl_entry *ubi_wl_get_fm_peb(struct ubi_device *ubi, int anchor) in ubi_wl_get_fm_peb()
108 static void wait_free_pebs_for_pool(struct ubi_device *ubi) in wait_free_pebs_for_pool()
147 static int left_free_count(struct ubi_device *ubi) in left_free_count()
168 static int can_fill_pools(struct ubi_device *ubi, int free) in can_fill_pools()
185 void ubi_refill_pools_and_lock(struct ubi_device *ubi) in ubi_refill_pools_and_lock()
271 static int produce_free_peb(struct ubi_device *ubi) in produce_free_peb()
294 int ubi_wl_get_peb(struct ubi_device *ubi) in ubi_wl_get_peb()
[all …]
Dmisc.c22 int ubi_calc_data_len(const struct ubi_device *ubi, const void *buf, in ubi_calc_data_len()
48 int ubi_check_volume(struct ubi_device *ubi, int vol_id) in ubi_check_volume()
92 void ubi_update_reserved(struct ubi_device *ubi) in ubi_update_reserved()
111 void ubi_calculate_reserved(struct ubi_device *ubi) in ubi_calculate_reserved()
145 void ubi_msg(const struct ubi_device *ubi, const char *fmt, ...) in ubi_msg()
161 void ubi_warn(const struct ubi_device *ubi, const char *fmt, ...) in ubi_warn()
178 void ubi_err(const struct ubi_device *ubi, const char *fmt, ...) in ubi_err()
Dwl.c125 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec);
126 static int self_check_in_wl_tree(const struct ubi_device *ubi,
128 static int self_check_in_pq(const struct ubi_device *ubi,
175 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) in wl_entry_destroy()
190 static int do_work(struct ubi_device *ubi, int *executed) in do_work()
281 static inline int in_pq(const struct ubi_device *ubi, struct ubi_wl_entry *e) in in_pq()
304 static void prot_queue_add(struct ubi_device *ubi, struct ubi_wl_entry *e) in prot_queue_add()
325 static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, in find_wl_entry()
363 static struct ubi_wl_entry *find_mean_wl_entry(struct ubi_device *ubi, in find_mean_wl_entry()
395 static struct ubi_wl_entry *wl_get_wle(struct ubi_device *ubi) in wl_get_wle()
[all …]
Dio.c81 static int self_check_not_bad(const struct ubi_device *ubi, int pnum);
82 static int self_check_peb_ec_hdr(const struct ubi_device *ubi, int pnum);
83 static int self_check_ec_hdr(const struct ubi_device *ubi, int pnum,
85 static int self_check_peb_vid_hdr(const struct ubi_device *ubi, int pnum);
86 static int self_check_vid_hdr(const struct ubi_device *ubi, int pnum,
88 static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum,
113 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, in ubi_io_read()
234 int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset, in ubi_io_write()
319 static int do_sync_erase(struct ubi_device *ubi, int pnum) in do_sync_erase()
375 static int torture_peb(struct ubi_device *ubi, int pnum) in torture_peb()
[all …]
Dkapi.c26 void ubi_do_get_device_info(struct ubi_device *ubi, struct ubi_device_info *di) in ubi_do_get_device_info()
48 struct ubi_device *ubi; in ubi_get_device_info()
67 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_info()
119 struct ubi_device *ubi; in ubi_open_volume()
237 struct ubi_device *ubi; in ubi_open_volume_nm()
349 struct ubi_device *ubi = vol->ubi; in ubi_close_volume()
393 struct ubi_device *ubi = vol->ubi; in leb_read_sanity_check()
447 struct ubi_device *ubi = vol->ubi; in ubi_leb_read()
487 struct ubi_device *ubi = vol->ubi; in ubi_leb_read_sg()
538 struct ubi_device *ubi = vol->ubi; in ubi_leb_write()
[all …]
Dbuild.c91 static struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
159 int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype) in ubi_volume_notify()
191 int ubi_notify_all(struct ubi_device *ubi, int ntype, struct notifier_block *nb) in ubi_notify_all()
239 struct ubi_device *ubi = ubi_devices[i]; in ubi_enumerate_volumes()
258 struct ubi_device *ubi_get_device(int ubi_num) in ubi_get_device()
260 struct ubi_device *ubi; in ubi_get_device()
281 void ubi_put_device(struct ubi_device *ubi) in ubi_put_device()
296 struct ubi_device *ubi_get_by_major(int major) in ubi_get_by_major()
299 struct ubi_device *ubi; in ubi_get_by_major()
331 struct ubi_device *ubi = ubi_devices[i]; in ubi_major2num()
[all …]
Deba.c68 unsigned long long ubi_next_sqnum(struct ubi_device *ubi) in ubi_next_sqnum()
87 static int ubi_get_compat(const struct ubi_device *ubi, int vol_id) in ubi_get_compat()
207 static struct ubi_ltree_entry *ltree_lookup(struct ubi_device *ubi, int vol_id, in ltree_lookup()
246 static struct ubi_ltree_entry *ltree_add_entry(struct ubi_device *ubi, in ltree_add_entry()
316 static int leb_read_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_lock()
333 static void leb_read_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_read_unlock()
358 static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_lock()
380 static int leb_write_trylock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_trylock()
409 static void leb_write_unlock(struct ubi_device *ubi, int vol_id, int lnum) in leb_write_unlock()
447 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb()
[all …]
Dvtbl.c54 static void self_vtbl_check(const struct ubi_device *ubi);
63 static int ubi_update_layout_vol(struct ubi_device *ubi) in ubi_update_layout_vol()
90 int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, in ubi_change_vtbl_record()
121 int ubi_vtbl_rename_volumes(struct ubi_device *ubi, in ubi_vtbl_rename_volumes()
157 static int vtbl_check(const struct ubi_device *ubi, in vtbl_check()
285 static int create_vtbl(struct ubi_device *ubi, struct ubi_attach_info *ai, in create_vtbl()
361 static struct ubi_vtbl_record *process_lvol(struct ubi_device *ubi, in process_lvol()
484 static struct ubi_vtbl_record *create_empty_lvol(struct ubi_device *ubi, in create_empty_lvol()
520 static int init_volumes(struct ubi_device *ubi, in init_volumes()
718 static int check_attaching_info(const struct ubi_device *ubi, in check_attaching_info()
[all …]
Dupd.c41 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker()
74 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker()
114 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_update()
168 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_start_leb_change()
219 static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in write_leb()
265 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_more_update_data()
380 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_more_leb_change_data()
Ddebug.c52 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) in FAIL_ACTION()
333 struct ubi_device *ubi; in dfs_file_read()
400 struct ubi_device *ubi; in dfs_file_write()
481 struct ubi_device *ubi = s->private; in eraseblk_count_seq_start()
494 struct ubi_device *ubi = s->private; in eraseblk_count_seq_next()
510 struct ubi_device *ubi = s->private; in eraseblk_count_seq_show()
568 struct ubi_device *ubi = s->private; in eraseblk_count_release()
590 int ubi_debugfs_init_dev(struct ubi_device *ubi) in ubi_debugfs_init_dev()
662 void ubi_debugfs_exit_dev(struct ubi_device *ubi) in ubi_debugfs_exit_dev()
675 int ubi_dbg_power_cut(struct ubi_device *ubi, int caller) in ubi_dbg_power_cut()
Dvmt.c19 static int self_check_volumes(struct ubi_device *ubi);
59 struct ubi_device *ubi = vol->ubi; in vol_attribute_show()
163 int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req) in ubi_create_volume()
362 struct ubi_device *ubi = vol->ubi; in ubi_remove_volume()
447 struct ubi_device *ubi = vol->ubi; in ubi_resize_volume()
579 int ubi_rename_volumes(struct ubi_device *ubi, struct list_head *rename_list) in ubi_rename_volumes()
618 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_add_volume()
663 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol) in ubi_free_volume()
679 static int self_check_volume(struct ubi_device *ubi, int vol_id) in self_check_volume()
832 static int self_check_volumes(struct ubi_device *ubi) in self_check_volumes()
Dattach.c79 static int self_check_ai(struct ubi_device *ubi, struct ubi_attach_info *ai);
330 static int validate_vid_hdr(const struct ubi_device *ubi, in validate_vid_hdr()
438 int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, in ubi_compare_lebs()
563 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, in ubi_add_to_av()
771 static int early_erase_peb(struct ubi_device *ubi, in early_erase_peb()
818 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi, in ubi_early_get_peb()
872 static int check_corruption(struct ubi_device *ubi, struct ubi_vid_hdr *vid_hdr, in check_corruption()
941 static int scan_peb(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_peb()
1207 static int late_analysis(struct ubi_device *ubi, struct ubi_attach_info *ai) in late_analysis()
1374 static int scan_all(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_all()
[all …]
Dcdev.c161 struct ubi_device *ubi = desc->vol->ubi; in vol_cdev_fsync()
176 struct ubi_device *ubi = vol->ubi; in vol_cdev_read()
253 struct ubi_device *ubi = vol->ubi; in vol_cdev_direct_write()
329 struct ubi_device *ubi = vol->ubi; in vol_cdev_write()
384 struct ubi_device *ubi = vol->ubi; in vol_cdev_ioctl()
593 static int verify_mkvol_req(const struct ubi_device *ubi, in verify_mkvol_req()
657 static int verify_rsvol_req(const struct ubi_device *ubi, in verify_rsvol_req()
679 static int rename_volumes(struct ubi_device *ubi, in rename_volumes()
835 struct ubi_device *ubi; in ubi_cdev_ioctl()
Dfastmap.c16 static inline unsigned long *init_seen(struct ubi_device *ubi) in init_seen()
45 static inline void set_seen(struct ubi_device *ubi, int pnum, unsigned long *seen) in set_seen()
58 static int self_check_seen(struct ubi_device *ubi, unsigned long *seen) in self_check_seen()
79 size_t ubi_calc_fm_size(struct ubi_device *ubi) in ubi_calc_fm_size()
104 static struct ubi_vid_io_buf *new_fm_vbuf(struct ubi_device *ubi, int vol_id) in new_fm_vbuf()
242 static int update_vol(struct ubi_device *ubi, struct ubi_attach_info *ai, in update_vol()
336 static int process_pool_aeb(struct ubi_device *ubi, struct ubi_attach_info *ai, in process_pool_aeb()
400 static int scan_pool(struct ubi_device *ubi, struct ubi_attach_info *ai, in scan_pool()
548 static int ubi_attach_fastmap(struct ubi_device *ubi, in ubi_attach_fastmap()
860 int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai, in ubi_scan_fastmap()
[all …]