Lines Matching refs:chfs_ebh
45 int nor_calc_data_offs(struct chfs_ebh *ebh, int pebnr, int offset);
46 int nand_calc_data_offs(struct chfs_ebh *ebh, int pebnr, int offset);
47 int nor_read_eb_hdr(struct chfs_ebh *ebh, int pebnr, struct chfs_eb_hdr *ebhdr);
48 int nand_read_eb_hdr(struct chfs_ebh *ebh, int pebnr, struct chfs_eb_hdr *ebhdr);
49 int nor_write_eb_hdr(struct chfs_ebh *ebh, int pebnr, struct chfs_eb_hdr *ebhdr);
50 int nand_write_eb_hdr(struct chfs_ebh *ebh, int pebnr,struct chfs_eb_hdr *ebhdr);
51 int nor_check_eb_hdr(struct chfs_ebh *ebh, void *buf);
52 int nand_check_eb_hdr(struct chfs_ebh *ebh, void *buf);
53 int nor_mark_eb_hdr_dirty_flash(struct chfs_ebh *ebh, int pebnr, int lid);
54 int nor_invalidate_eb_hdr(struct chfs_ebh *ebh, int pebnr);
55 int mark_eb_hdr_free(struct chfs_ebh *ebh, int pebnr, int ec);
60 int add_peb_to_erase_queue(struct chfs_ebh *ebh, int pebnr, int ec,struct peb_queue *queue);
61 struct chfs_peb * find_peb_in_use(struct chfs_ebh *ebh, int pebnr);
62 int add_peb_to_free(struct chfs_ebh *ebh, int pebnr, int ec);
63 int add_peb_to_in_use(struct chfs_ebh *ebh, int pebnr, int ec);
65 int free_peb(struct chfs_ebh *ebh);
66 int release_peb(struct chfs_ebh *ebh, int pebnr);
68 static void erase_thread_start(struct chfs_ebh *ebh);
69 static void erase_thread_stop(struct chfs_ebh *ebh);
71 int nor_scan_add_to_used(struct chfs_ebh *ebh, struct chfs_scan_info *si,struct chfs_eb_hdr *ebhdr, int pebnr, int leb_status);
72 int nor_process_eb(struct chfs_ebh *ebh, struct chfs_scan_info *si,
74 int nand_scan_add_to_used(struct chfs_ebh *ebh, struct chfs_scan_info *si,struct chfs_eb_hdr *ebhdr, int pebnr);
75 int nand_process_eb(struct chfs_ebh *ebh, struct chfs_scan_info *si,
77 struct chfs_scan_info *chfs_scan(struct chfs_ebh *ebh);
79 int scan_media(struct chfs_ebh *ebh);
80 int get_peb(struct chfs_ebh *ebh);
112 nor_calc_data_offs(struct chfs_ebh *ebh, int pebnr, int offset)
125 nand_calc_data_offs(struct chfs_ebh *ebh, int pebnr, int offset)
142 nor_read_eb_hdr(struct chfs_ebh *ebh,
180 nand_read_eb_hdr(struct chfs_ebh *ebh, int pebnr,
219 nor_write_eb_hdr(struct chfs_ebh *ebh, int pebnr, struct chfs_eb_hdr *ebhdr)
256 nand_write_eb_hdr(struct chfs_ebh *ebh, int pebnr,
293 nor_check_eb_hdr(struct chfs_ebh *ebh, void *buf)
372 nand_check_eb_hdr(struct chfs_ebh *ebh, void *buf)
435 nor_mark_eb_hdr_dirty_flash(struct chfs_ebh *ebh, int pebnr, int lid)
468 nor_invalidate_eb_hdr(struct chfs_ebh *ebh, int pebnr)
504 mark_eb_hdr_free(struct chfs_ebh *ebh, int pebnr, int ec)
566 ltree_lookup(struct chfs_ebh *ebh, int lnr)
586 ltree_add_entry(struct chfs_ebh *ebh, int lnr)
622 leb_read_lock(struct chfs_ebh *ebh, int lnr)
643 leb_read_unlock(struct chfs_ebh *ebh, int lnr)
678 leb_write_lock(struct chfs_ebh *ebh, int lnr)
699 leb_write_unlock(struct chfs_ebh *ebh, int lnr)
774 add_peb_to_erase_queue(struct chfs_ebh *ebh, int pebnr, int ec,
799 find_peb_in_use(struct chfs_ebh *ebh, int pebnr)
820 add_peb_to_free(struct chfs_ebh *ebh, int pebnr, int ec)
850 add_peb_to_in_use(struct chfs_ebh *ebh, int pebnr, int ec)
877 struct chfs_ebh *ebh = priv->ebh;
930 free_peb(struct chfs_ebh *ebh)
1019 release_peb(struct chfs_ebh *ebh, int pebnr)
1054 struct chfs_ebh *ebh = data;
1093 struct chfs_ebh *ebh = data;
1126 erase_thread_start(struct chfs_ebh *ebh)
1140 erase_thread_stop(struct chfs_ebh *ebh)
1211 nor_scan_add_to_used(struct chfs_ebh *ebh, struct chfs_scan_info *si,
1262 nor_process_eb(struct chfs_ebh *ebh, struct chfs_scan_info *si,
1319 nand_scan_add_to_used(struct chfs_ebh *ebh, struct chfs_scan_info *si,
1369 nand_process_eb(struct chfs_ebh *ebh, struct chfs_scan_info *si,
1433 chfs_scan(struct chfs_ebh *ebh)
1503 scan_media(struct chfs_ebh *ebh)
1603 ebh_open(struct chfs_ebh *ebh, dev_t dev)
1673 kmem_free(ebh, sizeof(struct chfs_ebh));
1685 ebh_close(struct chfs_ebh *ebh)
1708 kmem_free(ebh, sizeof(struct chfs_ebh));
1724 ebh_read_leb(struct chfs_ebh *ebh, int lnr, char *buf, uint32_t offset,
1769 get_peb(struct chfs_ebh *ebh)
1820 ebh_write_leb(struct chfs_ebh *ebh, int lnr, char *buf, uint32_t offset,
1919 ebh_erase_leb(struct chfs_ebh *ebh, int lnr)
1949 ebh_map_leb(struct chfs_ebh *ebh, int lnr)
2004 ebh_unmap_leb(struct chfs_ebh *ebh, int lnr)
2025 ebh_is_mapped(struct chfs_ebh *ebh, int lnr)
2047 ebh_change_leb(struct chfs_ebh *ebh, int lnr, char *buf, size_t len,