Lines Matching refs:length
30 .length = sizeof(EFI_DP_END),
57 dp = ((void *)dp) + dp->length; in efi_dp_next()
69 ret = memcmp(&a->length, &b->length, sizeof(a->length)); in efi_dp_match()
73 ret = memcmp(a, b, a->length); in efi_dp_match()
195 sz += dp->length; in efi_dp_instance_size()
210 p = (void *)p + p->length; in efi_dp_size()
292 size_t sz = node->length; in efi_dp_append_node()
302 void *p = efi_alloc(sz + node->length + sizeof(EFI_DP_END)); in efi_dp_append_node()
306 memcpy(p + sz, node, node->length); in efi_dp_append_node()
307 memcpy(p + sz + node->length, &EFI_DP_END, sizeof(EFI_DP_END)); in efi_dp_append_node()
316 const u16 length) in efi_dp_create_device_node() argument
320 if (length < sizeof(struct efi_device_path)) in efi_dp_create_device_node()
323 ret = efi_alloc(length); in efi_dp_create_device_node()
328 ret->length = length; in efi_dp_create_device_node()
391 p = (void *)p + p->length; in efi_dp_is_multi_instance()
485 dp->dp.length = sizeof(*dp); in dp_fill()
503 dp->dp.length = sizeof(*dp); in dp_fill()
519 dp->dp.length = sizeof(*dp); in dp_fill()
534 sddp->dp.length = sizeof(*sddp); in dp_fill()
546 dp->dp.length = sizeof(*dp); in dp_fill()
561 dp->dp.length = sizeof(*dp); in dp_fill()
574 dp->dp.length = sizeof(*dp); in dp_fill()
586 dp->dp.length = sizeof(*dp); in dp_fill()
606 sddp->dp.length = sizeof(*sddp); in dp_fill()
628 udp->dp.length = sizeof(*udp); in dp_fill()
638 vdp->dp.length = sizeof(*vdp); in dp_fill()
690 cddp->dp.length = sizeof(*cddp); in dp_part_node()
700 hddp->dp.length = sizeof(*hddp); in dp_part_node()
852 fp->dp.length = (u16)fpsize; in efi_dp_from_file()
875 uart->dp.length = sizeof(*uart); in efi_dp_from_uart()
929 dp.ipv4dp.dp.length = sizeof(dp.ipv4dp); in efi_dp_from_ipv4()
990 uridp->dp.length = uridp_len; in efi_dp_from_http()
1020 mdp->dp.length = sizeof(*mdp); in efi_dp_from_mem()
1065 p->length = sizeof(*p); in efi_dp_split_file_path()
1151 len = dp->length; in efi_dp_check_length()
1191 lo_len -= fp->length, fp = (void *)fp + fp->length) { in efi_dp_from_lo()