/freebsd/sys/sys/ |
H A D | bitstring.h | 72 typedef unsigned long bitstr_t; typedef 76 #define _BITSTR_BITS (sizeof(bitstr_t) * 8) 97 static inline bitstr_t 103 static inline bitstr_t 116 static inline bitstr_t * 119 return ((bitstr_t *)malloc(bitstr_size(_nbits), type, flags | M_ZERO)); in bit_alloc() 122 static inline bitstr_t * 125 return ((bitstr_t *)calloc(bitstr_size(_nbits), 1)); in bit_alloc() 131 ((name)[bitstr_size(nbits) / sizeof(bitstr_t)]) 135 bit_test(const bitstr_t *_bitstr, size_t _bit) in bit_test() [all …]
|
/freebsd/sys/dev/evdev/ |
H A D | evdev_private.h | 53 _Static_assert(sizeof(bitstr_t) == sizeof(unsigned long), 124 bitstr_t bit_decl(ev_prop_flags, INPUT_PROP_CNT); 125 bitstr_t bit_decl(ev_type_flags, EV_CNT); 126 bitstr_t bit_decl(ev_key_flags, KEY_CNT); 127 bitstr_t bit_decl(ev_rel_flags, REL_CNT); 128 bitstr_t bit_decl(ev_abs_flags, ABS_CNT); 129 bitstr_t bit_decl(ev_msc_flags, MSC_CNT); 130 bitstr_t bit_decl(ev_led_flags, LED_CNT); 131 bitstr_t bit_decl(ev_snd_flags, SND_CNT); 132 bitstr_t bit_decl(ev_sw_flags, SW_CNT); [all …]
|
/freebsd/usr.sbin/cron/cron/ |
H A D | structs.h | 33 bitstr_t bit_decl(second, SECOND_COUNT); 34 bitstr_t bit_decl(minute, MINUTE_COUNT); 35 bitstr_t bit_decl(hour, HOUR_COUNT); 36 bitstr_t bit_decl(dom, DOM_COUNT); 37 bitstr_t bit_decl(month, MONTH_COUNT); 38 bitstr_t bit_decl(dow, DOW_COUNT);
|
/freebsd/usr.sbin/bluetooth/bthidd/ |
H A D | kbd.c | 62 static void kbd_write(bitstr_t *m, int32_t fb, int32_t make, int32_t fd); 64 static void uinput_kbd_write(bitstr_t *m, int32_t fb, int32_t make, int32_t fd); 342 bitstr_t bit_decl(diff, xsize); in kbd_process_keys() 419 uinput_kbd_write(bitstr_t *m, int32_t fb, int32_t make, int32_t fd) in uinput_kbd_write() 436 kbd_write(bitstr_t *m, int32_t fb, int32_t make, int32_t fd) in kbd_write()
|
H A D | bthidd.h | 76 bitstr_t *keys1; /* keys map (new) */ 77 bitstr_t *keys2; /* keys map (old) */
|
/freebsd/tests/sys/sys/ |
H A D | bitstring_test.c | 39 typedef void (testfunc_t)(bitstr_t *bstr, int nbits, const char *memloc); 44 bitstr_t bit_decl(bitstr, nbits); in bitstring_run_stack_test() 52 bitstr_t *bitstr = bit_alloc(nbits); in bitstring_run_heap_test() 89 name ## _test(bitstr_t *bitstr, int nbits, const char *memloc) 100 bitstr_t bit_decl(bitstr, 8); in ATF_TC_BODY() 109 size_t sob = sizeof(bitstr_t); in ATF_TC_BODY() 397 bitstr_t bit_decl(bitstr, nbits); in ATF_TC_BODY() 481 bitstr_t bit_decl(bitstr, nbits); in ATF_TC_BODY() 883 bitstr_t *b; in ATF_TC_BODY()
|
/freebsd/usr.sbin/cron/lib/ |
H A D | entry.c | 69 static char get_list(bitstr_t *, int, int, const char *[], int, FILE *), 70 get_range(bitstr_t *, int, int, const char *[], int, FILE *), 72 static int set_element(bitstr_t *, int, int, int); 529 get_list(bitstr_t *bits, int low, int high, const char *names[], int ch, in get_list() 579 get_range(bitstr_t *bits, int low, int high, const char *names[], int ch, in get_range() 720 set_element(bitstr_t *bits, int low, int high, int number) in set_element()
|
/freebsd/contrib/netbsd-tests/include/ |
H A D | t_bitstring.c | 37 clearbits(bitstr_t *b, int n) in clearbits() 46 printbits(FILE *file, bitstr_t *b, int n) in printbits() 67 bitstr_t *bs; in calculate_data()
|
/freebsd/sys/netinet/ |
H A D | ip_id.c | 109 VNET_DEFINE_STATIC(bitstr_t *, id_bits); 193 bitstr_t *new_bits; in ip_initid()
|
/freebsd/sys/netgraph/bluetooth/include/ |
H A D | ng_btsocket.h | 72 bitstr_t bit_decl(packet_mask, 32); 73 bitstr_t bit_decl(event_mask, (NG_HCI_EVENT_MASK_SIZE * 8));
|
/freebsd/lib/libbluetooth/ |
H A D | bluetooth.h | 153 bitstr_t bit_decl(packet_mask, 8); 154 bitstr_t bit_decl(event_mask, 256);
|
/freebsd/sys/dev/ice/ |
H A D | ice_resmgr.h | 78 bitstr_t *resources;
|
H A D | ice_lib.h | 93 for (bit_ffs((bitstr_t *)(data), (nbits), &(bit)); \ 95 bit_ffs_at((bitstr_t *)(data), (bit) + 1, (nbits), &(bit)))
|
/freebsd/sys/dev/hid/ |
H A D | hkbd.c | 134 bitstr_t bit_decl(sc_loc_key_valid, HKBD_NKEYCODE); 145 bitstr_t bit_decl(sc_ndata, HKBD_NKEYCODE); 146 bitstr_t bit_decl(sc_odata, HKBD_NKEYCODE); 148 bitstr_t bit_decl(sc_ndata0, HKBD_NKEYCODE); 149 bitstr_t bit_decl(sc_odata0, HKBD_NKEYCODE); 302 static uint32_t hkbd_atkeycode(int, const bitstr_t *); 303 static int hkbd_key2scan(struct hkbd_softc *, int, const bitstr_t *, int); 1847 hkbd_atkeycode(int usbcode, const bitstr_t *bitmap) in hkbd_atkeycode() 1874 hkbd_key2scan(struct hkbd_softc *sc, int code, const bitstr_t *bitmap, int up) in hkbd_key2scan()
|
/freebsd/usr.sbin/apmd/ |
H A D | apmd.h | 106 bitstr_t bit_decl(evlist, EVENT_MAX),
|
H A D | apmdparse.y | 50 bitstr_t bit_decl(evlist, EVENT_MAX);
|
H A D | apmd.c | 248 bitstr_t bit_decl(evlist, EVENT_MAX), in register_apm_event_handlers() 252 bitstr_t bit_decl(tmp, EVENT_MAX); in register_apm_event_handlers()
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_data_spromvar.h | 131 bitstr_t bit_decl(revs, SPROM_OP_REV_MAX);
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | bcm_osal.h | 366 #define OSAL_SET_BIT(bit, bitmap) bit_set((bitstr_t *)bitmap, bit) 367 #define OSAL_CLEAR_BIT(bit, bitmap) bit_clear((bitstr_t *)bitmap, bit) 368 #define OSAL_TEST_BIT(bit, bitmap) bit_test((bitstr_t *)bitmap, bit)
|
/freebsd/sys/kern/ |
H A D | kern_fork.c | 241 extern bitstr_t proc_id_pidmap; 242 extern bitstr_t proc_id_grpidmap; 243 extern bitstr_t proc_id_sessidmap; 244 extern bitstr_t proc_id_reapmap;
|
/freebsd/sys/dev/nvdimm/ |
H A D | nvdimm.c | 291 bit_ffc_at((bitstr_t *)nv->label_index->free, 0, in read_labels() 295 bit_ffc_at((bitstr_t *)nv->label_index->free, n + 1, in read_labels()
|
/freebsd/contrib/nvi/common/ |
H A D | gs.h | 109 bitstr_t bit_decl(seqb, MAX_BIT_SEQ + 1);
|
/freebsd/usr.sbin/makefs/zfs/ |
H A D | zfs.h | 111 bitstr_t *spacemap; /* space allocation tracking */
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhndb_private.h | 209 bitstr_t *dwa_freelist; /**< dynamic window free list */
|
/freebsd/sys/dev/cxgbe/ |
H A D | offload.h | 138 bitstr_t *stid_bitmap;
|