Home
last modified time | relevance | path

Searched refs:uclass (Results 1 – 25 of 164) sorted by relevance

1234567

/external/u-boot/drivers/core/
Duclass.c24 struct uclass *uclass_find(enum uclass_id key) in uclass_find()
26 struct uclass *uc; in uclass_find()
52 static int uclass_add(enum uclass_id id, struct uclass **ucp) in uclass_add()
55 struct uclass *uc; in uclass_add()
106 int uclass_destroy(struct uclass *uc) in uclass_destroy()
140 int uclass_get(enum uclass_id id, struct uclass **ucp) in uclass_get()
142 struct uclass *uc; in uclass_get()
155 struct uclass *uc; in uclass_get_name()
176 int dev_get_uclass_index(struct udevice *dev, struct uclass **ucp) in dev_get_uclass_index()
179 struct uclass *uc = dev->uclass; in dev_get_uclass_index()
[all …]
Dlists.c40 struct uclass_driver *uclass = in lists_uclass_lookup() local
41 ll_entry_start(struct uclass_driver, uclass); in lists_uclass_lookup()
42 const int n_ents = ll_entry_count(struct uclass_driver, uclass); in lists_uclass_lookup()
45 for (entry = uclass; entry != uclass + n_ents; entry++) { in lists_uclass_lookup()
Ddevice.c40 struct uclass *uc; in device_bind_common()
70 dev->uclass = uc; in device_bind_common()
135 size = parent->uclass->uc_drv-> in device_bind_common()
339 size = dev->uclass->uc_drv->per_device_auto_alloc_size; in device_probe()
342 dev->uclass->uc_drv->flags); in device_probe()
353 size = dev->parent->uclass->uc_drv-> in device_probe()
549 struct uclass *uc; in device_find_by_ofnode()
786 return dev->uclass->uc_drv->id; in device_get_uclass_id()
794 return dev->uclass->uc_drv->name; in dev_get_uclass_name()
856 struct uclass *uc; in dev_disable_by_path()
DMakefile5 obj-y += device.o fdtaddr.o lists.o root.o uclass.o util.o
11 obj-$(CONFIG_$(SPL_TPL_)SYSCON) += syscon-uclass.o
Droot.c87 struct uclass_driver *uclass = in fix_uclass() local
88 ll_entry_start(struct uclass_driver, uclass); in fix_uclass()
89 const int n_ents = ll_entry_count(struct uclass_driver, uclass); in fix_uclass()
92 for (entry = uclass; entry != uclass + n_ents; entry++) { in fix_uclass()
Ddump.c19 printf(" %-10.10s %3d [ %c ] %-20.20s ", dev->uclass->uc_drv->name, in show_devices()
77 struct uclass *uc; in dm_dump_uclass()
/external/u-boot/cmd/
Dbind.c12 static int bind_by_class_index(const char *uclass, int index, in bind_by_class_index() argument
27 uclass_id = uclass_get_by_name(uclass); in bind_by_class_index()
29 printf("%s is not a valid uclass\n", uclass); in bind_by_class_index()
35 printf("Cannot find device %d of class %s\n", index, uclass); in bind_by_class_index()
49 static int find_dev(const char *uclass, int index, struct udevice **devp) in find_dev() argument
54 uclass_id = uclass_get_by_name(uclass); in find_dev()
56 printf("%s is not a valid uclass\n", uclass); in find_dev()
62 printf("Cannot find device %d of class %s\n", index, uclass); in find_dev()
69 static int unbind_by_class_index(const char *uclass, int index) in unbind_by_class_index() argument
74 ret = find_dev(uclass, index, &dev); in unbind_by_class_index()
[all …]
/external/u-boot/drivers/video/
DMakefile12 obj-$(CONFIG_DISPLAY) += display-uclass.o
13 obj-$(CONFIG_DM_VIDEO) += backlight-uclass.o
14 obj-$(CONFIG_VIDEO_MIPI_DSI) += dsi-host-uclass.o
15 obj-$(CONFIG_DM_VIDEO) += panel-uclass.o simple_panel.o
16 obj-$(CONFIG_DM_VIDEO) += video-uclass.o vidconsole-uclass.o
37 obj-$(CONFIG_OSD) += video_osd-uclass.o
/external/u-boot/doc/driver-model/
Dpmic-framework.rst10 This is an introduction to driver-model multi uclass PMIC IC's support.
11 At present it's based on two uclass types:
14 basic uclass type for PMIC I/O, which provides common
17 additional uclass type for specific PMIC features, which are
23 - drivers/power/pmic/pmic-uclass.c
26 - drivers/power/regulator/regulator-uclass.c
78 Pmic uclass
84 * Core: 'drivers/power/pmic/pmic-uclass.c' (config 'CONFIG_DM_PMIC')
104 This command can use only UCLASS_PMIC devices, since this uclass is designed
109 Regulator uclass
[all …]
Ddesign.rst26 a group of devices which operate in the same way. A uclass provides
28 using the same interface. For example a GPIO uclass provides
29 operations for get/set value. An I2C uclass may have 10 I2C ports,
52 There is a uclass called 'demo'. This uclass handles
54 uclass:
96 in sandbox, and every uclass has its own test. As a move towards this, tests
248 This function looks up a device for the demo uclass. Given a device
250 the UCLASS_DEMO uclass.
260 This function is in the demo uclass. It takes care of calling the 'hello'
264 The code for demo_hello() is in drivers/demo/demo-uclass.c:
[all …]
/external/u-boot/include/dm/
Duclass.h34 struct uclass { struct
99 int (*init)(struct uclass *class);
100 int (*destroy)(struct uclass *class);
112 ll_entry_declare(struct uclass_driver, __name, uclass)
125 int uclass_get(enum uclass_id key, struct uclass **ucp);
Duclass-internal.h48 int dev_get_uclass_index(struct udevice *dev, struct uclass **ucp);
242 struct uclass *uclass_find(enum uclass_id key);
252 int uclass_destroy(struct uclass *uc);
/external/u-boot/drivers/power/regulator/
DKconfig12 - 'drivers/power/pmic/pmic-uclass.c'
13 - 'drivers/power/pmic/regulator-uclass.c'
50 This config enables implementation of driver-model regulator uclass
60 This config enables implementation of driver-model regulator uclass
67 This config enables implementation of driver-model regulator uclass
85 This config enables implementation of driver-model regulator uclass
92 This config enables implementation of driver-model regulator uclass
101 uclass features for the FAN53555 regulator. The FAN53555 is
125 This config enables implementation of driver-model regulator uclass
134 This config enables implementation of driver-model regulator uclass
[all …]
/external/u-boot/test/dm/
Dtest-uclass.c71 struct uclass *uc = dev->uclass; in test_post_probe()
100 static int test_init(struct uclass *uc) in test_init()
108 static int test_destroy(struct uclass *uc) in test_destroy()
Dbus.c123 struct uclass *uc; in dm_test_bus_children()
240 struct uclass *uc; in test_bus_parent_data()
316 os_mprotect_allow(bus->uclass->uc_drv, sizeof(*bus->uclass->uc_drv)); in dm_test_bus_parent_data_uclass()
319 bus->uclass->uc_drv->per_child_auto_alloc_size = size; in dm_test_bus_parent_data_uclass()
324 bus->uclass->uc_drv->per_child_auto_alloc_size = 0; in dm_test_bus_parent_data_uclass()
338 struct uclass *uc; in dm_test_bus_parent_ops()
459 os_mprotect_allow(bus->uclass->uc_drv, sizeof(*bus->uclass->uc_drv)); in dm_test_bus_parent_platdata_uclass()
462 bus->uclass->uc_drv->per_child_platdata_auto_alloc_size = size; in dm_test_bus_parent_platdata_uclass()
467 bus->uclass->uc_drv->per_child_platdata_auto_alloc_size = 0; in dm_test_bus_parent_platdata_uclass()
/external/u-boot/drivers/sound/
DMakefile7 obj-$(CONFIG_SOUND) += codec-uclass.o
8 obj-$(CONFIG_SOUND) += i2s-uclass.o
9 obj-$(CONFIG_SOUND) += sound-uclass.o
/external/u-boot/net/
DMakefile14 obj-$(CONFIG_NET) += eth-uclass.o
18 obj-$(CONFIG_DM_MDIO) += mdio-uclass.o
19 obj-$(CONFIG_DM_MDIO_MUX) += mdio-mux-uclass.o
/external/u-boot/drivers/demo/
DKconfig4 bool "Enable demo uclass support"
7 This uclass allows you to play around with driver model. It provides
9 the 'demo' command or by calling the uclass functions from your
/external/u-boot/drivers/axi/
DMakefile7 obj-$(CONFIG_AXI) += axi-uclass.o
9 obj-$(CONFIG_SANDBOX) += axi-emul-uclass.o
/external/u-boot/drivers/scsi/
DMakefile7 obj-$(CONFIG_DM_SCSI) += scsi-uclass.o
13 obj-$(CONFIG_DM_SCSI) += scsi-uclass.o
/external/u-boot/drivers/power/pmic/
DKconfig10 - 'drivers/power/pmic/pmic-uclass.c'
55 This config enables implementation of driver-model pmic uclass features
62 This config enables implementation of driver-model pmic uclass
72 uclass features for the FAN53555 regulator. The FAN53555 is
84 This config enables implementation of driver-model pmic uclass features
91 This config enables implementation of driver-model pmic uclass features
98 This config enables implementation of driver-model pmic uclass features
105 This config enables implementation of driver-model pmic uclass features
112 This config enables implementation of driver-model pmic uclass features
/external/u-boot/doc/
DREADME.tee2 TEE uclass
5 This document describes the TEE uclass in U-Boot
12 This uclass deals with:
87 | uclass | | API |
/external/u-boot/drivers/led/
Dled-uclass.c18 struct uclass *uc; in led_get_by_label()
70 struct uclass *uc; in led_default_state()
/external/u-boot/drivers/pci/
Dpci-emul-uclass.c84 struct sandbox_pci_emul_priv *priv = dev->uclass->priv; in sandbox_pci_emul_post_probe()
94 struct sandbox_pci_emul_priv *priv = dev->uclass->priv; in sandbox_pci_emul_pre_remove()
/external/u-boot/drivers/block/
Dblk-uclass.c91 struct uclass *uc; in blk_get_devnum_by_typename()
173 struct uclass *uc; in get_desc()
397 struct uclass *uc; in blk_find_device()
506 struct uclass *uc; in blk_find_max_devnum()
538 struct uclass *uc; in blk_claim_devnum()
618 struct uclass *uc; in blk_unbind_all()

1234567