Home
last modified time | relevance | path

Searched refs:tpd (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/qualcomm/emac/
Demac-mac.h87 #define TPD_BUF_LEN_SET(tpd, val) BITS_SET((tpd)->word[0], 0, 15, val) argument
89 #define TPD_CSX_SET(tpd, val) BITS_SET((tpd)->word[1], 8, 8, val) argument
91 #define TPD_LSO(tpd) BITS_GET((tpd)->word[1], 12, 12) argument
92 #define TPD_LSO_SET(tpd, val) BITS_SET((tpd)->word[1], 12, 12, val) argument
97 #define TPD_LSOV_SET(tpd, val) BITS_SET((tpd)->word[1], 13, 13, val) argument
101 #define TPD_IPV4_SET(tpd, val) BITS_SET((tpd)->word[1], 16, 16, val) argument
105 #define TPD_TYP_SET(tpd, val) BITS_SET((tpd)->word[1], 17, 17, val) argument
107 #define TPD_BUFFER_ADDR_L_SET(tpd, val) ((tpd)->word[2] = cpu_to_le32(val)) argument
111 #define TPD_CVLAN_TAG_SET(tpd, val) BITS_SET((tpd)->word[3], 0, 15, val) argument
114 #define TPD_INSTC_SET(tpd, val) BITS_SET((tpd)->word[3], 17, 17, val) argument
[all …]
Demac-mac.c244 #define EMAC_TPD(TXQ, SIZE, IDX) ((TXQ)->tpd.v_addr + (SIZE * (IDX)))
247 #define GET_TPD_BUFFER(RTQ, IDX) (&((RTQ)->tpd.tpbuff[(IDX)]))
313 writel(upper_32_bits(adpt->tx_q.tpd.dma_addr), in emac_mac_dma_rings_config()
316 writel(lower_32_bits(adpt->tx_q.tpd.dma_addr), in emac_mac_dma_rings_config()
319 writel(adpt->tx_q.tpd.count & TPD_RING_SIZE_BMSK, in emac_mac_dma_rings_config()
600 if (!tx_q->tpd.tpbuff) in emac_tx_q_descs_free()
603 for (i = 0; i < tx_q->tpd.count; i++) { in emac_tx_q_descs_free()
618 size = sizeof(struct emac_buffer) * tx_q->tpd.count; in emac_tx_q_descs_free()
619 memset(tx_q->tpd.tpbuff, 0, size); in emac_tx_q_descs_free()
622 memset(tx_q->tpd.v_addr, 0, tx_q->tpd.size); in emac_tx_q_descs_free()
[all …]
/Linux-v4.19/drivers/atm/
Dhe.c1612 struct he_tpd *tpd; in __alloc_tpd() local
1615 tpd = dma_pool_alloc(he_dev->tpd_pool, GFP_ATOMIC, &mapping); in __alloc_tpd()
1616 if (tpd == NULL) in __alloc_tpd()
1619 tpd->status = TPD_ADDR(mapping); in __alloc_tpd()
1620 tpd->reserved = 0; in __alloc_tpd()
1621 tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0; in __alloc_tpd()
1622 tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0; in __alloc_tpd()
1623 tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0; in __alloc_tpd()
1625 return tpd; in __alloc_tpd()
1808 struct he_tpd *tpd; in he_service_tbrq() local
[all …]
Dfore200e.c381 fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.tpd); in fore200e_shutdown()
887 fore200e->bus->dma_unmap(fore200e, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length, in fore200e_tx_irq()
1562 struct tpd* tpd; in fore200e_send() local
1681 tpd = entry->tpd; in fore200e_send()
1682 tpd->tsd[ 0 ].buffer = fore200e->bus->dma_map(fore200e, data, tx_len, DMA_TO_DEVICE); in fore200e_send()
1683 tpd->tsd[ 0 ].length = tx_len; in fore200e_send()
1694 tpd->tsd[0].length, skb_len); in fore200e_send()
1703 tpd->rate.data_cells = fore200e_vcc->rate.data_cells; in fore200e_send()
1704 tpd->rate.idle_cells = fore200e_vcc->rate.idle_cells; in fore200e_send()
1707 tpd->atm_header.clp = (*cell_header & ATM_HDR_CLP); in fore200e_send()
[all …]
Dfore200e.h142 typedef struct tpd { struct
524 struct tpd* tpd; /* addr of transmit PDU descriptor */ member
614 … struct chunk tpd; /* array of tpds */ member
Dhe.h182 volatile u32 tpd; member
/Linux-v4.19/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1596 atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd) in atl1e_get_tx_buffer() argument
1600 return &tx_ring->tx_buffer[tpd - tx_ring->desc]; in atl1e_get_tx_buffer()
1633 struct sk_buff *skb, struct atl1e_tpd_desc *tpd) in atl1e_tso_csum() argument
1668 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
1671 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1e_tso_csum()
1674 tpd->word3 |= ((skb_shinfo(skb)->gso_size) & in atl1e_tso_csum()
1676 tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
1693 tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) << in atl1e_tso_csum()
1695 tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) << in atl1e_tso_csum()
1697 tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
[all …]
/Linux-v4.19/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c1956 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd) in atl1c_get_tx_buffer() argument
1960 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
1984 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2021 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; in atl1c_tso_csum()
2027 *(struct atl1c_tpd_ext_desc **)(tpd); in atl1c_tso_csum()
2030 *tpd = atl1c_get_tpd(adapter, type); in atl1c_tso_csum()
2048 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; in atl1c_tso_csum()
2051 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; in atl1c_tso_csum()
2052 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << in atl1c_tso_csum()
2054 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << in atl1c_tso_csum()
[all …]
/Linux-v4.19/drivers/gpu/drm/i915/
Ddvo_ch7xxx.c279 u8 tvco, tpcp, tpd, tlpf, idf; in ch7xxx_mode_set() local
284 tpd = 0x16; in ch7xxx_mode_set()
289 tpd = 0x26; in ch7xxx_mode_set()
296 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); in ch7xxx_mode_set()
/Linux-v4.19/drivers/net/ethernet/atheros/alx/
Dmain.c500 memset(txq->tpd, 0, txq->count * sizeof(struct alx_txd)); in alx_free_txring_buf()
624 txq->tpd = alx->descmem.virt + offset; in alx_alloc_tx_ring()
1439 struct alx_txd *tpd, *first_tpd; in alx_map_tx_skb() local
1443 first_tpd = &txq->tpd[txq->write_idx]; in alx_map_tx_skb()
1444 tpd = first_tpd; in alx_map_tx_skb()
1446 if (tpd->word1 & (1 << TPD_LSO_V2_SHIFT)) { in alx_map_tx_skb()
1450 tpd = &txq->tpd[txq->write_idx]; in alx_map_tx_skb()
1451 tpd->len = first_tpd->len; in alx_map_tx_skb()
1452 tpd->vlan_tag = first_tpd->vlan_tag; in alx_map_tx_skb()
1453 tpd->word1 = first_tpd->word1; in alx_map_tx_skb()
[all …]
Dalx.h76 struct alx_txd *tpd; member
/Linux-v4.19/drivers/net/ethernet/atheros/atlx/
Datl1.c2312 struct tx_packet_desc *tpd; in atl1_tx_queue() local
2319 tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use); in atl1_tx_queue()
2320 if (tpd != ptpd) in atl1_tx_queue()
2321 memcpy(tpd, ptpd, sizeof(struct tx_packet_desc)); in atl1_tx_queue()
2322 tpd->buffer_addr = cpu_to_le64(buffer_info->dma); in atl1_tx_queue()
2323 tpd->word2 &= ~(TPD_BUFLEN_MASK << TPD_BUFLEN_SHIFT); in atl1_tx_queue()
2324 tpd->word2 |= (cpu_to_le16(buffer_info->length) & in atl1_tx_queue()
2331 val = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & in atl1_tx_queue()
2335 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; in atl1_tx_queue()
2337 tpd->word3 &= ~(1 << TPD_HDRFLAG_SHIFT); in atl1_tx_queue()
[all …]