Home
last modified time | relevance | path

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

/Linux-v4.19/ipc/
Dsem.c258 static void unmerge_queues(struct sem_array *sma) in unmerge_queues() argument
263 if (sma->complex_count) in unmerge_queues()
270 list_for_each_entry_safe(q, tq, &sma->pending_alter, list) { in unmerge_queues()
272 curr = &sma->sems[q->sops[0].sem_num]; in unmerge_queues()
276 INIT_LIST_HEAD(&sma->pending_alter); in unmerge_queues()
288 static void merge_queues(struct sem_array *sma) in merge_queues() argument
291 for (i = 0; i < sma->sem_nsems; i++) { in merge_queues()
292 struct sem *sem = &sma->sems[i]; in merge_queues()
294 list_splice_init(&sem->pending_alter, &sma->pending_alter); in merge_queues()
301 struct sem_array *sma = container_of(p, struct sem_array, sem_perm); in sem_rcu_free() local
[all …]
/Linux-v4.19/include/linux/
Dsecurity.h386 int security_sem_alloc(struct kern_ipc_perm *sma);
387 void security_sem_free(struct kern_ipc_perm *sma);
388 int security_sem_associate(struct kern_ipc_perm *sma, int semflg);
389 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd);
390 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops,
1117 static inline int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument
1122 static inline void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument
1125 static inline int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument
1130 static inline int security_sem_semctl(struct kern_ipc_perm *sma, int cmd) in security_sem_semctl() argument
1135 static inline int security_sem_semop(struct kern_ipc_perm *sma, in security_sem_semop() argument
Dlsm_hooks.h1638 int (*sem_alloc_security)(struct kern_ipc_perm *sma);
1639 void (*sem_free_security)(struct kern_ipc_perm *sma);
1640 int (*sem_associate)(struct kern_ipc_perm *sma, int semflg);
1641 int (*sem_semctl)(struct kern_ipc_perm *sma, int cmd);
1642 int (*sem_semop)(struct kern_ipc_perm *sma, struct sembuf *sops,
/Linux-v4.19/security/
Dsecurity.c1257 int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument
1259 return call_int_hook(sem_alloc_security, 0, sma); in security_sem_alloc()
1262 void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument
1264 call_void_hook(sem_free_security, sma); in security_sem_free()
1267 int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument
1269 return call_int_hook(sem_associate, 0, sma, semflg); in security_sem_associate()
1272 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd) in security_sem_semctl() argument
1274 return call_int_hook(sem_semctl, 0, sma, cmd); in security_sem_semctl()
1277 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, in security_sem_semop() argument
1280 return call_int_hook(sem_semop, 0, sma, sops, nsops, alter); in security_sem_semop()
/Linux-v4.19/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-v4.19/security/selinux/
Dhooks.c6240 static int selinux_sem_alloc_security(struct kern_ipc_perm *sma) in selinux_sem_alloc_security() argument
6247 rc = ipc_alloc_security(sma, SECCLASS_SEM); in selinux_sem_alloc_security()
6251 isec = sma->security; in selinux_sem_alloc_security()
6254 ad.u.ipc_id = sma->key; in selinux_sem_alloc_security()
6260 ipc_free_security(sma); in selinux_sem_alloc_security()
6266 static void selinux_sem_free_security(struct kern_ipc_perm *sma) in selinux_sem_free_security() argument
6268 ipc_free_security(sma); in selinux_sem_free_security()
6271 static int selinux_sem_associate(struct kern_ipc_perm *sma, int semflg) in selinux_sem_associate() argument
6277 isec = sma->security; in selinux_sem_associate()
6280 ad.u.ipc_id = sma->key; in selinux_sem_associate()
[all …]
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/
Dxgbe.h966 unsigned int sma; /* SMA(MDIO) Interface */ member
Dxgbe-drv.c745 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features()
838 hw_feat->sma ? "yes" : "no"); in xgbe_get_all_hw_features()
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dmad.c951 pi->link_down_reason = ppd->local_link_down_reason.sma; in __subn_get_opa_portinfo()
952 pi->neigh_link_down_reason = ppd->neigh_link_down_reason.sma; in __subn_get_opa_portinfo()
1472 ppd->local_link_down_reason.sma = 0; in __subn_set_opa_portinfo()
1477 ppd->neigh_link_down_reason.sma = 0; in __subn_set_opa_portinfo()
Dhfi.h683 u8 sma; member
Dchip.c7153 if (was_up && ppd->local_link_down_reason.sma == 0 && in handle_link_down()
7154 ppd->neigh_link_down_reason.sma == 0) { in handle_link_down()
7155 ppd->local_link_down_reason.sma = in handle_link_down()
7157 ppd->neigh_link_down_reason.sma = in handle_link_down()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dt4fw_api.h204 __u8 sma[6]; member
236 __u8 sma[6]; member