Lines Matching refs:total
248 size_t total = 0; in get_boot_devices_list() local
259 if (total) { in get_boot_devices_list()
260 list[total-1] = '\n'; in get_boot_devices_list()
263 list = g_realloc(list, total + len); in get_boot_devices_list()
264 memcpy(&list[total], bootpath, len); in get_boot_devices_list()
265 total += len; in get_boot_devices_list()
269 *size = total; in get_boot_devices_list()
273 list[total-1] = '\n'; in get_boot_devices_list()
274 list = g_realloc(list, total + 5); in get_boot_devices_list()
275 memcpy(&list[total], "HALT", 5); in get_boot_devices_list()
276 *size = total + 5; in get_boot_devices_list()
404 size_t total = 0; in get_boot_devices_lchs_list() local
416 if (total) { in get_boot_devices_lchs_list()
417 list[total - 1] = '\n'; in get_boot_devices_lchs_list()
420 list = g_realloc(list, total + len); in get_boot_devices_lchs_list()
421 memcpy(&list[total], chs_string, len); in get_boot_devices_lchs_list()
422 total += len; in get_boot_devices_lchs_list()
427 *size = total; in get_boot_devices_lchs_list()