Lines Matching refs:zone

38 int ota_get_bootinfo(struct ota_boot_info *info, enum bootinfo_zone zone)  in ota_get_bootinfo()  argument
45 if (zone >= OTA_BOOTINFO_ZONEMAX) { in ota_get_bootinfo()
46 TRACE("error %s %d, zone:%d", __func__, __LINE__, zone); in ota_get_bootinfo()
53 if (zone == OTA_BOOTINFO_ZONEA) { in ota_get_bootinfo()
55 } else if (zone == OTA_BOOTINFO_ZONEB) { in ota_get_bootinfo()
79 int ota_set_bootinfo(struct ota_boot_info *info, enum bootinfo_zone zone) in ota_set_bootinfo() argument
87 if (zone >= OTA_BOOTINFO_ZONEMAX) { in ota_set_bootinfo()
88 TRACE("error %s %d, zone:%d", __func__, __LINE__, zone); in ota_set_bootinfo()
100 if (zone == OTA_BOOTINFO_ZONEA) { in ota_set_bootinfo()
102 } else if (zone == OTA_BOOTINFO_ZONEB) { in ota_set_bootinfo()
146 int ota_check_bootinfo(enum bootinfo_zone zone) in ota_check_bootinfo() argument
154 if (zone >= OTA_BOOTINFO_ZONEMAX) { in ota_check_bootinfo()
155 TRACE("%s %d, error zone:%d", __func__, __LINE__, zone); in ota_check_bootinfo()
164 if (zone == OTA_BOOTINFO_ZONEA) { in ota_check_bootinfo()
166 } else if (zone == OTA_BOOTINFO_ZONEB) { in ota_check_bootinfo()
243 enum bootinfo_zone zone; in ota_adapt_get_odm_type() local
245 zone = ota_get_valid_bootinfo_zone(); in ota_adapt_get_odm_type()
246 ret = ota_get_bootinfo(&boot_info, zone); in ota_adapt_get_odm_type()
259 enum bootinfo_zone zone; in ota_adapt_set_odm_type() local
265 zone = ota_get_valid_bootinfo_zone(); in ota_adapt_set_odm_type()
266 ret = ota_get_bootinfo(&boot_info, zone); in ota_adapt_set_odm_type()
317 enum bootinfo_zone zone; in tg_ota_get_current_ab() local
319 zone = ota_get_valid_bootinfo_zone(); in tg_ota_get_current_ab()
320 ret = ota_get_bootinfo(&boot_info, zone); in tg_ota_get_current_ab()
340 enum bootinfo_zone zone; in ota_upgrade_link() local
343 zone = ota_get_valid_bootinfo_zone(); in ota_upgrade_link()
344 ret = ota_get_bootinfo(&info, zone); in ota_upgrade_link()
352 zone = ota_get_valid_bootinfo_zone(); in ota_upgrade_link()
353 ret = ota_get_bootinfo(&info, zone); in ota_upgrade_link()
378 TRACE("%s %d, ota_current_link:%d, zone:%d", __func__, __LINE__, ota_current_link, zone); in ota_upgrade_link()
388 enum bootinfo_zone zone; in ota_clear_reboot_count() local
390 zone = ota_get_valid_bootinfo_zone(); in ota_clear_reboot_count()
391 ret = ota_get_bootinfo(&info, zone); in ota_clear_reboot_count()
438 enum bootinfo_zone zone; in ota_get_running_index() local
440 zone = ota_get_valid_bootinfo_zone(); in ota_get_running_index()
441 ret = ota_get_bootinfo(&info, zone); in ota_get_running_index()