Lines Matching full:tx_desc
241 struct mlx4_en_tx_desc *tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_stamp_wqe() local
244 __be32 *ptr = (__be32 *)tx_desc; in mlx4_en_stamp_wqe()
248 if (likely((void *)tx_desc + in mlx4_en_stamp_wqe()
281 struct mlx4_en_tx_desc *tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_free_tx_desc() local
282 struct mlx4_wqe_data_seg *data = (void *) tx_desc + tx_info->data_offset; in mlx4_en_free_tx_desc()
312 if (likely((void *)tx_desc + in mlx4_en_free_tx_desc()
405 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_handle_err_cqe() local
419 tx_desc = ring->buf + (wqe_index << LOG_TXBB_SIZE); in mlx4_en_handle_err_cqe()
420 print_hex_dump(KERN_WARNING, "", DUMP_PREFIX_OFFSET, 16, 1, tx_desc, desc_size, false); in mlx4_en_handle_err_cqe()
690 static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, in build_inline_wqe() argument
695 struct mlx4_wqe_inline_seg *inl = &tx_desc->inl; in build_inline_wqe()
774 struct mlx4_en_tx_desc *tx_desc, in mlx4_en_tx_write_desc() argument
780 tx_desc->ctrl.qpn_vlan = qpn_vlan; in mlx4_en_tx_write_desc()
788 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_tx_write_desc()
792 mlx4_bf_copy(ring->bf.reg + ring->bf.offset, &tx_desc->ctrl, in mlx4_en_tx_write_desc()
803 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_tx_write_desc()
881 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit() local
941 tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_xmit()
948 tx_desc = (struct mlx4_en_tx_desc *) ring->bounce_buf; in mlx4_en_xmit()
959 data = &tx_desc->data; in mlx4_en_xmit()
964 data = (void *)&tx_desc->lso + lso_align; in mlx4_en_xmit()
997 tx_desc->ctrl.srcrb_flags = priv->ctrl_flags; in mlx4_en_xmit()
1000 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM | in mlx4_en_xmit()
1003 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM); in mlx4_en_xmit()
1014 tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest); in mlx4_en_xmit()
1015 tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2)); in mlx4_en_xmit()
1029 tx_desc->lso.mss_hdr_size = cpu_to_be32( in mlx4_en_xmit()
1037 memcpy(tx_desc->lso.header, skb->data, ETH_HLEN + sizeof(*h6)); in mlx4_en_xmit()
1038 h6 = (struct ipv6hdr *)((char *)tx_desc->lso.header + ETH_HLEN); in mlx4_en_xmit()
1050 memcpy(tx_desc->lso.header, skb->data, lso_header_size); in mlx4_en_xmit()
1068 build_inline_wqe(tx_desc, skb, shinfo, fragptr); in mlx4_en_xmit()
1092 tx_desc = mlx4_en_bounce_to_desc(priv, ring, index, desc_size); in mlx4_en_xmit()
1116 mlx4_en_tx_write_desc(ring, tx_desc, qpn_vlan, desc_size, bf_index, in mlx4_en_xmit()
1153 struct mlx4_en_tx_desc *tx_desc = ring->buf + in mlx4_en_init_tx_xdp_ring_descs() local
1164 tx_desc->data.lkey = ring->mr_key; in mlx4_en_init_tx_xdp_ring_descs()
1165 tx_desc->ctrl.qpn_vlan.fence_size = MLX4_EN_XDP_TX_REAL_SZ; in mlx4_en_init_tx_xdp_ring_descs()
1166 tx_desc->ctrl.srcrb_flags = priv->ctrl_flags; in mlx4_en_init_tx_xdp_ring_descs()
1175 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit_frame() local
1194 tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_xmit_frame()
1195 data = &tx_desc->data; in mlx4_en_xmit_frame()
1225 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_xmit_frame()