Lines Matching full:dev

14 int dev_read_u32(struct udevice *dev, const char *propname, u32 *outp)  in dev_read_u32()  argument
16 return ofnode_read_u32(dev_ofnode(dev), propname, outp); in dev_read_u32()
19 int dev_read_u32_default(struct udevice *dev, const char *propname, int def) in dev_read_u32_default() argument
21 return ofnode_read_u32_default(dev_ofnode(dev), propname, def); in dev_read_u32_default()
24 const char *dev_read_string(struct udevice *dev, const char *propname) in dev_read_string() argument
26 return ofnode_read_string(dev_ofnode(dev), propname); in dev_read_string()
29 bool dev_read_bool(struct udevice *dev, const char *propname) in dev_read_bool() argument
31 return ofnode_read_bool(dev_ofnode(dev), propname); in dev_read_bool()
34 ofnode dev_read_subnode(struct udevice *dev, const char *subnode_name) in dev_read_subnode() argument
36 return ofnode_find_subnode(dev_ofnode(dev), subnode_name); in dev_read_subnode()
39 ofnode dev_read_first_subnode(struct udevice *dev) in dev_read_first_subnode() argument
41 return ofnode_first_subnode(dev_ofnode(dev)); in dev_read_first_subnode()
49 int dev_read_size(struct udevice *dev, const char *propname) in dev_read_size() argument
51 return ofnode_read_size(dev_ofnode(dev), propname); in dev_read_size()
54 fdt_addr_t dev_read_addr_index(struct udevice *dev, int index) in dev_read_addr_index() argument
56 if (ofnode_is_np(dev_ofnode(dev))) in dev_read_addr_index()
57 return ofnode_get_addr_index(dev_ofnode(dev), index); in dev_read_addr_index()
59 return devfdt_get_addr_index(dev, index); in dev_read_addr_index()
62 void *dev_remap_addr_index(struct udevice *dev, int index) in dev_remap_addr_index() argument
64 fdt_addr_t addr = dev_read_addr_index(dev, index); in dev_remap_addr_index()
72 fdt_addr_t dev_read_addr(struct udevice *dev) in dev_read_addr() argument
74 return dev_read_addr_index(dev, 0); in dev_read_addr()
77 void *dev_read_addr_ptr(struct udevice *dev) in dev_read_addr_ptr() argument
79 fdt_addr_t addr = dev_read_addr(dev); in dev_read_addr_ptr()
84 void *dev_remap_addr(struct udevice *dev) in dev_remap_addr() argument
86 return dev_remap_addr_index(dev, 0); in dev_remap_addr()
89 fdt_addr_t dev_read_addr_size(struct udevice *dev, const char *property, in dev_read_addr_size() argument
92 return ofnode_get_addr_size(dev_ofnode(dev), property, sizep); in dev_read_addr_size()
95 const char *dev_read_name(struct udevice *dev) in dev_read_name() argument
97 return ofnode_get_name(dev_ofnode(dev)); in dev_read_name()
100 int dev_read_stringlist_search(struct udevice *dev, const char *property, in dev_read_stringlist_search() argument
103 return ofnode_stringlist_search(dev_ofnode(dev), property, string); in dev_read_stringlist_search()
106 int dev_read_string_index(struct udevice *dev, const char *propname, int index, in dev_read_string_index() argument
109 return ofnode_read_string_index(dev_ofnode(dev), propname, index, outp); in dev_read_string_index()
112 int dev_read_string_count(struct udevice *dev, const char *propname) in dev_read_string_count() argument
114 return ofnode_read_string_count(dev_ofnode(dev), propname); in dev_read_string_count()
117 int dev_read_phandle_with_args(struct udevice *dev, const char *list_name, in dev_read_phandle_with_args() argument
121 return ofnode_parse_phandle_with_args(dev_ofnode(dev), list_name, in dev_read_phandle_with_args()
126 int dev_count_phandle_with_args(struct udevice *dev, const char *list_name, in dev_count_phandle_with_args() argument
129 return ofnode_count_phandle_with_args(dev_ofnode(dev), list_name, in dev_count_phandle_with_args()
133 int dev_read_addr_cells(struct udevice *dev) in dev_read_addr_cells() argument
135 return ofnode_read_addr_cells(dev_ofnode(dev)); in dev_read_addr_cells()
138 int dev_read_size_cells(struct udevice *dev) in dev_read_size_cells() argument
140 return ofnode_read_size_cells(dev_ofnode(dev)); in dev_read_size_cells()
143 int dev_read_simple_addr_cells(struct udevice *dev) in dev_read_simple_addr_cells() argument
145 return ofnode_read_simple_addr_cells(dev_ofnode(dev)); in dev_read_simple_addr_cells()
148 int dev_read_simple_size_cells(struct udevice *dev) in dev_read_simple_size_cells() argument
150 return ofnode_read_simple_size_cells(dev_ofnode(dev)); in dev_read_simple_size_cells()
153 int dev_read_phandle(struct udevice *dev) in dev_read_phandle() argument
155 ofnode node = dev_ofnode(dev); in dev_read_phandle()
163 const void *dev_read_prop(struct udevice *dev, const char *propname, int *lenp) in dev_read_prop() argument
165 return ofnode_get_property(dev_ofnode(dev), propname, lenp); in dev_read_prop()
168 int dev_read_alias_seq(struct udevice *dev, int *devnump) in dev_read_alias_seq() argument
170 ofnode node = dev_ofnode(dev); in dev_read_alias_seq()
171 const char *uc_name = dev->uclass->uc_drv->name; in dev_read_alias_seq()
186 int dev_read_u32_array(struct udevice *dev, const char *propname, in dev_read_u32_array() argument
189 return ofnode_read_u32_array(dev_ofnode(dev), propname, out_values, sz); in dev_read_u32_array()
192 const uint8_t *dev_read_u8_array_ptr(struct udevice *dev, const char *propname, in dev_read_u8_array_ptr() argument
195 return ofnode_read_u8_array_ptr(dev_ofnode(dev), propname, sz); in dev_read_u8_array_ptr()
198 int dev_read_enabled(struct udevice *dev) in dev_read_enabled() argument
200 ofnode node = dev_ofnode(dev); in dev_read_enabled()
209 int dev_read_resource(struct udevice *dev, uint index, struct resource *res) in dev_read_resource() argument
211 return ofnode_read_resource(dev_ofnode(dev), index, res); in dev_read_resource()
214 int dev_read_resource_byname(struct udevice *dev, const char *name, in dev_read_resource_byname() argument
217 return ofnode_read_resource_byname(dev_ofnode(dev), name, res); in dev_read_resource_byname()
220 u64 dev_translate_address(struct udevice *dev, const fdt32_t *in_addr) in dev_translate_address() argument
222 return ofnode_translate_address(dev_ofnode(dev), in_addr); in dev_translate_address()