Home
last modified time | relevance | path

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

/drivers/pwm/
A Dpwm-renesas-tpu.c181 tpu_pwm_write(tpd, TPU_TGRAn, tpd->duty); in tpu_pwm_timer_start()
182 tpu_pwm_write(tpd, TPU_TGRBn, tpd->period); in tpu_pwm_timer_start()
185 tpd->channel, tpd->duty, tpd->period); in tpu_pwm_timer_start()
220 tpd = &tpu->tpd[pwm->hwpwm]; in tpu_pwm_request()
237 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; in tpu_pwm_free() local
246 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; in tpu_pwm_config() local
329 tpu_pwm_write(tpd, TPU_TGRAn, tpd->duty); in tpu_pwm_config()
355 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; in tpu_pwm_set_polarity() local
365 struct tpu_pwm_device *tpd = &tpu->tpd[pwm->hwpwm]; in tpu_pwm_enable() local
376 if (tpd->duty == 0 || tpd->duty == tpd->period) { in tpu_pwm_enable()
[all …]
/drivers/gpu/drm/bridge/
A Dti-tpd12s015.c120 struct tpd12s015_device *tpd; in tpd12s015_probe() local
127 if (IS_ERR(tpd)) in tpd12s015_probe()
128 return PTR_ERR(tpd); in tpd12s015_probe()
144 if (!tpd->next_bridge) in tpd12s015_probe()
153 tpd->ct_cp_hpd_gpio = gpio; in tpd12s015_probe()
160 tpd->ls_oe_gpio = gpio; in tpd12s015_probe()
166 tpd->hpd_gpio = gpio; in tpd12s015_probe()
169 tpd->hpd_irq = gpiod_to_irq(tpd->hpd_gpio); in tpd12s015_probe()
170 if (tpd->hpd_irq >= 0) { in tpd12s015_probe()
176 "tpd12s015 hpd", tpd); in tpd12s015_probe()
[all …]
/drivers/net/ethernet/qualcomm/emac/
A 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
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
125 #define TPD_MSS_SET(tpd, val) BITS_SET((tpd)->word[1], 18, 30, val) argument
[all …]
A Demac-mac.c614 memset(tx_q->tpd.v_addr, 0, tx_q->tpd.size); in emac_tx_q_descs_free()
670 tx_q->tpd.size = 0; in emac_tx_q_bufs_free()
686 tx_q->tpd.size = tx_q->tpd.count * (adpt->tpd_size * 4); in emac_tx_q_desc_alloc()
1030 tx_q->tpd.last_produce_idx = tx_q->tpd.produce_idx; in emac_tx_tpd_create()
1033 if (++tx_q->tpd.produce_idx == tx_q->tpd.count) in emac_tx_tpd_create()
1203 if (++tx_q->tpd.consume_idx == tx_q->tpd.count) in emac_mac_tx_process()
1291 memset(tpd, 0, sizeof(*tpd)); in emac_tso_csum()
1303 TPD_LSO_SET(tpd, 1); in emac_tso_csum()
1344 if (TPD_LSO(tpd)) { in emac_tx_fill_tpd()
1441 struct emac_tpd tpd; in emac_mac_tx_buf_send() local
[all …]
/drivers/platform/surface/
A Dsurface_platform_profile.c160 struct ssam_platform_profile_device *tpd; in ssam_platform_profile_get() local
164 tpd = dev_get_drvdata(dev); in ssam_platform_profile_get()
181 struct ssam_platform_profile_device *tpd; in ssam_platform_profile_set() local
184 tpd = dev_get_drvdata(dev); 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()
224 tpd = devm_kzalloc(&sdev->dev, sizeof(*tpd), GFP_KERNEL); in surface_platform_profile_probe()
225 if (!tpd) in surface_platform_profile_probe()
228 tpd->sdev = sdev; in surface_platform_profile_probe()
229 ssam_device_set_drvdata(sdev, tpd); in surface_platform_profile_probe()
[all …]
/drivers/atm/
A Dhe.c1617 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()
1818 tpd = NULL; in he_service_tbrq()
1835 he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci)); in he_service_tbrq()
1854 if (tpd->vcc && tpd->vcc->pop) in he_service_tbrq()
1855 tpd->vcc->pop(tpd->vcc, tpd->skb); in he_service_tbrq()
1861 if (tpd) in he_service_tbrq()
2092 tpd->vcc->pop(tpd->vcc, tpd->skb); in __enqueue_tpd()
[all …]
A Dfore200e.c1469 struct tpd* tpd; in fore200e_send() local
1597 tpd = entry->tpd; in fore200e_send()
1638 tpd->atm_header.clp = 0; in fore200e_send()
1639 tpd->atm_header.plt = 0; in fore200e_send()
1642 tpd->atm_header.gfc = 0; in fore200e_send()
1646 tpd->spec.nseg = 1; in fore200e_send()
1648 tpd->spec.intr = 1; in fore200e_send()
2184 &txq->tpd, in fore200e_init_tx_queue()
2201 txq->host_entry[ i ].tpd = in fore200e_init_tx_queue()
2202 FORE200E_INDEX(txq->tpd.align_addr, struct tpd, i); in fore200e_init_tx_queue()
[all …]
A Dfore200e.h142 typedef struct tpd { struct
524 struct tpd* tpd; /* addr of transmit PDU descriptor */ member
614 … struct chunk tpd; /* array of tpds */ member
A Dhe.h182 volatile u32 tpd; member
/drivers/net/ethernet/atheros/atl1e/
A Datl1e_main.c1666 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
1723 use_tpd = tpd; in atl1e_tx_map()
1745 use_tpd = tpd; in atl1e_tx_map()
1766 tpd = atl1e_get_tpd(adapter); in atl1e_tx_map()
1818 tpd = atl1e_get_tpd(adapter); in atl1e_tx_map()
1839 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; in atl1e_tx_map()
1850 struct atl1e_tpd_desc *tpd) in atl1e_tx_queue() argument
1866 struct atl1e_tpd_desc *tpd; in atl1e_xmit_frame() local
1885 tpd = atl1e_get_tpd(adapter); in atl1e_xmit_frame()
1909 if (atl1e_tx_map(adapter, skb, tpd)) { in atl1e_xmit_frame()
[all …]
/drivers/net/ethernet/atheros/atl1c/
A Datl1c_main.c2018 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
2042 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2091 *tpd = atl1c_get_tpd(adapter, queue); in atl1c_tso_csum()
2147 struct atl1c_tpd_desc *tpd; in atl1c_tx_rollback() local
2153 tpd = ATL1C_TPD_DESC(tpd_ring, index); in atl1c_tx_rollback()
2183 use_tpd = tpd; in atl1c_tx_map()
2204 use_tpd = tpd; in atl1c_tx_map()
2275 struct atl1c_tpd_desc *tpd; in atl1c_xmit_frame() local
2292 tpd = atl1c_get_tpd(adapter, queue); in atl1c_xmit_frame()
2307 tpd->word1 |= 1 << TPD_INS_VTAG_SHIFT; in atl1c_xmit_frame()
[all …]
/drivers/gpu/drm/i915/display/
A Ddvo_ch7xxx.c293 u8 tvco, tpcp, tpd, tlpf, idf; in ch7xxx_mode_set() local
298 tpd = 0x16; in ch7xxx_mode_set()
303 tpd = 0x26; in ch7xxx_mode_set()
310 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); in ch7xxx_mode_set()
/drivers/net/ethernet/atheros/alx/
A Dmain.c1462 struct alx_txd *tpd, *first_tpd; in alx_map_tx_skb() local
1467 tpd = first_tpd; 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()
1476 tpd->word1 = first_tpd->word1; in alx_map_tx_skb()
1488 tpd->adrl.addr = cpu_to_le64(dma); in alx_map_tx_skb()
1489 tpd->len = cpu_to_le16(maplen); in alx_map_tx_skb()
1496 tpd = &txq->tpd[txq->write_idx]; in alx_map_tx_skb()
1498 tpd->word1 = first_tpd->word1; in alx_map_tx_skb()
1509 tpd->len = cpu_to_le16(maplen); in alx_map_tx_skb()
[all …]
A Dalx.h76 struct alx_txd *tpd; member
/drivers/net/ethernet/atheros/atlx/
A Datl1.c2330 struct tx_packet_desc *tpd; in atl1_tx_queue() local
2337 tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use); in atl1_tx_queue()
2338 if (tpd != ptpd) in atl1_tx_queue()
2339 memcpy(tpd, ptpd, sizeof(struct tx_packet_desc)); in atl1_tx_queue()
2340 tpd->buffer_addr = cpu_to_le64(buffer_info->dma); in atl1_tx_queue()
2341 tpd->word2 &= ~(TPD_BUFLEN_MASK << TPD_BUFLEN_SHIFT); in atl1_tx_queue()
2342 tpd->word2 |= (cpu_to_le16(buffer_info->length) & in atl1_tx_queue()
2349 val = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & in atl1_tx_queue()
2353 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; in atl1_tx_queue()
2355 tpd->word3 &= ~(1 << TPD_HDRFLAG_SHIFT); in atl1_tx_queue()
[all …]

Completed in 64 milliseconds