tpd 399 drivers/atm/fore200e.c fore200e_dma_chunk_free(fore200e, &fore200e->host_txq.tpd); tpd 795 drivers/atm/fore200e.c dma_unmap_single(fore200e->dev, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length, tpd 1474 drivers/atm/fore200e.c struct tpd* tpd; tpd 1602 drivers/atm/fore200e.c tpd = entry->tpd; tpd 1603 drivers/atm/fore200e.c tpd->tsd[ 0 ].buffer = dma_map_single(fore200e->dev, data, tx_len, tpd 1605 drivers/atm/fore200e.c if (dma_mapping_error(fore200e->dev, tpd->tsd[0].buffer)) { tpd 1611 drivers/atm/fore200e.c tpd->tsd[ 0 ].length = tx_len; tpd 1622 drivers/atm/fore200e.c tpd->tsd[0].length, skb_len); tpd 1631 drivers/atm/fore200e.c tpd->rate.data_cells = fore200e_vcc->rate.data_cells; tpd 1632 drivers/atm/fore200e.c tpd->rate.idle_cells = fore200e_vcc->rate.idle_cells; tpd 1635 drivers/atm/fore200e.c tpd->atm_header.clp = (*cell_header & ATM_HDR_CLP); tpd 1636 drivers/atm/fore200e.c tpd->atm_header.plt = (*cell_header & ATM_HDR_PTI_MASK) >> ATM_HDR_PTI_SHIFT; tpd 1637 drivers/atm/fore200e.c tpd->atm_header.vci = (*cell_header & ATM_HDR_VCI_MASK) >> ATM_HDR_VCI_SHIFT; tpd 1638 drivers/atm/fore200e.c tpd->atm_header.vpi = (*cell_header & ATM_HDR_VPI_MASK) >> ATM_HDR_VPI_SHIFT; tpd 1639 drivers/atm/fore200e.c tpd->atm_header.gfc = (*cell_header & ATM_HDR_GFC_MASK) >> ATM_HDR_GFC_SHIFT; tpd 1643 drivers/atm/fore200e.c tpd->atm_header.clp = 0; tpd 1644 drivers/atm/fore200e.c tpd->atm_header.plt = 0; tpd 1645 drivers/atm/fore200e.c tpd->atm_header.vci = vcc->vci; tpd 1646 drivers/atm/fore200e.c tpd->atm_header.vpi = vcc->vpi; tpd 1647 drivers/atm/fore200e.c tpd->atm_header.gfc = 0; tpd 1650 drivers/atm/fore200e.c tpd->spec.length = tx_len; tpd 1651 drivers/atm/fore200e.c tpd->spec.nseg = 1; tpd 1652 drivers/atm/fore200e.c tpd->spec.aal = fore200e_atm2fore_aal(vcc->qos.aal); tpd 1653 drivers/atm/fore200e.c tpd->spec.intr = 1; tpd 1655 drivers/atm/fore200e.c tpd_haddr.size = sizeof(struct tpd) / (1<<TPD_HADDR_SHIFT); /* size is expressed in 32 byte blocks */ tpd 2214 drivers/atm/fore200e.c &txq->tpd, tpd 2215 drivers/atm/fore200e.c sizeof(struct tpd), tpd 2231 drivers/atm/fore200e.c txq->host_entry[ i ].tpd = tpd 2232 drivers/atm/fore200e.c FORE200E_INDEX(txq->tpd.align_addr, struct tpd, i); tpd 2234 drivers/atm/fore200e.c FORE200E_DMA_INDEX(txq->tpd.dma_addr, struct tpd, i); tpd 524 drivers/atm/fore200e.h struct tpd* tpd; /* addr of transmit PDU descriptor */ tpd 614 drivers/atm/fore200e.h struct chunk tpd; /* array of tpds */ tpd 1611 drivers/atm/he.c struct he_tpd *tpd; tpd 1614 drivers/atm/he.c tpd = dma_pool_alloc(he_dev->tpd_pool, GFP_ATOMIC, &mapping); tpd 1615 drivers/atm/he.c if (tpd == NULL) tpd 1618 drivers/atm/he.c tpd->status = TPD_ADDR(mapping); tpd 1619 drivers/atm/he.c tpd->reserved = 0; tpd 1620 drivers/atm/he.c tpd->iovec[0].addr = 0; tpd->iovec[0].len = 0; tpd 1621 drivers/atm/he.c tpd->iovec[1].addr = 0; tpd->iovec[1].len = 0; tpd 1622 drivers/atm/he.c tpd->iovec[2].addr = 0; tpd->iovec[2].len = 0; tpd 1624 drivers/atm/he.c return tpd; tpd 1807 drivers/atm/he.c struct he_tpd *tpd; tpd 1821 drivers/atm/he.c tpd = NULL; tpd 1824 drivers/atm/he.c tpd = __tpd; tpd 1830 drivers/atm/he.c if (tpd == NULL) { tpd 1838 drivers/atm/he.c he_mkcid(he_dev, tpd->vcc->vpi, tpd->vcc->vci)); tpd 1839 drivers/atm/he.c if (tpd->vcc) tpd 1840 drivers/atm/he.c wake_up(&HE_VCC(tpd->vcc)->tx_waitq); tpd 1846 drivers/atm/he.c if (tpd->iovec[slot].addr) tpd 1848 drivers/atm/he.c tpd->iovec[slot].addr, tpd 1849 drivers/atm/he.c tpd->iovec[slot].len & TPD_LEN_MASK, tpd 1851 drivers/atm/he.c if (tpd->iovec[slot].len & TPD_LST) tpd 1856 drivers/atm/he.c if (tpd->skb) { /* && !TBRQ_MULTIPLE(he_dev->tbrq_head) */ tpd 1857 drivers/atm/he.c if (tpd->vcc && tpd->vcc->pop) tpd 1858 drivers/atm/he.c tpd->vcc->pop(tpd->vcc, tpd->skb); tpd 1860 drivers/atm/he.c dev_kfree_skb_any(tpd->skb); tpd 1864 drivers/atm/he.c if (tpd) tpd 1865 drivers/atm/he.c dma_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status)); tpd 2053 drivers/atm/he.c __enqueue_tpd(struct he_dev *he_dev, struct he_tpd *tpd, unsigned cid) tpd 2058 drivers/atm/he.c tpd, cid, he_dev->tpdrq_tail); tpd 2087 drivers/atm/he.c if (tpd->iovec[slot].addr) tpd 2089 drivers/atm/he.c tpd->iovec[slot].addr, tpd 2090 drivers/atm/he.c tpd->iovec[slot].len & TPD_LEN_MASK, tpd 2093 drivers/atm/he.c if (tpd->skb) { tpd 2094 drivers/atm/he.c if (tpd->vcc->pop) tpd 2095 drivers/atm/he.c tpd->vcc->pop(tpd->vcc, tpd->skb); tpd 2097 drivers/atm/he.c dev_kfree_skb_any(tpd->skb); tpd 2098 drivers/atm/he.c atomic_inc(&tpd->vcc->stats->tx_err); tpd 2100 drivers/atm/he.c dma_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status)); tpd 2106 drivers/atm/he.c list_add_tail(&tpd->entry, &he_dev->outstanding_tpds); tpd 2107 drivers/atm/he.c he_dev->tpdrq_tail->tpd = TPD_ADDR(tpd->status); tpd 2336 drivers/atm/he.c struct he_tpd *tpd; tpd 2427 drivers/atm/he.c tpd = __alloc_tpd(he_dev); tpd 2428 drivers/atm/he.c if (tpd == NULL) { tpd 2432 drivers/atm/he.c tpd->status |= TPD_EOS | TPD_INT; tpd 2433 drivers/atm/he.c tpd->skb = NULL; tpd 2434 drivers/atm/he.c tpd->vcc = vcc; tpd 2439 drivers/atm/he.c __enqueue_tpd(he_dev, tpd, cid); tpd 2494 drivers/atm/he.c struct he_tpd *tpd; tpd 2527 drivers/atm/he.c tpd = __alloc_tpd(he_dev); tpd 2528 drivers/atm/he.c if (tpd == NULL) { tpd 2539 drivers/atm/he.c tpd->status |= TPD_CELLTYPE(TPD_USERCELL); tpd 2546 drivers/atm/he.c tpd->status |= TPD_CELLTYPE(pti); tpd 2548 drivers/atm/he.c tpd->status |= TPD_CLP; tpd 2554 drivers/atm/he.c tpd->iovec[slot].addr = dma_map_single(&he_dev->pci_dev->dev, skb->data, tpd 2556 drivers/atm/he.c tpd->iovec[slot].len = skb_headlen(skb); tpd 2563 drivers/atm/he.c tpd->vcc = vcc; tpd 2564 drivers/atm/he.c tpd->skb = NULL; /* not the last fragment tpd 2568 drivers/atm/he.c __enqueue_tpd(he_dev, tpd, cid); tpd 2569 drivers/atm/he.c tpd = __alloc_tpd(he_dev); tpd 2570 drivers/atm/he.c if (tpd == NULL) { tpd 2579 drivers/atm/he.c tpd->status |= TPD_USERCELL; tpd 2583 drivers/atm/he.c tpd->iovec[slot].addr = skb_frag_dma_map(&he_dev->pci_dev->dev, tpd 2585 drivers/atm/he.c tpd->iovec[slot].len = skb_frag_size(frag); tpd 2590 drivers/atm/he.c tpd->iovec[slot - 1].len |= TPD_LST; tpd 2592 drivers/atm/he.c tpd->address0 = dma_map_single(&he_dev->pci_dev->dev, skb->data, skb->len, DMA_TO_DEVICE); tpd 2593 drivers/atm/he.c tpd->length0 = skb->len | TPD_LST; tpd 2595 drivers/atm/he.c tpd->status |= TPD_INT; tpd 2597 drivers/atm/he.c tpd->vcc = vcc; tpd 2598 drivers/atm/he.c tpd->skb = skb; tpd 2602 drivers/atm/he.c __enqueue_tpd(he_dev, tpd, cid); tpd 182 drivers/atm/he.h volatile u32 tpd; tpd 280 drivers/gpu/drm/i915/display/dvo_ch7xxx.c u8 tvco, tpcp, tpd, tlpf, idf; tpd 285 drivers/gpu/drm/i915/display/dvo_ch7xxx.c tpd = 0x16; tpd 290 drivers/gpu/drm/i915/display/dvo_ch7xxx.c tpd = 0x26; tpd 297 drivers/gpu/drm/i915/display/dvo_ch7xxx.c ch7xxx_writeb(dvo, CH7xxx_TPD, tpd); tpd 76 drivers/net/ethernet/atheros/alx/alx.h struct alx_txd *tpd; tpd 500 drivers/net/ethernet/atheros/alx/main.c memset(txq->tpd, 0, txq->count * sizeof(struct alx_txd)); tpd 624 drivers/net/ethernet/atheros/alx/main.c txq->tpd = alx->descmem.virt + offset; tpd 1438 drivers/net/ethernet/atheros/alx/main.c struct alx_txd *tpd, *first_tpd; tpd 1442 drivers/net/ethernet/atheros/alx/main.c first_tpd = &txq->tpd[txq->write_idx]; tpd 1443 drivers/net/ethernet/atheros/alx/main.c tpd = first_tpd; tpd 1445 drivers/net/ethernet/atheros/alx/main.c if (tpd->word1 & (1 << TPD_LSO_V2_SHIFT)) { tpd 1449 drivers/net/ethernet/atheros/alx/main.c tpd = &txq->tpd[txq->write_idx]; tpd 1450 drivers/net/ethernet/atheros/alx/main.c tpd->len = first_tpd->len; tpd 1451 drivers/net/ethernet/atheros/alx/main.c tpd->vlan_tag = first_tpd->vlan_tag; tpd 1452 drivers/net/ethernet/atheros/alx/main.c tpd->word1 = first_tpd->word1; tpd 1464 drivers/net/ethernet/atheros/alx/main.c tpd->adrl.addr = cpu_to_le64(dma); tpd 1465 drivers/net/ethernet/atheros/alx/main.c tpd->len = cpu_to_le16(maplen); tpd 1472 drivers/net/ethernet/atheros/alx/main.c tpd = &txq->tpd[txq->write_idx]; tpd 1474 drivers/net/ethernet/atheros/alx/main.c tpd->word1 = first_tpd->word1; tpd 1484 drivers/net/ethernet/atheros/alx/main.c tpd->adrl.addr = cpu_to_le64(dma); tpd 1485 drivers/net/ethernet/atheros/alx/main.c tpd->len = cpu_to_le16(maplen); tpd 1489 drivers/net/ethernet/atheros/alx/main.c tpd->word1 |= cpu_to_le32(1 << TPD_EOP_SHIFT); tpd 1521 drivers/net/ethernet/atheros/alx/main.c first = &txq->tpd[txq->write_idx]; tpd 1943 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_get_tx_buffer(struct atl1c_adapter *adapter, struct atl1c_tpd_desc *tpd) tpd 1947 drivers/net/ethernet/atheros/atl1c/atl1c_main.c return &tpd_ring->buffer_info[tpd - tpd 1971 drivers/net/ethernet/atheros/atl1c/atl1c_main.c struct atl1c_tpd_desc **tpd, tpd 2008 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*tpd)->word1 |= 1 << TPD_IPV4_PACKET_SHIFT; tpd 2014 drivers/net/ethernet/atheros/atl1c/atl1c_main.c *(struct atl1c_tpd_ext_desc **)(tpd); tpd 2017 drivers/net/ethernet/atheros/atl1c/atl1c_main.c *tpd = atl1c_get_tpd(adapter, type); tpd 2035 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*tpd)->word1 |= 1 << TPD_LSO_VER_SHIFT; tpd 2038 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*tpd)->word1 |= 1 << TPD_LSO_EN_SHIFT; tpd 2039 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*tpd)->word1 |= (skb_transport_offset(skb) & TPD_TCPHDR_OFFSET_MASK) << tpd 2041 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*tpd)->word1 |= (skb_shinfo(skb)->gso_size & TPD_MSS_MASK) << tpd 2059 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*tpd)->word1 |= ((cso >> 1) & TPD_PLOADOFFSET_MASK) << tpd 2061 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*tpd)->word1 |= ((css >> 1) & TPD_CCSUM_OFFSET_MASK) << tpd 2063 drivers/net/ethernet/atheros/atl1c/atl1c_main.c (*tpd)->word1 |= 1 << TPD_CCSUM_EN_SHIFT; tpd 2075 drivers/net/ethernet/atheros/atl1c/atl1c_main.c struct atl1c_tpd_desc *tpd; tpd 2081 drivers/net/ethernet/atheros/atl1c/atl1c_main.c tpd = ATL1C_TPD_DESC(tpd_ring, index); tpd 2084 drivers/net/ethernet/atheros/atl1c/atl1c_main.c memset(tpd, 0, sizeof(struct atl1c_tpd_desc)); tpd 2092 drivers/net/ethernet/atheros/atl1c/atl1c_main.c struct sk_buff *skb, struct atl1c_tpd_desc *tpd, tpd 2106 drivers/net/ethernet/atheros/atl1c/atl1c_main.c tso = (tpd->word1 >> TPD_LSO_EN_SHIFT) & TPD_LSO_EN_MASK; tpd 2110 drivers/net/ethernet/atheros/atl1c/atl1c_main.c use_tpd = tpd; tpd 2131 drivers/net/ethernet/atheros/atl1c/atl1c_main.c use_tpd = tpd; tpd 2134 drivers/net/ethernet/atheros/atl1c/atl1c_main.c memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); tpd 2156 drivers/net/ethernet/atheros/atl1c/atl1c_main.c memcpy(use_tpd, tpd, sizeof(struct atl1c_tpd_desc)); tpd 2189 drivers/net/ethernet/atheros/atl1c/atl1c_main.c struct atl1c_tpd_desc *tpd, enum atl1c_trans_queue type) tpd 2203 drivers/net/ethernet/atheros/atl1c/atl1c_main.c struct atl1c_tpd_desc *tpd; tpd 2219 drivers/net/ethernet/atheros/atl1c/atl1c_main.c tpd = atl1c_get_tpd(adapter, type); tpd 2222 drivers/net/ethernet/atheros/atl1c/atl1c_main.c if (atl1c_tso_csum(adapter, skb, &tpd, type) != 0) { tpd 2233 drivers/net/ethernet/atheros/atl1c/atl1c_main.c tpd->word1 |= 1 << TPD_INS_VTAG_SHIFT; tpd 2234 drivers/net/ethernet/atheros/atl1c/atl1c_main.c tpd->vlan_tag = tag; tpd 2238 drivers/net/ethernet/atheros/atl1c/atl1c_main.c tpd->word1 |= 1 << TPD_ETH_TYPE_SHIFT; /* Ethernet frame */ tpd 2240 drivers/net/ethernet/atheros/atl1c/atl1c_main.c if (atl1c_tx_map(adapter, skb, tpd, type) < 0) { tpd 2244 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_tx_rollback(adapter, tpd, type); tpd 2248 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_tx_queue(adapter, skb, tpd, type); tpd 1585 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_get_tx_buffer(struct atl1e_adapter *adapter, struct atl1e_tpd_desc *tpd) tpd 1589 drivers/net/ethernet/atheros/atl1e/atl1e_main.c return &tx_ring->tx_buffer[tpd - tx_ring->desc]; tpd 1622 drivers/net/ethernet/atheros/atl1e/atl1e_main.c struct sk_buff *skb, struct atl1e_tpd_desc *tpd) tpd 1657 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= (ip_hdr(skb)->ihl & tpd 1660 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & tpd 1663 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= ((skb_shinfo(skb)->gso_size) & tpd 1665 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= 1 << TPD_SEGMENT_EN_SHIFT; tpd 1682 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= (cso & TPD_PLOADOFFSET_MASK) << tpd 1684 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= (css & TPD_CCSUMOFFSET_MASK) << tpd 1686 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= 1 << TPD_CC_SEGMENT_EN_SHIFT; tpd 1694 drivers/net/ethernet/atheros/atl1e/atl1e_main.c struct sk_buff *skb, struct atl1e_tpd_desc *tpd) tpd 1709 drivers/net/ethernet/atheros/atl1e/atl1e_main.c segment = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK; tpd 1713 drivers/net/ethernet/atheros/atl1e/atl1e_main.c use_tpd = tpd; tpd 1734 drivers/net/ethernet/atheros/atl1e/atl1e_main.c use_tpd = tpd; tpd 1737 drivers/net/ethernet/atheros/atl1e/atl1e_main.c memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc)); tpd 1754 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd = atl1e_get_tpd(adapter); tpd 1755 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tx_buffer = atl1e_get_tx_buffer(adapter, tpd); tpd 1782 drivers/net/ethernet/atheros/atl1e/atl1e_main.c memcpy(use_tpd, tpd, sizeof(struct atl1e_tpd_desc)); tpd 1804 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd = atl1e_get_tpd(adapter); tpd 1805 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tx_buffer = atl1e_get_tx_buffer(adapter, tpd); tpd 1823 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if ((tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & TPD_SEGMENT_EN_MASK) tpd 1825 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; tpd 1836 drivers/net/ethernet/atheros/atl1e/atl1e_main.c struct atl1e_tpd_desc *tpd) tpd 1852 drivers/net/ethernet/atheros/atl1e/atl1e_main.c struct atl1e_tpd_desc *tpd; tpd 1871 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd = atl1e_get_tpd(adapter); tpd 1877 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= 1 << TPD_INS_VL_TAG_SHIFT; tpd 1879 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word2 |= (atl1e_vlan_tag & TPD_VLANTAG_MASK) << tpd 1884 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= 1 << TPD_VL_TAGGED_SHIFT; tpd 1887 drivers/net/ethernet/atheros/atl1e/atl1e_main.c tpd->word3 |= 1 << TPD_ETHTYPE_SHIFT; /* 802.3 frame */ tpd 1890 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if (atl1e_tso_csum(adapter, skb, tpd) != 0) { tpd 1895 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if (atl1e_tx_map(adapter, skb, tpd)) { tpd 1900 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_tx_queue(adapter, tpd_req, tpd); tpd 2292 drivers/net/ethernet/atheros/atlx/atl1.c struct tx_packet_desc *tpd; tpd 2299 drivers/net/ethernet/atheros/atlx/atl1.c tpd = ATL1_TPD_DESC(&adapter->tpd_ring, next_to_use); tpd 2300 drivers/net/ethernet/atheros/atlx/atl1.c if (tpd != ptpd) tpd 2301 drivers/net/ethernet/atheros/atlx/atl1.c memcpy(tpd, ptpd, sizeof(struct tx_packet_desc)); tpd 2302 drivers/net/ethernet/atheros/atlx/atl1.c tpd->buffer_addr = cpu_to_le64(buffer_info->dma); tpd 2303 drivers/net/ethernet/atheros/atlx/atl1.c tpd->word2 &= ~(TPD_BUFLEN_MASK << TPD_BUFLEN_SHIFT); tpd 2304 drivers/net/ethernet/atheros/atlx/atl1.c tpd->word2 |= (cpu_to_le16(buffer_info->length) & tpd 2311 drivers/net/ethernet/atheros/atlx/atl1.c val = (tpd->word3 >> TPD_SEGMENT_EN_SHIFT) & tpd 2315 drivers/net/ethernet/atheros/atlx/atl1.c tpd->word3 |= 1 << TPD_HDRFLAG_SHIFT; tpd 2317 drivers/net/ethernet/atheros/atlx/atl1.c tpd->word3 &= ~(1 << TPD_HDRFLAG_SHIFT); tpd 2321 drivers/net/ethernet/atheros/atlx/atl1.c tpd->word3 |= 1 << TPD_EOP_SHIFT; tpd 236 drivers/net/ethernet/qualcomm/emac/emac-mac.c #define EMAC_TPD(TXQ, SIZE, IDX) ((TXQ)->tpd.v_addr + (SIZE * (IDX))) tpd 239 drivers/net/ethernet/qualcomm/emac/emac-mac.c #define GET_TPD_BUFFER(RTQ, IDX) (&((RTQ)->tpd.tpbuff[(IDX)])) tpd 305 drivers/net/ethernet/qualcomm/emac/emac-mac.c writel(upper_32_bits(adpt->tx_q.tpd.dma_addr), tpd 308 drivers/net/ethernet/qualcomm/emac/emac-mac.c writel(lower_32_bits(adpt->tx_q.tpd.dma_addr), tpd 311 drivers/net/ethernet/qualcomm/emac/emac-mac.c writel(adpt->tx_q.tpd.count & TPD_RING_SIZE_BMSK, tpd 592 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (!tx_q->tpd.tpbuff) tpd 595 drivers/net/ethernet/qualcomm/emac/emac-mac.c for (i = 0; i < tx_q->tpd.count; i++) { tpd 610 drivers/net/ethernet/qualcomm/emac/emac-mac.c size = sizeof(struct emac_buffer) * tx_q->tpd.count; tpd 611 drivers/net/ethernet/qualcomm/emac/emac-mac.c memset(tx_q->tpd.tpbuff, 0, size); tpd 614 drivers/net/ethernet/qualcomm/emac/emac-mac.c memset(tx_q->tpd.v_addr, 0, tx_q->tpd.size); tpd 616 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.consume_idx = 0; tpd 617 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.produce_idx = 0; tpd 666 drivers/net/ethernet/qualcomm/emac/emac-mac.c kfree(tx_q->tpd.tpbuff); tpd 667 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.tpbuff = NULL; tpd 668 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.v_addr = NULL; tpd 669 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.dma_addr = 0; tpd 670 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.size = 0; tpd 681 drivers/net/ethernet/qualcomm/emac/emac-mac.c size = sizeof(struct emac_buffer) * tx_q->tpd.count; tpd 682 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.tpbuff = kzalloc_node(size, GFP_KERNEL, node); tpd 683 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (!tx_q->tpd.tpbuff) tpd 686 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.size = tx_q->tpd.count * (adpt->tpd_size * 4); tpd 687 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.dma_addr = ring_header->dma_addr + ring_header->used; tpd 688 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.v_addr = ring_header->v_addr + ring_header->used; tpd 689 drivers/net/ethernet/qualcomm/emac/emac-mac.c ring_header->used += ALIGN(tx_q->tpd.size, 8); tpd 690 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.produce_idx = 0; tpd 691 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.consume_idx = 0; tpd 757 drivers/net/ethernet/qualcomm/emac/emac-mac.c adpt->tx_q.tpd.count = adpt->tx_desc_cnt; tpd 831 drivers/net/ethernet/qualcomm/emac/emac-mac.c adpt->tx_q.tpd.produce_idx = 0; tpd 832 drivers/net/ethernet/qualcomm/emac/emac-mac.c adpt->tx_q.tpd.consume_idx = 0; tpd 833 drivers/net/ethernet/qualcomm/emac/emac-mac.c for (i = 0; i < adpt->tx_q.tpd.count; i++) tpd 834 drivers/net/ethernet/qualcomm/emac/emac-mac.c adpt->tx_q.tpd.tpbuff[i].dma_addr = 0; tpd 1026 drivers/net/ethernet/qualcomm/emac/emac-mac.c struct emac_tx_queue *tx_q, struct emac_tpd *tpd) tpd 1030 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.last_produce_idx = tx_q->tpd.produce_idx; tpd 1031 drivers/net/ethernet/qualcomm/emac/emac-mac.c hw_tpd = EMAC_TPD(tx_q, adpt->tpd_size, tx_q->tpd.produce_idx); tpd 1033 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (++tx_q->tpd.produce_idx == tx_q->tpd.count) tpd 1034 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.produce_idx = 0; tpd 1036 drivers/net/ethernet/qualcomm/emac/emac-mac.c *(hw_tpd++) = tpd->word[0]; tpd 1037 drivers/net/ethernet/qualcomm/emac/emac-mac.c *(hw_tpd++) = tpd->word[1]; tpd 1038 drivers/net/ethernet/qualcomm/emac/emac-mac.c *(hw_tpd++) = tpd->word[2]; tpd 1039 drivers/net/ethernet/qualcomm/emac/emac-mac.c *hw_tpd = tpd->word[3]; tpd 1047 drivers/net/ethernet/qualcomm/emac/emac-mac.c EMAC_TPD(tx_q, adpt->tpd_size, tx_q->tpd.last_produce_idx); tpd 1170 drivers/net/ethernet/qualcomm/emac/emac-mac.c u32 produce_idx = tx_q->tpd.produce_idx; tpd 1171 drivers/net/ethernet/qualcomm/emac/emac-mac.c u32 consume_idx = tx_q->tpd.consume_idx; tpd 1175 drivers/net/ethernet/qualcomm/emac/emac-mac.c (tx_q->tpd.count + consume_idx - produce_idx - 1); tpd 1187 drivers/net/ethernet/qualcomm/emac/emac-mac.c while (tx_q->tpd.consume_idx != hw_consume_idx) { tpd 1188 drivers/net/ethernet/qualcomm/emac/emac-mac.c tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.consume_idx); tpd 1203 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (++tx_q->tpd.consume_idx == tx_q->tpd.count) tpd 1204 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.consume_idx = 0; tpd 1248 drivers/net/ethernet/qualcomm/emac/emac-mac.c struct emac_tpd *tpd) tpd 1281 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_IPV4_SET(tpd, 1); tpd 1288 drivers/net/ethernet/qualcomm/emac/emac-mac.c memset(tpd, 0, sizeof(*tpd)); tpd 1300 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_LSOV_SET(tpd, 1); tpd 1303 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_LSO_SET(tpd, 1); tpd 1304 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_TCPHDR_OFFSET_SET(tpd, skb_transport_offset(skb)); tpd 1305 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_MSS_SET(tpd, skb_shinfo(skb)->gso_size); tpd 1321 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_PAYLOAD_OFFSET_SET(tpd, cso >> 1); tpd 1322 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_CXSUM_OFFSET_SET(tpd, css >> 1); tpd 1323 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_CSX_SET(tpd, 1); tpd 1332 drivers/net/ethernet/qualcomm/emac/emac-mac.c struct emac_tpd *tpd) tpd 1335 drivers/net/ethernet/qualcomm/emac/emac-mac.c unsigned int first = tx_q->tpd.produce_idx; tpd 1344 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (TPD_LSO(tpd)) { tpd 1347 drivers/net/ethernet/qualcomm/emac/emac-mac.c tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx); tpd 1359 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUFFER_ADDR_L_SET(tpd, lower_32_bits(tpbuf->dma_addr)); tpd 1360 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUFFER_ADDR_H_SET(tpd, upper_32_bits(tpbuf->dma_addr)); tpd 1361 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUF_LEN_SET(tpd, tpbuf->length); tpd 1362 drivers/net/ethernet/qualcomm/emac/emac-mac.c emac_tx_tpd_create(adpt, tx_q, tpd); tpd 1367 drivers/net/ethernet/qualcomm/emac/emac-mac.c tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx); tpd 1380 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUFFER_ADDR_L_SET(tpd, lower_32_bits(tpbuf->dma_addr)); tpd 1381 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUFFER_ADDR_H_SET(tpd, upper_32_bits(tpbuf->dma_addr)); tpd 1382 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUF_LEN_SET(tpd, tpbuf->length); tpd 1383 drivers/net/ethernet/qualcomm/emac/emac-mac.c emac_tx_tpd_create(adpt, tx_q, tpd); tpd 1390 drivers/net/ethernet/qualcomm/emac/emac-mac.c tpbuf = GET_TPD_BUFFER(tx_q, tx_q->tpd.produce_idx); tpd 1400 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUFFER_ADDR_L_SET(tpd, lower_32_bits(tpbuf->dma_addr)); tpd 1401 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUFFER_ADDR_H_SET(tpd, upper_32_bits(tpbuf->dma_addr)); tpd 1402 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_BUF_LEN_SET(tpd, tpbuf->length); tpd 1403 drivers/net/ethernet/qualcomm/emac/emac-mac.c emac_tx_tpd_create(adpt, tx_q, tpd); tpd 1420 drivers/net/ethernet/qualcomm/emac/emac-mac.c tx_q->tpd.produce_idx = first; tpd 1429 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (++first == tx_q->tpd.count) tpd 1440 drivers/net/ethernet/qualcomm/emac/emac-mac.c struct emac_tpd tpd; tpd 1443 drivers/net/ethernet/qualcomm/emac/emac-mac.c memset(&tpd, 0, sizeof(tpd)); tpd 1445 drivers/net/ethernet/qualcomm/emac/emac-mac.c if (emac_tso_csum(adpt, tx_q, skb, &tpd) != 0) { tpd 1454 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_CVLAN_TAG_SET(&tpd, tag); tpd 1455 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_INSTC_SET(&tpd, 1); tpd 1459 drivers/net/ethernet/qualcomm/emac/emac-mac.c TPD_TYP_SET(&tpd, 1); tpd 1461 drivers/net/ethernet/qualcomm/emac/emac-mac.c emac_tx_fill_tpd(adpt, tx_q, skb, &tpd); tpd 1474 drivers/net/ethernet/qualcomm/emac/emac-mac.c prod_idx = (tx_q->tpd.produce_idx << tx_q->produce_shift) & tpd 79 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_BUF_LEN_SET(tpd, val) BITS_SET((tpd)->word[0], 0, 15, val) tpd 81 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_CSX_SET(tpd, val) BITS_SET((tpd)->word[1], 8, 8, val) tpd 83 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_LSO(tpd) BITS_GET((tpd)->word[1], 12, 12) tpd 84 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_LSO_SET(tpd, val) BITS_SET((tpd)->word[1], 12, 12, val) tpd 89 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_LSOV_SET(tpd, val) BITS_SET((tpd)->word[1], 13, 13, val) tpd 93 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_IPV4_SET(tpd, val) BITS_SET((tpd)->word[1], 16, 16, val) tpd 97 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_TYP_SET(tpd, val) BITS_SET((tpd)->word[1], 17, 17, val) tpd 99 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_BUFFER_ADDR_L_SET(tpd, val) ((tpd)->word[2] = cpu_to_le32(val)) tpd 103 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_CVLAN_TAG_SET(tpd, val) BITS_SET((tpd)->word[3], 0, 15, val) tpd 106 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_INSTC_SET(tpd, val) BITS_SET((tpd)->word[3], 17, 17, val) tpd 111 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_BUFFER_ADDR_H_SET(tpd, val) BITS_SET((tpd)->word[3], 18, 31, val) tpd 115 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_PAYLOAD_OFFSET_SET(tpd, val) BITS_SET((tpd)->word[1], 0, 7, val) tpd 119 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_CXSUM_OFFSET_SET(tpd, val) BITS_SET((tpd)->word[1], 18, 25, val) tpd 122 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_TCPHDR_OFFSET_SET(tpd, val) BITS_SET((tpd)->word[1], 0, 7, val) tpd 125 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_MSS_SET(tpd, val) BITS_SET((tpd)->word[1], 18, 30, val) tpd 127 drivers/net/ethernet/qualcomm/emac/emac-mac.h #define TPD_PKT_LEN_SET(tpd, val) ((tpd)->word[2] = cpu_to_le32(val)) tpd 208 drivers/net/ethernet/qualcomm/emac/emac-mac.h struct emac_tpd_ring tpd;