Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/pwm/
Dpwm-renesas-tpu.c86 struct tpu_pwm_device tpd[TPU_CHANNEL_MAX]; member
94 static void tpu_pwm_write(struct tpu_pwm_device *tpd, int reg_nr, u16 value) in tpu_pwm_write() argument
96 void __iomem *base = tpd->tpu->base + TPU_CHANNEL_OFFSET in tpu_pwm_write()
97 + tpd->channel * TPU_CHANNEL_SIZE; in tpu_pwm_write()
102 static void tpu_pwm_set_pin(struct tpu_pwm_device *tpd, in tpu_pwm_set_pin() argument
107 dev_dbg(&tpd->tpu->pdev->dev, "%u: configuring pin as %s\n", in tpu_pwm_set_pin()
108 tpd->channel, states[state]); in tpu_pwm_set_pin()
112 tpu_pwm_write(tpd, TPU_TIORn, in tpu_pwm_set_pin()
113 tpd->polarity == PWM_POLARITY_INVERSED ? in tpu_pwm_set_pin()
117 tpu_pwm_write(tpd, TPU_TIORn, in tpu_pwm_set_pin()
[all …]
/linux-6.12.1/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-6.12.1/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-6.12.1/drivers/platform/surface/
Dsurface_platform_profile.c160 struct ssam_platform_profile_device *tpd; in ssam_platform_profile_get() local
164 tpd = container_of(pprof, struct ssam_platform_profile_device, handler); in ssam_platform_profile_get()
166 status = ssam_tmp_profile_get(tpd->sdev, &tp); in ssam_platform_profile_get()
170 status = convert_ssam_tmp_to_profile(tpd->sdev, tp); in ssam_platform_profile_get()
181 struct ssam_platform_profile_device *tpd; in ssam_platform_profile_set() local
184 tpd = container_of(pprof, struct ssam_platform_profile_device, handler); in ssam_platform_profile_set()
186 tp = convert_profile_to_ssam_tmp(tpd->sdev, profile); in ssam_platform_profile_set()
190 tp = ssam_tmp_profile_set(tpd->sdev, tp); in ssam_platform_profile_set()
194 if (tpd->has_fan) { in ssam_platform_profile_set()
195 tp = convert_profile_to_ssam_fan(tpd->sdev, profile); in ssam_platform_profile_set()
[all …]
/linux-6.12.1/drivers/atm/
Dhe.c1608 struct he_tpd *tpd; in __alloc_tpd() local
1611 tpd = dma_pool_alloc(he_dev->tpd_pool, GFP_ATOMIC, &mapping); in __alloc_tpd()
1612 if (tpd == NULL) in __alloc_tpd()
1615 tpd->status = TPD_ADDR(mapping); in __alloc_tpd()
1616 tpd->reserved = 0; in __alloc_tpd()
1617 tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0; in __alloc_tpd()
1618 tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0; in __alloc_tpd()
1619 tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0; in __alloc_tpd()
1621 return tpd; in __alloc_tpd()
1804 struct he_tpd *tpd; in he_service_tbrq() local
[all …]
Dfore200e.c393 fore200e_dma_chunk_free(fore200e, &fore200e->host_txq.tpd); in fore200e_shutdown()
790 dma_unmap_single(fore200e->dev, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length, in fore200e_tx_irq()
1469 struct tpd* tpd; in fore200e_send() local
1597 tpd = entry->tpd; in fore200e_send()
1598 tpd->tsd[ 0 ].buffer = dma_map_single(fore200e->dev, data, tx_len, in fore200e_send()
1600 if (dma_mapping_error(fore200e->dev, tpd->tsd[0].buffer)) { in fore200e_send()
1606 tpd->tsd[ 0 ].length = tx_len; in fore200e_send()
1617 tpd->tsd[0].length, skb_len); in fore200e_send()
1626 tpd->rate.data_cells = fore200e_vcc->rate.data_cells; in fore200e_send()
1627 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-6.12.1/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1592 atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd) in atl1e_get_tx_buffer() argument
1596 return &tx_ring->tx_buffer[tpd - tx_ring->desc]; in atl1e_get_tx_buffer()
1628 struct sk_buff *skb, struct atl1e_tpd_desc *tpd) in atl1e_tso_csum() argument
1666 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
1669 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1e_tso_csum()
1672 tpd->word3 |= ((skb_shinfo(skb)->gso_size) & in atl1e_tso_csum()
1674 tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
1691 tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) << in atl1e_tso_csum()
1693 tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) << in atl1e_tso_csum()
1695 tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
[all …]
/linux-6.12.1/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c2014 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd) in atl1c_get_tx_buffer() argument
2018 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
2042 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2082 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; in atl1c_tso_csum()
2088 *(struct atl1c_tpd_ext_desc **)(tpd); in atl1c_tso_csum()
2091 *tpd = atl1c_get_tpd(adapter, queue); in atl1c_tso_csum()
2107 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; in atl1c_tso_csum()
2110 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; in atl1c_tso_csum()
2111 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << in atl1c_tso_csum()
2113 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << in atl1c_tso_csum()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/display/
Ddvo_ch7xxx.c291 u8 tvco, tpcp, tpd, tlpf, idf; in ch7xxx_mode_set() local
296 tpd = 0x16; in ch7xxx_mode_set()
301 tpd = 0x26; in ch7xxx_mode_set()
308 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); in ch7xxx_mode_set()
/linux-6.12.1/drivers/net/ethernet/atheros/alx/
Dmain.c499 memset(txq->tpd, 0, txq->count * sizeof(struct alx_txd)); in alx_free_txring_buf()
623 txq->tpd = alx->descmem.virt + offset; in alx_alloc_tx_ring()
1462 struct alx_txd *tpd, *first_tpd; in alx_map_tx_skb() local
1466 first_tpd = &txq->tpd[txq->write_idx]; in alx_map_tx_skb()
1467 tpd = first_tpd; in alx_map_tx_skb()
1469 if (tpd->word1 & (1 << TPD_LSO_V2_SHIFT)) { in alx_map_tx_skb()
1473 tpd = &txq->tpd[txq->write_idx]; in alx_map_tx_skb()
1474 tpd->len = first_tpd->len; in alx_map_tx_skb()
1475 tpd->vlan_tag = first_tpd->vlan_tag; in alx_map_tx_skb()
1476 tpd->word1 = first_tpd->word1; in alx_map_tx_skb()
[all …]
Dalx.h76 struct alx_txd *tpd; member
/linux-6.12.1/Documentation/trace/coresight/
Dcoresight-tpda.rst30 /sys/bus/coresight/devices # ls -l | grep tpd
/linux-6.12.1/drivers/net/ethernet/atheros/atlx/
Datl1.c2295 struct tx_packet_desc *tpd; in atl1_tx_queue() local
2302 tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use); in atl1_tx_queue()
2303 if (tpd != ptpd) in atl1_tx_queue()
2304 memcpy(tpd, ptpd, sizeof(struct tx_packet_desc)); in atl1_tx_queue()
2305 tpd->buffer_addr = cpu_to_le64(buffer_info->dma); in atl1_tx_queue()
2306 tpd->word2 &= ~(TPD_BUFLEN_MASK << TPD_BUFLEN_SHIFT); in atl1_tx_queue()
2307 tpd->word2 |= (cpu_to_le16(buffer_info->length) & in atl1_tx_queue()
2314 val = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & in atl1_tx_queue()
2318 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; in atl1_tx_queue()
2320 tpd->word3 &= ~(1 << TPD_HDRFLAG_SHIFT); in atl1_tx_queue()
[all …]