Lines Matching refs:ubi_volume_desc
228 struct ubi_volume_desc;
231 void ubi_get_volume_info(struct ubi_volume_desc *desc,
233 struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode);
234 struct ubi_volume_desc *ubi_open_volume_nm(int ubi_num, const char *name,
236 struct ubi_volume_desc *ubi_open_volume_path(const char *pathname, int mode);
254 void ubi_close_volume(struct ubi_volume_desc *desc);
255 int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset,
257 int ubi_leb_read_sg(struct ubi_volume_desc *desc, int lnum, struct ubi_sgl *sgl,
259 int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf,
261 int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf,
263 int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum);
264 int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum);
265 int ubi_leb_map(struct ubi_volume_desc *desc, int lnum);
266 int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum);
274 static inline int ubi_read(struct ubi_volume_desc *desc, int lnum, char *buf, in ubi_read()
284 static inline int ubi_read_sg(struct ubi_volume_desc *desc, int lnum, in ubi_read_sg()