Lines Matching defs:vol_type
42 static struct device_attribute vol_type =
83 else if (attr == &vol_type) {
85 tp = vol->vol_type == UBI_DYNAMIC_VOLUME ? "dynamic" : "static";
132 err = device_create_file(&vol->dev, &vol_type);
168 device_remove_file(&vol->dev, &vol_type);
218 (int)req->vol_type, req->name);
256 vol->vol_type = req->vol_type;
281 if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
327 if (vol->vol_type == UBI_DYNAMIC_VOLUME)
328 vtbl_rec.vol_type = UBI_VID_DYNAMIC;
330 vtbl_rec.vol_type = UBI_VID_STATIC;
466 if (vol->vol_type == UBI_STATIC_VOLUME &&
537 if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
649 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker;
686 if (vol->vol_type != UBI_DYNAMIC_VOLUME &&
687 vol->vol_type != UBI_STATIC_VOLUME) {
688 ubi_err("bad vol_type");
730 if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
773 if (ubi->vtbl[vol_id].vol_type == UBI_VID_DYNAMIC)
774 vol_type = UBI_DYNAMIC_VOLUME;
776 vol_type = UBI_STATIC_VOLUME;
779 upd_marker != vol->upd_marker || vol_type != vol->vol_type ||