Lines Matching refs:rx_desc
321 const NPCM7xxEMCRxDesc *rx_desc, in emc_set_next_rx_descriptor() argument
325 if (emc_write_rx_desc(rx_desc, desc_addr)) { in emc_set_next_rx_descriptor()
332 emc->regs[REG_CRXDSA] = RX_DESC_NRXDSA(rx_desc->nrxdsa); in emc_set_next_rx_descriptor()
496 NPCM7xxEMCRxDesc rx_desc; in emc_receive() local
553 if (emc_read_rx_desc(desc_addr, &rx_desc)) { in emc_receive()
561 if (!(rx_desc.status_and_length & RX_DESC_STATUS_OWNER_MASK)) { in emc_receive()
575 rx_desc.status_and_length &= ~RX_DESC_STATUS_OWNER_MASK; in emc_receive()
577 buf_addr = rx_desc.rxbsa; in emc_receive()
587 emc_set_next_rx_descriptor(emc, &rx_desc, desc_addr); in emc_receive()
596 rx_desc.status_and_length = len; in emc_receive()
598 rx_desc.status_and_length += 4; in emc_receive()
600 rx_desc.status_and_length |= RX_DESC_STATUS_RXGD; in emc_receive()
604 rx_desc.status_and_length |= RX_DESC_STATUS_RXINTR; in emc_receive()
607 rx_desc.status_and_length |= RX_DESC_STATUS_PTLE; in emc_receive()
610 emc_set_next_rx_descriptor(emc, &rx_desc, desc_addr); in emc_receive()