Home
last modified time | relevance | path

Searched refs:NBBY (Results 1 – 25 of 67) sorted by last modified time

123

/dragonfly/sys/dev/netif/iwm/
H A Dif_iwmvar.h163 uint8_t enabled_api[howmany(IWM_NUM_UCODE_TLV_API, NBBY)];
164 uint8_t enabled_capa[howmany(IWM_NUM_UCODE_TLV_CAPA, NBBY)];
/dragonfly/sys/sys/
H A Dparam.h326 #define NBBY 8 /* number of bits in a byte */ macro
376 #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
377 #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
378 #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY)))
379 #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
/dragonfly/sbin/ifconfig/
H A Difconfig.c706 uint8_t afmask[howmany(AF_MAX, NBBY)]; in af_other_status()
723 uint8_t afmask[howmany(AF_MAX, NBBY)]; in af_all_tunnel_status()
/dragonfly/sys/netgraph/iface/
H A Dng_iface.c207 #define UNITS_BITSPERWORD (sizeof(*ng_iface_units) * NBBY)
/dragonfly/sys/netproto/802_11/wlan/
H A Dieee80211_dragonfly.c982 ((frmlen) * NBBY) + \
1003 #define IEEE80211_CCK_NBITS(frmlen) ((frmlen) * NBBY)
H A Dieee80211_ioctl.c1723 maxchan = ireq->i_len * NBBY; in ieee80211_ioctl_setchanlist()
/dragonfly/sys/net/
H A Dradix.c1260 root = rn_newpair(rn_zeros, off_bytes * NBBY, rnh->rnh_nodes); in rn_inithead()
1267 left->rn_bit = -1 - off_bytes * NBBY; in rn_inithead()
/dragonfly/sys/dev/crypto/hifn/
H A Dhifn7751.c832 #define RANDOM_BITS(n) (n)*sizeof (u_int32_t), (n)*sizeof (u_int32_t)*NBBY, 0 in hifn_rng()
/dragonfly/contrib/dhcpcd/src/
H A Ddhcp.c370 ocets = (size_t)(cidr + 7) / NBBY; in print_rfc3442()
423 ocets = (size_t)(cidr + 7) / NBBY; in decode_rfc3442_rt()
H A Ddhcp6.c844 ap->prefix_len - 1) / NBBY) + 1; in dhcp6_makemessage()
1013 ap->prefix_len - 1) / NBBY) + 1; in dhcp6_makemessage()
1018 ((ap->prefix_len - 1) / NBBY) + in dhcp6_makemessage()
1020 u8 = ap->prefix_len % NBBY; in dhcp6_makemessage()
2320 if (((*o - a->prefix_len - 1) / NBBY) + 1 != ol) { in dhcp6_findpd()
2328 nb = a->prefix_len % NBBY; in dhcp6_findpd()
2332 (a->prefix_exclude_len / NBBY) - 1; in dhcp6_findpd()
H A Dif-options.h221 uint8_t requestmask[256 / NBBY];
222 uint8_t requiremask[256 / NBBY];
223 uint8_t nomask[256 / NBBY];
224 uint8_t rejectmask[256 / NBBY];
225 uint8_t dstmask[256 / NBBY];
228 uint8_t nomasknd[(UINT16_MAX + 1) / NBBY];
229 uint8_t rejectmasknd[(UINT16_MAX + 1) / NBBY];
230 uint8_t requestmask6[(UINT16_MAX + 1) / NBBY];
231 uint8_t requiremask6[(UINT16_MAX + 1) / NBBY];
232 uint8_t nomask6[(UINT16_MAX + 1) / NBBY];
[all …]
H A Deloop.c174 #define TIME_MAX ((1ULL << (sizeof(time_t) * NBBY - 1)) - 1)
H A Dsa.c261 for (y = 0; y < NBBY; y++) { in sa_toprefix()
279 prefix = x * NBBY + y; in sa_toprefix()
331 bytes = prefix / NBBY; in sa_fromprefix()
332 bits = prefix % NBBY; in sa_fromprefix()
344 bytes = (max_prefix - prefix) / NBBY; in sa_fromprefix()
H A Dipv6.c177 for (len = 0; len < 512 / NBBY; len += sizeof(r)) { in ipv6_readsecret()
254 l = (size_t)(ROUNDUP8(prefix_len) / NBBY); in ipv6_makestableprivate1()
379 static const unsigned char masks[NBBY] = in ipv6_mask()
389 bytes = len / NBBY; in ipv6_mask()
390 bits = len % NBBY; in ipv6_mask()
415 for (y = 0; y < NBBY; y++) { in ipv6_prefixlen()
433 return (uint8_t)(x * NBBY + y); in ipv6_prefixlen()
463 int bytes = prefix_len / NBBY; in ipv6_makeaddr()
464 int bits = prefix_len % NBBY; in ipv6_makeaddr()
H A Dipv4.c91 ocets = (cidr + 7) / NBBY; in inet_cidrtoaddr()
97 (256 - (1 << (32 - cidr) % NBBY)), 1); in inet_cidrtoaddr()
H A Dif.c594 iflr.prefixlen = (unsigned int)sdl->sdl_alen * NBBY; in if_discover()
/dragonfly/sys/kern/
H A Dsubr_prf.c81 #define MAXNBUF (sizeof(intmax_t) * NBBY + 1)
/dragonfly/sys/dev/netif/ath/ath/
H A Dif_ath_keycache.c291 keyix = i*NBBY; in key_alloc_2pair()
303 if (keyix == (i+1)*NBBY) { in key_alloc_2pair()
344 keyix = i*NBBY; in key_alloc_pair()
353 if (keyix == (i+1)*NBBY) { in key_alloc_pair()
396 keyix = i*NBBY; in key_alloc_single()
/dragonfly/usr.sbin/makefs/ffs/
H A Dffs_alloc.c564 start = dtogd(fs, bpref) / NBBY; in ffs_mapsearch()
567 len = howmany(fs->fs_fpg, NBBY) - start; in ffs_mapsearch()
573 (1 << (allocsiz - 1 + (fs->fs_frag % NBBY)))); in ffs_mapsearch()
590 bno = (start + len - loc) * NBBY; in ffs_mapsearch()
644 mapp = &freemapp[start / NBBY]; in ffs_clusteracct()
646 bit = 1 << (start % NBBY); in ffs_clusteracct()
650 if ((i & (NBBY - 1)) != (NBBY - 1)) { in ffs_clusteracct()
665 mapp = &freemapp[start / NBBY]; in ffs_clusteracct()
667 bit = 1 << (start % NBBY); in ffs_clusteracct()
671 if ((i & (NBBY - 1)) != 0) { in ffs_clusteracct()
[all …]
H A Dffs_subr.c59 if ((inblk & (1 << (siz + (fs->fs_frag & (NBBY - 1))))) == 0) in ffs_fragacct_swap()
/dragonfly/usr.sbin/makefs/
H A Dffs.h128 /* inode map */ howmany((fs)->fs_ipg, NBBY) + \
129 /* block map */ howmany((fs)->fs_fpg, NBBY) +\
132 /* cluster map */ howmany(fragstoblks(fs, (fs)->fs_fpg), NBBY)))
/dragonfly/tools/tools/toeplitz/
H A Dtoeplitz.c13 #ifndef NBBY
14 #define NBBY __NBBY macro
127 uint32_t key[NBBY]; in toeplitz_init()
135 for (b = 0; b < NBBY; ++b) { in toeplitz_init()
140 bit = (i * NBBY) + b + j; in toeplitz_init()
142 k = key_str[bit / NBBY]; in toeplitz_init()
143 shift = NBBY - (bit % NBBY) - 1; in toeplitz_init()
156 for (b = 0; b < NBBY; ++b) { in toeplitz_init()
157 shift = NBBY - b - 1; in toeplitz_init()
/dragonfly/tools/tools/ath/athregs/
H A Ddumpregs.c641 #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
642 #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
643 #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY)))
644 #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
663 u_int8_t ismic[128/NBBY]; in ath_hal_dumpkeycache()
/dragonfly/test/cocci/
H A Duseful_macros.cocci13 -A[I/NBBY] |= 1<<(I%NBBY)
19 -A[I/NBBY] &= ~(1<<(I%NBBY))
25 -(A[I/NBBY] & (1<<(I%NBBY))) == 0
31 -A[I/NBBY] & (1<<(I%NBBY))
/dragonfly/sys/vm/
H A Dvm_page.c399 vm_page_dump_size = round_page(roundup2(page_range, NBBY) / NBBY); in vm_page_startup()

123