Home
last modified time | relevance | path

Searched refs:udev (Results 1 – 25 of 73) sorted by relevance

123

/u-boot/drivers/usb/eth/
A Dlan75xx.c58 return lan7x_pmt_phy_reset(udev, dev); in lan75xx_phy_gig_workaround()
74 return lan7x_write_reg(udev, FLOW, flow); in lan75xx_update_flowcontrol()
98 lan7x_write_reg(udev, MAC_RX, in lan75xx_start_rx_path()
113 ret = lan7x_basic_reset(udev, dev); in lan75xx_basic_reset()
118 ret = lan7x_read_reg(udev, ID_REV, &val); in lan75xx_basic_reset()
126 ret = lan7x_read_reg(udev, HW_CFG, &val); in lan75xx_basic_reset()
130 return lan7x_write_reg(udev, HW_CFG, val); in lan75xx_basic_reset()
202 ret = lan7x_write_reg(udev, FLOW, 0); in lan75xx_eth_start()
207 ret = lan75xx_set_receive_filter(udev); in lan75xx_eth_start()
236 lan75xx_start_tx_path(udev); in lan75xx_eth_start()
[all …]
A Dlan78xx.c165 struct usb_device *udev) in lan78xx_read_otp_mac() argument
171 ret = lan78xx_read_otp(udev, in lan78xx_read_otp_mac()
199 return lan7x_write_reg(udev, FLOW, flow); in lan78xx_update_flowcontrol()
203 struct usb_device *udev, in lan78xx_read_mac() argument
271 lan7x_write_reg(udev, MAC_RX, in lan78xx_start_rx_path()
286 ret = lan7x_basic_reset(udev, dev); in lan78xx_basic_reset()
291 ret = lan7x_read_reg(udev, ID_REV, &val); in lan78xx_basic_reset()
375 ret = lan7x_write_reg(udev, FLOW, 0); in lan78xx_eth_start()
380 ret = lan78xx_set_receive_filter(udev); in lan78xx_eth_start()
404 lan78xx_start_tx_path(udev); in lan78xx_eth_start()
[all …]
A Dlan7x.c29 len = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in lan7x_write_reg()
47 len = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), in lan7x_read_reg()
74 if (lan7x_phy_wait_not_busy(udev)) { in lan7x_mdio_read()
82 lan7x_write_reg(udev, MII_ACC, addr); in lan7x_mdio_read()
84 if (lan7x_phy_wait_not_busy(udev)) { in lan7x_mdio_read()
99 if (lan7x_phy_wait_not_busy(udev)) { in lan7x_mdio_write()
111 if (lan7x_phy_wait_not_busy(udev)) in lan7x_mdio_write()
169 ret = lan7x_wait_eeprom(udev); in lan7x_read_eeprom()
198 priv->mdiobus->priv = (void *)udev; in lan7x_phylib_register()
315 ret = lan7x_read_eeprom(udev, in lan7x_read_eeprom_mac()
[all …]
A Dsmsc95xx.c172 len = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in smsc95xx_write_reg()
190 len = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0), in smsc95xx_read_reg()
226 if (smsc95xx_phy_wait_not_busy(udev)) { in smsc95xx_mdio_read()
235 if (smsc95xx_phy_wait_not_busy(udev)) { in smsc95xx_mdio_read()
263 if (smsc95xx_phy_wait_not_busy(udev)) in smsc95xx_mdio_write()
316 ret = smsc95xx_wait_eeprom(udev); in smsc95xx_read_eeprom()
361 mii_nway_restart(udev, dev); in smsc95xx_phy_initialize()
368 struct usb_device *udev) in smsc95xx_init_mac_address() argument
633 ret = smsc95xx_set_csums(udev, 0, 0); in smsc95xx_init_common()
654 smsc95xx_start_tx_path(udev, priv); in smsc95xx_init_common()
[all …]
A Dmcs7830.c113 len = usb_control_msg(udev, in mcs7830_read_reg()
114 usb_rcvctrlpipe(udev, 0), in mcs7830_read_reg()
144 len = usb_control_msg(udev, in mcs7830_write_reg()
145 usb_sndctrlpipe(udev, 0), in mcs7830_write_reg()
376 rev = mcs7830_get_rev(udev); in mcs7830_apply_fixup()
421 rc = mcs7830_set_autoneg(udev); in mcs7830_basic_reset()
427 rc = mcs7830_write_mchash(udev, priv); in mcs7830_basic_reset()
439 rc = mcs7830_apply_fixup(udev); in mcs7830_basic_reset()
521 rc = usb_bulk_msg(udev, in mcs7830_send_common()
855 return mcs7830_init_common(udev); in mcs7830_eth_start()
[all …]
A Dlan7x.h125 int lan7x_write_reg(struct usb_device *udev, u32 index, u32 data);
127 int lan7x_read_reg(struct usb_device *udev, u32 index, u32 *data);
133 static inline int lan7x_wait_for_bit(struct usb_device *udev, in lan7x_wait_for_bit() argument
143 lan7x_read_reg(udev, reg, &val); in lan7x_wait_for_bit()
169 int lan7x_mdio_read(struct usb_device *udev, int phy_id, int idx);
185 val = lan7x_mdio_read(udev, phy_id, reg); in lan7x_mdio_wait_for_bit()
211 int lan7x_phylib_register(struct udevice *udev);
215 int lan7x_eth_phylib_config_start(struct udevice *udev);
217 int lan7x_pmt_phy_reset(struct usb_device *udev,
220 int lan7x_update_flowcontrol(struct usb_device *udev,
[all …]
/u-boot/drivers/virtio/
A Dvirtio_sandbox.c42 struct virtio_sandbox_priv *priv = dev_get_priv(udev); in virtio_sandbox_get_status()
51 struct virtio_sandbox_priv *priv = dev_get_priv(udev); in virtio_sandbox_set_status()
61 static int virtio_sandbox_reset(struct udevice *udev) in virtio_sandbox_reset() argument
63 struct virtio_sandbox_priv *priv = dev_get_priv(udev); in virtio_sandbox_reset()
73 struct virtio_sandbox_priv *priv = dev_get_priv(udev); in virtio_sandbox_get_features()
82 struct virtio_sandbox_priv *priv = dev_get_priv(udev); in virtio_sandbox_set_features()
93 struct virtio_sandbox_priv *priv = dev_get_priv(udev); in virtio_sandbox_setup_vq()
99 vq = vring_create_virtqueue(index, 4, 4096, udev); in virtio_sandbox_setup_vq()
142 vqs[i] = virtio_sandbox_setup_vq(udev, i); in virtio_sandbox_find_vqs()
144 virtio_sandbox_del_vqs(udev); in virtio_sandbox_find_vqs()
[all …]
A Dvirtio_pci_legacy.c104 struct virtio_pci_priv *priv = dev_get_priv(udev); in virtio_pci_get_config()
118 struct virtio_pci_priv *priv = dev_get_priv(udev); in virtio_pci_set_config()
131 struct virtio_pci_priv *priv = dev_get_priv(udev); in virtio_pci_get_status()
140 struct virtio_pci_priv *priv = dev_get_priv(udev); in virtio_pci_set_status()
150 static int virtio_pci_reset(struct udevice *udev) in virtio_pci_reset() argument
258 vqs[i] = virtio_pci_setup_vq(udev, i); in virtio_pci_find_vqs()
260 virtio_pci_del_vqs(udev); in virtio_pci_find_vqs()
281 static int virtio_pci_bind(struct udevice *udev) in virtio_pci_bind() argument
288 device_set_name(udev, name); in virtio_pci_bind()
293 static int virtio_pci_probe(struct udevice *udev) in virtio_pci_probe() argument
[all …]
A Dvirtio_pci_modern.c112 struct virtio_pci_priv *priv = dev_get_priv(udev); in virtio_pci_get_config()
211 static int virtio_pci_reset(struct udevice *udev) in virtio_pci_reset() argument
346 vqs[i] = virtio_pci_setup_vq(udev, i); in virtio_pci_find_vqs()
348 virtio_pci_del_vqs(udev); in virtio_pci_find_vqs()
395 dm_pci_read_config8(udev, offset, &type); in virtio_pci_find_capability()
397 dm_pci_read_config8(udev, offset, &bar); in virtio_pci_find_capability()
429 dm_pci_read_config8(udev, offset, &bar); in virtio_pci_map_capability()
431 dm_pci_read_config32(udev, offset, &offset); in virtio_pci_map_capability()
439 base = dm_pci_read_bar32(udev, bar); in virtio_pci_map_capability()
445 static int virtio_pci_bind(struct udevice *udev) in virtio_pci_bind() argument
[all …]
A Dvirtio_mmio.c25 struct virtio_mmio_priv *priv = dev_get_priv(udev); in virtio_mmio_get_config()
70 struct virtio_mmio_priv *priv = dev_get_priv(udev); in virtio_mmio_set_config()
114 struct virtio_mmio_priv *priv = dev_get_priv(udev); in virtio_mmio_generation()
126 struct virtio_mmio_priv *priv = dev_get_priv(udev); in virtio_mmio_get_status()
135 struct virtio_mmio_priv *priv = dev_get_priv(udev); in virtio_mmio_set_status()
145 static int virtio_mmio_reset(struct udevice *udev) in virtio_mmio_reset() argument
147 struct virtio_mmio_priv *priv = dev_get_priv(udev); in virtio_mmio_reset()
314 vqs[i] = virtio_mmio_setup_vq(udev, i); in virtio_mmio_find_vqs()
316 virtio_mmio_del_vqs(udev); in virtio_mmio_find_vqs()
348 static int virtio_mmio_probe(struct udevice *udev) in virtio_mmio_probe() argument
[all …]
/u-boot/drivers/usb/host/
A Dusb-uclass.c364 return udev; in find_child_devnum()
370 if (udev) in find_child_devnum()
371 return udev; in find_child_devnum()
654 memset(udev, '\0', sizeof(*udev)); in usb_scan_device()
686 udev->dev = parent; in usb_scan_device()
713 plat->udev = udev; in usb_scan_device()
757 if (usb_get_port_status(udev, udev->portnr, &status) in usb_detect_change()
815 if (plat->udev) { in usb_child_pre_probe()
821 *udev = *(plat->udev); in usb_child_pre_probe()
824 udev->dev = dev; in usb_child_pre_probe()
[all …]
A Dusb-sandbox.c40 struct usb_device *udev, in sandbox_submit_control() argument
51 ret = usb_emul_find(bus, pipe, udev->portnr, &emul); in sandbox_submit_control()
66 udev->status = ret; in sandbox_submit_control()
67 udev->act_len = 0; in sandbox_submit_control()
69 udev->status = 0; in sandbox_submit_control()
70 udev->act_len = ret; in sandbox_submit_control()
91 udev->status = ret; in sandbox_submit_bulk()
92 udev->act_len = 0; in sandbox_submit_bulk()
94 udev->status = 0; in sandbox_submit_bulk()
95 udev->act_len = ret; in sandbox_submit_bulk()
[all …]
A Dxhci.c128 for (dev = udev->dev; in xhci_get_ctrl()
134 return udev->controller; in xhci_get_ctrl()
369 switch (udev->speed) { in xhci_get_endpoint_interval()
498 != udev->slot_id); in xhci_configure_endpoints()
539 int slot_id = udev->slot_id; in xhci_set_configuration()
711 udev->status = 0; in xhci_address_device()
1130 udev->act_len = len; in xhci_submit_root()
1131 udev->status = 0; in xhci_submit_root()
1136 udev->act_len = 0; in xhci_submit_root()
1399 dev->name, udev, udev->dev->name, udev->portnr); in xhci_submit_control_msg()
[all …]
A Dxhci-ring.c535 udev->status = 0; in record_transfer_result()
538 udev->status = USB_ST_STALLED; in record_transfer_result()
542 udev->status = USB_ST_BUF_ERR; in record_transfer_result()
572 int slot_id = udev->slot_id; in xhci_bulk_tx()
590 udev, pipe, buffer, length); in xhci_bulk_tx()
723 abort_td(udev, ep_index); in xhci_bulk_tx()
725 udev->act_len = 0; in xhci_bulk_tx()
770 int slot_id = udev->slot_id; in xhci_ctrl_tx()
954 abort_td(udev, ep_index); in xhci_ctrl_tx()
955 udev->status = USB_ST_NAK_REC; in xhci_ctrl_tx()
[all …]
/u-boot/cmd/
A Dusb.c274 struct usb_device *udev; in usb_find_device() local
292 return udev; in usb_find_device()
302 return udev; in usb_find_device()
311 if (udev == NULL) in usb_find_device()
314 return udev; in usb_find_device()
470 func(udev);
486 if (udev == NULL)
620 usb_show_info(udev);
680 if (udev == NULL)
696 if (udev == NULL) {
[all …]
A Dlsblk.c17 struct udevice *udev; in do_lsblk() local
34 uclass_foreach_dev(udev, uc) { in do_lsblk()
35 if (udev->driver != entry) in do_lsblk()
37 desc = dev_get_uclass_plat(udev); in do_lsblk()
A Dnvme.c29 struct udevice *udev; in do_nvme() local
32 &udev); in do_nvme()
36 nvme_print_info(udev); in do_nvme()
/u-boot/drivers/usb/emul/
A Dusb-emul-uclass.c118 struct usb_dev_plat *udev = dev_get_parent_plat(dev); in usb_emul_find_devnum() local
150 } else if (udev->devnum == devnum) { in usb_emul_find_devnum()
152 dev->name, udev->devnum); in usb_emul_find_devnum()
172 struct usb_dev_plat *udev = dev_get_parent_plat(dev); in usb_emul_find_for_dev() local
174 return usb_emul_find_devnum(udev->devnum, 0, emulp); in usb_emul_find_for_dev()
190 if (pipe == usb_rcvctrlpipe(udev, 0)) { in usb_emul_control()
200 return ops->control(emul, udev, pipe, buffer, length, in usb_emul_control()
203 } else if (pipe == usb_snddefctrl(udev)) { in usb_emul_control()
214 } else if (pipe == usb_sndctrlpipe(udev, 0)) { in usb_emul_control()
223 return ops->control(emul, udev, pipe, buffer, length, in usb_emul_control()
[all …]
A Dsandbox_hub.c203 struct usb_device *udev, in sandbox_hub_submit_control_msg() argument
211 if (pipe == usb_rcvctrlpipe(udev, 0)) { in sandbox_hub_submit_control_msg()
220 udev->status = 0; in sandbox_hub_submit_control_msg()
221 udev->act_len = sizeof(*hubsts); in sandbox_hub_submit_control_msg()
239 udev->status = 0; in sandbox_hub_submit_control_msg()
240 udev->act_len = sizeof(*portsts); in sandbox_hub_submit_control_msg()
249 } else if (pipe == usb_sndctrlpipe(udev, 0)) { in sandbox_hub_submit_control_msg()
280 udev->status = 0; in sandbox_hub_submit_control_msg()
/u-boot/drivers/usb/musb-new/
A Dmusb_uboot.c336 struct usb_device *udev, unsigned long pipe, int queuesize, in musb_create_int_queue() argument
348 return _musb_poll_int_queue(host, udev, queue); in musb_poll_int_queue()
355 return _musb_destroy_int_queue(host, udev, queue); in musb_destroy_int_queue()
361 return _musb_reset_root_port(host, udev); in musb_reset_root_port()
458 struct usb_device *usb_dev_get_parent(struct usb_device *udev) in usb_dev_get_parent() argument
460 struct udevice *parent = udev->dev->parent; in usb_dev_get_parent()
470 if (device_get_uclass_id(udev->dev) == UCLASS_USB) in usb_dev_get_parent()
477 if (dev_get_parent_priv(udev->dev) != udev) in usb_dev_get_parent()
478 return udev; in usb_dev_get_parent()
487 struct usb_device *usb_dev_get_parent(struct usb_device *udev) in usb_dev_get_parent() argument
[all …]
/u-boot/drivers/misc/
A Dcros_ec_i2c.c52 static int cros_ec_i2c_packet(struct udevice *udev, int out_bytes, int in_bytes) in cros_ec_i2c_packet() argument
54 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_i2c_packet()
55 struct dm_i2c_chip *chip = dev_get_parent_plat(udev); in cros_ec_i2c_packet()
80 ret = dm_i2c_xfer(udev, &i2c_msg[0], 2); in cros_ec_i2c_packet()
110 static int cros_ec_i2c_command(struct udevice *udev, uint8_t cmd, in cros_ec_i2c_command() argument
114 struct cros_ec_dev *dev = dev_get_uclass_priv(udev); in cros_ec_i2c_command()
115 struct dm_i2c_chip *chip = dev_get_parent_plat(udev); in cros_ec_i2c_command()
186 ret = dm_i2c_xfer(udev, &i2c_msg[0], 2); in cros_ec_i2c_command()
189 udev->name); in cros_ec_i2c_command()
/u-boot/drivers/xen/
A Dpvblock.c677 desc->bdev = udev; in pvblock_blk_bind()
740 struct udevice *udev; in on_new_vbd() local
782 ret = clb(udev, devid); in xenbus_enumerate_vbd()
799 struct udevice *udev; in print_pvblock_devices() local
804 for (blk_first_device(IF_TYPE_PVBLOCK, &udev); udev; in print_pvblock_devices()
805 blk_next_device(&udev), first = false) { in print_pvblock_devices()
818 struct udevice *udev; in pvblock_init() local
836 uclass_foreach_dev_probe(UCLASS_PVBLOCK, udev); in pvblock_init()
841 static int pvblock_probe(struct udevice *udev) in pvblock_probe() argument
846 if (xenbus_enumerate_vbd(udev, on_new_vbd) < 0) in pvblock_probe()
[all …]
/u-boot/drivers/nvme/
A Dnvme-uclass.c14 static int nvme_uclass_post_probe(struct udevice *udev) in nvme_uclass_post_probe() argument
19 struct nvme_dev *ndev = dev_get_priv(udev); in nvme_uclass_post_probe()
30 ret = blk_create_devicef(udev, "nvme-blk", name, IF_TYPE_NVME, in nvme_uclass_post_probe()
A Dnvme.c667 struct nvme_ns *ns = dev_get_priv(udev); in nvme_get_namespace_id()
700 struct nvme_ns *ns = dev_get_priv(udev); in nvme_blk_probe()
712 ns->ns_id = trailing_strtol(udev->name) + 1; in nvme_blk_probe()
729 desc->bdev = udev; in nvme_blk_probe()
730 pplat = dev_get_parent_plat(udev->parent); in nvme_blk_probe()
742 struct nvme_ns *ns = dev_get_priv(udev); in nvme_blk_rw()
824 static int nvme_bind(struct udevice *udev) in nvme_bind() argument
831 return device_set_name(udev, name); in nvme_bind()
834 static int nvme_probe(struct udevice *udev) in nvme_probe() argument
837 struct nvme_dev *ndev = dev_get_priv(udev); in nvme_probe()
[all …]
/u-boot/include/
A Dusb.h631 struct usb_device *udev; member
699 int (*control)(struct udevice *bus, struct usb_device *udev,
707 int (*bulk)(struct udevice *bus, struct usb_device *udev,
716 int (*interrupt)(struct udevice *bus, struct usb_device *udev,
734 struct usb_device *udev, unsigned long pipe,
773 int (*alloc_device)(struct udevice *bus, struct usb_device *udev);
804 int (*lock_async)(struct udevice *udev, int lock);
961 void usb_find_usb2_hub_address_port(struct usb_device *udev,
1034 int usb_emul_control(struct udevice *emul, struct usb_device *udev,
1046 int usb_emul_bulk(struct udevice *emul, struct usb_device *udev,
[all …]

Completed in 263 milliseconds

123