Lines Matching refs:total
251 size_t total = 0; in get_boot_devices_list() local
262 if (total) { in get_boot_devices_list()
263 list[total-1] = '\n'; in get_boot_devices_list()
266 list = g_realloc(list, total + len); in get_boot_devices_list()
267 memcpy(&list[total], bootpath, len); in get_boot_devices_list()
268 total += len; in get_boot_devices_list()
272 *size = total; in get_boot_devices_list()
276 list[total-1] = '\n'; in get_boot_devices_list()
277 list = g_realloc(list, total + 5); in get_boot_devices_list()
278 memcpy(&list[total], "HALT", 5); in get_boot_devices_list()
279 *size = total + 5; in get_boot_devices_list()
407 size_t total = 0; in get_boot_devices_lchs_list() local
419 if (total) { in get_boot_devices_lchs_list()
420 list[total - 1] = '\n'; in get_boot_devices_lchs_list()
423 list = g_realloc(list, total + len); in get_boot_devices_lchs_list()
424 memcpy(&list[total], chs_string, len); in get_boot_devices_lchs_list()
425 total += len; in get_boot_devices_lchs_list()
430 *size = total; in get_boot_devices_lchs_list()