Searched refs:dev (Results 151 - 175 of 2889) sorted by relevance

1234567891011>>

/u-boot/include/
H A Dtpm_api.h17 * @param dev TPM device
21 u32 tpm_startup(struct udevice *dev, enum tpm_startup_type mode);
26 * @param dev TPM device
29 u32 tpm_self_test_full(struct udevice *dev);
34 * @param dev TPM device
37 u32 tpm_continue_self_test(struct udevice *dev);
44 * @param dev TPM device
50 u32 tpm_nv_define_space(struct udevice *dev, u32 index, u32 perm, u32 size);
57 * @param dev TPM device
63 u32 tpm_nv_read_value(struct udevice *dev, u3
324 tpm_is_v1(struct udevice *dev) argument
329 tpm_is_v2(struct udevice *dev) argument
[all...]
H A Dtpm-common.h96 * @dev: Device to open
99 int (*open)(struct udevice *dev);
107 * @dev: Device to close
110 int (*close)(struct udevice *dev);
115 * @dev: Device to check
120 int (*get_desc)(struct udevice *dev, char *buf, int size);
125 * @dev: Device to check
130 int (*report_state)(struct udevice *dev, char *buf, int size);
135 * @dev: Device to talk to
141 int (*send)(struct udevice *dev, cons
[all...]
/u-boot/drivers/gpio/
H A Dmsm_gpio.c32 #define GPIO_CONFIG_REG(dev, x) \
33 (qcom_pin_offset(((struct msm_gpio_bank *)dev_get_priv(dev))->pin_data->pin_offsets, x))
35 #define GPIO_IN_OUT_REG(dev, x) \
36 (GPIO_CONFIG_REG(dev, x) + 0x4)
38 static void msm_gpio_direction_input(struct udevice *dev, unsigned int gpio) argument
40 struct msm_gpio_bank *priv = dev_get_priv(dev);
47 clrsetbits_le32(priv->base + GPIO_CONFIG_REG(dev, gpio),
53 static int msm_gpio_set_value(struct udevice *dev, unsigned int gpio, int value) argument
55 struct msm_gpio_bank *priv = dev_get_priv(dev);
63 writel(value << GPIO_OUT, priv->base + GPIO_IN_OUT_REG(dev, gpi
68 msm_gpio_direction_output(struct udevice *dev, unsigned int gpio, int value) argument
87 msm_gpio_set_flags(struct udevice *dev, unsigned int gpio, ulong flags) argument
104 msm_gpio_get_value(struct udevice *dev, unsigned int gpio) argument
115 msm_gpio_get_function(struct udevice *dev, unsigned int gpio) argument
135 msm_gpio_probe(struct udevice *dev) argument
145 msm_gpio_of_to_plat(struct udevice *dev) argument
[all...]
H A Dmax7320_gpio.c20 static int max7320_direction_output(struct udevice *dev, argument
23 struct max7320_chip *plat = dev_get_plat(dev);
24 struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
25 struct dm_i2c_chip *chip = dev_get_parent_plat(dev);
34 ret = dm_i2c_write(dev,
45 static int max7320_get_value(struct udevice *dev, unsigned int offset) argument
47 struct max7320_chip *plat = dev_get_plat(dev);
52 static int max7320_set_value(struct udevice *dev, unsigned int offset, argument
55 return max7320_direction_output(dev, offset, value);
58 static int max7320_get_function(struct udevice *dev, unsigne argument
63 max7320_ofdata_plat(struct udevice *dev) argument
83 max7320_gpio_probe(struct udevice *dev) argument
[all...]
/u-boot/cmd/
H A Drkmtd.c23 struct udevice *dev; local
37 ret = rkmtd_create_attach_mtd(label, &dev);
48 struct udevice *dev; local
50 dev = rkmtd_find_by_label(label);
51 if (!dev) {
57 uclass_find_device_by_seq(UCLASS_RKMTD, devnum, &dev)) {
63 return dev;
69 struct udevice *dev; local
77 dev = parse_rkmtd_label(label);
78 if (!dev)
96 show_rkmtd_dev(struct udevice *dev) argument
116 struct udevice *dev; local
144 struct udevice *dev; local
[all...]
/u-boot/drivers/i2c/
H A Dsh_i2c.c70 static void sh_irq_dte(struct sh_i2c *dev) argument
75 if (SH_IC_DTE & readb(&dev->icsr))
81 static int sh_irq_dte_with_tack(struct sh_i2c *dev) argument
86 if (SH_IC_DTE & readb(&dev->icsr))
88 if (SH_IC_TACK & readb(&dev->icsr))
95 static void sh_irq_busy(struct sh_i2c *dev) argument
100 if (!(SH_IC_BUSY & readb(&dev->icsr)))
106 static int sh_i2c_set_addr(struct sh_i2c *dev, u8 chip, u8 addr, int stop) argument
112 clrbits_8(&dev->iccr, SH_I2C_ICCR_ICE);
113 setbits_8(&dev
142 sh_i2c_finish(struct sh_i2c *dev) argument
149 sh_i2c_raw_write(struct sh_i2c *dev, u8 chip, uint addr, u8 val) argument
171 sh_i2c_raw_read(struct sh_i2c *dev, u8 chip, u8 addr) argument
241 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; local
258 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; local
270 sh_i2c_probe(struct i2c_adapter *adap, u8 dev) argument
280 struct sh_i2c *dev = (struct sh_i2c *)i2c_dev[adap->hwadapnr]; local
[all...]
/u-boot/drivers/video/
H A Dseps525.c90 * @dev: Device uclass for video_ops
95 struct udevice *dev; member in struct:seps525_priv
98 static int seps525_spi_write_cmd(struct udevice *dev, u32 reg) argument
100 struct seps525_priv *priv = dev_get_priv(dev);
106 dev_dbg(dev, "Failed to handle dc\n");
110 ret = dm_spi_xfer(dev, 8, &buf8, NULL, SPI_XFER_BEGIN | SPI_XFER_END);
112 dev_dbg(dev, "Failed to write command\n");
117 static int seps525_spi_write_data(struct udevice *dev, u32 val) argument
119 struct seps525_priv *priv = dev_get_priv(dev);
125 dev_dbg(dev, "Faile
136 seps525_spi_write(struct udevice *dev, u32 reg, u32 val) argument
142 seps525_display_init(struct udevice *dev) argument
197 seps525_spi_startup(struct udevice *dev) argument
229 struct udevice *dev = priv->dev; local
259 seps525_probe(struct udevice *dev) argument
300 seps525_bind(struct udevice *dev) argument
[all...]
H A Ddisplay-uclass.c14 int display_read_edid(struct udevice *dev, u8 *buf, int buf_size) argument
16 struct dm_display_ops *ops = display_get_ops(dev);
20 return ops->read_edid(dev, buf, buf_size);
23 int display_enable(struct udevice *dev, int panel_bpp, argument
26 struct dm_display_ops *ops = display_get_ops(dev);
32 ret = ops->enable(dev, panel_bpp, timing);
36 disp_uc_plat = dev_get_uclass_plat(dev);
44 struct udevice *dev = priv; local
45 struct dm_display_ops *ops = display_get_ops(dev);
48 return ops->mode_valid(dev, timin
53 display_read_timing(struct udevice *dev, struct display_timing *timing) argument
74 display_in_use(struct udevice *dev) argument
[all...]
/u-boot/common/
H A Dusb.c59 struct usb_device *dev; local
96 ret = usb_alloc_new_device(ctrl, &dev);
104 ret = usb_new_device(dev);
106 usb_free_device(dev->controller);
175 __weak int usb_lock_async(struct usb_device *dev, int lock) argument
205 int usb_int_msg(struct usb_device *dev, unsigned long pipe, argument
208 return submit_int_msg(dev, pipe, buffer, transfer_len, interval,
219 * and the current status are stored in the dev->act_len and dev->status.
221 int usb_control_msg(struct usb_device *dev, unsigne argument
273 usb_bulk_msg(struct usb_device *dev, unsigned int pipe, void *data, int len, int *actual_length, int timeout) argument
302 usb_maxpacket(struct usb_device *dev, unsigned long pipe) argument
323 usb_set_maxpacket_ep(struct usb_device *dev, int if_idx, int ep_idx) argument
363 usb_set_maxpacket(struct usb_device *dev) argument
379 usb_parse_config(struct usb_device *dev, unsigned char *buffer, int cfgno) argument
534 usb_clear_halt(struct usb_device *dev, int pipe) argument
563 usb_get_descriptor(struct usb_device *dev, unsigned char type, unsigned char index, void *buf, int size) argument
575 usb_get_configuration_len(struct usb_device *dev, int cfgno) argument
598 usb_get_configuration_no(struct usb_device *dev, int cfgno, unsigned char *buffer, int length) argument
617 usb_set_address(struct usb_device *dev) argument
628 usb_set_interface(struct usb_device *dev, int interface, int alternate) argument
666 usb_set_configuration(struct usb_device *dev, int configuration) argument
686 usb_set_protocol(struct usb_device *dev, int ifnum, int protocol) argument
696 usb_set_idle(struct usb_device *dev, int ifnum, int duration, int report_id) argument
706 usb_get_report(struct usb_device *dev, int ifnum, unsigned char type, unsigned char id, void *buf, int size) argument
718 usb_get_class_descriptor(struct usb_device *dev, int ifnum, unsigned char type, unsigned char id, void *buf, int size) argument
729 usb_get_string(struct usb_device *dev, unsigned short langid, unsigned char index, void *buf, int size) argument
765 usb_string_sub(struct usb_device *dev, unsigned int langid, unsigned int index, unsigned char *buf) argument
805 usb_string(struct usb_device *dev, int index, char *buf, size_t size) argument
920 usb_hub_port_reset(struct usb_device *dev, struct usb_device *hub) argument
928 get_descriptor_len(struct usb_device *dev, int len, int expect_len) argument
953 usb_setup_descriptor(struct usb_device *dev, bool do_read) argument
1039 usb_prepare_device(struct usb_device *dev, int addr, bool do_read, struct usb_device *parent) argument
1136 usb_select_config(struct usb_device *dev) argument
1240 usb_setup_device(struct usb_device *dev, bool do_read, struct usb_device *parent) argument
1266 usb_new_device(struct usb_device *dev) argument
1333 struct udevice *dev = parent; local
[all...]
H A Dstdio.c45 static void nulldev_putc(struct stdio_dev *dev, const char c) argument
50 static void nulldev_puts(struct stdio_dev *dev, const char *s) argument
55 static int nulldev_input(struct stdio_dev *dev) argument
63 struct stdio_dev dev; local
65 memset(&dev, '\0', sizeof(dev));
67 strcpy(dev.name, "nulldev");
68 dev.flags = DEV_FLAGS_OUTPUT | DEV_FLAGS_INPUT;
69 dev.putc = nulldev_putc;
70 dev
80 stdio_serial_putc(struct stdio_dev *dev, const char c) argument
85 stdio_serial_puts(struct stdio_dev *dev, const char *s) argument
91 stdio_serial_flush(struct stdio_dev *dev) argument
97 stdio_serial_getc(struct stdio_dev *dev) argument
102 stdio_serial_tstc(struct stdio_dev *dev) argument
114 struct stdio_dev dev; local
162 struct udevice *dev; local
224 stdio_clone(struct stdio_dev *dev) argument
240 stdio_register_dev(struct stdio_dev *dev, struct stdio_dev **devp) argument
254 stdio_register(struct stdio_dev *dev) argument
259 stdio_deregister_dev(struct stdio_dev *dev, int force) argument
304 struct udevice *dev; local
[all...]
/u-boot/drivers/power/pmic/
H A Dbd71837.c27 static int bd71837_reg_count(struct udevice *dev) argument
32 static int bd71837_write(struct udevice *dev, uint reg, const uint8_t *buff, argument
35 if (dm_i2c_write(dev, reg, buff, len)) {
36 pr_err("write error to device: %p register: %#x!", dev, reg);
43 static int bd71837_read(struct udevice *dev, uint reg, uint8_t *buff, int len) argument
45 if (dm_i2c_read(dev, reg, buff, len)) {
46 pr_err("read error from device: %p register: %#x!", dev, reg);
53 static int bd71837_bind(struct udevice *dev) argument
58 regulators_node = dev_read_subnode(dev, "regulators");
61 dev
76 bd718x7_probe(struct udevice *dev) argument
[all...]
H A Dtps80031.c17 static int tps80031_write(struct udevice *dev, uint reg, const uint8_t *buff, argument
22 ret = dm_i2c_write(dev, reg, buff, len);
24 log_debug("write error to device: %p register: %#x!\n", dev, reg);
31 static int tps80031_read(struct udevice *dev, uint reg, uint8_t *buff, int len) argument
35 ret = dm_i2c_read(dev, reg, buff, len);
37 log_debug("read error from device: %p register: %#x!\n", dev, reg);
44 static int tps80031_bind(struct udevice *dev) argument
50 ret = device_bind_driver(dev, TPS80031_RST_DRIVER,
58 regulators_node = dev_read_subnode(dev, "regulators");
60 log_err("%s regulators subnode not found!\n", dev
[all...]
H A Dmax77686.c24 static int max77686_reg_count(struct udevice *dev) argument
29 static int max77686_write(struct udevice *dev, uint reg, const uint8_t *buff, argument
32 if (dm_i2c_write(dev, reg, buff, len)) {
33 pr_err("write error to device: %p register: %#x!\n", dev, reg);
40 static int max77686_read(struct udevice *dev, uint reg, uint8_t *buff, int len) argument
42 if (dm_i2c_read(dev, reg, buff, len)) {
43 pr_err("read error from device: %p register: %#x!\n", dev, reg);
50 static int max77686_bind(struct udevice *dev) argument
55 regulators_node = dev_read_subnode(dev, "voltage-regulators");
58 dev
[all...]
H A Dact8846.c21 static int act8846_reg_count(struct udevice *dev) argument
26 static int act8846_write(struct udevice *dev, uint reg, const uint8_t *buff, argument
29 if (dm_i2c_write(dev, reg, buff, len)) {
30 debug("write error to device: %p register: %#x!\n", dev, reg);
37 static int act8846_read(struct udevice *dev, uint reg, uint8_t *buff, int len) argument
39 if (dm_i2c_read(dev, reg, buff, len)) {
40 debug("read error from device: %p register: %#x!\n", dev, reg);
47 static int act8846_bind(struct udevice *dev) argument
52 regulators_node = dev_read_subnode(dev, "regulators");
55 dev
[all...]
H A Ds2mps11.c23 static int s2mps11_reg_count(struct udevice *dev) argument
28 static int s2mps11_write(struct udevice *dev, uint reg, const uint8_t *buff, argument
33 ret = dm_i2c_write(dev, reg, buff, len);
35 pr_err("write error to device: %p register: %#x!\n", dev, reg);
40 static int s2mps11_read(struct udevice *dev, uint reg, uint8_t *buff, int len) argument
44 ret = dm_i2c_read(dev, reg, buff, len);
46 pr_err("read error from device: %p register: %#x!\n", dev, reg);
51 static int s2mps11_probe(struct udevice *dev) argument
56 regulators_node = dev_read_subnode(dev, "voltage-regulators");
59 dev
[all...]
H A Dtps65090.c22 static int tps65090_reg_count(struct udevice *dev) argument
27 static int tps65090_write(struct udevice *dev, uint reg, const uint8_t *buff, argument
30 if (dm_i2c_write(dev, reg, buff, len)) {
31 pr_err("write error to device: %p register: %#x!\n", dev, reg);
38 static int tps65090_read(struct udevice *dev, uint reg, uint8_t *buff, int len) argument
42 ret = dm_i2c_read(dev, reg, buff, len);
45 dev, reg);
52 static int tps65090_bind(struct udevice *dev) argument
57 regulators_node = dev_read_subnode(dev, "regulators");
60 dev
[all...]
/u-boot/disk/
H A Ddisk-uclass.c23 * @dev: Device (partition udevice)
28 static int disk_blk_part_validate(struct udevice *dev, lbaint_t start, lbaint_t blkcnt) argument
30 struct disk_part *part = dev_get_uclass_plat(dev);
32 if (device_get_uclass_id(dev) != UCLASS_PARTITION)
47 * @dev: Device (partition udevice)
51 static lbaint_t disk_blk_part_offset(struct udevice *dev, lbaint_t start) argument
53 struct disk_part *part = dev_get_uclass_plat(dev);
64 * @dev: Device to read from (partition udevice)
71 unsigned long disk_blk_read(struct udevice *dev, lbaint_t start, argument
74 int ret = disk_blk_part_validate(dev, star
93 disk_blk_write(struct udevice *dev, lbaint_t start, lbaint_t blkcnt, const void *buffer) argument
114 disk_blk_erase(struct udevice *dev, lbaint_t start, lbaint_t blkcnt) argument
[all...]
/u-boot/boot/
H A Dvbe.c20 * @dev: Device to check
23 static bool is_vbe(struct udevice *dev) argument
25 return !strncmp("vbe", dev->driver->name, 3);
52 struct udevice *dev; local
63 for (ret = vbe_find_first_device(&dev); dev;
64 ret = vbe_find_next_device(&dev)) {
65 const struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev);
67 printf("%3d %-3s %-15s %-15s %s\n", dev_seq(dev),
68 std->vbe_bootmeth == dev
77 vbe_select(struct udevice *dev) argument
92 struct udevice *dev; local
[all...]
/u-boot/common/spl/
H A Dspl_blk_fs.c27 struct blk_dev *dev = (struct blk_dev *)load->priv; local
29 ret = fs_set_blk_dev(dev->ifname, dev->dev_part_str, FS_TYPE_ANY);
32 dev->ifname, dev->dev_part_str, ret);
36 ret = fs_read(dev->filename, virt_to_phys(buf), file_offset, size,
40 dev->filename, ret);
54 struct blk_dev dev; local
66 dev.filename = filename;
67 dev
[all...]
/u-boot/include/power/
H A Dacpi_pmc.h83 * @dev: PMC device to use
86 int (*init)(struct udevice *dev);
97 * @dev: PMC device to use
105 int (*prev_sleep_state)(struct udevice *dev, int prev_sleep_state);
114 * @dev: PMC device to use
117 int (*disable_tco)(struct udevice *dev);
129 * @dev: PMC device to use
133 int (*global_reset_set_enable)(struct udevice *dev, bool enable);
136 #define acpi_pmc_get_ops(dev) ((struct acpi_pmc_ops *)(dev)
[all...]
/u-boot/test/dm/
H A Dpch.c17 struct udevice *dev; local
21 ut_assertok(uclass_first_device_err(UCLASS_PCH, &dev));
22 ut_assertok(pch_get_spi_base(dev, &sbase));
25 ut_asserteq(0, sandbox_get_pch_spi_protect(dev));
26 ut_assertok(pch_set_spi_protect(dev, true));
27 ut_asserteq(1, sandbox_get_pch_spi_protect(dev));
29 ut_assertok(pch_get_gpio_base(dev, &gbase));
32 ut_assertok(pch_get_io_base(dev, &iobase));
42 struct udevice *dev; local
45 ut_assertok(uclass_first_device_err(UCLASS_PCH, &dev));
[all...]
H A Dtest-fdt.c32 static int testprobe_drv_probe(struct udevice *dev) argument
34 struct dm_testprobe_pdata *pdata = dev_get_plat(dev);
67 static int testdevres_drv_bind(struct udevice *dev) argument
69 struct dm_testdevres_pdata *pdata = dev_get_plat(dev);
71 pdata->ptr = devm_kmalloc(dev, TEST_DEVRES_SIZE, 0);
76 static int testdevres_drv_of_to_plat(struct udevice *dev) argument
78 struct dm_testdevres_priv *priv = dev_get_priv(dev);
80 priv->ptr_ofdata = devm_kmalloc(dev, TEST_DEVRES_SIZE3, 0);
85 static int testdevres_drv_probe(struct udevice *dev) argument
87 struct dm_testdevres_priv *priv = dev_get_priv(dev);
118 struct udevice *dev; local
154 struct udevice *dev; local
230 struct udevice *dev; local
304 struct udevice *dev; local
328 struct udevice *dev; local
334 "c-test@1", NULL, node, &dev)); local
354 "fred", NULL, ofnode_null(), &dev)); local
358 "fred2", NULL, ofnode_null(), &dev)); local
369 struct udevice *dev; local
402 struct udevice *dev, *parent = NULL; local
463 struct udevice *dev; local
498 struct udevice *dev; local
520 struct udevice *dev, *parent = NULL, *devlist[4]; local
580 struct udevice *dev; local
618 struct udevice *gpio, *dev; local
639 struct udevice *dev; local
659 struct udevice *dev; local
681 struct udevice *dev; local
703 struct udevice *dev; local
723 struct udevice *dev; local
745 struct udevice *dev; local
796 struct udevice *back, *dev, *dev2; local
818 struct udevice *i2c, *dev, *dev2; local
845 struct udevice *dev; local
908 struct udevice *dev; local
937 struct udevice *dev; local
1003 struct udevice *dev; local
1024 struct udevice *bus, *dev; local
1043 struct udevice *bus, *dev; local
1062 struct udevice *bus, *dev; local
1087 struct udevice *dev; local
1167 struct udevice *dev; local
1202 struct udevice *dev; local
[all...]
/u-boot/arch/arm/mach-meson/
H A Dsm.c26 struct udevice *dev; local
29 err = uclass_first_device_err(UCLASS_SM, &dev);
35 return dev;
40 struct udevice *dev; local
44 dev = meson_get_sm_device();
45 if (IS_ERR(dev))
46 return PTR_ERR(dev);
51 err = sm_call_read(dev, buffer, size,
61 struct udevice *dev; local
65 dev
86 struct udevice *dev; local
140 struct udevice *dev; local
[all...]
/u-boot/drivers/timer/
H A Dtimer-uclass.c34 int notrace timer_get_count(struct udevice *dev, u64 *count) argument
36 struct timer_ops *ops = timer_get_ops(dev);
41 *count = ops->get_count(dev);
45 unsigned long notrace timer_get_rate(struct udevice *dev) argument
47 struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev);
52 static int timer_pre_probe(struct udevice *dev) argument
55 struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev);
63 if (!dev_has_ofnode(dev))
66 err = clk_get_by_index(dev, 0, &timer_clk);
75 uc_priv->clock_rate = dev_read_u32_default(dev, "cloc
81 timer_post_probe(struct udevice *dev) argument
92 timer_timebase_fallback(struct udevice *dev) argument
128 struct udevice *dev = NULL; local
[all...]
/u-boot/drivers/clk/
H A Dclk_sandbox_test.c21 int sandbox_clk_test_get(struct udevice *dev) argument
23 struct sandbox_clk_test *sbct = dev_get_priv(dev);
27 ret = clk_get_by_name(dev, sandbox_clk_test_names[i],
36 int sandbox_clk_test_devm_get(struct udevice *dev) argument
38 struct sandbox_clk_test *sbct = dev_get_priv(dev);
41 clk = devm_clk_get(dev, "no-an-existing-clock");
43 dev_err(dev, "devm_clk_get() should have failed\n");
47 clk = devm_clk_get(dev, "uart2");
52 clk = devm_clk_get_optional(dev, "uart1");
58 clk = devm_clk_get_optional(dev, "not_an_existing_cloc
67 sandbox_clk_test_get_bulk(struct udevice *dev) argument
74 sandbox_clk_test_get_rate(struct udevice *dev, int id) argument
84 sandbox_clk_test_round_rate(struct udevice *dev, int id, ulong rate) argument
94 sandbox_clk_test_set_rate(struct udevice *dev, int id, ulong rate) argument
104 sandbox_clk_test_enable(struct udevice *dev, int id) argument
114 sandbox_clk_test_enable_bulk(struct udevice *dev) argument
121 sandbox_clk_test_disable(struct udevice *dev, int id) argument
131 sandbox_clk_test_disable_bulk(struct udevice *dev) argument
138 sandbox_clk_test_release_bulk(struct udevice *dev) argument
145 sandbox_clk_test_valid(struct udevice *dev) argument
159 sandbox_clk_test_probe(struct udevice *dev) argument
[all...]

Completed in 274 milliseconds

1234567891011>>