Home
last modified time | relevance | path

Searched refs:sma (Results 1 - 25 of 26) sorted by relevance

12

/kernel/linux/linux-6.6/ipc/
H A Dsem.c278 * @sma: semaphore array
283 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()
306 * @sma: semaphore array
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 in merge_queues()
326 struct sem_array *sma = container_of(p, struct sem_array, sem_perm); sem_rcu_free() local
336 complexmode_enter(struct sem_array *sma) complexmode_enter() argument
363 complexmode_tryleave(struct sem_array *sma) complexmode_tryleave() argument
389 sem_lock(struct sem_array *sma, struct sembuf *sops, int nsops) sem_lock() argument
460 sem_unlock(struct sem_array *sma, int locknum) sem_unlock() argument
499 sem_lock_and_putref(struct sem_array *sma) sem_lock_and_putref() argument
512 struct sem_array *sma; sem_alloc() local
534 struct sem_array *sma; newary() local
593 struct sem_array *sma; sem_more_checks() local
646 perform_atomic_semop_slow(struct sem_array *sma, struct sem_queue *q) perform_atomic_semop_slow() argument
719 perform_atomic_semop(struct sem_array *sma, struct sem_queue *q) perform_atomic_semop() argument
799 unlink_queue(struct sem_array *sma, struct sem_queue *q) unlink_queue() argument
816 check_restart(struct sem_array *sma, struct sem_queue *q) check_restart() argument
854 wake_const_ops(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) wake_const_ops() argument
893 do_smart_wakeup_zero(struct sem_array *sma, struct sembuf *sops, int nsops, struct wake_q_head *wake_q) do_smart_wakeup_zero() argument
949 update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) update_queue() argument
1005 set_semotime(struct sem_array *sma, struct sembuf *sops) set_semotime() argument
1029 do_smart_update(struct sem_array *sma, struct sembuf *sops, int nsops, int otime, struct wake_q_head *wake_q) do_smart_update() argument
1072 check_qop(struct sem_array *sma, int semnum, struct sem_queue *q, bool count_zero) check_qop() argument
1106 count_semcnt(struct sem_array *sma, ushort semnum, bool count_zero) count_semcnt() argument
1147 struct sem_array *sma = container_of(ipcp, struct sem_array, sem_perm); freeary() local
1219 get_semotime(struct sem_array *sma) get_semotime() argument
1237 struct sem_array *sma; semctl_stat() local
1347 struct sem_array *sma; semctl_setval() local
1408 struct sem_array *sma; semctl_main() local
1604 struct sem_array *sma; semctl_down() local
1908 struct sem_array *sma; find_alloc_undo() local
1988 struct sem_array *sma; __do_semtimedop() local
2348 struct sem_array *sma; exit_sem() local
2453 struct sem_array *sma = container_of(ipcp, struct sem_array, sem_perm); sysvipc_sem_proc_show() local
[all...]
/kernel/linux/linux-5.10/ipc/
H A Dsem.c276 * @sma: semaphore array
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()
304 * @sma: semaphore array
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 in merge_queues()
324 struct sem_array *sma = container_of(p, struct sem_array, sem_perm); sem_rcu_free() local
334 complexmode_enter(struct sem_array *sma) complexmode_enter() argument
361 complexmode_tryleave(struct sem_array *sma) complexmode_tryleave() argument
386 sem_lock(struct sem_array *sma, struct sembuf *sops, int nsops) sem_lock() argument
457 sem_unlock(struct sem_array *sma, int locknum) sem_unlock() argument
496 sem_lock_and_putref(struct sem_array *sma) sem_lock_and_putref() argument
509 struct sem_array *sma; sem_alloc() local
531 struct sem_array *sma; newary() local
590 struct sem_array *sma; sem_more_checks() local
643 perform_atomic_semop_slow(struct sem_array *sma, struct sem_queue *q) perform_atomic_semop_slow() argument
716 perform_atomic_semop(struct sem_array *sma, struct sem_queue *q) perform_atomic_semop() argument
797 unlink_queue(struct sem_array *sma, struct sem_queue *q) unlink_queue() argument
814 check_restart(struct sem_array *sma, struct sem_queue *q) check_restart() argument
852 wake_const_ops(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) wake_const_ops() argument
891 do_smart_wakeup_zero(struct sem_array *sma, struct sembuf *sops, int nsops, struct wake_q_head *wake_q) do_smart_wakeup_zero() argument
947 update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q) update_queue() argument
1003 set_semotime(struct sem_array *sma, struct sembuf *sops) set_semotime() argument
1027 do_smart_update(struct sem_array *sma, struct sembuf *sops, int nsops, int otime, struct wake_q_head *wake_q) do_smart_update() argument
1070 check_qop(struct sem_array *sma, int semnum, struct sem_queue *q, bool count_zero) check_qop() argument
1104 count_semcnt(struct sem_array *sma, ushort semnum, bool count_zero) count_semcnt() argument
1145 struct sem_array *sma = container_of(ipcp, struct sem_array, sem_perm); freeary() local
1217 get_semotime(struct sem_array *sma) get_semotime() argument
1235 struct sem_array *sma; semctl_stat() local
1345 struct sem_array *sma; semctl_setval() local
1406 struct sem_array *sma; semctl_main() local
1603 struct sem_array *sma; semctl_down() local
1907 struct sem_array *sma; find_alloc_undo() local
1987 struct sem_array *sma; do_semtimedop() local
2329 struct sem_array *sma; exit_sem() local
2434 struct sem_array *sma = container_of(ipcp, struct sem_array, sem_perm); sysvipc_sem_proc_show() local
[all...]
/kernel/linux/linux-6.6/drivers/ptp/
H A Dptp_ocp.c353 struct ptp_ocp_sma_connector sma[4]; member
2225 if (bp->sma[sma_nr - 1].fixed_fcn) in ptp_ocp_sma_fb_get()
2228 if (bp->sma[sma_nr - 1].mode == SMA_MODE_IN) in ptp_ocp_sma_fb_get()
2296 bp->sma[0].mode = SMA_MODE_IN; in ptp_ocp_sma_fb_init()
2297 bp->sma[1].mode = SMA_MODE_IN; in ptp_ocp_sma_fb_init()
2298 bp->sma[2].mode = SMA_MODE_OUT; in ptp_ocp_sma_fb_init()
2299 bp->sma[3].mode = SMA_MODE_OUT; in ptp_ocp_sma_fb_init()
2301 bp->sma[i].default_fcn = i & 1; in ptp_ocp_sma_fb_init()
2306 bp->sma[i].fixed_fcn = true; in ptp_ocp_sma_fb_init()
2307 bp->sma[ in ptp_ocp_sma_fb_init()
2650 struct ptp_ocp_sma_connector *sma = &bp->sma[sma_nr - 1]; ptp_ocp_sma_show() local
2701 struct ptp_ocp_sma_connector *sma = &bp->sma[sma_nr - 1]; ptp_ocp_sma_store() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw89/
H A Dcam.c659 const u8 *sma = scan_mac_addr ? scan_mac_addr : rtwvif->mac_addr; in rtw89_cam_fill_addr_cam_info() local
672 sma_hash = rtw89_cam_addr_hash(sma_start, sma); in rtw89_cam_fill_addr_cam_info()
691 FWCMD_SET_ADDR_SMA0(cmd, sma[0]); in rtw89_cam_fill_addr_cam_info()
692 FWCMD_SET_ADDR_SMA1(cmd, sma[1]); in rtw89_cam_fill_addr_cam_info()
693 FWCMD_SET_ADDR_SMA2(cmd, sma[2]); in rtw89_cam_fill_addr_cam_info()
694 FWCMD_SET_ADDR_SMA3(cmd, sma[3]); in rtw89_cam_fill_addr_cam_info()
695 FWCMD_SET_ADDR_SMA4(cmd, sma[4]); in rtw89_cam_fill_addr_cam_info()
696 FWCMD_SET_ADDR_SMA5(cmd, sma[5]); in rtw89_cam_fill_addr_cam_info()
/kernel/linux/linux-5.10/security/
H A Dsecurity.c1969 int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument
1971 int rc = lsm_ipc_alloc(sma); in security_sem_alloc()
1975 rc = call_int_hook(sem_alloc_security, 0, sma); in security_sem_alloc()
1977 security_sem_free(sma); in security_sem_alloc()
1981 void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument
1983 call_void_hook(sem_free_security, sma); in security_sem_free()
1984 kfree(sma->security); in security_sem_free()
1985 sma->security = NULL; in security_sem_free()
1988 int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument
1990 return call_int_hook(sem_associate, 0, sma, semfl in security_sem_associate()
1993 security_sem_semctl(struct kern_ipc_perm *sma, int cmd) security_sem_semctl() argument
1998 security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter) security_sem_semop() argument
[all...]
/kernel/linux/linux-6.6/security/
H A Dsecurity.c3725 * @sma: sysv ipc permission structure
3727 * Allocate and attach a security structure to the @sma security field. The
3732 int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument
3734 int rc = lsm_ipc_alloc(sma); in security_sem_alloc()
3738 rc = call_int_hook(sem_alloc_security, 0, sma); in security_sem_alloc()
3740 security_sem_free(sma); in security_sem_alloc()
3746 * @sma: sysv ipc permission structure
3748 * Deallocate security structure @sma->security for the semaphore.
3750 void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument
3752 call_void_hook(sem_free_security, sma); in security_sem_free()
3768 security_sem_associate(struct kern_ipc_perm *sma, int semflg) security_sem_associate() argument
3783 security_sem_semctl(struct kern_ipc_perm *sma, int cmd) security_sem_semctl() argument
3800 security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter) security_sem_semop() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dsecurity.h443 int security_sem_alloc(struct kern_ipc_perm *sma);
444 void security_sem_free(struct kern_ipc_perm *sma);
445 int security_sem_associate(struct kern_ipc_perm *sma, int semflg);
446 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd);
447 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops,
1237 static inline int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument
1242 static inline void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument
1245 static inline int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument
1250 static inline int security_sem_semctl(struct kern_ipc_perm *sma, int cmd) in security_sem_semctl() argument
1255 static inline int security_sem_semop(struct kern_ipc_perm *sma, in security_sem_semop() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dsecurity.h468 int security_sem_alloc(struct kern_ipc_perm *sma);
469 void security_sem_free(struct kern_ipc_perm *sma);
470 int security_sem_associate(struct kern_ipc_perm *sma, int semflg);
471 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd);
472 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops,
1320 static inline int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc() argument
1325 static inline void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free() argument
1328 static inline int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate() argument
1333 static inline int security_sem_semctl(struct kern_ipc_perm *sma, int cmd) in security_sem_semctl() argument
1338 static inline int security_sem_semop(struct kern_ipc_perm *sma, in security_sem_semop() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/
H A 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()
H A Ddwc-xlgmac.h501 unsigned int sma; /* SMA(MDIO) Interface */ member
/kernel/linux/linux-6.6/drivers/net/ethernet/synopsys/
H A 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()
H A Ddwc-xlgmac.h502 unsigned int sma; /* SMA(MDIO) Interface */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
H A Dxgbe.h966 unsigned int sma; /* SMA(MDIO) Interface */ member
H A Dxgbe-drv.c760 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features()
853 hw_feat->sma ? "yes" : "no"); in xgbe_get_all_hw_features()
/kernel/linux/linux-5.10/security/selinux/
H A Dhooks.c6215 static int selinux_sem_alloc_security(struct kern_ipc_perm *sma) in selinux_sem_alloc_security() argument
6222 isec = selinux_ipc(sma); in selinux_sem_alloc_security()
6226 ad.u.ipc_id = sma->key; in selinux_sem_alloc_security()
6234 static int selinux_sem_associate(struct kern_ipc_perm *sma, int semflg) in selinux_sem_associate() argument
6240 isec = selinux_ipc(sma); in selinux_sem_associate()
6243 ad.u.ipc_id = sma->key; in selinux_sem_associate()
6250 /* Note, at this point, sma is locked down */
6251 static int selinux_sem_semctl(struct kern_ipc_perm *sma, int cmd) in selinux_sem_semctl() argument
6291 err = ipc_has_perm(sma, perms); in selinux_sem_semctl()
6295 static int selinux_sem_semop(struct kern_ipc_perm *sma, in selinux_sem_semop() argument
[all...]
/kernel/linux/linux-6.6/security/selinux/
H A Dhooks.c6200 static int selinux_sem_alloc_security(struct kern_ipc_perm *sma) in selinux_sem_alloc_security() argument
6206 isec = selinux_ipc(sma); in selinux_sem_alloc_security()
6210 ad.u.ipc_id = sma->key; in selinux_sem_alloc_security()
6216 static int selinux_sem_associate(struct kern_ipc_perm *sma, int semflg) in selinux_sem_associate() argument
6222 isec = selinux_ipc(sma); in selinux_sem_associate()
6225 ad.u.ipc_id = sma->key; in selinux_sem_associate()
6231 /* Note, at this point, sma is locked down */
6232 static int selinux_sem_semctl(struct kern_ipc_perm *sma, int cmd) in selinux_sem_semctl() argument
6271 err = ipc_has_perm(sma, perms); in selinux_sem_semctl()
6275 static int selinux_sem_semop(struct kern_ipc_perm *sma, in selinux_sem_semop() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/
H A Dxgbe.h998 unsigned int sma; /* SMA(MDIO) Interface */ member
H A Dxgbe-drv.c760 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features()
853 hw_feat->sma ? "yes" : "no"); in xgbe_get_all_hw_features()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
H A 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()
H A Dhfi.h756 u8 sma; member
H A Dchip.c7200 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-6.6/drivers/infiniband/hw/hfi1/
H A 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()
H A Dhfi.h709 u8 sma; member
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4fw_api.h205 __u8 sma[6]; member
237 __u8 sma[6]; member
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4fw_api.h205 __u8 sma[6]; member
237 __u8 sma[6]; member

Completed in 124 milliseconds

12