Home
last modified time | relevance | path

Searched refs:sma (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.15/ipc/
Dsem.c283 static void unmerge_queues(struct sem_array *sma) in unmerge_queues() argument
288 if (sma->complex_count) in unmerge_queues()
295 list_for_each_entry_safe(q, tq, &sma->pending_alter, list) { in unmerge_queues()
297 curr = &sma->sems[q->sops[0].sem_num]; in unmerge_queues()
301 INIT_LIST_HEAD(&sma->pending_alter); in unmerge_queues()
313 static void merge_queues(struct sem_array *sma) in merge_queues() argument
316 for (i = 0; i < sma->sem_nsems; i++) { in merge_queues()
317 struct sem *sem = &sma->sems[i]; in merge_queues()
319 list_splice_init(&sem->pending_alter, &sma->pending_alter); in merge_queues()
326 struct sem_array *sma = container_of(p, struct sem_array, sem_perm); in sem_rcu_free() local
[all …]
/Linux-v5.15/include/linux/
Dsecurity.h454 int security_sem_alloc(struct kern_ipc_perm *sma);
455 void security_sem_free(struct kern_ipc_perm *sma);
456 int security_sem_associate(struct kern_ipc_perm *sma, int semflg);
457 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd);
458 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops,
1264 static inline int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument
1269 static inline void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument
1272 static inline int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument
1277 static inline int security_sem_semctl(struct kern_ipc_perm *sma, int cmd) in security_sem_semctl() argument
1282 static inline int security_sem_semop(struct kern_ipc_perm *sma, in security_sem_semop() argument
/Linux-v5.15/security/
Dsecurity.c2000 int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument
2002 int rc = lsm_ipc_alloc(sma); in security_sem_alloc()
2006 rc = call_int_hook(sem_alloc_security, 0, sma); in security_sem_alloc()
2008 security_sem_free(sma); in security_sem_alloc()
2012 void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument
2014 call_void_hook(sem_free_security, sma); in security_sem_free()
2015 kfree(sma->security); in security_sem_free()
2016 sma->security = NULL; in security_sem_free()
2019 int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument
2021 return call_int_hook(sem_associate, 0, sma, semflg); in security_sem_associate()
[all …]
/Linux-v5.15/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-common.c379 hw_feat->sma = XLGMAC_GET_REG_BITS(mac_hfr0, in xlgmac_get_all_hw_features()
527 pdata->hw_feat.sma ? "YES" : "NO"); in xlgmac_print_all_hw_features()
Ddwc-xlgmac.h501 unsigned int sma; /* SMA(MDIO) Interface */ member
/Linux-v5.15/security/selinux/
Dhooks.c6330 static int selinux_sem_alloc_security(struct kern_ipc_perm *sma) in selinux_sem_alloc_security() argument
6337 isec = selinux_ipc(sma); in selinux_sem_alloc_security()
6341 ad.u.ipc_id = sma->key; in selinux_sem_alloc_security()
6349 static int selinux_sem_associate(struct kern_ipc_perm *sma, int semflg) in selinux_sem_associate() argument
6355 isec = selinux_ipc(sma); in selinux_sem_associate()
6358 ad.u.ipc_id = sma->key; in selinux_sem_associate()
6366 static int selinux_sem_semctl(struct kern_ipc_perm *sma, int cmd) in selinux_sem_semctl() argument
6406 err = ipc_has_perm(sma, perms); in selinux_sem_semctl()
6410 static int selinux_sem_semop(struct kern_ipc_perm *sma, in selinux_sem_semop() argument
6420 return ipc_has_perm(sma, perms); in selinux_sem_semop()
/Linux-v5.15/drivers/net/ethernet/amd/xgbe/
Dxgbe.h965 unsigned int sma; /* SMA(MDIO) Interface */ member
Dxgbe-drv.c744 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features()
837 hw_feat->sma ? "yes" : "no"); in xgbe_get_all_hw_features()
/Linux-v5.15/drivers/infiniband/hw/hfi1/
Dmad.c909 pi->link_down_reason = ppd->local_link_down_reason.sma; in __subn_get_opa_portinfo()
910 pi->neigh_link_down_reason = ppd->neigh_link_down_reason.sma; in __subn_get_opa_portinfo()
1430 ppd->local_link_down_reason.sma = 0; in __subn_set_opa_portinfo()
1435 ppd->neigh_link_down_reason.sma = 0; in __subn_set_opa_portinfo()
Dhfi.h709 u8 sma; member
Dchip.c7158 if (was_up && ppd->local_link_down_reason.sma == 0 && in handle_link_down()
7159 ppd->neigh_link_down_reason.sma == 0) { in handle_link_down()
7160 ppd->local_link_down_reason.sma = in handle_link_down()
7162 ppd->neigh_link_down_reason.sma = in handle_link_down()
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/
Dt4fw_api.h205 __u8 sma[6]; member
237 __u8 sma[6]; member