Home
last modified time | relevance | path

Searched refs:uc_priv (Results 1 – 25 of 77) sorted by relevance

1234

/external/u-boot/drivers/ata/
Ddwc_ahsata.c102 static int ahci_setup_oobr(struct ahci_uc_priv *uc_priv, int clk) in ahci_setup_oobr() argument
104 struct sata_host_regs *host_mmio = uc_priv->mmio_base; in ahci_setup_oobr()
112 static int ahci_host_init(struct ahci_uc_priv *uc_priv) in ahci_host_init() argument
117 struct sata_host_regs *host_mmio = uc_priv->mmio_base; in ahci_host_init()
139 ahci_setup_oobr(uc_priv, 0); in ahci_host_init()
152 uc_priv->cap = readl(&host_mmio->cap); in ahci_host_init()
153 uc_priv->port_map = readl(&host_mmio->pi); in ahci_host_init()
156 uc_priv->n_ports = (uc_priv->cap & SATA_HOST_CAP_NP_MASK) + 1; in ahci_host_init()
159 uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); in ahci_host_init()
161 for (i = 0; i < uc_priv->n_ports; i++) { in ahci_host_init()
[all …]
Dahci.c29 static int ata_io_flush(struct ahci_uc_priv *uc_priv, u8 port);
117 int __weak ahci_link_up(struct ahci_uc_priv *uc_priv, u8 port) in ahci_link_up() argument
121 void __iomem *port_mmio = uc_priv->port[port].port_mmio; in ahci_link_up()
174 static int ahci_host_init(struct ahci_uc_priv *uc_priv) in ahci_host_init() argument
178 struct udevice *dev = uc_priv->dev; in ahci_host_init()
181 pci_dev_t pdev = uc_priv->dev; in ahci_host_init()
186 void __iomem *mmio = uc_priv->mmio_base; in ahci_host_init()
198 ret = ahci_reset(uc_priv->mmio_base); in ahci_host_init()
225 uc_priv->cap = readl(mmio + HOST_CAP); in ahci_host_init()
226 uc_priv->port_map = readl(mmio + HOST_PORTS_IMPL); in ahci_host_init()
[all …]
/external/u-boot/drivers/gpio/
Dgpio-uclass.c31 struct gpio_dev_priv *uc_priv; in gpio_to_device() local
38 uc_priv = dev_get_uclass_priv(dev); in gpio_to_device()
39 if (gpio >= uc_priv->gpio_base && in gpio_to_device()
40 gpio < uc_priv->gpio_base + uc_priv->gpio_count) { in gpio_to_device()
42 desc->offset = gpio - uc_priv->gpio_base; in gpio_to_device()
54 struct gpio_dev_priv *uc_priv = NULL; in dm_gpio_lookup_name() local
66 uc_priv = dev_get_uclass_priv(dev); in dm_gpio_lookup_name()
68 offset = numeric - uc_priv->gpio_base; in dm_gpio_lookup_name()
70 if (offset < uc_priv->gpio_count) in dm_gpio_lookup_name()
74 len = uc_priv->bank_name ? strlen(uc_priv->bank_name) : 0; in dm_gpio_lookup_name()
[all …]
Dhsdk-creg-gpio.c77 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in hsdk_creg_gpio_probe() local
82 uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 1); in hsdk_creg_gpio_probe()
83 if (uc_priv->gpio_count > HSDK_CREG_MAX_GPIO) in hsdk_creg_gpio_probe()
84 uc_priv->gpio_count = HSDK_CREG_MAX_GPIO; in hsdk_creg_gpio_probe()
86 uc_priv->bank_name = dev_read_string(dev, "gpio-bank-name"); in hsdk_creg_gpio_probe()
87 if (!uc_priv->bank_name) in hsdk_creg_gpio_probe()
88 uc_priv->bank_name = dev_read_name(dev); in hsdk_creg_gpio_probe()
91 uc_priv->bank_name, hcg->regs, uc_priv->gpio_count); in hsdk_creg_gpio_probe()
Dpcf8575_gpio.c129 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in pcf8575_ofdata_platdata() local
133 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()
137 if (!uc_priv->bank_name) in pcf8575_ofdata_platdata()
138 uc_priv->bank_name = fdt_get_name(gd->fdt_blob, in pcf8575_ofdata_platdata()
150 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in pcf8575_gpio_probe() local
153 uc_priv->bank_name, uc_priv->gpio_count); in pcf8575_gpio_probe()
Dpm8916_gpio.c191 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in pm8916_gpio_ofdata_to_platdata() local
193 uc_priv->gpio_count = dev_read_u32_default(dev, "gpio-count", 0); in pm8916_gpio_ofdata_to_platdata()
194 uc_priv->bank_name = dev_read_string(dev, "gpio-bank-name"); in pm8916_gpio_ofdata_to_platdata()
195 if (uc_priv->bank_name == NULL) in pm8916_gpio_ofdata_to_platdata()
196 uc_priv->bank_name = "pm8916"; in pm8916_gpio_ofdata_to_platdata()
276 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in pm8941_pwrkey_ofdata_to_platdata() local
278 uc_priv->gpio_count = 2; in pm8941_pwrkey_ofdata_to_platdata()
279 uc_priv->bank_name = dev_read_string(dev, "gpio-bank-name"); in pm8941_pwrkey_ofdata_to_platdata()
280 if (uc_priv->bank_name == NULL) in pm8941_pwrkey_ofdata_to_platdata()
281 uc_priv->bank_name = "pm8916_key"; in pm8941_pwrkey_ofdata_to_platdata()
Dsandbox.c27 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in get_gpio_flags() local
30 if (offset >= uc_priv->gpio_count) { in get_gpio_flags()
197 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in sandbox_gpio_ofdata_to_platdata() local
199 uc_priv->gpio_count = dev_read_u32_default(dev, "sandbox,gpio-count", in sandbox_gpio_ofdata_to_platdata()
201 uc_priv->bank_name = dev_read_string(dev, "gpio-bank-name"); in sandbox_gpio_ofdata_to_platdata()
208 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in gpio_sandbox_probe() local
212 uc_priv->gpio_count = CONFIG_SANDBOX_GPIO_COUNT; in gpio_sandbox_probe()
214 dev->priv = calloc(sizeof(struct gpio_state), uc_priv->gpio_count); in gpio_sandbox_probe()
Dmsm_gpio.c106 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in msm_gpio_ofdata_to_platdata() local
108 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()
112 if (uc_priv->bank_name == NULL) in msm_gpio_ofdata_to_platdata()
113 uc_priv->bank_name = "soc"; in msm_gpio_ofdata_to_platdata()
Dstm32f7_gpio.c78 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in gpio_stm32_probe() local
91 uc_priv->bank_name = name; in gpio_stm32_probe()
92 uc_priv->gpio_count = dev_read_u32_default(dev, "ngpios", in gpio_stm32_probe()
95 uc_priv->bank_name); in gpio_stm32_probe()
/external/u-boot/drivers/video/bridge/
Dvideo-bridge-uclass.c35 struct video_bridge_priv *uc_priv = dev_get_uclass_priv(dev); in video_bridge_check_attached() local
40 ret = dm_gpio_get_value(&uc_priv->hotplug); in video_bridge_check_attached()
59 struct video_bridge_priv *uc_priv = dev_get_uclass_priv(dev); in video_bridge_pre_probe() local
64 &uc_priv->sleep, GPIOD_IS_OUT); in video_bridge_pre_probe()
79 ret = gpio_request_by_name(dev, "reset-gpios", 0, &uc_priv->reset, in video_bridge_pre_probe()
95 ret = gpio_request_by_name(dev, "hotplug-gpios", 0, &uc_priv->hotplug, in video_bridge_pre_probe()
108 struct video_bridge_priv *uc_priv = dev_get_uclass_priv(dev); in video_bridge_set_active() local
112 ret = dm_gpio_set_value(&uc_priv->sleep, !active); in video_bridge_set_active()
116 ret = dm_gpio_set_value(&uc_priv->reset, true); in video_bridge_set_active()
120 ret = dm_gpio_set_value(&uc_priv->reset, false); in video_bridge_set_active()
/external/u-boot/drivers/video/
Dsimplefb.c15 struct video_priv *uc_priv = dev_get_uclass_priv(dev); in simple_video_probe() local
42 uc_priv->xsize = fdtdec_get_uint(blob, node, "width", 0); in simple_video_probe()
43 uc_priv->ysize = fdtdec_get_uint(blob, node, "height", 0); in simple_video_probe()
44 uc_priv->rot = 0; in simple_video_probe()
47 debug("%s: %dx%d@%s\n", __func__, uc_priv->xsize, uc_priv->ysize, format); in simple_video_probe()
50 uc_priv->bpix = VIDEO_BPP16; in simple_video_probe()
52 uc_priv->bpix = VIDEO_BPP32; in simple_video_probe()
Dsandbox_sdl.c25 struct video_priv *uc_priv = dev_get_uclass_priv(dev); in sandbox_sdl_probe() local
33 uc_priv->xsize = plat->xres; in sandbox_sdl_probe()
34 uc_priv->ysize = plat->yres; in sandbox_sdl_probe()
35 uc_priv->bpix = plat->bpix; in sandbox_sdl_probe()
36 uc_priv->rot = plat->rot; in sandbox_sdl_probe()
37 uc_priv->vidconsole_drv_name = plat->vidconsole_drv_name; in sandbox_sdl_probe()
38 uc_priv->font_size = plat->font_size; in sandbox_sdl_probe()
Dbcm2835.c15 struct video_priv *uc_priv = dev_get_uclass_priv(dev); in bcm2835_video_probe() local
40 uc_priv->xsize = w; in bcm2835_video_probe()
41 uc_priv->ysize = h; in bcm2835_video_probe()
42 uc_priv->bpix = VIDEO_BPP32; in bcm2835_video_probe()
Dcoreboot.c42 struct video_priv *uc_priv = dev_get_uclass_priv(dev); in coreboot_video_probe() local
54 ret = vbe_setup_video_priv(vesa, uc_priv, plat); in coreboot_video_probe()
58 printf("%dx%dx%d\n", uc_priv->xsize, uc_priv->ysize, in coreboot_video_probe()
Defi.c113 struct video_priv *uc_priv = dev_get_uclass_priv(dev); in efi_video_probe() local
122 ret = vbe_setup_video_priv(vesa, uc_priv, plat); in efi_video_probe()
126 printf("Video: %dx%dx%d\n", uc_priv->xsize, uc_priv->ysize, in efi_video_probe()
Datmel_lcdfb.c246 struct video_priv *uc_priv = dev_get_uclass_priv(dev); in atmel_fb_lcd_probe() local
257 uc_priv->xsize = timing->hactive.typ; in atmel_fb_lcd_probe()
258 uc_priv->ysize = timing->vactive.typ; in atmel_fb_lcd_probe()
259 uc_priv->bpix = VIDEO_BPP16; in atmel_fb_lcd_probe()
262 uc_plat->size, uc_priv->xsize, uc_priv->ysize); in atmel_fb_lcd_probe()
/external/u-boot/drivers/timer/
Dtimer-uclass.c38 struct timer_dev_priv *uc_priv = dev->uclass_priv; in timer_get_rate() local
40 return uc_priv->clock_rate; in timer_get_rate()
46 struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); in timer_pre_probe() local
56 uc_priv->clock_rate = ret; in timer_pre_probe()
58 uc_priv->clock_rate = in timer_pre_probe()
68 struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); in timer_post_probe() local
70 if (!uc_priv->clock_rate) in timer_post_probe()
Dsandbox_timer.c41 struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); in sandbox_timer_probe() local
43 if (!uc_priv->clock_rate) in sandbox_timer_probe()
44 uc_priv->clock_rate = SANDBOX_TIMER_RATE; in sandbox_timer_probe()
/external/u-boot/common/
Dlcd_simplefb.c26 struct video_priv *uc_priv; in lcd_dt_simplefb_configure_node() local
33 uc_priv = dev_get_uclass_priv(dev); in lcd_dt_simplefb_configure_node()
35 xsize = uc_priv->xsize; in lcd_dt_simplefb_configure_node()
36 ysize = uc_priv->ysize; in lcd_dt_simplefb_configure_node()
37 bpix = uc_priv->bpix; in lcd_dt_simplefb_configure_node()
/external/u-boot/net/
Deth-uclass.c50 struct eth_uclass_priv *uc_priv; in eth_set_current_to_next() local
52 uc_priv = eth_get_uclass_priv(); in eth_set_current_to_next()
53 if (uc_priv->current) in eth_set_current_to_next()
54 uclass_next_device(&uc_priv->current); in eth_set_current_to_next()
55 if (!uc_priv->current) in eth_set_current_to_next()
56 uclass_first_device(UCLASS_ETH, &uc_priv->current); in eth_set_current_to_next()
67 struct eth_uclass_priv *uc_priv; in eth_get_dev() local
69 uc_priv = eth_get_uclass_priv(); in eth_get_dev()
70 if (!uc_priv->current) in eth_get_dev()
72 &uc_priv->current); in eth_get_dev()
[all …]
/external/u-boot/drivers/pci/
Dpci_rom.c327 struct video_priv *uc_priv, in vbe_setup_video_priv() argument
332 uc_priv->xsize = vesa->x_resolution; in vbe_setup_video_priv()
333 uc_priv->ysize = vesa->y_resolution; in vbe_setup_video_priv()
337 uc_priv->bpix = VIDEO_BPP32; in vbe_setup_video_priv()
340 uc_priv->bpix = VIDEO_BPP16; in vbe_setup_video_priv()
354 struct video_priv *uc_priv = dev_get_uclass_priv(dev); in vbe_setup_video() local
371 ret = vbe_setup_video_priv(&mode_info.vesa, uc_priv, plat); in vbe_setup_video()
377 printf("Video: %dx%dx%d\n", uc_priv->xsize, uc_priv->ysize, in vbe_setup_video()
/external/u-boot/arch/x86/lib/fsp/
Dfsp_graphics.c76 struct video_priv *uc_priv = dev_get_uclass_priv(dev); in fsp_video_probe() local
96 ret = vbe_setup_video_priv(vesa, uc_priv, plat); in fsp_video_probe()
100 printf("%dx%dx%d\n", uc_priv->xsize, uc_priv->ysize, in fsp_video_probe()
/external/u-boot/drivers/input/
Di8042.c262 struct keyboard_priv *uc_priv = dev_get_uclass_priv(dev); in i8042_start() local
264 struct input_config *input = &uc_priv->input; in i8042_start()
311 struct keyboard_priv *uc_priv = dev_get_uclass_priv(dev); in i8042_kbd_probe() local
313 struct stdio_dev *sdev = &uc_priv->sdev; in i8042_kbd_probe()
314 struct input_config *input = &uc_priv->input; in i8042_kbd_probe()
/external/u-boot/drivers/dma/
Ddma-uclass.c25 struct dma_dev_priv *uc_priv; in dma_get_device() local
27 uc_priv = dev_get_uclass_priv(dev); in dma_get_device()
28 if (uc_priv->supported & transfer_type) in dma_get_device()
/external/u-boot/drivers/power/pmic/
Das3722_gpio.c101 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); in as3722_gpio_probe() local
103 uc_priv->gpio_count = NUM_GPIOS; in as3722_gpio_probe()
104 uc_priv->bank_name = "as3722_"; in as3722_gpio_probe()

1234