Home
last modified time | relevance | path

Searched refs:sgid (Results 1 – 25 of 34) 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.c728 } sgid, dgid; in roce_resolve_route_from_path() local
737 rdma_gid2ip((struct sockaddr *)&sgid, &rec->sgid); in roce_resolve_route_from_path()
740 if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) in roce_resolve_route_from_path()
749 ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, in roce_resolve_route_from_path()
813 int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, in rdma_addr_find_l2_eth_by_grh() argument
826 rdma_gid2ip((struct sockaddr *)&sgid_addr, sgid); in rdma_addr_find_l2_eth_by_grh()
Dverbs.c701 u16 vlan_id, const union ib_gid *sgid, in get_sgid_attr_from_eth() argument
707 return rdma_find_gid_by_filter(device, sgid, port_num, find_gid_index, in get_sgid_attr_from_eth()
713 union ib_gid *sgid, union ib_gid *dgid) in ib_get_gids_from_rdma_hdr() argument
719 if (!sgid || !dgid) in ib_get_gids_from_rdma_hdr()
730 (struct in6_addr *)sgid); in ib_get_gids_from_rdma_hdr()
737 *sgid = hdr->ibgrh.sgid; in ib_get_gids_from_rdma_hdr()
798 union ib_gid sgid; in ib_init_ah_attr_from_wc() local
812 &sgid, &dgid); in ib_init_ah_attr_from_wc()
834 &sgid, in ib_init_ah_attr_from_wc()
863 &sgid, in ib_init_ah_attr_from_wc()
Dcma.c915 union ib_gid gid, sgid, *dgid; in cma_resolve_ib_dev() local
948 sgid = gid; in cma_resolve_ib_dev()
957 sgid = gid; in cma_resolve_ib_dev()
972 memcpy(&addr->sib_addr, &sgid, sizeof(sgid)); in cma_resolve_ib_dev()
1410 memcpy(&ib->sib_addr, &path->sgid, 16); in cma_save_ib_info()
1542 memcpy(&req->local_gid, &req_param->primary_path->sgid, in cma_save_req_info()
2291 rdma_addr_set_sgid(&rt->addr.dev_addr, &rt->path_rec[0].sgid); in cma_ib_new_conn_id()
2469 void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid, in rdma_read_gids() argument
2475 if (sgid) in rdma_read_gids()
2476 memset(sgid, 0, sizeof(*sgid)); in rdma_read_gids()
[all …]
Dcm.c495 &path->sgid, in get_cm_port_from_path()
1368 pri_path->sgid; in cm_format_req()
1422 alt_path->sgid; in cm_format_req()
1699 primary_path->sgid = in cm_format_paths_from_req()
1726 alt_path->sgid = *IBA_GET_MEM_PTR( in cm_format_paths_from_req()
1790 (ib_is_opa_gid(&path->sgid))) { in cm_opa_to_ib_sgid()
1791 union ib_gid sgid; in cm_opa_to_ib_sgid() local
1793 if (rdma_query_gid(dev, port_num, 0, &sgid)) { in cm_opa_to_ib_sgid()
1799 path->sgid = sgid; in cm_opa_to_ib_sgid()
2180 &work->path[0].sgid); in cm_req_handler()
[all …]
Dcore_priv.h332 int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid,
Dsa_query.c201 { PATH_REC_FIELD(sgid),
303 { OPA_PATH_REC_FIELD(sgid),
736 sizeof(sa_rec->sgid), &sa_rec->sgid); in ib_nl_set_path_rec_attrs()
1200 gid_attr = rdma_find_gid_by_port(device, &rec->sgid, type, in init_ah_attr_grh_fields()
/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()
/drivers/infiniband/hw/hfi1/
Druc.c57 &packet->grh->sgid, in hfi1_ruc_check_hdr()
94 &packet->grh->sgid, in hfi1_ruc_check_hdr()
138 hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_grh()
139 hdr->sgid.global.interface_id = in hfi1_make_grh()
Dud.c617 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()
Dhfi.h2582 grh->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; in hfi1_make_ext_grh()
2584 grh->sgid.global.interface_id = in hfi1_make_ext_grh()
2587 grh->sgid.global.interface_id = OPA_MAKE_ID(slid); in hfi1_make_ext_grh()
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_tc_flower.c808 sf->sgid = psfp_sgid; in sparx5_tc_flower_psfp_setup()
1253 u32 isdx, sfid, sgid, fmid; in sparx5_tc_free_psfp_resources() local
1269 sgid = sparx5_psfp_sf_get_sg(sparx5, sfid); in sparx5_tc_free_psfp_resources()
1275 if (sgid && sparx5_psfp_sg_del(sparx5, sgid) < 0) in sparx5_tc_free_psfp_resources()
1277 __LINE__, sgid); in sparx5_tc_free_psfp_resources()
Dsparx5_psfp.c121 spx5_rmw(ANA_AC_TSN_SF_CFG_TSN_SGID_SET(sf->sgid) | in sparx5_psfp_sf_set()
/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()
1146 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1147 sizeof(qp_params->sgid)); in get_gid_info_from_table()
1156 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1157 sizeof(qp_params->sgid)); in get_gid_info_from_table()
1164 memset(&qp_params->sgid, 0, sizeof(qp_params->sgid)); in get_gid_info_from_table()
1167 qp_params->sgid.ipv4_addr = ipv4_addr; in get_gid_info_from_table()
[all …]
Dmain.c977 union ib_gid *sgid = &dev->sgid_tbl[0]; in qedr_mac_address_change() local
991 sgid->global.subnet_prefix = cpu_to_be64(0xfe80000000000000LL); in qedr_mac_address_change()
992 memcpy(&sgid->raw[8], guid, sizeof(guid)); in qedr_mac_address_change()
/drivers/net/dsa/ocelot/
Dfelix_vsc9959.c1719 u32 sgid; member
1911 if (sfi->sgid > VSC9959_PSFP_GATE_ID_MAX || in vsc9959_psfp_sfi_set()
1917 ANA_TABLES_SFIDTIDX_SGID(sfi->sgid) | in vsc9959_psfp_sfi_set()
2001 tmp->sgid == sfi->sgid && in vsc9959_psfp_sfi_table_add()
2272 sfi.sgid = sgi->index; in vsc9959_psfp_filter_add()
2373 vsc9959_psfp_sgi_table_del(ocelot, sfi.sgid); in vsc9959_psfp_filter_add()
2405 vsc9959_psfp_sgi_table_del(ocelot, sfi->sgid); in vsc9959_psfp_filter_del()
/drivers/infiniband/ulp/srp/
Dib_srp.h217 union ib_gid sgid; member
Dib_srp.c321 ch->ib_cm.path.sgid = target->sgid; in srp_new_ib_cm_id()
743 ch->ib_cm.path.sgid.raw, ch->ib_cm.path.dgid.raw, in srp_ib_lookup_path()
885 memcpy(ipi, &target->sgid.global.interface_id, 8); in srp_send_req()
891 memcpy(ipi + 8, &target->sgid.global.interface_id, 8); in srp_send_req()
2486 target->sgid.raw, in srp_ib_cm_rej_handler()
2913 return sysfs_emit(buf, "%pI6\n", target->sgid.raw); in sgid_show()
2916 static DEVICE_ATTR_RO(sgid);
3810 ret = rdma_query_gid(ibdev, host->port, 0, &target->sgid); in add_target_store()
3880 target->sgid.raw, &target->rdma_cm.dst); in add_target_store()
3888 target->sgid.raw, in add_target_store()
/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.c487 static int get_gids_from_l3_hdr(struct ib_grh *grh, union ib_gid *sgid, in get_gids_from_l3_hdr() argument
501 sgid, dgid); in get_gids_from_l3_hdr()
581 union ib_gid sgid; in mlx4_ib_send_to_slave() local
584 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_send_to_slave()
699 union ib_gid sgid; in mlx4_ib_demux_mad() local
701 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_demux_mad()
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.h163 union pvrdma_gid sgid; member

12