Home
last modified time | relevance | path

Searched refs:dev_addr (Results 1 – 25 of 29) sorted by relevance

12

/u-boot/include/
A Dfsl_mdio.h46 int dev_addr, int reg, int value);
48 int dev_addr, int regnum);
49 int tsec_phy_read(struct mii_dev *bus, int addr, int dev_addr, int regnum);
50 int tsec_phy_write(struct mii_dev *bus, int addr, int dev_addr, int regnum,
52 int memac_mdio_write(struct mii_dev *bus, int port_addr, int dev_addr,
54 int memac_mdio_read(struct mii_dev *bus, int port_addr, int dev_addr,
A Deeprom.h12 int eeprom_read(uint dev_addr, uint offset, uchar *buffer, uint cnt);
13 int eeprom_write(uint dev_addr, uint offset, uchar *buffer, uint cnt);
20 #define eeprom_read(dev_addr, offset, buffer, cnt) (-ENOSYS) argument
21 #define eeprom_write(dev_addr, offset, buffer, cnt) (-ENOSYS) argument
/u-boot/drivers/net/pfe_eth/
A Dpfe_mdio.c19 static int pfe_write_addr(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_write_addr() argument
28 devadr = ((dev_addr & EMAC_MII_DATA_RA_MASK) << EMAC_MII_DATA_RA_SHIFT); in pfe_write_addr()
53 static int pfe_phy_read(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_read() argument
63 if (dev_addr == MDIO_DEVAD_NONE) { in pfe_phy_read()
67 pfe_write_addr(bus, phy_addr, dev_addr, reg_addr); in pfe_phy_read()
68 reg = ((dev_addr & EMAC_MII_DATA_RA_MASK) << in pfe_phy_read()
74 if (dev_addr == MDIO_DEVAD_NONE) in pfe_phy_read()
117 if (dev_addr == MDIO_DEVAD_NONE) { in pfe_phy_write()
121 pfe_write_addr(bus, phy_addr, dev_addr, reg_addr); in pfe_phy_write()
122 reg = ((dev_addr & EMAC_MII_DATA_RA_MASK) << in pfe_phy_write()
[all …]
/u-boot/drivers/net/fm/
A Dtgec_phy.c19 static int tgec_mdio_write(struct mii_dev *bus, int port_addr, int dev_addr, in tgec_mdio_write() argument
26 if (dev_addr == MDIO_DEVAD_NONE) in tgec_mdio_write()
36 mdio_ctl = MDIO_CTL_PORT_ADDR(port_addr) | MDIO_CTL_DEV_ADDR(dev_addr); in tgec_mdio_write()
61 static int tgec_mdio_read(struct mii_dev *bus, int port_addr, int dev_addr, in tgec_mdio_read() argument
68 if (dev_addr == MDIO_DEVAD_NONE) in tgec_mdio_read()
78 mdio_ctl = MDIO_CTL_PORT_ADDR(port_addr) | MDIO_CTL_DEV_ADDR(dev_addr); in tgec_mdio_read()
A Dmemac_phy.c83 int memac_mdio_write(struct mii_dev *bus, int port_addr, int dev_addr, in memac_mdio_write() argument
101 regs, port_addr, dev_addr, regnum, value); in memac_mdio_write()
104 if (dev_addr == MDIO_DEVAD_NONE) { in memac_mdio_write()
106 dev_addr = regnum & 0x1f; in memac_mdio_write()
116 mdio_ctl = MDIO_CTL_PORT_ADDR(port_addr) | MDIO_CTL_DEV_ADDR(dev_addr); in memac_mdio_write()
142 int memac_mdio_read(struct mii_dev *bus, int port_addr, int dev_addr, in memac_mdio_read() argument
161 if (dev_addr == MDIO_DEVAD_NONE) { in memac_mdio_read()
167 dev_addr = regnum & 0x1f; in memac_mdio_read()
177 mdio_ctl = MDIO_CTL_PORT_ADDR(port_addr) | MDIO_CTL_DEV_ADDR(dev_addr); in memac_mdio_read()
/u-boot/cmd/
A Deeprom.c68 __weak int eeprom_write_enable(unsigned dev_addr, int state) in eeprom_write_enable() argument
85 static int eeprom_addr(unsigned dev_addr, unsigned offset, uchar *addr) in eeprom_addr() argument
102 addr[0] |= dev_addr; /* insert device address */ in eeprom_addr()
164 static int eeprom_rw(unsigned dev_addr, unsigned offset, uchar *buffer, in eeprom_rw() argument
177 alen = eeprom_addr(dev_addr, offset, addr); in eeprom_rw()
193 int eeprom_read(unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt) in eeprom_read() argument
200 return eeprom_rw(dev_addr, offset, buffer, cnt, 1); in eeprom_read()
203 int eeprom_write(unsigned dev_addr, unsigned offset, in eeprom_write() argument
208 eeprom_write_enable(dev_addr, 1); in eeprom_write()
215 ret = eeprom_rw(dev_addr, offset, buffer, cnt, 0); in eeprom_write()
[all …]
/u-boot/board/ti/common/
A Dboard_detect.c33 static int __maybe_unused ti_i2c_eeprom_init(int i2c_bus, int dev_addr) in ti_i2c_eeprom_init() argument
43 return i2c_probe(dev_addr); in ti_i2c_eeprom_init()
58 return i2c_read(dev_addr, offset, 2, ep, epsize); in ti_i2c_eeprom_read()
99 rc = dm_i2c_probe(bus, dev_addr, 0, &dev); in ti_i2c_eeprom_get()
138 rc = ti_i2c_eeprom_init(bus_addr, dev_addr); in ti_i2c_eeprom_get()
147 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, 4); in ti_i2c_eeprom_get()
158 rc = i2c_read(dev_addr, 0x0, byte, (uint8_t *)&hdr_read, in ti_i2c_eeprom_get()
166 rc = i2c_read(dev_addr, 0x0, byte, ep, size); in ti_i2c_eeprom_get()
457 rc = i2c_get_chip(bus, dev_addr, 1, &dev); in ti_i2c_eeprom_am6_get()
489 __func__, dev_addr, record.header.id, in ti_i2c_eeprom_am6_get()
[all …]
A Dboard_detect.h269 int ti_i2c_eeprom_am_get(int bus_addr, int dev_addr);
285 int ti_i2c_eeprom_dra7_get(int bus_addr, int dev_addr);
301 int __maybe_unused ti_i2c_eeprom_am6_get(int bus_addr, int dev_addr,
312 int __maybe_unused ti_i2c_eeprom_am6_get_base(int bus_addr, int dev_addr);
/u-boot/drivers/remoteproc/
A Dti_k3_dsp_rproc.c38 phys_addr_t dev_addr; member
241 phys_addr_t bus_addr, dev_addr; in k3_dsp_da_to_va() local
254 dev_addr = dsp->mem[i].dev_addr; in k3_dsp_da_to_va()
257 if (da >= dev_addr && ((da + len) <= (dev_addr + size))) { in k3_dsp_da_to_va()
258 offset = da - dev_addr; in k3_dsp_da_to_va()
333 dsp->mem[i].dev_addr = FDT_ADDR_T_NONE; in k3_dsp_of_get_memories()
348 dsp->mem[i].dev_addr = dsp->mem[i].bus_addr & in k3_dsp_of_get_memories()
354 &dsp->mem[i].dev_addr); in k3_dsp_of_get_memories()
A Dti_k3_r5f_rproc.c80 u32 dev_addr; member
528 u32 dev_addr, offset; in k3_r5f_da_to_va() local
539 dev_addr = core->mem[i].dev_addr; in k3_r5f_da_to_va()
548 if (da >= dev_addr && (da + size) <= (dev_addr + mem_size)) { in k3_r5f_da_to_va()
549 offset = da - dev_addr; in k3_r5f_da_to_va()
726 core->mem[i].dev_addr = core->loczrama ? in k3_r5f_core_of_get_memories()
729 core->mem[i].dev_addr = core->loczrama ? in k3_r5f_core_of_get_memories()
736 core->mem[i].dev_addr); in k3_r5f_core_of_get_memories()
/u-boot/drivers/net/
A Dfsl_mdio.c23 int dev_addr, int regnum, int value) in tsec_local_mdio_write() argument
37 int dev_addr, int regnum) in tsec_local_mdio_read() argument
94 int tsec_phy_read(struct mii_dev *bus, int addr, int dev_addr, int regnum) in tsec_phy_read() argument
109 return tsec_local_mdio_read(phyregs, addr, dev_addr, regnum); in tsec_phy_read()
112 int tsec_phy_write(struct mii_dev *bus, int addr, int dev_addr, int regnum, in tsec_phy_write() argument
128 tsec_local_mdio_write(phyregs, addr, dev_addr, regnum, value); in tsec_phy_write()
A Dpic32_mdio.c18 int addr, int dev_addr, in pic32_mdio_write() argument
A Dftgmac100.c102 static int ftgmac100_mdio_read(struct mii_dev *bus, int phy_addr, int dev_addr, in ftgmac100_mdio_read() argument
131 static int ftgmac100_mdio_write(struct mii_dev *bus, int phy_addr, int dev_addr, in ftgmac100_mdio_write() argument
/u-boot/board/corscience/tricorder/
A Dtricorder-eeprom.c193 ulong dev_addr = simple_strtoul(argv[2], NULL, 16); in do_tricorder_eeprom() local
196 return tricorder_eeprom_read(dev_addr); in do_tricorder_eeprom()
198 ulong dev_addr = simple_strtoul(argv[2], NULL, 16); in do_tricorder_eeprom() local
208 return tricorder_eeprom_write(dev_addr, name, version, in do_tricorder_eeprom()
/u-boot/env/
A Deeprom.c27 static int eeprom_bus_read(unsigned dev_addr, unsigned offset, in eeprom_bus_read() argument
38 rcode = eeprom_read(dev_addr, offset, buffer, cnt); in eeprom_bus_read()
47 static int eeprom_bus_write(unsigned dev_addr, unsigned offset, in eeprom_bus_write() argument
58 rcode = eeprom_write(dev_addr, offset, buffer, cnt); in eeprom_bus_write()
/u-boot/arch/arm/mach-bcm283x/
A Dmsg.c46 struct bcm2835_mbox_tag_pci_dev_addr dev_addr; member
175 BCM2835_MBOX_INIT_TAG(&msg_notify_vl805_reset->dev_addr, in bcm2711_notify_vl805_reset()
186 msg_notify_vl805_reset->dev_addr.body.req.dev_addr = 0x100000; in bcm2711_notify_vl805_reset()
/u-boot/board/gdsys/common/
A Dihs_mdio.c115 static int ihs_mdio_read(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_read() argument
134 static int ihs_mdio_write(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_write() argument
/u-boot/drivers/net/ti/
A Dcpsw_mdio.c76 int dev_addr, int phy_reg) in cpsw_mdio_read() argument
101 static int cpsw_mdio_write(struct mii_dev *bus, int phy_id, int dev_addr, in cpsw_mdio_write() argument
/u-boot/drivers/i2c/
A Diproc_i2c.c249 unsigned short dev_addr, in iproc_i2c_write_trans_data() argument
258 __func__, dev_addr, info->cmd_valid, in iproc_i2c_write_trans_data()
265 iproc_i2c_reg_write(&base->mstr_datawr, dev_addr); in iproc_i2c_write_trans_data()
290 dev_addr | 0x1); in iproc_i2c_write_trans_data()
296 dev_addr | 0x1 | in iproc_i2c_write_trans_data()
/u-boot/drivers/usb/gadget/
A Dether.c280 static char dev_addr[18]; variable
1991 static int get_ether_addr(const char *str, u8 *dev_addr) in get_ether_addr() argument
2003 dev_addr[i] = num; in get_ether_addr()
2005 if (is_valid_ethaddr(dev_addr)) in get_ether_addr()
2231 get_ether_addr(dev_addr, dev->net->enetaddr); in eth_bind()
2234 get_ether_addr(dev_addr, pdata->enetaddr); in eth_bind()
2361 strlcpy(dev_addr, CONFIG_USBNET_DEV_ADDR, sizeof(dev_addr)); in _usb_eth_init()
2368 strlcpy(dev_addr, env_get("usbnet_devaddr"), in _usb_eth_init()
2369 sizeof(dev_addr)); in _usb_eth_init()
2375 if (!is_eth_addr_valid(dev_addr)) { in _usb_eth_init()
A Dfotg210.c115 writel(0, &regs->dev_addr); in fotg210_reset()
373 writel(chip->addr, &regs->dev_addr); in fotg210_setup()
377 &regs->dev_addr); in fotg210_setup()
387 writel(chip->addr, &regs->dev_addr); in fotg210_setup()
728 writel(chip->addr, &regs->dev_addr); in pullup()
/u-boot/include/usb/
A Dfotg210.h33 uint32_t dev_addr;/* 0x104: Device Address Register */ member
/u-boot/arch/arm/mach-bcm283x/include/mach/
A Dmbox.h500 u32 dev_addr; member
/u-boot/board/intel/edison/
A Dedison-environment.txt16 …get hardware_id=${hardware_id} g_multi.iSerialNumber=${serial#} g_multi.dev_addr=${usb0addr} ${aud…
/u-boot/board/keymile/km_arm/
A Dkm_arm.c514 int eeprom_write_enable(unsigned int dev_addr, int state) in eeprom_write_enable() argument

Completed in 39 milliseconds

12