/third_party/uboot/u-boot-2020.01/drivers/net/phy/ |
D | miiphybb.c | 32 static int bb_mii_init_wrap(struct bb_miiphy_bus *bus) in bb_mii_init_wrap() argument 40 static int bb_mdio_active_wrap(struct bb_miiphy_bus *bus) in bb_mdio_active_wrap() argument 49 static int bb_mdio_tristate_wrap(struct bb_miiphy_bus *bus) in bb_mdio_tristate_wrap() argument 58 static int bb_set_mdio_wrap(struct bb_miiphy_bus *bus, int v) in bb_set_mdio_wrap() argument 67 static int bb_get_mdio_wrap(struct bb_miiphy_bus *bus, int *v) in bb_get_mdio_wrap() argument 76 static int bb_set_mdc_wrap(struct bb_miiphy_bus *bus, int v) in bb_set_mdc_wrap() argument 85 static int bb_delay_wrap(struct bb_miiphy_bus *bus) in bb_delay_wrap() argument 152 static void miiphy_pre(struct bb_miiphy_bus *bus, char read, in miiphy_pre() argument 165 bus->mdio_active(bus); in miiphy_pre() 166 bus->set_mdio(bus, 1); in miiphy_pre() [all …]
|
D | mscc.c | 274 static void vsc8584_csr_write(struct mii_dev *bus, int phy0, u16 addr, u32 val) in vsc8584_csr_write() argument 276 bus->write(bus, phy0, MDIO_DEVAD_NONE, MSCC_PHY_REG_TR_DATA_18, in vsc8584_csr_write() 278 bus->write(bus, phy0, MDIO_DEVAD_NONE, MSCC_PHY_REG_TR_DATA_17, in vsc8584_csr_write() 280 bus->write(bus, phy0, MDIO_DEVAD_NONE, MSCC_PHY_REG_TR_ADDR_16, in vsc8584_csr_write() 284 static int vsc8584_cmd(struct mii_dev *bus, int phy, u16 val) in vsc8584_cmd() argument 289 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_EXT_PAGE_ACCESS, in vsc8584_cmd() 292 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_PHY_PROC_CMD, in vsc8584_cmd() 297 reg_val = bus->read(bus, phy, MDIO_DEVAD_NONE, in vsc8584_cmd() 303 bus->write(bus, phy, MDIO_DEVAD_NONE, MSCC_EXT_PAGE_ACCESS, in vsc8584_cmd() 314 static int vsc8584_micro_deassert_reset(struct mii_dev *bus, int phy, in vsc8584_micro_deassert_reset() argument [all …]
|
D | b53.c | 114 struct mii_dev *bus; member 118 static int b53_mdio_op(struct mii_dev *bus, u8 page, u8 reg, u16 op) in b53_mdio_op() argument 126 ret = bus->write(bus, BRCM_PSEUDO_PHY_ADDR, MDIO_DEVAD_NONE, in b53_mdio_op() 133 ret = bus->write(bus, BRCM_PSEUDO_PHY_ADDR, MDIO_DEVAD_NONE, in b53_mdio_op() 140 v = bus->read(bus, BRCM_PSEUDO_PHY_ADDR, MDIO_DEVAD_NONE, in b53_mdio_op() 154 static int b53_mdio_read8(struct mii_dev *bus, u8 page, u8 reg, u8 *val) in b53_mdio_read8() argument 158 ret = b53_mdio_op(bus, page, reg, REG_MII_ADDR_READ); in b53_mdio_read8() 162 *val = bus->read(bus, BRCM_PSEUDO_PHY_ADDR, MDIO_DEVAD_NONE, in b53_mdio_read8() 168 static int b53_mdio_read16(struct mii_dev *bus, u8 page, u8 reg, u16 *val) in b53_mdio_read16() argument 172 ret = b53_mdio_op(bus, page, reg, REG_MII_ADDR_READ); in b53_mdio_read16() [all …]
|
/third_party/FreeBSD/sys/dev/usb/controller/ |
D | usb_controller.c | 98 usb_root_mount_rel(struct usb_bus *bus) in usb_root_mount_rel() argument 100 if (bus->bus_roothold != NULL) { in usb_root_mount_rel() 101 DPRINTF("Releasing root mount hold %p\n", bus->bus_roothold); in usb_root_mount_rel() 102 root_mount_rel(bus->bus_roothold); in usb_root_mount_rel() 103 bus->bus_roothold = NULL; in usb_root_mount_rel() 118 struct usb_bus *bus = (struct usb_bus *)device_get_ivars(dev); in usb_attach() local 124 if (bus == NULL) { in usb_attach() 132 bus->bus_roothold = root_mount_hold(device_get_nameunit(dev)); in usb_attach() 144 usb_attach_sub(dev, bus); in usb_attach() 154 struct usb_bus *bus = (struct usb_bus *)device_get_softc(dev); in usb_detach() local [all …]
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstbus.c | 138 GstBus *bus = GST_BUS_CAST (object); in gst_bus_set_property() local 142 bus->priv->enable_async = g_value_get_boolean (value); in gst_bus_set_property() 153 GstBus *bus = GST_BUS_CAST (object); in gst_bus_constructed() local 155 if (bus->priv->enable_async) { in gst_bus_constructed() 156 bus->priv->poll = gst_poll_new_timer (); in gst_bus_constructed() 157 gst_poll_get_read_gpollfd (bus->priv->poll, &bus->priv->pollfd); in gst_bus_constructed() 223 gst_bus_init (GstBus * bus) in gst_bus_init() argument 225 bus->priv = gst_bus_get_instance_private (bus); in gst_bus_init() 226 bus->priv->enable_async = DEFAULT_ENABLE_ASYNC; in gst_bus_init() 227 g_mutex_init (&bus->priv->queue_lock); in gst_bus_init() [all …]
|
D | gstbus.h | 36 #define GST_BUS(bus) (G_TYPE_CHECK_INSTANCE_CAST ((bus), GST_TYPE_BUS, GstBus)) argument 37 #define GST_IS_BUS(bus) (G_TYPE_CHECK_INSTANCE_TYPE ((bus), GST_TYPE_BUS)) argument 40 #define GST_BUS_GET_CLASS(bus) (G_TYPE_INSTANCE_GET_CLASS ((bus), GST_TYPE_BUS, GstBusClass)) argument 41 #define GST_BUS_CAST(bus) ((GstBus*)(bus)) argument 86 typedef GstBusSyncReply (*GstBusSyncHandler) (GstBus * bus, GstMessage * message, gpointer user_… 106 typedef gboolean (*GstBusFunc) (GstBus * bus, GstMessage * message, gpointer user_… 128 void (*message) (GstBus *bus, GstMessage *message); 129 void (*sync_message) (GstBus *bus, GstMessage *message); 142 gboolean gst_bus_post (GstBus * bus, GstMessage * message); 145 gboolean gst_bus_have_pending (GstBus * bus); [all …]
|
/third_party/uboot/u-boot-2020.01/test/dm/ |
D | bus.c | 122 struct udevice *bus; in dm_test_bus_children() local 129 ut_assertok(uclass_get_device(UCLASS_TEST_BUS, 0, &bus)); in dm_test_bus_children() 145 struct udevice *bus, *dev; in dm_test_bus_children_funcs() local 148 ut_assertok(uclass_get_device(UCLASS_TEST_BUS, 0, &bus)); in dm_test_bus_children_funcs() 151 ut_assertok(device_get_child(bus, 0, &dev)); in dm_test_bus_children_funcs() 152 ut_asserteq(-ENODEV, device_get_child(bus, 4, &dev)); in dm_test_bus_children_funcs() 153 ut_assertok(device_get_child_by_seq(bus, 5, &dev)); in dm_test_bus_children_funcs() 158 ut_asserteq(-ENODEV, device_find_child_by_seq(bus, -1, true, &dev)); in dm_test_bus_children_funcs() 159 ut_assertok(device_find_child_by_seq(bus, 0, true, &dev)); in dm_test_bus_children_funcs() 161 ut_asserteq(-ENODEV, device_find_child_by_seq(bus, 0, false, &dev)); in dm_test_bus_children_funcs() [all …]
|
D | pci_ep.c | 18 struct udevice *bus; in dm_test_pci_ep_base() local 38 ut_assertok(uclass_get_device(UCLASS_PCI_EP, 0, &bus)); in dm_test_pci_ep_base() 39 ut_assertnonnull(bus); in dm_test_pci_ep_base() 41 ut_assertok(pci_ep_write_header(bus, 0, &ep_header)); in dm_test_pci_ep_base() 42 ut_assertok(pci_ep_read_header(bus, 0, &tmp_header)); in dm_test_pci_ep_base() 45 ut_assertok(pci_ep_set_msi(bus, 0, 4)); in dm_test_pci_ep_base() 46 ut_asserteq(pci_ep_get_msi(bus, 0), 4); in dm_test_pci_ep_base() 48 ut_assertok(pci_ep_set_msix(bus, 0, 360)); in dm_test_pci_ep_base() 49 ut_asserteq(pci_ep_get_msix(bus, 0), 360); in dm_test_pci_ep_base() 51 ut_assertok(pci_ep_set_bar(bus, 0, &bar)); in dm_test_pci_ep_base() [all …]
|
D | i2c.c | 26 struct udevice *bus, *dev; in dm_test_i2c_find() local 30 false, &bus)); in dm_test_i2c_find() 36 ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus)); in dm_test_i2c_find() 37 ut_assertok(dm_i2c_probe(bus, chip, 0, &dev)); in dm_test_i2c_find() 38 ut_asserteq(-ENOENT, dm_i2c_probe(bus, no_chip, 0, &dev)); in dm_test_i2c_find() 39 ut_asserteq(-ENODEV, uclass_get_device_by_seq(UCLASS_I2C, 1, &bus)); in dm_test_i2c_find() 47 struct udevice *bus, *dev; in dm_test_i2c_read_write() local 50 ut_assertok(uclass_get_device_by_seq(UCLASS_I2C, busnum, &bus)); in dm_test_i2c_read_write() 51 ut_assertok(i2c_get_chip(bus, chip, 1, &dev)); in dm_test_i2c_read_write() 64 struct udevice *bus, *dev; in dm_test_i2c_speed() local [all …]
|
D | spi.c | 23 struct udevice *bus, *dev; in dm_test_spi_find() local 29 false, &bus)); in dm_test_spi_find() 35 ut_asserteq(0, uclass_get_device_by_seq(UCLASS_SPI, busnum, &bus)); in dm_test_spi_find() 36 ut_assertok(spi_cs_info(bus, cs, &info)); in dm_test_spi_find() 45 ut_assertok(spi_cs_info(bus, cs, &info)); in dm_test_spi_find() 49 ut_asserteq(-ENODEV, spi_find_bus_and_cs(busnum, cs, &bus, &dev)); in dm_test_spi_find() 51 NULL, 0, &bus, &slave)); in dm_test_spi_find() 59 ut_asserteq(-ENODEV, spi_find_bus_and_cs(busnum, cs, &bus, &dev)); in dm_test_spi_find() 61 "spi_flash_std", "name", &bus, in dm_test_spi_find() 64 ut_assertok(spi_cs_info(bus, cs, &info)); in dm_test_spi_find() [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/net/pfe_eth/ |
D | pfe_mdio.c | 16 static int pfe_write_addr(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_write_addr() argument 19 void *reg_base = bus->priv; in pfe_write_addr() 50 static int pfe_phy_read(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_read() argument 53 void *reg_base = bus->priv; in pfe_phy_read() 64 pfe_write_addr(bus, phy_addr, dev_addr, reg_addr); in pfe_phy_read() 105 static int pfe_phy_write(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_write() argument 108 void *reg_base = bus->priv; in pfe_phy_write() 118 pfe_write_addr(bus, phy_addr, dev_addr, reg_addr); in pfe_phy_write() 157 struct mii_dev bus; in pfe_configure_serdes() local 166 bus.priv = gem_info[priv->gemac_port].gemac_base; in pfe_configure_serdes() [all …]
|
/third_party/uboot/u-boot-2020.01/common/ |
D | miiphyutil.c | 69 struct mii_dev *bus; in mdio_alloc() local 71 bus = malloc(sizeof(*bus)); in mdio_alloc() 72 if (!bus) in mdio_alloc() 73 return bus; in mdio_alloc() 75 memset(bus, 0, sizeof(*bus)); in mdio_alloc() 78 INIT_LIST_HEAD(&bus->link); in mdio_alloc() 80 return bus; in mdio_alloc() 83 void mdio_free(struct mii_dev *bus) in mdio_free() argument 85 free(bus); in mdio_free() 88 int mdio_register(struct mii_dev *bus) in mdio_register() argument [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/i2c/ |
D | imx_lpi2c.c | 21 static int bus_i2c_init(struct udevice *bus, int speed); 96 static int bus_i2c_send(struct udevice *bus, u8 *txbuf, int len) in bus_i2c_send() argument 98 struct imx_lpi2c_reg *regs = (struct imx_lpi2c_reg *)devfdt_get_addr(bus); in bus_i2c_send() 117 static int bus_i2c_receive(struct udevice *bus, u8 *rxbuf, int len) in bus_i2c_receive() argument 119 struct imx_lpi2c_reg *regs = (struct imx_lpi2c_reg *)devfdt_get_addr(bus); in bus_i2c_receive() 160 static int bus_i2c_start(struct udevice *bus, u8 addr, u8 dir) in bus_i2c_start() argument 164 (struct imx_lpi2c_reg *)devfdt_get_addr(bus); in bus_i2c_start() 172 bus_i2c_init(bus, 100000); in bus_i2c_start() 197 static int bus_i2c_stop(struct udevice *bus) in bus_i2c_stop() argument 201 (struct imx_lpi2c_reg *)devfdt_get_addr(bus); in bus_i2c_stop() [all …]
|
D | at91_i2c.c | 24 static int at91_wait_for_xfer(struct at91_i2c_bus *bus, u32 status) in at91_wait_for_xfer() argument 26 struct at91_i2c_regs *reg = bus->regs; in at91_wait_for_xfer() 30 bus->status = 0; in at91_wait_for_xfer() 34 bus->status |= sr; in at91_wait_for_xfer() 45 static int at91_i2c_xfer_msg(struct at91_i2c_bus *bus, struct i2c_msg *msg) in at91_i2c_xfer_msg() argument 47 struct at91_i2c_regs *reg = bus->regs; in at91_i2c_xfer_msg() 57 ret = at91_wait_for_xfer(bus, TWI_SR_RXRDY); in at91_i2c_xfer_msg() 66 ret = at91_wait_for_xfer(bus, TWI_SR_RXRDY); in at91_i2c_xfer_msg() 74 ret = at91_wait_for_xfer(bus, TWI_SR_TXRDY); in at91_i2c_xfer_msg() 78 ret = at91_wait_for_xfer(bus, TWI_SR_TXRDY); in at91_i2c_xfer_msg() [all …]
|
D | i2c-uclass.c | 75 struct udevice *bus = dev_get_parent(dev); in i2c_read_bytewise() local 76 struct dm_i2c_ops *ops = i2c_get_ops(bus); in i2c_read_bytewise() 92 ret = ops->xfer(bus, msg, ptr - msg); in i2c_read_bytewise() 104 struct udevice *bus = dev_get_parent(dev); in i2c_write_bytewise() local 105 struct dm_i2c_ops *ops = i2c_get_ops(bus); in i2c_write_bytewise() 116 ret = ops->xfer(bus, msg, 1); in i2c_write_bytewise() 127 struct udevice *bus = dev_get_parent(dev); in dm_i2c_read() local 128 struct dm_i2c_ops *ops = i2c_get_ops(bus); in dm_i2c_read() 151 return ops->xfer(bus, msg, msg_count); in dm_i2c_read() 158 struct udevice *bus = dev_get_parent(dev); in dm_i2c_write() local [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/usb/host/ |
D | usb-uclass.c | 36 struct udevice *bus = udev->controller_dev; in submit_int_msg() local 37 struct dm_usb_ops *ops = usb_get_ops(bus); in submit_int_msg() 42 return ops->interrupt(bus, udev, pipe, buffer, length, interval, in submit_int_msg() 49 struct udevice *bus = udev->controller_dev; in submit_control_msg() local 50 struct dm_usb_ops *ops = usb_get_ops(bus); in submit_control_msg() 51 struct usb_uclass_priv *uc_priv = bus->uclass->priv; in submit_control_msg() 57 err = ops->control(bus, udev, pipe, buffer, length, setup); in submit_control_msg() 72 struct udevice *bus = udev->controller_dev; in submit_bulk_msg() local 73 struct dm_usb_ops *ops = usb_get_ops(bus); in submit_bulk_msg() 78 return ops->bulk(bus, udev, pipe, buffer, length); in submit_bulk_msg() [all …]
|
/third_party/uboot/u-boot-2020.01/board/freescale/ls1012aqds/ |
D | eth.c | 63 static int ls1012aqds_mdio_read(struct mii_dev *bus, int addr, int devad, in ls1012aqds_mdio_read() argument 66 struct ls1012aqds_mdio *priv = bus->priv; in ls1012aqds_mdio_read() 73 static int ls1012aqds_mdio_write(struct mii_dev *bus, int addr, int devad, in ls1012aqds_mdio_write() argument 76 struct ls1012aqds_mdio *priv = bus->priv; in ls1012aqds_mdio_write() 83 static int ls1012aqds_mdio_reset(struct mii_dev *bus) in ls1012aqds_mdio_reset() argument 85 struct ls1012aqds_mdio *priv = bus->priv; in ls1012aqds_mdio_reset() 96 struct mii_dev *bus = mdio_alloc(); in ls1012aqds_mdio_init() local 98 if (!bus) { in ls1012aqds_mdio_init() 106 free(bus); in ls1012aqds_mdio_init() 110 bus->read = ls1012aqds_mdio_read; in ls1012aqds_mdio_init() [all …]
|
/third_party/uboot/u-boot-2020.01/board/LaCie/common/ |
D | cpld-gpio-bus.c | 17 static void cpld_gpio_bus_set_addr(struct cpld_gpio_bus *bus, unsigned addr) in cpld_gpio_bus_set_addr() argument 21 for (pin = 0; pin < bus->num_addr; pin++) in cpld_gpio_bus_set_addr() 22 kw_gpio_set_value(bus->addr[pin], (addr >> pin) & 1); in cpld_gpio_bus_set_addr() 25 static void cpld_gpio_bus_set_data(struct cpld_gpio_bus *bus, unsigned data) in cpld_gpio_bus_set_data() argument 29 for (pin = 0; pin < bus->num_data; pin++) in cpld_gpio_bus_set_data() 30 kw_gpio_set_value(bus->data[pin], (data >> pin) & 1); in cpld_gpio_bus_set_data() 33 static void cpld_gpio_bus_enable_select(struct cpld_gpio_bus *bus) in cpld_gpio_bus_enable_select() argument 36 kw_gpio_set_value(bus->enable, 0); in cpld_gpio_bus_enable_select() 37 kw_gpio_set_value(bus->enable, 1); in cpld_gpio_bus_enable_select() 40 void cpld_gpio_bus_write(struct cpld_gpio_bus *bus, in cpld_gpio_bus_write() argument [all …]
|
/third_party/uboot/u-boot-2020.01/board/gdsys/mpc8308/ |
D | hrcon.c | 56 u8 bus; member 229 i2c_set_bus_num(hrcon_fans[k].bus); in last_stage_init() 240 void fpga_gpio_set(uint bus, int pin) in fpga_gpio_set() argument 242 FPGA_SET_REG(bus >= 4 ? (bus - 4) : bus, gpio.set, pin); in fpga_gpio_set() 245 void fpga_gpio_clear(uint bus, int pin) in fpga_gpio_clear() argument 247 FPGA_SET_REG(bus >= 4 ? (bus - 4) : bus, gpio.clear, pin); in fpga_gpio_clear() 250 int fpga_gpio_get(uint bus, int pin) in fpga_gpio_get() argument 254 FPGA_GET_REG(bus >= 4 ? (bus - 4) : bus, gpio.read, &val); in fpga_gpio_get() 259 void fpga_control_set(uint bus, int pin) in fpga_control_set() argument 263 FPGA_GET_REG(bus >= 4 ? (bus - 4) : bus, control, &val); in fpga_control_set() [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/pci/ |
D | pci-uclass.c | 49 struct udevice *bus = dev->parent; in dm_pci_get_bdf() local 51 return PCI_ADD_BUS(bus->seq, pplat->devfn); in dm_pci_get_bdf() 61 struct udevice *bus; in pci_get_bus_max() local 66 uclass_foreach_dev(bus, uc) { in pci_get_bus_max() 67 if (bus->seq > ret) in pci_get_bus_max() 68 ret = bus->seq; in pci_get_bus_max() 93 static void pci_dev_find_ofnode(struct udevice *bus, phys_addr_t bdf, in pci_dev_find_ofnode() argument 100 dev_for_each_subnode(node, bus) { in pci_dev_find_ofnode() 114 int pci_bus_find_devfn(struct udevice *bus, pci_dev_t find_devfn, in pci_bus_find_devfn() argument 119 for (device_find_first_child(bus, &dev); in pci_bus_find_devfn() [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/w1/ |
D | w1-uclass.c | 28 static int w1_enumerate(struct udevice *bus) in w1_enumerate() argument 30 const struct w1_ops *ops = device_get_ops(bus); in w1_enumerate() 31 struct w1_bus *w1 = dev_get_uclass_priv(bus); in w1_enumerate() 52 if (ops->reset(bus)) { in w1_enumerate() 59 ops->write_byte(bus, W1_SEARCH); in w1_enumerate() 72 triplet_ret = ops->triplet(bus, search_bit); in w1_enumerate() 97 bus->name, rn, (u8)(rn & 0xff)); in w1_enumerate() 140 struct udevice *bus = dev_get_parent(dev); in w1_reset_select() local 141 const struct w1_ops *ops = device_get_ops(bus); in w1_reset_select() 147 ops->reset(bus); in w1_reset_select() [all …]
|
/third_party/FreeBSD/sys/dev/usb/ |
D | usb_bus.h | 39 struct usb_bus *bus; member 52 #define USB_BUS_TT_PROC(bus) USB_BUS_NON_GIANT_ISOC_PROC(bus) argument 53 #define USB_BUS_CS_PROC(bus) USB_BUS_NON_GIANT_ISOC_PROC(bus) argument 56 #define USB_BUS_GIANT_PROC(bus) (&(bus)->giant_callback_proc) argument 57 #define USB_BUS_NON_GIANT_ISOC_PROC(bus) (&(bus)->non_giant_isoc_callback_proc) argument 58 #define USB_BUS_NON_GIANT_BULK_PROC(bus) (&(bus)->non_giant_bulk_callback_proc) argument 59 #define USB_BUS_EXPLORE_PROC(bus) (&(bus)->explore_proc) argument 60 #define USB_BUS_CONTROL_XFER_PROC(bus) (&(bus)->control_xfer_proc) argument
|
/third_party/uboot/u-boot-2020.01/drivers/net/ |
D | ag7xxx.c | 168 struct mii_dev *bus; member 179 static int ag7xxx_switch_read(struct mii_dev *bus, int addr, int reg, u16 *val) in ag7xxx_switch_read() argument 181 struct ar7xxx_eth_priv *priv = bus->priv; in ag7xxx_switch_read() 202 static int ag7xxx_switch_write(struct mii_dev *bus, int addr, int reg, u16 val) in ag7xxx_switch_write() argument 204 struct ar7xxx_eth_priv *priv = bus->priv; in ag7xxx_switch_write() 218 static int ag7xxx_switch_reg_read(struct mii_dev *bus, int reg, u32 *val) in ag7xxx_switch_reg_read() argument 220 struct ar7xxx_eth_priv *priv = bus->priv; in ag7xxx_switch_reg_read() 241 ret = ag7xxx_switch_write(bus, phy_addr, reg_addr, (reg >> 9) & 0x1ff); in ag7xxx_switch_reg_read() 243 ret = ag7xxx_switch_write(bus, phy_addr, reg_addr, reg >> 9); in ag7xxx_switch_reg_read() 254 ret = ag7xxx_switch_read(bus, phy_temp, reg_temp | 0, &rv); in ag7xxx_switch_reg_read() [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/spi/ |
D | cadence_qspi.c | 22 static int cadence_spi_write_speed(struct udevice *bus, uint hz) in cadence_spi_write_speed() argument 24 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_write_speed() 25 struct cadence_spi_priv *priv = dev_get_priv(bus); in cadence_spi_write_speed() 39 static int spi_calibration(struct udevice *bus, uint hz) in spi_calibration() argument 41 struct cadence_spi_priv *priv = dev_get_priv(bus); in spi_calibration() 48 cadence_spi_write_speed(bus, 1000000); in spi_calibration() 65 cadence_spi_write_speed(bus, hz); in spi_calibration() 113 priv->qspi_calibrated_cs = spi_chip_select(bus); in spi_calibration() 118 static int cadence_spi_set_speed(struct udevice *bus, uint hz) in cadence_spi_set_speed() argument 120 struct cadence_spi_platdata *plat = bus->platdata; in cadence_spi_set_speed() [all …]
|
/third_party/uboot/u-boot-2020.01/board/gdsys/common/ |
D | phy.c | 118 static int process_setupcmd(const char *bus, unsigned char addr, in process_setupcmd() argument 129 debug("mii %s:%u reg %2u ", bus, addr, reg); in process_setupcmd() 133 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd() 142 res = miiphy_write(bus, addr, reg, data); in process_setupcmd() 145 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd() 157 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd() 175 static int process_setup(const char *bus, unsigned char addr, in process_setup() argument 182 res = process_setupcmd(bus, addr, &setupcmd[k]); in process_setup() 185 setupcmd[k].token, bus, addr); in process_setup() 193 int setup_88e1518(const char *bus, unsigned char addr) in setup_88e1518() argument [all …]
|