/linux-3.4.99/drivers/infiniband/ulp/iser/ |
D | iser_initiator.c | 154 struct iser_tx_desc *tx_desc) in iser_create_send_desc() argument 159 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iser_create_send_desc() 161 memset(&tx_desc->iser_header, 0, sizeof(struct iser_hdr)); in iser_create_send_desc() 162 tx_desc->iser_header.flags = ISER_VER; in iser_create_send_desc() 164 tx_desc->num_sge = 1; in iser_create_send_desc() 166 if (tx_desc->tx_sg[0].lkey != device->mr->lkey) { in iser_create_send_desc() 167 tx_desc->tx_sg[0].lkey = device->mr->lkey; in iser_create_send_desc() 168 iser_dbg("sdesc %p lkey mismatch, fixing\n", tx_desc); in iser_create_send_desc() 271 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_send_command() local 276 tx_desc->type = ISCSI_TX_SCSI_COMMAND; in iser_send_command() [all …]
|
D | iscsi_iser.c | 138 struct iser_tx_desc *tx_desc) in iser_initialize_task_headers() argument 145 dma_addr = ib_dma_map_single(device->ib_device, (void *)tx_desc, in iser_initialize_task_headers() 150 tx_desc->dma_addr = dma_addr; in iser_initialize_task_headers() 151 tx_desc->tx_sg[0].addr = tx_desc->dma_addr; in iser_initialize_task_headers() 152 tx_desc->tx_sg[0].length = ISER_HEADERS_LEN; in iser_initialize_task_headers() 153 tx_desc->tx_sg[0].lkey = device->mr->lkey; in iser_initialize_task_headers() 280 struct iser_tx_desc *tx_desc = &iser_task->desc; in iscsi_iser_cleanup_task() local 286 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iscsi_iser_cleanup_task()
|
D | iser_verbs.c | 745 int iser_post_send(struct iser_conn *ib_conn, struct iser_tx_desc *tx_desc) in iser_post_send() argument 751 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iser_post_send() 754 send_wr.wr_id = (unsigned long)tx_desc; in iser_post_send() 755 send_wr.sg_list = tx_desc->tx_sg; in iser_post_send() 756 send_wr.num_sge = tx_desc->num_sge; in iser_post_send() 797 struct iser_tx_desc *tx_desc; in iser_drain_tx_cq() local 802 tx_desc = (struct iser_tx_desc *) (unsigned long) wc.wr_id; in iser_drain_tx_cq() 806 iser_snd_completion(tx_desc, ib_conn); in iser_drain_tx_cq() 814 iser_handle_comp_error(tx_desc, ib_conn); in iser_drain_tx_cq()
|
D | iscsi_iser.h | 359 int iser_post_send(struct iser_conn *ib_conn, struct iser_tx_desc *tx_desc); 368 struct iser_tx_desc *tx_desc);
|
/linux-3.4.99/drivers/net/ethernet/mellanox/mlx4/ |
D | en_tx.c | 202 struct mlx4_en_tx_desc *tx_desc = ring->buf + index * TXBB_SIZE; in mlx4_en_free_tx_desc() local 203 struct mlx4_wqe_data_seg *data = (void *) tx_desc + tx_info->data_offset; in mlx4_en_free_tx_desc() 209 __be32 *ptr = (__be32 *)tx_desc; in mlx4_en_free_tx_desc() 213 if (likely((void *) tx_desc + tx_info->nr_txbb * TXBB_SIZE <= end)) { in mlx4_en_free_tx_desc() 528 static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, struct sk_buff *skb, in build_inline_wqe() argument 531 struct mlx4_wqe_inline_seg *inl = &tx_desc->inl; in build_inline_wqe() 565 tx_desc->ctrl.vlan_tag = cpu_to_be16(*vlan_tag); in build_inline_wqe() 566 tx_desc->ctrl.ins_vlan = MLX4_WQE_CTRL_INS_VLAN * in build_inline_wqe() 568 tx_desc->ctrl.fence_size = (real_size / 16) & 0x3f; in build_inline_wqe() 598 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit() local [all …]
|
/linux-3.4.99/drivers/staging/rtl8712/ |
D | rtl8712_xmit.h | 52 #define tx_cmd tx_desc 92 struct tx_desc { struct 106 struct tx_desc txdesc; argument
|
D | rtl8712_xmit.c | 266 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_construct_txaggr_cmd_desc() 303 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_append_mpdu_unit() 364 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next() 372 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next() 380 struct tx_desc * ptxdesc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_dump_aggr_xframe() 424 struct tx_desc *ptxdesc = (struct tx_desc *)pmem; in update_txdesc() 432 struct tx_desc txdesc_mp; in update_txdesc() 434 memcpy(&txdesc_mp, ptxdesc, sizeof(struct tx_desc)); in update_txdesc() 435 memset(ptxdesc, 0, sizeof(struct tx_desc)); in update_txdesc() 555 struct tx_desc *ptxdesc_mp; in update_txdesc()
|
D | hal_init.c | 174 struct tx_desc *ptx_desc; in rtl8712_dl_fw() 175 u32 txdscp_sz = sizeof(struct tx_desc); in rtl8712_dl_fw() 192 ptx_desc = (struct tx_desc *)(ptmpchar + FWBUFF_ALIGN_SZ - in rtl8712_dl_fw()
|
/linux-3.4.99/drivers/net/ethernet/ibm/emac/ |
D | debug.c | 41 i, p->tx_desc[i].data_ptr, p->tx_skb[i] ? 'V' : ' ', in emac_desc_dump() 42 p->tx_desc[i].ctrl, p->tx_desc[i].data_len, in emac_desc_dump() 44 p->tx_desc[NUM_TX_BUFF / 2 + i].data_ptr, in emac_desc_dump() 46 p->tx_desc[NUM_TX_BUFF / 2 + i].ctrl, in emac_desc_dump() 47 p->tx_desc[NUM_TX_BUFF / 2 + i].data_len); in emac_desc_dump()
|
D | core.c | 1085 if (dev->tx_desc[i].ctrl & MAL_TX_CTRL_READY) in emac_clean_tx_ring() 1088 dev->tx_desc[i].ctrl = 0; in emac_clean_tx_ring() 1089 dev->tx_desc[i].data_ptr = 0; in emac_clean_tx_ring() 1391 dev->tx_desc[slot].data_ptr = dma_map_single(&dev->ofdev->dev, in emac_start_xmit() 1394 dev->tx_desc[slot].data_len = (u16) len; in emac_start_xmit() 1396 dev->tx_desc[slot].ctrl = ctrl; in emac_start_xmit() 1417 dev->tx_desc[slot].data_ptr = pd; in emac_xmit_split() 1418 dev->tx_desc[slot].data_len = (u16) chunk; in emac_xmit_split() 1419 dev->tx_desc[slot].ctrl = ctrl; in emac_xmit_split() 1460 dev->tx_desc[slot].data_ptr = pd = in emac_start_xmit_sg() [all …]
|
/linux-3.4.99/drivers/net/ethernet/xscale/ixp2000/ |
D | ixpdev.c | 37 static struct ixpdev_tx_desc * const tx_desc = variable 58 desc = tx_desc + entry; in ixpdev_xmit() 168 channel = tx_desc[entry].channel; in ixpdev_tx_complete() 354 free_page((unsigned long)phys_to_virt(tx_desc[i].buf_addr)); in ixpdev_init() 357 tx_desc[i].buf_addr = virt_to_phys(buf); in ixpdev_init() 409 free_page((unsigned long)phys_to_virt(tx_desc[i].buf_addr)); in ixpdev_init() 433 free_page((unsigned long)phys_to_virt(tx_desc[i].buf_addr)); in ixpdev_deinit()
|
/linux-3.4.99/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 96 struct sgiseeq_tx_desc *tx_desc; member 192 sp->tx_desc[i].tdma.cntinfo = TCNTINFO_INIT; in seeq_init_ring() 193 dma_sync_desc_dev(dev, &sp->tx_desc[i]); in seeq_init_ring() 226 if (sp->tx_desc[i].skb) { in seeq_purge_ring() 227 dev_kfree_skb(sp->tx_desc[i].skb); in seeq_purge_ring() 228 sp->tx_desc[i].skb = NULL; in seeq_purge_ring() 249 struct sgiseeq_tx_desc *t = gpriv->tx_desc; in sgiseeq_dump_rings() 308 hregs->tx_ndptr = VIRT_TO_DMA(sp, sp->tx_desc); in init_seeq() 439 td = &sp->tx_desc[i]; in kick_tx() 444 td = &sp->tx_desc[i]; in kick_tx() [all …]
|
/linux-3.4.99/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 1157 struct pch_gbe_tx_desc *tx_desc; in pch_gbe_tx_queue() local 1244 tx_desc = PCH_GBE_TX_DESC(*tx_ring, ring_num); in pch_gbe_tx_queue() 1245 tx_desc->buffer_addr = (buffer_info->dma); in pch_gbe_tx_queue() 1246 tx_desc->length = (tmp_skb->len); in pch_gbe_tx_queue() 1247 tx_desc->tx_words_eob = ((tmp_skb->len + 3)); in pch_gbe_tx_queue() 1248 tx_desc->tx_frame_ctrl = (frame_ctrl); in pch_gbe_tx_queue() 1249 tx_desc->gbec_status = (DSC_INIT16); in pch_gbe_tx_queue() 1542 struct pch_gbe_tx_desc *tx_desc; in pch_gbe_alloc_tx_buffers() local 1552 tx_desc = PCH_GBE_TX_DESC(*tx_ring, i); in pch_gbe_alloc_tx_buffers() 1553 tx_desc->gbec_status = (DSC_INIT16); in pch_gbe_alloc_tx_buffers() [all …]
|
/linux-3.4.99/drivers/net/ethernet/dec/tulip/ |
D | uli526x.c | 122 struct tx_desc { struct 125 struct tx_desc *next_tx_desc; argument 158 struct tx_desc *first_tx_desc; 159 struct tx_desc *tx_insert_ptr; 160 struct tx_desc *tx_remove_ptr; 326 …db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, &db->… in uli526x_init_one() 339 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in uli526x_init_one() 404 pci_free_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, in uli526x_init_one() 427 pci_free_consistent(db->pdev, sizeof(struct tx_desc) * in uli526x_remove_one() 582 struct tx_desc *txptr; in uli526x_start_xmit() [all …]
|
D | dmfe.c | 201 struct tx_desc { struct 204 struct tx_desc *next_tx_desc; argument 238 struct tx_desc *first_tx_desc; 239 struct tx_desc *tx_insert_ptr; 240 struct tx_desc *tx_remove_ptr; 449 db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * in dmfe_init_one() 459 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in dmfe_init_one() 511 pci_free_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, in dmfe_init_one() 536 pci_free_consistent(db->pdev, sizeof(struct tx_desc) * in dmfe_remove_one() 685 struct tx_desc *txptr; in dmfe_start_xmit() [all …]
|
/linux-3.4.99/drivers/infiniband/hw/amso1100/ |
D | c2.c | 114 struct c2_tx_desc *tx_desc; in c2_tx_ring_alloc() local 124 tx_desc = vaddr; in c2_tx_ring_alloc() 126 for (i = 0; i < tx_ring->count; i++, elem++, tx_desc++, txp_desc++) { in c2_tx_ring_alloc() 127 tx_desc->len = 0; in c2_tx_ring_alloc() 128 tx_desc->status = 0; in c2_tx_ring_alloc() 138 elem->ht_desc = tx_desc; in c2_tx_ring_alloc() 143 tx_desc->next_offset = base; in c2_tx_ring_alloc() 146 tx_desc->next_offset = in c2_tx_ring_alloc() 147 base + (i + 1) * sizeof(*tx_desc); in c2_tx_ring_alloc() 308 struct c2_tx_desc *tx_desc = elem->ht_desc; in c2_tx_free() local [all …]
|
/linux-3.4.99/drivers/atm/ |
D | horizon.c | 1504 tx_ch_desc * tx_desc = &memmap->tx_descs[tx_channel]; in setup_idle_tx_channel() local 1540 rd_ptr = rd_mem (dev, &tx_desc->rd_buf_type) & BUFFER_PTR_MASK; in setup_idle_tx_channel() 1541 wr_ptr = rd_mem (dev, &tx_desc->wr_buf_type) & BUFFER_PTR_MASK; in setup_idle_tx_channel() 1567 wr_mem (dev, &tx_desc->partial_crc, INITIAL_CRC); in setup_idle_tx_channel() 1571 wr_mem (dev, &tx_desc->rd_buf_type, rd_ptr); in setup_idle_tx_channel() 1572 wr_mem (dev, &tx_desc->wr_buf_type, wr_ptr); in setup_idle_tx_channel() 1576 wr_mem (dev, &tx_desc->cell_header, channel); in setup_idle_tx_channel() 1857 cell_buf * tx_desc; in hrz_init() local 1893 tx_ch_desc * tx_desc = &memmap->tx_descs[chan]; in hrz_init() local 1897 wr_mem (dev, &tx_desc->rd_buf_type, BUF_PTR(buf)); in hrz_init() [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/igbvf/ |
D | igbvf.h | 145 union e1000_adv_tx_desc tx_desc; member 302 (&((((R).desc))[i].tx_desc))
|
/linux-3.4.99/drivers/net/ethernet/marvell/ |
D | pxa168_eth.c | 186 struct tx_desc { struct 210 struct tx_desc *p_tx_desc_area; argument 656 (u32) (pep->tx_desc_dma + tx_curr_desc * sizeof(struct tx_desc))); in eth_port_start() 715 struct tx_desc *desc; in txq_reclaim() 1076 struct tx_desc *p_tx_desc; in txq_init() 1087 size = pep->tx_ring_size * sizeof(struct tx_desc); in txq_init() 1098 p_tx_desc = (struct tx_desc *)pep->p_tx_desc_area; in txq_init() 1101 ((i + 1) % tx_desc_num) * sizeof(struct tx_desc); in txq_init() 1105 pep->tx_desc_area_size = tx_desc_num * sizeof(struct tx_desc); in txq_init() 1258 struct tx_desc *desc; in pxa168_eth_start_xmit()
|
D | mv643xx_eth.c | 198 struct tx_desc { struct 214 struct tx_desc { struct 376 struct tx_desc *tx_desc_area; 492 addr += txq->tx_curr_desc * sizeof(struct tx_desc); in txq_reset_hw_ptr() 738 struct tx_desc *desc; in txq_submit_frag_skb() 777 struct tx_desc *desc; in txq_submit_skb() 923 txq->tx_curr_desc * sizeof(struct tx_desc); in txq_kick() 945 struct tx_desc *desc; in txq_reclaim() 1959 struct tx_desc *tx_desc; in txq_init() local 1971 size = txq->tx_ring_size * sizeof(struct tx_desc); in txq_init() [all …]
|
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | adapter.h | 216 struct tx_desc { struct 239 struct tx_desc *desc; /* address of HW TX descriptor ring */ argument
|
/linux-3.4.99/drivers/staging/rtl8192u/ |
D | r8192U_core.c | 1989 tx_desc_819x_usb *tx_desc = (tx_desc_819x_usb *)skb->data; in rtl8192_tx() local 2068 memset(tx_desc, 0, sizeof(tx_desc_819x_usb)); in rtl8192_tx() 2070 tx_desc->LINIP = 0; in rtl8192_tx() 2071 tx_desc->CmdInit = 1; in rtl8192_tx() 2072 tx_desc->Offset = sizeof(tx_fwinfo_819x_usb) + 8; in rtl8192_tx() 2076 tx_desc->PktSize = tcb_desc->pkt_size; in rtl8192_tx() 2080 tx_desc->PktSize = (skb->len - TX_PACKET_SHIFT_BYTES) & 0xffff; in rtl8192_tx() 2084 tx_desc->SecCAMID= 0; in rtl8192_tx() 2085 tx_desc->RATid = tcb_desc->RATRIndex; in rtl8192_tx() 2088 tx_desc->NoEnc = 1; in rtl8192_tx() [all …]
|
/linux-3.4.99/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_dev.h | 50 void rtl8192_tx_fill_desc(struct net_device *dev, struct tx_desc *pdesc,
|
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb3/ |
D | adapter.h | 162 struct tx_desc; 176 struct tx_desc *desc; /* address of HW Tx descriptor ring */
|
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 127 #define TXQ_STOP_THRES (SGE_MAX_WR_LEN / sizeof(struct tx_desc)) 1079 ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); in ctrl_xmit() 2017 flsz = fl->size / 8 + STAT_LEN / sizeof(struct tx_desc); in t4_sge_alloc_rxq() 2070 dma_free_coherent(adap->pdev_dev, flsz * sizeof(struct tx_desc), in t4_sge_alloc_rxq() 2096 nentries = txq->q.size + STAT_LEN / sizeof(struct tx_desc); in t4_sge_alloc_eth_txq() 2099 sizeof(struct tx_desc), sizeof(struct tx_sw_desc), in t4_sge_alloc_eth_txq() 2127 nentries * sizeof(struct tx_desc), in t4_sge_alloc_eth_txq() 2149 nentries = txq->q.size + STAT_LEN / sizeof(struct tx_desc); in t4_sge_alloc_ctrl_txq() 2152 sizeof(struct tx_desc), 0, &txq->q.phys_addr, in t4_sge_alloc_ctrl_txq() 2178 nentries * sizeof(struct tx_desc), in t4_sge_alloc_ctrl_txq() [all …]
|