Searched refs:tpd (Results 1 - 15 of 15) sorted by relevance

/linux-master/drivers/gpu/drm/bridge/
H A Dti-tpd12s015.c43 struct tpd12s015_device *tpd = to_tpd12s015(bridge); local
49 ret = drm_bridge_attach(bridge->encoder, tpd->next_bridge,
54 gpiod_set_value_cansleep(tpd->ls_oe_gpio, 1);
64 struct tpd12s015_device *tpd = to_tpd12s015(bridge); local
66 gpiod_set_value_cansleep(tpd->ls_oe_gpio, 0);
71 struct tpd12s015_device *tpd = to_tpd12s015(bridge); local
73 if (gpiod_get_value_cansleep(tpd->hpd_gpio))
81 struct tpd12s015_device *tpd = to_tpd12s015(bridge); local
83 gpiod_set_value_cansleep(tpd->ct_cp_hpd_gpio, 1);
88 struct tpd12s015_device *tpd local
103 struct tpd12s015_device *tpd = data; local
113 struct tpd12s015_device *tpd; local
184 struct tpd12s015_device *tpd = platform_get_drvdata(pdev); local
[all...]
/linux-master/drivers/pwm/
H A Dpwm-renesas-tpu.c86 struct tpu_pwm_device tpd[TPU_CHANNEL_MAX]; member in struct:tpu_device
94 static void tpu_pwm_write(struct tpu_pwm_device *tpd, int reg_nr, u16 value) argument
96 void __iomem *base = tpd->tpu->base + TPU_CHANNEL_OFFSET
97 + tpd->channel * TPU_CHANNEL_SIZE;
102 static void tpu_pwm_set_pin(struct tpu_pwm_device *tpd, argument
107 dev_dbg(&tpd->tpu->pdev->dev, "%u: configuring pin as %s\n",
108 tpd->channel, states[state]);
112 tpu_pwm_write(tpd, TPU_TIORn,
113 tpd->polarity == PWM_POLARITY_INVERSED ?
117 tpu_pwm_write(tpd, TPU_TIOR
129 tpu_pwm_start_stop(struct tpu_pwm_device *tpd, int start) argument
146 tpu_pwm_timer_start(struct tpu_pwm_device *tpd) argument
193 tpu_pwm_timer_stop(struct tpu_pwm_device *tpd) argument
215 struct tpu_pwm_device *tpd; local
237 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; local
246 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; local
355 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; local
365 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; local
388 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; local
[all...]
/linux-master/drivers/net/ethernet/qualcomm/emac/
H A Demac-mac.h79 #define TPD_BUF_LEN_SET(tpd, val) BITS_SET((tpd)->word[0], 0, 15, val)
81 #define TPD_CSX_SET(tpd, val) BITS_SET((tpd)->word[1], 8, 8, val)
83 #define TPD_LSO(tpd) BITS_GET((tpd)->word[1], 12, 12)
84 #define TPD_LSO_SET(tpd, val) BITS_SET((tpd)->word[1], 12, 12, val)
89 #define TPD_LSOV_SET(tpd, val) BITS_SET((tpd)
208 struct emac_tpd_ring tpd; member in struct:emac_tx_queue
[all...]
H A 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),
308 writel(lower_32_bits(adpt->tx_q.tpd.dma_addr),
311 writel(adpt->tx_q.tpd.count & TPD_RING_SIZE_BMSK,
592 if (!tx_q->tpd.tpbuff)
595 for (i = 0; i < tx_q->tpd.count; i++) {
610 size = sizeof(struct emac_buffer) * tx_q->tpd.count;
611 memset(tx_q->tpd.tpbuff, 0, size);
614 memset(tx_q->tpd
1025 emac_tx_tpd_create(struct emac_adapter *adpt, struct emac_tx_queue *tx_q, struct emac_tpd *tpd) argument
1245 emac_tso_csum(struct emac_adapter *adpt, struct emac_tx_queue *tx_q, struct sk_buff *skb, struct emac_tpd *tpd) argument
1330 emac_tx_fill_tpd(struct emac_adapter *adpt, struct emac_tx_queue *tx_q, struct sk_buff *skb, struct emac_tpd *tpd) argument
1441 struct emac_tpd tpd; local
[all...]
/linux-master/drivers/platform/surface/
H A Dsurface_platform_profile.c111 struct ssam_tmp_profile_device *tpd; local
115 tpd = container_of(pprof, struct ssam_tmp_profile_device, handler);
117 status = ssam_tmp_profile_get(tpd->sdev, &tp);
121 status = convert_ssam_to_profile(tpd->sdev, tp);
132 struct ssam_tmp_profile_device *tpd; local
135 tpd = container_of(pprof, struct ssam_tmp_profile_device, handler);
137 tp = convert_profile_to_ssam(tpd->sdev, profile);
141 return ssam_tmp_profile_set(tpd->sdev, tp);
146 struct ssam_tmp_profile_device *tpd; local
148 tpd
[all...]
/linux-master/drivers/atm/
H A Dhe.c1423 he_dev->tpd_pool = dma_pool_create("tpd", &he_dev->pci_dev->dev,
1426 hprintk("unable to create tpd dma_pool\n");
1608 struct he_tpd *tpd; local
1611 tpd = dma_pool_alloc(he_dev->tpd_pool, GFP_ATOMIC, &mapping);
1612 if (tpd == NULL)
1615 tpd->status = TPD_ADDR(mapping);
1616 tpd->reserved = 0;
1617 tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0;
1618 tpd
1804 struct he_tpd *tpd; local
2050 __enqueue_tpd(struct he_dev *he_dev, struct he_tpd *tpd, unsigned cid) argument
2333 struct he_tpd *tpd; local
2491 struct he_tpd *tpd; local
[all...]
H A Dfore200e.c396 fore200e_dma_chunk_free(fore200e, &fore200e->host_txq.tpd);
793 dma_unmap_single(fore200e->dev, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length,
1472 struct tpd* tpd; local
1600 tpd = entry->tpd;
1601 tpd->tsd[ 0 ].buffer = dma_map_single(fore200e->dev, data, tx_len,
1603 if (dma_mapping_error(fore200e->dev, tpd->tsd[0].buffer)) {
1609 tpd
[all...]
H A Dfore200e.h142 typedef struct tpd { struct
144 struct tpd_spec spec; /* tpd specification */
145 struct tpd_rate rate; /* tpd rate control */
201 /* tpd DMA address */
205 u32 size : 4, /* tpd size expressed in 32 byte blocks */
207 u32 haddr : 27 /* tpd DMA addr aligned on 32 byte boundary */
216 struct tpd_haddr tpd_haddr; /* host DMA address of tpd */
524 struct tpd* tpd; /* addr of transmit PDU descriptor */ member in struct:host_txq_entry
525 u32 tpd_dma; /* DMA address of tpd */
614 struct chunk tpd; /* array of tpds */ member in struct:host_txq
[all...]
H A Dhe.h182 volatile u32 tpd; member in struct:he_tpdrq
/linux-master/drivers/net/ethernet/atheros/alx/
H A Dalx.h76 struct alx_txd *tpd; member in struct:alx_tx_queue
H A Dmain.c499 memset(txq->tpd, 0, txq->count * sizeof(struct alx_txd));
623 txq->tpd = alx->descmem.virt + offset;
1462 struct alx_txd *tpd, *first_tpd; local
1466 first_tpd = &txq->tpd[txq->write_idx];
1467 tpd = first_tpd;
1469 if (tpd->word1 & (1 << TPD_LSO_V2_SHIFT)) {
1473 tpd = &txq->tpd[txq->write_idx];
1474 tpd->len = first_tpd->len;
1475 tpd
[all...]
/linux-master/drivers/gpu/drm/i915/display/
H A Ddvo_ch7xxx.c291 u8 tvco, tpcp, tpd, tlpf, idf; local
296 tpd = 0x16;
301 tpd = 0x26;
308 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd);
/linux-master/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c1574 * get next usable tpd
1576 * there is enough tpd to use
1592 atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd) argument
1596 return &tx_ring->tx_buffer[tpd - tx_ring->desc];
1628 struct sk_buff *skb, struct atl1e_tpd_desc *tpd)
1666 tpd->word3 |= (ip_hdr(skb)->ihl &
1669 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) &
1672 tpd->word3 |= ((skb_shinfo(skb)->gso_size) &
1674 tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT;
1691 tpd
1627 atl1e_tso_csum(struct atl1e_adapter *adapter, struct sk_buff *skb, struct atl1e_tpd_desc *tpd) argument
1702 atl1e_tx_map(struct atl1e_adapter *adapter, struct sk_buff *skb, struct atl1e_tpd_desc *tpd) argument
1849 atl1e_tx_queue(struct atl1e_adapter *adapter, u16 count, struct atl1e_tpd_desc *tpd) argument
1866 struct atl1e_tpd_desc *tpd; local
[all...]
/linux-master/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_main.c997 /* Even though only one tpd queue is actually used, the "high"
998 * priority tpd queue also gets initialized
1994 * get next usable tpd
1996 * there is enough tpd to use
2014 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd) argument
2018 return &tpd_ring->buffer_info[tpd -
2042 struct atl1c_tpd_desc **tpd,
2082 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT;
2088 *(struct atl1c_tpd_ext_desc **)(tpd);
2091 *tpd
2040 atl1c_tso_csum(struct atl1c_adapter *adapter, struct sk_buff *skb, struct atl1c_tpd_desc **tpd, u32 queue) argument
2147 struct atl1c_tpd_desc *tpd; local
2163 atl1c_tx_map(struct atl1c_adapter *adapter, struct sk_buff *skb, struct atl1c_tpd_desc *tpd, u32 queue) argument
2275 struct atl1c_tpd_desc *tpd; local
[all...]
/linux-master/drivers/net/ethernet/atheros/atlx/
H A Datl1.c1568 /* min tpd fetch gap & tx jumbo packet size threshold for taskoffload */
2286 /* last tpd's buffer-info */
2295 struct tx_packet_desc *tpd; local
2302 tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use);
2303 if (tpd != ptpd)
2304 memcpy(tpd, ptpd, sizeof(struct tx_packet_desc));
2305 tpd->buffer_addr = cpu_to_le64(buffer_info->dma);
2306 tpd->word2 &= ~(TPD_BUFLEN_MASK << TPD_BUFLEN_SHIFT);
2307 tpd->word2 |= (cpu_to_le16(buffer_info->length) &
2314 val = (tpd
[all...]

Completed in 284 milliseconds