Home
last modified time | relevance | path

Searched refs:dseg (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_wqe.h116 static __always_inline void mthca_set_data_seg(struct mthca_data_seg *dseg, in mthca_set_data_seg() argument
119 dseg->byte_count = cpu_to_be32(sg->length); in mthca_set_data_seg()
120 dseg->lkey = cpu_to_be32(sg->lkey); in mthca_set_data_seg()
121 dseg->addr = cpu_to_be64(sg->addr); in mthca_set_data_seg()
124 static __always_inline void mthca_set_data_seg_inval(struct mthca_data_seg *dseg) in mthca_set_data_seg_inval() argument
126 dseg->byte_count = 0; in mthca_set_data_seg_inval()
127 dseg->lkey = cpu_to_be32(MTHCA_INVAL_LKEY); in mthca_set_data_seg_inval()
128 dseg->addr = 0; in mthca_set_data_seg_inval()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c245 struct mlx5_wqe_data_seg *dseg) in mlx5e_txwqe_build_dsegs() argument
257 dseg->addr = cpu_to_be64(dma_addr); in mlx5e_txwqe_build_dsegs()
258 dseg->lkey = sq->mkey_be; in mlx5e_txwqe_build_dsegs()
259 dseg->byte_count = cpu_to_be32(headlen); in mlx5e_txwqe_build_dsegs()
263 dseg++; in mlx5e_txwqe_build_dsegs()
275 dseg->addr = cpu_to_be64(dma_addr); in mlx5e_txwqe_build_dsegs()
276 dseg->lkey = sq->mkey_be; in mlx5e_txwqe_build_dsegs()
277 dseg->byte_count = cpu_to_be32(fsz); in mlx5e_txwqe_build_dsegs()
281 dseg++; in mlx5e_txwqe_build_dsegs()
346 struct mlx5_wqe_data_seg *dseg; in mlx5e_sq_xmit() local
[all …]
Den_main.c1573 struct mlx5_wqe_data_seg *dseg; in mlx5e_open_xdpsq() local
1578 dseg = (struct mlx5_wqe_data_seg *)cseg + (ds_cnt - 1); in mlx5e_open_xdpsq()
1579 dseg->lkey = sq->mkey_be; in mlx5e_open_xdpsq()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en/
Dxdp.c113 struct mlx5_wqe_data_seg *dseg = wqe->data; in mlx5e_xmit_xdp_frame() local
146 dseg++; in mlx5e_xmit_xdp_frame()
150 dseg->addr = cpu_to_be64(dma_addr); in mlx5e_xmit_xdp_frame()
151 dseg->byte_count = cpu_to_be32(dma_len); in mlx5e_xmit_xdp_frame()
/Linux-v4.19/arch/x86/boot/
Dapm.c50 boot_params.apm_bios_info.dseg = oreg.dx; in query_apm_bios()
/Linux-v4.19/include/uapi/linux/
Dapm_bios.h30 __u16 dseg; member
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dqp.c3281 static void set_datagram_seg(struct mlx4_wqe_datagram_seg *dseg, in set_datagram_seg() argument
3284 memcpy(dseg->av, &to_mah(wr->ah)->av, sizeof (struct mlx4_av)); in set_datagram_seg()
3285 dseg->dqpn = cpu_to_be32(wr->remote_qpn); in set_datagram_seg()
3286 dseg->qkey = cpu_to_be32(wr->remote_qkey); in set_datagram_seg()
3287 dseg->vlan = to_mah(wr->ah)->av.eth.vlan; in set_datagram_seg()
3288 memcpy(dseg->mac, to_mah(wr->ah)->av.eth.mac, 6); in set_datagram_seg()
3292 struct mlx4_wqe_datagram_seg *dseg, in set_tunnel_datagram_seg() argument
3306 memcpy(dseg->av, &sqp_av, sizeof (struct mlx4_av)); in set_tunnel_datagram_seg()
3308 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp1_tunnel); in set_tunnel_datagram_seg()
3310 dseg->dqpn = cpu_to_be32(dev->dev->caps.spec_qps[port - 1].qp0_tunnel); in set_tunnel_datagram_seg()
[all …]
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c49 static void set_data_seg_v2(struct hns_roce_v2_wqe_data_seg *dseg, in set_data_seg_v2() argument
52 dseg->lkey = cpu_to_le32(sg->lkey); in set_data_seg_v2()
53 dseg->addr = cpu_to_le64(sg->addr); in set_data_seg_v2()
54 dseg->len = cpu_to_le32(sg->length); in set_data_seg_v2()
60 struct hns_roce_v2_wqe_data_seg *dseg; in set_extend_sge() local
80 dseg = get_send_extend_sge(qp, (*sge_ind) & (qp->sge.sge_cnt - 1)); in set_extend_sge()
81 fi_sge_num = (round_up((uintptr_t)dseg, 1 << shift) - in set_extend_sge()
82 (uintptr_t)dseg) / in set_extend_sge()
87 set_data_seg_v2(dseg++, sg + i); in set_extend_sge()
90 dseg = get_send_extend_sge(qp, in set_extend_sge()
[all …]
Dhns_roce_hw_v1.c46 static void set_data_seg(struct hns_roce_wqe_data_seg *dseg, struct ib_sge *sg) in set_data_seg() argument
48 dseg->lkey = cpu_to_le32(sg->lkey); in set_data_seg()
49 dseg->addr = cpu_to_le64(sg->addr); in set_data_seg()
50 dseg->len = cpu_to_le32(sg->length); in set_data_seg()
69 struct hns_roce_wqe_data_seg *dseg = NULL; in hns_roce_v1_post_send() local
288 dseg = wqe; in hns_roce_v1_post_send()
309 set_data_seg(dseg + i, wr->sg_list + i); in hns_roce_v1_post_send()
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dodp.c803 struct mlx5_wqe_data_seg *dseg = wqe; in pagefault_data_segments() local
805 io_virt = be64_to_cpu(dseg->addr); in pagefault_data_segments()
806 key = be32_to_cpu(dseg->lkey); in pagefault_data_segments()
807 byte_count = be32_to_cpu(dseg->byte_count); in pagefault_data_segments()
816 wqe += sizeof(*dseg); in pagefault_data_segments()
Dqp.c3563 static void set_datagram_seg(struct mlx5_wqe_datagram_seg *dseg, in set_datagram_seg() argument
3566 memcpy(&dseg->av, &to_mah(ud_wr(wr)->ah)->av, sizeof(struct mlx5_av)); in set_datagram_seg()
3567 dseg->av.dqp_dct = cpu_to_be32(ud_wr(wr)->remote_qpn | MLX5_EXTENDED_UD_AV); in set_datagram_seg()
3568 dseg->av.key.qkey.qkey = cpu_to_be32(ud_wr(wr)->remote_qkey); in set_datagram_seg()
3571 static void set_data_ptr_seg(struct mlx5_wqe_data_seg *dseg, struct ib_sge *sg) in set_data_ptr_seg() argument
3573 dseg->byte_count = cpu_to_be32(sg->length); in set_data_ptr_seg()
3574 dseg->lkey = cpu_to_be32(sg->lkey); in set_data_ptr_seg()
3575 dseg->addr = cpu_to_be64(sg->addr); in set_data_ptr_seg()
3808 static void set_reg_data_seg(struct mlx5_wqe_data_seg *dseg, in set_reg_data_seg() argument
3814 dseg->addr = cpu_to_be64(mr->desc_map); in set_reg_data_seg()
[all …]
/Linux-v4.19/arch/x86/kernel/
Dapm_32.c2307 apm_info.bios.cseg_16, apm_info.bios.dseg); in apm_init()
2355 (unsigned long)__va((unsigned long)apm_info.bios.dseg << 4)); in apm_init()