Lines Matching refs:dpsize
619 unsigned dpsize; in dp_part_size() local
628 dpsize = dp_size(dev); in dp_part_size()
631 dpsize = sizeof(ROOT) + sizeof(struct efi_device_path_usb); in dp_part_size()
635 return dpsize; in dp_part_size()
638 dpsize += sizeof(struct efi_device_path_cdrom_path); in dp_part_size()
640 dpsize += sizeof(struct efi_device_path_hard_drive_path); in dp_part_size()
642 return dpsize; in dp_part_size()
781 efi_uintn_t dpsize; in efi_dp_part_node() local
785 dpsize = sizeof(struct efi_device_path_cdrom_path); in efi_dp_part_node()
787 dpsize = sizeof(struct efi_device_path_hard_drive_path); in efi_dp_part_node()
788 buf = dp_alloc(dpsize); in efi_dp_part_node()
816 unsigned dpsize = 0, fpsize; in efi_dp_from_file() local
819 dpsize = dp_part_size(desc, part); in efi_dp_from_file()
822 dpsize += fpsize; in efi_dp_from_file()
824 start = buf = dp_alloc(dpsize + sizeof(END)); in efi_dp_from_file()
851 unsigned dpsize = 0; in efi_dp_from_eth() local
856 dpsize += dp_size(eth_get_dev()); in efi_dp_from_eth()
858 dpsize += sizeof(ROOT); in efi_dp_from_eth()
859 dpsize += sizeof(*ndp); in efi_dp_from_eth()
862 start = buf = dp_alloc(dpsize + sizeof(END)); in efi_dp_from_eth()