Home
last modified time | relevance | path

Searched refs:dev_of_offset (Results 1 – 25 of 214) sorted by relevance

123456789

/openbmc/u-boot/drivers/core/
H A Dfdtaddr.c30 dev_of_offset(dev->parent)); in devfdt_get_addr_index()
36 ns = fdt_size_cells(gd->fdt_blob, dev_of_offset(dev->parent)); in devfdt_get_addr_index()
42 reg = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "reg", in devfdt_get_addr_index()
57 dev_of_offset(dev), reg); in devfdt_get_addr_index()
68 dev_of_offset(dev->parent), dev_of_offset(dev), in devfdt_get_addr_index()
100 fdtdec_get_addr_size_auto_noparent(gd->fdt_blob, dev_of_offset(dev), in devfdt_get_addr_size_index()
118 index = fdt_stringlist_search(gd->fdt_blob, dev_of_offset(dev), in devfdt_get_addr_name()
/openbmc/u-boot/drivers/pinctrl/
H A Dpinctrl-single.c81 prop = fdt_getprop(fdt, dev_of_offset(config), "pinctrl-single,pins", in single_set_state()
103 pdata->width = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in single_ofdata_to_platdata()
106 res = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), in single_ofdata_to_platdata()
119 pdata->mask = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in single_ofdata_to_platdata()
/openbmc/u-boot/drivers/mmc/
H A Dpic32_sdhci.c40 addr = fdtdec_get_addr_size(fdt, dev_of_offset(dev), "reg", &size); in pic32_sdhci_probe()
47 host->bus_width = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in pic32_sdhci_probe()
51 ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), in pic32_sdhci_probe()
H A Dsocfpga_dw_mmc.c107 fifo_depth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in socfpga_dwmmc_ofdata_to_platdata()
116 host->buswidth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in socfpga_dwmmc_ofdata_to_platdata()
127 priv->drvsel = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in socfpga_dwmmc_ofdata_to_platdata()
129 priv->smplsel = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in socfpga_dwmmc_ofdata_to_platdata()
H A Dmsm_sdhci.c52 int node = dev_of_offset(dev); in msm_sdc_clk_init()
170 int node = dev_of_offset(dev); in msm_ofdata_to_platdata()
177 dev_of_offset(parent), node, "reg", 1, NULL, false); in msm_ofdata_to_platdata()
H A Dftsdc010_mci.c397 chip->buswidth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in ftsdc010_mmc_ofdata_to_platdata()
400 priv->fifo_depth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in ftsdc010_mmc_ofdata_to_platdata()
402 priv->fifo_mode = fdtdec_get_bool(gd->fdt_blob, dev_of_offset(dev), in ftsdc010_mmc_ofdata_to_platdata()
404 if (fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), in ftsdc010_mmc_ofdata_to_platdata()
406 int val = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in ftsdc010_mmc_ofdata_to_platdata()
/openbmc/u-boot/drivers/gpio/
H A Dpcf8575_gpio.c133 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata()
135 uc_priv->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata()
139 dev_of_offset(dev), NULL); in pcf8575_ofdata_platdata()
141 n_latch = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in pcf8575_ofdata_platdata()
H A Dintel_ich6_gpio.c106 offset = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), "reg", -1); in gpio_ich6_ofdata_to_platdata()
113 plat->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in gpio_ich6_ofdata_to_platdata()
132 prop = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in ich6_gpio_probe()
H A Daltera_pio.c94 plat->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in altera_pio_ofdata_to_platdata()
96 plat->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in altera_pio_ofdata_to_platdata()
H A Dmsm_gpio.c108 uc_priv->gpio_count = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), in msm_gpio_ofdata_to_platdata()
110 uc_priv->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in msm_gpio_ofdata_to_platdata()
H A Dintel_broadwell_gpio.c152 bank = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), "reg", -1); in broadwell_gpio_ofdata_to_platdata()
159 plat->bank_name = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), in broadwell_gpio_ofdata_to_platdata()
/openbmc/u-boot/include/dm/
H A Dread.h673 return fdt_address_cells(gd->fdt_blob, dev_of_offset(dev)); in dev_read_addr_cells()
679 return fdt_size_cells(gd->fdt_blob, dev_of_offset(dev)); in dev_read_size_cells()
684 return fdt_address_cells(gd->fdt_blob, dev_of_offset(dev)); in dev_read_simple_addr_cells()
689 return fdt_size_cells(gd->fdt_blob, dev_of_offset(dev)); in dev_read_simple_size_cells()
694 return fdt_get_phandle(gd->fdt_blob, dev_of_offset(dev)); in dev_read_phandle()
706 dev_of_offset(dev), devnump); in dev_read_alias_seq()
733 return fdtdec_get_is_enabled(gd->fdt_blob, dev_of_offset(dev)); in dev_read_enabled()
/openbmc/u-boot/drivers/pinctrl/mvebu/
H A Dpinctrl-mvebu.c42 int node = dev_of_offset(dev); in mvebu_pinctl_emmc_set_mux()
70 int node = dev_of_offset(config); in mvebu_pinctrl_set_state()
131 int node = dev_of_offset(config); in mvebu_pinctrl_set_state_all()
185 int node = dev_of_offset(dev); in mvebu_pinctl_probe()
/openbmc/u-boot/board/qualcomm/dragonboard410c/
H A Ddragonboard410c.c66 dev_of_offset(pmic_gpio), in board_usb_init()
82 dev_of_offset(pmic_gpio), in board_usb_init()
128 node = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(pon), in misc_init_r()
/openbmc/u-boot/drivers/video/
H A Dsimplefb.c17 const int node = dev_of_offset(dev); in simple_video_probe()
22 base = fdtdec_get_addr_size_auto_parent(blob, dev_of_offset(dev->parent), in simple_video_probe()
/openbmc/u-boot/drivers/usb/musb-new/
H A Dti-musb.c82 int node = dev_of_offset(dev); in ti_musb_ofdata_to_platdata()
181 int node = dev_of_offset(dev); in ti_musb_host_ofdata_to_platdata()
219 int node = dev_of_offset(dev); in ti_musb_peripheral_ofdata_to_platdata()
291 for (node = fdt_first_subnode(fdt, dev_of_offset(parent)); node > 0; in ti_musb_wrapper_bind()
/openbmc/u-boot/drivers/spmi/
H A Dspmi-msm.c153 int node = dev_of_offset(dev); in msm_spmi_probe()
160 dev_of_offset(parent), node, "reg", 1, NULL, false); in msm_spmi_probe()
162 dev_of_offset(parent), node, "reg", 2, NULL, false); in msm_spmi_probe()
/openbmc/u-boot/drivers/clk/at91/
H A Dpmc.c55 int offset = dev_of_offset(dev); in at91_clk_sub_device_bind()
98 periph = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(clk->dev), "reg", in at91_clk_of_xlate()
/openbmc/u-boot/drivers/net/ti/
H A Dcpsw-common.c23 int node = dev_of_offset(dev); in davinci_emac_3517_get_macid()
63 int node = dev_of_offset(dev); in cpsw_am33xx_cm_get_macid()
/openbmc/u-boot/drivers/clk/altera/
H A Dclk-arria10.c192 int i, ret, offset = dev_of_offset(dev); in socfpga_a10_handoff_workaround()
228 int offset = dev_of_offset(dev); in socfpga_a10_clk_bind()
274 int offset = dev_of_offset(dev); in socfpga_a10_clk_probe()
307 int ret, offset = dev_of_offset(dev); in socfpga_a10_ofdata_to_platdata()
/openbmc/u-boot/drivers/video/sunxi/
H A Dsunxi_lcd.c117 if (fdtdec_decode_display_timing(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe()
122 timing_node = fdt_subnode_offset(gd->fdt_blob, dev_of_offset(cdev), in sunxi_lcd_probe()
/openbmc/u-boot/drivers/pinctrl/nxp/
H A Dpinctrl-imx.c21 int node = dev_of_offset(config); in imx_pinctrl_set_state()
201 int node = dev_of_offset(dev), ret; in imx_pinctrl_probe()
217 addr = fdtdec_get_addr_size(gd->fdt_blob, dev_of_offset(dev), "reg", in imx_pinctrl_probe()
/openbmc/u-boot/drivers/usb/dwc3/
H A Ddwc3-generic.c82 int node = dev_of_offset(dev); in dwc3_generic_peripheral_ofdata_to_platdata()
212 for (node = fdt_first_subnode(fdt, dev_of_offset(parent)); node > 0; in dwc3_glue_bind()
322 dr_mode = usb_get_dr_mode(dev_of_offset(child)); in dwc3_glue_probe()
/openbmc/u-boot/drivers/pinctrl/meson/
H A Dpinctrl-meson.c278 na = fdt_address_cells(gd->fdt_blob, dev_of_offset(dev->parent)); in meson_pinctrl_probe()
284 ns = fdt_size_cells(gd->fdt_blob, dev_of_offset(dev->parent)); in meson_pinctrl_probe()
290 fdt_for_each_subnode(node, gd->fdt_blob, dev_of_offset(dev)) { in meson_pinctrl_probe()
/openbmc/u-boot/drivers/video/rockchip/
H A Drk_lvds.c164 (gd->fdt_blob, dev_of_offset(dev), 0, timing)) { in rk_lvds_read_timing()
176 int node = dev_of_offset(dev); in rk_lvds_ofdata_to_platdata()

123456789