Symbol: tpd
drivers/atm/fore200e.c
1475
struct tpd* tpd;
drivers/atm/fore200e.c
1603
tpd = entry->tpd;
drivers/atm/fore200e.c
1604
tpd->tsd[ 0 ].buffer = dma_map_single(fore200e->dev, data, tx_len,
drivers/atm/fore200e.c
1606
if (dma_mapping_error(fore200e->dev, tpd->tsd[0].buffer)) {
drivers/atm/fore200e.c
1612
tpd->tsd[ 0 ].length = tx_len;
drivers/atm/fore200e.c
1623
tpd->tsd[0].length, skb_len);
drivers/atm/fore200e.c
1632
tpd->rate.data_cells = fore200e_vcc->rate.data_cells;
drivers/atm/fore200e.c
1633
tpd->rate.idle_cells = fore200e_vcc->rate.idle_cells;
drivers/atm/fore200e.c
1636
tpd->atm_header.clp = (*cell_header & ATM_HDR_CLP);
drivers/atm/fore200e.c
1637
tpd->atm_header.plt = (*cell_header & ATM_HDR_PTI_MASK) >> ATM_HDR_PTI_SHIFT;
drivers/atm/fore200e.c
1638
tpd->atm_header.vci = (*cell_header & ATM_HDR_VCI_MASK) >> ATM_HDR_VCI_SHIFT;
drivers/atm/fore200e.c
1639
tpd->atm_header.vpi = (*cell_header & ATM_HDR_VPI_MASK) >> ATM_HDR_VPI_SHIFT;
drivers/atm/fore200e.c
1640
tpd->atm_header.gfc = (*cell_header & ATM_HDR_GFC_MASK) >> ATM_HDR_GFC_SHIFT;
drivers/atm/fore200e.c
1644
tpd->atm_header.clp = 0;
drivers/atm/fore200e.c
1645
tpd->atm_header.plt = 0;
drivers/atm/fore200e.c
1646
tpd->atm_header.vci = vcc->vci;
drivers/atm/fore200e.c
1647
tpd->atm_header.vpi = vcc->vpi;
drivers/atm/fore200e.c
1648
tpd->atm_header.gfc = 0;
drivers/atm/fore200e.c
1651
tpd->spec.length = tx_len;
drivers/atm/fore200e.c
1652
tpd->spec.nseg = 1;
drivers/atm/fore200e.c
1653
tpd->spec.aal = fore200e_atm2fore_aal(vcc->qos.aal);
drivers/atm/fore200e.c
1654
tpd->spec.intr = 1;
drivers/atm/fore200e.c
1656
tpd_haddr.size = sizeof(struct tpd) / (1<<TPD_HADDR_SHIFT); /* size is expressed in 32 byte blocks */
drivers/atm/fore200e.c
2189
&txq->tpd,
drivers/atm/fore200e.c
2190
sizeof(struct tpd),
drivers/atm/fore200e.c
2206
txq->host_entry[ i ].tpd =
drivers/atm/fore200e.c
2207
FORE200E_INDEX(txq->tpd.align_addr, struct tpd, i);
drivers/atm/fore200e.c
2209
FORE200E_DMA_INDEX(txq->tpd.dma_addr, struct tpd, i);
drivers/atm/fore200e.c
397
fore200e_dma_chunk_free(fore200e, &fore200e->host_txq.tpd);
drivers/atm/fore200e.c
794
dma_unmap_single(fore200e->dev, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length,
drivers/atm/fore200e.h
524
struct tpd* tpd; /* addr of transmit PDU descriptor */
drivers/atm/fore200e.h
614
struct chunk tpd; /* array of tpds */
drivers/atm/he.c
1606
struct he_tpd *tpd;
drivers/atm/he.c
1609
tpd = dma_pool_alloc(he_dev->tpd_pool, GFP_ATOMIC, &mapping);
drivers/atm/he.c
1610
if (tpd == NULL)
drivers/atm/he.c
1613
tpd->status = TPD_ADDR(mapping);
drivers/atm/he.c
1614
tpd->reserved = 0;
drivers/atm/he.c
1615
tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0;
drivers/atm/he.c
1616
tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0;
drivers/atm/he.c
1617
tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0;
drivers/atm/he.c
1619
return tpd;
drivers/atm/he.c
1802
struct he_tpd *tpd;
drivers/atm/he.c
1816
tpd = NULL;
drivers/atm/he.c
1819
tpd = __tpd;
drivers/atm/he.c
1825
if (tpd == NULL) {
drivers/atm/he.c
1833
he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci));
drivers/atm/he.c
1834
if (tpd->vcc)
drivers/atm/he.c
1835
wake_up(&HE_VCC(tpd->vcc)->tx_waitq);
drivers/atm/he.c
1841
if (tpd->iovec[slot].addr)
drivers/atm/he.c
1843
tpd->iovec[slot].addr,
drivers/atm/he.c
1844
tpd->iovec[slot].len & TPD_LEN_MASK,
drivers/atm/he.c
1846
if (tpd->iovec[slot].len & TPD_LST)
drivers/atm/he.c
1851
if (tpd->skb) { /* && !TBRQ_MULTIPLE(he_dev->tbrq_head) */
drivers/atm/he.c
1852
if (tpd->vcc && tpd->vcc->pop)
drivers/atm/he.c
1853
tpd->vcc->pop(tpd->vcc, tpd->skb);
drivers/atm/he.c
1855
dev_kfree_skb_any(tpd->skb);
drivers/atm/he.c
1859
if (tpd)
drivers/atm/he.c
1860
dma_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status));
drivers/atm/he.c
2048
__enqueue_tpd(struct he_dev *he_dev, struct he_tpd *tpd, unsigned cid)
drivers/atm/he.c
2053
tpd, cid, he_dev->tpdrq_tail);
drivers/atm/he.c
2082
if (tpd->iovec[slot].addr)
drivers/atm/he.c
2084
tpd->iovec[slot].addr,
drivers/atm/he.c
2085
tpd->iovec[slot].len & TPD_LEN_MASK,
drivers/atm/he.c
2088
if (tpd->skb) {
drivers/atm/he.c
2089
if (tpd->vcc->pop)
drivers/atm/he.c
2090
tpd->vcc->pop(tpd->vcc, tpd->skb);
drivers/atm/he.c
2092
dev_kfree_skb_any(tpd->skb);
drivers/atm/he.c
2093
atomic_inc(&tpd->vcc->stats->tx_err);
drivers/atm/he.c
2095
dma_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status));
drivers/atm/he.c
2101
list_add_tail(&tpd->entry, &he_dev->outstanding_tpds);
drivers/atm/he.c
2102
he_dev->tpdrq_tail->tpd = TPD_ADDR(tpd->status);
drivers/atm/he.c
2331
struct he_tpd *tpd;
drivers/atm/he.c
2422
tpd = __alloc_tpd(he_dev);
drivers/atm/he.c
2423
if (tpd == NULL) {
drivers/atm/he.c
2427
tpd->status |= TPD_EOS | TPD_INT;
drivers/atm/he.c
2428
tpd->skb = NULL;
drivers/atm/he.c
2429
tpd->vcc = vcc;
drivers/atm/he.c
2434
__enqueue_tpd(he_dev, tpd, cid);
drivers/atm/he.c
2489
struct he_tpd *tpd;
drivers/atm/he.c
2522
tpd = __alloc_tpd(he_dev);
drivers/atm/he.c
2523
if (tpd == NULL) {
drivers/atm/he.c
2534
tpd->status |= TPD_CELLTYPE(TPD_USERCELL);
drivers/atm/he.c
2541
tpd->status |= TPD_CELLTYPE(pti);
drivers/atm/he.c
2543
tpd->status |= TPD_CLP;
drivers/atm/he.c
2549
tpd->iovec[slot].addr = dma_map_single(&he_dev->pci_dev->dev, skb->data,
drivers/atm/he.c
2551
tpd->iovec[slot].len = skb_headlen(skb);
drivers/atm/he.c
2558
tpd->vcc = vcc;
drivers/atm/he.c
2559
tpd->skb = NULL; /* not the last fragment
drivers/atm/he.c
2563
__enqueue_tpd(he_dev, tpd, cid);
drivers/atm/he.c
2564
tpd = __alloc_tpd(he_dev);
drivers/atm/he.c
2565
if (tpd == NULL) {
drivers/atm/he.c
2574
tpd->status |= TPD_USERCELL;
drivers/atm/he.c
2578
tpd->iovec[slot].addr = skb_frag_dma_map(&he_dev->pci_dev->dev,
drivers/atm/he.c
2580
tpd->iovec[slot].len = skb_frag_size(frag);
drivers/atm/he.c
2585
tpd->iovec[slot - 1].len |= TPD_LST;
drivers/atm/he.c
2587
tpd->address0 = dma_map_single(&he_dev->pci_dev->dev, skb->data, skb->len, DMA_TO_DEVICE);
drivers/atm/he.c
2588
tpd->length0 = skb->len | TPD_LST;
drivers/atm/he.c
2590
tpd->status |= TPD_INT;
drivers/atm/he.c
2592
tpd->vcc = vcc;
drivers/atm/he.c
2593
tpd->skb = skb;
drivers/atm/he.c
2597
__enqueue_tpd(he_dev, tpd, cid);
drivers/atm/he.h
182
volatile u32 tpd;
drivers/gpu/drm/bridge/ti-tpd12s015.c
108
struct tpd12s015_device *tpd = data;
drivers/gpu/drm/bridge/ti-tpd12s015.c
109
struct drm_bridge *bridge = &tpd->bridge;
drivers/gpu/drm/bridge/ti-tpd12s015.c
118
struct tpd12s015_device *tpd;
drivers/gpu/drm/bridge/ti-tpd12s015.c
123
tpd = devm_drm_bridge_alloc(&pdev->dev, struct tpd12s015_device,
drivers/gpu/drm/bridge/ti-tpd12s015.c
125
if (IS_ERR(tpd))
drivers/gpu/drm/bridge/ti-tpd12s015.c
126
return PTR_ERR(tpd);
drivers/gpu/drm/bridge/ti-tpd12s015.c
128
platform_set_drvdata(pdev, tpd);
drivers/gpu/drm/bridge/ti-tpd12s015.c
130
tpd->bridge.of_node = pdev->dev.of_node;
drivers/gpu/drm/bridge/ti-tpd12s015.c
131
tpd->bridge.type = DRM_MODE_CONNECTOR_HDMIA;
drivers/gpu/drm/bridge/ti-tpd12s015.c
132
tpd->bridge.ops = DRM_BRIDGE_OP_DETECT;
drivers/gpu/drm/bridge/ti-tpd12s015.c
139
tpd->bridge.next_bridge = of_drm_find_and_get_bridge(node);
drivers/gpu/drm/bridge/ti-tpd12s015.c
142
if (!tpd->bridge.next_bridge)
drivers/gpu/drm/bridge/ti-tpd12s015.c
151
tpd->ct_cp_hpd_gpio = gpio;
drivers/gpu/drm/bridge/ti-tpd12s015.c
158
tpd->ls_oe_gpio = gpio;
drivers/gpu/drm/bridge/ti-tpd12s015.c
164
tpd->hpd_gpio = gpio;
drivers/gpu/drm/bridge/ti-tpd12s015.c
167
tpd->hpd_irq = gpiod_to_irq(tpd->hpd_gpio);
drivers/gpu/drm/bridge/ti-tpd12s015.c
168
if (tpd->hpd_irq >= 0) {
drivers/gpu/drm/bridge/ti-tpd12s015.c
169
ret = devm_request_threaded_irq(&pdev->dev, tpd->hpd_irq, NULL,
drivers/gpu/drm/bridge/ti-tpd12s015.c
174
"tpd12s015 hpd", tpd);
drivers/gpu/drm/bridge/ti-tpd12s015.c
178
tpd->bridge.ops |= DRM_BRIDGE_OP_HPD;
drivers/gpu/drm/bridge/ti-tpd12s015.c
182
drm_bridge_add(&tpd->bridge);
drivers/gpu/drm/bridge/ti-tpd12s015.c
189
struct tpd12s015_device *tpd = platform_get_drvdata(pdev);
drivers/gpu/drm/bridge/ti-tpd12s015.c
191
drm_bridge_remove(&tpd->bridge);
drivers/gpu/drm/bridge/ti-tpd12s015.c
42
struct tpd12s015_device *tpd = to_tpd12s015(bridge);
drivers/gpu/drm/bridge/ti-tpd12s015.c
48
ret = drm_bridge_attach(encoder, tpd->bridge.next_bridge,
drivers/gpu/drm/bridge/ti-tpd12s015.c
53
gpiod_set_value_cansleep(tpd->ls_oe_gpio, 1);
drivers/gpu/drm/bridge/ti-tpd12s015.c
63
struct tpd12s015_device *tpd = to_tpd12s015(bridge);
drivers/gpu/drm/bridge/ti-tpd12s015.c
65
gpiod_set_value_cansleep(tpd->ls_oe_gpio, 0);
drivers/gpu/drm/bridge/ti-tpd12s015.c
70
struct tpd12s015_device *tpd = to_tpd12s015(bridge);
drivers/gpu/drm/bridge/ti-tpd12s015.c
72
if (gpiod_get_value_cansleep(tpd->hpd_gpio))
drivers/gpu/drm/bridge/ti-tpd12s015.c
86
struct tpd12s015_device *tpd = to_tpd12s015(bridge);
drivers/gpu/drm/bridge/ti-tpd12s015.c
88
gpiod_set_value_cansleep(tpd->ct_cp_hpd_gpio, 1);
drivers/gpu/drm/bridge/ti-tpd12s015.c
93
struct tpd12s015_device *tpd = to_tpd12s015(bridge);
drivers/gpu/drm/bridge/ti-tpd12s015.c
95
gpiod_set_value_cansleep(tpd->ct_cp_hpd_gpio, 0);
drivers/gpu/drm/i915/display/dvo_ch7xxx.c
293
u8 tvco, tpcp, tpd, tlpf, idf;
drivers/gpu/drm/i915/display/dvo_ch7xxx.c
298
tpd = 0x16;
drivers/gpu/drm/i915/display/dvo_ch7xxx.c
303
tpd = 0x26;
drivers/gpu/drm/i915/display/dvo_ch7xxx.c
310
ch7xxx_writeb(dvo, CH7xxx_TPD, tpd);
drivers/net/ethernet/atheros/alx/alx.h
76
struct alx_txd *tpd;
drivers/net/ethernet/atheros/alx/main.c
1462
struct alx_txd *tpd, *first_tpd;
drivers/net/ethernet/atheros/alx/main.c
1466
first_tpd = &txq->tpd[txq->write_idx];
drivers/net/ethernet/atheros/alx/main.c
1467
tpd = first_tpd;
drivers/net/ethernet/atheros/alx/main.c
1469
if (tpd->word1 & (1 << TPD_LSO_V2_SHIFT)) {
drivers/net/ethernet/atheros/alx/main.c
1473
tpd = &txq->tpd[txq->write_idx];
drivers/net/ethernet/atheros/alx/main.c
1474
tpd->len = first_tpd->len;
drivers/net/ethernet/atheros/alx/main.c
1475
tpd->vlan_tag = first_tpd->vlan_tag;
drivers/net/ethernet/atheros/alx/main.c
1476
tpd->word1 = first_tpd->word1;
drivers/net/ethernet/atheros/alx/main.c
1488
tpd->adrl.addr = cpu_to_le64(dma);
drivers/net/ethernet/atheros/alx/main.c
1489
tpd->len = cpu_to_le16(maplen);
drivers/net/ethernet/atheros/alx/main.c
1496
tpd = &txq->tpd[txq->write_idx];
drivers/net/ethernet/atheros/alx/main.c
1498
tpd->word1 = first_tpd->word1;
drivers/net/ethernet/atheros/alx/main.c
1508
tpd->adrl.addr = cpu_to_le64(dma);
drivers/net/ethernet/atheros/alx/main.c
1509
tpd->len = cpu_to_le16(maplen);
drivers/net/ethernet/atheros/alx/main.c
1513
tpd->word1 |= cpu_to_le32(1 << TPD_EOP_SHIFT);
drivers/net/ethernet/atheros/alx/main.c
1545
first = &txq->tpd[txq->write_idx];
drivers/net/ethernet/atheros/alx/main.c
499
memset(txq->tpd, 0, txq->count * sizeof(struct alx_txd));
drivers/net/ethernet/atheros/alx/main.c
623
txq->tpd = alx->descmem.virt + offset;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2014
atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd)
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2018
return &tpd_ring->buffer_info[tpd -
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2042
struct atl1c_tpd_desc **tpd,
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2082
(*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2088
*(struct atl1c_tpd_ext_desc **)(tpd);
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2091
*tpd = atl1c_get_tpd(adapter, queue);
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2107
(*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2110
(*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2111
(*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) <<
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2113
(*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) <<
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2131
(*tpd)->word1 |= ((cso >> 1) & TPD_PLOADOFFSET_MASK) <<
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2133
(*tpd)->word1 |= ((css >> 1) & TPD_CCSUM_OFFSET_MASK) <<
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2135
(*tpd)->word1 |= 1 << TPD_CCSUM_EN_SHIFT;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2147
struct atl1c_tpd_desc *tpd;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2153
tpd = ATL1C_TPD_DESC(tpd_ring, index);
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2156
memset(tpd, 0, sizeof(struct atl1c_tpd_desc));
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2164
struct sk_buff *skb, struct atl1c_tpd_desc *tpd,
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2178
tso = (tpd->word1 >> TPD_LSO_EN_SHIFT) & TPD_LSO_EN_MASK;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2183
use_tpd = tpd;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2204
use_tpd = tpd;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2207
memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2229
memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc));
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2275
struct atl1c_tpd_desc *tpd;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2292
tpd = atl1c_get_tpd(adapter, queue);
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2295
if (atl1c_tso_csum(adapter, skb, &tpd, queue) != 0) {
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2307
tpd->word1 |= 1 << TPD_INS_VTAG_SHIFT;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2308
tpd->vlan_tag = tag;
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2312
tpd->word1 |= 1 << TPD_ETH_TYPE_SHIFT; /* Ethernet frame */
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2314
if (atl1c_tx_map(adapter, skb, tpd, queue) < 0) {
drivers/net/ethernet/atheros/atl1c/atl1c_main.c
2318
atl1c_tx_rollback(adapter, tpd, queue);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1592
atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1596
return &tx_ring->tx_buffer[tpd - tx_ring->desc];
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1628
struct sk_buff *skb, struct atl1e_tpd_desc *tpd)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1666
tpd->word3 |= (ip_hdr(skb)->ihl &
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1669
tpd->word3 |= ((tcp_hdrlen(skb) >> 2) &
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1672
tpd->word3 |= ((skb_shinfo(skb)->gso_size) &
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1674
tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1691
tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) <<
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1693
tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) <<
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1695
tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1703
struct sk_buff *skb, struct atl1e_tpd_desc *tpd)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1718
segment = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1723
use_tpd = tpd;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1745
use_tpd = tpd;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1748
memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc));
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1766
tpd = atl1e_get_tpd(adapter);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1767
tx_buffer = atl1e_get_tx_buffer(adapter, tpd);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1796
memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc));
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1818
tpd = atl1e_get_tpd(adapter);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1819
tx_buffer = atl1e_get_tx_buffer(adapter, tpd);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1837
if ((tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1839
tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1850
struct atl1e_tpd_desc *tpd)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1866
struct atl1e_tpd_desc *tpd;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1885
tpd = atl1e_get_tpd(adapter);
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1891
tpd->word3 |= 1 << TPD_INS_VL_TAG_SHIFT;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1893
tpd->word2 |= (atl1e_vlan_tag & TPD_VLANTAG_MASK) <<
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1898
tpd->word3 |= 1 << TPD_VL_TAGGED_SHIFT;
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1901
tpd->word3 |= 1 << TPD_ETHTYPE_SHIFT; /* 802.3 frame */
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1904
if (atl1e_tso_csum(adapter, skb, tpd) != 0) {
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1909
if (atl1e_tx_map(adapter, skb, tpd)) {
drivers/net/ethernet/atheros/atl1e/atl1e_main.c
1914
atl1e_tx_queue(adapter, tpd_req, tpd);
drivers/net/ethernet/atheros/atlx/atl1.c
2330
struct tx_packet_desc *tpd;
drivers/net/ethernet/atheros/atlx/atl1.c
2337
tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use);
drivers/net/ethernet/atheros/atlx/atl1.c
2338
if (tpd != ptpd)
drivers/net/ethernet/atheros/atlx/atl1.c
2339
memcpy(tpd, ptpd, sizeof(struct tx_packet_desc));
drivers/net/ethernet/atheros/atlx/atl1.c
2340
tpd->buffer_addr = cpu_to_le64(buffer_info->dma);
drivers/net/ethernet/atheros/atlx/atl1.c
2341
tpd->word2 &= ~(TPD_BUFLEN_MASK << TPD_BUFLEN_SHIFT);
drivers/net/ethernet/atheros/atlx/atl1.c
2342
tpd->word2 |= (cpu_to_le16(buffer_info->length) &
drivers/net/ethernet/atheros/atlx/atl1.c
2349
val = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) &
drivers/net/ethernet/atheros/atlx/atl1.c
2353
tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT;
drivers/net/ethernet/atheros/atlx/atl1.c
2355
tpd->word3 &= ~(1 << TPD_HDRFLAG_SHIFT);
drivers/net/ethernet/atheros/atlx/atl1.c
2359
tpd->word3 |= 1 << TPD_EOP_SHIFT;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1026
struct emac_tx_queue *tx_q, struct emac_tpd *tpd)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1030
tx_q->tpd.last_produce_idx = tx_q->tpd.produce_idx;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1031
hw_tpd = EMAC_TPD(tx_q, adpt->tpd_size, tx_q->tpd.produce_idx);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1033
if (++tx_q->tpd.produce_idx == tx_q->tpd.count)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1034
tx_q->tpd.produce_idx = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1036
*(hw_tpd++) = tpd->word[0];
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1037
*(hw_tpd++) = tpd->word[1];
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1038
*(hw_tpd++) = tpd->word[2];
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1039
*hw_tpd = tpd->word[3];
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1047
EMAC_TPD(tx_q, adpt->tpd_size, tx_q->tpd.last_produce_idx);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1170
u32 produce_idx = tx_q->tpd.produce_idx;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1171
u32 consume_idx = tx_q->tpd.consume_idx;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1175
(tx_q->tpd.count + consume_idx - produce_idx - 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1187
while (tx_q->tpd.consume_idx != hw_consume_idx) {
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1188
tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.consume_idx);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1203
if (++tx_q->tpd.consume_idx == tx_q->tpd.count)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1204
tx_q->tpd.consume_idx = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1248
struct emac_tpd *tpd)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1284
TPD_IPV4_SET(tpd, 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1291
memset(tpd, 0, sizeof(*tpd));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1300
TPD_LSOV_SET(tpd, 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1303
TPD_LSO_SET(tpd, 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1304
TPD_TCPHDR_OFFSET_SET(tpd, skb_transport_offset(skb));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1305
TPD_MSS_SET(tpd, skb_shinfo(skb)->gso_size);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1321
TPD_PAYLOAD_OFFSET_SET(tpd, cso >> 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1322
TPD_CXSUM_OFFSET_SET(tpd, css >> 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1323
TPD_CSX_SET(tpd, 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1332
struct emac_tpd *tpd)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1335
unsigned int first = tx_q->tpd.produce_idx;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1344
if (TPD_LSO(tpd)) {
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1347
tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1359
TPD_BUFFER_ADDR_L_SET(tpd, lower_32_bits(tpbuf->dma_addr));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1360
TPD_BUFFER_ADDR_H_SET(tpd, upper_32_bits(tpbuf->dma_addr));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1361
TPD_BUF_LEN_SET(tpd, tpbuf->length);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1362
emac_tx_tpd_create(adpt, tx_q, tpd);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1367
tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1380
TPD_BUFFER_ADDR_L_SET(tpd, lower_32_bits(tpbuf->dma_addr));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1381
TPD_BUFFER_ADDR_H_SET(tpd, upper_32_bits(tpbuf->dma_addr));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1382
TPD_BUF_LEN_SET(tpd, tpbuf->length);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1383
emac_tx_tpd_create(adpt, tx_q, tpd);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1390
tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1400
TPD_BUFFER_ADDR_L_SET(tpd, lower_32_bits(tpbuf->dma_addr));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1401
TPD_BUFFER_ADDR_H_SET(tpd, upper_32_bits(tpbuf->dma_addr));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1402
TPD_BUF_LEN_SET(tpd, tpbuf->length);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1403
emac_tx_tpd_create(adpt, tx_q, tpd);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1420
tx_q->tpd.produce_idx = first;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1429
if (++first == tx_q->tpd.count)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1441
struct emac_tpd tpd;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1445
memset(&tpd, 0, sizeof(tpd));
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1447
if (emac_tso_csum(adpt, tx_q, skb, &tpd) != 0) {
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1456
TPD_CVLAN_TAG_SET(&tpd, tag);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1457
TPD_INSTC_SET(&tpd, 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1461
TPD_TYP_SET(&tpd, 1);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1464
emac_tx_fill_tpd(adpt, tx_q, skb, &tpd);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
1477
prod_idx = (tx_q->tpd.produce_idx << tx_q->produce_shift) &
drivers/net/ethernet/qualcomm/emac/emac-mac.c
236
#define EMAC_TPD(TXQ, SIZE, IDX) ((TXQ)->tpd.v_addr + (SIZE * (IDX)))
drivers/net/ethernet/qualcomm/emac/emac-mac.c
239
#define GET_TPD_BUFFER(RTQ, IDX) (&((RTQ)->tpd.tpbuff[(IDX)]))
drivers/net/ethernet/qualcomm/emac/emac-mac.c
305
writel(upper_32_bits(adpt->tx_q.tpd.dma_addr),
drivers/net/ethernet/qualcomm/emac/emac-mac.c
308
writel(lower_32_bits(adpt->tx_q.tpd.dma_addr),
drivers/net/ethernet/qualcomm/emac/emac-mac.c
311
writel(adpt->tx_q.tpd.count & TPD_RING_SIZE_BMSK,
drivers/net/ethernet/qualcomm/emac/emac-mac.c
592
if (!tx_q->tpd.tpbuff)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
595
for (i = 0; i < tx_q->tpd.count; i++) {
drivers/net/ethernet/qualcomm/emac/emac-mac.c
610
size = sizeof(struct emac_buffer) * tx_q->tpd.count;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
611
memset(tx_q->tpd.tpbuff, 0, size);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
614
memset(tx_q->tpd.v_addr, 0, tx_q->tpd.size);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
616
tx_q->tpd.consume_idx = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
617
tx_q->tpd.produce_idx = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
666
kfree(tx_q->tpd.tpbuff);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
667
tx_q->tpd.tpbuff = NULL;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
668
tx_q->tpd.v_addr = NULL;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
669
tx_q->tpd.dma_addr = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
670
tx_q->tpd.size = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
681
size = sizeof(struct emac_buffer) * tx_q->tpd.count;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
682
tx_q->tpd.tpbuff = kzalloc_node(size, GFP_KERNEL, node);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
683
if (!tx_q->tpd.tpbuff)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
686
tx_q->tpd.size = tx_q->tpd.count * (adpt->tpd_size * 4);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
687
tx_q->tpd.dma_addr = ring_header->dma_addr + ring_header->used;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
688
tx_q->tpd.v_addr = ring_header->v_addr + ring_header->used;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
689
ring_header->used += ALIGN(tx_q->tpd.size, 8);
drivers/net/ethernet/qualcomm/emac/emac-mac.c
690
tx_q->tpd.produce_idx = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
691
tx_q->tpd.consume_idx = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
757
adpt->tx_q.tpd.count = adpt->tx_desc_cnt;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
831
adpt->tx_q.tpd.produce_idx = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
832
adpt->tx_q.tpd.consume_idx = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.c
833
for (i = 0; i < adpt->tx_q.tpd.count; i++)
drivers/net/ethernet/qualcomm/emac/emac-mac.c
834
adpt->tx_q.tpd.tpbuff[i].dma_addr = 0;
drivers/net/ethernet/qualcomm/emac/emac-mac.h
103
#define TPD_CVLAN_TAG_SET(tpd, val) BITS_SET((tpd)->word[3], 0, 15, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
106
#define TPD_INSTC_SET(tpd, val) BITS_SET((tpd)->word[3], 17, 17, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
111
#define TPD_BUFFER_ADDR_H_SET(tpd, val) BITS_SET((tpd)->word[3], 18, 31, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
115
#define TPD_PAYLOAD_OFFSET_SET(tpd, val) BITS_SET((tpd)->word[1], 0, 7, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
119
#define TPD_CXSUM_OFFSET_SET(tpd, val) BITS_SET((tpd)->word[1], 18, 25, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
122
#define TPD_TCPHDR_OFFSET_SET(tpd, val) BITS_SET((tpd)->word[1], 0, 7, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
125
#define TPD_MSS_SET(tpd, val) BITS_SET((tpd)->word[1], 18, 30, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
127
#define TPD_PKT_LEN_SET(tpd, val) ((tpd)->word[2] = cpu_to_le32(val))
drivers/net/ethernet/qualcomm/emac/emac-mac.h
208
struct emac_tpd_ring tpd;
drivers/net/ethernet/qualcomm/emac/emac-mac.h
79
#define TPD_BUF_LEN_SET(tpd, val) BITS_SET((tpd)->word[0], 0, 15, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
81
#define TPD_CSX_SET(tpd, val) BITS_SET((tpd)->word[1], 8, 8, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
83
#define TPD_LSO(tpd) BITS_GET((tpd)->word[1], 12, 12)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
84
#define TPD_LSO_SET(tpd, val) BITS_SET((tpd)->word[1], 12, 12, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
89
#define TPD_LSOV_SET(tpd, val) BITS_SET((tpd)->word[1], 13, 13, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
93
#define TPD_IPV4_SET(tpd, val) BITS_SET((tpd)->word[1], 16, 16, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
97
#define TPD_TYP_SET(tpd, val) BITS_SET((tpd)->word[1], 17, 17, val)
drivers/net/ethernet/qualcomm/emac/emac-mac.h
99
#define TPD_BUFFER_ADDR_L_SET(tpd, val) ((tpd)->word[2] = cpu_to_le32(val))
drivers/platform/surface/surface_platform_profile.c
160
struct ssam_platform_profile_device *tpd;
drivers/platform/surface/surface_platform_profile.c
164
tpd = dev_get_drvdata(dev);
drivers/platform/surface/surface_platform_profile.c
166
status = ssam_tmp_profile_get(tpd->sdev, &tp);
drivers/platform/surface/surface_platform_profile.c
170
status = convert_ssam_tmp_to_profile(tpd->sdev, tp);
drivers/platform/surface/surface_platform_profile.c
181
struct ssam_platform_profile_device *tpd;
drivers/platform/surface/surface_platform_profile.c
184
tpd = dev_get_drvdata(dev);
drivers/platform/surface/surface_platform_profile.c
186
tp = convert_profile_to_ssam_tmp(tpd->sdev, profile);
drivers/platform/surface/surface_platform_profile.c
190
tp = ssam_tmp_profile_set(tpd->sdev, tp);
drivers/platform/surface/surface_platform_profile.c
194
if (tpd->has_fan) {
drivers/platform/surface/surface_platform_profile.c
195
tp = convert_profile_to_ssam_fan(tpd->sdev, profile);
drivers/platform/surface/surface_platform_profile.c
198
tp = ssam_fan_profile_set(tpd->sdev, tp);
drivers/platform/surface/surface_platform_profile.c
222
struct ssam_platform_profile_device *tpd;
drivers/platform/surface/surface_platform_profile.c
224
tpd = devm_kzalloc(&sdev->dev, sizeof(*tpd), GFP_KERNEL);
drivers/platform/surface/surface_platform_profile.c
225
if (!tpd)
drivers/platform/surface/surface_platform_profile.c
228
tpd->sdev = sdev;
drivers/platform/surface/surface_platform_profile.c
229
ssam_device_set_drvdata(sdev, tpd);
drivers/platform/surface/surface_platform_profile.c
231
tpd->has_fan = device_property_read_bool(&sdev->dev, "has_fan");
drivers/platform/surface/surface_platform_profile.c
233
tpd->ppdev = devm_platform_profile_register(&sdev->dev, "Surface Platform Profile",
drivers/platform/surface/surface_platform_profile.c
234
tpd, &ssam_platform_profile_ops);
drivers/platform/surface/surface_platform_profile.c
236
return PTR_ERR_OR_ZERO(tpd->ppdev);
drivers/pwm/pwm-renesas-tpu.c
102
static void tpu_pwm_set_pin(struct tpu_pwm_device *tpd,
drivers/pwm/pwm-renesas-tpu.c
107
dev_dbg(&tpd->tpu->pdev->dev, "%u: configuring pin as %s\n",
drivers/pwm/pwm-renesas-tpu.c
108
tpd->channel, states[state]);
drivers/pwm/pwm-renesas-tpu.c
112
tpu_pwm_write(tpd, TPU_TIORn,
drivers/pwm/pwm-renesas-tpu.c
113
tpd->polarity == PWM_POLARITY_INVERSED ?
drivers/pwm/pwm-renesas-tpu.c
117
tpu_pwm_write(tpd, TPU_TIORn,
drivers/pwm/pwm-renesas-tpu.c
118
tpd->polarity == PWM_POLARITY_INVERSED ?
drivers/pwm/pwm-renesas-tpu.c
122
tpu_pwm_write(tpd, TPU_TIORn,
drivers/pwm/pwm-renesas-tpu.c
123
tpd->polarity == PWM_POLARITY_INVERSED ?
drivers/pwm/pwm-renesas-tpu.c
129
static void tpu_pwm_start_stop(struct tpu_pwm_device *tpd, int start)
drivers/pwm/pwm-renesas-tpu.c
134
spin_lock_irqsave(&tpd->tpu->lock, flags);
drivers/pwm/pwm-renesas-tpu.c
135
value = ioread16(tpd->tpu->base + TPU_TSTR);
drivers/pwm/pwm-renesas-tpu.c
138
value |= 1 << tpd->channel;
drivers/pwm/pwm-renesas-tpu.c
140
value &= ~(1 << tpd->channel);
drivers/pwm/pwm-renesas-tpu.c
142
iowrite16(value, tpd->tpu->base + TPU_TSTR);
drivers/pwm/pwm-renesas-tpu.c
143
spin_unlock_irqrestore(&tpd->tpu->lock, flags);
drivers/pwm/pwm-renesas-tpu.c
146
static int tpu_pwm_timer_start(struct tpu_pwm_device *tpd)
drivers/pwm/pwm-renesas-tpu.c
150
if (!tpd->timer_on) {
drivers/pwm/pwm-renesas-tpu.c
152
pm_runtime_get_sync(&tpd->tpu->pdev->dev);
drivers/pwm/pwm-renesas-tpu.c
153
ret = clk_prepare_enable(tpd->tpu->clk);
drivers/pwm/pwm-renesas-tpu.c
155
dev_err(&tpd->tpu->pdev->dev, "cannot enable clock\n");
drivers/pwm/pwm-renesas-tpu.c
158
tpd->timer_on = true;
drivers/pwm/pwm-renesas-tpu.c
166
tpu_pwm_set_pin(tpd, TPU_PIN_INACTIVE);
drivers/pwm/pwm-renesas-tpu.c
167
tpu_pwm_start_stop(tpd, false);
drivers/pwm/pwm-renesas-tpu.c
177
tpu_pwm_write(tpd, TPU_TCRn, TPU_TCR_CCLR_TGRB | TPU_TCR_CKEG_RISING |
drivers/pwm/pwm-renesas-tpu.c
178
tpd->prescaler);
drivers/pwm/pwm-renesas-tpu.c
179
tpu_pwm_write(tpd, TPU_TMDRn, TPU_TMDR_MD_PWM);
drivers/pwm/pwm-renesas-tpu.c
180
tpu_pwm_set_pin(tpd, TPU_PIN_PWM);
drivers/pwm/pwm-renesas-tpu.c
181
tpu_pwm_write(tpd, TPU_TGRAn, tpd->duty);
drivers/pwm/pwm-renesas-tpu.c
182
tpu_pwm_write(tpd, TPU_TGRBn, tpd->period);
drivers/pwm/pwm-renesas-tpu.c
184
dev_dbg(&tpd->tpu->pdev->dev, "%u: TGRA 0x%04x TGRB 0x%04x\n",
drivers/pwm/pwm-renesas-tpu.c
185
tpd->channel, tpd->duty, tpd->period);
drivers/pwm/pwm-renesas-tpu.c
188
tpu_pwm_start_stop(tpd, true);
drivers/pwm/pwm-renesas-tpu.c
193
static void tpu_pwm_timer_stop(struct tpu_pwm_device *tpd)
drivers/pwm/pwm-renesas-tpu.c
195
if (!tpd->timer_on)
drivers/pwm/pwm-renesas-tpu.c
199
tpu_pwm_start_stop(tpd, false);
drivers/pwm/pwm-renesas-tpu.c
202
clk_disable_unprepare(tpd->tpu->clk);
drivers/pwm/pwm-renesas-tpu.c
203
pm_runtime_put(&tpd->tpu->pdev->dev);
drivers/pwm/pwm-renesas-tpu.c
205
tpd->timer_on = false;
drivers/pwm/pwm-renesas-tpu.c
215
struct tpu_pwm_device *tpd;
drivers/pwm/pwm-renesas-tpu.c
220
tpd = &tpu->tpd[pwm->hwpwm];
drivers/pwm/pwm-renesas-tpu.c
222
tpd->tpu = tpu;
drivers/pwm/pwm-renesas-tpu.c
223
tpd->channel = pwm->hwpwm;
drivers/pwm/pwm-renesas-tpu.c
224
tpd->polarity = PWM_POLARITY_NORMAL;
drivers/pwm/pwm-renesas-tpu.c
225
tpd->prescaler = 0;
drivers/pwm/pwm-renesas-tpu.c
226
tpd->period = 0;
drivers/pwm/pwm-renesas-tpu.c
227
tpd->duty = 0;
drivers/pwm/pwm-renesas-tpu.c
229
tpd->timer_on = false;
drivers/pwm/pwm-renesas-tpu.c
237
struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm];
drivers/pwm/pwm-renesas-tpu.c
239
tpu_pwm_timer_stop(tpd);
drivers/pwm/pwm-renesas-tpu.c
246
struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm];
drivers/pwm/pwm-renesas-tpu.c
312
if (tpd->prescaler == prescaler && tpd->period == period)
drivers/pwm/pwm-renesas-tpu.c
315
tpd->prescaler = prescaler;
drivers/pwm/pwm-renesas-tpu.c
316
tpd->period = period;
drivers/pwm/pwm-renesas-tpu.c
317
tpd->duty = duty;
drivers/pwm/pwm-renesas-tpu.c
323
if (duty_only && tpd->timer_on) {
drivers/pwm/pwm-renesas-tpu.c
329
tpu_pwm_write(tpd, TPU_TGRAn, tpd->duty);
drivers/pwm/pwm-renesas-tpu.c
330
dev_dbg(&tpu->pdev->dev, "%u: TGRA 0x%04x\n", tpd->channel,
drivers/pwm/pwm-renesas-tpu.c
331
tpd->duty);
drivers/pwm/pwm-renesas-tpu.c
334
ret = tpu_pwm_timer_start(tpd);
drivers/pwm/pwm-renesas-tpu.c
344
tpu_pwm_set_pin(tpd, duty ? TPU_PIN_ACTIVE : TPU_PIN_INACTIVE);
drivers/pwm/pwm-renesas-tpu.c
345
tpu_pwm_timer_stop(tpd);
drivers/pwm/pwm-renesas-tpu.c
355
struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm];
drivers/pwm/pwm-renesas-tpu.c
357
tpd->polarity = polarity;
drivers/pwm/pwm-renesas-tpu.c
365
struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm];
drivers/pwm/pwm-renesas-tpu.c
368
ret = tpu_pwm_timer_start(tpd);
drivers/pwm/pwm-renesas-tpu.c
376
if (tpd->duty == 0 || tpd->duty == tpd->period) {
drivers/pwm/pwm-renesas-tpu.c
377
tpu_pwm_set_pin(tpd, tpd->duty ?
drivers/pwm/pwm-renesas-tpu.c
379
tpu_pwm_timer_stop(tpd);
drivers/pwm/pwm-renesas-tpu.c
388
struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm];
drivers/pwm/pwm-renesas-tpu.c
391
tpu_pwm_timer_start(tpd);
drivers/pwm/pwm-renesas-tpu.c
392
tpu_pwm_set_pin(tpd, TPU_PIN_INACTIVE);
drivers/pwm/pwm-renesas-tpu.c
393
tpu_pwm_timer_stop(tpd);
drivers/pwm/pwm-renesas-tpu.c
86
struct tpu_pwm_device tpd[TPU_CHANNEL_MAX];
drivers/pwm/pwm-renesas-tpu.c
94
static void tpu_pwm_write(struct tpu_pwm_device *tpd, int reg_nr, u16 value)
drivers/pwm/pwm-renesas-tpu.c
96
void __iomem *base = tpd->tpu->base + TPU_CHANNEL_OFFSET
drivers/pwm/pwm-renesas-tpu.c
97
+ tpd->channel * TPU_CHANNEL_SIZE;