Lines Matching refs:efi_device_path
19 static const struct efi_device_path END = {
71 struct efi_device_path *efi_dp_next(const struct efi_device_path *dp) in efi_dp_next()
80 return (struct efi_device_path *)dp; in efi_dp_next()
89 int efi_dp_match(const struct efi_device_path *a, in efi_dp_match()
90 const struct efi_device_path *b) in efi_dp_match()
124 static struct efi_device_path *shorten_path(struct efi_device_path *dp) in shorten_path()
143 static struct efi_object *find_obj(struct efi_device_path *dp, bool short_path, in find_obj()
144 struct efi_device_path **rem) in find_obj()
151 struct efi_device_path *obj_dp; in find_obj()
189 struct efi_object *efi_dp_find_obj(struct efi_device_path *dp, in efi_dp_find_obj()
190 struct efi_device_path **rem) in efi_dp_find_obj()
215 const struct efi_device_path *efi_dp_last_node(const struct efi_device_path *dp) in efi_dp_last_node()
217 struct efi_device_path *ret; in efi_dp_last_node()
222 ret = (struct efi_device_path *)dp; in efi_dp_last_node()
229 efi_uintn_t efi_dp_instance_size(const struct efi_device_path *dp) in efi_dp_instance_size()
244 efi_uintn_t efi_dp_size(const struct efi_device_path *dp) in efi_dp_size()
246 const struct efi_device_path *p = dp; in efi_dp_size()
258 struct efi_device_path *efi_dp_dup(const struct efi_device_path *dp) in efi_dp_dup()
260 struct efi_device_path *ndp; in efi_dp_dup()
274 struct efi_device_path *efi_dp_append(const struct efi_device_path *dp1, in efi_dp_append()
275 const struct efi_device_path *dp2) in efi_dp_append()
277 struct efi_device_path *ret; in efi_dp_append()
302 struct efi_device_path *efi_dp_append_node(const struct efi_device_path *dp, in efi_dp_append_node()
303 const struct efi_device_path *node) in efi_dp_append_node()
305 struct efi_device_path *ret; in efi_dp_append_node()
334 struct efi_device_path *efi_dp_create_device_node(const u8 type, in efi_dp_create_device_node()
338 struct efi_device_path *ret; in efi_dp_create_device_node()
349 struct efi_device_path *efi_dp_append_instance( in efi_dp_append_instance()
350 const struct efi_device_path *dp, in efi_dp_append_instance()
351 const struct efi_device_path *dpi) in efi_dp_append_instance()
354 struct efi_device_path *p, *ret; in efi_dp_append_instance()
376 struct efi_device_path *efi_dp_get_next_instance(struct efi_device_path **dp, in efi_dp_get_next_instance()
380 struct efi_device_path *p; in efi_dp_get_next_instance()
401 bool efi_dp_is_multi_instance(const struct efi_device_path *dp) in efi_dp_is_multi_instance()
403 const struct efi_device_path *p = dp; in efi_dp_is_multi_instance()
603 struct efi_device_path *efi_dp_from_dev(struct udevice *dev) in efi_dp_from_dev()
611 *((struct efi_device_path *)buf) = END; in efi_dp_from_dev()
757 struct efi_device_path *efi_dp_from_part(struct blk_desc *desc, int part) in efi_dp_from_part()
767 *((struct efi_device_path *)buf) = END; in efi_dp_from_part()
779 struct efi_device_path *efi_dp_part_node(struct blk_desc *desc, int part) in efi_dp_part_node()
811 struct efi_device_path *efi_dp_from_file(struct blk_desc *desc, int part, in efi_dp_from_file()
821 fpsize = sizeof(struct efi_device_path) + 2 * (strlen(path) + 1); in efi_dp_from_file()
839 *((struct efi_device_path *)buf) = END; in efi_dp_from_file()
845 struct efi_device_path *efi_dp_from_eth(void) in efi_dp_from_eth()
881 *((struct efi_device_path *)buf) = END; in efi_dp_from_eth()
888 struct efi_device_path *efi_dp_from_mem(uint32_t memory_type, in efi_dp_from_mem()
908 *((struct efi_device_path *)buf) = END; in efi_dp_from_mem()
925 efi_status_t efi_dp_split_file_path(struct efi_device_path *full_path, in efi_dp_split_file_path()
926 struct efi_device_path **device_path, in efi_dp_split_file_path()
927 struct efi_device_path **file_path) in efi_dp_split_file_path()
929 struct efi_device_path *p, *dp, *fp; in efi_dp_split_file_path()
956 struct efi_device_path **device, in efi_dp_from_name()
957 struct efi_device_path **file) in efi_dp_from_name()