Lines Matching refs:efi_device_path
35 const struct efi_device_path END = {
73 struct efi_device_path *efi_dp_next(const struct efi_device_path *dp) in efi_dp_next()
82 return (struct efi_device_path *)dp; in efi_dp_next()
91 int efi_dp_match(const struct efi_device_path *a, in efi_dp_match()
92 const struct efi_device_path *b) in efi_dp_match()
127 struct efi_device_path *efi_dp_shorten(struct efi_device_path *dp) in efi_dp_shorten()
152 static efi_handle_t find_handle(struct efi_device_path *dp, in find_handle()
154 struct efi_device_path **rem) in find_handle()
163 struct efi_device_path *dp_current; in find_handle()
213 efi_handle_t efi_dp_find_obj(struct efi_device_path *dp, in efi_dp_find_obj()
215 struct efi_device_path **rem) in efi_dp_find_obj()
234 const struct efi_device_path *efi_dp_last_node(const struct efi_device_path *dp) in efi_dp_last_node()
236 struct efi_device_path *ret; in efi_dp_last_node()
241 ret = (struct efi_device_path *)dp; in efi_dp_last_node()
248 efi_uintn_t efi_dp_instance_size(const struct efi_device_path *dp) in efi_dp_instance_size()
263 efi_uintn_t efi_dp_size(const struct efi_device_path *dp) in efi_dp_size()
265 const struct efi_device_path *p = dp; in efi_dp_size()
277 struct efi_device_path *efi_dp_dup(const struct efi_device_path *dp) in efi_dp_dup()
279 struct efi_device_path *ndp; in efi_dp_dup()
309 efi_device_path *efi_dp_append_or_concatenate(const struct efi_device_path *dp1, in efi_dp_append_or_concatenate()
310 const struct efi_device_path *dp2, in efi_dp_append_or_concatenate()
313 struct efi_device_path *ret; in efi_dp_append_or_concatenate()
359 struct efi_device_path *efi_dp_append(const struct efi_device_path *dp1, in efi_dp_append()
360 const struct efi_device_path *dp2) in efi_dp_append()
375 struct efi_device_path *efi_dp_concat(const struct efi_device_path *dp1, in efi_dp_concat()
376 const struct efi_device_path *dp2) in efi_dp_concat()
381 struct efi_device_path *efi_dp_append_node(const struct efi_device_path *dp, in efi_dp_append_node()
382 const struct efi_device_path *node) in efi_dp_append_node()
384 struct efi_device_path *ret; in efi_dp_append_node()
413 struct efi_device_path *efi_dp_create_device_node(const u8 type, in efi_dp_create_device_node()
417 struct efi_device_path *ret; in efi_dp_create_device_node()
419 if (length < sizeof(struct efi_device_path)) in efi_dp_create_device_node()
431 struct efi_device_path *efi_dp_append_instance( in efi_dp_append_instance()
432 const struct efi_device_path *dp, in efi_dp_append_instance()
433 const struct efi_device_path *dpi) in efi_dp_append_instance()
436 struct efi_device_path *p, *ret; in efi_dp_append_instance()
458 struct efi_device_path *efi_dp_get_next_instance(struct efi_device_path **dp, in efi_dp_get_next_instance()
462 struct efi_device_path *p; in efi_dp_get_next_instance()
483 bool efi_dp_is_multi_instance(const struct efi_device_path *dp) in efi_dp_is_multi_instance()
485 const struct efi_device_path *p = dp; in efi_dp_is_multi_instance()
938 struct efi_device_path *efi_dp_from_part(struct blk_desc *desc, int part) in efi_dp_from_part()
948 *((struct efi_device_path *)buf) = END; in efi_dp_from_part()
960 struct efi_device_path *efi_dp_part_node(struct blk_desc *desc, int part) in efi_dp_part_node()
1016 struct efi_device_path *efi_dp_from_file(const struct efi_device_path *dp, in efi_dp_from_file()
1024 fpsize = sizeof(struct efi_device_path) + in efi_dp_from_file()
1051 struct efi_device_path *efi_dp_from_uart(void) in efi_dp_from_uart()
1073 struct efi_device_path __maybe_unused *efi_dp_from_eth(void) in efi_dp_from_eth()
1088 *((struct efi_device_path *)buf) = END; in efi_dp_from_eth()
1094 struct efi_device_path *efi_dp_from_mem(uint32_t memory_type, in efi_dp_from_mem()
1114 *((struct efi_device_path *)buf) = END; in efi_dp_from_mem()
1131 efi_status_t efi_dp_split_file_path(struct efi_device_path *full_path, in efi_dp_split_file_path()
1132 struct efi_device_path **device_path, in efi_dp_split_file_path()
1133 struct efi_device_path **file_path) in efi_dp_split_file_path()
1135 struct efi_device_path *p, *dp, *fp = NULL; in efi_dp_split_file_path()
1173 struct efi_device_path **device, in efi_dp_from_name()
1174 struct efi_device_path **file) in efi_dp_from_name()
1177 struct efi_device_path *dp; in efi_dp_from_name()
1228 ssize_t efi_dp_check_length(const struct efi_device_path *dp, in efi_dp_check_length()
1246 dp = (const struct efi_device_path *)((const u8 *)dp + len); in efi_dp_check_length()
1265 efi_device_path *efi_dp_from_lo(struct efi_load_option *lo, in efi_dp_from_lo()
1268 struct efi_device_path *fp = lo->file_path; in efi_dp_from_lo()
1272 for (; lo_len >= sizeof(struct efi_device_path); in efi_dp_from_lo()
1296 struct efi_device_path *search_gpt_dp_node(struct efi_device_path *device_path) in search_gpt_dp_node()
1298 struct efi_device_path *dp = device_path; in search_gpt_dp_node()