Lines Matching refs:dpsize
354 unsigned dpsize; in dp_part_size() local
357 dpsize = dp_size(desc->bdev->parent); in dp_part_size()
359 dpsize = sizeof(ROOT) + sizeof(struct efi_device_path_usb); in dp_part_size()
363 return dpsize; in dp_part_size()
366 dpsize += sizeof(struct efi_device_path_cdrom_path); in dp_part_size()
368 dpsize += sizeof(struct efi_device_path_hard_drive_path); in dp_part_size()
370 return dpsize; in dp_part_size()
477 unsigned dpsize = 0, fpsize; in efi_dp_from_file() local
480 dpsize = dp_part_size(desc, part); in efi_dp_from_file()
483 dpsize += fpsize; in efi_dp_from_file()
485 start = buf = dp_alloc(dpsize + sizeof(END)); in efi_dp_from_file()
508 unsigned dpsize = 0; in efi_dp_from_eth() local
513 dpsize += dp_size(eth_get_dev()); in efi_dp_from_eth()
515 dpsize += sizeof(ROOT); in efi_dp_from_eth()
517 dpsize += sizeof(*ndp); in efi_dp_from_eth()
519 start = buf = dp_alloc(dpsize + sizeof(END)); in efi_dp_from_eth()