Home
last modified time | relevance | path

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

1234

/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_os.c837 qlnxr_build_sgid_mac(union ib_gid *sgid, unsigned char *mac_addr, in qlnxr_build_sgid_mac() argument
840 sgid->global.subnet_prefix = OSAL_CPU_TO_BE64(0xfe80000000000000LL); in qlnxr_build_sgid_mac()
841 sgid->raw[8] = mac_addr[0] ^ 2; in qlnxr_build_sgid_mac()
842 sgid->raw[9] = mac_addr[1]; in qlnxr_build_sgid_mac()
843 sgid->raw[10] = mac_addr[2]; in qlnxr_build_sgid_mac()
845 sgid->raw[11] = vlan_id >> 8; in qlnxr_build_sgid_mac()
846 sgid->raw[12] = vlan_id & 0xff; in qlnxr_build_sgid_mac()
848 sgid->raw[11] = 0xff; in qlnxr_build_sgid_mac()
849 sgid->raw[12] = 0xfe; in qlnxr_build_sgid_mac()
851 sgid->raw[13] = mac_addr[3]; in qlnxr_build_sgid_mac()
[all …]
H A Dqlnxr_cm.c490 union ib_gid sgid; in qlnxr_gsi_build_header() local
509 sgid = dev->sgid_tbl[grh->sgid_index]; in qlnxr_gsi_build_header()
511 sgid = dev->sgid_tbl[0]; in qlnxr_gsi_build_header()
553 memcpy(&udh->grh.source_gid.raw, &sgid.raw, in qlnxr_gsi_build_header()
577 ipv4_addr = qedr_get_ipv4_from_gid(sgid.raw); in qlnxr_gsi_build_header()
/freebsd/contrib/ofed/libibverbs/
H A Dmarshall.c96 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid); in ibv_copy_path_rec_from_kern()
121 memcpy(dst->sgid, src->sgid.raw, sizeof src->sgid); in ibv_copy_path_rec_to_kern()
H A Dverbs.c730 union ibv_gid sgid; in ibv_find_gid_index() local
734 ret = ibv_query_gid(context, port_num, i, &sgid); in ibv_find_gid_index()
740 } while (!ret && (memcmp(&sgid, gid, sizeof(*gid)) || in ibv_find_gid_index()
818 union ibv_gid sgid; in set_ah_attr_by_ipv4() local
827 map_ipv4_addr_to_ipv6(ip4h->ip_dst.s_addr, (struct in6_addr *)&sgid); in set_ah_attr_by_ipv4()
828 ret = ibv_find_gid_index(context, port_num, &sgid, in set_ah_attr_by_ipv4()
857 ah_attr->grh.dgid = grh->sgid; in set_ah_attr_by_ipv6()
983 union ibv_gid sgid; in ibv_resolve_eth_l2_from_gid() local
992 attr->grh.sgid_index, &sgid); in ibv_resolve_eth_l2_from_gid()
1005 src_family = ipv6_addr_v4mapped((struct in6_addr *)sgid.raw) ? in ibv_resolve_eth_l2_from_gid()
[all …]
H A Dsa.h44 union ibv_gid sgid; member
106 union ibv_gid sgid; member
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_marshall.c100 memcpy(dst->sgid, src->sgid.raw, sizeof src->sgid); in ib_copy_path_rec_to_user()
126 memcpy(dst->sgid.raw, src->sgid, sizeof dst->sgid); in ib_copy_path_rec_from_user()
H A Dib_verbs.c528 u16 vlan_id, const union ib_gid *sgid, in get_sgid_index_from_eth() argument
535 return ib_find_gid_by_filter(device, sgid, port_num, find_gid_index, in get_sgid_index_from_eth()
541 union ib_gid *sgid, union ib_gid *dgid) in get_gids_from_rdma_hdr() argument
547 if (!sgid || !dgid) in get_gids_from_rdma_hdr()
558 (struct in6_addr *)sgid); in get_gids_from_rdma_hdr()
565 *sgid = hdr->ibgrh.sgid; in get_gids_from_rdma_hdr()
583 union ib_gid sgid; in ib_init_ah_from_wc() local
594 &sgid, &dgid); in ib_init_ah_from_wc()
618 ret = rdma_addr_find_l2_eth_by_grh(&dgid, &sgid, ah_attr->dmac, in ib_init_ah_from_wc()
633 ah_attr->grh.dgid = sgid; in ib_init_ah_from_wc()
[all …]
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c77 gid_t sgid; in sandbox() local
201 PJDLOG_VERIFY(getresgid(&rgid, &egid, &sgid) == 0); in sandbox()
202 PJDLOG_VERIFY(sgid == pw->pw_gid); in sandbox()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-setres_id.c29 setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid() argument
33 if (rgid != sgid) { in setresgid()
/freebsd/tools/regression/security/access/
H A Dtestaccess.c123 gid_t egid, rgid, sgid; in reportprivilege() local
132 error = getresgid(&rgid, &egid, &sgid); in reportprivilege()
141 printf("rgid: %d, egid: %d, sgid: %d\n", rgid, egid, sgid); in reportprivilege()
/freebsd/sys/security/mac/
H A Dmac_cred.c327 gid_t sgid) in mac_cred_check_setresgid() argument
331 MAC_POLICY_CHECK_NOSLEEP(cred_check_setresgid, cred, rgid, egid, sgid); in mac_cred_check_setresgid()
333 sgid); in mac_cred_check_setresgid()
/freebsd/contrib/mtree/
H A Dcreate.c338 gid_t sgid; in statd() local
376 sgid = p->fts_statp->st_gid; in statd()
377 if (sgid < MTREE_MAXGID && ++g[sgid] > maxgid) { in statd()
378 savegid = sgid; in statd()
379 maxgid = g[sgid]; in statd()
/freebsd/sbin/hastd/
H A Dsubr.c158 gid_t rgid, egid, sgid; in drop_privs() local
285 PJDLOG_VERIFY(getresgid(&rgid, &egid, &sgid) == 0); in drop_privs()
288 PJDLOG_VERIFY(sgid == pw->pw_gid); in drop_privs()
/freebsd/sys/kern/
H A Dkern_prot.c1162 gid_t sgid; member
1171 gid_t egid, rgid, sgid; in sys_setresgid() local
1176 sgid = uap->sgid; in sys_setresgid()
1179 AUDIT_ARG_SGID(sgid); in sys_setresgid()
1185 error = mac_cred_check_setresgid(oldcred, rgid, egid, sgid); in sys_setresgid()
1196 (sgid != (gid_t)-1 && sgid != oldcred->cr_rgid && in sys_setresgid()
1197 sgid != oldcred->cr_svgid && in sys_setresgid()
1198 sgid != oldcred->cr_groups[0])) && in sys_setresgid()
1210 if (sgid != (gid_t)-1 && oldcred->cr_svgid != sgid) { in sys_setresgid()
1211 change_svgid(newcred, sgid); in sys_setresgid()
[all …]
/freebsd/sys/security/audit/
H A Daudit.h99 void audit_arg_sgid(gid_t sgid);
292 #define AUDIT_ARG_SGID(sgid) do { \ argument
294 audit_arg_sgid((sgid)); \
448 #define AUDIT_ARG_SGID(sgid) argument
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_sa_path_record.c904 p_pr->sgid = *p_sgid; in pr_rcv_build_pr()
908 p_pr->sgid.unicast.prefix = osm_physp_get_subnet_prefix(p_src_physp); in pr_rcv_build_pr()
909 p_pr->sgid.unicast.interface_id = p_src_alias_guid->alias_guid; in pr_rcv_build_pr()
1304 if (!ib_gid_is_link_local(&p_pr->sgid)) { in osm_pr_get_end_points()
1305 if (ib_gid_get_subnet_prefix(&p_pr->sgid) != in osm_pr_get_end_points()
1315 cl_ntoh64(p_pr->sgid.unicast.prefix)); in osm_pr_get_end_points()
1322 p_pr->sgid.unicast.interface_id); in osm_pr_get_end_points()
1331 cl_ntoh64(p_pr->sgid.unicast.interface_id)); in osm_pr_get_end_points()
1336 *pp_sgid = &p_pr->sgid; in osm_pr_get_end_points()
1553 p_pr->sgid.unicast.interface_id)) { in pr_match_mgrp_attributes()
[all …]
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.h165 union ib_gid sgid; member
253 union ib_gid sgid; member
362 union ib_gid *sgid, struct ib_gid_attr **sgid_attr,
366 union ib_gid *sgid);
H A Dib_verbs.c890 union ib_gid *sgid, struct ib_gid_attr **sgid_attr, in bnxt_re_get_cached_gid() argument
895 ret = ib_get_cached_gid(dev, port_num, index, sgid, *sgid_attr); in bnxt_re_get_cached_gid()
901 union ib_gid *sgid) in bnxt_re_gid_to_network_type() argument
903 return ib_gid_to_network_type(sgid_attr->gid_type, sgid); in bnxt_re_gid_to_network_type()
916 gid = &ah_info->sgid; in bnxt_re_get_ah_info()
1738 union ib_gid sgid; in bnxt_re_create_shadow_qp_ah() local
1750 rc = bnxt_re_query_gid(&rdev->ibdev, 1, 0, &sgid); in bnxt_re_create_shadow_qp_ah()
1755 memcpy(ah->qplib_ah.dgid.data, &sgid.raw, in bnxt_re_create_shadow_qp_ah()
2483 memcpy(data + buf_len, qp->qp_info_entry.sgid.raw + ip_off, addr_len); in get_source_port()
2504 qp->qp_info_entry.s_ip.ipv4_addr = ipv4_from_gid(qp->qp_info_entry.sgid.raw); in bnxt_re_update_qp_info()
[all …]
/freebsd/sys/ofed/include/uapi/rdma/
H A Dib_user_sa.h62 __u8 sgid[16]; member
/freebsd/sys/compat/linux/
H A Dlinux_uid16.c292 bsd.sgid = CAST_NOCHG(args->sgid); in linux_setresgid16()
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h82 #define __sanitizer_syscall_pre_getresgid(rgid, egid, sgid) \ argument
84 (long)(sgid))
85 #define __sanitizer_syscall_post_getresgid(res, rgid, egid, sgid) \ argument
87 (long)(sgid))
126 #define __sanitizer_syscall_pre_setresgid(rgid, egid, sgid) \ argument
128 (long)(sgid))
129 #define __sanitizer_syscall_post_setresgid(res, rgid, egid, sgid) \ argument
131 (long)(sgid))
882 #define __sanitizer_syscall_pre_setresgid16(rgid, egid, sgid) \ argument
883 __sanitizer_syscall_pre_impl_setresgid16((long)rgid, (long)egid, (long)sgid)
[all …]
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_ah.c83 union ib_gid sgid; in create_iboe_ah() local
95 ah_attr->grh.sgid_index, &sgid, &gid_attr); in create_iboe_ah()
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibqueryerrors.c329 static int path_record_query(ib_gid_t sgid,uint64_t dguid) in path_record_query() argument
342 CHECK_AND_SET_GID(sgid, pr.sgid, PR, SGID); in path_record_query()
344 mad_encode_field(sgid.raw, IB_GID_GUID_F, &dguid); in path_record_query()
345 CHECK_AND_SET_GID(sgid, pr.dgid, PR, DGID); in path_record_query()
/freebsd/sys/dev/irdma/
H A Dirdma_kcompat.c521 union ib_gid sgid; in irdma_create_ah() local
551 attr->grh.sgid_index, &sgid, &sgid_attr); in irdma_create_ah()
560 rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid); in irdma_create_ah()
563 ah->av.net_type = ib_gid_to_network_type(sgid_attr.gid_type, &sgid); in irdma_create_ah()
1292 union ib_gid sgid; in kc_irdma_set_roce_cm_info() local
1297 attr->ah_attr.grh.sgid_index, &sgid, in kc_irdma_set_roce_cm_info()
1307 av->net_type = ib_gid_to_network_type(sgid_attr.gid_type, &sgid); in kc_irdma_set_roce_cm_info()
1308 rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid); in kc_irdma_set_roce_cm_info()
/freebsd/contrib/ofed/librdmacm/
H A Dacm.c193 memcpy(&src->sib_addr, &path->sgid, 16); in ucma_ib_set_addr()
415 memcpy(&data->info.path.sgid, in ucma_ib_resolve()

1234