Home
last modified time | relevance | path

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

123

/linux-6.12.1/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.c722 } sgid, dgid; in roce_resolve_route_from_path() local
731 rdma_gid2ip((struct sockaddr *)&sgid, &rec->sgid); in roce_resolve_route_from_path()
734 if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) in roce_resolve_route_from_path()
743 ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, in roce_resolve_route_from_path()
807 int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid, in rdma_addr_find_l2_eth_by_grh() argument
820 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.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 …]
/linux-6.12.1/fs/smb/server/mgmt/
Duser_config.c53 user->sgid = NULL; in ksmbd_alloc_user()
65 user->sgid = kmemdup(resp_ext->____payload, in ksmbd_alloc_user()
68 if (!user->sgid) in ksmbd_alloc_user()
87 kfree(user->sgid); in ksmbd_free_user()
Duser_config.h22 gid_t *sgid; member
/linux-6.12.1/kernel/
Duid16.c81 SYSCALL_DEFINE3(setresgid16, old_gid_t, rgid, old_gid_t, egid, old_gid_t, sgid) in SYSCALL_DEFINE3() argument
84 low2highgid(sgid)); in SYSCALL_DEFINE3()
91 old_gid_t rgid, egid, sgid; in SYSCALL_DEFINE3() local
95 sgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->sgid)); in SYSCALL_DEFINE3()
99 retval = put_user(sgid, sgidp); in SYSCALL_DEFINE3()
Dsys.c414 gid_eq(old->sgid, kegid) || in __sys_setregid()
423 new->sgid = new->egid; in __sys_setregid()
466 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid()
467 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid()
778 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid) in __sys_setresgid() argument
789 ksgid = make_kgid(ns, sgid); in __sys_setresgid()
795 if ((sgid != (gid_t) -1) && !gid_valid(ksgid)) in __sys_setresgid()
804 (sgid == (gid_t) -1 || gid_eq(ksgid, old->sgid))) in __sys_setresgid()
808 !gid_eq(krgid, old->egid) && !gid_eq(krgid, old->sgid); in __sys_setresgid()
810 !gid_eq(kegid, old->egid) && !gid_eq(kegid, old->sgid); in __sys_setresgid()
[all …]
Duid16.h10 long __sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid);
Dcred.c49 .sgid = GLOBAL_ROOT_GID,
276 new->sgid = new->fsgid = new->egid; in prepare_exec_creds()
452 !gid_eq(new->sgid, old->sgid) || in commit_creds()
/linux-6.12.1/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()
/linux-6.12.1/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()
/linux-6.12.1/arch/powerpc/platforms/powernv/
Dopal-sensor-groups.c183 u32 sgid, len, nr_attrs, chipid; in opal_sensor_groups_init() local
207 if (of_property_read_u32(node, "sensor-group-id", &sgid)) { in opal_sensor_groups_init()
218 if (add_attr_group(ops, len, &sgs[i], sgid)) { in opal_sensor_groups_init()
/linux-6.12.1/security/safesetid/
Dlsm.c159 gid_eq(new_id.gid, old->sgid)) in id_permitted_for_cred()
179 __kgid_val(old->sgid), __kgid_val(new_id.gid)); in id_permitted_for_cred()
226 id_permitted_for_cred(old, (kid_t){.gid = new->sgid}, GID) && in safesetid_task_fix_setgid()
/linux-6.12.1/include/rdma/
Dib_sa.h165 union ib_gid sgid; member
230 ib->sgid.global.interface_id in path_conv_opa_to_ib()
250 if ((ib_is_opa_gid(&ib->sgid)) || in path_conv_ib_to_opa()
252 slid = htonl(opa_get_lid_from_gid(&ib->sgid)); in path_conv_ib_to_opa()
Drdma_cm.h387 void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid,
/linux-6.12.1/include/uapi/rdma/
Dib_user_sa.h57 __u8 sgid[16]; member
/linux-6.12.1/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()
/linux-6.12.1/include/linux/
Dcred.h116 kgid_t sgid; /* saved GID of the task */ member
377 #define current_sgid() (current_cred_xxx(sgid))
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/
Dsparx5_tc_flower.c812 sf->sgid = psfp_sgid; in sparx5_tc_flower_psfp_setup()
1325 u32 isdx, sfid, sgid, fmid; in sparx5_tc_free_psfp_resources() local
1341 sgid = sparx5_psfp_sf_get_sg(sparx5, sfid); in sparx5_tc_free_psfp_resources()
1347 if (sgid && sparx5_psfp_sg_del(sparx5, sgid) < 0) in sparx5_tc_free_psfp_resources()
1349 __LINE__, sgid); in sparx5_tc_free_psfp_resources()
/linux-6.12.1/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()
1147 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1148 sizeof(qp_params->sgid)); in get_gid_info_from_table()
1157 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1158 sizeof(qp_params->sgid)); in get_gid_info_from_table()
1165 memset(&qp_params->sgid, 0, sizeof(qp_params->sgid)); in get_gid_info_from_table()
1168 qp_params->sgid.ipv4_addr = ipv4_addr; in get_gid_info_from_table()
[all …]
/linux-6.12.1/drivers/infiniband/ulp/srp/
Dib_srp.h217 union ib_gid sgid; member
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_rdma.h122 union qed_gid sgid; member
/linux-6.12.1/drivers/net/dsa/ocelot/
Dfelix_vsc9959.c1722 u32 sgid; member
1917 if (sfi->sgid > VSC9959_PSFP_GATE_ID_MAX || in vsc9959_psfp_sfi_set()
1923 ANA_TABLES_SFIDTIDX_SGID(sfi->sgid) | in vsc9959_psfp_sfi_set()
2007 tmp->sgid == sfi->sgid && in vsc9959_psfp_sfi_table_add()
2278 sfi.sgid = sgi->index; in vsc9959_psfp_filter_add()
2379 vsc9959_psfp_sgi_table_del(ocelot, sfi.sgid); in vsc9959_psfp_filter_add()
2411 vsc9959_psfp_sgi_table_del(ocelot, sfi->sgid); in vsc9959_psfp_filter_del()

123