Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/gpu/drm/bridge/
Dti-tpd12s015.c43 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_attach() local
49 ret = drm_bridge_attach(bridge->encoder, tpd->next_bridge, in tpd12s015_attach()
54 gpiod_set_value_cansleep(tpd->ls_oe_gpio, 1); in tpd12s015_attach()
64 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_detach() local
66 gpiod_set_value_cansleep(tpd->ls_oe_gpio, 0); in tpd12s015_detach()
71 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_detect() local
73 if (gpiod_get_value_cansleep(tpd->hpd_gpio)) in tpd12s015_detect()
81 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_hpd_enable() local
83 gpiod_set_value_cansleep(tpd->ct_cp_hpd_gpio, 1); in tpd12s015_hpd_enable()
88 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_hpd_disable() local
[all …]
/Linux-v5.10/drivers/net/ethernet/qualcomm/emac/
Demac-mac.h79 #define TPD_BUF_LEN_SET(tpd, val) BITS_SET((tpd)->word[0], 0, 15, val) argument
81 #define TPD_CSX_SET(tpd, val) BITS_SET((tpd)->word[1], 8, 8, val) argument
83 #define TPD_LSO(tpd) BITS_GET((tpd)->word[1], 12, 12) argument
84 #define TPD_LSO_SET(tpd, val) BITS_SET((tpd)->word[1], 12, 12, val) argument
89 #define TPD_LSOV_SET(tpd, val) BITS_SET((tpd)->word[1], 13, 13, val) argument
93 #define TPD_IPV4_SET(tpd, val) BITS_SET((tpd)->word[1], 16, 16, val) argument
97 #define TPD_TYP_SET(tpd, val) BITS_SET((tpd)->word[1], 17, 17, val) argument
99 #define TPD_BUFFER_ADDR_L_SET(tpd, val) ((tpd)->word[2] = cpu_to_le32(val)) argument
103 #define TPD_CVLAN_TAG_SET(tpd, val) BITS_SET((tpd)->word[3], 0, 15, val) argument
106 #define TPD_INSTC_SET(tpd, val) BITS_SET((tpd)->word[3], 17, 17, val) argument
[all …]
Demac-mac.c236 #define EMAC_TPD(TXQ, SIZE, IDX) ((TXQ)->tpd.v_addr + (SIZE * (IDX)))
239 #define GET_TPD_BUFFER(RTQ, IDX) (&((RTQ)->tpd.tpbuff[(IDX)]))
305 writel(upper_32_bits(adpt->tx_q.tpd.dma_addr), in emac_mac_dma_rings_config()
308 writel(lower_32_bits(adpt->tx_q.tpd.dma_addr), in emac_mac_dma_rings_config()
311 writel(adpt->tx_q.tpd.count & TPD_RING_SIZE_BMSK, in emac_mac_dma_rings_config()
592 if (!tx_q->tpd.tpbuff) in emac_tx_q_descs_free()
595 for (i = 0; i < tx_q->tpd.count; i++) { in emac_tx_q_descs_free()
610 size = sizeof(struct emac_buffer) * tx_q->tpd.count; in emac_tx_q_descs_free()
611 memset(tx_q->tpd.tpbuff, 0, size); in emac_tx_q_descs_free()
614 memset(tx_q->tpd.v_addr, 0, tx_q->tpd.size); in emac_tx_q_descs_free()
[all …]
/Linux-v5.10/drivers/atm/
Dhe.c1611 struct he_tpd *tpd; in __alloc_tpd() local
1614 tpd = dma_pool_alloc(he_dev->tpd_pool, GFP_ATOMIC, &mapping); in __alloc_tpd()
1615 if (tpd == NULL) in __alloc_tpd()
1618 tpd->status = TPD_ADDR(mapping); in __alloc_tpd()
1619 tpd->reserved = 0; in __alloc_tpd()
1620 tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0; in __alloc_tpd()
1621 tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0; in __alloc_tpd()
1622 tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0; in __alloc_tpd()
1624 return tpd; in __alloc_tpd()
1807 struct he_tpd *tpd; in he_service_tbrq() local
[all …]
Dfore200e.c399 fore200e_dma_chunk_free(fore200e, &fore200e->host_txq.tpd); in fore200e_shutdown()
795 dma_unmap_single(fore200e->dev, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length, in fore200e_tx_irq()
1474 struct tpd* tpd; in fore200e_send() local
1602 tpd = entry->tpd; in fore200e_send()
1603 tpd->tsd[ 0 ].buffer = dma_map_single(fore200e->dev, data, tx_len, in fore200e_send()
1605 if (dma_mapping_error(fore200e->dev, tpd->tsd[0].buffer)) { in fore200e_send()
1611 tpd->tsd[ 0 ].length = tx_len; in fore200e_send()
1622 tpd->tsd[0].length, skb_len); in fore200e_send()
1631 tpd->rate.data_cells = fore200e_vcc->rate.data_cells; in fore200e_send()
1632 tpd->rate.idle_cells = fore200e_vcc->rate.idle_cells; 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-v5.10/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1589 atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd) in atl1e_get_tx_buffer() argument
1593 return &tx_ring->tx_buffer[tpd - tx_ring->desc]; in atl1e_get_tx_buffer()
1626 struct sk_buff *skb, struct atl1e_tpd_desc *tpd) in atl1e_tso_csum() argument
1661 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
1664 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1e_tso_csum()
1667 tpd->word3 |= ((skb_shinfo(skb)->gso_size) & in atl1e_tso_csum()
1669 tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
1686 tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) << in atl1e_tso_csum()
1688 tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) << in atl1e_tso_csum()
1690 tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
[all …]
/Linux-v5.10/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c1941 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd) in atl1c_get_tx_buffer() argument
1945 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
1969 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2006 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; in atl1c_tso_csum()
2012 *(struct atl1c_tpd_ext_desc **)(tpd); in atl1c_tso_csum()
2015 *tpd = atl1c_get_tpd(adapter, type); in atl1c_tso_csum()
2031 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; in atl1c_tso_csum()
2034 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; in atl1c_tso_csum()
2035 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << in atl1c_tso_csum()
2037 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << in atl1c_tso_csum()
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/display/
Ddvo_ch7xxx.c280 u8 tvco, tpcp, tpd, tlpf, idf; in ch7xxx_mode_set() local
285 tpd = 0x16; in ch7xxx_mode_set()
290 tpd = 0x26; in ch7xxx_mode_set()
297 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); in ch7xxx_mode_set()
/Linux-v5.10/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-v5.10/drivers/net/ethernet/atheros/atlx/
Datl1.c2292 struct tx_packet_desc *tpd; in atl1_tx_queue() local
2299 tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use); in atl1_tx_queue()
2300 if (tpd != ptpd) in atl1_tx_queue()
2301 memcpy(tpd, ptpd, sizeof(struct tx_packet_desc)); in atl1_tx_queue()
2302 tpd->buffer_addr = cpu_to_le64(buffer_info->dma); in atl1_tx_queue()
2303 tpd->word2 &= ~(TPD_BUFLEN_MASK << TPD_BUFLEN_SHIFT); in atl1_tx_queue()
2304 tpd->word2 |= (cpu_to_le16(buffer_info->length) & in atl1_tx_queue()
2311 val = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & in atl1_tx_queue()
2315 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; in atl1_tx_queue()
2317 tpd->word3 &= ~(1 << TPD_HDRFLAG_SHIFT); in atl1_tx_queue()
[all …]