/third_party/libwebsockets/lib/core/ |
H A D | lws_dll2.c | 34 if (d->owner) in lws_dll2_is_detached() 42 * have .owner, .next and .prev all set to NULL, so we in lws_dll2_is_detached() 43 * can just check .owner to see if we are detached. in lws_dll2_is_detached() 46 * state of NULL .owner, but non-NULL in .next or .prev, in lws_dll2_is_detached() 57 lws_dll2_foreach_safe(struct lws_dll2_owner *owner, void *user, in lws_dll2_foreach_safe() argument 60 lws_start_foreach_dll_safe(struct lws_dll2 *, p, tp, owner->head) { in lws_dll2_foreach_safe() 69 lws_dll2_add_head(struct lws_dll2 *d, struct lws_dll2_owner *owner) in lws_dll2_add_head() argument 77 if (owner->head != d) in lws_dll2_add_head() 78 d->next = owner->head; in lws_dll2_add_head() 87 owner in lws_dll2_add_head() 103 lws_dll2_owner_t *owner = after->owner; lws_dll2_add_before() local 140 lws_dll2_add_tail(struct lws_dll2 *d, struct lws_dll2_owner *owner) lws_dll2_add_tail() argument 282 lws_dll2_describe(lws_dll2_owner_t *owner, const char *desc) lws_dll2_describe() argument [all...] |
/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_device_proxy_lite.cpp | 219 static int IpcCallback(void *owner, int code, IpcIo *reply) in IpcCallback() argument 221 if (code != 0 || owner == nullptr || reply == nullptr) { in IpcCallback() 222 WIFI_LOGE("Callback error, code:%{public}d, owner:%{public}d, reply:%{public}d", in IpcCallback() 223 code, owner == nullptr, reply == nullptr); in IpcCallback() 227 struct IpcOwner *data = (struct IpcOwner *)owner; in IpcCallback() 367 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in EnableWifi() local 375 owner.funcId = static_cast<int32_t>(DevInterfaceCode::WIFI_SVR_CMD_ENABLE_WIFI); in EnableWifi() 376 int error = remote_->Invoke(remote_, static_cast<int32_t>(DevInterfaceCode::WIFI_SVR_CMD_ENABLE_WIFI), &req, &owner, in EnableWifi() 384 if (owner.exception) { in EnableWifi() 387 return ErrCode(owner in EnableWifi() 400 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; DisableWifi() local 433 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; InitWifiProtect() local 468 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetWifiProtectRef() local 503 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; PutWifiProtectRef() local 624 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; AddDeviceConfig() local 660 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; UpdateDeviceConfig() local 695 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; RemoveDevice() local 729 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; RemoveAllDevice() local 762 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetDeviceConfigs() local 798 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; EnableDeviceConfig() local 833 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; DisableDeviceConfig() local 867 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; ConnectToNetwork() local 902 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; ConnectToDevice() local 936 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; IsConnected() local 969 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; ReConnect() local 1002 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; ReAssociate() local 1035 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; Disconnect() local 1068 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; StartWps() local 1104 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; CancelWps() local 1137 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; IsWifiActive() local 1171 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; IsMeteredHotspot() local 1205 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetWifiState() local 1239 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetLinkedInfo() local 1273 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetIpInfo() local 1307 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetIpv6Info() local 1341 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; SetCountryCode() local 1375 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetCountryCode() local 1418 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; RegisterCallBack() local 1464 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetSignalLevel() local 1500 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetSupportedFeatures() local 1534 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetDeviceMacAddress() local 1569 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; SetLowLatencyMode() local 1610 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; IsBandTypeSupported() local 1646 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; Get5GHzChannelList() local 1681 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; EnableSemiWifi() local 1714 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetWifiDetailState() local [all...] |
H A D | wifi_scan_proxy_lite.cpp | 93 static int IpcCallback(void *owner, int code, IpcIo *reply) in IpcCallback() argument 95 if (code != 0 || owner == nullptr || reply == nullptr) { in IpcCallback() 96 WIFI_LOGE("Callback error, code:%{public}d, owner:%{public}d, reply:%{public}d", in IpcCallback() 97 code, owner == nullptr, reply == nullptr); in IpcCallback() 101 struct IpcOwner *data = (struct IpcOwner *)owner; in IpcCallback() 209 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in SetScanControlInfo() local 235 owner.funcId = static_cast<int32_t>(ScanInterfaceCode::WIFI_SVR_CMD_SET_SCAN_CONTROL_INFO); in SetScanControlInfo() 237 &request, &owner, IpcCallback); in SetScanControlInfo() 244 if (owner.exception) { in SetScanControlInfo() 247 return ErrCode(owner in SetScanControlInfo() 260 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; Scan() local 293 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; AdvanceScan() local 335 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; IsWifiClosedScan() local 369 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetScanInfoList() local 412 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; RegisterCallBack() local 453 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetSupportedFeatures() local [all...] |
/foundation/ai/ai_engine/services/client/communication_adapter/source/ |
H A D | sa_client_proxy.cpp | 51 int Callback(void *owner, int code, IpcIo *reply) in Callback() argument 54 if (owner == nullptr) { in Callback() 55 HILOGE("[SaClientProxy]Callback owner is nullptr."); in Callback() 58 auto notify = reinterpret_cast<NotificationInitServer *>(owner); in Callback() 64 int CallbackBuff(void *owner, int code, IpcIo *reply) in CallbackBuff() argument 67 if (owner == nullptr) { in CallbackBuff() 68 HILOGE("[SaClientProxy]SyncCallback owner is nullptr."); in CallbackBuff() 71 auto notify = reinterpret_cast<struct NotifyBuff *>(owner); in CallbackBuff() 145 NotificationInitServer owner = { in InitSaEngine() local 153 proxy.Invoke(&proxy, ID_INIT_ENGINE, &request, &owner, Callbac in InitSaEngine() 163 struct Notify owner = {.retCode = RETCODE_FAILURE}; DestroyEngineProxy() local 203 struct NotifyBuff owner = { SyncExecAlgorithmProxy() local 236 struct Notify owner = {.retCode = RETCODE_FAILURE}; AsyncExecuteAlgorithmProxy() local 256 struct NotifyBuff owner = { LoadAlgorithmProxy() local 289 struct Notify owner = {.retCode = RETCODE_FAILURE}; UnloadAlgorithmProxy() local 310 struct Notify owner = {.retCode = RETCODE_FAILURE}; SetOptionProxy() local 332 struct NotifyBuff owner = { GetOptionProxy() local 365 struct Notify owner = {.retCode = RETCODE_FAILURE}; RegisterCallbackProxy() local 392 struct Notify owner = {.retCode = RETCODE_FAILURE}; UnregisterCallbackProxy() local [all...] |
/foundation/communication/dhcp/frameworks/native/src/ |
H A D | dhcp_client_proxy_lite.cpp | 60 static int IpcCallback(void *owner, int code, IpcIo *reply) in IpcCallback() argument 62 if (code != 0 || owner == nullptr || reply == nullptr) { in IpcCallback() 63 DHCP_LOGE("Callback error, code:%{public}d, owner:%{public}d, reply:%{public}d", in IpcCallback() 64 code, owner == nullptr, reply == nullptr); in IpcCallback() 68 struct IpcOwner *data = (struct IpcOwner *)owner; in IpcCallback() 104 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in RegisterDhcpClientCallBack() local 119 owner.funcId = static_cast<int32_t>(DhcpClientInterfaceCode::DHCP_CLIENT_SVR_CMD_REG_CALL_BACK); in RegisterDhcpClientCallBack() 122 &req, &owner, IpcCallback); in RegisterDhcpClientCallBack() 128 if (owner.exception) { in RegisterDhcpClientCallBack() 129 DHCP_LOGE("exception failed, exception:%{public}d", owner in RegisterDhcpClientCallBack() 147 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; StartDhcpClient() local 185 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; SetConfiguration() local 223 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; StopDhcpClient() local [all...] |
H A D | dhcp_server_proxy_lite.cpp | 49 static int IpcCallback(void *owner, int code, IpcIo *reply) in IpcCallback() argument 51 if (code != 0 || owner == nullptr || reply == nullptr) { in IpcCallback() 52 DHCP_LOGE("Callback error, code:%{public}d, owner:%{public}d, reply:%{public}d", in IpcCallback() 53 code, owner == nullptr, reply == nullptr); in IpcCallback() 57 struct IpcOwner *data = (struct IpcOwner *)owner; in IpcCallback() 179 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; in RegisterDhcpServerCallBack() local 189 owner.funcId = static_cast<int32_t>(DhcpServerInterfaceCode::DHCP_SERVER_SVR_CMD_REG_CALL_BACK); in RegisterDhcpServerCallBack() 192 &request, &owner, IpcCallback); in RegisterDhcpServerCallBack() 197 DHCP_LOGD("RegisterCallBack is finished: result=%{public}d", owner.exception); in RegisterDhcpServerCallBack() 198 if (owner in RegisterDhcpServerCallBack() 216 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; StartDhcpServer() local 254 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; StopDhcpServer() local 293 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; SetDhcpRange() local 338 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; SetDhcpName() local 377 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; PutDhcpRange() local 421 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; RemoveAllDhcpRange() local 459 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; UpdateLeasesTime() local 497 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; RemoveDhcpRange() local 541 struct IpcOwner owner = {.exception = -1, .retCode = 0, .variable = nullptr}; GetDhcpClientInfos() local [all...] |
/foundation/ability/ability_runtime/interfaces/inner_api/connectionobs_manager/src/ |
H A D | connection_observer_stub_impl.cpp | 24 auto owner = owner_.lock(); in OnExtensionConnected() local 25 if (!owner) { in OnExtensionConnected() 28 owner->HandleExtensionConnected(data); in OnExtensionConnected() 33 auto owner = owner_.lock(); in OnExtensionDisconnected() local 34 if (!owner) { in OnExtensionDisconnected() 37 owner->HandleExtensionDisconnected(data); in OnExtensionDisconnected() 43 auto owner = owner_.lock(); in OnDlpAbilityOpened() local 44 if (!owner) { in OnDlpAbilityOpened() 47 owner->HandleDlpAbilityOpened(data); in OnDlpAbilityOpened() 52 auto owner in OnDlpAbilityClosed() local [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | locking.h | 91 * @owner: The struct where the lockdep map is defined 99 #define btrfs_might_wait_for_event(owner, lock) \ 101 rwsem_acquire(&owner->lock##_map, 0, 0, _THIS_IP_); \ 102 rwsem_release(&owner->lock##_map, _THIS_IP_); \ 108 * @owner: The struct where the lockdep map is defined 116 #define btrfs_lockdep_acquire(owner, lock) \ 117 rwsem_acquire_read(&owner->lock##_map, 0, 0, _THIS_IP_) 123 #define btrfs_lockdep_release(owner, lock) \ 124 rwsem_release(&owner->lock##_map, _THIS_IP_) 130 #define btrfs_might_wait_for_state(owner, [all...] |
/third_party/musl/src/stdio/ |
H A D | __lockfile.c | 6 int owner = f->lock, tid = __pthread_self()->tid; in __lockfile() local 7 if ((owner & ~MAYBE_WAITERS) == tid) in __lockfile() 9 owner = a_cas(&f->lock, 0, tid); in __lockfile() 10 if (!owner) return 1; in __lockfile() 11 while ((owner = a_cas(&f->lock, 0, tid|MAYBE_WAITERS))) { in __lockfile() 12 if ((owner & MAYBE_WAITERS) || in __lockfile() 13 a_cas(&f->lock, owner, owner|MAYBE_WAITERS)==owner) in __lockfile() 14 __futexwait(&f->lock, owner|MAYBE_WAITER in __lockfile() [all...] |
/kernel/linux/linux-6.6/kernel/locking/ |
H A D | rtmutex.c | 66 * lock->owner state tracking: 68 * lock->owner holds the task_struct pointer of the owner. Bit 0 71 * owner bit0 79 * possible when bit 0 of lock->owner is 0. 83 * we need to set the bit0 before looking at the lock, and the owner may be 88 * To prevent a cmpxchg of the owner releasing the lock, we need to 93 rt_mutex_owner_encode(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_owner_encode() argument 95 unsigned long val = (unsigned long)owner; in rt_mutex_owner_encode() 104 rt_mutex_set_owner(struct rt_mutex_base *lock, struct task_struct *owner) in rt_mutex_set_owner() argument 128 unsigned long owner, *p = (unsigned long *) &lock->owner; fixup_rt_mutex_waiters() local 235 unsigned long owner, *p = (unsigned long *) &lock->owner; mark_rt_mutex_waiters() local 260 struct task_struct *owner = rt_mutex_owner(lock); global() variable 1186 struct task_struct *owner = rt_mutex_owner(lock); task_blocks_on_rt_mutex() local 1457 rtmutex_spin_on_owner(struct rt_mutex_base *lock, struct rt_mutex_waiter *waiter, struct task_struct *owner) rtmutex_spin_on_owner() argument 1494 rtmutex_spin_on_owner(struct rt_mutex_base *lock, struct rt_mutex_waiter *waiter, struct task_struct *owner) rtmutex_spin_on_owner() argument 1519 struct task_struct *owner = rt_mutex_owner(lock); remove_waiter() local 1586 struct task_struct *owner; rt_mutex_slowlock_block() local 1777 struct task_struct *owner; rtlock_slowlock_locked() local [all...] |
H A D | mutex.c | 48 atomic_long_set(&lock->owner, 0); in __mutex_init() 60 * @owner: contains: 'struct task_struct *' to the current lock owner, 81 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner() 84 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument 86 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task() 95 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument 97 return owner & MUTEX_FLAGS; in __owner_flags() 105 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_common() local 107 owner in __mutex_trylock_common() 233 unsigned long owner = atomic_long_read(&lock->owner); __mutex_handoff() local 352 mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner, struct ww_acquire_ctx *ww_ctx, struct mutex_waiter *waiter) mutex_spin_on_owner() argument 394 struct task_struct *owner; mutex_can_spin_on_owner() local 465 struct task_struct *owner; mutex_optimistic_spin() local 905 unsigned long owner; __mutex_unlock_slowpath() local [all...] |
H A D | spinlock_debug.c | 28 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init() 47 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init() 56 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local 58 if (owner == SPINLOCK_OWNER_INIT) in spin_dump() 59 owner = NULL; in spin_dump() 63 printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " in spin_dump() 66 owner ? owner->comm : "<none>", in spin_dump() 67 owner in spin_dump() [all...] |
/kernel/linux/linux-5.10/arch/s390/lib/ |
H A D | spinlock.c | 75 int owner; in arch_load_niai4() local 80 : "=d" (owner) : "Q" (*lock) : "memory"); in arch_load_niai4() 81 return owner; in arch_load_niai4() 120 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local 161 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 162 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued() 163 smp_yield_cpu(owner - 1); in arch_spin_lock_queued() 173 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 174 if (owner in arch_spin_lock_queued() 213 int lockval, old, new, owner, count; arch_spin_lock_classic() local 255 int owner, count; arch_spin_trylock_retry() local [all...] |
/kernel/linux/linux-6.6/arch/s390/lib/ |
H A D | spinlock.c | 75 int owner; in arch_load_niai4() local 80 : "=d" (owner) : "Q" (*lock) : "memory"); in arch_load_niai4() 81 return owner; in arch_load_niai4() 120 int lockval, ix, node_id, tail_id, old, new, owner, count; in arch_spin_lock_queued() local 161 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 162 if (owner && arch_vcpu_is_preempted(owner - 1)) in arch_spin_lock_queued() 163 smp_yield_cpu(owner - 1); in arch_spin_lock_queued() 173 owner = arch_spin_yield_target(old, node); in arch_spin_lock_queued() 174 if (owner in arch_spin_lock_queued() 213 int lockval, old, new, owner, count; arch_spin_lock_classic() local 255 int owner, count; arch_spin_trylock_retry() local [all...] |
/kernel/linux/linux-5.10/kernel/locking/ |
H A D | mutex.c | 42 atomic_long_set(&lock->owner, 0); in __mutex_init() 54 * @owner: contains: 'struct task_struct *' to the current lock owner, 75 return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS); in __mutex_owner() 78 static inline struct task_struct *__owner_task(unsigned long owner) in __owner_task() argument 80 return (struct task_struct *)(owner & ~MUTEX_FLAGS); in __owner_task() 99 static inline unsigned long __owner_flags(unsigned long owner) in __owner_flags() argument 101 return owner & MUTEX_FLAGS; in __owner_flags() 109 unsigned long owner, curr = (unsigned long)current; in __mutex_trylock_or_owner() local 111 owner in __mutex_trylock_or_owner() 236 unsigned long owner = atomic_long_read(&lock->owner); __mutex_handoff() local 403 struct task_struct *owner = __mutex_owner(lock); __ww_mutex_wound() local 560 mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner, struct ww_acquire_ctx *ww_ctx, struct mutex_waiter *waiter) mutex_spin_on_owner() argument 601 struct task_struct *owner; mutex_can_spin_on_owner() local 672 struct task_struct *owner; mutex_optimistic_spin() local 1232 unsigned long owner; __mutex_unlock_slowpath() local [all...] |
H A D | spinlock_debug.c | 28 lock->owner = SPINLOCK_OWNER_INIT; in __raw_spin_lock_init() 46 lock->owner = SPINLOCK_OWNER_INIT; in __rwlock_init() 54 struct task_struct *owner = READ_ONCE(lock->owner); in spin_dump() local 56 if (owner == SPINLOCK_OWNER_INIT) in spin_dump() 57 owner = NULL; in spin_dump() 61 printk(KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " in spin_dump() 64 owner ? owner->comm : "<none>", in spin_dump() 65 owner in spin_dump() [all...] |
H A D | rwsem.c | 34 * The least significant 3 bits of the owner value has the following 49 * into the owner field. It is cleared after an unlock. 52 * pointer into the owner field with the RWSEM_READER_OWNED bit set. 53 * On unlock, the owner field will largely be left untouched. So 54 * for a free or reader-owned rwsem, the owner value may contain 107 WARN_ONCE(c, "DEBUG_RWSEMS_WARN_ON(%s): count = 0x%lx, magic = 0x%lx, owner = 0x%lx, curr 0x%lx, list %sempty\n",\ 110 atomic_long_read(&(sem)->owner), (long)current, \ 168 * All writes to owner are protected by WRITE_ONCE() to make sure that 170 * the owner value concurrently without lock. Read from owner, howeve 202 __rwsem_set_reader_owned(struct rw_semaphore *sem, struct task_struct *owner) __rwsem_set_reader_owned() argument 262 unsigned long owner = atomic_long_read(&sem->owner); rwsem_set_nonspinnable() local 297 unsigned long owner = atomic_long_read(&sem->owner); rwsem_owner_flags() local 444 struct task_struct *owner; rwsem_mark_wake() local 646 owner_on_cpu(struct task_struct *owner) owner_on_cpu() argument 658 struct task_struct *owner; rwsem_can_spin_on_owner() local 703 rwsem_owner_state(struct task_struct *owner, unsigned long flags, unsigned long nonspinnable) rwsem_owner_state() argument 717 struct task_struct *new, *owner; rwsem_spin_on_owner() local 947 unsigned long owner = atomic_long_read(&sem->owner); rwsem_reader_phase_trylock() local [all...] |
H A D | rtmutex.c | 26 * lock->owner state tracking: 28 * lock->owner holds the task_struct pointer of the owner. Bit 0 31 * owner bit0 39 * possible when bit 0 of lock->owner is 0. 43 * we need to set the bit0 before looking at the lock, and the owner may be 48 * To prevent a cmpxchg of the owner releasing the lock, we need to 53 rt_mutex_set_owner(struct rt_mutex *lock, struct task_struct *owner) in rt_mutex_set_owner() argument 55 unsigned long val = (unsigned long)owner; in rt_mutex_set_owner() 60 WRITE_ONCE(lock->owner, (struc in rt_mutex_set_owner() 71 unsigned long owner, *p = (unsigned long *) &lock->owner; fixup_rt_mutex_waiters() local 154 unsigned long owner, *p = (unsigned long *) &lock->owner; mark_rt_mutex_waiters() local 172 struct task_struct *owner = rt_mutex_owner(lock); global() variable 931 struct task_struct *owner = rt_mutex_owner(lock); task_blocks_on_rt_mutex() local 1069 struct task_struct *owner = rt_mutex_owner(lock); remove_waiter() local [all...] |
/kernel/linux/linux-6.6/rust/kernel/sync/ |
H A D | locked_by.rs | 76 owner: *const U, 90 /// It stores a raw pointer to the owner that is never dereferenced. It is only used to ensure 91 /// that the right owner is being used to access the protected data. If the owner is freed, the 92 /// data becomes inaccessible; if another instance of the owner is allocated *on the same 95 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new() 101 owner: owner.data.get(), in new() 109 /// reference) that the owner is locked. 116 /// Panics if `owner` i [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/src/ |
H A D | attachment_container.cpp | 68 const auto owner = owner_.lock(); in Replace() local 86 bool AttachmentContainer::Initialize(const META_NS::IAttach::Ptr& owner) in Initialize() argument 88 if (!owner) { in Initialize() 91 owner_ = owner; in Initialize() 108 if (const auto owner = owner_.lock()) { in Attach() 112 if (current == owner) { in Attach() 122 const auto context = dataContext ? dataContext : interface_pointer_cast<IObject>(owner); in Attach() 137 if (const auto owner = owner_.lock()) { in Detach() 140 if (current != owner) { in Detach() 151 if (const auto owner in AddingToContainer() 191 const auto owner = owner_.lock(); RemoveAllAttachments() local [all...] |
/kernel/linux/linux-5.10/drivers/media/mc/ |
H A D | mc-dev-allocator.c | 31 struct module *owner; member 63 struct module *owner) in __media_device_get() 73 /* get module reference for the media_device owner */ in __media_device_get() 74 if (owner != mdi->owner && !try_module_get(mdi->owner)) in __media_device_get() 76 "%s: module %s get owner reference error\n", in __media_device_get() 79 dev_dbg(dev, "%s: module %s got owner reference\n", in __media_device_get() 88 mdi->owner = owner; in __media_device_get() 61 __media_device_get(struct device *dev, const char *module_name, struct module *owner) __media_device_get() argument 97 media_device_usb_allocate(struct usb_device *udev, const char *module_name, struct module *owner) media_device_usb_allocate() argument 119 media_device_delete(struct media_device *mdev, const char *module_name, struct module *owner) media_device_delete() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/mc/ |
H A D | mc-dev-allocator.c | 31 struct module *owner; member 63 struct module *owner) in __media_device_get() 73 /* get module reference for the media_device owner */ in __media_device_get() 74 if (owner != mdi->owner && !try_module_get(mdi->owner)) in __media_device_get() 76 "%s: module %s get owner reference error\n", in __media_device_get() 79 dev_dbg(dev, "%s: module %s got owner reference\n", in __media_device_get() 88 mdi->owner = owner; in __media_device_get() 61 __media_device_get(struct device *dev, const char *module_name, struct module *owner) __media_device_get() argument 97 media_device_usb_allocate(struct usb_device *udev, const char *module_name, struct module *owner) media_device_usb_allocate() argument 119 media_device_delete(struct media_device *mdev, const char *module_name, struct module *owner) media_device_delete() argument [all...] |
/third_party/node/deps/v8/include/v8-include/cppgc/internal/ |
H A D | persistent-node.h | 33 void InitializeAsUsedNode(void* owner, TraceRootCallback trace) { in InitializeAsUsedNode() argument 35 owner_ = owner; in InitializeAsUsedNode() 44 void UpdateOwner(void* owner) { in UpdateOwner() argument 46 owner_ = owner; in UpdateOwner() 61 void* owner() const { in owner() function in cppgc::internal::final 96 PersistentNode* TryAllocateNodeFromFreeList(void* owner, in TryAllocateNodeFromFreeList() argument 103 node->InitializeAsUsedNode(owner, trace); in TryAllocateNodeFromFreeList() 118 PersistentNode* RefillFreeListAndAllocateNode(void* owner, 146 V8_INLINE PersistentNode* AllocateNode(void* owner, TraceRootCallback trace) { in AllocateNode() argument 148 auto* node = TryAllocateNodeFromFreeList(owner, trac in AllocateNode() 190 AllocateNode(void* owner, TraceRootCallback trace) AllocateNode() argument [all...] |
/third_party/node/deps/v8/include/cppgc/internal/ |
H A D | persistent-node.h | 35 void InitializeAsUsedNode(void* owner, TraceCallback trace) { in InitializeAsUsedNode() argument 37 owner_ = owner; in InitializeAsUsedNode() 46 void UpdateOwner(void* owner) { in UpdateOwner() argument 48 owner_ = owner; in UpdateOwner() 63 void* owner() const { in owner() function in cppgc::internal::final 98 PersistentNode* TryAllocateNodeFromFreeList(void* owner, in TryAllocateNodeFromFreeList() argument 105 node->InitializeAsUsedNode(owner, trace); in TryAllocateNodeFromFreeList() 120 PersistentNode* RefillFreeListAndAllocateNode(void* owner, 148 V8_INLINE PersistentNode* AllocateNode(void* owner, TraceCallback trace) { in AllocateNode() argument 150 auto* node = TryAllocateNodeFromFreeList(owner, trac in AllocateNode() 192 AllocateNode(void* owner, TraceCallback trace) AllocateNode() argument [all...] |
/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | window_focus_changed_listener.cpp | 26 WindowFocusChangedListener::WindowFocusChangedListener(const std::shared_ptr<AppMgrServiceInner> &owner, in WindowFocusChangedListener() argument 27 const std::shared_ptr<AAFwk::TaskHandlerWrap>& handler) : owner_(owner), taskHandler_(handler) {} in WindowFocusChangedListener() 40 auto owner = inner.lock(); in OnFocused() 41 if (!owner) { in OnFocused() 45 owner->HandleFocused(focusChangeInfo); in OnFocused() 60 auto owner = inner.lock(); in OnUnfocused() 61 if (!owner) { in OnUnfocused() 65 owner->HandleUnfocused(focusChangeInfo); in OnUnfocused()
|