Lines Matching full:seg
450 * seg - control segment to be filled
467 void mlx5dv_set_ctrl_seg(struct mlx5_wqe_ctrl_seg *seg, uint16_t pi, in mlx5dv_set_ctrl_seg() argument
472 seg->opmod_idx_opcode = htobe32(((uint32_t)opmod << 24) | ((uint32_t)pi << 8) | opcode); in mlx5dv_set_ctrl_seg()
473 seg->qpn_ds = htobe32((qp_num << 8) | ds); in mlx5dv_set_ctrl_seg()
474 seg->fm_ce_se = fm_ce_se; in mlx5dv_set_ctrl_seg()
475 seg->signature = signature; in mlx5dv_set_ctrl_seg()
482 seg->imm = imm; in mlx5dv_set_ctrl_seg()
494 void mlx5dv_x86_set_ctrl_seg(struct mlx5_wqe_ctrl_seg *seg, uint16_t pi, in mlx5dv_x86_set_ctrl_seg() argument
511 *(__m128i *) seg = _mm_shuffle_epi8(val, mask); in mlx5dv_x86_set_ctrl_seg()
520 * seg - datagram segment to be filled.
535 void mlx5dv_set_dgram_seg(struct mlx5_wqe_datagram_seg *seg, in mlx5dv_set_dgram_seg() argument
545 seg->av.key.dc_key = htobe64(key); in mlx5dv_set_dgram_seg()
546 seg->av.dqp_dct = htobe32(((uint32_t)ext << 31) | dqp_dct); in mlx5dv_set_dgram_seg()
547 seg->av.stat_rate_sl = stat_rate_sl; in mlx5dv_set_dgram_seg()
548 seg->av.fl_mlid = fl_mlid; in mlx5dv_set_dgram_seg()
549 seg->av.rlid = htobe16(rlid); in mlx5dv_set_dgram_seg()
550 memcpy(seg->av.rmac, rmac, 6); in mlx5dv_set_dgram_seg()
551 seg->av.tclass = tclass; in mlx5dv_set_dgram_seg()
552 seg->av.hop_limit = hop_limit; in mlx5dv_set_dgram_seg()
553 seg->av.grh_gid_fl = htobe32(grh_gid_fi); in mlx5dv_set_dgram_seg()
554 memcpy(seg->av.rgid, rgid, 16); in mlx5dv_set_dgram_seg()
563 void mlx5dv_set_data_seg(struct mlx5_wqe_data_seg *seg, in mlx5dv_set_data_seg() argument
567 seg->byte_count = htobe32(length); in mlx5dv_set_data_seg()
568 seg->lkey = htobe32(lkey); in mlx5dv_set_data_seg()
569 seg->addr = htobe64(address); in mlx5dv_set_data_seg()
581 void mlx5dv_x86_set_data_seg(struct mlx5_wqe_data_seg *seg, in mlx5dv_x86_set_data_seg() argument
591 *(__m128i *) seg = _mm_shuffle_epi8(val, mask); in mlx5dv_x86_set_data_seg()
599 * seg - Eth segment to be filled.
609 void mlx5dv_set_eth_seg(struct mlx5_wqe_eth_seg *seg, uint8_t cs_flags, in mlx5dv_set_eth_seg() argument
613 seg->cs_flags = cs_flags; in mlx5dv_set_eth_seg()
614 seg->mss = htobe16(mss); in mlx5dv_set_eth_seg()
615 seg->inline_hdr_sz = htobe16(inline_hdr_sz); in mlx5dv_set_eth_seg()
616 memcpy(seg->inline_hdr_start, inline_hdr_start, inline_hdr_sz); in mlx5dv_set_eth_seg()