Lines Matching refs:reg_addr
62 uint16_t reg_addr; in cmd_mdio_scan() local
72 reg_addr = strtol(argv[1], NULL, 16); in cmd_mdio_scan()
74 reg_addr = 0; in cmd_mdio_scan()
79 reg_addr); in cmd_mdio_scan()
86 if (mdio_read(dev, i, reg_addr, &data) >= 0 && in cmd_mdio_scan()
105 uint16_t reg_addr; in cmd_mdio_write() local
116 reg_addr = strtol(argv[2], NULL, 16); in cmd_mdio_write()
121 if (mdio_write(dev, port_addr, reg_addr, data) < 0) { in cmd_mdio_write()
138 uint16_t reg_addr; in cmd_mdio_read() local
149 reg_addr = strtol(argv[2], NULL, 16); in cmd_mdio_read()
153 if (mdio_read(dev, port_addr, reg_addr, &data) < 0) { in cmd_mdio_read()
162 shell_print(sh, "%x[%x]: 0x%x", port_addr, reg_addr, data); in cmd_mdio_read()
172 uint16_t reg_addr; in cmd_mdio_write_45() local
185 reg_addr = strtol(argv[3], NULL, 16); in cmd_mdio_write_45()
190 if (mdio_write_c45(dev, port_addr, dev_addr, reg_addr, data) < 0) { in cmd_mdio_write_45()
207 uint16_t reg_addr; in cmd_mdio_read_c45() local
220 reg_addr = strtol(argv[3], NULL, 16); in cmd_mdio_read_c45()
224 if (mdio_read_c45(dev, port_addr, dev_addr, reg_addr, &data) < 0) { in cmd_mdio_read_c45()
233 shell_print(sh, "%x[%x:%x]: 0x%x", port_addr, dev_addr, reg_addr, data); in cmd_mdio_read_c45()