Home
last modified time | relevance | path

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

12345

/linux-6.1.9/drivers/infiniband/ulp/isert/
Dib_isert.c779 isert_login_post_send(struct isert_conn *isert_conn, struct iser_tx_desc *tx_desc) in isert_login_post_send() argument
785 ib_dma_sync_single_for_device(ib_dev, tx_desc->dma_addr, in isert_login_post_send()
788 tx_desc->tx_cqe.done = isert_login_send_done; in isert_login_post_send()
791 send_wr.wr_cqe = &tx_desc->tx_cqe; in isert_login_post_send()
792 send_wr.sg_list = tx_desc->tx_sg; in isert_login_post_send()
793 send_wr.num_sge = tx_desc->num_sge; in isert_login_post_send()
806 struct iser_tx_desc *tx_desc) in __isert_create_send_desc() argument
809 memset(&tx_desc->iser_header, 0, sizeof(struct iser_ctrl)); in __isert_create_send_desc()
810 tx_desc->iser_header.flags = ISCSI_CTRL; in __isert_create_send_desc()
812 tx_desc->num_sge = 1; in __isert_create_send_desc()
[all …]
/linux-6.1.9/drivers/crypto/ccp/
Dccp-dmaengine.c111 if (!async_tx_test_ack(&desc->tx_desc)) in ccp_cleanup_desc_resources()
148 desc->tx_desc.cookie, cmd); in ccp_issue_next_cmd()
155 ret, desc->tx_desc.cookie, cmd); in ccp_issue_next_cmd()
170 __func__, desc->tx_desc.cookie, cmd); in ccp_free_active_cmd()
193 struct dma_async_tx_descriptor *tx_desc; in ccp_handle_active_desc() local
212 tx_desc = &desc->tx_desc; in ccp_handle_active_desc()
214 tx_desc = NULL; in ccp_handle_active_desc()
225 desc->tx_desc.cookie, desc->status); in ccp_handle_active_desc()
227 dma_cookie_complete(tx_desc); in ccp_handle_active_desc()
228 dma_descriptor_unmap(tx_desc); in ccp_handle_active_desc()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c237 struct mlx4_en_tx_desc *tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_stamp_wqe() local
240 __be32 *ptr = (__be32 *)tx_desc; in mlx4_en_stamp_wqe()
244 if (likely((void *)tx_desc + in mlx4_en_stamp_wqe()
277 struct mlx4_en_tx_desc *tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_free_tx_desc() local
278 struct mlx4_wqe_data_seg *data = (void *) tx_desc + tx_info->data_offset; in mlx4_en_free_tx_desc()
308 if (likely((void *)tx_desc + in mlx4_en_free_tx_desc()
401 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_handle_err_cqe() local
415 tx_desc = ring->buf + (wqe_index << LOG_TXBB_SIZE); in mlx4_en_handle_err_cqe()
416 print_hex_dump(KERN_WARNING, "", DUMP_PREFIX_OFFSET, 16, 1, tx_desc, desc_size, false); in mlx4_en_handle_err_cqe()
686 static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, in build_inline_wqe() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/sunplus/
Dspl2sw_desc.c37 if (!comm->tx_desc) in spl2sw_tx_descs_clean()
41 comm->tx_desc[i].cmd1 = 0; in spl2sw_tx_descs_clean()
43 comm->tx_desc[i].cmd2 = 0; in spl2sw_tx_descs_clean()
44 comm->tx_desc[i].addr1 = 0; in spl2sw_tx_descs_clean()
45 comm->tx_desc[i].addr2 = 0; in spl2sw_tx_descs_clean()
103 comm->tx_desc = NULL; in spl2sw_descs_free()
119 memset(comm->tx_desc, '\0', sizeof(struct spl2sw_mac_desc) * in spl2sw_tx_descs_init()
187 comm->tx_desc = comm->desc_base; in spl2sw_descs_alloc()
190 comm->rx_desc[0] = &comm->tx_desc[TX_DESC_NUM + MAC_GUARD_DESC_NUM]; in spl2sw_descs_alloc()
214 comm->tx_desc = NULL; in spl2sw_descs_init()
/linux-6.1.9/drivers/infiniband/ulp/iser/
Diser_initiator.c144 struct iser_tx_desc *tx_desc) in iser_create_send_desc() argument
149 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iser_create_send_desc()
151 memset(&tx_desc->iser_header, 0, sizeof(struct iser_ctrl)); in iser_create_send_desc()
152 tx_desc->iser_header.flags = ISER_VER; in iser_create_send_desc()
153 tx_desc->num_sge = 1; in iser_create_send_desc()
347 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_send_command() local
352 tx_desc->type = ISCSI_TX_SCSI_COMMAND; in iser_send_command()
353 tx_desc->cqe.done = iser_cmd_comp; in iser_send_command()
354 iser_create_send_desc(iser_conn, tx_desc); in iser_send_command()
394 err = iser_post_send(&iser_conn->ib_conn, tx_desc); in iser_send_command()
[all …]
Discsi_iser.c196 struct iser_tx_desc *tx_desc) in iser_initialize_task_headers() argument
206 dma_addr = ib_dma_map_single(device->ib_device, (void *)tx_desc, in iser_initialize_task_headers()
211 tx_desc->inv_wr.next = NULL; in iser_initialize_task_headers()
212 tx_desc->reg_wr.wr.next = NULL; in iser_initialize_task_headers()
213 tx_desc->mapped = true; in iser_initialize_task_headers()
214 tx_desc->dma_addr = dma_addr; in iser_initialize_task_headers()
215 tx_desc->tx_sg[0].addr = tx_desc->dma_addr; in iser_initialize_task_headers()
216 tx_desc->tx_sg[0].length = ISER_HEADERS_LEN; in iser_initialize_task_headers()
217 tx_desc->tx_sg[0].lkey = device->pd->local_dma_lkey; in iser_initialize_task_headers()
367 struct iser_tx_desc *tx_desc = &iser_task->desc; in iscsi_iser_cleanup_task() local
[all …]
Diser_memory.c253 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_reg_sig_mr() local
257 struct ib_reg_wr *wr = &tx_desc->reg_wr; in iser_reg_sig_mr()
268 iser_inv_rkey(&tx_desc->inv_wr, mr, cqe, &wr->wr); in iser_reg_sig_mr()
281 wr->wr.next = &tx_desc->send_wr; in iser_reg_sig_mr()
310 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_fast_reg_mr() local
313 struct ib_reg_wr *wr = &tx_desc->reg_wr; in iser_fast_reg_mr()
317 iser_inv_rkey(&tx_desc->inv_wr, mr, cqe, &wr->wr); in iser_fast_reg_mr()
328 wr->wr.next = &tx_desc->send_wr; in iser_fast_reg_mr()
Diser_verbs.c873 int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc) in iser_post_send() argument
875 struct ib_send_wr *wr = &tx_desc->send_wr; in iser_post_send()
880 tx_desc->dma_addr, ISER_HEADERS_LEN, in iser_post_send()
884 wr->wr_cqe = &tx_desc->cqe; in iser_post_send()
885 wr->sg_list = tx_desc->tx_sg; in iser_post_send()
886 wr->num_sge = tx_desc->num_sge; in iser_post_send()
890 if (tx_desc->inv_wr.next) in iser_post_send()
891 first_wr = &tx_desc->inv_wr; in iser_post_send()
892 else if (tx_desc->reg_wr.wr.next) in iser_post_send()
893 first_wr = &tx_desc->reg_wr.wr; in iser_post_send()
/linux-6.1.9/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c747 struct fm10k_tx_desc *tx_desc; in fm10k_tso() local
776 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tso()
777 tx_desc->hdrlen = hdrlen; in fm10k_tso()
778 tx_desc->mss = cpu_to_le16(skb_shinfo(skb)->gso_size); in fm10k_tso()
794 struct fm10k_tx_desc *tx_desc; in fm10k_tx_csum() local
870 tx_desc = FM10K_TX_DESC(tx_ring, tx_ring->next_to_use); in fm10k_tx_csum()
871 tx_desc->hdrlen = 0; in fm10k_tx_csum()
872 tx_desc->mss = 0; in fm10k_tx_csum()
893 struct fm10k_tx_desc *tx_desc, u16 i, in fm10k_tx_desc_push() argument
901 tx_desc->buffer_addr = cpu_to_le64(dma); in fm10k_tx_desc_push()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_txrx_lib.c280 struct ice_tx_desc *tx_desc; in ice_xmit_xdp_ring() local
305 tx_desc = ICE_TX_DESC(xdp_ring, i); in ice_xmit_xdp_ring()
306 tx_desc->buf_addr = cpu_to_le64(dma); in ice_xmit_xdp_ring()
307 tx_desc->cmd_type_offset_bsz = ice_build_ctob(ICE_TX_DESC_CMD_EOP, 0, in ice_xmit_xdp_ring()
314 tx_desc = ICE_TX_DESC(xdp_ring, xdp_ring->next_rs); in ice_xmit_xdp_ring()
315 tx_desc->cmd_type_offset_bsz |= in ice_xmit_xdp_ring()
322 tx_desc = ICE_TX_DESC(xdp_ring, xdp_ring->next_rs); in ice_xmit_xdp_ring()
323 tx_desc->cmd_type_offset_bsz |= in ice_xmit_xdp_ring()
Dice_txrx.c38 struct ice_tx_desc *tx_desc; in ice_prgm_fdir_fltr() local
74 tx_desc = ICE_TX_DESC(tx_ring, i); in ice_prgm_fdir_fltr()
84 tx_desc->buf_addr = cpu_to_le64(dma); in ice_prgm_fdir_fltr()
91 tx_desc->cmd_type_offset_bsz = in ice_prgm_fdir_fltr()
100 first->next_to_watch = tx_desc; in ice_prgm_fdir_fltr()
223 struct ice_tx_desc *tx_desc; in ice_clean_tx_irq() local
230 tx_desc = ICE_TX_DESC(tx_ring, i); in ice_clean_tx_irq()
247 ice_trace(clean_tx_irq, tx_ring, tx_desc, tx_buf); in ice_clean_tx_irq()
274 while (tx_desc != eop_desc) { in ice_clean_tx_irq()
275 ice_trace(clean_tx_irq_unmap, tx_ring, tx_desc, tx_buf); in ice_clean_tx_irq()
[all …]
Dice_xsk.c789 struct ice_tx_desc *tx_desc; in ice_clean_xdp_irq_zc() local
797 tx_desc = ICE_TX_DESC(xdp_ring, last_rs); in ice_clean_xdp_irq_zc()
798 if ((tx_desc->cmd_type_offset_bsz & in ice_clean_xdp_irq_zc()
828 tx_desc->cmd_type_offset_bsz = 0; in ice_clean_xdp_irq_zc()
845 struct ice_tx_desc *tx_desc; in ice_xmit_pkt() local
851 tx_desc = ICE_TX_DESC(xdp_ring, xdp_ring->next_to_use++); in ice_xmit_pkt()
852 tx_desc->buf_addr = cpu_to_le64(dma); in ice_xmit_pkt()
853 tx_desc->cmd_type_offset_bsz = ice_build_ctob(ICE_TX_DESC_CMD_EOP, in ice_xmit_pkt()
869 struct ice_tx_desc *tx_desc; in ice_xmit_pkt_batch() local
878 tx_desc = ICE_TX_DESC(xdp_ring, ntu++); in ice_xmit_pkt_batch()
[all …]
/linux-6.1.9/drivers/dma/ptdma/
Dptdma-dmaengine.c81 struct dma_async_tx_descriptor *tx_desc; in pt_handle_active_desc() local
94 tx_desc = &desc->vd.tx; in pt_handle_active_desc()
97 tx_desc = NULL; in pt_handle_active_desc()
107 dma_cookie_complete(tx_desc); in pt_handle_active_desc()
108 dma_descriptor_unmap(tx_desc); in pt_handle_active_desc()
112 tx_desc = NULL; in pt_handle_active_desc()
120 if (tx_desc) { in pt_handle_active_desc()
121 dmaengine_desc_get_callback_invoke(tx_desc, NULL); in pt_handle_active_desc()
122 dma_run_dependencies(tx_desc); in pt_handle_active_desc()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c399 union ixgbe_adv_tx_desc *tx_desc = NULL; in ixgbe_xmit_zc() local
426 tx_desc = IXGBE_TX_DESC(xdp_ring, xdp_ring->next_to_use); in ixgbe_xmit_zc()
427 tx_desc->read.buffer_addr = cpu_to_le64(dma); in ixgbe_xmit_zc()
434 tx_desc->read.cmd_type_len = cpu_to_le32(cmd_type); in ixgbe_xmit_zc()
435 tx_desc->read.olinfo_status = in ixgbe_xmit_zc()
443 if (tx_desc) { in ixgbe_xmit_zc()
467 union ixgbe_adv_tx_desc *tx_desc; in ixgbe_clean_xdp_tx_irq() local
472 tx_desc = IXGBE_TX_DESC(tx_ring, ntc); in ixgbe_clean_xdp_tx_irq()
475 if (!(tx_desc->wb.status & cpu_to_le32(IXGBE_TXD_STAT_DD))) in ixgbe_clean_xdp_tx_irq()
489 tx_desc++; in ixgbe_clean_xdp_tx_irq()
[all …]
/linux-6.1.9/drivers/staging/rtl8712/
Drtl8712_xmit.h39 #define tx_cmd tx_desc
78 struct tx_desc { struct
91 struct tx_desc txdesc; argument
Drtl8712_xmit.c251 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_construct_txaggr_cmd_desc()
285 struct tx_desc *ptx_desc = (struct tx_desc *)pxmitbuf->pbuf; in r8712_append_mpdu_unit()
344 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next()
351 (((struct tx_desc *)pxmitbuf->pbuf)->txdw0 & 0x0000ffff); in r8712_xmitframe_aggr_next()
359 struct tx_desc *ptxdesc = pxmitbuf->pbuf; in r8712_dump_aggr_xframe()
404 struct tx_desc *ptxdesc = (struct tx_desc *)pmem; in update_txdesc()
412 struct tx_desc txdesc_mp; in update_txdesc()
414 memcpy(&txdesc_mp, ptxdesc, sizeof(struct tx_desc)); in update_txdesc()
415 memset(ptxdesc, 0, sizeof(struct tx_desc)); in update_txdesc()
536 struct tx_desc *ptxdesc_mp; in update_txdesc()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c469 struct i40e_tx_desc *tx_desc; in i40e_xmit_pkt() local
475 tx_desc = I40E_TX_DESC(xdp_ring, xdp_ring->next_to_use++); in i40e_xmit_pkt()
476 tx_desc->buffer_addr = cpu_to_le64(dma); in i40e_xmit_pkt()
477 tx_desc->cmd_type_offset_bsz = build_ctob(I40E_TX_DESC_CMD_ICRC | I40E_TX_DESC_CMD_EOP, in i40e_xmit_pkt()
487 struct i40e_tx_desc *tx_desc; in i40e_xmit_pkt_batch() local
495 tx_desc = I40E_TX_DESC(xdp_ring, ntu++); in i40e_xmit_pkt_batch()
496 tx_desc->buffer_addr = cpu_to_le64(dma); in i40e_xmit_pkt_batch()
497 tx_desc->cmd_type_offset_bsz = build_ctob(I40E_TX_DESC_CMD_ICRC | in i40e_xmit_pkt_batch()
523 struct i40e_tx_desc *tx_desc; in i40e_set_rs_bit() local
525 tx_desc = I40E_TX_DESC(xdp_ring, ntu); in i40e_set_rs_bit()
[all …]
Di40e_txrx.c91 struct i40e_tx_desc *tx_desc; in i40e_program_fdir_filter() local
126 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_program_fdir_filter()
137 tx_desc->buffer_addr = cpu_to_le64(dma); in i40e_program_fdir_filter()
143 tx_desc->cmd_type_offset_bsz = in i40e_program_fdir_filter()
152 first->next_to_watch = tx_desc; in i40e_program_fdir_filter()
935 struct i40e_tx_desc *tx_desc; in i40e_clean_tx_irq() local
940 tx_desc = I40E_TX_DESC(tx_ring, i); in i40e_clean_tx_irq()
955 i40e_trace(clean_tx_irq, tx_ring, tx_desc, tx_buf); in i40e_clean_tx_irq()
957 if (tx_head == tx_desc) in i40e_clean_tx_irq()
984 while (tx_desc != eop_desc) { in i40e_clean_tx_irq()
[all …]
/linux-6.1.9/drivers/net/ethernet/seeq/
Dsgiseeq.c96 struct sgiseeq_tx_desc *tx_desc; member
196 sp->tx_desc[i].tdma.cntinfo = TCNTINFO_INIT; in seeq_init_ring()
197 dma_sync_desc_dev(dev, &sp->tx_desc[i]); in seeq_init_ring()
230 if (sp->tx_desc[i].skb) { in seeq_purge_ring()
231 dev_kfree_skb(sp->tx_desc[i].skb); in seeq_purge_ring()
232 sp->tx_desc[i].skb = NULL; in seeq_purge_ring()
253 struct sgiseeq_tx_desc *t = gpriv->tx_desc; in sgiseeq_dump_rings()
312 hregs->tx_ndptr = VIRT_TO_DMA(sp, sp->tx_desc); in init_seeq()
443 td = &sp->tx_desc[i]; in kick_tx()
448 td = &sp->tx_desc[i]; in kick_tx()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_txrx.c198 struct iavf_tx_desc *tx_desc; in iavf_clean_tx_irq() local
203 tx_desc = IAVF_TX_DESC(tx_ring, i); in iavf_clean_tx_irq()
216 iavf_trace(clean_tx_irq, tx_ring, tx_desc, tx_buf); in iavf_clean_tx_irq()
243 while (tx_desc != eop_desc) { in iavf_clean_tx_irq()
245 tx_ring, tx_desc, tx_buf); in iavf_clean_tx_irq()
248 tx_desc++; in iavf_clean_tx_irq()
253 tx_desc = IAVF_TX_DESC(tx_ring, 0); in iavf_clean_tx_irq()
268 tx_desc++; in iavf_clean_tx_irq()
273 tx_desc = IAVF_TX_DESC(tx_ring, 0); in iavf_clean_tx_irq()
276 prefetch(tx_desc); in iavf_clean_tx_irq()
[all …]
/linux-6.1.9/drivers/spi/
Dspi-pxa2xx-dma.c136 struct dma_async_tx_descriptor *tx_desc, *rx_desc; in pxa2xx_spi_dma_prepare() local
139 tx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_MEM_TO_DEV, xfer); in pxa2xx_spi_dma_prepare()
140 if (!tx_desc) { in pxa2xx_spi_dma_prepare()
158 dmaengine_submit(tx_desc); in pxa2xx_spi_dma_prepare()
/linux-6.1.9/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c1067 struct pch_gbe_tx_desc *tx_desc; in pch_gbe_tx_queue() local
1153 tx_desc = PCH_GBE_TX_DESC(*tx_ring, ring_num); in pch_gbe_tx_queue()
1154 tx_desc->buffer_addr = (buffer_info->dma); in pch_gbe_tx_queue()
1155 tx_desc->length = (tmp_skb->len); in pch_gbe_tx_queue()
1156 tx_desc->tx_words_eob = ((tmp_skb->len + 3)); in pch_gbe_tx_queue()
1157 tx_desc->tx_frame_ctrl = (frame_ctrl); in pch_gbe_tx_queue()
1158 tx_desc->gbec_status = (DSC_INIT16); in pch_gbe_tx_queue()
1426 struct pch_gbe_tx_desc *tx_desc; in pch_gbe_alloc_tx_buffers() local
1436 tx_desc = PCH_GBE_TX_DESC(*tx_ring, i); in pch_gbe_alloc_tx_buffers()
1437 tx_desc->gbec_status = (DSC_INIT16); in pch_gbe_alloc_tx_buffers()
[all …]
/linux-6.1.9/drivers/net/ethernet/hisilicon/
Dhip04_eth.c173 struct tx_desc { struct
226 struct tx_desc *tx_desc; member
451 struct tx_desc *desc; in hip04_tx_reclaim()
461 desc = &priv->tx_desc[tx_tail]; in hip04_tx_reclaim()
511 struct tx_desc *desc = &priv->tx_desc[tx_head]; in hip04_mac_start_xmit()
540 phys = priv->tx_desc_dma + tx_head * sizeof(struct tx_desc); in hip04_mac_start_xmit()
542 offsetof(struct tx_desc, send_addr)); in hip04_mac_start_xmit()
859 priv->tx_desc = dma_alloc_coherent(d, in hip04_alloc_ring()
860 TX_DESC_NUM * sizeof(struct tx_desc), in hip04_alloc_ring()
862 if (!priv->tx_desc) in hip04_alloc_ring()
[all …]
/linux-6.1.9/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c183 struct mvpp2_tx_desc *tx_desc) in mvpp2_txdesc_dma_addr_get() argument
186 return le32_to_cpu(tx_desc->pp21.buf_dma_addr); in mvpp2_txdesc_dma_addr_get()
188 return le64_to_cpu(tx_desc->pp22.buf_dma_addr_ptp) & in mvpp2_txdesc_dma_addr_get()
193 struct mvpp2_tx_desc *tx_desc, in mvpp2_txdesc_dma_addr_set() argument
202 tx_desc->pp21.buf_dma_addr = cpu_to_le32(addr); in mvpp2_txdesc_dma_addr_set()
203 tx_desc->pp21.packet_offset = offset; in mvpp2_txdesc_dma_addr_set()
207 tx_desc->pp22.buf_dma_addr_ptp &= ~cpu_to_le64(MVPP2_DESC_DMA_MASK); in mvpp2_txdesc_dma_addr_set()
208 tx_desc->pp22.buf_dma_addr_ptp |= val; in mvpp2_txdesc_dma_addr_set()
209 tx_desc->pp22.packet_offset = offset; in mvpp2_txdesc_dma_addr_set()
214 struct mvpp2_tx_desc *tx_desc) in mvpp2_txdesc_size_get() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/
Dec_bhf.c103 struct tx_desc { struct
144 struct tx_desc *tx_descs;
170 static void ec_bhf_send_packet(struct ec_bhf_priv *priv, struct tx_desc *desc) in ec_bhf_send_packet()
178 static int ec_bhf_desc_sent(struct tx_desc *desc) in ec_bhf_desc_sent()
286 struct tx_desc *desc; in ec_bhf_start_xmit()
361 priv->tx_dcount = priv->tx_buf.len / sizeof(struct tx_desc); in ec_bhf_setup_tx_descs()
362 priv->tx_descs = (struct tx_desc *)priv->tx_buf.buf; in ec_bhf_setup_tx_descs()
409 FIFO_SIZE * sizeof(struct tx_desc)); in ec_bhf_open()

12345