| /freebsd/sys/dev/evdev/ | 
| H A D | evdev.c | 169 			if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT))  in evdev_estimate_report_size()294 	    bit_test(evdev->ev_flags, EVDEV_FLAG_SOFTREPEAT)) {  in evdev_register_common()
 308 	if (bit_test(evdev->ev_abs_flags, ABS_MT_SLOT) ||  in evdev_register_common()
 309 	    bit_test(evdev->ev_flags, EVDEV_FLAG_MT_TRACK))  in evdev_register_common()
 339 	if (bit_test(evdev->ev_flags, EVDEV_FLAG_EXT_EPOCH))  in evdev_register()
 547 	return (bit_test(evdev->ev_type_flags, type));  in evdev_event_supported()
 608 		if (!bit_test(evdev->ev_key_flags, code))  in evdev_check_event()
 615 		if (!bit_test(evdev->ev_rel_flags, code))  in evdev_check_event()
 622 		if (!bit_test(evdev->ev_abs_flags, code))  in evdev_check_event()
 628 		    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 …]
 
 | 
| /freebsd/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 …]
 
 | 
| /freebsd/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 …]
 
 | 
| /freebsd/share/man/man3/ | 
| H A D | bitstring.3 | 80 .Nm bit_test ,128 .Fn bit_test "bitstr_t *name" "size_t bit"
 187 .Fn bit_test
 455 	if (!bit_test(bitlist, LPR_BUSY_BIT)) {
 
 | 
| /freebsd/usr.sbin/moused/moused/ | 
| H A D | moused.c | 1394 			if (bit_test(key_bits, BTN_JOYSTICK)) {  in r_identify_evdev()1401 		if (bit_test(abs_bits, ABS_X) &&  in r_identify_evdev()
 1402 		    bit_test(abs_bits, ABS_Y)) {  in r_identify_evdev()
 1403 			if (bit_test(key_bits, BTN_TOOL_PEN) ||  in r_identify_evdev()
 1404 			    bit_test(key_bits, BTN_STYLUS) ||  in r_identify_evdev()
 1405 			    bit_test(key_bits, BTN_STYLUS2)) {  in r_identify_evdev()
 1407 			} else if (bit_test(abs_bits, ABS_PRESSURE) ||  in r_identify_evdev()
 1408 				   bit_test(key_bits, BTN_TOUCH)) {  in r_identify_evdev()
 1410 				    bit_test(key_bits, BTN_TOOL_FINGER)) {  in r_identify_evdev()
 1416 			} else if (!(bit_test(rel_bits, REL_X) &&  in r_identify_evdev()
 [all …]
 
 | 
| /freebsd/contrib/netbsd-tests/include/ | 
| H A D | d_bitstring_8.out | 26 test bit_test using previous bitstring27   i    bit_test(i)
 
 | 
| H A D | t_bitstring.c | 57 		(void) fprintf(file, "%c", (bit_test(b, i) ? '1' : '0'));  in printbits()108 	(void) fprintf(file, "\ntest bit_test using previous bitstring\n");  in calculate_data()
 109 	(void) fprintf(file, "  i    bit_test(i)\n");  in calculate_data()
 111 		(void) fprintf(file, "%3d%15d\n", i, bit_test(bs, i));  in calculate_data()
 
 | 
| H A D | d_bitstring_27.out | 45 test bit_test using previous bitstring46   i    bit_test(i)
 
 | 
| H A D | d_bitstring_32.out | 50 test bit_test using previous bitstring51   i    bit_test(i)
 
 | 
| H A D | d_bitstring_49.out | 67 test bit_test using previous bitstring68   i    bit_test(i)
 
 | 
| H A D | d_bitstring_67.out | 85 test bit_test using previous bitstring86   i    bit_test(i)
 
 | 
| H A D | d_bitstring_64.out | 82 test bit_test using previous bitstring83   i    bit_test(i)
 
 | 
| /freebsd/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()
 
 | 
| /freebsd/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()
 
 | 
| /freebsd/crypto/openssh/ | 
| H A D | moduli.c | 121 #define BIT_TEST(a,n)	((a)[(n)>>SHIFT_WORD] & (1L << ((n) & 31)))  macro353 		if (BIT_TEST(TinySieve, i))  in gen_candidates()
 374 			if (BIT_TEST(TinySieve, i))  in gen_candidates()
 405 			if (BIT_TEST(SmallSieve, i))  in gen_candidates()
 421 		if (BIT_TEST(LargeSieve, j))  in gen_candidates()
 
 | 
| /freebsd/lib/msun/tests/ | 
| H A D | Makefile | 27 NETBSD_ATF_TESTS_C+=	bit_test
 | 
| /freebsd/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 | 284 	if (bit_test(&proc_id_grpidmap, result) ||  in fork_findpid()285 	    bit_test(&proc_id_sessidmap, result) ||  in fork_findpid()
 286 	    bit_test(&proc_id_reapmap, result)) {  in fork_findpid()
 
 | 
| /freebsd/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()
 
 | 
| /freebsd/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()
 
 | 
| /freebsd/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()
 
 | 
| /freebsd/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()
 | 
| /freebsd/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()
 
 | 
| /freebsd/usr.sbin/cron/lib/ | 
| H A D | entry.c | 294 	if (bit_test(e->dow, 0) || bit_test(e->dow, 7)) {  in load_entry()
 |