| /src/usr.sbin/cron/cron/ |
| H A D | cron.c | 314 if (bit_test(e->second, otzsecond) && 315 bit_test(e->minute, otzminute) && 316 bit_test(e->hour, otzhour) && 317 bit_test(e->month, otzmonth) && 319 ? (bit_test(e->dow,otzdow) && bit_test(e->dom,otzdom)) 320 : (bit_test(e->dow,otzdow) || bit_test(e->dom,otzdom)) 334 if (bit_test(e->second, second) && 335 bit_test(e->minute, minute) && 336 bit_test(e->hour, hour) && 337 bit_test(e->month, month) && [all …]
|
| /src/sys/dev/evdev/ |
| H A D | evdev.c | 176 if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT)) in evdev_estimate_report_size() 301 bit_test(evdev->ev_flags, EVDEV_FLAG_SOFTREPEAT)) { in evdev_register_common() 315 if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT) || in evdev_register_common() 316 bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) in evdev_register_common() 346 if (bit_test(evdev->ev_flags, EVDEV_FLAG_EXT_EPOCH)) in evdev_register() 554 return (bit_test(evdev->ev_type_flags, type)); in evdev_event_supported() 623 if (!bit_test(evdev->ev_key_flags, code)) in evdev_check_event() 630 if (!bit_test(evdev->ev_rel_flags, code)) in evdev_check_event() 637 if (!bit_test(evdev->ev_abs_flags, code)) in evdev_check_event() 643 bit_test(evdev->ev_abs_flags, ABS_MT_SLOT)) in evdev_check_event() [all …]
|
| H A D | evdev_mt.c | 113 type_a = !bit_test(evdev->ev_abs_flags, ABS_MT_SLOT); in evdev_mt_init() 124 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) { in evdev_mt_init() 133 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) { in evdev_mt_init() 142 if (!bit_test(evdev->ev_flags, EVDEV_FLAG_MT_KEEPID)) in evdev_mt_init() 145 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_STCOMPAT)) in evdev_mt_init() 158 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK)) in evdev_mt_sync_frame() 160 if (bit_test(evdev->ev_flags, EVDEV_FLAG_MT_AUTOREL)) in evdev_mt_sync_frame() 163 bit_test(evdev->ev_flags, EVDEV_FLAG_MT_STCOMPAT)) in evdev_mt_sync_frame() 173 bool type_a = !bit_test(evdev->ev_abs_flags, ABS_MT_SLOT); in evdev_mt_send_slot() 198 bool type_a = !bit_test(evdev->ev_abs_flags, ABS_MT_SLOT); in evdev_mt_push_slot() [all …]
|
| /src/tests/sys/sys/ |
| H A D | bitstring_test.c | 126 ATF_REQUIRE_MSG(bit_test(bitstr, j) == (j == i) ? 1 : 0, in BITSTRING_TC_DEFINE() 145 ATF_REQUIRE_MSG(bit_test(bitstr, j) == (j == i) ? 0 : 1, in BITSTRING_TC_DEFINE() 903 ATF_CHECK_EQ(0, bit_test(b, early - 1)); in ATF_TC_BODY() 904 ATF_CHECK(bit_test(b, early) != 0); in ATF_TC_BODY() 905 ATF_CHECK_EQ(0, bit_test(b, early + 1)); in ATF_TC_BODY() 907 ATF_CHECK_EQ(0, bit_test(b, early)); in ATF_TC_BODY() 913 ATF_CHECK_EQ(0, bit_test(b, early - 2)); in ATF_TC_BODY() 914 ATF_CHECK(bit_test(b, early - 1)); in ATF_TC_BODY() 915 ATF_CHECK(bit_test(b, early)); in ATF_TC_BODY() 916 ATF_CHECK(bit_test(b, early + 1)); in ATF_TC_BODY() [all …]
|
| /src/sbin/hastd/ |
| H A D | activemap.c | 314 PJDLOG_ASSERT(!bit_test(amp->am_memmap, ext)); in activemap_write_start() 350 PJDLOG_ASSERT(bit_test(amp->am_memmap, ext)); in activemap_write_complete() 380 PJDLOG_ASSERT(bit_test(amp->am_memmap, extent)); in activemap_extent_complete() 472 if (bit_test(amp->am_memmap, ext)) { in activemap_copyin() 503 if (bit_test(amp->am_syncmap, ext)) in activemap_merge() 506 if (!bit_test(remmap, ext)) in activemap_merge() 665 if (bit_test(amp->am_syncmap, ext)) { in activemap_need_sync() 667 PJDLOG_ASSERT(bit_test(amp->am_memmap, ext)); in activemap_need_sync() 671 if (!bit_test(amp->am_memmap, ext)) { in activemap_need_sync() 689 printf("%d", bit_test(amp->am_memmap, bit) ? 1 : 0); in activemap_dump() [all …]
|
| /src/usr.sbin/bluetooth/bthidd/ |
| H A D | kbd.c | 382 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()
|
| /src/usr.sbin/moused/moused/ |
| H A D | moused.c | 1340 if (bit_test(key_bits, BTN_JOYSTICK)) { in r_identify_evdev() 1347 if (bit_test(abs_bits, ABS_X) && in r_identify_evdev() 1348 bit_test(abs_bits, ABS_Y)) { in r_identify_evdev() 1349 if (bit_test(key_bits, BTN_TOOL_PEN) || in r_identify_evdev() 1350 bit_test(key_bits, BTN_STYLUS) || in r_identify_evdev() 1351 bit_test(key_bits, BTN_STYLUS2)) { in r_identify_evdev() 1353 } else if (bit_test(abs_bits, ABS_PRESSURE) || in r_identify_evdev() 1354 bit_test(key_bits, BTN_TOUCH)) { in r_identify_evdev() 1356 bit_test(key_bits, BTN_TOOL_FINGER)) { in r_identify_evdev() 1362 } else if (!(bit_test(rel_bits, REL_X) && in r_identify_evdev() [all …]
|
| /src/contrib/netbsd-tests/include/ |
| H A D | d_bitstring_67.out | 85 test bit_test using previous bitstring 86 i bit_test(i)
|
| H A D | d_bitstring_49.out | 67 test bit_test using previous bitstring 68 i bit_test(i)
|
| H A D | d_bitstring_64.out | 82 test bit_test using previous bitstring 83 i bit_test(i)
|
| H A D | d_bitstring_32.out | 50 test bit_test using previous bitstring 51 i bit_test(i)
|
| H A D | d_bitstring_27.out | 45 test bit_test using previous bitstring 46 i bit_test(i)
|
| H A D | d_bitstring_8.out | 26 test bit_test using previous bitstring 27 i bit_test(i)
|
| H A D | t_bitstring.c | 57 (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()
|
| /src/usr.bin/ctlstat/ |
| H A D | ctlstat.c | 338 if (F_MASK(ctx) && bit_test(ctx->item_mask, in ctlstat_dump() 368 if (F_MASK(ctx) && bit_test(ctx->item_mask, in ctlstat_json() 400 if (F_MASK(ctx) && bit_test(ctx->item_mask, \ 426 if (F_MASK(ctx) && bit_test(ctx->item_mask, \ 673 bit_test(ctx->item_mask, item) == 0) in ctlstat_standard() 727 if (F_MASK(ctx) && bit_test(ctx->item_mask, in ctlstat_standard() 776 if (F_MASK(ctx) && bit_test(ctx->item_mask, in ctlstat_standard()
|
| /src/lib/msun/tests/ |
| H A D | Makefile | 27 NETBSD_ATF_TESTS_C+= bit_test
|
| /src/sys/kern/ |
| H A D | subr_unit.c | 603 if (bit_test(ubf->map, l)) in optimize_unr() 634 if (bit_test(ubf->map, l)) in optimize_unr() 849 if (bit_test(ub->map, i) == 0) { in alloc_unr_specificl() 967 KASSERT(bit_test(ub->map, item) != 0, in free_unrl() 1075 if (bit_test(ub->map, x)) in print_unr()
|
| H A D | kern_fork.c | 332 if (bit_test(&proc_id_grpidmap, result) || in fork_findpid() 333 bit_test(&proc_id_sessidmap, result) || in fork_findpid() 334 bit_test(&proc_id_reapmap, result)) { in fork_findpid()
|
| /src/sys/netgraph/bluetooth/socket/ |
| H A D | ng_btsocket_hci_raw.c | 687 if (!bit_test( in ng_btsocket_hci_raw_filter() 693 if (d && !bit_test(pcb->filter.packet_mask, NG_HCI_CMD_PKT - 1)) in ng_btsocket_hci_raw_filter() 700 !bit_test(pcb->filter.packet_mask, type - 1) || in ng_btsocket_hci_raw_filter() 712 if (!bit_test(ng_btsocket_hci_raw_sec_filter->events, event)) in ng_btsocket_hci_raw_filter() 715 if (!bit_test(pcb->filter.event_mask, event)) in ng_btsocket_hci_raw_filter()
|
| /src/sys/vm/ |
| H A D | vm_reserv.c | 444 KASSERT(bit_test(rv->popmap, index), in vm_reserv_depopulate() 634 KASSERT(!bit_test(rv->popmap, index), in vm_reserv_populate() 868 bit_test(rv->popmap, index)) { in vm_reserv_alloc_page() 941 pos0 = bit_test(rv->popmap, 0) ? -1 : 0; in vm_reserv_break() 1101 return (!bit_test(rv->popmap, m - rv->pages)); in vm_reserv_is_page_free()
|
| /src/sys/dev/hid/ |
| H A D | hkbd.c | 120 bit_test(map, key); \ 500 if (hkbd_is_modifier_key(key) || bit_test(sc->sc_ndata, key)) in hkbd_interrupt() 509 if (!bit_test(sc->sc_ndata, key)) in hkbd_interrupt() 512 if (!bit_test(sc->sc_odata, key)) in hkbd_interrupt() 515 if (hkbd_is_modifier_key(key) || bit_test(sc->sc_odata, key)) in hkbd_interrupt() 666 if (bit_test(sc->sc_loc_key_valid, 0) && id == sc->sc_id_loc_key[0]) { in hkbd_intr_callback()
|
| /src/sys/dev/bhnd/bhndb/ |
| H A D | bhndb_private.h | 264 KASSERT(is_free == !bit_test(br->dwa_freelist, dwa->rnid), in bhndb_dw_is_free()
|
| /src/sys/netinet/ |
| H A D | ip_id.c | 227 } while (bit_test(V_id_bits, new_id) || new_id == 0); in ip_randomid()
|
| /src/usr.sbin/cron/lib/ |
| H A D | entry.c | 294 if (bit_test(e->dow, 0) || bit_test(e->dow, 7)) { in load_entry()
|
| /src/lib/libbluetooth/ |
| H A D | hci.c | 385 return (bit_test(filter->packet_mask, type - 1)); in bt_devfilter_pkt_tst() 403 return (bit_test(filter->event_mask, event - 1)); in bt_devfilter_evt_tst()
|