Loading drivers/mtd/ubi/build.c +3 −5 Original line number Diff line number Diff line Loading @@ -159,8 +159,7 @@ void ubi_put_device(struct ubi_device *ubi) } /** * ubi_get_by_major - get UBI device description object by character device * major number. * ubi_get_by_major - get UBI device by character device major number. * @major: major number * * This function is similar to 'ubi_get_device()', but it searches the device Loading Loading @@ -727,7 +726,7 @@ static int autoresize(struct ubi_device *ubi, int vol_id) /** * ubi_attach_mtd_dev - attach an MTD device. * @mtd_dev: MTD device description object * @mtd: MTD device description object * @ubi_num: number to assign to the new UBI device * @vid_hdr_offset: VID header offset * Loading Loading @@ -1095,8 +1094,7 @@ static void __exit ubi_exit(void) module_exit(ubi_exit); /** * bytes_str_to_int - convert a string representing number of bytes to an * integer. * bytes_str_to_int - convert a number of bytes string into an integer. * @str: the string to convert * * This function returns positive resulting integer in case of success and a Loading drivers/mtd/ubi/io.c +2 −4 Original line number Diff line number Diff line Loading @@ -1101,8 +1101,7 @@ fail: } /** * paranoid_check_peb_ec_hdr - check that the erase counter header of a * physical eraseblock is in-place and is all right. * paranoid_check_peb_ec_hdr - check erase counter header. * @ubi: UBI device description object * @pnum: the physical eraseblock number to check * Loading Loading @@ -1180,8 +1179,7 @@ fail: } /** * paranoid_check_peb_vid_hdr - check that the volume identifier header of a * physical eraseblock is in-place and is all right. * paranoid_check_peb_vid_hdr - check volume identifier header. * @ubi: UBI device description object * @pnum: the physical eraseblock number to check * Loading drivers/mtd/ubi/scan.c +6 −12 Original line number Diff line number Diff line Loading @@ -93,8 +93,7 @@ static int add_to_list(struct ubi_scan_info *si, int pnum, int ec, } /** * validate_vid_hdr - check that volume identifier header is correct and * consistent. * validate_vid_hdr - check volume identifier header. * @vid_hdr: the volume identifier header to check * @sv: information about the volume this logical eraseblock belongs to * @pnum: physical eraseblock number the VID header came from Loading Loading @@ -380,8 +379,7 @@ out_free_vidh: } /** * ubi_scan_add_used - add information about a physical eraseblock to the * scanning information. * ubi_scan_add_used - add physical eraseblock to the scanning information. * @ubi: UBI device description object * @si: scanning information * @pnum: the physical eraseblock number Loading Loading @@ -555,8 +553,7 @@ int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_scan_info *si, } /** * ubi_scan_find_sv - find information about a particular volume in the * scanning information. * ubi_scan_find_sv - find volume in the scanning information. * @si: scanning information * @vol_id: the requested volume ID * Loading Loading @@ -585,8 +582,7 @@ struct ubi_scan_volume *ubi_scan_find_sv(const struct ubi_scan_info *si, } /** * ubi_scan_find_seb - find information about a particular logical * eraseblock in the volume scanning information. * ubi_scan_find_seb - find LEB in the volume scanning information. * @sv: a pointer to the volume scanning information * @lnum: the requested logical eraseblock * Loading Loading @@ -744,8 +740,7 @@ struct ubi_scan_leb *ubi_scan_get_free_peb(struct ubi_device *ubi, } /** * process_eb - read UBI headers, check them and add corresponding data * to the scanning information. * process_eb - read, check UBI headers, and add them to scanning information. * @ubi: UBI device description object * @si: scanning information * @pnum: the physical eraseblock number Loading Loading @@ -1083,8 +1078,7 @@ void ubi_scan_destroy_si(struct ubi_scan_info *si) #ifdef CONFIG_MTD_UBI_DEBUG_PARANOID /** * paranoid_check_si - check if the scanning information is correct and * consistent. * paranoid_check_si - check the scanning information. * @ubi: UBI device description object * @si: scanning information * Loading drivers/mtd/ubi/ubi.h +1 −0 Original line number Diff line number Diff line Loading @@ -313,6 +313,7 @@ struct ubi_wl_entry; * @move_to, @move_to_put @erase_pending, @wl_scheduled, and @works * fields * @move_mutex: serializes eraseblock moves * @work_sem: sycnhronizes the WL worker with use tasks * @wl_scheduled: non-zero if the wear-leveling was scheduled * @lookuptbl: a table to quickly find a &struct ubi_wl_entry object for any * physical eraseblock Loading drivers/mtd/ubi/upd.c +2 −0 Original line number Diff line number Diff line Loading @@ -268,6 +268,7 @@ static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, /** * ubi_more_update_data - write more update data. * @ubi: UBI device description object * @vol: volume description object * @buf: write data (user-space memory buffer) * @count: how much bytes to write Loading Loading @@ -385,6 +386,7 @@ int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, /** * ubi_more_leb_change_data - accept more data for atomic LEB change. * @ubi: UBI device description object * @vol: volume description object * @buf: write data (user-space memory buffer) * @count: how much bytes to write Loading Loading
drivers/mtd/ubi/build.c +3 −5 Original line number Diff line number Diff line Loading @@ -159,8 +159,7 @@ void ubi_put_device(struct ubi_device *ubi) } /** * ubi_get_by_major - get UBI device description object by character device * major number. * ubi_get_by_major - get UBI device by character device major number. * @major: major number * * This function is similar to 'ubi_get_device()', but it searches the device Loading Loading @@ -727,7 +726,7 @@ static int autoresize(struct ubi_device *ubi, int vol_id) /** * ubi_attach_mtd_dev - attach an MTD device. * @mtd_dev: MTD device description object * @mtd: MTD device description object * @ubi_num: number to assign to the new UBI device * @vid_hdr_offset: VID header offset * Loading Loading @@ -1095,8 +1094,7 @@ static void __exit ubi_exit(void) module_exit(ubi_exit); /** * bytes_str_to_int - convert a string representing number of bytes to an * integer. * bytes_str_to_int - convert a number of bytes string into an integer. * @str: the string to convert * * This function returns positive resulting integer in case of success and a Loading
drivers/mtd/ubi/io.c +2 −4 Original line number Diff line number Diff line Loading @@ -1101,8 +1101,7 @@ fail: } /** * paranoid_check_peb_ec_hdr - check that the erase counter header of a * physical eraseblock is in-place and is all right. * paranoid_check_peb_ec_hdr - check erase counter header. * @ubi: UBI device description object * @pnum: the physical eraseblock number to check * Loading Loading @@ -1180,8 +1179,7 @@ fail: } /** * paranoid_check_peb_vid_hdr - check that the volume identifier header of a * physical eraseblock is in-place and is all right. * paranoid_check_peb_vid_hdr - check volume identifier header. * @ubi: UBI device description object * @pnum: the physical eraseblock number to check * Loading
drivers/mtd/ubi/scan.c +6 −12 Original line number Diff line number Diff line Loading @@ -93,8 +93,7 @@ static int add_to_list(struct ubi_scan_info *si, int pnum, int ec, } /** * validate_vid_hdr - check that volume identifier header is correct and * consistent. * validate_vid_hdr - check volume identifier header. * @vid_hdr: the volume identifier header to check * @sv: information about the volume this logical eraseblock belongs to * @pnum: physical eraseblock number the VID header came from Loading Loading @@ -380,8 +379,7 @@ out_free_vidh: } /** * ubi_scan_add_used - add information about a physical eraseblock to the * scanning information. * ubi_scan_add_used - add physical eraseblock to the scanning information. * @ubi: UBI device description object * @si: scanning information * @pnum: the physical eraseblock number Loading Loading @@ -555,8 +553,7 @@ int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_scan_info *si, } /** * ubi_scan_find_sv - find information about a particular volume in the * scanning information. * ubi_scan_find_sv - find volume in the scanning information. * @si: scanning information * @vol_id: the requested volume ID * Loading Loading @@ -585,8 +582,7 @@ struct ubi_scan_volume *ubi_scan_find_sv(const struct ubi_scan_info *si, } /** * ubi_scan_find_seb - find information about a particular logical * eraseblock in the volume scanning information. * ubi_scan_find_seb - find LEB in the volume scanning information. * @sv: a pointer to the volume scanning information * @lnum: the requested logical eraseblock * Loading Loading @@ -744,8 +740,7 @@ struct ubi_scan_leb *ubi_scan_get_free_peb(struct ubi_device *ubi, } /** * process_eb - read UBI headers, check them and add corresponding data * to the scanning information. * process_eb - read, check UBI headers, and add them to scanning information. * @ubi: UBI device description object * @si: scanning information * @pnum: the physical eraseblock number Loading Loading @@ -1083,8 +1078,7 @@ void ubi_scan_destroy_si(struct ubi_scan_info *si) #ifdef CONFIG_MTD_UBI_DEBUG_PARANOID /** * paranoid_check_si - check if the scanning information is correct and * consistent. * paranoid_check_si - check the scanning information. * @ubi: UBI device description object * @si: scanning information * Loading
drivers/mtd/ubi/ubi.h +1 −0 Original line number Diff line number Diff line Loading @@ -313,6 +313,7 @@ struct ubi_wl_entry; * @move_to, @move_to_put @erase_pending, @wl_scheduled, and @works * fields * @move_mutex: serializes eraseblock moves * @work_sem: sycnhronizes the WL worker with use tasks * @wl_scheduled: non-zero if the wear-leveling was scheduled * @lookuptbl: a table to quickly find a &struct ubi_wl_entry object for any * physical eraseblock Loading
drivers/mtd/ubi/upd.c +2 −0 Original line number Diff line number Diff line Loading @@ -268,6 +268,7 @@ static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, /** * ubi_more_update_data - write more update data. * @ubi: UBI device description object * @vol: volume description object * @buf: write data (user-space memory buffer) * @count: how much bytes to write Loading Loading @@ -385,6 +386,7 @@ int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, /** * ubi_more_leb_change_data - accept more data for atomic LEB change. * @ubi: UBI device description object * @vol: volume description object * @buf: write data (user-space memory buffer) * @count: how much bytes to write Loading