Lines Matching refs:p
537 struct dma_desc *p, struct sk_buff *skb) in stmmac_get_tx_hwtstamp() argument
551 if (stmmac_get_tx_timestamp_status(priv, p)) { in stmmac_get_tx_hwtstamp()
552 stmmac_get_timestamp(priv, p, priv->adv_ts, &ns); in stmmac_get_tx_hwtstamp()
579 static void stmmac_get_rx_hwtstamp(struct stmmac_priv *priv, struct dma_desc *p, in stmmac_get_rx_hwtstamp() argument
583 struct dma_desc *desc = p; in stmmac_get_rx_hwtstamp()
593 if (stmmac_get_rx_timestamp_status(priv, p, np, priv->adv_ts)) { in stmmac_get_rx_hwtstamp()
1383 struct dma_desc *p; in stmmac_clear_tx_descriptors() local
1386 p = &tx_q->dma_etx[i].basic; in stmmac_clear_tx_descriptors()
1388 p = &tx_q->dma_entx[i].basic; in stmmac_clear_tx_descriptors()
1390 p = &tx_q->dma_tx[i]; in stmmac_clear_tx_descriptors()
1392 stmmac_init_tx_desc(priv, p, priv->mode, last); in stmmac_clear_tx_descriptors()
1432 struct dma_desc *p, in stmmac_init_rx_buffers() argument
1455 stmmac_set_desc_sec_addr(priv, p, buf->sec_addr, true); in stmmac_init_rx_buffers()
1458 stmmac_set_desc_sec_addr(priv, p, buf->sec_addr, false); in stmmac_init_rx_buffers()
1463 stmmac_set_desc_addr(priv, p, buf->addr); in stmmac_init_rx_buffers()
1465 stmmac_init_desc3(priv, p); in stmmac_init_rx_buffers()
1563 struct dma_desc *p; in stmmac_alloc_rx_buffers() local
1567 p = &((rx_q->dma_erx + i)->basic); in stmmac_alloc_rx_buffers()
1569 p = rx_q->dma_rx + i; in stmmac_alloc_rx_buffers()
1571 ret = stmmac_init_rx_buffers(priv, dma_conf, p, i, flags, in stmmac_alloc_rx_buffers()
1622 struct dma_desc *p; in stmmac_alloc_rx_buffers_zc() local
1625 p = (struct dma_desc *)(rx_q->dma_erx + i); in stmmac_alloc_rx_buffers_zc()
1627 p = rx_q->dma_rx + i; in stmmac_alloc_rx_buffers_zc()
1636 stmmac_set_desc_addr(priv, p, dma_addr); in stmmac_alloc_rx_buffers_zc()
1795 struct dma_desc *p; in __init_dma_tx_desc_rings() local
1798 p = &((tx_q->dma_etx + i)->basic); in __init_dma_tx_desc_rings()
1800 p = &((tx_q->dma_entx + i)->basic); in __init_dma_tx_desc_rings()
1802 p = tx_q->dma_tx + i; in __init_dma_tx_desc_rings()
1804 stmmac_clear_desc(priv, p); in __init_dma_tx_desc_rings()
2559 struct dma_desc *p; in stmmac_tx_clean() local
2575 p = (struct dma_desc *)(tx_q->dma_etx + entry); in stmmac_tx_clean()
2577 p = &tx_q->dma_entx[entry].basic; in stmmac_tx_clean()
2579 p = tx_q->dma_tx + entry; in stmmac_tx_clean()
2581 status = stmmac_tx_status(priv, &priv->xstats, p, priv->ioaddr); in stmmac_tx_clean()
2604 stmmac_get_tx_hwtstamp(priv, p, skb); in stmmac_tx_clean()
2624 stmmac_clean_desc3(priv, tx_q, p); in stmmac_tx_clean()
2653 stmmac_release_tx_desc(priv, p, priv->mode); in stmmac_tx_clean()
3984 struct dma_desc *p; in stmmac_vlan_insert() local
3998 p = &tx_q->dma_entx[tx_q->cur_tx].basic; in stmmac_vlan_insert()
4000 p = &tx_q->dma_tx[tx_q->cur_tx]; in stmmac_vlan_insert()
4002 if (stmmac_set_desc_vlan_tag(priv, p, tag, inner_tag, inner_type)) in stmmac_vlan_insert()
4005 stmmac_set_tx_owner(priv, p); in stmmac_vlan_insert()
4667 struct dma_desc *p; in stmmac_rx_refill() local
4671 p = (struct dma_desc *)(rx_q->dma_erx + entry); in stmmac_rx_refill()
4673 p = rx_q->dma_rx + entry; in stmmac_rx_refill()
4691 stmmac_set_desc_addr(priv, p, buf->addr); in stmmac_rx_refill()
4693 stmmac_set_desc_sec_addr(priv, p, buf->sec_addr, true); in stmmac_rx_refill()
4695 stmmac_set_desc_sec_addr(priv, p, buf->sec_addr, false); in stmmac_rx_refill()
4696 stmmac_refill_desc3(priv, rx_q, p); in stmmac_rx_refill()
4709 stmmac_set_rx_owner(priv, p, use_rx_wd); in stmmac_rx_refill()
4720 struct dma_desc *p, in stmmac_rx_buf1_len() argument
4731 stmmac_get_rx_header_len(priv, p, &hlen); in stmmac_rx_buf1_len()
4741 plen = stmmac_get_rx_frame_len(priv, p, coe); in stmmac_rx_buf1_len()
4748 struct dma_desc *p, in stmmac_rx_buf2_len() argument
4762 plen = stmmac_get_rx_frame_len(priv, p, coe); in stmmac_rx_buf2_len()
4974 struct dma_desc *p, struct dma_desc *np, in stmmac_dispatch_skb_zc() argument
4991 stmmac_get_rx_hwtstamp(priv, p, np, skb); in stmmac_dispatch_skb_zc()
5000 if (!stmmac_get_rx_hash(priv, p, &hash, &hash_type)) in stmmac_dispatch_skb_zc()
5113 struct dma_desc *np, *p; in stmmac_rx_zc() local
5141 p = (struct dma_desc *)(rx_q->dma_erx + entry); in stmmac_rx_zc()
5143 p = rx_q->dma_rx + entry; in stmmac_rx_zc()
5146 status = stmmac_rx_status(priv, &priv->xstats, p); in stmmac_rx_zc()
5197 ctx->desc = p; in stmmac_rx_zc()
5201 buf1_len = stmmac_rx_buf1_len(priv, p, status, len); in stmmac_rx_zc()
5219 stmmac_dispatch_skb_zc(priv, queue, p, np, buf->xdp); in stmmac_rx_zc()
5311 struct dma_desc *np, *p; in stmmac_rx() local
5336 p = (struct dma_desc *)(rx_q->dma_erx + entry); in stmmac_rx()
5338 p = rx_q->dma_rx + entry; in stmmac_rx()
5341 status = stmmac_rx_status(priv, &priv->xstats, p); in stmmac_rx()
5382 buf1_len = stmmac_rx_buf1_len(priv, p, status, len); in stmmac_rx()
5384 buf2_len = stmmac_rx_buf2_len(priv, p, status, len); in stmmac_rx()
5412 ctx.desc = p; in stmmac_rx()
5505 stmmac_get_rx_hwtstamp(priv, p, np, skb); in stmmac_rx()
5514 if (!stmmac_get_rx_hash(priv, p, &hash, &hash_type)) in stmmac_rx()
6147 struct dma_desc *p = (struct dma_desc *)head; in sysfs_display_ring() local
6161 dma_addr = dma_phy_addr + i * sizeof(*p); in sysfs_display_ring()
6164 le32_to_cpu(p->des0), le32_to_cpu(p->des1), in sysfs_display_ring()
6165 le32_to_cpu(p->des2), le32_to_cpu(p->des3)); in sysfs_display_ring()
6166 p++; in sysfs_display_ring()