Lines Matching full:tx_desc

242 	struct mlx4_en_tx_desc *tx_desc = ring->buf + (index << LOG_TXBB_SIZE);  in mlx4_en_stamp_wqe()  local
245 __be32 *ptr = (__be32 *)tx_desc; in mlx4_en_stamp_wqe()
249 if (likely((void *)tx_desc + in mlx4_en_stamp_wqe()
282 struct mlx4_en_tx_desc *tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_free_tx_desc() local
283 struct mlx4_wqe_data_seg *data = (void *) tx_desc + tx_info->data_offset; in mlx4_en_free_tx_desc()
313 if (likely((void *)tx_desc + in mlx4_en_free_tx_desc()
400 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_handle_err_cqe() local
414 tx_desc = ring->buf + (wqe_index << LOG_TXBB_SIZE); in mlx4_en_handle_err_cqe()
415 print_hex_dump(KERN_WARNING, "", DUMP_PREFIX_OFFSET, 16, 1, tx_desc, desc_size, false); in mlx4_en_handle_err_cqe()
687 static void build_inline_wqe(struct mlx4_en_tx_desc *tx_desc, in build_inline_wqe() argument
692 struct mlx4_wqe_inline_seg *inl = &tx_desc->inl; in build_inline_wqe()
771 struct mlx4_en_tx_desc *tx_desc, in mlx4_en_tx_write_desc() argument
777 tx_desc->ctrl.qpn_vlan = qpn_vlan; in mlx4_en_tx_write_desc()
785 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_tx_write_desc()
789 mlx4_bf_copy(ring->bf.reg + ring->bf.offset, &tx_desc->ctrl, in mlx4_en_tx_write_desc()
800 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_tx_write_desc()
878 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit() local
938 tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_xmit()
945 tx_desc = (struct mlx4_en_tx_desc *) ring->bounce_buf; in mlx4_en_xmit()
956 data = &tx_desc->data; in mlx4_en_xmit()
961 data = (void *)&tx_desc->lso + lso_align; in mlx4_en_xmit()
994 tx_desc->ctrl.srcrb_flags = priv->ctrl_flags; in mlx4_en_xmit()
997 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM | in mlx4_en_xmit()
1000 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM); in mlx4_en_xmit()
1011 tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest); in mlx4_en_xmit()
1012 tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2)); in mlx4_en_xmit()
1026 tx_desc->lso.mss_hdr_size = cpu_to_be32( in mlx4_en_xmit()
1034 memcpy(tx_desc->lso.header, skb->data, ETH_HLEN + sizeof(*h6)); in mlx4_en_xmit()
1035 h6 = (struct ipv6hdr *)((char *)tx_desc->lso.header + ETH_HLEN); in mlx4_en_xmit()
1047 memcpy(tx_desc->lso.header, skb->data, lso_header_size); in mlx4_en_xmit()
1065 build_inline_wqe(tx_desc, skb, shinfo, fragptr); in mlx4_en_xmit()
1089 tx_desc = mlx4_en_bounce_to_desc(priv, ring, index, desc_size); in mlx4_en_xmit()
1113 mlx4_en_tx_write_desc(ring, tx_desc, qpn_vlan, desc_size, bf_index, in mlx4_en_xmit()
1150 struct mlx4_en_tx_desc *tx_desc = ring->buf + in mlx4_en_init_tx_xdp_ring_descs() local
1161 tx_desc->data.lkey = ring->mr_key; in mlx4_en_init_tx_xdp_ring_descs()
1162 tx_desc->ctrl.qpn_vlan.fence_size = MLX4_EN_XDP_TX_REAL_SZ; in mlx4_en_init_tx_xdp_ring_descs()
1163 tx_desc->ctrl.srcrb_flags = priv->ctrl_flags; in mlx4_en_init_tx_xdp_ring_descs()
1172 struct mlx4_en_tx_desc *tx_desc; in mlx4_en_xmit_frame() local
1191 tx_desc = ring->buf + (index << LOG_TXBB_SIZE); in mlx4_en_xmit_frame()
1192 data = &tx_desc->data; in mlx4_en_xmit_frame()
1222 tx_desc->ctrl.owner_opcode = op_own; in mlx4_en_xmit_frame()