/u-boot/drivers/block/ |
A D | blk_legacy.c | 18 for (entry = drv; entry != drv + n_ents; entry++) { in blk_driver_lookup_type() 33 for (entry = drv; entry != drv + n_ents; entry++) { in blk_driver_lookup_typename() 46 return drv ? drv->if_typename : NULL; in blk_get_if_type_name() 82 if (!drv) in blk_list_part() 107 if (!drv) in blk_print_part_devnum() 125 if (!drv) in blk_list_devices() 143 if (!drv) in blk_print_device_num() 160 if (!drv) in blk_show_device() 184 if (!drv) in blk_get_devnum_by_type() 197 if (!drv) in blk_dselect_hwpart() [all …]
|
/u-boot/env/ |
A D | env.c | 20 struct env_driver *drv; in env_fix_drivers() local 25 for (entry = drv; entry != drv + n_ents; entry++) { in env_fix_drivers() 47 for (entry = drv; entry != drv + n_ents; entry++) { in _env_driver_lookup() 160 if (!drv) { in env_driver_lookup() 166 return drv; in env_driver_lookup() 241 if (drv) { in env_reload() 269 if (drv) { in env_save() 301 if (drv) { in env_erase() 304 if (!drv->erase) in env_erase() 331 if (!drv->init || !(ret = drv->init())) in env_init() [all …]
|
/u-boot/drivers/core/ |
A D | device-remove.c | 33 if (drv && (pos->driver != drv)) in device_chld_unbind() 58 if (drv && (pos->driver != drv)) in device_chld_remove() 73 const struct driver *drv; in device_unbind() local 85 drv = dev->driver; in device_unbind() 86 assert(drv); in device_unbind() 88 if (drv->unbind) { in device_unbind() 89 ret = drv->unbind(dev); in device_unbind() 221 drv = dev->driver; in device_remove() 222 assert(drv); in device_remove() 234 if (drv->remove) { in device_remove() [all …]
|
A D | device.c | 74 dev->driver = drv; in device_bind_common() 160 if (drv->bind) { in device_bind_common() 189 if (drv->unbind && drv->unbind(dev)) { in device_bind_common() 257 if (!drv) in device_bind_by_name() 351 drv = dev->driver; in device_alloc_priv() 352 assert(drv); in device_alloc_priv() 356 ptr = alloc_priv(drv->priv_auto, drv->flags); in device_alloc_priv() 418 drv = dev->driver; in device_of_to_plat() 419 assert(drv); in device_of_to_plat() 486 assert(drv); in device_probe() [all …]
|
A D | lists.c | 25 struct driver *drv = in lists_driver_lookup_name() local 30 for (entry = drv; entry != drv + n_ents; entry++) { in lists_driver_lookup_name() 143 struct driver *drv; in device_bind_driver_to_node() local 146 drv = lists_driver_lookup_name(drv_name); in device_bind_driver_to_node() 147 if (!drv) { in device_bind_driver_to_node() 151 ret = device_bind_with_driver_data(parent, drv, dev_name, 0 /* data */, in device_bind_driver_to_node()
|
/u-boot/drivers/misc/ |
A D | stm32_rcc.c | 45 struct driver *drv; in stm32_rcc_bind() local 51 drv = lists_driver_lookup_name(rcc_clk->drv_name); in stm32_rcc_bind() 52 if (!drv) { in stm32_rcc_bind() 57 ret = device_bind_with_driver_data(dev, drv, dev->name, in stm32_rcc_bind() 64 drv = lists_driver_lookup_name("stm32_rcc_reset"); in stm32_rcc_bind() 65 if (!drv) { in stm32_rcc_bind() 70 return device_bind_with_driver_data(dev, drv, dev->name, in stm32_rcc_bind()
|
/u-boot/cmd/ |
A D | bind.c | 21 struct driver *drv; in bind_by_class_index() local 23 drv = lists_driver_lookup_name(drv_name); in bind_by_class_index() 24 if (!drv) { in bind_by_class_index() 41 ret = device_bind_with_driver_data(parent, drv, drv->name, 0, in bind_by_class_index() 100 struct driver *drv; in unbind_child_by_class_index() local 102 drv = lists_driver_lookup_name(drv_name); in unbind_child_by_class_index() 103 if (!drv) { in unbind_child_by_class_index() 116 ret = device_chld_unbind(parent, drv); in unbind_child_by_class_index() 129 struct driver *drv; in bind_by_node_path() local 131 drv = lists_driver_lookup_name(drv_name); in bind_by_node_path() [all …]
|
/u-boot/drivers/net/phy/ |
A D | phy.c | 572 if (drv->probe) in phy_register() 574 if (drv->config) in phy_register() 576 if (drv->startup) in phy_register() 578 if (drv->shutdown) in phy_register() 580 if (drv->readext) in phy_register() 582 if (drv->writeext) in phy_register() 584 if (drv->read_mmd) in phy_register() 586 if (drv->write_mmd) in phy_register() 625 if (phydev->drv->probe) in phy_probe() 650 if ((drv->uid & drv->mask) == (phy_id & drv->mask)) in get_phy_driver() [all …]
|
A D | xilinx_gmii2rgmii.c | 24 if (ext_phydev->drv->config) in xilinxgmiitorgmii_config() 25 ext_phydev->drv->config(ext_phydev); in xilinxgmiitorgmii_config() 36 if (ext_phydev->drv->readext) in xilinxgmiitorgmii_extread() 37 ext_phydev->drv->readext(ext_phydev, addr, devaddr, regnum); in xilinxgmiitorgmii_extread() 49 if (ext_phydev->drv->writeext) in xilinxgmiitorgmii_extwrite() 50 ext_phydev->drv->writeext(ext_phydev, addr, devaddr, regnum, in xilinxgmiitorgmii_extwrite() 63 if (ext_phydev->drv->startup) in xilinxgmiitorgmii_startup() 64 ext_phydev->drv->startup(ext_phydev); in xilinxgmiitorgmii_startup()
|
A D | micrel_ksz90x1.c | 114 struct phy_driver *drv = phydev->drv; in ksz90x1_of_config_group() local 120 if (!drv || !drv->writeext) in ksz90x1_of_config_group() 200 struct phy_driver *drv = phydev->drv; in ksz9031_center_flp_timing() local 203 if (!drv || !drv->writeext) in ksz9031_center_flp_timing() 268 unsigned features = phydev->drv->features; in ksz9021_config() 366 features = phydev->drv->features; in ksz9031_config() 414 struct phy_driver *drv = phydev->drv; in ksz9131_config_rgmii_delay() local 439 val = drv->readext(phydev, 0, KSZ9131RN_MMD_COMMON_CTRL_REG, in ksz9131_config_rgmii_delay() 443 ret = drv->writeext(phydev, 0, KSZ9131RN_MMD_COMMON_CTRL_REG, in ksz9131_config_rgmii_delay() 448 val = drv->readext(phydev, 0, KSZ9131RN_MMD_COMMON_CTRL_REG, in ksz9131_config_rgmii_delay() [all …]
|
/u-boot/include/dm/ |
A D | device-internal.h | 39 int device_bind(struct udevice *parent, const struct driver *drv, 63 const struct driver *drv, const char *name, 168 int device_chld_unbind(struct udevice *dev, struct driver *drv); 170 static inline int device_chld_unbind(struct udevice *dev, struct driver *drv) in device_chld_unbind() argument 193 int device_chld_remove(struct udevice *dev, struct driver *drv, 196 static inline int device_chld_remove(struct udevice *dev, struct driver *drv, in device_chld_remove() argument
|
/u-boot/lib/efi_driver/ |
A D | efi_uclass.c | 257 static efi_status_t efi_add_driver(struct driver *drv) in efi_add_driver() argument 260 const struct efi_driver_ops *ops = drv->ops; in efi_add_driver() 263 log_debug("Adding EFI driver '%s'\n", drv->name); in efi_add_driver() 266 drv->name); in efi_add_driver() 277 bp->ops = drv->ops; in efi_add_driver() 305 struct driver *drv; in efi_driver_init() local 309 for (drv = ll_entry_start(struct driver, driver); in efi_driver_init() 310 drv < ll_entry_end(struct driver, driver); ++drv) { in efi_driver_init() 311 if (drv->id == UCLASS_EFI) { in efi_driver_init() 312 ret = efi_add_driver(drv); in efi_driver_init() [all …]
|
/u-boot/common/ |
A D | log.c | 109 if (!strcmp(drv_name, ldev->drv->name)) in log_device_find_by_name() 224 ldev->drv->emit(ldev, rec); in log_dispatch() 357 static struct log_device *log_find_device_by_drv(struct log_driver *drv) in log_find_device_by_drv() argument 362 if (ldev->drv == drv) in log_find_device_by_drv() 374 int log_device_set_enable(struct log_driver *drv, bool enable) in log_device_set_enable() argument 378 ldev = log_find_device_by_drv(drv); in log_device_set_enable() 393 struct log_driver *end = drv + count; in log_init() 401 while (drv < end) { in log_init() 410 ldev->drv = drv; in log_init() 411 ldev->flags = drv->flags; in log_init() [all …]
|
/u-boot/disk/ |
A D | part.c | 31 struct part_driver *drv = in part_driver_lookup_type() local 37 for (entry = drv; entry != drv + n_ents; entry++) { in part_driver_lookup_type() 47 for (entry = drv; entry != drv + n_ents; entry++) { in part_driver_lookup_type() 245 for (entry = drv; entry != drv + n_ents; entry++) { in part_init() 310 struct part_driver *drv; in part_print() local 313 if (!drv) { in part_print() 321 if (drv->print) in part_print() 322 drv->print(dev_desc); in part_print() 342 if (!drv) { in part_get_info() 347 if (!drv->get_info) { in part_get_info() [all …]
|
/u-boot/drivers/clk/ |
A D | clk.c | 20 struct driver *drv; in clk_register() local 32 drv = lists_driver_lookup_name(drv_name); in clk_register() 33 if (!drv) { in clk_register() 39 ret = device_bind(parent, drv, name, NULL, ofnode_null(), &clk->dev); in clk_register()
|
/u-boot/drivers/power/pmic/ |
A D | fan53555.c | 54 struct driver *drv; in pmic_fan53555_bind() local 58 drv = lists_driver_lookup_name(regulator_driver_name); in pmic_fan53555_bind() 59 if (!drv) { in pmic_fan53555_bind() 64 return device_bind_with_driver_data(dev, drv, "SW", dev->driver_data, in pmic_fan53555_bind()
|
/u-boot/drivers/firmware/scmi/ |
A D | scmi_agent-uclass.c | 65 struct driver *drv = NULL; in scmi_bind_protocols() local 77 drv = DM_DRIVER_GET(scmi_clock); in scmi_bind_protocols() 81 drv = DM_DRIVER_GET(scmi_reset_domain); in scmi_bind_protocols() 87 if (!drv) { in scmi_bind_protocols() 93 ret = device_bind(dev, drv, ofnode_get_name(node), NULL, node, in scmi_bind_protocols()
|
/u-boot/include/ |
A D | phy.h | 134 struct phy_driver *drv; member 248 struct phy_driver *drv = phydev->drv; in phy_read_mmd() local 254 if (drv->read_mmd) in phy_read_mmd() 255 return drv->read_mmd(phydev, devad, regnum); in phy_read_mmd() 258 if ((drv->features & PHY_10G_FEATURES) == PHY_10G_FEATURES || in phy_read_mmd() 281 struct phy_driver *drv = phydev->drv; in phy_write_mmd() local 287 if (drv->write_mmd) in phy_write_mmd() 288 return drv->write_mmd(phydev, devad, regnum, val); in phy_write_mmd() 291 if ((drv->features & PHY_10G_FEATURES) == PHY_10G_FEATURES || in phy_write_mmd() 497 int phy_register(struct phy_driver *drv);
|
/u-boot/arch/arm/dts/ |
A D | rk3036-sdk.dts | 18 vcc5v0_otg: vcc5v0-otg-drv { 28 vcc5v0_host: vcc5v0-host-drv { 64 otg_vbus_drv: host-vbus-drv { 70 host_vbus_drv: host-vbus-drv {
|
A D | rk3128-evb.dts | 18 vcc5v0_otg: vcc5v0-otg-drv { 28 vcc5v0_host: vcc5v0-host-drv { 84 otg_vbus_drv: host-vbus-drv { 90 host_vbus_drv: host-vbus-drv {
|
/u-boot/test/dm/ |
A D | bus.c | 211 struct driver *drv; in dm_test_bus_parent_data_uclass() local 218 drv = (struct driver *)bus->driver; in dm_test_bus_parent_data_uclass() 219 size = drv->per_child_auto; in dm_test_bus_parent_data_uclass() 223 os_mprotect_allow(drv, sizeof(*drv)); in dm_test_bus_parent_data_uclass() 226 drv->per_child_auto = 0; in dm_test_bus_parent_data_uclass() 231 drv->per_child_auto = size; in dm_test_bus_parent_data_uclass() 354 struct driver *drv; in dm_test_bus_parent_plat_uclass() local 361 size = drv->per_child_plat_auto; in dm_test_bus_parent_plat_uclass() 364 os_mprotect_allow(drv, sizeof(*drv)); in dm_test_bus_parent_plat_uclass() 367 drv->per_child_plat_auto = 0; in dm_test_bus_parent_plat_uclass() [all …]
|
/u-boot/drivers/cpu/ |
A D | riscv_cpu.c | 96 struct driver *drv; in riscv_cpu_bind() local 119 drv = lists_driver_lookup_name("riscv_timer"); in riscv_cpu_bind() 120 if (!drv) { in riscv_cpu_bind() 125 device_bind_with_driver_data(dev, drv, "riscv_timer", in riscv_cpu_bind()
|
/u-boot/board/beacon/imx8mn/ |
A D | imx8mn_beacon.c | 40 if (phydev->drv->config) in board_phy_config() 41 phydev->drv->config(phydev); in board_phy_config()
|
/u-boot/board/beacon/imx8mm/ |
A D | imx8mm_beacon.c | 40 if (phydev->drv->config) in board_phy_config() 41 phydev->drv->config(phydev); in board_phy_config()
|
/u-boot/board/freescale/imx8mm_evk/ |
A D | imx8mm_evk.c | 42 if (phydev->drv->config) in board_phy_config() 43 phydev->drv->config(phydev); in board_phy_config()
|