HomeSort by: relevance | last modified time | path
    Searched refs:owner (Results 1 - 25 of 220) sorted by relevancy

1 2 3 4 5 6 7 8 9

  /src/sys/ddb/
db_syncobj.c 53 uintptr_t owner; local in function:db_syncobj_owner
55 db_read_bytes((db_addr_t)&mtx->mtx_owner, sizeof(owner),
56 (char *)&owner);
57 return (struct lwp *)(owner & MUTEX_THREAD);
62 uintptr_t owner; local in function:db_syncobj_owner
64 db_read_bytes((db_addr_t)&rw->rw_owner, sizeof(owner),
65 (char *)&owner);
66 if (owner & RW_WRITE_LOCKED)
67 return (struct lwp *)(owner & RW_THREAD);
  /src/lib/libpthread/
pthread_rwlock.c 139 pthread__rwlock_spin(uintptr_t owner)
144 if ((owner & ~RW_THREAD) != RW_WRITE_LOCKED)
147 thread = (pthread_t)(owner & RW_THREAD);
160 uintptr_t owner, next; local in function:pthread__rwlock_rdlock
168 for (owner = (uintptr_t)ptr->ptr_owner;; owner = next) {
170 * Read the lock owner field. If the need-to-wait
173 if ((owner & (RW_WRITE_LOCKED | RW_WRITE_WANTED)) == 0) {
174 next = rw_cas(ptr, owner, owner + RW_READ_INCR)
249 uintptr_t owner, next; local in function:pthread_rwlock_tryrdlock
279 uintptr_t owner, next; local in function:pthread__rwlock_wrlock
370 uintptr_t owner, next; local in function:pthread_rwlock_trywrlock
446 uintptr_t owner, decr, new, next; local in function:pthread_rwlock_unlock
578 uintptr_t owner, set, newval, next; local in function:pthread__rwlock_early
614 uintptr_t owner = (uintptr_t)ptr->ptr_owner; local in function:_pthread_rwlock_held_np
624 uintptr_t owner = (uintptr_t)ptr->ptr_owner; local in function:_pthread_rwlock_rdheld_np
632 uintptr_t owner = (uintptr_t)ptr->ptr_owner; local in function:_pthread_rwlock_wrheld_np
    [all...]
pthread_mutex.c 254 pthread__mutex_spin(pthread_mutex_t *ptm, pthread_t owner)
259 for (count = 2;; owner = ptm->ptm_owner) {
260 thread = (pthread_t)MUTEX_OWNER(owner);
271 return owner;
277 void *newval, *owner, *next; local in function:pthread__mutex_lock_slow
283 owner = ptm->ptm_owner;
290 if (MUTEX_OWNER(owner) == (uintptr_t)self) {
291 if (MUTEX_RECURSIVE(owner)) {
302 if (MUTEX_PROTECT(owner) && _sched_protect(ptm->ptm_ceiling) == -1) {
310 if (MUTEX_OWNER(owner) == 0)
    [all...]
  /src/tools/compat/
lchown.c 43 lchown(const char *path, uid_t owner, gid_t group)
52 return (chown(path, owner, group));
  /src/sys/kern/
kern_rwlock.c 180 pr("owner/count : %#018lx flags : %#018x\n",
244 * Return true if an rwlock owner is running on a CPU in the system.
249 rw_oncpu(uintptr_t owner)
257 if ((owner & (RW_WRITE_LOCKED|RW_HAS_WAITERS)) != RW_WRITE_LOCKED) {
265 l = (lwp_t *)(owner & RW_THREAD);
285 uintptr_t owner, incr, need_wait, set_wait, curthread, next; local in function:rw_vector_enter
310 * set the owner field and the WRITE_LOCKED bit.
332 for (owner = rw->rw_owner;;) {
334 * Read the lock owner field. If the need-to-wait
337 if ((owner & need_wait) == 0)
439 uintptr_t curthread, owner, decr, newown, next; local in function:rw_vector_exit
552 uintptr_t curthread, owner, incr, need_wait, next; local in function:rw_vector_tryenter
596 uintptr_t owner, newown, next, curthread __diagused; local in function:rw_downgrade
694 uintptr_t owner, curthread, newown, next; local in function:rw_tryupgrade
735 uintptr_t owner; local in function:rw_read_held
801 uintptr_t owner = rw->rw_owner; local in function:rw_owner
    [all...]
kern_mutex.c 186 #define MUTEX_OWNER(owner) \
187 (owner & MUTEX_THREAD)
211 #define MUTEX_SPIN_P(owner) \
212 (((owner) & MUTEX_BIT_SPIN) != 0)
213 #define MUTEX_ADAPTIVE_P(owner) \
214 (((owner) & MUTEX_BIT_SPIN) == 0)
223 #define MUTEX_OWNED(owner) (((owner) & ~MUTEX_BIT_NODEBUG) != 0)
226 #define MUTEX_OWNED(owner) ((owner) != 0
320 uintptr_t owner = mtx->mtx_owner; local in function:mutex_dump
391 uintptr_t owner = mtx->mtx_owner; local in function:mutex_destroy
452 uintptr_t owner, curthread; local in function:mutex_vector_enter
    [all...]
kern_turnstile.c 203 * If the current owner of the lock (l->l_wchan, set by sleepq_enqueue)
224 lwp_t *owner; local in function:turnstile_lendpri
232 * Ask syncobj the owner of the lock.
234 owner = (*l->l_syncobj->sobj_owner)(l->l_wchan);
235 if (owner == NULL)
239 * The owner may have changed as we have dropped the tc lock.
241 if (cur == owner) {
249 * Acquire owner->l_mutex if we don't have it yet.
253 dolock = l->l_mutex != atomic_load_relaxed(&owner->l_mutex);
254 if (l == owner || (dolock && !lwp_trylock(owner)))
    [all...]
  /src/games/monop/
print.c 106 if (sqp->owner < 0) {
112 printf(" %d %-8.8s %3d", sqp->owner+1, pp->mon_desc->name,
128 if (sqp->owner < 0) {
134 printf(" %d 150", sqp->owner+1);
136 printf("%d", play[sqp->owner].num_util);
141 if (sqp->owner < 0) {
147 printf(" %d Railroad 200", sqp->owner+1);
150 rnt <<= play[sqp->owner].num_rr - 1;
151 printf("%d %4d", play[sqp->owner].num_rr,
152 25 << (play[sqp->owner].num_rr - 1))
    [all...]
  /src/sys/arch/hppa/include/
mutex.h 39 * know who owns the lock. For adaptive mutexes, we need an owner
93 MUTEX_OWNER(uintptr_t owner)
95 return owner;
99 MUTEX_OWNED(uintptr_t owner)
101 return owner != MUTEX_ADAPTIVE_UNOWNED;
105 MUTEX_SET_WAITERS(struct kmutex *mtx, uintptr_t owner)
149 MUTEX_SPIN_P(const uintptr_t owner)
151 return owner == MUTEX_SPIN_FLAG;
155 MUTEX_ADAPTIVE_P(const uintptr_t owner)
157 return owner != MUTEX_SPIN_FLAG
    [all...]
  /src/sys/external/bsd/drm/dist/bsd-core/
drm_sman.h 31 * per "owner" basis. All regions associated with an "owner" can be released
32 * with a simple call. Typically if the "owner" exists. The owner is any
110 * owner_order is the log2 of the number of buckets in the owner hash table.
145 unsigned long owner);
153 * returns 1 iff there are no stale memory blocks associated with this owner.
156 * resources associated with owner.
159 extern int drm_sman_owner_clean(struct drm_sman * sman, unsigned long owner);
162 * Frees all stale memory blocks associated with this owner. Note that thi
    [all...]
drm_sman.c 34 * per "owner" basis. All regions associated with an "owner" can be released
35 * with a simple call. Typically if the "owner" exists. The owner is any
166 unsigned long owner)
172 ret = drm_ht_find_item(&sman->owner_hash_tab, owner, &owner_hash_item);
183 owner_item->owner_hash.key = owner;
199 unsigned long owner)
229 owner_item = drm_sman_get_owner_item(sman, owner);
283 int drm_sman_owner_clean(struct drm_sman *sman, unsigned long owner)
    [all...]
  /src/sys/external/bsd/gnu-efi/dist/apps/
debughook.c 7 GetVariableAttr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner,
14 efi_status = uefi_call_wrapper(RT->GetVariable, 5, var, &owner,
23 efi_status = uefi_call_wrapper(RT->GetVariable, 5, var, &owner,
34 GetVariable(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner)
36 return GetVariableAttr(var, data, len, owner, NULL);
  /src/sys/dev/nvmm/
nvmm.c 163 nvmm_machine_get(struct nvmm_owner *owner, nvmm_machid_t machid,
179 if (__predict_false(mach->owner != owner && owner != &root_owner)) {
260 nvmm_kill_machines(struct nvmm_owner *owner)
271 if (!mach->present || mach->owner != owner) {
305 nvmm_capability(struct nvmm_owner *owner, struct nvmm_ioc_capability *args)
319 nvmm_machine_create(struct nvmm_owner *owner,
330 mach->owner = owner
1111 struct nvmm_owner *owner; local in function:nvmm_open
1138 struct nvmm_owner *owner = fp->f_data; local in function:nvmm_close
1158 struct nvmm_owner *owner = fp->f_data; local in function:nvmm_mmap
1193 struct nvmm_owner *owner = fp->f_data; local in function:nvmm_ioctl_internal
    [all...]
  /src/sys/arch/powerpc/powerpc/
ofwmagic.S 49 # name of owner
78 # name of owner
  /src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/core/
falcon.h 7 int nvkm_falcon_ctor(const struct nvkm_falcon_func *, struct nvkm_subdev *owner,
27 if (nvkm_subdev_name[(f)->owner->index] != (f)->name) \
28 nvkm_##t((f)->owner, "%s: "fmt"\n", (f)->name, ##a); \
30 nvkm_##t((f)->owner, fmt"\n", ##a); \
  /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/devinit/
nv04.h 12 int owner; member in struct:nv04_devinit
  /src/sys/external/bsd/drm2/dist/drm/i915/gt/
debugfs_gt.h 21 .owner = THIS_MODULE, \
  /src/sys/external/bsd/drm2/dist/include/drm/
drm_audio_component.h 17 * @owner: drm module to pin down
19 struct module *owner; member in struct:drm_audio_component_ops
  /src/sys/arch/zaurus/stand/zbsdmod/
compat_linux.h 37 struct module *owner; member in struct:file_operations
82 struct module *owner; member in struct:proc_dir_entry
  /src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
amdgpu_vm_cpu.c 46 * @owner: owner we need to sync to
52 static int amdgpu_vm_cpu_prepare(struct amdgpu_vm_update_params *p, void *owner,
71 return amdgpu_bo_sync_wait(p->vm->root.base.bo, owner, true);
amdgpu_sync.h 51 void *owner,
  /src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/
kfd_debugfs.c 75 .owner = THIS_MODULE,
83 .owner = THIS_MODULE,
  /src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/engine/
falcon.h 22 const struct nvkm_subdev *owner; member in struct:nvkm_falcon
56 /* This constructor must be called from the owner's oneinit() hook and
61 int nvkm_falcon_v1_new(struct nvkm_subdev *owner, const char *name, u32 addr,
111 return nvkm_rd32(falcon->owner->device, falcon->addr + addr);
117 nvkm_wr32(falcon->owner->device, falcon->addr + addr, data);
123 struct nvkm_device *device = falcon->owner->device;
  /src/sys/arch/ofppc/stand/ofwboot/
ofwstart.S 51 # name of owner
76 # name of owner
  /src/lib/libpuffs/
creds.c 180 /* owner */
213 puffs_access_chown(uid_t owner, gid_t group, uid_t newowner, gid_t newgroup,
218 newowner = owner;
222 if ((!puffs_cred_isuid(pcr, owner) || newowner != owner ||
231 puffs_access_chmod(uid_t owner, gid_t group, enum vtype type, mode_t mode,
235 if (!puffs_cred_isuid(pcr, owner) && !puffs_cred_isjuggernaut(pcr))

Completed in 20 milliseconds

1 2 3 4 5 6 7 8 9