Searched refs:EV_QSIZE (Results 1 - 17 of 17) sorted by relevance

/netbsd-current/sys/arch/x68k/dev/
H A Devent_var.h49 /* EV_QSIZE should be a power of two so that `%' is fast */
50 #define EV_QSIZE 256 /* may need tuning; this uses 2k */ macro
H A Devent.c72 ev->ev_q = kmem_zalloc((size_t)EV_QSIZE * sizeof(struct firm_event),
88 kmem_free(ev->ev_q, (size_t)EV_QSIZE * sizeof(struct firm_event));
123 cnt = EV_QSIZE - ev->ev_get; /* events in [get..QSIZE) */
139 if ((ev->ev_get = (ev->ev_get + cnt) % EV_QSIZE) != 0 ||
209 kn->kn_data = (EV_QSIZE - ev->ev_get) +
H A Dms.c427 if ((++put) % EV_QSIZE == get) { \
434 if (put >= EV_QSIZE) { \
H A Dkbd.c364 put = (put + 1) % EV_QSIZE;
/netbsd-current/sys/arch/amiga/dev/
H A Devent_var.h51 /* EV_QSIZE should be a power of two so that `%' is fast */
52 #define EV_QSIZE 256 /* may need tuning; this uses 2k */ macro
H A Devent.c72 ev->ev_q = malloc((u_long)EV_QSIZE * sizeof(struct firm_event),
120 cnt = EV_QSIZE - ev->ev_get; /* events in [get..QSIZE) */
135 if ((ev->ev_get = (ev->ev_get + cnt) % EV_QSIZE) != 0 ||
185 kn->kn_data = (EV_QSIZE - ev->ev_get) +
H A Dms.c360 if ((++put) % EV_QSIZE == get) {
371 if (put >= EV_QSIZE) {
380 if ((++put) % EV_QSIZE == get) {
390 if (put >= EV_QSIZE) {
399 if ((++put) % EV_QSIZE == get) {
409 if (put >= EV_QSIZE) {
H A Dkbd.c728 put = (put + 1) % EV_QSIZE;
/netbsd-current/sys/arch/atari/dev/
H A Devent_var.h51 /* EV_QSIZE should be a power of two so that `%' is fast */
52 #define EV_QSIZE 256 /* may need tuning; this uses 2k */ macro
H A Devent.c64 #define EV_Q_ALLOCSIZE (EV_QSIZE * sizeof(struct firm_event))
121 cnt = EV_QSIZE - ev->ev_get; /* events in [get..QSIZE) */
136 if ((ev->ev_get = (ev->ev_get + cnt) % EV_QSIZE) != 0 ||
185 kn->kn_data = (EV_QSIZE - ev->ev_get) +
H A Dms.c220 if ((++put) % EV_QSIZE == get) {
227 if (put >= EV_QSIZE) {
235 if ((++put) % EV_QSIZE == get) {
242 if (put >= EV_QSIZE) {
301 if ((++put) % EV_QSIZE == get) {
307 if (put >= EV_QSIZE) {
H A Dkbd.c579 put = (put + 1) % EV_QSIZE;
/netbsd-current/sys/dev/sun/
H A Devent_var.h50 /* EV_QSIZE should be a power of two so that `%' is fast */
51 #define EV_QSIZE 256 /* may need tuning; this uses 2k */ macro
H A Devent.c72 ev->ev_q = malloc((u_long)EV_QSIZE * sizeof(struct firm_event),
120 cnt = EV_QSIZE - ev->ev_get; /* events in [get..QSIZE) */
138 if ((ev->ev_get = (ev->ev_get + cnt) % EV_QSIZE) != 0 ||
191 kn->kn_data = (EV_QSIZE - ev->ev_get) +
H A Dms.c336 if ((++put) % EV_QSIZE == get) { \
343 if (put >= EV_QSIZE) { \
H A Dkbd.c797 put = (put + 1) % EV_QSIZE;
/netbsd-current/sys/arch/sparc/dev/
H A Dms_pckbport.c241 if ((++put) % EV_QSIZE == get) { \
250 if (put >= EV_QSIZE) { \

Completed in 220 milliseconds