Lines Matching defs:c

4  * Copyright (c) 1990, 1993
6 * (c) UNIX System Laboratories, Inc.
82 #define callout_active(c) ((c)->c_flags & CALLOUT_ACTIVE)
83 #define callout_deactivate(c) ((c)->c_flags &= ~CALLOUT_ACTIVE)
84 #define callout_drain(c) _callout_stop_safe(c, CS_DRAIN)
87 #define callout_init_mtx(c, mtx, flags) \
88 _callout_init_lock((c), &(mtx)->lock_object, (flags))
89 #define callout_init_rm(c, rm, flags) \
90 _callout_init_lock((c), &(rm)->lock_object, (flags))
91 #define callout_init_rw(c, rw, flags) \
92 _callout_init_lock((c), &(rw)->lock_object, (flags))
93 #define callout_pending(c) ((c)->c_iflags & CALLOUT_PENDING)
96 #define callout_reset_sbt(c, sbt, pr, fn, arg, flags) \
97 callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), -1, (flags))
98 #define callout_reset_sbt_curcpu(c, sbt, pr, fn, arg, flags) \
99 callout_reset_sbt_on((c), (sbt), (pr), (fn), (arg), PCPU_GET(cpuid),\
101 #define callout_reset_on(c, to_ticks, fn, arg, cpu) \
102 callout_reset_sbt_on((c), tick_sbt * (to_ticks), 0, (fn), (arg), \
104 #define callout_reset(c, on_tick, fn, arg) \
105 callout_reset_on((c), (on_tick), (fn), (arg), -1)
106 #define callout_reset_curcpu(c, on_tick, fn, arg) \
107 callout_reset_on((c), (on_tick), (fn), (arg), PCPU_GET(cpuid))
108 #define callout_schedule_sbt_on(c, sbt, pr, cpu, flags) \
109 callout_reset_sbt_on((c), (sbt), (pr), (c)->c_func, (c)->c_arg, \
111 #define callout_schedule_sbt(c, sbt, pr, flags) \
112 callout_schedule_sbt_on((c), (sbt), (pr), -1, (flags))
113 #define callout_schedule_sbt_curcpu(c, sbt, pr, flags) \
114 callout_schedule_sbt_on((c), (sbt), (pr), PCPU_GET(cpuid), (flags))
117 #define callout_schedule_curcpu(c, on_tick) \
118 callout_schedule_on((c), (on_tick), PCPU_GET(cpuid))
119 #define callout_stop(c) _callout_stop_safe(c, 0)