Lines Matching refs:p
226 uint8_t *p; in smc91c111_do_tx() local
234 p = &s->data[packetnum][0]; in smc91c111_do_tx()
236 *(p++) = 0x01; in smc91c111_do_tx()
237 *(p++) = 0x40; in smc91c111_do_tx()
238 len = *(p++); in smc91c111_do_tx()
239 len |= ((int)*(p++)) << 8; in smc91c111_do_tx()
241 control = p[len + 1]; in smc91c111_do_tx()
247 memset(p + len, 0, 64 - len); in smc91c111_do_tx()
262 crc = crc32(~0, p, len); in smc91c111_do_tx()
263 memcpy(p + len, &crc, 4); in smc91c111_do_tx()
273 qemu_send_packet(qemu_get_queue(s->nic), p, len); in smc91c111_do_tx()
445 int p; in smc91c111_writeb() local
452 p = s->ptr & 0x07ff; in smc91c111_writeb()
456 p += (offset & 3); in smc91c111_writeb()
458 s->data[n][p] = value; in smc91c111_writeb()
593 int p; in smc91c111_readb() local
600 p = s->ptr & 0x07ff; in smc91c111_readb()
604 p += (offset & 3); in smc91c111_readb()
606 return s->data[n][p]; in smc91c111_readb()
686 uint8_t *p; in smc91c111_receive() local
708 p = &s->data[packetnum][0]; in smc91c111_receive()
715 *(p++) = status & 0xff; in smc91c111_receive()
716 *(p++) = status >> 8; in smc91c111_receive()
717 *(p++) = packetsize & 0xff; in smc91c111_receive()
718 *(p++) = packetsize >> 8; in smc91c111_receive()
719 memcpy(p, buf, size & ~1); in smc91c111_receive()
720 p += (size & ~1); in smc91c111_receive()
726 *(p++) = buf[size - 1]; in smc91c111_receive()
728 memset(p, 0, pad); in smc91c111_receive()
729 p += pad; in smc91c111_receive()
738 *(p++) = crc & 0xff; crc >>= 8; in smc91c111_receive()
739 *(p++) = crc & 0xff; crc >>= 8; in smc91c111_receive()
740 *(p++) = crc & 0xff; crc >>= 8; in smc91c111_receive()
741 *(p++) = crc & 0xff; in smc91c111_receive()
744 *(p++) = buf[size - 1]; in smc91c111_receive()
745 *p = 0x60; in smc91c111_receive()
747 *(p++) = 0; in smc91c111_receive()
748 *p = 0x40; in smc91c111_receive()