• Home
  • Raw
  • Download

Lines Matching refs:desc_p

143 	struct dmamacdescr *desc_p;  in tx_descs_init()  local
147 desc_p = &desc_table_p[idx]; in tx_descs_init()
148 desc_p->dmamac_addr = (ulong)&txbuffs[idx * CONFIG_ETH_BUFSIZE]; in tx_descs_init()
149 desc_p->dmamac_next = (ulong)&desc_table_p[idx + 1]; in tx_descs_init()
152 desc_p->txrx_status &= ~(DESC_TXSTS_TXINT | DESC_TXSTS_TXLAST | in tx_descs_init()
157 desc_p->txrx_status |= DESC_TXSTS_TXCHAIN; in tx_descs_init()
158 desc_p->dmamac_cntl = 0; in tx_descs_init()
159 desc_p->txrx_status &= ~(DESC_TXSTS_MSK | DESC_TXSTS_OWNBYDMA); in tx_descs_init()
161 desc_p->dmamac_cntl = DESC_TXCTRL_TXCHAIN; in tx_descs_init()
162 desc_p->txrx_status = 0; in tx_descs_init()
167 desc_p->dmamac_next = (ulong)&desc_table_p[0]; in tx_descs_init()
183 struct dmamacdescr *desc_p; in rx_descs_init() local
195 desc_p = &desc_table_p[idx]; in rx_descs_init()
196 desc_p->dmamac_addr = (ulong)&rxbuffs[idx * CONFIG_ETH_BUFSIZE]; in rx_descs_init()
197 desc_p->dmamac_next = (ulong)&desc_table_p[idx + 1]; in rx_descs_init()
199 desc_p->dmamac_cntl = in rx_descs_init()
203 desc_p->txrx_status = DESC_RXSTS_OWNBYDMA; in rx_descs_init()
207 desc_p->dmamac_next = (ulong)&desc_table_p[0]; in rx_descs_init()
360 struct dmamacdescr *desc_p = &priv->tx_mac_descrtable[desc_num]; in _dw_eth_send() local
361 ulong desc_start = (ulong)desc_p; in _dw_eth_send()
363 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_eth_send()
364 ulong data_start = desc_p->dmamac_addr; in _dw_eth_send()
377 if (desc_p->txrx_status & DESC_TXSTS_OWNBYDMA) { in _dw_eth_send()
390 desc_p->txrx_status |= DESC_TXSTS_TXFIRST | DESC_TXSTS_TXLAST; in _dw_eth_send()
391 desc_p->dmamac_cntl |= (length << DESC_TXCTRL_SIZE1SHFT) & in _dw_eth_send()
394 desc_p->txrx_status &= ~(DESC_TXSTS_MSK); in _dw_eth_send()
395 desc_p->txrx_status |= DESC_TXSTS_OWNBYDMA; in _dw_eth_send()
397 desc_p->dmamac_cntl |= ((length << DESC_TXCTRL_SIZE1SHFT) & in _dw_eth_send()
401 desc_p->txrx_status = DESC_TXSTS_OWNBYDMA; in _dw_eth_send()
422 struct dmamacdescr *desc_p = &priv->rx_mac_descrtable[desc_num]; in _dw_eth_recv() local
424 ulong desc_start = (ulong)desc_p; in _dw_eth_recv()
426 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_eth_recv()
427 ulong data_start = desc_p->dmamac_addr; in _dw_eth_recv()
433 status = desc_p->txrx_status; in _dw_eth_recv()
444 *packetp = (uchar *)(ulong)desc_p->dmamac_addr; in _dw_eth_recv()
453 struct dmamacdescr *desc_p = &priv->rx_mac_descrtable[desc_num]; in _dw_free_pkt() local
454 ulong desc_start = (ulong)desc_p; in _dw_free_pkt()
456 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_free_pkt()
462 desc_p->txrx_status |= DESC_RXSTS_OWNBYDMA; in _dw_free_pkt()