Lines Matching refs:dev

24 int bootmeth_get_state_desc(struct udevice *dev, char *buf, int maxsize)  in bootmeth_get_state_desc()  argument
26 const struct bootmeth_ops *ops = bootmeth_get_ops(dev); in bootmeth_get_state_desc()
31 return ops->get_state_desc(dev, buf, maxsize); in bootmeth_get_state_desc()
34 int bootmeth_check(struct udevice *dev, struct bootflow_iter *iter) in bootmeth_check() argument
36 const struct bootmeth_ops *ops = bootmeth_get_ops(dev); in bootmeth_check()
41 return ops->check(dev, iter); in bootmeth_check()
44 int bootmeth_read_bootflow(struct udevice *dev, struct bootflow *bflow) in bootmeth_read_bootflow() argument
46 const struct bootmeth_ops *ops = bootmeth_get_ops(dev); in bootmeth_read_bootflow()
51 return ops->read_bootflow(dev, bflow); in bootmeth_read_bootflow()
54 int bootmeth_set_bootflow(struct udevice *dev, struct bootflow *bflow, in bootmeth_set_bootflow() argument
57 const struct bootmeth_ops *ops = bootmeth_get_ops(dev); in bootmeth_set_bootflow()
62 return ops->set_bootflow(dev, bflow, buf, size); in bootmeth_set_bootflow()
66 int bootmeth_read_all(struct udevice *dev, struct bootflow *bflow) in bootmeth_read_all() argument
68 const struct bootmeth_ops *ops = bootmeth_get_ops(dev); in bootmeth_read_all()
73 return ops->read_all(dev, bflow); in bootmeth_read_all()
77 int bootmeth_boot(struct udevice *dev, struct bootflow *bflow) in bootmeth_boot() argument
79 const struct bootmeth_ops *ops = bootmeth_get_ops(dev); in bootmeth_boot()
84 return ops->boot(dev, bflow); in bootmeth_boot()
87 int bootmeth_read_file(struct udevice *dev, struct bootflow *bflow, in bootmeth_read_file() argument
91 const struct bootmeth_ops *ops = bootmeth_get_ops(dev); in bootmeth_read_file()
96 return ops->read_file(dev, bflow, file_path, addr, type, sizep); in bootmeth_read_file()
99 int bootmeth_get_bootflow(struct udevice *dev, struct bootflow *bflow) in bootmeth_get_bootflow() argument
101 const struct bootmeth_ops *ops = bootmeth_get_ops(dev); in bootmeth_get_bootflow()
105 bootflow_init(bflow, NULL, dev); in bootmeth_get_bootflow()
107 return ops->read_bootflow(dev, bflow); in bootmeth_get_bootflow()
148 struct udevice *dev = order[i]; in bootmeth_setup_iter_order() local
152 ret = device_probe(dev); in bootmeth_setup_iter_order()
158 ucp = dev_get_uclass_plat(dev); in bootmeth_setup_iter_order()
168 struct udevice *dev; in bootmeth_setup_iter_order() local
189 i, &dev); in bootmeth_setup_iter_order()
192 ucp = dev_get_uclass_plat(dev); in bootmeth_setup_iter_order()
197 order[upto++] = dev; in bootmeth_setup_iter_order()
250 struct udevice *dev; in bootmeth_set_order() local
255 &dev); in bootmeth_set_order()
261 order[i] = dev; in bootmeth_set_order()
275 struct udevice *dev; in bootmeth_set_property() local
281 &dev); in bootmeth_set_property()
287 ops = bootmeth_get_ops(dev); in bootmeth_set_property()
293 return ops->set_property(dev, property, value); in bootmeth_set_property()
416 int bootmeth_common_read_file(struct udevice *dev, struct bootflow *bflow, in bootmeth_common_read_file() argument