Lines Matching refs:efi_device_path

30 static const struct efi_device_path END = {
82 struct efi_device_path *efi_dp_next(const struct efi_device_path *dp) in efi_dp_next()
91 return (struct efi_device_path *)dp; in efi_dp_next()
100 int efi_dp_match(const struct efi_device_path *a, in efi_dp_match()
101 const struct efi_device_path *b) in efi_dp_match()
135 static struct efi_device_path *shorten_path(struct efi_device_path *dp) in shorten_path()
154 static struct efi_object *find_obj(struct efi_device_path *dp, bool short_path, in find_obj()
155 struct efi_device_path **rem) in find_obj()
162 struct efi_device_path *obj_dp; in find_obj()
200 struct efi_object *efi_dp_find_obj(struct efi_device_path *dp, in efi_dp_find_obj()
201 struct efi_device_path **rem) in efi_dp_find_obj()
226 const struct efi_device_path *efi_dp_last_node(const struct efi_device_path *dp) in efi_dp_last_node()
228 struct efi_device_path *ret; in efi_dp_last_node()
233 ret = (struct efi_device_path *)dp; in efi_dp_last_node()
240 efi_uintn_t efi_dp_instance_size(const struct efi_device_path *dp) in efi_dp_instance_size()
255 efi_uintn_t efi_dp_size(const struct efi_device_path *dp) in efi_dp_size()
257 const struct efi_device_path *p = dp; in efi_dp_size()
269 struct efi_device_path *efi_dp_dup(const struct efi_device_path *dp) in efi_dp_dup()
271 struct efi_device_path *ndp; in efi_dp_dup()
285 struct efi_device_path *efi_dp_append(const struct efi_device_path *dp1, in efi_dp_append()
286 const struct efi_device_path *dp2) in efi_dp_append()
288 struct efi_device_path *ret; in efi_dp_append()
313 struct efi_device_path *efi_dp_append_node(const struct efi_device_path *dp, in efi_dp_append_node()
314 const struct efi_device_path *node) in efi_dp_append_node()
316 struct efi_device_path *ret; in efi_dp_append_node()
345 struct efi_device_path *efi_dp_create_device_node(const u8 type, in efi_dp_create_device_node()
349 struct efi_device_path *ret; in efi_dp_create_device_node()
351 if (length < sizeof(struct efi_device_path)) in efi_dp_create_device_node()
363 struct efi_device_path *efi_dp_append_instance( in efi_dp_append_instance()
364 const struct efi_device_path *dp, in efi_dp_append_instance()
365 const struct efi_device_path *dpi) in efi_dp_append_instance()
368 struct efi_device_path *p, *ret; in efi_dp_append_instance()
390 struct efi_device_path *efi_dp_get_next_instance(struct efi_device_path **dp, in efi_dp_get_next_instance()
394 struct efi_device_path *p; in efi_dp_get_next_instance()
415 bool efi_dp_is_multi_instance(const struct efi_device_path *dp) in efi_dp_is_multi_instance()
417 const struct efi_device_path *p = dp; in efi_dp_is_multi_instance()
852 struct efi_device_path *efi_dp_from_part(struct blk_desc *desc, int part) in efi_dp_from_part()
862 *((struct efi_device_path *)buf) = END; in efi_dp_from_part()
874 struct efi_device_path *efi_dp_part_node(struct blk_desc *desc, int part) in efi_dp_part_node()
926 struct efi_device_path *efi_dp_from_file(struct blk_desc *desc, int part, in efi_dp_from_file()
936 fpsize = sizeof(struct efi_device_path) + in efi_dp_from_file()
958 *((struct efi_device_path *)buf) = END; in efi_dp_from_file()
963 struct efi_device_path *efi_dp_from_uart(void) in efi_dp_from_uart()
986 struct efi_device_path *efi_dp_from_eth(void) in efi_dp_from_eth()
1022 *((struct efi_device_path *)buf) = END; in efi_dp_from_eth()
1029 struct efi_device_path *efi_dp_from_mem(uint32_t memory_type, in efi_dp_from_mem()
1049 *((struct efi_device_path *)buf) = END; in efi_dp_from_mem()
1066 efi_status_t efi_dp_split_file_path(struct efi_device_path *full_path, in efi_dp_split_file_path()
1067 struct efi_device_path **device_path, in efi_dp_split_file_path()
1068 struct efi_device_path **file_path) in efi_dp_split_file_path()
1070 struct efi_device_path *p, *dp, *fp = NULL; in efi_dp_split_file_path()
1108 struct efi_device_path **device, in efi_dp_from_name()
1109 struct efi_device_path **file) in efi_dp_from_name()
1165 ssize_t efi_dp_check_length(const struct efi_device_path *dp, in efi_dp_check_length()
1183 dp = (const struct efi_device_path *)((const u8 *)dp + len); in efi_dp_check_length()