Lines Matching refs:value
43 uint16_t value; in miim_read_cycle() local
45 phy = (etsec->regs[MIIMADD].value >> 8) & 0x1F; in miim_read_cycle()
47 addr = etsec->regs[MIIMADD].value & 0x1F; in miim_read_cycle()
51 value = etsec->phy_control; in miim_read_cycle()
54 value = etsec->phy_status; in miim_read_cycle()
57 value = 0x1800; /* Local and remote receivers OK */ in miim_read_cycle()
60 value = 0x0; in miim_read_cycle()
65 qemu_log("%s phy:%d addr:0x%x value:0x%x\n", __func__, phy, addr, value); in miim_read_cycle()
68 etsec->regs[MIIMSTAT].value = value; in miim_read_cycle()
75 uint16_t value; in miim_write_cycle() local
77 phy = (etsec->regs[MIIMADD].value >> 8) & 0x1F; in miim_write_cycle()
79 addr = etsec->regs[MIIMADD].value & 0x1F; in miim_write_cycle()
80 value = etsec->regs[MIIMCON].value & 0xffff; in miim_write_cycle()
83 qemu_log("%s phy:%d addr:0x%x value:0x%x\n", __func__, phy, addr, value); in miim_write_cycle()
88 etsec->phy_control = value & ~(0x8100); in miim_write_cycle()
98 uint32_t value) in etsec_write_miim() argument
106 if ((!(reg->value & MIIMCOM_READ)) && (value & MIIMCOM_READ)) { in etsec_write_miim()
110 reg->value = value; in etsec_write_miim()
114 reg->value = value & 0xffff; in etsec_write_miim()
124 reg->value = value; in etsec_write_miim()
128 reg->value &= ~value; in etsec_write_miim()