/drivers/infiniband/core/ |
D | uverbs_marshall.c | 85 memcpy(dst->grh.dgid, grh->dgid.raw, sizeof(grh->dgid)); in ib_copy_ah_attr_to_user() 139 memcpy(dst->dgid, src->dgid.raw, sizeof(src->dgid)); in __ib_copy_path_rec_to_user() 182 (ib_is_opa_gid((union ib_gid *)src->dgid))) { in ib_copy_path_rec_from_user() 185 dlid = opa_get_lid_from_gid((union ib_gid *)src->dgid); in ib_copy_path_rec_from_user() 191 memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid); in ib_copy_path_rec_from_user()
|
D | lag.c | 24 is_ipv4 = ipv6_addr_v4mapped((struct in6_addr *)ah_attr->grh.dgid.raw); in rdma_build_skb() 54 memcpy(&iph->daddr, ah_attr->grh.dgid.raw + 12, in rdma_build_skb() 66 memcpy(&ip6h->daddr, ah_attr->grh.dgid.raw, in rdma_build_skb()
|
D | addr.c | 729 } sgid, dgid; in roce_resolve_route_from_path() local 739 rdma_gid2ip((struct sockaddr *)&dgid, &rec->dgid); in roce_resolve_route_from_path() 741 if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) in roce_resolve_route_from_path() 750 ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, in roce_resolve_route_from_path() 815 const union ib_gid *dgid, in rdma_addr_find_l2_eth_by_grh() argument 828 rdma_gid2ip((struct sockaddr *)&dgid_addr, dgid); in rdma_addr_find_l2_eth_by_grh()
|
D | verbs.c | 721 union ib_gid *sgid, union ib_gid *dgid) in ib_get_gids_from_rdma_hdr() argument 727 if (!sgid || !dgid) in ib_get_gids_from_rdma_hdr() 740 (struct in6_addr *)dgid); in ib_get_gids_from_rdma_hdr() 744 *dgid = hdr->ibgrh.dgid; in ib_get_gids_from_rdma_hdr() 768 if (rdma_link_local_addr((struct in6_addr *)grh->dgid.raw) && in ib_resolve_unicast_gid_dmac() 770 rdma_get_ll_mac((struct in6_addr *)grh->dgid.raw, in ib_resolve_unicast_gid_dmac() 775 ret = rdma_addr_find_l2_eth_by_grh(&sgid_attr->gid, &grh->dgid, in ib_resolve_unicast_gid_dmac() 805 union ib_gid dgid; in ib_init_ah_attr_from_wc() local 820 &sgid, &dgid); in ib_init_ah_attr_from_wc() 835 vlan_id, &dgid, in ib_init_ah_attr_from_wc() [all …]
|
/drivers/infiniband/sw/rxe/ |
D | rxe_av.c | 50 memcpy(av->grh.dgid.raw, grh->dgid.raw, sizeof(grh->dgid.raw)); in rxe_av_from_attr() 64 memcpy(grh->dgid.raw, av->grh.dgid.raw, sizeof(av->grh.dgid.raw)); in rxe_av_to_attr() 82 &rdma_ah_read_grh(attr)->dgid); in rxe_av_fill_ip_info()
|
D | rxe_recv.c | 239 union ib_gid dgid; in rxe_rcv_mcast_pkt() local 244 (struct in6_addr *)&dgid); in rxe_rcv_mcast_pkt() 246 memcpy(&dgid, &ipv6_hdr(skb)->daddr, sizeof(dgid)); in rxe_rcv_mcast_pkt() 249 mcg = rxe_pool_get_key(&rxe->mc_grp_pool, &dgid); in rxe_rcv_mcast_pkt() 331 union ib_gid dgid; in rxe_chk_dgid() local 339 (struct in6_addr *)&dgid); in rxe_chk_dgid() 340 pdgid = &dgid; in rxe_chk_dgid()
|
/drivers/infiniband/hw/qib/ |
D | qib_ruc.c | 101 if (!gid_ok(&hdr->u.l.grh.dgid, in qib_ruc_check_hdr() 105 grh->dgid.global.subnet_prefix, in qib_ruc_check_hdr() 106 grh->dgid.global.interface_id)) in qib_ruc_check_hdr() 140 if (!gid_ok(&hdr->u.l.grh.dgid, in qib_ruc_check_hdr() 144 grh->dgid.global.subnet_prefix, in qib_ruc_check_hdr() 145 grh->dgid.global.interface_id)) in qib_ruc_check_hdr() 200 hdr->dgid = grh->dgid; in qib_make_grh()
|
/drivers/infiniband/hw/mlx4/ |
D | ah.c | 62 memcpy(ah->av.ib.dgid, grh->dgid.raw, 16); in create_ib_ah() 89 memcpy(&in6, grh->dgid.raw, sizeof(in6)); in create_iboe_ah() 138 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); in create_iboe_ah() 230 rdma_ah_set_dgid_raw(ah_attr, ah->av.ib.dgid); in mlx4_ib_query_ah()
|
D | mad.c | 488 union ib_gid *dgid) in get_gids_from_l3_hdr() argument 501 sgid, dgid); in get_gids_from_l3_hdr() 582 union ib_gid dgid; in mlx4_ib_send_to_slave() local 584 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_send_to_slave() 586 rdma_ah_set_grh(&attr, &dgid, 0, 0, 0, 0); in mlx4_ib_send_to_slave() 698 union ib_gid dgid; in mlx4_ib_demux_mad() local 701 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_demux_mad() 711 err = mlx4_get_slave_from_roce_gid(dev->dev, port, dgid.raw, &slave); in mlx4_ib_demux_mad() 714 err = mlx4_get_slave_from_roce_gid(dev->dev, other_port, dgid.raw, &slave); in mlx4_ib_demux_mad() 718 slave, grh->dgid.raw, port, other_port); in mlx4_ib_demux_mad() [all …]
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 137 rdma_gid2ip((struct sockaddr*)&dgid_addr, &ib_grh->dgid); in set_av_attr() 145 memcpy(&grh.dgid[0], ib_grh->dgid.raw, in set_av_attr() 146 sizeof(ib_grh->dgid.raw)); in set_av_attr() 248 rdma_ah_set_dgid_raw(attr, &grh->dgid[0]); in ocrdma_query_ah()
|
/drivers/infiniband/hw/mthca/ |
D | mthca_av.c | 66 __be32 dgid[4]; member 218 memcpy(av->dgid, grh->dgid.raw, 16); in mthca_create_ah() 221 av->dgid[3] = cpu_to_be32(2); in mthca_create_ah() 286 ah->av->dgid, 16); in mthca_read_ah() 320 rdma_ah_set_dgid_raw(attr, ah->av->dgid); in mthca_ah_query()
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_ah.c | 79 memcpy(ah->av.dgid, grh->dgid.raw, HNS_ROCE_GID_SIZE); in hns_roce_create_ah() 106 rdma_ah_set_dgid_raw(ah_attr, ah->av.dgid); in hns_roce_query_ah()
|
D | hns_roce_hw_v1.c | 215 memcpy(&ud_sq_wqe->dgid[0], &ah->av.dgid[0], GID_LEN); in hns_roce_v1_post_send() 782 union ib_gid dgid; in hns_roce_v1_rsv_lp_qp() local 891 memcpy(&dgid.raw, &subnet_prefix, sizeof(u64)); in hns_roce_v1_rsv_lp_qp() 892 memcpy(&dgid.raw[8], hr_dev->dev_addr[port], 3); in hns_roce_v1_rsv_lp_qp() 893 memcpy(&dgid.raw[13], hr_dev->dev_addr[port] + 3, 3); in hns_roce_v1_rsv_lp_qp() 894 dgid.raw[11] = 0xff; in hns_roce_v1_rsv_lp_qp() 895 dgid.raw[12] = 0xfe; in hns_roce_v1_rsv_lp_qp() 896 dgid.raw[8] ^= 2; in hns_roce_v1_rsv_lp_qp() 897 rdma_ah_set_dgid_raw(&attr.ah_attr, dgid.raw); in hns_roce_v1_rsv_lp_qp() 3007 memcpy(context->dgid, grh->dgid.raw, in hns_roce_v1_m_qp() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | ruc.c | 53 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr() 58 grh->dgid.global.subnet_prefix, in hfi1_ruc_check_hdr() 59 grh->dgid.global.interface_id)) in hfi1_ruc_check_hdr() 90 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr() 95 grh->dgid.global.subnet_prefix, in hfi1_ruc_check_hdr() 96 grh->dgid.global.interface_id)) in hfi1_ruc_check_hdr() 143 hdr->dgid = grh->dgid; in hfi1_make_grh()
|
D | ud.c | 166 if (ib_is_opa_gid(&grd.dgid)) in ud_loopback() 167 grd.dgid.global.interface_id = in ud_loopback() 617 grh->sgid = old_grh->dgid; in return_cnp_16B() 618 grh->dgid = old_grh->sgid; in return_cnp_16B() 675 grh->sgid = old_grh->dgid; in return_cnp() 676 grh->dgid = old_grh->sgid; in return_cnp()
|
/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_misc.c | 257 pvrdma_gid_to_ib(&dst->dgid, &src->dgid); in pvrdma_global_route_to_ib() 267 ib_gid_to_pvrdma(&dst->dgid, &src->dgid); in ib_global_route_to_pvrdma()
|
D | pvrdma_verbs.h | 150 union pvrdma_gid dgid; member 164 union pvrdma_gid dgid; member
|
D | pvrdma_verbs.c | 526 rdma_is_multicast_addr((struct in6_addr *)grh->dgid.raw)) in pvrdma_create_ah() 539 memcpy(ah->av.dgid, grh->dgid.raw, 16); in pvrdma_create_ah()
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_main.c | 567 ret = memcmp(gid, path->pathrec.dgid.raw, in __path_find() 593 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add() 621 ipoib_del_neighs_by_gid(dev, path->pathrec.dgid.raw); in path_free() 640 memset(iter->path.pathrec.dgid.raw, 0, 16); in ipoib_path_iter_init() 664 if (memcmp(iter->path.pathrec.dgid.raw, path->pathrec.dgid.raw, in ipoib_path_iter_next() 697 path->pathrec.dgid.raw); in ipoib_mark_paths_invalid() 760 pathrec->dgid.raw); in path_rec_completion() 763 status, path->pathrec.dgid.raw); in path_rec_completion() 785 if (memcmp(pathrec->dgid.raw, path->pathrec.dgid.raw, in path_rec_completion() 790 dev->name, pathrec->dgid.raw, in path_rec_completion() [all …]
|
D | ipoib_ib.c | 179 union ib_gid *dgid; in ipoib_ib_handle_rx_wc() local 224 dgid = &((struct ib_grh *)skb->data)->dgid; in ipoib_ib_handle_rx_wc() 226 if (!(wc->wc_flags & IB_WC_GRH) || dgid->raw[0] != 0xff) in ipoib_ib_handle_rx_wc() 228 else if (memcmp(dgid, dev->broadcast + 4, sizeof(union ib_gid)) == 0) in ipoib_ib_handle_rx_wc()
|
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_sp.c | 517 memcpy(temp32, ah->dgid.data, sizeof(struct bnxt_qplib_gid)); in bnxt_qplib_create_ah() 518 req.dgid[0] = cpu_to_le32(temp32[0]); in bnxt_qplib_create_ah() 519 req.dgid[1] = cpu_to_le32(temp32[1]); in bnxt_qplib_create_ah() 520 req.dgid[2] = cpu_to_le32(temp32[2]); in bnxt_qplib_create_ah() 521 req.dgid[3] = cpu_to_le32(temp32[3]); in bnxt_qplib_create_ah()
|
D | qplib_fp.c | 1294 memcpy(temp32, qp->ah.dgid.data, sizeof(struct bnxt_qplib_gid)); in bnxt_qplib_modify_qp() 1295 req.dgid[0] = cpu_to_le32(temp32[0]); in bnxt_qplib_modify_qp() 1296 req.dgid[1] = cpu_to_le32(temp32[1]); in bnxt_qplib_modify_qp() 1297 req.dgid[2] = cpu_to_le32(temp32[2]); in bnxt_qplib_modify_qp() 1298 req.dgid[3] = cpu_to_le32(temp32[3]); in bnxt_qplib_modify_qp() 1397 temp32[0] = le32_to_cpu(sb->dgid[0]); in bnxt_qplib_query_qp() 1398 temp32[1] = le32_to_cpu(sb->dgid[1]); in bnxt_qplib_query_qp() 1399 temp32[2] = le32_to_cpu(sb->dgid[2]); in bnxt_qplib_query_qp() 1400 temp32[3] = le32_to_cpu(sb->dgid[3]); in bnxt_qplib_query_qp() 1401 memcpy(qp->ah.dgid.data, temp32, sizeof(qp->ah.dgid.data)); in bnxt_qplib_query_qp()
|
/drivers/infiniband/hw/qedr/ |
D | verbs.c | 1157 memcpy(&qp_params->dgid.bytes[0], in get_gid_info_from_table() 1158 &grh->dgid, in get_gid_info_from_table() 1159 sizeof(qp_params->dgid)); in get_gid_info_from_table() 1167 memcpy(&qp_params->dgid.bytes[0], in get_gid_info_from_table() 1168 &grh->dgid, in get_gid_info_from_table() 1169 sizeof(qp_params->dgid)); in get_gid_info_from_table() 1174 memset(&qp_params->dgid, 0, sizeof(qp_params->dgid)); in get_gid_info_from_table() 1178 qedr_get_ipv4_from_gid(grh->dgid.raw); in get_gid_info_from_table() 1179 qp_params->dgid.ipv4_addr = ipv4_addr; in get_gid_info_from_table() 1190 qp_params->dgid.dwords[i] = ntohl(qp_params->dgid.dwords[i]); in get_gid_info_from_table() [all …]
|
D | qedr.h | 538 if (!memcmp(&grh->dgid, &zero_sgid, sizeof(union ib_gid))) { in qedr_get_dmac() 544 memcpy(&in6, grh->dgid.raw, sizeof(in6)); in qedr_get_dmac()
|
/drivers/infiniband/hw/mlx5/ |
D | ah.c | 62 memcpy(ah->av.rgid, &grh->dgid, 16); in create_ib_ah()
|