Home
last modified time | relevance | path

Searched refs:sgid (Results 1 – 25 of 30) sorted by relevance

12

/drivers/infiniband/core/
Duverbs_marshall.c140 memcpy(dst->sgid, src->sgid.raw, sizeof(src->sgid)); in __ib_copy_path_rec_to_user()
181 if ((ib_is_opa_gid((union ib_gid *)src->sgid)) || in ib_copy_path_rec_from_user()
184 slid = opa_get_lid_from_gid((union ib_gid *)src->sgid); in ib_copy_path_rec_from_user()
192 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid); in ib_copy_path_rec_from_user()
Daddr.c729 } sgid, dgid; in roce_resolve_route_from_path() local
738 rdma_gid2ip((struct sockaddr *)&sgid, &rec->sgid); 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()
814 int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, in rdma_addr_find_l2_eth_by_grh() argument
827 rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); in rdma_addr_find_l2_eth_by_grh()
Dverbs.c704 u16 vlan_id, const union ib_gid *sgid, in get_sgid_attr_from_eth() argument
710 return rdma_find_gid_by_filter(device, sgid, port_num, find_gid_index, in get_sgid_attr_from_eth()
716 union ib_gid *sgid, union ib_gid *dgid) in ib_get_gids_from_rdma_hdr() argument
722 if (!sgid || !dgid) in ib_get_gids_from_rdma_hdr()
733 (struct in6_addr *)sgid); in ib_get_gids_from_rdma_hdr()
740 *sgid = hdr->ibgrh.sgid; in ib_get_gids_from_rdma_hdr()
801 union ib_gid sgid; in ib_init_ah_attr_from_wc() local
815 &sgid, &dgid); in ib_init_ah_attr_from_wc()
837 &sgid, in ib_init_ah_attr_from_wc()
866 &sgid, in ib_init_ah_attr_from_wc()
Dcma.c773 union ib_gid gid, sgid, *dgid; in cma_resolve_ib_dev() local
806 sgid = gid; in cma_resolve_ib_dev()
815 sgid = gid; in cma_resolve_ib_dev()
830 memcpy(&addr->sib_addr, &sgid, sizeof(sgid)); in cma_resolve_ib_dev()
1261 memcpy(&ib->sib_addr, &path->sgid, 16); in cma_save_ib_info()
1393 memcpy(&req->local_gid, &req_param->primary_path->sgid, in cma_save_req_info()
2138 rdma_addr_set_sgid(&rt->addr.dev_addr, &rt->path_rec[0].sgid); in cma_ib_new_conn_id()
2317 void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid, in rdma_read_gids() argument
2323 if (sgid) in rdma_read_gids()
2324 memset(sgid, 0, sizeof(*sgid)); in rdma_read_gids()
[all …]
Dcm.c525 &path->sgid, in get_cm_port_from_path()
1382 pri_path->sgid; in cm_format_req()
1429 alt_path->sgid; in cm_format_req()
1694 primary_path->sgid = in cm_format_paths_from_req()
1721 alt_path->sgid = *IBA_GET_MEM_PTR( in cm_format_paths_from_req()
1785 (ib_is_opa_gid(&path->sgid))) { in cm_opa_to_ib_sgid()
1786 union ib_gid sgid; in cm_opa_to_ib_sgid() local
1788 if (rdma_query_gid(dev, port_num, 0, &sgid)) { in cm_opa_to_ib_sgid()
1794 path->sgid = sgid; in cm_opa_to_ib_sgid()
2178 &work->path[0].sgid); in cm_req_handler()
[all …]
Dcore_priv.h375 int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid,
Dsa_query.c205 { PATH_REC_FIELD(sgid),
307 { OPA_PATH_REC_FIELD(sgid),
786 sizeof(sa_rec->sgid), &sa_rec->sgid); in ib_nl_set_path_rec_attrs()
1225 gid_attr = rdma_find_gid_by_port(device, &rec->sgid, type, in init_ah_attr_grh_fields()
Ducma.c764 (union ib_gid *) &resp->ib_route[0].sgid); in ucma_copy_ib_route()
790 (union ib_gid *)&resp->ib_route[0].sgid); in ucma_copy_iboe_route()
813 rdma_addr_get_sgid(dev_addr, (union ib_gid *) &resp->ib_route[0].sgid); in ucma_copy_iw_route()
/drivers/infiniband/hw/qib/
Dqib_ruc.c104 if (!gid_ok(&hdr->u.l.grh.sgid, in qib_ruc_check_hdr()
143 if (!gid_ok(&hdr->u.l.grh.sgid, in qib_ruc_check_hdr()
195 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in qib_make_grh()
197 hdr->sgid.global.interface_id = ppd_from_ibp(ibp)->guid; in qib_make_grh()
199 hdr->sgid.global.interface_id = ibp->guids[grh->sgid_index - 1]; in qib_make_grh()
Dqib_mad.h177 u8 sgid[16]; member
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c74 struct rdma_ah_attr *attr, const union ib_gid *sgid, in set_av_attr() argument
135 rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); in set_av_attr()
141 memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); in set_av_attr()
Docrdma_hw.c2529 memcpy(&cmd->params.sgid[0], &sgid_attr->gid.raw[0], in ocrdma_set_av_params()
2530 sizeof(cmd->params.sgid)); in ocrdma_set_av_params()
2544 memcpy(&cmd->params.sgid[0], in ocrdma_set_av_params()
2549 ocrdma_cpu_to_le32(&cmd->params.sgid[0], sizeof(cmd->params.sgid)); in ocrdma_set_av_params()
/drivers/infiniband/hw/hfi1/
Druc.c99 &packet->grh->sgid, in hfi1_ruc_check_hdr()
136 &packet->grh->sgid, in hfi1_ruc_check_hdr()
180 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_grh()
181 hdr->sgid.global.interface_id = in hfi1_make_grh()
Dud.c658 grh->sgid = old_grh->dgid; in return_cnp_16B()
659 grh->dgid = old_grh->sgid; in return_cnp_16B()
716 grh->sgid = old_grh->dgid; in return_cnp()
717 grh->dgid = old_grh->sgid; in return_cnp()
Dhfi.h2635 grh->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_ext_grh()
2637 grh->sgid.global.interface_id = in hfi1_make_ext_grh()
2640 grh->sgid.global.interface_id = OPA_MAKE_ID(slid); in hfi1_make_ext_grh()
/drivers/infiniband/hw/qedr/
Dverbs.c85 int index, union ib_gid *sgid) in qedr_iw_query_gid() argument
89 memset(sgid->raw, 0, sizeof(sgid->raw)); in qedr_iw_query_gid()
90 ether_addr_copy(sgid->raw, dev->ndev->dev_addr); in qedr_iw_query_gid()
93 sgid->global.interface_id, sgid->global.subnet_prefix); in qedr_iw_query_gid()
1151 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1152 sizeof(qp_params->sgid)); in get_gid_info_from_table()
1161 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1162 sizeof(qp_params->sgid)); in get_gid_info_from_table()
1169 memset(&qp_params->sgid, 0, sizeof(qp_params->sgid)); in get_gid_info_from_table()
1172 qp_params->sgid.ipv4_addr = ipv4_addr; in get_gid_info_from_table()
[all …]
Dmain.c1007 union ib_gid *sgid = &dev->sgid_tbl[0]; in qedr_mac_address_change() local
1021 sgid->global.subnet_prefix = cpu_to_be64(0xfe80000000000000LL); in qedr_mac_address_change()
1022 memcpy(&sgid->raw[8], guid, sizeof(guid)); in qedr_mac_address_change()
/drivers/infiniband/ulp/srp/
Dib_srp.h209 union ib_gid sgid; member
Dib_srp.c326 ch->ib_cm.path.sgid = target->sgid; in srp_new_ib_cm_id()
748 ch->ib_cm.path.sgid.raw, ch->ib_cm.path.dgid.raw, in srp_ib_lookup_path()
890 memcpy(ipi, &target->sgid.global.interface_id, 8); in srp_send_req()
896 memcpy(ipi + 8, &target->sgid.global.interface_id, 8); in srp_send_req()
2484 target->sgid.raw, in srp_ib_cm_rej_handler()
2902 return sprintf(buf, "%pI6\n", target->sgid.raw); in show_sgid()
3009 static DEVICE_ATTR(sgid, S_IRUGO, show_sgid, NULL);
3782 ret = rdma_query_gid(ibdev, host->port, 0, &target->sgid); in srp_create_target()
3852 target->sgid.raw, &target->rdma_cm.dst); in srp_create_target()
3860 target->sgid.raw, in srp_create_target()
/drivers/net/ethernet/qlogic/qed/
Dqed_rdma.h122 union qed_gid sgid; member
Dqed_roce.c107 src_gid[3] = cpu_to_le32(qp->sgid.ipv4_addr); in qed_rdma_copy_gids()
111 for (i = 0; i < ARRAY_SIZE(qp->sgid.dwords); i++) { in qed_rdma_copy_gids()
112 src_gid[i] = cpu_to_le32(qp->sgid.dwords[i]); in qed_rdma_copy_gids()
/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c180 union ib_gid *sgid; in ipoib_ib_handle_rx_wc() local
233 sgid = &((struct ib_grh *)skb->data)->sgid; in ipoib_ib_handle_rx_wc()
243 sgid->global.interface_id != priv->local_gid.global.interface_id) in ipoib_ib_handle_rx_wc()
/drivers/infiniband/hw/mlx4/
Dmad.c486 static int get_gids_from_l3_hdr(struct ib_grh *grh, union ib_gid *sgid, in get_gids_from_l3_hdr() argument
500 sgid, dgid); in get_gids_from_l3_hdr()
580 union ib_gid sgid; in mlx4_ib_send_to_slave() local
583 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_send_to_slave()
698 union ib_gid sgid; in mlx4_ib_demux_mad() local
700 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_demux_mad()
Dqp.c2987 union ib_gid sgid; in build_mlx_header() local
3015 ah->av.ib.gid_index, &sgid.raw[0]); in build_mlx_header()
3020 ah->av.ib.gid_index, &sgid, in build_mlx_header()
3025 if (ipv6_addr_v4mapped((struct in6_addr *)&sgid)) in build_mlx_header()
3059 memcpy(sqp->ud_header.grh.source_gid.raw, sgid.raw, 16); in build_mlx_header()
3095 sgid.raw + 12, 4); in build_mlx_header()
3149 memcpy(&in6, sgid.raw, sizeof(in6)); in build_mlx_header()
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.h198 union pvrdma_gid sgid; member

12