Lines Matching defs:mem
147 uint8_t mem[NE2000_MEM_SIZE];
155 memcpy(s->mem, s->macaddr, 6);
156 s->mem[14] = 0x57;
157 s->mem[15] = 0x57;
161 s->mem[2 * i] = s->mem[i];
162 s->mem[2 * i + 1] = s->mem[i];
259 } else if (s->mem[0] == buf[0] &&
260 s->mem[2] == buf[1] &&
261 s->mem[4] == buf[2] &&
262 s->mem[6] == buf[3] &&
263 s->mem[8] == buf[4] &&
264 s->mem[10] == buf[5]) {
288 p = s->mem + index;
308 memcpy(s->mem + index, buf, len);
351 qemu_send_packet(s->vc, s->mem + index, s->tcnt);
497 s->mem[addr] = val;
507 *(uint16_t *)(s->mem + addr) = cpu_to_le16(val);
517 cpu_to_le32wu((uint32_t *)(s->mem + addr), val);
525 return s->mem[addr];
536 mem + addr));
547 return le32_to_cpupu((uint32_t *)(s->mem + addr));
679 qemu_put_buffer(f, s->mem, NE2000_MEM_SIZE);
720 qemu_get_buffer(f, s->mem, NE2000_MEM_SIZE);