Home
last modified time | relevance | path

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

/drivers/atm/
Dhe.c1610 struct he_tpd *tpd; in __alloc_tpd() local
1613 tpd = pci_pool_alloc(he_dev->tpd_pool, GFP_ATOMIC|GFP_DMA, &mapping); in __alloc_tpd()
1614 if (tpd == NULL) in __alloc_tpd()
1617 tpd->status = TPD_ADDR(mapping); in __alloc_tpd()
1618 tpd->reserved = 0; in __alloc_tpd()
1619 tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0; in __alloc_tpd()
1620 tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0; in __alloc_tpd()
1621 tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0; in __alloc_tpd()
1623 return tpd; in __alloc_tpd()
1806 struct he_tpd *tpd; in he_service_tbrq() local
[all …]
Dfore200e.c376 fore200e->bus->dma_chunk_free(fore200e, &fore200e->host_txq.tpd); in fore200e_shutdown()
878 fore200e->bus->dma_unmap(fore200e, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length, in fore200e_tx_irq()
1562 struct tpd* tpd; in fore200e_send() local
1682 tpd = entry->tpd; in fore200e_send()
1683 tpd->tsd[ 0 ].buffer = fore200e->bus->dma_map(fore200e, data, tx_len, DMA_TO_DEVICE); in fore200e_send()
1684 tpd->tsd[ 0 ].length = tx_len; in fore200e_send()
1695 tpd->tsd[0].length, skb_len); in fore200e_send()
1704 tpd->rate.data_cells = fore200e_vcc->rate.data_cells; in fore200e_send()
1705 tpd->rate.idle_cells = fore200e_vcc->rate.idle_cells; in fore200e_send()
1708 tpd->atm_header.clp = (*cell_header & ATM_HDR_CLP); in fore200e_send()
[all …]
Dfore200e.h141 typedef struct tpd { struct
523 struct tpd* tpd; /* addr of transmit PDU descriptor */ member
613 … struct chunk tpd; /* array of tpds */ member
Dhe.h182 volatile u32 tpd; member
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1602 atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd) in atl1e_get_tx_buffer() argument
1606 return &tx_ring->tx_buffer[tpd - tx_ring->desc]; in atl1e_get_tx_buffer()
1639 struct sk_buff *skb, struct atl1e_tpd_desc *tpd) in atl1e_tso_csum() argument
1674 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
1677 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1e_tso_csum()
1680 tpd->word3 |= ((skb_shinfo(skb)->gso_size) & in atl1e_tso_csum()
1682 tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
1699 tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) << in atl1e_tso_csum()
1701 tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) << in atl1e_tso_csum()
1703 tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT; in atl1e_tso_csum()
[all …]
/drivers/net/ethernet/atheros/atl1c/
Datl1c_main.c1943 atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd) in atl1c_get_tx_buffer() argument
1947 return &tpd_ring->buffer_info[tpd - in atl1c_get_tx_buffer()
1971 struct atl1c_tpd_desc **tpd, in atl1c_tso_csum() argument
2008 (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; in atl1c_tso_csum()
2014 *(struct atl1c_tpd_ext_desc **)(tpd); in atl1c_tso_csum()
2017 *tpd = atl1c_get_tpd(adapter, type); in atl1c_tso_csum()
2035 (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; in atl1c_tso_csum()
2038 (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; in atl1c_tso_csum()
2039 (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << in atl1c_tso_csum()
2041 (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << in atl1c_tso_csum()
[all …]
/drivers/gpu/drm/i915/
Ddvo_ch7xxx.c281 uint8_t tvco, tpcp, tpd, tlpf, idf; in ch7xxx_mode_set() local
286 tpd = 0x16; in ch7xxx_mode_set()
291 tpd = 0x26; in ch7xxx_mode_set()
298 ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); in ch7xxx_mode_set()
/drivers/net/ethernet/atheros/alx/
Dmain.c398 memset(txq->tpd, 0, alx->tx_ringsz * sizeof(struct alx_txd)); in alx_free_txring_buf()
540 alx->txq.tpd = alx->descmem.virt; in alx_alloc_descriptors()
1007 struct alx_txd *tpd, *first_tpd; in alx_map_tx_skb() local
1011 first_tpd = &txq->tpd[txq->write_idx]; in alx_map_tx_skb()
1012 tpd = first_tpd; in alx_map_tx_skb()
1023 tpd->adrl.addr = cpu_to_le64(dma); in alx_map_tx_skb()
1024 tpd->len = cpu_to_le16(maplen); in alx_map_tx_skb()
1033 tpd = &txq->tpd[txq->write_idx]; in alx_map_tx_skb()
1035 tpd->word1 = first_tpd->word1; in alx_map_tx_skb()
1045 tpd->adrl.addr = cpu_to_le64(dma); in alx_map_tx_skb()
[all …]
Dalx.h67 struct alx_txd *tpd; member
/drivers/net/ethernet/atheros/atlx/
Datl1.c2313 struct tx_packet_desc *tpd; in atl1_tx_queue() local
2320 tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use); in atl1_tx_queue()
2321 if (tpd != ptpd) in atl1_tx_queue()
2322 memcpy(tpd, ptpd, sizeof(struct tx_packet_desc)); in atl1_tx_queue()
2323 tpd->buffer_addr = cpu_to_le64(buffer_info->dma); in atl1_tx_queue()
2324 tpd->word2 &= ~(TPD_BUFLEN_MASK << TPD_BUFLEN_SHIFT); in atl1_tx_queue()
2325 tpd->word2 |= (cpu_to_le16(buffer_info->length) & in atl1_tx_queue()
2332 val = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & in atl1_tx_queue()
2336 tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; in atl1_tx_queue()
2338 tpd->word3 &= ~(1 << TPD_HDRFLAG_SHIFT); in atl1_tx_queue()
[all …]