Lines Matching refs:port_addr
106 uint16_t port_addr; in cmd_mdio_write() local
115 port_addr = strtol(argv[1], NULL, 16); in cmd_mdio_write()
121 if (mdio_write(dev, port_addr, reg_addr, data) < 0) { in cmd_mdio_write()
139 uint16_t port_addr; in cmd_mdio_read() local
148 port_addr = strtol(argv[1], 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()
174 uint8_t port_addr; in cmd_mdio_write_45() local
183 port_addr = strtol(argv[1], 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()
209 uint8_t port_addr; in cmd_mdio_read_c45() local
218 port_addr = strtol(argv[1], 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()