Searched refs:owner (Results 1 - 25 of 219) sorted by relevance

123456789

/src/sys/ddb/
H A Ddb_syncobj.c53 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/
H A Dpthread_rwlock.c139 pthread__rwlock_spin(uintptr_t owner) argument
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
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...]
H A Dpthread_mutex.c254 pthread__mutex_spin(pthread_mutex_t *ptm, pthread_t owner) argument
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)
[all...]
/src/tools/compat/
H A Dlchown.c43 lchown(const char *path, uid_t owner, gid_t group) argument
52 return (chown(path, owner, group));
/src/sys/kern/
H A Dkern_rwlock.c180 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) argument
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
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...]
H A Dkern_mutex.c186 #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) !
245 MUTEX_SET_WAITERS(kmutex_t * mtx,uintptr_t owner) argument
320 uintptr_t owner = mtx->mtx_owner; local in function:mutex_dump
391 uintptr_t owner = mtx->mtx_owner; local in function:mutex_destroy
413 mutex_oncpu(uintptr_t owner) argument
452 uintptr_t owner, curthread; local in function:mutex_vector_enter
[all...]
H A Dkern_turnstile.c203 * 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 || (doloc
[all...]
/src/games/monop/
H A Dprint.c106 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]
[all...]
/src/sys/arch/hppa/include/
H A Dmutex.h39 * know who owns the lock. For adaptive mutexes, we need an owner
93 MUTEX_OWNER(uintptr_t owner) argument
95 return owner;
99 MUTEX_OWNED(uintptr_t owner) argument
101 return owner != MUTEX_ADAPTIVE_UNOWNED;
105 MUTEX_SET_WAITERS(struct kmutex *mtx, uintptr_t owner) argument
149 MUTEX_SPIN_P(const uintptr_t owner) argument
151 return owner == MUTEX_SPIN_FLAG;
155 MUTEX_ADAPTIVE_P(const uintptr_t owner) argument
157 return owner !
[all...]
/src/sys/external/bsd/drm/dist/bsd-core/
H A Ddrm_sman.h31 * 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
[all...]
H A Ddrm_sman.c34 * 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) argument
165 drm_sman_get_owner_item(struct drm_sman * sman,unsigned long owner) argument
197 drm_sman_alloc(struct drm_sman * sman,unsigned int manager,unsigned long size,unsigned alignment,unsigned long owner) argument
316 drm_sman_owner_cleanup(struct drm_sman * sman,unsigned long owner) argument
[all...]
/src/sys/external/bsd/gnu-efi/dist/apps/
H A Ddebughook.c7 GetVariableAttr(CHAR16 *var, UINT8 **data, UINTN *len, EFI_GUID owner, argument
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) argument
36 return GetVariableAttr(var, data, len, owner, NULL);
/src/sys/dev/nvmm/
H A Dnvmm.c163 nvmm_machine_get(struct nvmm_owner *owner, nvmm_machid_t machid, argument
179 if (__predict_false(mach->owner != owner && owner != &root_owner)) {
260 nvmm_kill_machines(struct nvmm_owner *owner) argument
271 if (!mach->present || mach->owner != owner) {
305 nvmm_capability(struct nvmm_owner *owner, struct nvmm_ioc_capability *args) argument
319 nvmm_machine_create(struct nvmm_owner *owner, argument
330 mach->owner
352 nvmm_machine_destroy(struct nvmm_owner * owner,struct nvmm_ioc_machine_destroy * args) argument
394 nvmm_machine_configure(struct nvmm_owner * owner,struct nvmm_ioc_machine_configure * args) argument
431 nvmm_vcpu_create(struct nvmm_owner * owner,struct nvmm_ioc_vcpu_create * args) argument
481 nvmm_vcpu_destroy(struct nvmm_owner * owner,struct nvmm_ioc_vcpu_destroy * args) argument
506 nvmm_vcpu_configure(struct nvmm_owner * owner,struct nvmm_ioc_vcpu_configure * args) argument
551 nvmm_vcpu_setstate(struct nvmm_owner * owner,struct nvmm_ioc_vcpu_setstate * args) argument
575 nvmm_vcpu_getstate(struct nvmm_owner * owner,struct nvmm_ioc_vcpu_getstate * args) argument
599 nvmm_vcpu_inject(struct nvmm_owner * owner,struct nvmm_ioc_vcpu_inject * args) argument
656 nvmm_vcpu_run(struct nvmm_owner * owner,struct nvmm_ioc_vcpu_run * args) argument
790 nvmm_hva_map(struct nvmm_owner * owner,struct nvmm_ioc_hva_map * args) argument
834 nvmm_hva_unmap(struct nvmm_owner * owner,struct nvmm_ioc_hva_unmap * args) argument
852 nvmm_gpa_map(struct nvmm_owner * owner,struct nvmm_ioc_gpa_map * args) argument
922 nvmm_gpa_unmap(struct nvmm_owner * owner,struct nvmm_ioc_gpa_unmap * args) argument
961 nvmm_ctl_mach_info(struct nvmm_owner * owner,struct nvmm_ioc_ctl * args) argument
1000 nvmm_ctl(struct nvmm_owner * owner,struct nvmm_ioc_ctl * args) argument
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/
H A Dofwmagic.S49 # name of owner
78 # name of owner
/src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/core/
H A Dfalcon.h7 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/
H A Dnv04.h12 int owner; member in struct:nv04_devinit
/src/sys/external/bsd/drm2/dist/drm/i915/gt/
H A Ddebugfs_gt.h21 .owner = THIS_MODULE, \
/src/sys/external/bsd/drm2/dist/include/drm/
H A Ddrm_audio_component.h17 * @owner: drm module to pin down
19 struct module *owner; member in struct:drm_audio_component_ops
/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_vm_cpu.c46 * @owner: owner we need to sync to
52 static int amdgpu_vm_cpu_prepare(struct amdgpu_vm_update_params *p, void *owner, argument
71 return amdgpu_bo_sync_wait(p->vm->root.base.bo, owner, true);
H A Damdgpu_sync.h51 void *owner,
/src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/
H A Dkfd_debugfs.c75 .owner = THIS_MODULE,
83 .owner = THIS_MODULE,
/src/sys/arch/zaurus/stand/zbsdmod/
H A Dcompat_linux.h37 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/nouveau/include/nvkm/engine/
H A Dfalcon.h22 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/
H A Dofwstart.S51 # name of owner
76 # name of owner
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/falcon/
H A Dnouveau_nvkm_falcon_base.c97 struct nvkm_device *device = falcon->owner->device;
98 enum nvkm_devidx id = falcon->owner->index;
114 struct nvkm_device *device = falcon->owner->device;
115 enum nvkm_devidx id = falcon->owner->index;
149 const struct nvkm_subdev *subdev = falcon->owner;
222 falcon->owner = subdev;

Completed in 14 milliseconds

123456789