Lines Matching refs:desc
267 typedef struct desc { struct
270 } desc; argument
290 desc desc[128]; member
293 static desc *rx_desc(OpenEthState *s) in rx_desc()
295 return s->desc + s->rx_desc; in rx_desc()
298 static desc *tx_desc(OpenEthState *s) in tx_desc()
300 return s->desc + s->tx_desc; in tx_desc()
404 desc *desc = rx_desc(s); local
407 if (!(desc->len_flags & RXD_E)) {
413 desc->len_flags &= ~(RXD_CF | RXD_M | RXD_OR |
422 desc->len_flags |= RXD_M;
425 desc->len_flags |= RXD_TL;
429 desc->len_flags |= RXD_SF;
433 cpu_physical_memory_write(desc->buf_ptr, buf, copy_size);
445 cpu_physical_memory_write(desc->buf_ptr + copy_size,
455 cpu_physical_memory_write(desc->buf_ptr + copy_size, zero, fcsl);
458 SET_FIELD(desc->len_flags, RXD_LEN, copy_size);
460 if ((desc->len_flags & RXD_WRAP) || s->rx_desc == 0x7f) {
465 desc->len_flags &= ~RXD_E;
467 trace_open_eth_receive_desc(desc->buf_ptr, desc->len_flags);
469 if (desc->len_flags & RXD_IRQ) {
485 static void open_eth_start_xmit(OpenEthState *s, desc *tx)
538 desc *tx = tx_desc(s);
692 memcpy(&v, (uint8_t *)s->desc + addr, size);
704 memcpy((uint8_t *)s->desc + addr, &val, size);
757 dc->desc = "Opencores 10/100 Mbit Ethernet";