Home
last modified time | relevance | path

Searched refs:tx_desc (Results 1 – 93 of 93) sorted by relevance

/linux-4.1.27/drivers/infiniband/ulp/iser/
Diser_initiator.c164 struct iser_tx_desc *tx_desc) in iser_create_send_desc() argument
169 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iser_create_send_desc()
171 memset(&tx_desc->iser_header, 0, sizeof(struct iser_hdr)); in iser_create_send_desc()
172 tx_desc->iser_header.flags = ISER_VER; in iser_create_send_desc()
174 tx_desc->num_sge = 1; in iser_create_send_desc()
176 if (tx_desc->tx_sg[0].lkey != device->mr->lkey) { in iser_create_send_desc()
177 tx_desc->tx_sg[0].lkey = device->mr->lkey; in iser_create_send_desc()
178 iser_dbg("sdesc %p lkey mismatch, fixing\n", tx_desc); in iser_create_send_desc()
386 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_send_command() local
392 tx_desc->type = ISCSI_TX_SCSI_COMMAND; in iser_send_command()
[all …]
Discsi_iser.c180 struct iser_tx_desc *tx_desc) in iser_initialize_task_headers() argument
197 dma_addr = ib_dma_map_single(device->ib_device, (void *)tx_desc, in iser_initialize_task_headers()
204 tx_desc->mapped = true; in iser_initialize_task_headers()
205 tx_desc->dma_addr = dma_addr; in iser_initialize_task_headers()
206 tx_desc->tx_sg[0].addr = tx_desc->dma_addr; in iser_initialize_task_headers()
207 tx_desc->tx_sg[0].length = ISER_HEADERS_LEN; in iser_initialize_task_headers()
208 tx_desc->tx_sg[0].lkey = device->mr->lkey; in iser_initialize_task_headers()
364 struct iser_tx_desc *tx_desc = &iser_task->desc; in iscsi_iser_cleanup_task() local
372 if (likely(tx_desc->mapped)) { in iscsi_iser_cleanup_task()
373 ib_dma_unmap_single(device->ib_device, tx_desc->dma_addr, in iscsi_iser_cleanup_task()
[all …]
Diser_verbs.c1064 int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc, in iser_post_send() argument
1071 tx_desc->dma_addr, ISER_HEADERS_LEN, in iser_post_send()
1075 send_wr.wr_id = (uintptr_t)tx_desc; in iser_post_send()
1076 send_wr.sg_list = tx_desc->tx_sg; in iser_post_send()
1077 send_wr.num_sge = tx_desc->num_sge; in iser_post_send()
1158 struct iser_tx_desc *tx_desc; in iser_handle_wc() local
1169 tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; in iser_handle_wc()
1170 iser_snd_completion(tx_desc, ib_conn); in iser_handle_wc()
Discsi_iser.h619 int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc,
632 struct iser_tx_desc *tx_desc);
/linux-4.1.27/drivers/infiniband/ulp/isert/
Dib_isert.c1042 isert_post_send(struct isert_conn *isert_conn, struct iser_tx_desc *tx_desc) in isert_post_send() argument
1048 ib_dma_sync_single_for_device(ib_dev, tx_desc->dma_addr, in isert_post_send()
1052 send_wr.wr_id = (uintptr_t)tx_desc; in isert_post_send()
1053 send_wr.sg_list = tx_desc->tx_sg; in isert_post_send()
1054 send_wr.num_sge = tx_desc->num_sge; in isert_post_send()
1068 struct iser_tx_desc *tx_desc) in isert_create_send_desc() argument
1073 ib_dma_sync_single_for_cpu(ib_dev, tx_desc->dma_addr, in isert_create_send_desc()
1076 memset(&tx_desc->iser_header, 0, sizeof(struct iser_hdr)); in isert_create_send_desc()
1077 tx_desc->iser_header.flags = ISER_VER; in isert_create_send_desc()
1079 tx_desc->num_sge = 1; in isert_create_send_desc()
[all …]
Dib_isert.h143 struct iser_tx_desc tx_desc; member
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c246 struct mlx4_en_tx_desc *tx_desc = ring->buf + index * TXBB_SIZE; in mlx4_en_stamp_wqe() local
249 __be32 *ptr = (__be32 *)tx_desc; in mlx4_en_stamp_wqe()
253 if (likely((void *)tx_desc + tx_info->nr_txbb * TXBB_SIZE <= end)) { in mlx4_en_stamp_wqe()
280 struct mlx4_en_tx_desc *tx_desc = ring->buf + index * TXBB_SIZE; in mlx4_en_free_tx_desc() local
281 struct mlx4_wqe_data_seg *data = (void *) tx_desc + tx_info->data_offset; in mlx4_en_free_tx_desc()
300 if (likely((void *) tx_desc + tx_info->nr_txbb * TXBB_SIZE <= end)) { in mlx4_en_free_tx_desc()
633 static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, in build_inline_wqe() argument
639 struct mlx4_wqe_inline_seg *inl = &tx_desc->inl; in build_inline_wqe()
711 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit() local
770 tx_desc = ring->buf + index * TXBB_SIZE; in mlx4_en_xmit()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c797 struct fm10k_tx_desc *tx_desc; in fm10k_tso() local
826 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tso()
827 tx_desc->hdrlen = hdrlen; in fm10k_tso()
828 tx_desc->mss = cpu_to_le16(skb_shinfo(skb)->gso_size); in fm10k_tso()
843 struct fm10k_tx_desc *tx_desc; in fm10k_tx_csum() local
910 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tx_csum()
911 tx_desc->hdrlen = 0; in fm10k_tx_csum()
912 tx_desc->mss = 0; in fm10k_tx_csum()
938 struct fm10k_tx_desc *tx_desc, u16 i, in fm10k_tx_desc_push() argument
946 tx_desc->buffer_addr = cpu_to_le64(dma); in fm10k_tx_desc_push()
[all …]
Dfm10k_type.h687 struct fm10k_tx_desc tx_desc[256]; member
/linux-4.1.27/drivers/staging/rtl8712/
Drtl8712_xmit.h52 #define tx_cmd tx_desc
92 struct tx_desc { struct
106 struct tx_desc txdesc; argument
Drtl8712_xmit.c267 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_construct_txaggr_cmd_desc()
304 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_append_mpdu_unit()
366 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next()
374 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next()
382 struct tx_desc *ptxdesc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_dump_aggr_xframe()
426 struct tx_desc *ptxdesc = (struct tx_desc *)pmem; in update_txdesc()
434 struct tx_desc txdesc_mp; in update_txdesc()
436 memcpy(&txdesc_mp, ptxdesc, sizeof(struct tx_desc)); in update_txdesc()
437 memset(ptxdesc, 0, sizeof(struct tx_desc)); in update_txdesc()
557 struct tx_desc *ptxdesc_mp; in update_txdesc()
Dhal_init.c166 struct tx_desc *ptx_desc; in rtl8712_dl_fw()
167 u32 txdscp_sz = sizeof(struct tx_desc); in rtl8712_dl_fw()
184 ptx_desc = (struct tx_desc *)(ptmpchar + FWBUFF_ALIGN_SZ - in rtl8712_dl_fw()
Drtl8712_cmd.c314 struct tx_desc *pdesc; in r8712_cmd_thread()
335 pdesc = (struct tx_desc *)pcmdbuf; in r8712_cmd_thread()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmvneta.c699 int tx_desc = txq->next_desc_to_proc; in mvneta_txq_next_desc_get() local
701 txq->next_desc_to_proc = MVNETA_QUEUE_NEXT_DESC(txq, tx_desc); in mvneta_txq_next_desc_get()
702 return txq->descs + tx_desc; in mvneta_txq_next_desc_get()
1321 struct mvneta_tx_desc *tx_desc = txq->descs + in mvneta_txq_bufs_free() local
1327 if (!IS_TSO_HEADER(txq, tx_desc->buf_phys_addr)) in mvneta_txq_bufs_free()
1329 tx_desc->buf_phys_addr, in mvneta_txq_bufs_free()
1330 tx_desc->data_size, DMA_TO_DEVICE); in mvneta_txq_bufs_free()
1575 struct mvneta_tx_desc *tx_desc; in mvneta_tso_put_hdr() local
1579 tx_desc = mvneta_txq_next_desc_get(txq); in mvneta_tso_put_hdr()
1580 tx_desc->data_size = hdr_len; in mvneta_tso_put_hdr()
[all …]
Dpxa168_eth.c195 struct tx_desc { struct
223 struct tx_desc *p_tx_desc_area; argument
652 (u32) (pep->tx_desc_dma + tx_curr_desc * sizeof(struct tx_desc))); in eth_port_start()
713 struct tx_desc *desc; in txq_reclaim()
1100 struct tx_desc *p_tx_desc; in txq_init()
1111 size = pep->tx_ring_size * sizeof(struct tx_desc); in txq_init()
1122 ((i + 1) % tx_desc_num) * sizeof(struct tx_desc); in txq_init()
1126 pep->tx_desc_area_size = tx_desc_num * sizeof(struct tx_desc); in txq_init()
1277 struct tx_desc *desc; in pxa168_eth_start_xmit()
Dmv643xx_eth.c211 struct tx_desc { struct
227 struct tx_desc { argument
368 struct tx_desc *tx_desc_area;
488 addr += txq->tx_curr_desc * sizeof(struct tx_desc); in txq_reset_hw_ptr()
752 struct tx_desc *desc; in txq_put_data_tso()
787 struct tx_desc *desc; in txq_put_hdr_tso()
887 struct tx_desc *desc; in txq_submit_frag_skb()
922 struct tx_desc *desc; in txq_submit_skb()
1033 txq->tx_curr_desc * sizeof(struct tx_desc); in txq_kick()
1055 struct tx_desc *desc; in txq_reclaim()
[all …]
Dmvpp2.c4147 int tx_desc = txq->next_desc_to_proc; in mvpp2_txq_next_desc_get() local
4149 txq->next_desc_to_proc = MVPP2_QUEUE_NEXT_DESC(txq, tx_desc); in mvpp2_txq_next_desc_get()
4150 return txq->descs + tx_desc; in mvpp2_txq_next_desc_get()
4410 struct mvpp2_tx_desc *tx_desc = txq->descs + in mvpp2_txq_bufs_free() local
4419 dma_unmap_single(port->dev->dev.parent, tx_desc->buf_phys_addr, in mvpp2_txq_bufs_free()
4420 tx_desc->data_size, DMA_TO_DEVICE); in mvpp2_txq_bufs_free()
5121 struct mvpp2_tx_desc *tx_desc; in mvpp2_tx_frag_process() local
5129 tx_desc = mvpp2_txq_next_desc_get(aggr_txq); in mvpp2_tx_frag_process()
5130 tx_desc->phys_txq = txq->id; in mvpp2_tx_frag_process()
5131 tx_desc->data_size = frag->size; in mvpp2_tx_frag_process()
[all …]
/linux-4.1.27/sound/soc/blackfin/
Dbf6xx-sport.c71 set_dma_next_desc_addr(sport->tx_dma_chan, sport->tx_desc); in sport_tx_start()
153 if (sport->tx_desc) in sport_config_tx_dma()
155 sport->tx_desc, 0); in sport_config_tx_dma()
157 sport->tx_desc = dma_alloc_coherent(NULL, in sport_config_tx_dma()
160 if (!sport->tx_desc) in sport_config_tx_dma()
168 setup_desc(sport->tx_desc, buf, fragcount, fragsize, in sport_config_tx_dma()
416 if (sport->tx_desc) in sport_delete()
418 sport->tx_desc, 0); in sport_delete()
Dbf6xx-sport.h41 struct dmasg *tx_desc; member
/linux-4.1.27/drivers/net/ethernet/ibm/emac/
Ddebug.c41 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()
Dcore.c1100 if (dev->tx_desc[i].ctrl & MAL_TX_CTRL_READY) in emac_clean_tx_ring()
1103 dev->tx_desc[i].ctrl = 0; in emac_clean_tx_ring()
1104 dev->tx_desc[i].data_ptr = 0; in emac_clean_tx_ring()
1406 dev->tx_desc[slot].data_ptr = dma_map_single(&dev->ofdev->dev, in emac_start_xmit()
1409 dev->tx_desc[slot].data_len = (u16) len; in emac_start_xmit()
1411 dev->tx_desc[slot].ctrl = ctrl; in emac_start_xmit()
1432 dev->tx_desc[slot].data_ptr = pd; in emac_xmit_split()
1433 dev->tx_desc[slot].data_len = (u16) chunk; in emac_xmit_split()
1434 dev->tx_desc[slot].ctrl = ctrl; in emac_xmit_split()
1475 dev->tx_desc[slot].data_ptr = pd = in emac_start_xmit_sg()
[all …]
Dcore.h247 struct mal_descriptor *tx_desc; member
/linux-4.1.27/drivers/net/ethernet/seeq/
Dsgiseeq.c95 struct sgiseeq_tx_desc *tx_desc; member
191 sp->tx_desc[i].tdma.cntinfo = TCNTINFO_INIT; in seeq_init_ring()
192 dma_sync_desc_dev(dev, &sp->tx_desc[i]); in seeq_init_ring()
225 if (sp->tx_desc[i].skb) { in seeq_purge_ring()
226 dev_kfree_skb(sp->tx_desc[i].skb); in seeq_purge_ring()
227 sp->tx_desc[i].skb = NULL; in seeq_purge_ring()
248 struct sgiseeq_tx_desc *t = gpriv->tx_desc; in sgiseeq_dump_rings()
307 hregs->tx_ndptr = VIRT_TO_DMA(sp, sp->tx_desc); in init_seeq()
436 td = &sp->tx_desc[i]; in kick_tx()
441 td = &sp->tx_desc[i]; in kick_tx()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c216 struct i40e_tx_desc *tx_desc; in i40e_clean_tx_irq() local
221 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_clean_tx_irq()
237 if (tx_head == tx_desc) in i40e_clean_tx_irq()
261 while (tx_desc != eop_desc) { in i40e_clean_tx_irq()
264 tx_desc++; in i40e_clean_tx_irq()
269 tx_desc = I40E_TX_DESC(tx_ring, 0); in i40e_clean_tx_irq()
284 tx_desc++; in i40e_clean_tx_irq()
289 tx_desc = I40E_TX_DESC(tx_ring, 0); in i40e_clean_tx_irq()
292 prefetch(tx_desc); in i40e_clean_tx_irq()
1692 struct i40e_tx_desc *tx_desc; in i40e_tx_map() local
[all …]
/linux-4.1.27/drivers/net/ethernet/hisilicon/
Dhip04_eth.c134 struct tx_desc { struct
162 struct tx_desc *tx_desc; argument
371 struct tx_desc *desc; in hip04_tx_reclaim()
381 desc = &priv->tx_desc[tx_tail]; in hip04_tx_reclaim()
430 struct tx_desc *desc = &priv->tx_desc[tx_head]; in hip04_mac_start_xmit()
451 phys = priv->tx_desc_dma + tx_head * sizeof(struct tx_desc); in hip04_mac_start_xmit()
777 priv->tx_desc = dma_alloc_coherent(d, in hip04_alloc_ring()
778 TX_DESC_NUM * sizeof(struct tx_desc), in hip04_alloc_ring()
780 if (!priv->tx_desc) in hip04_alloc_ring()
807 dma_free_coherent(d, TX_DESC_NUM * sizeof(struct tx_desc), in hip04_free_ring()
[all …]
/linux-4.1.27/drivers/net/ethernet/
Dec_bhf.c112 struct tx_desc { struct
153 struct tx_desc *tx_descs;
179 static void ec_bhf_send_packet(struct ec_bhf_priv *priv, struct tx_desc *desc) in ec_bhf_send_packet()
187 static int ec_bhf_desc_sent(struct tx_desc *desc) in ec_bhf_desc_sent()
295 struct tx_desc *desc; in ec_bhf_start_xmit()
370 priv->tx_dcount = priv->tx_buf.len / sizeof(struct tx_desc); in ec_bhf_setup_tx_descs()
371 priv->tx_descs = (struct tx_desc *)priv->tx_buf.buf; in ec_bhf_setup_tx_descs()
418 FIFO_SIZE * sizeof(struct tx_desc)); in ec_bhf_open()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c56 struct i40e_tx_desc *tx_desc; in i40e_program_fdir_filter() local
148 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_program_fdir_filter()
159 tx_desc->buffer_addr = cpu_to_le64(dma); in i40e_program_fdir_filter()
165 tx_desc->cmd_type_offset_bsz = in i40e_program_fdir_filter()
177 first->next_to_watch = tx_desc; in i40e_program_fdir_filter()
697 struct i40e_tx_desc *tx_desc; in i40e_clean_tx_irq() local
702 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_clean_tx_irq()
718 if (tx_head == tx_desc) in i40e_clean_tx_irq()
742 while (tx_desc != eop_desc) { in i40e_clean_tx_irq()
745 tx_desc++; in i40e_clean_tx_irq()
[all …]
Di40e_main.c3272 struct i40e_tx_desc *tx_desc; in i40e_clean_fdir_tx_irq() local
3275 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_clean_fdir_tx_irq()
3296 tx_desc->buffer_addr = 0; in i40e_clean_fdir_tx_irq()
3297 tx_desc->cmd_type_offset_bsz = 0; in i40e_clean_fdir_tx_irq()
3300 tx_desc++; in i40e_clean_fdir_tx_irq()
3305 tx_desc = I40E_TX_DESC(tx_ring, 0); in i40e_clean_fdir_tx_irq()
3319 tx_desc->buffer_addr = 0; in i40e_clean_fdir_tx_irq()
3320 tx_desc->cmd_type_offset_bsz = 0; in i40e_clean_fdir_tx_irq()
3324 tx_desc++; in i40e_clean_fdir_tx_irq()
3329 tx_desc = I40E_TX_DESC(tx_ring, 0); in i40e_clean_fdir_tx_irq()
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1152 struct pch_gbe_tx_desc *tx_desc; in pch_gbe_tx_queue() local
1237 tx_desc = PCH_GBE_TX_DESC(*tx_ring, ring_num); in pch_gbe_tx_queue()
1238 tx_desc->buffer_addr = (buffer_info->dma); in pch_gbe_tx_queue()
1239 tx_desc->length = (tmp_skb->len); in pch_gbe_tx_queue()
1240 tx_desc->tx_words_eob = ((tmp_skb->len + 3)); in pch_gbe_tx_queue()
1241 tx_desc->tx_frame_ctrl = (frame_ctrl); in pch_gbe_tx_queue()
1242 tx_desc->gbec_status = (DSC_INIT16); in pch_gbe_tx_queue()
1510 struct pch_gbe_tx_desc *tx_desc; in pch_gbe_alloc_tx_buffers() local
1520 tx_desc = PCH_GBE_TX_DESC(*tx_ring, i); in pch_gbe_alloc_tx_buffers()
1521 tx_desc->gbec_status = (DSC_INIT16); in pch_gbe_alloc_tx_buffers()
[all …]
/linux-4.1.27/drivers/staging/rtl8723au/hal/
Drtl8723au_xmit.c43 static void rtl8192cu_cal_txdesc_chksum(struct tx_desc *ptxdesc) in rtl8192cu_cal_txdesc_chksum()
59 static void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc) in fill_txdesc_sectype()
141 struct tx_desc *ptxdesc = (struct tx_desc *)pmem; in update_txdesc()
147 ptxdesc = (struct tx_desc *)(pmem+PACKET_OFFSET_SZ); in update_txdesc()
152 memset(ptxdesc, 0, sizeof(struct tx_desc)); in update_txdesc()
Drtl8723a_hal_init.c1839 static void rtl8723a_cal_txdesc_chksum(struct tx_desc *ptxdesc) in rtl8723a_cal_txdesc_chksum()
1866 struct tx_desc *ptxdesc; in rtl8723a_fill_fake_txdesc()
1869 ptxdesc = (struct tx_desc *)pDesc; in rtl8723a_fill_fake_txdesc()
/linux-4.1.27/drivers/staging/rtl8188eu/hal/
Drtl8188eu_xmit.c47 static void rtl8188eu_cal_txdesc_chksum(struct tx_desc *ptxdesc) in rtl8188eu_cal_txdesc_chksum()
67 struct tx_desc *ptxdesc; in rtl8188e_fill_fake_txdesc()
70 ptxdesc = (struct tx_desc *)desc; in rtl8188e_fill_fake_txdesc()
102 static void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc) in fill_txdesc_sectype()
183 struct tx_desc *ptxdesc = (struct tx_desc *)pmem; in update_txdesc()
190 ptxdesc = (struct tx_desc *)(pmem+PACKET_OFFSET_SZ); in update_txdesc()
195 memset(ptxdesc, 0, sizeof(struct tx_desc)); in update_txdesc()
Drtl8188e_xmit.c63 struct tx_desc *ptxdesc) in _dbg_dump_tx_info()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Duli526x.c116 struct tx_desc { struct
119 struct tx_desc *next_tx_desc; argument
155 struct tx_desc *first_tx_desc;
156 struct tx_desc *tx_insert_ptr;
157 struct tx_desc *tx_remove_ptr;
338 …db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, &db->… in uli526x_init_one()
346 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in uli526x_init_one()
425 pci_free_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, in uli526x_init_one()
445 pci_free_consistent(db->pdev, sizeof(struct tx_desc) * in uli526x_remove_one()
599 struct tx_desc *txptr; in uli526x_start_xmit()
[all …]
Ddmfe.c199 struct tx_desc { struct
202 struct tx_desc *next_tx_desc; argument
236 struct tx_desc *first_tx_desc;
237 struct tx_desc *tx_insert_ptr;
238 struct tx_desc *tx_remove_ptr;
446 db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * in dmfe_init_one()
460 db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; in dmfe_init_one()
519 pci_free_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, in dmfe_init_one()
543 pci_free_consistent(db->pdev, sizeof(struct tx_desc) * in dmfe_remove_one()
691 struct tx_desc *txptr; in dmfe_start_xmit()
[all …]
/linux-4.1.27/drivers/spi/
Dspi-pxa2xx-dma.c269 struct dma_async_tx_descriptor *tx_desc, *rx_desc; in pxa2xx_spi_dma_prepare() local
271 tx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_MEM_TO_DEV); in pxa2xx_spi_dma_prepare()
272 if (!tx_desc) { in pxa2xx_spi_dma_prepare()
290 dmaengine_submit(tx_desc); in pxa2xx_spi_dma_prepare()
Dspi-sirf.c341 struct dma_async_tx_descriptor *rx_desc, *tx_desc; in spi_sirfsoc_dma_transfer() local
377 tx_desc = dmaengine_prep_slave_single(sspi->tx_chan, in spi_sirfsoc_dma_transfer()
380 tx_desc->callback = spi_sirfsoc_dma_fini_callback; in spi_sirfsoc_dma_transfer()
381 tx_desc->callback_param = &sspi->tx_done; in spi_sirfsoc_dma_transfer()
383 dmaengine_submit(tx_desc); in spi_sirfsoc_dma_transfer()
/linux-4.1.27/drivers/infiniband/hw/amso1100/
Dc2.c114 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-4.1.27/drivers/atm/
Dhorizon.c1480 tx_ch_desc * tx_desc = &memmap->tx_descs[tx_channel]; in setup_idle_tx_channel() local
1516 rd_ptr = rd_mem (dev, &tx_desc->rd_buf_type) & BUFFER_PTR_MASK; in setup_idle_tx_channel()
1517 wr_ptr = rd_mem (dev, &tx_desc->wr_buf_type) & BUFFER_PTR_MASK; in setup_idle_tx_channel()
1543 wr_mem (dev, &tx_desc->partial_crc, INITIAL_CRC); in setup_idle_tx_channel()
1547 wr_mem (dev, &tx_desc->rd_buf_type, rd_ptr); in setup_idle_tx_channel()
1548 wr_mem (dev, &tx_desc->wr_buf_type, wr_ptr); in setup_idle_tx_channel()
1552 wr_mem (dev, &tx_desc->cell_header, channel); in setup_idle_tx_channel()
1834 cell_buf * tx_desc; in hrz_init() local
1870 tx_ch_desc * tx_desc = &memmap->tx_descs[chan]; in hrz_init() local
1874 wr_mem (dev, &tx_desc->rd_buf_type, BUF_PTR(buf)); in hrz_init()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c295 union ixgbe_adv_tx_desc *tx_desc; in ixgbevf_clean_tx_irq() local
304 tx_desc = IXGBEVF_TX_DESC(tx_ring, i); in ixgbevf_clean_tx_irq()
342 while (tx_desc != eop_desc) { in ixgbevf_clean_tx_irq()
344 tx_desc++; in ixgbevf_clean_tx_irq()
349 tx_desc = IXGBEVF_TX_DESC(tx_ring, 0); in ixgbevf_clean_tx_irq()
364 tx_desc++; in ixgbevf_clean_tx_irq()
369 tx_desc = IXGBEVF_TX_DESC(tx_ring, 0); in ixgbevf_clean_tx_irq()
373 prefetch(tx_desc); in ixgbevf_clean_tx_irq()
3420 static void ixgbevf_tx_olinfo_status(union ixgbe_adv_tx_desc *tx_desc, in ixgbevf_tx_olinfo_status() argument
3442 tx_desc->read.olinfo_status = olinfo_status; in ixgbevf_tx_olinfo_status()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/net/
Daltera_tse.txt13 "tx_desc": MSGDMA Tx dispatcher descriptor space region
63 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
101 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Digbvf.h142 union e1000_adv_tx_desc tx_desc; member
295 (&((((R).desc))[i].tx_desc))
Dnetdev.c796 union e1000_adv_tx_desc *tx_desc, *eop_desc; in igbvf_clean_tx_irq() local
821 tx_desc = IGBVF_TX_DESC_ADV(*tx_ring, i); in igbvf_clean_tx_irq()
822 cleaned = (tx_desc == eop_desc); in igbvf_clean_tx_irq()
838 tx_desc->wb.status = 0; in igbvf_clean_tx_irq()
2157 union e1000_adv_tx_desc *tx_desc = NULL; in igbvf_tx_queue_adv() local
2187 tx_desc = IGBVF_TX_DESC_ADV(*tx_ring, i); in igbvf_tx_queue_adv()
2188 tx_desc->read.buffer_addr = cpu_to_le64(buffer_info->dma); in igbvf_tx_queue_adv()
2189 tx_desc->read.cmd_type_len = in igbvf_tx_queue_adv()
2191 tx_desc->read.olinfo_status = cpu_to_le32(olinfo_status); in igbvf_tx_queue_adv()
2197 tx_desc->read.cmd_type_len |= cpu_to_le32(adapter->txd_cmd); in igbvf_tx_queue_adv()
[all …]
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c1289 struct sxgbe_tx_norm_desc *tx_desc, *first_desc; in sxgbe_xmit() local
1326 tx_desc = tqueue->dma_tx + entry; in sxgbe_xmit()
1328 first_desc = tx_desc; in sxgbe_xmit()
1357 tx_desc->tdes01 = dma_map_single(priv->device, in sxgbe_xmit()
1359 if (dma_mapping_error(priv->device, tx_desc->tdes01)) in sxgbe_xmit()
1363 priv->hw->desc->prepare_tx_desc(tx_desc, 1, no_pagedlen, in sxgbe_xmit()
1373 tx_desc = tqueue->dma_tx + entry; in sxgbe_xmit()
1374 tx_desc->tdes01 = skb_frag_dma_map(priv->device, frag, 0, len, in sxgbe_xmit()
1377 tqueue->tx_skbuff_dma[entry] = tx_desc->tdes01; in sxgbe_xmit()
1381 priv->hw->desc->prepare_tx_desc(tx_desc, 0, len, in sxgbe_xmit()
[all …]
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_dev.h50 void rtl8192_tx_fill_desc(struct net_device *dev, struct tx_desc *pdesc,
Drtl_core.h479 struct tx_desc *desc;
496 struct tx_desc *tx_desc,
Dr8190P_def.h305 struct tx_desc { struct
Drtl_core.c722 struct tx_desc *pdesc = NULL; in rtl8192_prepare_beacon()
1849 struct tx_desc *entry = &ring->desc[ring->idx]; in rtl8192_free_tx_ring()
1943 struct tx_desc *entry = &ring->desc[ring->idx]; in rtl8192_tx_isr()
1992 struct tx_desc *pdesc = NULL; in rtl8192_tx()
2115 struct tx_desc *ring; in rtl8192_alloc_tx_desc_ring()
2191 struct tx_desc *entry = &ring->desc[ring->idx]; in rtl8192_pci_resetdescring()
Dr8192E_dev.c1183 void rtl8192_tx_fill_desc(struct net_device *dev, struct tx_desc *pdesc, in rtl8192_tx_fill_desc()
1309 struct tx_desc *entry_tmp = (struct tx_desc *)entry; in rtl8192_tx_fill_cmd_desc()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
Dadapter.h162 struct tx_desc;
176 struct tx_desc *desc; /* address of HW Tx descriptor ring */
Dsge.c98 struct tx_desc { struct
702 sizeof(struct tx_desc), in t3_free_qset()
1023 static inline void wr_gen2(struct tx_desc *d, unsigned int gen) in wr_gen2()
1050 struct tx_desc *d, unsigned int pidx, in write_wr_hdr_sgl()
1119 wr_gen2((struct tx_desc *)wp, ogen); in write_wr_hdr_sgl()
1145 struct tx_desc *d = &q->desc[pidx]; in write_tx_pkt_wr()
1332 static inline void write_imm(struct tx_desc *d, struct sk_buff *skb, in write_imm()
1585 struct tx_desc *d = &q->desc[pidx]; in write_ofld_wr()
3010 sizeof(struct tx_desc), sz, in t3_sge_alloc_qset()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
Dadapter.h223 struct tx_desc { struct
246 struct tx_desc *desc; /* address of HW TX descriptor ring */ argument
Dsge.c2373 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4vf_sge_alloc_eth_txq()
2380 sizeof(struct tx_desc), in t4vf_sge_alloc_eth_txq()
2428 nentries * sizeof(struct tx_desc), in t4vf_sge_alloc_eth_txq()
/linux-4.1.27/drivers/staging/rtl8192u/
Dr8192U_core.c1493 tx_desc_819x_usb *tx_desc = (tx_desc_819x_usb *)skb->data; in rtl8192_tx() local
1562 memset(tx_desc, 0, sizeof(tx_desc_819x_usb)); in rtl8192_tx()
1564 tx_desc->LINIP = 0; in rtl8192_tx()
1565 tx_desc->CmdInit = 1; in rtl8192_tx()
1566 tx_desc->Offset = sizeof(tx_fwinfo_819x_usb) + 8; in rtl8192_tx()
1567 tx_desc->PktSize = (skb->len - TX_PACKET_SHIFT_BYTES) & 0xffff; in rtl8192_tx()
1570 tx_desc->SecCAMID = 0; in rtl8192_tx()
1571 tx_desc->RATid = tcb_desc->RATRIndex; in rtl8192_tx()
1572 tx_desc->NoEnc = 1; in rtl8192_tx()
1573 tx_desc->SecType = 0x0; in rtl8192_tx()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c1428 struct ixgb_tx_desc *tx_desc = NULL; in ixgb_tx_queue() local
1450 tx_desc = IXGB_TX_DESC(*tx_ring, i); in ixgb_tx_queue()
1451 tx_desc->buff_addr = cpu_to_le64(buffer_info->dma); in ixgb_tx_queue()
1452 tx_desc->cmd_type_len = in ixgb_tx_queue()
1454 tx_desc->status = status; in ixgb_tx_queue()
1455 tx_desc->popts = popts; in ixgb_tx_queue()
1456 tx_desc->vlan = cpu_to_le16(vlan_id); in ixgb_tx_queue()
1461 tx_desc->cmd_type_len |= in ixgb_tx_queue()
1846 struct ixgb_tx_desc *tx_desc, *eop_desc; in ixgb_clean_tx_irq() local
1859 tx_desc = IXGB_TX_DESC(*tx_ring, i); in ixgb_clean_tx_irq()
[all …]
/linux-4.1.27/drivers/tty/serial/
Dsamsung.h73 struct dma_async_tx_descriptor *tx_desc; member
Dsamsung.c184 async_tx_ack(dma->tx_desc); in s3c24xx_serial_stop_tx()
214 async_tx_ack(dma->tx_desc); in s3c24xx_serial_tx_dma_complete()
304 dma->tx_desc = dmaengine_prep_slave_single(dma->tx_chan, in s3c24xx_serial_start_tx_dma()
307 if (!dma->tx_desc) { in s3c24xx_serial_start_tx_dma()
312 dma->tx_desc->callback = s3c24xx_serial_tx_dma_complete; in s3c24xx_serial_start_tx_dma()
313 dma->tx_desc->callback_param = ourport; in s3c24xx_serial_start_tx_dma()
317 dma->tx_cookie = dmaengine_submit(dma->tx_desc); in s3c24xx_serial_start_tx_dma()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c135 #define TXQ_STOP_THRES (SGE_MAX_WR_LEN / sizeof(struct tx_desc))
1355 ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); in ctrl_xmit()
2483 flsz = fl->size / 8 + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_rxq()
2548 dma_free_coherent(adap->pdev_dev, flsz * sizeof(struct tx_desc), in t4_sge_alloc_rxq()
2580 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_eth_txq()
2583 sizeof(struct tx_desc), sizeof(struct tx_sw_desc), in t4_sge_alloc_eth_txq()
2613 nentries * sizeof(struct tx_desc), in t4_sge_alloc_eth_txq()
2636 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_ctrl_txq()
2639 sizeof(struct tx_desc), 0, &txq->q.phys_addr, in t4_sge_alloc_ctrl_txq()
2665 nentries * sizeof(struct tx_desc), in t4_sge_alloc_ctrl_txq()
[all …]
Dcxgb4.h547 struct tx_desc { struct
561 struct tx_desc *desc; /* address of HW Tx descriptor ring */ argument
/linux-4.1.27/drivers/net/ethernet/alteon/
Dacenic.h448 #define TX_RING_SIZE (MAX_TX_RING_ENTRIES * sizeof(struct tx_desc))
451 struct tx_desc{ struct
646 struct tx_desc *tx_ring;
Dacenic.c729 size = (sizeof(struct tx_desc) * MAX_TX_RING_ENTRIES); in ace_free_descriptors()
786 size = (sizeof(struct tx_desc) * MAX_TX_RING_ENTRIES); in ace_allocate_descriptors()
1286 ap->tx_ring = (__force struct tx_desc *) regs->Window; in ace_init()
1288 * sizeof(struct tx_desc)) / sizeof(u32); i++) in ace_init()
1294 MAX_TX_RING_ENTRIES * sizeof(struct tx_desc)); in ace_init()
2334 struct tx_desc __iomem *tx; in ace_close()
2335 tx = (__force struct tx_desc __iomem *) &ap->tx_ring[i]; in ace_close()
2341 sizeof(struct tx_desc)); in ace_close()
2387 ace_load_tx_bd(struct ace_private *ap, struct tx_desc *desc, u64 addr, in ace_load_tx_bd()
2395 struct tx_desc __iomem *io = (__force struct tx_desc __iomem *) desc; in ace_load_tx_bd()
[all …]
/linux-4.1.27/drivers/net/hippi/
Drrunner.h555 #define TX_TOTAL_SIZE (TX_RING_ENTRIES * sizeof(struct tx_desc))
557 struct tx_desc{ struct
802 struct tx_desc *tx_ring;
Drrunner.c605 rrpriv->info->tx_ctrl.entry_size = sizeof(struct tx_desc); in rr_init1()
1066 struct tx_desc *desc; in rr_interrupt()
1115 struct tx_desc *desc = &(rrpriv->tx_ring[i]); in rr_raz_tx()
/linux-4.1.27/drivers/net/ethernet/adi/
Dbfin_mac.c75 static struct net_dma_desc_tx *tx_desc; variable
87 if (tx_desc) { in desc_list_free()
98 bfin_mac_free(dma_handle, tx_desc, CONFIG_BFIN_TX_DESC_NUM); in desc_list_free()
128 tx_desc = bfin_mac_alloc(&dma_handle, in desc_list_init()
131 if (tx_desc == NULL) in desc_list_init()
141 tx_list_head = tx_list_tail = tx_desc; in desc_list_init()
144 struct net_dma_desc_tx *t = tx_desc + i; in desc_list_init()
/linux-4.1.27/drivers/staging/rtl8723au/include/
Drtw_xmit.h93 struct tx_desc { struct
106 struct tx_desc txdesc; argument
/linux-4.1.27/drivers/net/ethernet/3com/
Dtyphoon.c245 struct tx_desc txLo[TXLO_ENTRIES] __3xp_aligned;
252 struct tx_desc txHi[TXHI_ENTRIES];
717 struct tx_desc *txd, *first_txd; in typhoon_start_tx()
756 first_txd = (struct tx_desc *) (txRing->ringBase + txRing->lastWrite); in typhoon_start_tx()
787 txd = (struct tx_desc *) (txRing->ringBase + txRing->lastWrite); in typhoon_start_tx()
817 txd = (struct tx_desc *) (txRing->ringBase + in typhoon_start_tx()
1193 iface->txLoSize = cpu_to_le32(TXLO_ENTRIES * sizeof(struct tx_desc)); in typhoon_init_interface()
1197 iface->txHiSize = cpu_to_le32(TXHI_ENTRIES * sizeof(struct tx_desc)); in typhoon_init_interface()
1507 struct tx_desc *tx; in typhoon_clean_tx()
1513 tx = (struct tx_desc *) (txRing->ringBase + lastRead); in typhoon_clean_tx()
Dtyphoon.h151 struct tx_desc { struct
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_main.c368 union e1000_adv_tx_desc *tx_desc; in igb_dump() local
439 tx_desc = IGB_TX_DESC(tx_ring, i); in igb_dump()
441 u0 = (struct my_u0 *)tx_desc; in igb_dump()
4809 union e1000_adv_tx_desc *tx_desc, in igb_tx_olinfo_status() argument
4828 tx_desc->read.olinfo_status = cpu_to_le32(olinfo_status); in igb_tx_olinfo_status()
4872 union e1000_adv_tx_desc *tx_desc; in igb_tx_map() local
4880 tx_desc = IGB_TX_DESC(tx_ring, i); in igb_tx_map()
4882 igb_tx_olinfo_status(tx_ring, tx_desc, tx_flags, skb->len - hdr_len); in igb_tx_map()
4899 tx_desc->read.buffer_addr = cpu_to_le64(dma); in igb_tx_map()
4902 tx_desc->read.cmd_type_len = in igb_tx_map()
[all …]
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Drtl8188e_xmit.h175 struct tx_desc *ptxdesc);
Drtw_xmit.h96 struct tx_desc { struct
/linux-4.1.27/sound/soc/sh/
Dsiu.h124 struct dma_async_tx_descriptor *tx_desc; member
Dsiu_pcm.c148 siu_stream->tx_desc = desc; in siu_pcm_wr_set()
198 siu_stream->tx_desc = desc; in siu_pcm_rd_set()
/linux-4.1.27/drivers/net/usb/
Dr8152.c538 struct tx_desc { struct
639 #define RTL_LIMITED_TSO_SIZE (agg_buf_sz - sizeof(struct tx_desc) - \
1430 static inline void rtl_tx_vlan_tag(struct tx_desc *desc, struct sk_buff *skb) in rtl_tx_vlan_tag()
1449 static int r8152_tx_csum(struct r8152 *tp, struct tx_desc *desc, in r8152_tx_csum()
1549 while (remain >= ETH_ZLEN + sizeof(struct tx_desc)) { in r8152_tx_agg_fill()
1550 struct tx_desc *tx_desc; in r8152_tx_agg_fill() local
1559 len = skb->len + sizeof(*tx_desc); in r8152_tx_agg_fill()
1567 tx_desc = (struct tx_desc *)tx_data; in r8152_tx_agg_fill()
1571 if (r8152_tx_csum(tp, tx_desc, skb, skb->len, offset)) { in r8152_tx_agg_fill()
1576 rtl_tx_vlan_tag(tx_desc, skb); in r8152_tx_agg_fill()
[all …]
/linux-4.1.27/drivers/net/ethernet/tundra/
Dtsi108_eth.h324 } __attribute__ ((aligned(32))) tx_desc; typedef
Dtsi108_eth.c118 tx_desc *txring;
1295 unsigned int txring_size = TSI108_TXRING_LEN * sizeof(tx_desc); in tsi108_open()
1357 data->txring[i].next0 = data->txdma + (i + 1) * sizeof(tx_desc); in tsi108_open()
1432 TSI108_TXRING_LEN * sizeof(tx_desc), in tsi108_close()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c556 union ixgbe_adv_tx_desc *tx_desc; in ixgbe_dump() local
658 tx_desc = IXGBE_TX_DESC(tx_ring, i); in ixgbe_dump()
660 u0 = (struct my_u0 *)tx_desc; in ixgbe_dump()
1083 union ixgbe_adv_tx_desc *tx_desc; in ixgbe_clean_tx_irq() local
1092 tx_desc = IXGBE_TX_DESC(tx_ring, i); in ixgbe_clean_tx_irq()
1130 while (tx_desc != eop_desc) { in ixgbe_clean_tx_irq()
1132 tx_desc++; in ixgbe_clean_tx_irq()
1137 tx_desc = IXGBE_TX_DESC(tx_ring, 0); in ixgbe_clean_tx_irq()
1152 tx_desc++; in ixgbe_clean_tx_irq()
1157 tx_desc = IXGBE_TX_DESC(tx_ring, 0); in ixgbe_clean_tx_irq()
[all …]
/linux-4.1.27/drivers/net/wireless/
Dmwl8k.c1466 struct mwl8k_tx_desc *tx_desc; in mwl8k_txq_init() local
1469 tx_desc = txq->txd + i; in mwl8k_txq_init()
1472 tx_desc->status = 0; in mwl8k_txq_init()
1473 tx_desc->next_txd_phys_addr = in mwl8k_txq_init()
1474 cpu_to_le32(txq->txd_dma + nexti * sizeof(*tx_desc)); in mwl8k_txq_init()
1502 struct mwl8k_tx_desc *tx_desc = txq->txd + desc; in mwl8k_dump_tx_rings() local
1505 status = le32_to_cpu(tx_desc->status); in mwl8k_dump_tx_rings()
1511 if (tx_desc->pkt_len == 0) in mwl8k_dump_tx_rings()
1666 struct mwl8k_tx_desc *tx_desc; in mwl8k_txq_reclaim() local
1678 tx_desc = txq->txd + tx; in mwl8k_txq_reclaim()
[all …]
Dairo.c1026 TxFid tx_desc; /* card transmit descriptor */ member
1989 ai->txfids[0].tx_desc.offset = 0; in mpi_send_packet()
1990 ai->txfids[0].tx_desc.valid = 1; in mpi_send_packet()
1991 ai->txfids[0].tx_desc.eoc = 1; in mpi_send_packet()
1992 ai->txfids[0].tx_desc.len =len+sizeof(WifiHdr); in mpi_send_packet()
2022 ai->txfids[0].tx_desc.len += sizeof(pMic); in mpi_send_packet()
2040 &ai->txfids[0].tx_desc, sizeof(TxFid)); in mpi_send_packet()
2501 ai->txfids[i].tx_desc.valid = 1; in mpi_init_descriptors()
2503 &ai->txfids[i].tx_desc, sizeof(TxFid)); in mpi_init_descriptors()
2505 ai->txfids[i-1].tx_desc.eoc = 1; /* Last descriptor has EOC set */ in mpi_init_descriptors()
[all …]
Datmel.c196 struct tx_desc { struct
633 return priv->host_info.tx_desc_pos + (sizeof(struct tx_desc) * desc) + offset; in atmel_tx()
/linux-4.1.27/drivers/net/ethernet/via/
Dvia-rhine.c400 struct tx_desc { struct
444 struct tx_desc *tx_ring;
1168 TX_RING_SIZE * sizeof(struct tx_desc), in alloc_ring()
1183 TX_RING_SIZE * sizeof(struct tx_desc), in alloc_ring()
1204 TX_RING_SIZE * sizeof(struct tx_desc), in free_ring()
1293 next += sizeof(struct tx_desc); in alloc_tbufs()
2100 iowrite32(rp->tx_ring_dma + entry * sizeof(struct tx_desc), in rhine_restart_tx()
Dvia-velocity.h223 struct tx_desc { struct
1457 struct tx_desc *rings[TX_QUEUE_NO];
Dvia-velocity.c1482 const unsigned int tx_ring_size = opt->numtx * sizeof(struct tx_desc); in velocity_init_dma_rings()
1691 vptr->options.numtx * sizeof(struct tx_desc) * vptr->tx.numq; in velocity_free_dma_rings()
1732 struct velocity_td_info *tdinfo, struct tx_desc *td) in velocity_free_tx_buf()
1911 struct tx_desc *td; in velocity_tx_srv()
2555 struct tx_desc *td_ptr; in velocity_xmit()
/linux-4.1.27/drivers/net/ethernet/agere/
Det131x.c335 struct tx_desc { struct
371 struct tx_desc *tx_desc_ring;
2368 desc_size = (sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX); in et131x_tx_dma_memory_alloc()
2398 desc_size = (sizeof(struct tx_desc) * NUM_DESC_PER_RING_TX); in et131x_tx_dma_memory_free()
2423 struct tx_desc desc[24]; in nic_send_packet()
2441 memset(desc, 0, sizeof(struct tx_desc) * (nr_frags + 1)); in nic_send_packet()
2532 sizeof(struct tx_desc) * thiscopy); in nic_send_packet()
2545 sizeof(struct tx_desc) * remainder); in nic_send_packet()
2641 struct tx_desc *desc = NULL; in free_send_packet()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000_main.c2985 struct e1000_tx_desc *tx_desc = NULL; in e1000_tx_queue() local
3016 tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000_tx_queue()
3017 tx_desc->buffer_addr = cpu_to_le64(buffer_info->dma); in e1000_tx_queue()
3018 tx_desc->lower.data = in e1000_tx_queue()
3020 tx_desc->upper.data = cpu_to_le32(txd_upper); in e1000_tx_queue()
3024 tx_desc->lower.data |= cpu_to_le32(adapter->txd_cmd); in e1000_tx_queue()
3028 tx_desc->lower.data &= ~(cpu_to_le32(E1000_TXD_CMD_IFCS)); in e1000_tx_queue()
3404 struct e1000_tx_desc *tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000_dump() local
3407 struct my_u *u = (struct my_u *)tx_desc; in e1000_dump()
3845 struct e1000_tx_desc *tx_desc, *eop_desc; in e1000_clean_tx_irq() local
[all …]
De1000_ethtool.c1036 struct e1000_tx_desc *tx_desc = E1000_TX_DESC(*txdr, i); in e1000_setup_desc_rings() local
1055 tx_desc->buffer_addr = cpu_to_le64(txdr->buffer_info[i].dma); in e1000_setup_desc_rings()
1056 tx_desc->lower.data = cpu_to_le32(skb->len); in e1000_setup_desc_rings()
1057 tx_desc->lower.data |= cpu_to_le32(E1000_TXD_CMD_EOP | in e1000_setup_desc_rings()
1060 tx_desc->upper.data = 0; in e1000_setup_desc_rings()
/linux-4.1.27/drivers/net/ethernet/icplus/
Dipg.c481 const char *tx_desc; in ipg_config_autoneg() local
539 tx_desc = ""; in ipg_config_autoneg()
542 tx_desc = "no "; in ipg_config_autoneg()
555 tx_desc = "no "; in ipg_config_autoneg()
563 duplex, tx_desc, rx_desc); in ipg_config_autoneg()
/linux-4.1.27/drivers/mmc/host/
Dmoxart-mmc.c131 struct dma_async_tx_descriptor *tx_desc; member
290 host->tx_desc = desc; in moxart_transfer_dma()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dnetdev.c219 struct e1000_tx_desc *tx_desc; in e1000e_dump() local
308 tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000e_dump()
310 u0 = (struct my_u0 *)tx_desc; in e1000e_dump()
1220 struct e1000_tx_desc *tx_desc, *eop_desc; in e1000_clean_tx_irq() local
1237 tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000_clean_tx_irq()
1251 tx_desc->upper.data = 0; in e1000_clean_tx_irq()
5411 struct e1000_tx_desc *tx_desc = NULL; in e1000_tx_queue() local
5447 tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000_tx_queue()
5448 tx_desc->buffer_addr = cpu_to_le64(buffer_info->dma); in e1000_tx_queue()
5449 tx_desc->lower.data = cpu_to_le32(txd_lower | in e1000_tx_queue()
[all …]
Dethtool.c1209 struct e1000_tx_desc *tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000_setup_desc_rings() local
1229 tx_desc->buffer_addr = cpu_to_le64(tx_ring->buffer_info[i].dma); in e1000_setup_desc_rings()
1230 tx_desc->lower.data = cpu_to_le32(skb->len); in e1000_setup_desc_rings()
1231 tx_desc->lower.data |= cpu_to_le32(E1000_TXD_CMD_EOP | in e1000_setup_desc_rings()
1234 tx_desc->upper.data = 0; in e1000_setup_desc_rings()
/linux-4.1.27/drivers/rapidio/devices/
Dtsi721_dma.c681 bdma_chan->tx_desc = desc; in tsi721_alloc_chan_resources()
731 kfree(bdma_chan->tx_desc); in tsi721_free_chan_resources()
Dtsi721.h675 struct tsi721_tx_desc *tx_desc; member
/linux-4.1.27/drivers/video/fbdev/
Dmx3fb.c761 struct idmac_tx_desc *tx_desc = to_tx_desc(arg); in mx3fb_dma_done() local
762 struct dma_chan *chan = tx_desc->txd.chan; in mx3fb_dma_done()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/
Dtrx.h666 struct tx_desc { struct