Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/infiniband/ulp/iser/
Diser_initiator.c162 struct iser_tx_desc *tx_desc) in iser_create_send_desc() argument
167 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iser_create_send_desc()
169 memset(&tx_desc->iser_header, 0, sizeof(struct iser_hdr)); in iser_create_send_desc()
170 tx_desc->iser_header.flags = ISER_VER; in iser_create_send_desc()
171 tx_desc->num_sge = 1; in iser_create_send_desc()
379 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_send_command() local
385 tx_desc->type = ISCSI_TX_SCSI_COMMAND; in iser_send_command()
386 iser_create_send_desc(iser_conn, tx_desc); in iser_send_command()
426 err = iser_post_send(&iser_conn->ib_conn, tx_desc, in iser_send_command()
445 struct iser_tx_desc *tx_desc = NULL; in iser_send_data_out() local
[all …]
Discsi_iser.h670 int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc,
683 struct iser_tx_desc *tx_desc);
708 iser_tx_next_wr(struct iser_tx_desc *tx_desc) in iser_tx_next_wr() argument
710 struct ib_send_wr *cur_wr = &tx_desc->wrs[tx_desc->wr_idx].send; in iser_tx_next_wr()
713 if (tx_desc->wr_idx) { in iser_tx_next_wr()
714 last_wr = &tx_desc->wrs[tx_desc->wr_idx - 1].send; in iser_tx_next_wr()
717 tx_desc->wr_idx++; in iser_tx_next_wr()
Discsi_iser.c184 struct iser_tx_desc *tx_desc) in iser_initialize_task_headers() argument
201 dma_addr = ib_dma_map_single(device->ib_device, (void *)tx_desc, in iser_initialize_task_headers()
208 tx_desc->wr_idx = 0; in iser_initialize_task_headers()
209 tx_desc->mapped = true; in iser_initialize_task_headers()
210 tx_desc->dma_addr = dma_addr; in iser_initialize_task_headers()
211 tx_desc->tx_sg[0].addr = tx_desc->dma_addr; in iser_initialize_task_headers()
212 tx_desc->tx_sg[0].length = ISER_HEADERS_LEN; in iser_initialize_task_headers()
213 tx_desc->tx_sg[0].lkey = device->pd->local_dma_lkey; in iser_initialize_task_headers()
369 struct iser_tx_desc *tx_desc = &iser_task->desc; in iscsi_iser_cleanup_task() local
377 if (likely(tx_desc->mapped)) { in iscsi_iser_cleanup_task()
[all …]
Diser_memory.c438 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_reg_sig_mr() local
439 struct ib_sig_attrs *sig_attrs = &tx_desc->sig_attrs; in iser_reg_sig_mr()
451 iser_inv_rkey(iser_tx_next_wr(tx_desc), pi_ctx->sig_mr); in iser_reg_sig_mr()
453 wr = sig_handover_wr(iser_tx_next_wr(tx_desc)); in iser_reg_sig_mr()
487 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_fast_reg_mr() local
493 iser_inv_rkey(iser_tx_next_wr(tx_desc), mr); in iser_fast_reg_mr()
502 wr = reg_wr(iser_tx_next_wr(tx_desc)); in iser_fast_reg_mr()
Diser_verbs.c1107 int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc, in iser_post_send() argument
1110 struct ib_send_wr *bad_wr, *wr = iser_tx_next_wr(tx_desc); in iser_post_send()
1114 tx_desc->dma_addr, ISER_HEADERS_LEN, in iser_post_send()
1118 wr->wr_id = (uintptr_t)tx_desc; in iser_post_send()
1119 wr->sg_list = tx_desc->tx_sg; in iser_post_send()
1120 wr->num_sge = tx_desc->num_sge; in iser_post_send()
1124 ib_ret = ib_post_send(ib_conn->qp, &tx_desc->wrs[0].send, &bad_wr); in iser_post_send()
1202 struct iser_tx_desc *tx_desc; in iser_handle_wc() local
1213 tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; in iser_handle_wc()
1214 iser_snd_completion(tx_desc, ib_conn); in iser_handle_wc()
/linux-4.4.14/drivers/infiniband/ulp/isert/
Dib_isert.c1022 isert_post_send(struct isert_conn *isert_conn, struct iser_tx_desc *tx_desc) in isert_post_send() argument
1028 ib_dma_sync_single_for_device(ib_dev, tx_desc->dma_addr, in isert_post_send()
1032 send_wr.wr_id = (uintptr_t)tx_desc; in isert_post_send()
1033 send_wr.sg_list = tx_desc->tx_sg; in isert_post_send()
1034 send_wr.num_sge = tx_desc->num_sge; in isert_post_send()
1048 struct iser_tx_desc *tx_desc) in isert_create_send_desc() argument
1053 ib_dma_sync_single_for_cpu(ib_dev, tx_desc->dma_addr, in isert_create_send_desc()
1056 memset(&tx_desc->iser_header, 0, sizeof(struct iser_hdr)); in isert_create_send_desc()
1057 tx_desc->iser_header.flags = ISER_VER; in isert_create_send_desc()
1059 tx_desc->num_sge = 1; in isert_create_send_desc()
[all …]
Dib_isert.h137 struct iser_tx_desc tx_desc; member
/linux-4.4.14/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()
635 static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, in build_inline_wqe() argument
641 struct mlx4_wqe_inline_seg *inl = &tx_desc->inl; in build_inline_wqe()
713 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit() local
774 tx_desc = ring->buf + index * TXBB_SIZE; in mlx4_en_xmit()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c788 struct fm10k_tx_desc *tx_desc; in fm10k_tso() local
817 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tso()
818 tx_desc->hdrlen = hdrlen; in fm10k_tso()
819 tx_desc->mss = cpu_to_le16(skb_shinfo(skb)->gso_size); in fm10k_tso()
834 struct fm10k_tx_desc *tx_desc; in fm10k_tx_csum() local
902 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tx_csum()
903 tx_desc->hdrlen = 0; in fm10k_tx_csum()
904 tx_desc->mss = 0; in fm10k_tx_csum()
930 struct fm10k_tx_desc *tx_desc, u16 i, in fm10k_tx_desc_push() argument
938 tx_desc->buffer_addr = cpu_to_le64(dma); in fm10k_tx_desc_push()
[all …]
Dfm10k_type.h686 struct fm10k_tx_desc tx_desc[256]; member
/linux-4.4.14/drivers/staging/rtl8712/
Drtl8712_xmit.h52 #define tx_cmd tx_desc
92 struct tx_desc { struct
106 struct tx_desc txdesc; argument
Drtl8712_xmit.c263 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_construct_txaggr_cmd_desc()
301 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_append_mpdu_unit()
365 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next()
373 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next()
381 struct tx_desc *ptxdesc = pxmitbuf->pbuf; in r8712_dump_aggr_xframe()
428 struct tx_desc *ptxdesc = (struct tx_desc *)pmem; in update_txdesc()
436 struct tx_desc txdesc_mp; in update_txdesc()
438 memcpy(&txdesc_mp, ptxdesc, sizeof(struct tx_desc)); in update_txdesc()
439 memset(ptxdesc, 0, sizeof(struct tx_desc)); in update_txdesc()
559 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.c318 struct tx_desc *pdesc; in r8712_cmd_thread()
338 pdesc = (struct tx_desc *)pcmdbuf; in r8712_cmd_thread()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/net/ethernet/marvell/
Dmvneta.c763 int tx_desc = txq->next_desc_to_proc; in mvneta_txq_next_desc_get() local
765 txq->next_desc_to_proc = MVNETA_QUEUE_NEXT_DESC(txq, tx_desc); in mvneta_txq_next_desc_get()
766 return txq->descs + tx_desc; in mvneta_txq_next_desc_get()
1379 struct mvneta_tx_desc *tx_desc = txq->descs + in mvneta_txq_bufs_free() local
1385 if (!IS_TSO_HEADER(txq, tx_desc->buf_phys_addr)) in mvneta_txq_bufs_free()
1387 tx_desc->buf_phys_addr, in mvneta_txq_bufs_free()
1388 tx_desc->data_size, DMA_TO_DEVICE); in mvneta_txq_bufs_free()
1627 struct mvneta_tx_desc *tx_desc; in mvneta_tso_put_hdr() local
1631 tx_desc = mvneta_txq_next_desc_get(txq); in mvneta_tso_put_hdr()
1632 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()
800 struct tx_desc *desc; in txq_put_hdr_tso()
844 struct tx_desc *first_tx_desc; in txq_submit_tso()
919 struct tx_desc *desc; in txq_submit_frag_skb()
954 struct tx_desc *desc; in txq_submit_skb()
1065 txq->tx_curr_desc * sizeof(struct tx_desc); in txq_kick()
[all …]
Dmvpp2.c982 struct mvpp2_tx_desc *tx_desc) in mvpp2_txq_inc_put() argument
987 tx_desc->buf_phys_addr; in mvpp2_txq_inc_put()
4160 int tx_desc = txq->next_desc_to_proc; in mvpp2_txq_next_desc_get() local
4162 txq->next_desc_to_proc = MVPP2_QUEUE_NEXT_DESC(txq, tx_desc); in mvpp2_txq_next_desc_get()
4163 return txq->descs + tx_desc; in mvpp2_txq_next_desc_get()
5203 struct mvpp2_tx_desc *tx_desc; in mvpp2_tx_frag_process() local
5211 tx_desc = mvpp2_txq_next_desc_get(aggr_txq); in mvpp2_tx_frag_process()
5212 tx_desc->phys_txq = txq->id; in mvpp2_tx_frag_process()
5213 tx_desc->data_size = frag->size; in mvpp2_tx_frag_process()
5216 tx_desc->data_size, in mvpp2_tx_frag_process()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c157 struct i40e_tx_desc *tx_desc; in i40e_clean_tx_irq() local
162 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_clean_tx_irq()
178 if (tx_head == tx_desc) in i40e_clean_tx_irq()
202 while (tx_desc != eop_desc) { in i40e_clean_tx_irq()
205 tx_desc++; in i40e_clean_tx_irq()
210 tx_desc = I40E_TX_DESC(tx_ring, 0); in i40e_clean_tx_irq()
225 tx_desc++; in i40e_clean_tx_irq()
230 tx_desc = I40E_TX_DESC(tx_ring, 0); in i40e_clean_tx_irq()
233 prefetch(tx_desc); in i40e_clean_tx_irq()
1768 struct i40e_tx_desc *tx_desc; in i40evf_tx_map() local
[all …]
/linux-4.4.14/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.4.14/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.4.14/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()
174 first->next_to_watch = tx_desc; in i40e_program_fdir_filter()
639 struct i40e_tx_desc *tx_desc; in i40e_clean_tx_irq() local
644 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_clean_tx_irq()
660 if (tx_head == tx_desc) in i40e_clean_tx_irq()
684 while (tx_desc != eop_desc) { in i40e_clean_tx_irq()
687 tx_desc++; in i40e_clean_tx_irq()
[all …]
Di40e_main.c3549 struct i40e_tx_desc *tx_desc; in i40e_clean_fdir_tx_irq() local
3552 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_clean_fdir_tx_irq()
3573 tx_desc->buffer_addr = 0; in i40e_clean_fdir_tx_irq()
3574 tx_desc->cmd_type_offset_bsz = 0; in i40e_clean_fdir_tx_irq()
3577 tx_desc++; in i40e_clean_fdir_tx_irq()
3582 tx_desc = I40E_TX_DESC(tx_ring, 0); in i40e_clean_fdir_tx_irq()
3596 tx_desc->buffer_addr = 0; in i40e_clean_fdir_tx_irq()
3597 tx_desc->cmd_type_offset_bsz = 0; in i40e_clean_fdir_tx_irq()
3601 tx_desc++; in i40e_clean_fdir_tx_irq()
3606 tx_desc = I40E_TX_DESC(tx_ring, 0); in i40e_clean_fdir_tx_irq()
/linux-4.4.14/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.4.14/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.c1819 static void rtl8723a_cal_txdesc_chksum(struct tx_desc *ptxdesc) in rtl8723a_cal_txdesc_chksum()
1846 struct tx_desc *ptxdesc; in rtl8723a_fill_fake_txdesc()
1849 ptxdesc = (struct tx_desc *)pDesc; in rtl8723a_fill_fake_txdesc()
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Drtl8188eu_xmit.c48 static void rtl8188eu_cal_txdesc_chksum(struct tx_desc *ptxdesc) in rtl8188eu_cal_txdesc_chksum()
68 struct tx_desc *ptxdesc; in rtl8188e_fill_fake_txdesc()
71 ptxdesc = (struct tx_desc *)desc; in rtl8188e_fill_fake_txdesc()
103 static void fill_txdesc_sectype(struct pkt_attrib *pattrib, struct tx_desc *ptxdesc) in fill_txdesc_sectype()
184 struct tx_desc *ptxdesc = (struct tx_desc *)pmem; in update_txdesc()
191 ptxdesc = (struct tx_desc *)(pmem+PACKET_OFFSET_SZ); in update_txdesc()
196 memset(ptxdesc, 0, sizeof(struct tx_desc)); in update_txdesc()
Drtl8188e_xmit.c63 struct tx_desc *ptxdesc) in _dbg_dump_tx_info()
/linux-4.4.14/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.4.14/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.c493 struct dma_async_tx_descriptor *rx_desc, *tx_desc; in spi_sirfsoc_dma_transfer() local
560 tx_desc = dmaengine_prep_slave_single(sspi->tx_chan, in spi_sirfsoc_dma_transfer()
563 tx_desc->callback = spi_sirfsoc_dma_fini_callback; in spi_sirfsoc_dma_transfer()
564 tx_desc->callback_param = &sspi->tx_done; in spi_sirfsoc_dma_transfer()
566 dmaengine_submit(tx_desc); in spi_sirfsoc_dma_transfer()
/linux-4.4.14/drivers/staging/rdma/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.4.14/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.4.14/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()
3432 static void ixgbevf_tx_olinfo_status(union ixgbe_adv_tx_desc *tx_desc, in ixgbevf_tx_olinfo_status() argument
3454 tx_desc->read.olinfo_status = olinfo_status; in ixgbevf_tx_olinfo_status()
[all …]
/linux-4.4.14/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.4.14/drivers/net/ethernet/intel/igbvf/
Digbvf.h142 union e1000_adv_tx_desc tx_desc; member
295 (&((((R).desc))[i].tx_desc))
Dnetdev.c797 union e1000_adv_tx_desc *tx_desc, *eop_desc; in igbvf_clean_tx_irq() local
822 tx_desc = IGBVF_TX_DESC_ADV(*tx_ring, i); in igbvf_clean_tx_irq()
823 cleaned = (tx_desc == eop_desc); in igbvf_clean_tx_irq()
839 tx_desc->wb.status = 0; in igbvf_clean_tx_irq()
2158 union e1000_adv_tx_desc *tx_desc = NULL; in igbvf_tx_queue_adv() local
2188 tx_desc = IGBVF_TX_DESC_ADV(*tx_ring, i); in igbvf_tx_queue_adv()
2189 tx_desc->read.buffer_addr = cpu_to_le64(buffer_info->dma); in igbvf_tx_queue_adv()
2190 tx_desc->read.cmd_type_len = in igbvf_tx_queue_adv()
2192 tx_desc->read.olinfo_status = cpu_to_le32(olinfo_status); in igbvf_tx_queue_adv()
2198 tx_desc->read.cmd_type_len |= cpu_to_le32(adapter->txd_cmd); in igbvf_tx_queue_adv()
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu.c4597 static void rtl8xxxu_calc_tx_desc_csum(struct rtl8xxxu_tx_desc *tx_desc) in rtl8xxxu_calc_tx_desc_csum() argument
4599 __le16 *ptr = (__le16 *)tx_desc; in rtl8xxxu_calc_tx_desc_csum()
4607 tx_desc->csum = cpu_to_le16(0); in rtl8xxxu_calc_tx_desc_csum()
4612 tx_desc->csum |= cpu_to_le16(csum); in rtl8xxxu_calc_tx_desc_csum()
4745 struct rtl8xxxu_tx_desc *tx_desc; in rtl8xxxu_tx() local
4787 tx_desc = (struct rtl8xxxu_tx_desc *) in rtl8xxxu_tx()
4790 memset(tx_desc, 0, sizeof(struct rtl8xxxu_tx_desc)); in rtl8xxxu_tx()
4791 tx_desc->pkt_size = cpu_to_le16(pktlen); in rtl8xxxu_tx()
4792 tx_desc->pkt_offset = sizeof(struct rtl8xxxu_tx_desc); in rtl8xxxu_tx()
4794 tx_desc->txdw0 = in rtl8xxxu_tx()
[all …]
/linux-4.4.14/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.4.14/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_dev.h44 void rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
Drtl_core.h276 struct tx_desc *desc;
293 struct tx_desc *tx_desc,
Dr8190P_def.h215 struct tx_desc { struct
Drtl_core.c536 struct tx_desc *pdesc = NULL; in _rtl92e_prepare_beacon()
1598 struct tx_desc *entry = &ring->desc[ring->idx]; in _rtl92e_free_tx_ring()
1684 struct tx_desc *entry = &ring->desc[ring->idx]; in _rtl92e_tx_isr()
1733 struct tx_desc *pdesc = NULL; in _rtl92e_tx()
1854 struct tx_desc *ring; in _rtl92e_alloc_tx_ring()
1928 struct tx_desc *entry = &ring->desc[ring->idx]; in rtl92e_reset_desc_ring()
Dr8192E_dev.c1183 void rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc, in rtl92e_fill_tx_desc()
1307 struct tx_desc *entry_tmp = (struct tx_desc *)entry; in rtl92e_fill_tx_cmd_desc()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/
Dadapter.h223 struct tx_desc { struct
246 struct tx_desc *desc; /* address of HW TX descriptor ring */ argument
Dsge.c2404 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4vf_sge_alloc_eth_txq()
2411 sizeof(struct tx_desc), in t4vf_sge_alloc_eth_txq()
2459 nentries * sizeof(struct tx_desc), in t4vf_sge_alloc_eth_txq()
/linux-4.4.14/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.4.14/drivers/staging/rtl8192u/
Dr8192U_core.c1547 tx_desc_819x_usb *tx_desc = (tx_desc_819x_usb *)skb->data; in rtl8192_tx() local
1620 memset(tx_desc, 0, sizeof(tx_desc_819x_usb)); in rtl8192_tx()
1622 tx_desc->LINIP = 0; in rtl8192_tx()
1623 tx_desc->CmdInit = 1; in rtl8192_tx()
1624 tx_desc->Offset = sizeof(tx_fwinfo_819x_usb) + 8; in rtl8192_tx()
1625 tx_desc->PktSize = (skb->len - TX_PACKET_SHIFT_BYTES) & 0xffff; in rtl8192_tx()
1628 tx_desc->SecCAMID = 0; in rtl8192_tx()
1629 tx_desc->RATid = tcb_desc->RATRIndex; in rtl8192_tx()
1630 tx_desc->NoEnc = 1; in rtl8192_tx()
1631 tx_desc->SecType = 0x0; in rtl8192_tx()
[all …]
/linux-4.4.14/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.4.14/drivers/tty/serial/
Dsamsung.h73 struct dma_async_tx_descriptor *tx_desc; member
Dsamsung.c183 async_tx_ack(dma->tx_desc); in s3c24xx_serial_stop_tx()
213 async_tx_ack(dma->tx_desc); in s3c24xx_serial_tx_dma_complete()
303 dma->tx_desc = dmaengine_prep_slave_single(dma->tx_chan, in s3c24xx_serial_start_tx_dma()
306 if (!dma->tx_desc) { in s3c24xx_serial_start_tx_dma()
311 dma->tx_desc->callback = s3c24xx_serial_tx_dma_complete; in s3c24xx_serial_start_tx_dma()
312 dma->tx_desc->callback_param = ourport; in s3c24xx_serial_start_tx_dma()
316 dma->tx_cookie = dmaengine_submit(dma->tx_desc); in s3c24xx_serial_start_tx_dma()
/linux-4.4.14/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.4.14/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.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c125 #define TXQ_STOP_THRES (SGE_MAX_WR_LEN / sizeof(struct tx_desc))
1383 ndesc = DIV_ROUND_UP(skb->len, sizeof(struct tx_desc)); in ctrl_xmit()
2507 flsz = fl->size / 8 + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_rxq()
2615 dma_free_coherent(adap->pdev_dev, flsz * sizeof(struct tx_desc), in t4_sge_alloc_rxq()
2647 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_eth_txq()
2650 sizeof(struct tx_desc), sizeof(struct tx_sw_desc), in t4_sge_alloc_eth_txq()
2681 nentries * sizeof(struct tx_desc), in t4_sge_alloc_eth_txq()
2704 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_ctrl_txq()
2707 sizeof(struct tx_desc), 0, &txq->q.phys_addr, in t4_sge_alloc_ctrl_txq()
2734 nentries * sizeof(struct tx_desc), in t4_sge_alloc_ctrl_txq()
[all …]
Dcxgb4.h578 struct tx_desc { struct
592 struct tx_desc *desc; /* address of HW Tx descriptor ring */ argument
/linux-4.4.14/drivers/net/ethernet/renesas/
Dravb_main.c223 struct ravb_tx_desc *tx_desc; in ravb_ring_format() local
226 int tx_ring_size = sizeof(*tx_desc) * priv->num_tx_ring[q] * in ravb_ring_format()
260 for (i = 0, tx_desc = priv->tx_ring[q]; i < priv->num_tx_ring[q]; in ravb_ring_format()
261 i++, tx_desc++) { in ravb_ring_format()
262 tx_desc->die_dt = DT_EEMPTY; in ravb_ring_format()
263 tx_desc++; in ravb_ring_format()
264 tx_desc->die_dt = DT_EEMPTY; in ravb_ring_format()
266 tx_desc->dptr = cpu_to_le32((u32)priv->tx_desc_dma[q]); in ravb_ring_format()
267 tx_desc->die_dt = DT_LINKFIX; /* type */ in ravb_ring_format()
/linux-4.4.14/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.4.14/drivers/staging/rtl8723au/include/
Drtw_xmit.h93 struct tx_desc { struct
106 struct tx_desc txdesc; argument
/linux-4.4.14/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.4.14/drivers/net/ethernet/intel/igb/
Digb_main.c370 union e1000_adv_tx_desc *tx_desc; in igb_dump() local
441 tx_desc = IGB_TX_DESC(tx_ring, i); in igb_dump()
443 u0 = (struct my_u0 *)tx_desc; in igb_dump()
4805 union e1000_adv_tx_desc *tx_desc, in igb_tx_olinfo_status() argument
4824 tx_desc->read.olinfo_status = cpu_to_le32(olinfo_status); in igb_tx_olinfo_status()
4868 union e1000_adv_tx_desc *tx_desc; in igb_tx_map() local
4876 tx_desc = IGB_TX_DESC(tx_ring, i); in igb_tx_map()
4878 igb_tx_olinfo_status(tx_ring, tx_desc, tx_flags, skb->len - hdr_len); in igb_tx_map()
4895 tx_desc->read.buffer_addr = cpu_to_le64(dma); in igb_tx_map()
4898 tx_desc->read.cmd_type_len = in igb_tx_map()
[all …]
/linux-4.4.14/drivers/net/usb/
Dr8152.c550 struct tx_desc { struct
653 #define RTL_LIMITED_TSO_SIZE (agg_buf_sz - sizeof(struct tx_desc) - \
1444 static inline void rtl_tx_vlan_tag(struct tx_desc *desc, struct sk_buff *skb) in rtl_tx_vlan_tag()
1463 static int r8152_tx_csum(struct r8152 *tp, struct tx_desc *desc, in r8152_tx_csum()
1563 while (remain >= ETH_ZLEN + sizeof(struct tx_desc)) { in r8152_tx_agg_fill()
1564 struct tx_desc *tx_desc; in r8152_tx_agg_fill() local
1573 len = skb->len + sizeof(*tx_desc); in r8152_tx_agg_fill()
1581 tx_desc = (struct tx_desc *)tx_data; in r8152_tx_agg_fill()
1585 if (r8152_tx_csum(tp, tx_desc, skb, skb->len, offset)) { in r8152_tx_agg_fill()
1590 rtl_tx_vlan_tag(tx_desc, skb); in r8152_tx_agg_fill()
[all …]
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Drtl8188e_xmit.h175 struct tx_desc *ptxdesc);
Drtw_xmit.h96 struct tx_desc { struct
/linux-4.4.14/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.4.14/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.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c570 union ixgbe_adv_tx_desc *tx_desc; in ixgbe_dump() local
672 tx_desc = IXGBE_TX_DESC(tx_ring, i); in ixgbe_dump()
674 u0 = (struct my_u0 *)tx_desc; in ixgbe_dump()
1097 union ixgbe_adv_tx_desc *tx_desc; in ixgbe_clean_tx_irq() local
1106 tx_desc = IXGBE_TX_DESC(tx_ring, i); in ixgbe_clean_tx_irq()
1144 while (tx_desc != eop_desc) { in ixgbe_clean_tx_irq()
1146 tx_desc++; in ixgbe_clean_tx_irq()
1151 tx_desc = IXGBE_TX_DESC(tx_ring, 0); in ixgbe_clean_tx_irq()
1166 tx_desc++; in ixgbe_clean_tx_irq()
1171 tx_desc = IXGBE_TX_DESC(tx_ring, 0); in ixgbe_clean_tx_irq()
[all …]
/linux-4.4.14/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
1985 ai->txfids[0].tx_desc.offset = 0; in mpi_send_packet()
1986 ai->txfids[0].tx_desc.valid = 1; in mpi_send_packet()
1987 ai->txfids[0].tx_desc.eoc = 1; in mpi_send_packet()
1988 ai->txfids[0].tx_desc.len =len+sizeof(WifiHdr); in mpi_send_packet()
2018 ai->txfids[0].tx_desc.len += sizeof(pMic); in mpi_send_packet()
2036 &ai->txfids[0].tx_desc, sizeof(TxFid)); in mpi_send_packet()
2496 ai->txfids[i].tx_desc.valid = 1; in mpi_init_descriptors()
2498 &ai->txfids[i].tx_desc, sizeof(TxFid)); in mpi_init_descriptors()
2500 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.4.14/drivers/net/ethernet/via/
Dvia-rhine.c399 struct tx_desc { struct
443 struct tx_desc *tx_ring;
1166 TX_RING_SIZE * sizeof(struct tx_desc), in alloc_ring()
1181 TX_RING_SIZE * sizeof(struct tx_desc), in alloc_ring()
1202 TX_RING_SIZE * sizeof(struct tx_desc), in free_ring()
1332 next += sizeof(struct tx_desc); in alloc_tbufs()
2176 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.c1474 const unsigned int tx_ring_size = opt->numtx * sizeof(struct tx_desc); in velocity_init_dma_rings()
1683 vptr->options.numtx * sizeof(struct tx_desc) * vptr->tx.numq; in velocity_free_dma_rings()
1724 struct velocity_td_info *tdinfo, struct tx_desc *td) in velocity_free_tx_buf()
1903 struct tx_desc *td; in velocity_tx_srv()
2537 struct tx_desc *td_ptr; in velocity_xmit()
/linux-4.4.14/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()
3810 struct e1000_tx_desc *tx_desc = NULL; in e1000_flush_tx_ring() local
3818 tx_desc = E1000_TX_DESC(*tx_ring, tx_ring->next_to_use); in e1000_flush_tx_ring()
3819 tx_desc->buffer_addr = tx_ring->dma; in e1000_flush_tx_ring()
3821 tx_desc->lower.data = cpu_to_le32(txd_lower | size); in e1000_flush_tx_ring()
[all …]
Dethtool.c1207 struct e1000_tx_desc *tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000_setup_desc_rings() local
1227 tx_desc->buffer_addr = cpu_to_le64(tx_ring->buffer_info[i].dma); in e1000_setup_desc_rings()
1228 tx_desc->lower.data = cpu_to_le32(skb->len); in e1000_setup_desc_rings()
1229 tx_desc->lower.data |= cpu_to_le32(E1000_TXD_CMD_EOP | in e1000_setup_desc_rings()
1232 tx_desc->upper.data = 0; in e1000_setup_desc_rings()
/linux-4.4.14/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.4.14/drivers/net/ethernet/intel/e1000/
De1000_main.c2980 struct e1000_tx_desc *tx_desc = NULL; in e1000_tx_queue() local
3011 tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000_tx_queue()
3012 tx_desc->buffer_addr = cpu_to_le64(buffer_info->dma); in e1000_tx_queue()
3013 tx_desc->lower.data = in e1000_tx_queue()
3015 tx_desc->upper.data = cpu_to_le32(txd_upper); in e1000_tx_queue()
3019 tx_desc->lower.data |= cpu_to_le32(adapter->txd_cmd); in e1000_tx_queue()
3023 tx_desc->lower.data &= ~(cpu_to_le32(E1000_TXD_CMD_IFCS)); in e1000_tx_queue()
3399 struct e1000_tx_desc *tx_desc = E1000_TX_DESC(*tx_ring, i); in e1000_dump() local
3402 struct my_u *u = (struct my_u *)tx_desc; in e1000_dump()
3840 struct e1000_tx_desc *tx_desc, *eop_desc; in e1000_clean_tx_irq() local
[all …]
De1000_ethtool.c1034 struct e1000_tx_desc *tx_desc = E1000_TX_DESC(*txdr, i); in e1000_setup_desc_rings() local
1053 tx_desc->buffer_addr = cpu_to_le64(txdr->buffer_info[i].dma); in e1000_setup_desc_rings()
1054 tx_desc->lower.data = cpu_to_le32(skb->len); in e1000_setup_desc_rings()
1055 tx_desc->lower.data |= cpu_to_le32(E1000_TXD_CMD_EOP | in e1000_setup_desc_rings()
1058 tx_desc->upper.data = 0; in e1000_setup_desc_rings()
/linux-4.4.14/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.4.14/arch/nios2/boot/dts/
D10m50_devboard.dts103 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
/linux-4.4.14/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.4.14/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.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dtrx.h666 struct tx_desc { struct