/freebsd/sys/dev/iser/ |
H A D | iser_initiator.c | 103 struct iser_tx_desc *tx_desc) in iser_create_send_desc() argument 108 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iser_create_send_desc() 110 memset(&tx_desc->iser_header, 0, sizeof(struct iser_hdr)); in iser_create_send_desc() 111 tx_desc->iser_header.flags = ISER_VER; in iser_create_send_desc() 113 tx_desc->num_sge = 1; in iser_create_send_desc() 115 if (tx_desc->tx_sg[0].lkey != device->mr->lkey) { in iser_create_send_desc() 116 tx_desc->tx_sg[0].lkey = device->mr->lkey; in iser_create_send_desc() 117 ISER_DBG("sdesc %p lkey mismatch, fixing", tx_desc); in iser_create_send_desc() 362 struct iser_tx_desc *tx_desc = &iser_pdu->desc; in iser_send_command() local 369 tx_desc->type = ISCSI_TX_SCSI_COMMAND; in iser_send_command() [all …]
|
H A D | icl_iser.c | 91 struct iser_tx_desc *tx_desc = &pdu->desc; in iser_initialize_headers() local 96 dma_addr = ib_dma_map_single(device->ib_device, (void *)tx_desc, in iser_initialize_headers() 103 tx_desc->mapped = true; in iser_initialize_headers() 104 tx_desc->dma_addr = dma_addr; in iser_initialize_headers() 105 tx_desc->tx_sg[0].addr = tx_desc->dma_addr; in iser_initialize_headers() 106 tx_desc->tx_sg[0].length = ISER_HEADERS_LEN; in iser_initialize_headers() 107 tx_desc->tx_sg[0].lkey = device->mr->lkey; in iser_initialize_headers() 487 struct iser_tx_desc *tx_desc = &iser_pdu->desc; in iser_conn_task_done() local 503 if (likely(tx_desc->mapped)) { in iser_conn_task_done() 504 ib_dma_unmap_single(device->ib_device, tx_desc->dma_addr, in iser_conn_task_done() [all …]
|
H A D | iser_verbs.c | 118 struct iser_tx_desc *tx_desc; in iser_handle_wc() local 129 tx_desc = (struct iser_tx_desc *)(uintptr_t)wc->wr_id; in iser_handle_wc() 130 iser_snd_completion(tx_desc, ib_conn); in iser_handle_wc() 914 int iser_post_send(struct ib_conn *ib_conn, struct iser_tx_desc *tx_desc, in iser_post_send() argument 922 tx_desc->dma_addr, ISER_HEADERS_LEN, in iser_post_send() 926 send_wr.wr_id = (uintptr_t)tx_desc; in iser_post_send() 927 send_wr.sg_list = tx_desc->tx_sg; in iser_post_send() 928 send_wr.num_sge = tx_desc->num_sge; in iser_post_send()
|
/freebsd/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_tx.c | 275 struct mlx4_en_tx_desc *tx_desc = (struct mlx4_en_tx_desc *) in mlx4_en_stamp_wqe() local 277 volatile __be32 *ptr = (__be32 *)tx_desc; in mlx4_en_stamp_wqe() 641 volatile struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit() local 685 tx_desc = (volatile struct mlx4_en_tx_desc *) in mlx4_en_xmit() 688 dseg = &tx_desc->data; in mlx4_en_xmit() 695 tx_desc->ctrl.srcrb_flags = CTRL_FLAGS; in mlx4_en_xmit() 698 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM); in mlx4_en_xmit() 702 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_TCP_UDP_CSUM); in mlx4_en_xmit() 705 if (likely(tx_desc->ctrl.srcrb_flags != CTRL_FLAGS)) { in mlx4_en_xmit() 712 tx_desc->ctrl.vlan_tag = cpu_to_be16(mb->m_pkthdr.ether_vtag); in mlx4_en_xmit() [all …]
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | tx.c | 37 struct rtw_tx_desc *tx_desc = (struct rtw_tx_desc *)skb->data; in rtw_tx_fill_tx_desc() local 43 tx_desc->w0 = le32_encode_bits(pkt_info->tx_pkt_size, RTW_TX_DESC_W0_TXPKTSIZE) | in rtw_tx_fill_tx_desc() 49 tx_desc->w1 = le32_encode_bits(pkt_info->qsel, RTW_TX_DESC_W1_QSEL) | in rtw_tx_fill_tx_desc() 55 tx_desc->w2 = le32_encode_bits(pkt_info->ampdu_en, RTW_TX_DESC_W2_AGG_EN) | in rtw_tx_fill_tx_desc() 60 tx_desc->w3 = le32_encode_bits(pkt_info->hw_ssn_sel, RTW_TX_DESC_W3_HW_SSN_SEL) | in rtw_tx_fill_tx_desc() 67 tx_desc->w4 = le32_encode_bits(pkt_info->rate, RTW_TX_DESC_W4_DATARATE); in rtw_tx_fill_tx_desc() 69 tx_desc->w5 = le32_encode_bits(pkt_info->short_gi, RTW_TX_DESC_W5_DATA_SHORT) | in rtw_tx_fill_tx_desc() 74 tx_desc->w6 = le32_encode_bits(pkt_info->sn, RTW_TX_DESC_W6_SW_DEFINE); in rtw_tx_fill_tx_desc() 76 tx_desc->w8 = le32_encode_bits(pkt_info->en_hwseq, RTW_TX_DESC_W8_EN_HWSEQ); in rtw_tx_fill_tx_desc() 78 tx_desc in rtw_tx_fill_tx_desc() [all...] |
H A D | tx.h | 120 struct rtw_tx_desc *tx_desc = (struct rtw_tx_desc *)txdesc; in fill_txdesc_checksum_common() local 122 le32p_replace_bits(&tx_desc->w7, 0, RTW_TX_DESC_W7_TXDESC_CHECKSUM); in fill_txdesc_checksum_common() 127 le32p_replace_bits(&tx_desc->w7, __le16_to_cpu(chksum), in fill_txdesc_checksum_common()
|
H A D | usb.c | 27 struct rtw_tx_desc *tx_desc = (struct rtw_tx_desc *)skb->data; in rtw_usb_fill_tx_checksum() local 31 le32p_replace_bits(&tx_desc->w7, agg_num, RTW_TX_DESC_W7_DMA_TXAGG_NUM); in rtw_usb_fill_tx_checksum() 32 pkt_info.pkt_offset = le32_get_bits(tx_desc->w1, RTW_TX_DESC_W1_PKT_OFFSET); in rtw_usb_fill_tx_checksum() 335 struct rtw_tx_desc *tx_desc; in rtw_usb_tx_agg_skb() 396 tx_desc = (struct rtw_tx_desc *)skb_head->data; in rtw_usb_write_data() 397 qsel = le32_get_bits(tx_desc->w1, RTW_TX_DESC_W1_QSEL); in rtw_usb_write_data() 293 struct rtw_tx_desc *tx_desc; rtw_usb_tx_agg_skb() local
|
H A D | fw.c | 1620 /* Fill the tx_desc for the rsvd pkt that requires one. in rtw_download_beacon() 1630 * generate a tx_desc at the header to describe length of in rtw_download_beacon() 1632 * size of tx_desc added at the first rsvd_pkt (usually a in rtw_download_beacon() 1664 * And that rsvd_pkt does not require tx_desc because when it goes in rtw_fw_download_rsvd_page() 1746 * the previous tx_desc is to describe the total rsvd page. Download in rtw_fw_dump_check_size() 1748 * a correct tx_desc for the beacon in the rsvd page. in rtw_fw_dump_check_size()
|
/freebsd/sys/dev/rtwn/pci/ |
H A D | rtwn_pci_tx.c | 91 struct mbuf *m, uint8_t *tx_desc, uint8_t type) in rtwn_pci_tx_start_frame() argument 131 rtwn_pci_copy_tx_desc(pc, txd, tx_desc); in rtwn_pci_tx_start_frame() 198 uint8_t *tx_desc, int id) in rtwn_pci_tx_start_beacon() argument 223 rtwn_pci_copy_tx_desc(pc, txd, tx_desc); in rtwn_pci_tx_start_beacon() 257 struct mbuf *m, uint8_t *tx_desc, uint8_t type, int id) in rtwn_pci_tx_start() argument 264 error = rtwn_pci_tx_start_beacon(sc, m, tx_desc, id); in rtwn_pci_tx_start() 266 error = rtwn_pci_tx_start_frame(sc, ni, m, tx_desc, type); in rtwn_pci_tx_start()
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | dp_tx.c | 84 struct ath12k_tx_desc_info *tx_desc, in ath12k_dp_tx_release_txbuf() argument 88 list_move_tail(&tx_desc->list, &dp->tx_desc_free_list[pool_id]); in ath12k_dp_tx_release_txbuf() 138 struct ath12k_tx_desc_info *tx_desc; in ath12k_dp_tx() local 181 tx_desc = ath12k_dp_tx_assign_buffer(dp, pool_id); in ath12k_dp_tx() 182 if (!tx_desc) in ath12k_dp_tx() 256 tx_desc->skb = skb; in ath12k_dp_tx() 257 tx_desc->mac_id = ar->pdev_idx; in ath12k_dp_tx() 258 ti.desc_id = tx_desc->desc_id; in ath12k_dp_tx() 341 ath12k_dp_tx_release_txbuf(dp, tx_desc, pool_id); in ath12k_dp_tx() 543 struct ath12k_tx_desc_info *tx_desc = NULL; in ath12k_dp_tx_completion_handler() local [all …]
|
/freebsd/sys/dev/age/ |
H A D | if_agevar.h | 74 struct tx_desc *tx_desc; member 115 struct tx_desc *age_tx_ring; 128 (sizeof(struct tx_desc) * AGE_TX_RING_CNT)
|
/freebsd/sys/contrib/device-tree/Bindings/net/ |
H A D | altr,tse.yaml | 107 - const: tx_desc 123 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc", "pcs"; 146 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
|
H A D | altera_tse.txt | 13 "tx_desc": MSGDMA Tx dispatcher descriptor space region 62 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc"; 100 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
|
/freebsd/sys/dev/rtwn/usb/ |
H A D | rtwn_usb_tx.c | 278 struct mbuf *m, uint8_t *tx_desc, uint8_t type, int id) in rtwn_usb_tx_start() argument 314 txd = (struct rtwn_tx_desc_common *)tx_desc; in rtwn_usb_tx_start() 321 rtwn_dump_tx_desc(sc, tx_desc); in rtwn_usb_tx_start() 323 memcpy(data->buf, tx_desc, sc->txdesc_len); in rtwn_usb_tx_start()
|
/freebsd/sys/dev/alc/ |
H A D | if_alcvar.h | 34 #define ALC_TX_RING_ALIGN sizeof(struct tx_desc) 63 (sizeof(struct tx_desc) * ALC_TX_RING_CNT) 96 struct tx_desc *alc_tx_ring;
|
/freebsd/sys/dev/tsec/ |
H A D | if_tsec.c | 369 struct tsec_desc *tx_desc = sc->tsec_tx_vaddr; in tsec_init_locked() local 495 tx_desc[i].bufptr = 0; in tsec_init_locked() 496 tx_desc[i].length = 0; in tsec_init_locked() 497 tx_desc[i].flags = ((i == TSEC_TX_NUM_DESC - 1) ? in tsec_init_locked() 831 struct tsec_desc *tx_desc; in tsec_encap() local 834 tx_desc = &sc->tsec_tx_vaddr[tx_idx]; in tsec_encap() 835 tx_desc->length = segs[i].ds_len; in tsec_encap() 836 tx_desc->bufptr = segs[i].ds_addr; in tsec_encap() 853 tx_desc->flags = (tx_idx == (TSEC_TX_NUM_DESC - 1) ? in tsec_encap() 1447 struct tsec_desc *tx_desc; in tsec_transmit_intr_locked() local [all …]
|
/freebsd/sys/dev/ale/ |
H A D | if_alevar.h | 93 struct tx_desc *ale_tx_ring; 109 (sizeof(struct tx_desc) * ALE_TX_RING_CNT)
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | htt_tx.c | 1278 struct htt_data_tx_desc *tx_desc; in ath10k_htt_tx_hl() local 1366 skb_push(msdu, sizeof(*tx_desc)); in ath10k_htt_tx_hl() 1368 tx_desc = (struct htt_data_tx_desc *)(msdu->data + sizeof(*cmd_hdr)); in ath10k_htt_tx_hl() 1371 tx_desc->flags0 = flags0; in ath10k_htt_tx_hl() 1372 tx_desc->flags1 = __cpu_to_le16(flags1); in ath10k_htt_tx_hl() 1373 tx_desc->len = __cpu_to_le16(data_len); in ath10k_htt_tx_hl() 1374 tx_desc->id = __cpu_to_le16(msdu_id); in ath10k_htt_tx_hl() 1375 tx_desc->frags_paddr = 0; /* always zero */ in ath10k_htt_tx_hl() 1379 tx_desc->peerid = __cpu_to_le32(HTT_INVALID_PEERID); in ath10k_htt_tx_hl()
|
/freebsd/sys/dev/vte/ |
H A D | if_vtevar.h | 66 struct vte_tx_desc *tx_desc; member
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_hw.c | 669 q81_txb_desc_t *tx_desc; in qls_hw_send() local 745 tx_desc = ha->tx_ring[txr_idx].tx_buf[txr_next].oal_vaddr; in qls_hw_send() 748 tx_desc->baddr = segs->ds_addr; in qls_hw_send() 749 tx_desc->length = segs->ds_len; in qls_hw_send() 752 tx_desc->flags = Q81_RXB_DESC_FLAGS_E; in qls_hw_send() 754 tx_desc->flags = 0; in qls_hw_send() 757 tx_desc++; in qls_hw_send()
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_adapter.h | 222 struct tx_desc; 239 struct tx_desc *desc;
|
H A D | cxgb_sge.c | 148 struct tx_desc { struct 1254 wr_gen2(struct tx_desc *d, unsigned int gen) in wr_gen2() 1279 write_wr_hdr_sgl(unsigned int ndesc, struct tx_desc *txd, struct txq_state *txqs, in write_wr_hdr_sgl() 1338 wr_gen2((struct tx_desc *)wp, ogen); in write_wr_hdr_sgl() 1368 struct tx_desc *txd; in t3_encap() 1791 write_imm(struct tx_desc *d, caddr_t src, in write_imm() 2202 struct tx_desc *d = &q->desc[pidx]; in write_ofld_wr() 2471 sizeof(struct tx_desc), sz, in t3_sge_alloc_qset() 3159 struct tx_desc *txd; in t3_dump_txq_eth() 3226 struct tx_desc *txd; in t3_dump_txq_ctrl() [all …]
|
/freebsd/sys/dev/jme/ |
H A D | if_jmevar.h | 103 struct jme_desc *tx_desc; member
|
/freebsd/sys/dev/vge/ |
H A D | if_vge.c | 1318 txd->tx_desc = &rd->vge_tx_ring[i]; in vge_tx_list_init() 1642 txd->tx_desc->vge_frag[0].vge_addrhi = 0; in vge_txeof() 1891 txd->tx_desc->vge_sts = htole32(m->m_pkthdr.len << 16); in vge_encap() 1907 txd->tx_desc->vge_ctl = htole32(cflags | ((nsegs + 1) << 28) | in vge_encap() 1910 frag = &txd->tx_desc->vge_frag[i]; in vge_encap() 1923 txd->tx_desc->vge_ctl |= htole32(VGE_TDCTL_TIC); in vge_encap() 1924 txd->tx_desc->vge_sts |= htole32(VGE_TDSTS_OWN); in vge_encap() 1983 txd->tx_desc->vge_frag[0].vge_addrhi |= htole32(VGE_TXDESC_Q); in vge_start_locked()
|
/freebsd/sys/contrib/device-tree/src/nios2/ |
H A D | 10m50_devboard.dts | 93 reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
|