| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | upd.c | 48 static int set_update_marker(struct ubi_device *ubi, struct ubi_volume *vol) in set_update_marker() argument 53 dbg_gen("set update marker for volume %d", vol->vol_id); in set_update_marker() 55 if (vol->upd_marker) { in set_update_marker() 56 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker() 61 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker() 65 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker() 66 vol->upd_marker = 1; in set_update_marker() 81 static int clear_update_marker(struct ubi_device *ubi, struct ubi_volume *vol, in clear_update_marker() argument 87 dbg_gen("clear update marker for volume %d", vol->vol_id); in clear_update_marker() 89 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker() [all …]
|
| H A D | vmt.c | 66 struct ubi_volume *vol = container_of(dev, struct ubi_volume, dev); in vol_attribute_show() local 69 ubi = ubi_get_device(vol->ubi->ubi_num); in vol_attribute_show() 74 if (!ubi->volumes[vol->vol_id]) { in vol_attribute_show() 80 vol->ref_count += 1; in vol_attribute_show() 84 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show() 88 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in vol_attribute_show() 94 ret = sprintf(buf, "%s\n", vol->name); in vol_attribute_show() 96 ret = sprintf(buf, "%d\n", vol->corrupted); in vol_attribute_show() 98 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show() 100 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show() [all …]
|
| H A D | kapi.c | 75 void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_do_get_volume_info() argument 78 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info() 80 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info() 81 vi->used_bytes = vol->used_bytes; in ubi_do_get_volume_info() 82 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info() 83 vi->corrupted = vol->corrupted; in ubi_do_get_volume_info() 84 vi->upd_marker = vol->upd_marker; in ubi_do_get_volume_info() 85 vi->alignment = vol->alignment; in ubi_do_get_volume_info() 86 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info() 87 vi->name_len = vol->name_len; in ubi_do_get_volume_info() [all …]
|
| H A D | vtbl.c | 135 struct ubi_volume *vol = re->desc->vol; in ubi_vtbl_rename_volumes() local 136 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes() 534 struct ubi_volume *vol; local 542 vol = kzalloc(sizeof(struct ubi_volume), GFP_KERNEL); 543 if (!vol) 546 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); 547 vol->alignment = be32_to_cpu(vtbl[i].alignment); 548 vol->data_pad = be32_to_cpu(vtbl[i].data_pad); 549 vol->upd_marker = vtbl[i].upd_marker; 550 vol->vol_type = vtbl[i].vol_type == UBI_VID_DYNAMIC ? [all …]
|
| H A D | misc.c | 54 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume() local 56 if (vol->vol_type != UBI_STATIC_VOLUME) in ubi_check_volume() 59 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume() 63 for (i = 0; i < vol->used_ebs; i++) { in ubi_check_volume() 68 if (i == vol->used_ebs - 1) in ubi_check_volume() 69 size = vol->last_eb_bytes; in ubi_check_volume() 71 size = vol->usable_leb_size; in ubi_check_volume() 73 err = ubi_eba_read_leb(ubi, vol, i, buf, 0, size, 1); in ubi_check_volume()
|
| H A D | eba.c | 317 int ubi_eba_unmap_leb(struct ubi_device *ubi, struct ubi_volume *vol, in ubi_eba_unmap_leb() argument 320 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb() 329 pnum = vol->eba_tbl[lnum]; in ubi_eba_unmap_leb() 337 vol->eba_tbl[lnum] = UBI_LEB_UNMAPPED; in ubi_eba_unmap_leb() 365 int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, in ubi_eba_read_leb() argument 368 int err, pnum, scrub = 0, vol_id = vol->vol_id; in ubi_eba_read_leb() 376 pnum = vol->eba_tbl[lnum]; in ubi_eba_read_leb() 386 ubi_assert(vol->vol_type != UBI_STATIC_VOLUME); in ubi_eba_read_leb() 394 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb() 442 if (vol->vol_type == UBI_DYNAMIC_VOLUME) in ubi_eba_read_leb() [all …]
|
| H A D | debug.c | 98 void ubi_dump_vol_info(const struct ubi_volume *vol) in ubi_dump_vol_info() argument 101 printf("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info() 102 printf("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info() 103 printf("\talignment %d\n", vol->alignment); in ubi_dump_vol_info() 104 printf("\tdata_pad %d\n", vol->data_pad); in ubi_dump_vol_info() 105 printf("\tvol_type %d\n", vol->vol_type); in ubi_dump_vol_info() 106 printf("\tname_len %d\n", vol->name_len); in ubi_dump_vol_info() 107 printf("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info() 108 printf("\tused_ebs %d\n", vol->used_ebs); in ubi_dump_vol_info() 109 printf("\tused_bytes %lld\n", vol->used_bytes); in ubi_dump_vol_info() [all …]
|
| H A D | ubi.h | 360 struct ubi_volume *vol; member 808 int ubi_add_volume(struct ubi_device *ubi, struct ubi_volume *vol); 809 void ubi_free_volume(struct ubi_device *ubi, struct ubi_volume *vol); 812 int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, 814 int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, 816 int ubi_start_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, 818 int ubi_more_leb_change_data(struct ubi_device *ubi, struct ubi_volume *vol, 831 int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol); 832 int ubi_destroy_gluebi(struct ubi_volume *vol); 833 void ubi_gluebi_updated(struct ubi_volume *vol); [all …]
|
| H A D | fastmap.c | 1114 struct ubi_volume *vol; in ubi_write_fastmap() local 1260 vol = ubi->volumes[i]; in ubi_write_fastmap() 1262 if (!vol) in ubi_write_fastmap() 1272 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap() 1273 fvh->vol_type = vol->vol_type; in ubi_write_fastmap() 1274 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap() 1275 fvh->data_pad = cpu_to_be32(vol->data_pad); in ubi_write_fastmap() 1276 fvh->last_eb_bytes = cpu_to_be32(vol->last_eb_bytes); in ubi_write_fastmap() 1278 ubi_assert(vol->vol_type == UBI_DYNAMIC_VOLUME || in ubi_write_fastmap() 1279 vol->vol_type == UBI_STATIC_VOLUME); in ubi_write_fastmap() [all …]
|
| H A D | build.c | 183 int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype) in ubi_volume_notify() argument 189 ubi_do_get_volume_info(ubi, vol, &nt.vi); in ubi_volume_notify() 820 struct ubi_volume *vol = ubi->volumes[vol_id]; in autoresize() local 821 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize() 848 desc.vol = vol; in autoresize() 860 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | ubi.c | 100 static int ubi_check_volumename(const struct ubi_volume *vol, char *name) in ubi_check_volumename() argument 102 return strcmp(vol->name, name); in ubi_check_volumename() 197 struct ubi_volume *vol = NULL; in ubi_find_volume() local 201 vol = ubi->volumes[i]; in ubi_find_volume() 202 if (vol && !strcmp(vol->name, volume)) in ubi_find_volume() 203 return vol; in ubi_find_volume() 213 struct ubi_volume *vol; in ubi_remove_vol() local 215 vol = ubi_find_volume(volume); in ubi_remove_vol() 216 if (vol == NULL) in ubi_remove_vol() 219 printf("Remove UBI volume %s (id %d)\n", vol->name, vol->vol_id); in ubi_remove_vol() [all …]
|
| /rk3399_rockchip-uboot/drivers/power/fuel_gauge/ |
| H A D | spl_fg_rk817.c | 95 int vol, val = 0; in rk817_bat_get_battery_voltage() local 99 vol = battery->voltage_k * val / 1000 + battery->voltage_b; in rk817_bat_get_battery_voltage() 101 return (vol * battery->bat_res_up / battery->bat_res_down + vol); in rk817_bat_get_battery_voltage()
|
| H A D | fg_rk817.c | 418 int vol, val = 0, vol_temp; in rk817_bat_get_pwron_voltage() local 422 vol = battery->voltage_k * val / 1000 + battery->voltage_b; in rk817_bat_get_pwron_voltage() 424 vol_temp = (vol * battery->bat_res_up / battery->bat_res_down + vol); in rk817_bat_get_pwron_voltage() 425 vol = vol_temp; in rk817_bat_get_pwron_voltage() 428 return vol; in rk817_bat_get_pwron_voltage() 433 int vol, val = 0, vol_temp; in rk817_bat_get_USB_voltage() local 438 vol = (battery->voltage_k * val / 1000 + battery->voltage_b) * 60 / 46; in rk817_bat_get_USB_voltage() 440 vol_temp = vol * battery->bat_res_up / battery->bat_res_down + vol; in rk817_bat_get_USB_voltage() 441 vol = vol_temp; in rk817_bat_get_USB_voltage() 444 return vol; in rk817_bat_get_USB_voltage() [all …]
|
| H A D | fg_rk818.c | 369 int vol, val = 0; in rk818_bat_get_ocv_voltage() local 373 vol = di->voltage_k * val / 1000 + di->voltage_b; in rk818_bat_get_ocv_voltage() 375 return vol; in rk818_bat_get_ocv_voltage() 394 int vol, val = 0; in rk818_bat_get_avg_voltage() local 398 vol = di->voltage_k * val / 1000 + di->voltage_b; in rk818_bat_get_avg_voltage() 400 return vol; in rk818_bat_get_avg_voltage() 407 int est_vol, vol, curr; in rk818_bat_get_est_voltage() local 415 vol = rk818_bat_get_avg_voltage(di); in rk818_bat_get_est_voltage() 423 est_vol = vol - (di->bat_res * curr / 1000); in rk818_bat_get_est_voltage() 426 (vol <= low_power_voltage)) { in rk818_bat_get_est_voltage() [all …]
|
| H A D | fg_rk816.c | 402 int vol, val = 0; in rk816_bat_get_ocv_voltage() local 406 vol = di->voltage_k * val / 1000 + di->voltage_b; in rk816_bat_get_ocv_voltage() 407 vol = vol * 1100 / 1000; in rk816_bat_get_ocv_voltage() 409 return vol; in rk816_bat_get_ocv_voltage() 431 int vol, val = 0; in rk816_bat_get_avg_voltage() local 435 vol = di->voltage_k * val / 1000 + di->voltage_b; in rk816_bat_get_avg_voltage() 436 vol = vol * 1100 / 1000; in rk816_bat_get_avg_voltage() 438 return vol; in rk816_bat_get_avg_voltage() 443 int est_vol, vol, curr; in rk816_bat_get_est_voltage() local 445 vol = rk816_bat_get_avg_voltage(di); in rk816_bat_get_est_voltage() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/dts/ |
| H A D | px3se-evb.dts | 28 vol-up { 34 vol-down {
|
| H A D | imx6sl.dtsi | 528 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 D | rk3308-evb.dts | 25 vol-up-key { 59 vol-down-key { 65 vol-up-key {
|
| H A D | imx6qdl.dtsi | 632 anatop-vol-bit-shift = <8>; 633 anatop-vol-bit-width = <5>; 646 anatop-vol-bit-shift = <8>; 647 anatop-vol-bit-width = <5>; 660 anatop-vol-bit-shift = <8>; 661 anatop-vol-bit-width = <5>; 674 anatop-vol-bit-shift = <0>; 675 anatop-vol-bit-width = <5>; 691 anatop-vol-bit-shift = <9>; 692 anatop-vol-bit-width = <5>; [all …]
|
| H A D | imx6sx.dtsi | 574 anatop-vol-bit-shift = <8>; 575 anatop-vol-bit-width = <5>; 588 anatop-vol-bit-shift = <8>; 589 anatop-vol-bit-width = <5>; 602 anatop-vol-bit-shift = <8>; 603 anatop-vol-bit-width = <5>; 616 anatop-vol-bit-shift = <0>; 617 anatop-vol-bit-width = <5>; 632 anatop-vol-bit-shift = <9>; 633 anatop-vol-bit-width = <5>; [all …]
|
| /rk3399_rockchip-uboot/include/power/ |
| H A D | s5m8767.h | 76 const struct sec_voltage_desc *vol; member
|
| /rk3399_rockchip-uboot/board/qualcomm/dragonboard410c/ |
| H A D | readme.txt | 24 8) Enter fastboot (reboot board with vol- button pressed) 41 - PMIC "special" buttons (power, vol-)
|
| /rk3399_rockchip-uboot/doc/ |
| H A D | README.ubi | 15 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
|
| /rk3399_rockchip-uboot/drivers/power/regulator/ |
| H A D | s5m8767.c | 109 desc = param->vol; in reg_get_value() 122 desc = param->vol; in reg_set_value()
|
| /rk3399_rockchip-uboot/drivers/power/charge/ |
| H A D | bq25890_charger.c | 201 int *vol, int *cur) in bq25890_get_pd_output_val() argument 216 *vol = pd_data.voltage; in bq25890_get_pd_output_val()
|