ubi.h (9a5f09ac0ab83e4a965a24edd6cf7cb0303c6dc9) | ubi.h (7554769641da272ea8821194c2efda08a11014b0) |
---|---|
1/* 2 * Copyright (c) International Business Machines Corp., 2006 3 * Copyright (c) Nokia Corporation, 2006, 2007 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 835 unchanged lines hidden (view full) --- 844int ubi_check_pattern(const void *buf, uint8_t patt, int size); 845 846static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum) 847{ 848 return lnum >= 0 && lnum < vol->reserved_pebs; 849} 850 851/* eba.c */ | 1/* 2 * Copyright (c) International Business Machines Corp., 2006 3 * Copyright (c) Nokia Corporation, 2006, 2007 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 835 unchanged lines hidden (view full) --- 844int ubi_check_pattern(const void *buf, uint8_t patt, int size); 845 846static inline bool ubi_leb_valid(struct ubi_volume *vol, int lnum) 847{ 848 return lnum >= 0 && lnum < vol->reserved_pebs; 849} 850 851/* eba.c */ |
852bool ubi_eba_is_mapped(struct ubi_volume *vol, int lnum); |
|
852int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, 853 int lnum); 854int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, 855 void *buf, int offset, int len, int check); 856int ubi_eba_read_leb_sg(struct ubi_device *ubi, struct ubi_volume *vol, 857 struct ubi_sgl *sgl, int lnum, int offset, int len, 858 int check); 859int ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, --- 306 unchanged lines hidden --- | 853int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, 854 int lnum); 855int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, 856 void *buf, int offset, int len, int check); 857int ubi_eba_read_leb_sg(struct ubi_device *ubi, struct ubi_volume *vol, 858 struct ubi_sgl *sgl, int lnum, int offset, int len, 859 int check); 860int ubi_eba_write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, --- 306 unchanged lines hidden --- |