Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 543) sorted by relevance

12345678910>>...22

/dragonfly/sys/dev/drm/
HDdrm_lock.c59 unsigned int old, new, prev;
64 old = *lock;
65 if (old & _DRM_LOCK_HELD)
66 new = old | _DRM_LOCK_CONT;
72 prev = cmpxchg(lock, old, new);
73 } while (prev != old);
76 if (_DRM_LOCKING_CONTEXT(old) == context) {
77 if (old & _DRM_LOCK_HELD) {
108 unsigned int old, new, prev;
113 old = *lock;
[all …]
HDlinux_reservation.c71 struct reservation_object_list *fobj, *old; in reservation_object_reserve_shared() local
74 old = reservation_object_get_list(obj); in reservation_object_reserve_shared()
76 if (old && old->shared_max) { in reservation_object_reserve_shared()
77 if (old->shared_count < old->shared_max) { in reservation_object_reserve_shared()
83 max = old->shared_max * 2; in reservation_object_reserve_shared()
144 struct reservation_object_list *old, in reservation_object_add_shared_replace() argument
153 if (!old) { in reservation_object_add_shared_replace()
165 fobj->shared_count = old->shared_count; in reservation_object_add_shared_replace()
167 for (i = 0; i < old->shared_count; ++i) { in reservation_object_add_shared_replace()
170 check = rcu_dereference_protected(old->shared[i], in reservation_object_add_shared_replace()
[all …]
/dragonfly/lib/libc/isc/
HDev_streams.c153 evStream *old = id.opaque; in evCancelRW() local
164 if (old->prev != NULL) in evCancelRW()
165 old->prev->next = old->next; in evCancelRW()
167 ctx->streams = old->next; in evCancelRW()
168 if (old->next != NULL) in evCancelRW()
169 old->next->prev = old->prev; in evCancelRW()
175 if (old->prevDone == NULL && old->nextDone == NULL) { in evCancelRW()
181 if (ctx->strDone == old) { in evCancelRW()
186 if (old->prevDone != NULL) in evCancelRW()
187 old->prevDone->nextDone = old->nextDone; in evCancelRW()
[all …]
/dragonfly/libexec/diff3prog/
HDdiff3prog.c95 struct range old; member
230 (*dd)[i].old.from = a; in readin()
231 (*dd)[i].old.to = b; in readin()
236 (*dd)[i].old.from = (*dd)[i-1].old.to; in readin()
310 d1->old.from,d1->old.to, in merge()
312 d2->old.from,d2->old.to, in merge()
320 change(1, &d1->old, 0); in merge()
332 change(2, &d2->old, 0); in merge()
343 d1[1].old.from = d1->old.from; in merge()
351 d2[1].old.from = d2->old.from; in merge()
[all …]
/dragonfly/sys/dev/drm/include/linux/
HDatomic.h121 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument
123 return atomic_cmpxchg_int(&v->counter, old, new); in atomic_cmpxchg()
128 int c, old; in atomic_add_unless() local
133 old = atomic_cmpxchg_int(&v->counter, c, c + add); in atomic_add_unless()
134 if (likely(old == c)) in atomic_add_unless()
136 c = old; in atomic_add_unless()
161 #define cmpxchg(ptr, old, new) ({ \ argument
167 __ret = (old); \
171 (int8_t *)&__ret, (u64)(new)) && __ret == (old)) \
176 (int16_t *)&__ret, (u64)(new)) && __ret == (old)) \
[all …]
/dragonfly/contrib/tcsh-6/
HDtw.spell.c40 const Char *old = oldname->s; in spell_me() local
48 while (*old == '/') { /* skip '/' */ in spell_me()
49 Strbuf_append1(&newname, *old++); in spell_me()
53 if (*old != '\0' && old[1] == '\0') in spell_me()
54 Strbuf_append1(&newname, *old++); in spell_me()
56 if (*old == '\0') { in spell_me()
67 for (; *old != '/' && *old != '\0'; old++)/* add current file name */ in spell_me()
68 Strbuf_append1(&guess, *old); in spell_me()
77 looking == TW_COMMAND && (foundslash || *old != '/') ? in spell_me()
HDed.refresh.c585 update_line(Char *old, Char *new, int cur_line) in update_line() argument
595 for (o = old, n = new; *o && (*o == *n); o++, n++) in update_line()
799 ofd - old, osb - old, ose - old, ols - old, oe - old); in update_line()
804 dprintstr("old- oe", old, oe); in update_line()
806 dprintstr("old-ofd", old, ofd); in update_line()
864 if ((nsb != nfd) && fx > 0 && ((p - old) + fx < TermH)) { in update_line()
888 str_insert(old, (int) (ofd - old), TermH, nfd, fx); in update_line()
910 reprintf("first diff delete at %d...\r\n", ofd - old); in update_line()
915 MoveToChar(ofd - old); in update_line()
933 str_delete(old, (int) (ofd - old), TermH, -fx); in update_line()
[all …]
/dragonfly/test/pcpu/
HDcpustat.c92 cputime_get_diff(struct kinfo_cputime *old, struct kinfo_cputime *new, in cputime_get_diff() argument
95 delta->cp_user = new->cp_user - old->cp_user; in cputime_get_diff()
96 delta->cp_nice = new->cp_nice - old->cp_nice; in cputime_get_diff()
97 delta->cp_sys = new->cp_sys - old->cp_sys; in cputime_get_diff()
98 delta->cp_intr = new->cp_intr - old->cp_intr; in cputime_get_diff()
99 delta->cp_idle = new->cp_idle - old->cp_idle; in cputime_get_diff()
121 struct kinfo_cputime *old, *new, delta; in main() local
123 error = cputime_get(&old); in main()
136 cputime_get_diff(&old[i], &new[i], &delta); in main()
145 free(old); in main()
/dragonfly/lib/libthread_xu/thread/
HDthr_clean.c62 struct pthread_cleanup *old; in _pthread_cleanup_pop() local
64 if ((old = curthread->cleanup) != NULL) { in _pthread_cleanup_pop()
65 curthread->cleanup = old->next; in _pthread_cleanup_pop()
67 old->routine(old->routine_arg); in _pthread_cleanup_pop()
69 if (old->onstack == 0) in _pthread_cleanup_pop()
70 __free(old); in _pthread_cleanup_pop()
/dragonfly/contrib/gcc-8.0/libstdc++-v3/libsupc++/
Deh_terminate.cc76 std::terminate_handler old; in set_terminate() local
78 __atomic_exchange (&__terminate_handler, &func, &old, __ATOMIC_ACQ_REL); in set_terminate()
81 old = __terminate_handler; in set_terminate()
84 return old; in set_terminate()
103 std::unexpected_handler old; in set_unexpected() local
105 __atomic_exchange (&__unexpected_handler, &func, &old, __ATOMIC_ACQ_REL); in set_unexpected()
108 old = __unexpected_handler; in set_unexpected()
111 return old; in set_unexpected()
/dragonfly/sys/dev/drm/i915/
HDintel_fifo_underrun.c108 bool enable, bool old) in i9xx_set_fifo_underrun_reporting() argument
121 if (old && I915_READ(reg) & PIPE_FIFO_UNDERRUN_STATUS) in i9xx_set_fifo_underrun_reporting()
159 bool enable, bool old) in ivybridge_set_fifo_underrun_reporting() argument
172 if (old && in ivybridge_set_fifo_underrun_reporting()
226 bool enable, bool old) in cpt_set_fifo_underrun_reporting() argument
241 if (old && I915_READ(SERR_INT) & in cpt_set_fifo_underrun_reporting()
254 bool old; in __intel_set_cpu_fifo_underrun_reporting() local
258 old = !crtc->cpu_fifo_underrun_disabled; in __intel_set_cpu_fifo_underrun_reporting()
262 i9xx_set_fifo_underrun_reporting(dev, pipe, enable, old); in __intel_set_cpu_fifo_underrun_reporting()
266 ivybridge_set_fifo_underrun_reporting(dev, pipe, enable, old); in __intel_set_cpu_fifo_underrun_reporting()
[all …]
/dragonfly/sys/vm/
HDvm_unix.c179 vm_offset_t new, old, base; in sys_obreak() local
189 old = base + round_page(vm->vm_dsize); in sys_obreak()
196 if (new > old && in sys_obreak()
215 if (new > old) { in sys_obreak()
218 diff = new - old; in sys_obreak()
224 0, &old, diff, in sys_obreak()
235 vm_map_kernel_wiring(&vm->vm_map, old, new, 0); in sys_obreak()
238 } else if (new < old) { in sys_obreak()
241 rv = vm_map_remove(&vm->vm_map, new, old); in sys_obreak()
246 vm->vm_dsize -= old - new; in sys_obreak()
/dragonfly/lib/libc/locale/
HDxlocale.c154 locale_t old = _pthread_getspecific(locale_info_key); in set_thread_locale() local
155 if ((NULL != old) && (l != old)) { in set_thread_locale()
156 xlocale_release((struct xlocale_refcounted*)old); in set_thread_locale()
201 copyflags(locale_t new, locale_t old) in copyflags() argument
203 new->using_monetary_locale = old->using_monetary_locale; in copyflags()
204 new->using_numeric_locale = old->using_numeric_locale; in copyflags()
205 new->using_time_locale = old->using_time_locale; in copyflags()
206 new->using_messages_locale = old->using_messages_locale; in copyflags()
391 locale_t old = get_thread_locale(); in uselocale() local
395 return (old ? old : LC_GLOBAL_LOCALE); in uselocale()
/dragonfly/sys/conf/
HDkern.post.mk119 @if [ -f ${DESTDIR}${DESTKERNDIR}.old ]; then \
120 rm -f ${DESTDIR}${DESTKERNDIR}.old; \
122 mkdir -p ${DESTDIR}${DESTKERNDIR}.old
128 … cp -p ${DESTDIR}${DESTKERNDIR}/${DESTKERNNAME} ${DESTDIR}${DESTKERNDIR}.old/${DESTKERNNAME}
130 …--strip-debug ${DESTDIR}${DESTKERNDIR}/${DESTKERNNAME} ${DESTDIR}${DESTKERNDIR}.old/${DESTKERNNAME}
223 if [ -f ${DESTDIR}${DESTKERNDIR}.old ]; then \
224 rm -f ${DESTDIR}${DESTKERNDIR}.old; \
226 mkdir -p ${DESTDIR}${DESTKERNDIR}.old; \
228 cp -p $$file ${DESTDIR}${DESTKERNDIR}.old; \
234 if [ -f ${DESTDIR}${DESTKERNDIR}.old ]; then \
[all …]
/dragonfly/contrib/elftoolchain/libelf/
HDelf_version.c36 unsigned int old; in elf_version() local
38 if ((old = LIBELF_PRIVATE(version)) == EV_NONE) in elf_version()
39 old = EV_CURRENT; in elf_version()
42 return old; in elf_version()
49 return (old); in elf_version()
/dragonfly/contrib/file/magic/Magdir/
HDtimezone10 >4 byte 0 \b, old version
37 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0 old timezone data
38 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\0 old timezone data
39 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0 old timezone data
40 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0 old timezone data
41 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0 old timezone data
42 0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0 old timezone data
/dragonfly/usr.sbin/zic/
HDialloc.c14 icatalloc(char *const old, const char * const new) in icatalloc() argument
20 if (old == NULL) in icatalloc()
23 return old; in icatalloc()
24 else oldsize = strlen(old); in icatalloc()
25 if ((result = realloc(old, oldsize + newsize + 1)) != NULL) in icatalloc()
/dragonfly/crypto/libressl/crypto/x509/
HDx509_issuer_cache.c84 struct x509_issuer *old; in x509_issuer_cache_free_oldest() local
88 old = TAILQ_LAST(&x509_issuer_lru, lruqueue); in x509_issuer_cache_free_oldest()
89 TAILQ_REMOVE(&x509_issuer_lru, old, queue); in x509_issuer_cache_free_oldest()
90 RB_REMOVE(x509_issuer_tree, &x509_issuer_cache, old); in x509_issuer_cache_free_oldest()
91 free(old->parent_md); in x509_issuer_cache_free_oldest()
92 free(old->child_md); in x509_issuer_cache_free_oldest()
93 free(old); in x509_issuer_cache_free_oldest()
/dragonfly/tools/tools/locale/tools/
HDfinalize22 old=${base}/../${1}.draft
35 grep '^LOCALES+' ${old}/Makefile > ${TEMP}
40 (cd ${old} && md5 -r ${keep} | sort) > ${TEMP2}
44 cp ${old}/${original} ${new}/
79 cp ${old}/${original}.src ${new}/
84 grep -v '^LOCALES+' ${old}/Makefile | awk "${AWKCMD}" > ${new}/Makefile
/dragonfly/contrib/lvm2/dist/lib/misc/
HDlvm-file.c89 int lvm_rename(const char *old, const char *new) in lvm_rename() argument
93 if (link(old, new)) { in lvm_rename()
94 log_error("%s: rename to %s failed: %s", old, new, in lvm_rename()
99 if (stat(old, &buf)) { in lvm_rename()
100 log_sys_error("stat", old); in lvm_rename()
105 log_error("%s: rename to %s failed", old, new); in lvm_rename()
109 if (unlink(old)) { in lvm_rename()
110 log_sys_error("unlink", old); in lvm_rename()
/dragonfly/contrib/gdb-7/readline/
HDdisplay.c1273 update_line (old, new, current_line, omax, nmax, inv_botlin) in update_line() argument
1274 register char *old, *new; in update_line()
1333 ret = mbrtowc (&wc, old, MB_CUR_MAX, &ps);
1338 memmove (old+bytes, old+ret, strlen (old+ret));
1339 memcpy (old, new, bytes);
1351 if (old[0] && new[0])
1352 old[0] = new[0];
1364 if (old[0] && new[0])
1365 old[0] = new[0];
1377 if (memcmp (old, new, temp) == 0) /* adding at the end */
[all …]
/dragonfly/contrib/cvs-1.12/lib/
HDmbchar.h262 mb_copy (mbchar_t *new, const mbchar_t *old) in mb_copy() argument
264 if (old->ptr == &old->buf[0]) in mb_copy()
266 memcpy (&new->buf[0], &old->buf[0], old->bytes); in mb_copy()
270 new->ptr = old->ptr; in mb_copy()
271 new->bytes = old->bytes; in mb_copy()
272 if ((new->wc_valid = old->wc_valid)) in mb_copy()
273 new->wc = old->wc; in mb_copy()
/dragonfly/contrib/bmake/
HDsigcompat.c188 SIG_HDLR(*old) __P((int)); in signal()
192 old = Signal(sig, handler); in signal()
194 return old; in signal()
314 MASK_T old = 0; in main() local
319 old = sigblock(sigmask(SIGINT)); in main()
320 printf("old=%d,", old); in main()
321 old = sigsetmask(sigmask(SIGALRM)); in main()
322 printf("old=%d\n", old); in main()
/dragonfly/contrib/gcc-8.0/gcc/cp/
HDname-lookup.c2348 tree old, tree decl, bool is_friend) in update_binding() argument
2356 if (old == error_mark_node) in update_binding()
2357 old = NULL_TREE; in update_binding()
2363 if (old && TREE_CODE (old) == TYPE_DECL && DECL_ARTIFICIAL (old)) in update_binding()
2364 other = old; in update_binding()
2376 if (old) in update_binding()
2380 to_val = old; in update_binding()
2385 if (old && TREE_CODE (old) == TYPE_DECL && DECL_ARTIFICIAL (old)) in update_binding()
2388 to_type = old; in update_binding()
2389 old = NULL_TREE; in update_binding()
[all …]
/dragonfly/lib/libc/stdlib/
HDset_constraint_handler_s.c49 constraint_handler_t *new, *old, ret; in set_constraint_handler_s() local
57 old = _ch; in set_constraint_handler_s()
61 if (old == NULL) { in set_constraint_handler_s()
64 ret = *old; in set_constraint_handler_s()
65 free(old); in set_constraint_handler_s()

12345678910>>...22