Home
last modified time | relevance | path

Searched refs:bit_test (Results 1 – 25 of 35) sorted by relevance

12

/freebsd-13.1/usr.sbin/cron/cron/
H A Dcron.c328 if (bit_test(e->second, otzsecond) in cron_tick()
330 && bit_test(e->hour, otzhour) in cron_tick()
331 && bit_test(e->month, otzmonth) in cron_tick()
333 ? (bit_test(e->dow,otzdow) && bit_test(e->dom,otzdom)) in cron_tick()
334 : (bit_test(e->dow,otzdow) || bit_test(e->dom,otzdom)) in cron_tick()
348 if (bit_test(e->second, second) in cron_tick()
349 && bit_test(e->minute, minute) in cron_tick()
350 && bit_test(e->hour, hour) in cron_tick()
351 && bit_test(e->month, month) in cron_tick()
353 ? (bit_test(e->dow,dow) && bit_test(e->dom,dom)) in cron_tick()
[all …]
/freebsd-13.1/sys/dev/evdev/
H A Devdev.c171 if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT)) in evdev_estimate_report_size()
549 return (bit_test(evdev->ev_type_flags, type)); in evdev_event_supported()
610 if (!bit_test(evdev->ev_key_flags, code)) in evdev_check_event()
617 if (!bit_test(evdev->ev_rel_flags, code)) in evdev_check_event()
624 if (!bit_test(evdev->ev_abs_flags, code)) in evdev_check_event()
637 if (!bit_test(evdev->ev_msc_flags, code)) in evdev_check_event()
644 if (!bit_test(evdev->ev_led_flags, code)) in evdev_check_event()
651 if (!bit_test(evdev->ev_snd_flags, code)) in evdev_check_event()
658 if (!bit_test(evdev->ev_sw_flags, code)) in evdev_check_event()
689 if (bit_test(evdev->ev_key_states, code) && in evdev_modify_event()
[all …]
H A Devdev_mt.c114 type_a = !bit_test(evdev->ev_abs_flags, ABS_MT_SLOT); in evdev_mt_init()
125 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) { in evdev_mt_init()
134 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) { in evdev_mt_init()
143 if (!bit_test(evdev->ev_flags, EVDEV_FLAG_MT_KEEPID)) in evdev_mt_init()
146 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_STCOMPAT)) in evdev_mt_init()
159 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) in evdev_mt_sync_frame()
161 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_AUTOREL)) in evdev_mt_sync_frame()
164 bit_test(evdev->ev_flags, EVDEV_FLAG_MT_STCOMPAT)) in evdev_mt_sync_frame()
531 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) in evdev_get_mt_slot_by_tracking_id()
595 if (!bit_test(evdev->ev_prop_flags, INPUT_PROP_DIRECT)) in evdev_support_mt_compat()
[all …]
/freebsd-13.1/sbin/hastd/
H A Dactivemap.c318 PJDLOG_ASSERT(!bit_test(amp->am_memmap, ext)); in activemap_write_start()
354 PJDLOG_ASSERT(bit_test(amp->am_memmap, ext)); in activemap_write_complete()
384 PJDLOG_ASSERT(bit_test(amp->am_memmap, extent)); in activemap_extent_complete()
476 if (bit_test(amp->am_memmap, ext)) { in activemap_copyin()
507 if (bit_test(amp->am_syncmap, ext)) in activemap_merge()
510 if (!bit_test(remmap, ext)) in activemap_merge()
669 if (bit_test(amp->am_syncmap, ext)) { in activemap_need_sync()
671 PJDLOG_ASSERT(bit_test(amp->am_memmap, ext)); in activemap_need_sync()
675 if (!bit_test(amp->am_memmap, ext)) { in activemap_need_sync()
693 printf("%d", bit_test(amp->am_memmap, bit) ? 1 : 0); in activemap_dump()
[all …]
/freebsd-13.1/usr.sbin/bluetooth/bthidd/
H A Dkbd.c382 if (bit_test(s->keys2, i)) { in kbd_process_keys()
383 if (!bit_test(s->keys1, i)) { in kbd_process_keys()
391 if (bit_test(s->keys1, i)) { in kbd_process_keys()
392 if (!bit_test(s->keys2, i)) in kbd_process_keys()
425 if (bit_test(m, i)) in uinput_kbd_write()
445 if (bit_test(m, i)) { in kbd_write()
/freebsd-13.1/contrib/netbsd-tests/include/
H A Dd_bitstring_49.out67 test bit_test using previous bitstring
68 i bit_test(i)
H A Dd_bitstring_64.out82 test bit_test using previous bitstring
83 i bit_test(i)
H A Dd_bitstring_8.out26 test bit_test using previous bitstring
27 i bit_test(i)
H A Dd_bitstring_27.out45 test bit_test using previous bitstring
46 i bit_test(i)
H A Dd_bitstring_32.out50 test bit_test using previous bitstring
51 i bit_test(i)
H A Dd_bitstring_67.out85 test bit_test using previous bitstring
86 i bit_test(i)
H A Dt_bitstring.c57 (void) fprintf(file, "%c", (bit_test(b, i) ? '1' : '0')); in printbits()
111 (void) fprintf(file, "%3d%15d\n", i, bit_test(bs, i)); in calculate_data()
/freebsd-13.1/usr.bin/ctlstat/
H A Dctlstat.c324 if (F_MASK(ctx) && bit_test(ctx->item_mask, in ctlstat_dump()
354 if (F_MASK(ctx) && bit_test(ctx->item_mask, in ctlstat_json()
441 bit_test(ctx->item_mask, item) == 0) in ctlstat_standard()
495 if (F_MASK(ctx) && bit_test(ctx->item_mask, in ctlstat_standard()
544 if (F_MASK(ctx) && bit_test(ctx->item_mask, in ctlstat_standard()
/freebsd-13.1/sys/kern/
H A Dsubr_unit.c481 if (bit_test(ubf->map, l)) in optimize_unr()
512 if (bit_test(ubf->map, l)) in optimize_unr()
723 if (bit_test(ub->map, i) == 0) { in alloc_unr_specificl()
839 KASSERT(bit_test(ub->map, item) != 0, in free_unrl()
942 if (bit_test(ub->map, x)) in print_unr()
H A Dkern_fork.c287 if (bit_test(&proc_id_grpidmap, result) || in fork_findpid()
288 bit_test(&proc_id_sessidmap, result) || in fork_findpid()
289 bit_test(&proc_id_reapmap, result)) { in fork_findpid()
/freebsd-13.1/lib/msun/tests/
H A DMakefile29 NETBSD_ATF_TESTS_C+= bit_test
/freebsd-13.1/sys/netgraph/bluetooth/socket/
H A Dng_btsocket_hci_raw.c688 if (!bit_test( in ng_btsocket_hci_raw_filter()
694 if (d && !bit_test(pcb->filter.packet_mask, NG_HCI_CMD_PKT - 1)) in ng_btsocket_hci_raw_filter()
701 !bit_test(pcb->filter.packet_mask, type - 1) || in ng_btsocket_hci_raw_filter()
713 if (!bit_test(ng_btsocket_hci_raw_sec_filter->events, event)) in ng_btsocket_hci_raw_filter()
716 if (!bit_test(pcb->filter.event_mask, event)) in ng_btsocket_hci_raw_filter()
/freebsd-13.1/sys/dev/hid/
H A Dhkbd.c120 bit_test(map, key); \
498 if (hkbd_is_modifier_key(key) || bit_test(sc->sc_ndata, key)) in hkbd_interrupt()
507 if (!bit_test(sc->sc_ndata, key)) in hkbd_interrupt()
510 if (!bit_test(sc->sc_odata, key)) in hkbd_interrupt()
513 if (hkbd_is_modifier_key(key) || bit_test(sc->sc_odata, key)) in hkbd_interrupt()
662 if (bit_test(sc->sc_loc_key_valid, 0) && id == sc->sc_id_loc_key[0]) { in hkbd_intr_callback()
/freebsd-13.1/sys/netinet/
H A Dip_id.c230 } while (bit_test(V_id_bits, new_id) || new_id == 0); in ip_randomid()
/freebsd-13.1/sys/dev/bhnd/bhndb/
H A Dbhndb_private.h265 KASSERT(is_free == !bit_test(br->dwa_freelist, dwa->rnid), in bhndb_dw_is_free()
/freebsd-13.1/usr.sbin/cron/lib/
H A Dentry.c293 if (bit_test(e->dow, 0) || bit_test(e->dow, 7)) {
/freebsd-13.1/lib/libbluetooth/
H A Dhci.c387 return (bit_test(filter->packet_mask, type - 1)); in bt_devfilter_pkt_tst()
405 return (bit_test(filter->event_mask, event - 1)); in bt_devfilter_evt_tst()
/freebsd-13.1/tests/sys/sys/
H A Dbitstring_test.c125 ATF_REQUIRE_MSG(bit_test(bitstr, j) == (j == i) ? 1 : 0, in BITSTRING_TC_DEFINE()
144 ATF_REQUIRE_MSG(bit_test(bitstr, j) == (j == i) ? 0 : 1, in BITSTRING_TC_DEFINE()
/freebsd-13.1/sys/sys/
H A Dbitstring.h139 bit_test(const bitstr_t *_bitstr, int _bit) in bit_test() function
/freebsd-13.1/contrib/nvi/common/
H A Dkey.c623 !bit_test(gp->seqb, evp->e_c))) in v_event_get()

12