Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/u-boot/drivers/mtd/ubi/
H A Dupd.c47 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker() argument
52 dbg_gen("set update marker for volume %d", vol->vol_id); in set_update_marker()
54 if (vol->upd_marker) { in set_update_marker()
55 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker()
60 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker()
64 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker()
65 vol->upd_marker = 1; in set_update_marker()
80 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker() argument
86 dbg_gen("clear update marker for volume %d", vol->vol_id); in clear_update_marker()
88 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker()
[all …]
H A Dvmt.c65 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); in vol_attribute_show() local
68 ubi = ubi_get_device(vol->ubi->ubi_num); in vol_attribute_show()
73 if (!ubi->volumes[vol->vol_id]) { in vol_attribute_show()
79 vol->ref_count += 1; in vol_attribute_show()
83 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show()
87 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show()
93 ret = sprintf(buf, "%s\n", vol->name); in vol_attribute_show()
95 ret = sprintf(buf, "%d\n", vol->corrupted); in vol_attribute_show()
97 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show()
99 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show()
[all …]
H A Dkapi.c74 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_info() argument
77 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info()
79 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
80 vi->used_bytes = vol->used_bytes; in ubi_do_get_volume_info()
81 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
82 vi->corrupted = vol->corrupted; in ubi_do_get_volume_info()
83 vi->upd_marker = vol->upd_marker; in ubi_do_get_volume_info()
84 vi->alignment = vol->alignment; in ubi_do_get_volume_info()
85 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info()
86 vi->name_len = vol->name_len; in ubi_do_get_volume_info()
[all …]
H A Dvtbl.c134 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local
135 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes()
533 struct ubi_volume *vol; local
541 vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL);
542 if (!vol)
545 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
546 vol->alignment = be32_to_cpu(vtbl[i].alignment);
547 vol->data_pad = be32_to_cpu(vtbl[i].data_pad);
548 vol->upd_marker = vtbl[i].upd_marker;
549 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ?
[all …]
H A Dmisc.c53 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume() local
55 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume()
58 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume()
62 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume()
67 if (i == vol->used_ebs - 1) in ubi_check_volume()
68 size = vol->last_eb_bytes; in ubi_check_volume()
70 size = vol->usable_leb_size; in ubi_check_volume()
72 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
H A Deba.c316 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb() argument
319 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb()
328 pnum = vol->eba_tbl[lnum]; in ubi_eba_unmap_leb()
336 vol->eba_tbl[lnum] = UBI_LEB_UNMAPPED; in ubi_eba_unmap_leb()
364 int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in ubi_eba_read_leb() argument
367 int err, pnum, scrub = 0, vol_id = vol->vol_id; in ubi_eba_read_leb()
375 pnum = vol->eba_tbl[lnum]; in ubi_eba_read_leb()
385 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb()
393 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
441 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb()
[all …]
H A Ddebug.c97 void ubi_dump_vol_info(const struct ubi_volume *vol) in ubi_dump_vol_info() argument
100 printf("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info()
101 printf("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info()
102 printf("\talignment %d\n", vol->alignment); in ubi_dump_vol_info()
103 printf("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info()
104 printf("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info()
105 printf("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info()
106 printf("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info()
107 printf("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info()
108 printf("\tused_bytes %lld\n", vol->used_bytes); in ubi_dump_vol_info()
[all …]
H A Dubi.h359 struct ubi_volume *vol; member
807 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol);
808 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol);
811 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol,
813 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol,
815 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol,
817 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol,
830 int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol);
831 int ubi_destroy_gluebi(struct ubi_volume *vol);
832 void ubi_gluebi_updated(struct ubi_volume *vol);
[all …]
H A Dfastmap.c1113 struct ubi_volume *vol; in ubi_write_fastmap() local
1259 vol = ubi->volumes[i]; in ubi_write_fastmap()
1261 if (!vol) in ubi_write_fastmap()
1271 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()
1272 fvh->vol_type = vol->vol_type; in ubi_write_fastmap()
1273 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
1274 fvh->data_pad = cpu_to_be32(vol->data_pad); in ubi_write_fastmap()
1275 fvh->last_eb_bytes = cpu_to_be32(vol->last_eb_bytes); in ubi_write_fastmap()
1277 ubi_assert(vol->vol_type == UBI_DYNAMIC_VOLUME || in ubi_write_fastmap()
1278 vol->vol_type == UBI_STATIC_VOLUME); in ubi_write_fastmap()
[all …]
H A Dbuild.c182 int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype) in ubi_volume_notify() argument
188 ubi_do_get_volume_info(ubi, vol, &nt.vi); in ubi_volume_notify()
819 struct ubi_volume *vol = ubi->volumes[vol_id]; in autoresize() local
820 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize()
847 desc.vol = vol; in autoresize()
859 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
H A Ddebug.h47 void ubi_dump_vol_info(const struct ubi_volume *vol);
/openbmc/u-boot/cmd/
H A Dubi.c84 static int ubi_check_volumename(const struct ubi_volume *vol, char *name) in ubi_check_volumename() argument
86 return strcmp(vol->name, name); in ubi_check_volumename()
180 struct ubi_volume *vol = NULL; in ubi_find_volume() local
184 vol = ubi->volumes[i]; in ubi_find_volume()
185 if (vol && !strcmp(vol->name, volume)) in ubi_find_volume()
186 return vol; in ubi_find_volume()
196 struct ubi_volume *vol; in ubi_remove_vol() local
198 vol = ubi_find_volume(volume); in ubi_remove_vol()
199 if (vol == NULL) in ubi_remove_vol()
202 printf("Remove UBI volume %s (id %d)\n", vol->name, vol->vol_id); in ubi_remove_vol()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D282.out4 Formatting 'vol.img', fmt=luks size=4194304 key-secret=sec0
5 qemu-img: vol.img: Data from secret sec0 is not valid UTF-8
8 Formatting 'vol.img', fmt=luks size=4194304 key-secret=sec0
9 qemu-img: vol.img: Data from secret sec0 is not valid UTF-8
/openbmc/openpower-pnor-code-mgmt/ubi/
H A Dobmc-flash-bios59 vol="$(findubi "${name}")"
69 if [ -n "${vol}" ]; then
79 if ! vol="$(findubi "${name}")"; then
129 vol="$(findubi "${name}")"
130 if [ -z "${vol}" ]; then
150 vol="$(findubi "${name}")"
/openbmc/phosphor-bmc-code-mgmt/bmc/
H A Dobmc-flash-bmc142 vol="$(findubi "${name}")"
143 if [ -z "${vol}" ]; then
175 vol="$(findubi "${name}")"
176 if [ -n "${vol}" ]; then
179 vol="$(findubi_onmtd "${name}" "${ro}")"
182 if [ -z "${vol}" ]; then
184 vol="$(findubi "${name}")"
192 vol="$(findubi "${name}")"
201 vol="$(findubi "${name}")"
211 vol="$(findubi_onmtd "${rmname}" "${rmmtd}")"
[all …]
/openbmc/u-boot/drivers/power/regulator/
H A Dfan53555.c139 u8 vol; in fan53555_regulator_set_value() local
141 vol = (uV - priv->vsel_min) / priv->vsel_step; in fan53555_regulator_set_value()
143 __func__, uV, pdata->vol_reg, vol); in fan53555_regulator_set_value()
145 return pmic_clrsetbits(dev, pdata->vol_reg, GENMASK(6, 0), vol); in fan53555_regulator_set_value()
H A Ds5m8767.c106 desc = param->vol; in reg_get_value()
119 desc = param->vol; in reg_set_value()
/openbmc/u-boot/arch/arm/dts/
H A Dimx6sl.dtsi528 anatop-vol-bit-shift = <8>;
529 anatop-vol-bit-width = <5>;
542 anatop-vol-bit-shift = <8>;
543 anatop-vol-bit-width = <5>;
556 anatop-vol-bit-shift = <8>;
557 anatop-vol-bit-width = <5>;
570 anatop-vol-bit-shift = <0>;
571 anatop-vol-bit-width = <5>;
587 anatop-vol-bit-shift = <9>;
588 anatop-vol-bit-width = <5>;
[all …]
H A Dimx6qdl.dtsi696 anatop-vol-bit-shift = <8>;
697 anatop-vol-bit-width = <5>;
711 anatop-vol-bit-shift = <8>;
712 anatop-vol-bit-width = <5>;
726 anatop-vol-bit-shift = <8>;
727 anatop-vol-bit-width = <5>;
741 anatop-vol-bit-shift = <0>;
742 anatop-vol-bit-width = <5>;
758 anatop-vol-bit-shift = <9>;
759 anatop-vol-bit-width = <5>;
[all …]
H A Dimx6sx.dtsi576 anatop-vol-bit-shift = <8>;
577 anatop-vol-bit-width = <5>;
590 anatop-vol-bit-shift = <8>;
591 anatop-vol-bit-width = <5>;
604 anatop-vol-bit-shift = <8>;
605 anatop-vol-bit-width = <5>;
618 anatop-vol-bit-shift = <0>;
619 anatop-vol-bit-width = <5>;
634 anatop-vol-bit-shift = <9>;
635 anatop-vol-bit-width = <5>;
[all …]
H A Dimx6ul.dtsi534 anatop-vol-bit-shift = <8>;
535 anatop-vol-bit-width = <5>;
549 anatop-vol-bit-shift = <0>;
550 anatop-vol-bit-width = <5>;
566 anatop-vol-bit-shift = <18>;
567 anatop-vol-bit-width = <5>;
H A Dimx6ull.dtsi626 anatop-vol-bit-shift = <8>;
627 anatop-vol-bit-width = <5>;
641 anatop-vol-bit-shift = <0>;
642 anatop-vol-bit-width = <5>;
658 anatop-vol-bit-shift = <18>;
659 anatop-vol-bit-width = <5>;
/openbmc/u-boot/include/power/
H A Ds5m8767.h75 const struct sec_voltage_desc *vol; member
/openbmc/u-boot/board/qualcomm/dragonboard410c/
H A Dreadme.txt22 8) Enter fastboot (reboot board with vol- button pressed)
39 - PMIC "special" buttons (power, vol-)
/openbmc/u-boot/doc/
H A DREADME.ubi15 ubi create[vol] volume [size] [type] - create volume name with size
16 ubi write[vol] address volume size - Write volume from address with size
19 ubi read[vol] address volume [size] - Read volume to address with size
20 ubi remove[vol] volume - Remove volume

12