/kernel/linux/linux-5.10/ipc/ |
D | sem.c | 281 static void unmerge_queues(struct sem_array *sma) in unmerge_queues() argument 286 if (sma->complex_count) in unmerge_queues() 293 list_for_each_entry_safe(q, tq, &sma->pending_alter, list) { in unmerge_queues() 295 curr = &sma->sems[q->sops[0].sem_num]; in unmerge_queues() 299 INIT_LIST_HEAD(&sma->pending_alter); in unmerge_queues() 311 static void merge_queues(struct sem_array *sma) in merge_queues() argument 314 for (i = 0; i < sma->sem_nsems; i++) { in merge_queues() 315 struct sem *sem = &sma->sems[i]; in merge_queues() 317 list_splice_init(&sem->pending_alter, &sma->pending_alter); in merge_queues() 324 struct sem_array *sma = container_of(p, struct sem_array, sem_perm); in sem_rcu_free() local [all …]
|
/kernel/linux/linux-5.10/security/ |
D | security.c | 1950 int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument 1952 int rc = lsm_ipc_alloc(sma); in security_sem_alloc() 1956 rc = call_int_hook(sem_alloc_security, 0, sma); in security_sem_alloc() 1958 security_sem_free(sma); in security_sem_alloc() 1962 void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument 1964 call_void_hook(sem_free_security, sma); in security_sem_free() 1965 kfree(sma->security); in security_sem_free() 1966 sma->security = NULL; in security_sem_free() 1969 int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument 1971 return call_int_hook(sem_associate, 0, sma, semflg); in security_sem_associate() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | security.h | 441 int security_sem_alloc(struct kern_ipc_perm *sma); 442 void security_sem_free(struct kern_ipc_perm *sma); 443 int security_sem_associate(struct kern_ipc_perm *sma, int semflg); 444 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd); 445 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, 1228 static inline int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument 1233 static inline void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument 1236 static inline int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument 1241 static inline int security_sem_semctl(struct kern_ipc_perm *sma, int cmd) in security_sem_semctl() argument 1246 static inline int security_sem_semop(struct kern_ipc_perm *sma, in security_sem_semop() argument
|
/kernel/linux/patches/linux-5.10/yangfan_patch/ |
D | others.patch | 238 if (nsems > (INT_MAX - sizeof(*sma)) / sizeof(sma->sems[0])) 241 - sma = kvzalloc(struct_size(sma, sems, nsems), GFP_KERNEL_ACCOUNT); 242 + sma = kvzalloc(struct_size(sma, sems, nsems), GFP_KERNEL); 243 if (unlikely(!sma)) 262 ipc_rcu_putref(&sma->sem_perm, sem_rcu_free);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-common.c | 379 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()
|
D | dwc-xlgmac.h | 501 unsigned int sma; /* SMA(MDIO) Interface */ member
|
/kernel/linux/linux-5.10/security/selinux/ |
D | hooks.c | 6179 static int selinux_sem_alloc_security(struct kern_ipc_perm *sma) in selinux_sem_alloc_security() argument 6186 isec = selinux_ipc(sma); in selinux_sem_alloc_security() 6190 ad.u.ipc_id = sma->key; in selinux_sem_alloc_security() 6198 static int selinux_sem_associate(struct kern_ipc_perm *sma, int semflg) in selinux_sem_associate() argument 6204 isec = selinux_ipc(sma); in selinux_sem_associate() 6207 ad.u.ipc_id = sma->key; in selinux_sem_associate() 6215 static int selinux_sem_semctl(struct kern_ipc_perm *sma, int cmd) in selinux_sem_semctl() argument 6255 err = ipc_has_perm(sma, perms); in selinux_sem_semctl() 6259 static int selinux_sem_semop(struct kern_ipc_perm *sma, in selinux_sem_semop() argument 6269 return ipc_has_perm(sma, perms); in selinux_sem_semop()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
D | xgbe.h | 965 unsigned int sma; /* SMA(MDIO) Interface */ member
|
D | xgbe-drv.c | 746 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features() 839 hw_feat->sma ? "yes" : "no"); in xgbe_get_all_hw_features()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | mad.c | 951 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()
|
D | hfi.h | 756 u8 sma; member
|
D | chip.c | 7200 if (was_up && ppd->local_link_down_reason.sma == 0 && in handle_link_down() 7201 ppd->neigh_link_down_reason.sma == 0) { in handle_link_down() 7202 ppd->local_link_down_reason.sma = in handle_link_down() 7204 ppd->neigh_link_down_reason.sma = in handle_link_down()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | t4fw_api.h | 205 __u8 sma[6]; member 237 __u8 sma[6]; member
|