Lines Matching refs:volume
151 static int ubi_create_vol(char *volume, int64_t size, int dynamic, int vol_id, in ubi_create_vol() argument
166 strcpy(req.name, volume); in ubi_create_vol()
167 req.name_len = strlen(volume); in ubi_create_vol()
180 dynamic ? "dynamic" : "static", volume, size); in ubi_create_vol()
185 static struct ubi_volume *ubi_find_volume(char *volume) in ubi_find_volume() argument
192 if (vol && !strcmp(vol->name, volume)) in ubi_find_volume()
196 printf("Volume %s not found!\n", volume); in ubi_find_volume()
200 static int ubi_remove_vol(char *volume) in ubi_remove_vol() argument
205 vol = ubi_find_volume(volume); in ubi_remove_vol()
248 ubi_err(ubi, "cannot remove volume %s, error %d", volume, err); in ubi_remove_vol()
292 static int ubi_volume_continue_write(char *volume, void *buf, size_t size) in ubi_volume_continue_write() argument
297 vol = ubi_find_volume(volume); in ubi_volume_continue_write()
327 int ubi_volume_begin_write(char *volume, void *buf, size_t size, in ubi_volume_begin_write() argument
334 vol = ubi_find_volume(volume); in ubi_volume_begin_write()
350 return ubi_volume_continue_write(volume, buf, size); in ubi_volume_begin_write()
353 int ubi_volume_write(char *volume, void *buf, size_t size) in ubi_volume_write() argument
355 return ubi_volume_begin_write(volume, buf, size, size); in ubi_volume_write()
358 int ubi_volume_read(char *volume, char *buf, size_t size) in ubi_volume_read() argument
367 vol = ubi_find_volume(volume); in ubi_volume_read()
387 printf("Read %zu bytes from volume %s to %p\n", size, volume, buf); in ubi_volume_read()
462 static int ubi_set_skip_check(char *volume, bool skip_check) in ubi_set_skip_check() argument
467 vol = ubi_find_volume(volume); in ubi_set_skip_check()
472 skip_check ? "Sett" : "Clear", volume); in ubi_set_skip_check()