Searched refs:bits (Results 1 - 25 of 410) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/common/util/
H A Dffs.c44 ffs(arg_t bits) argument
48 if (bits == 0)
50 for (i = 1; ; i++, bits >>= 1) {
51 if (bits & 1)
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dfill6bits.c12 void fill6bits(bits, msk)
13 int bits;
16 if (bits == 0) {
29 if (bits == 128)
31 if (bits > 96) {
32 msk[3] = htonl(msk[3] << (128 - bits));
33 } else if (bits > 64) {
35 msk[2] = htonl(msk[2] << (96 - bits));
36 } else if (bits > 32) {
39 msk[1] = htonl(msk[1] << (64 - bits));
[all...]
H A Dgenmask.c17 int bits; local
32 * set x most significant bits
34 bits = (int)strtol(msk, &endptr, 0);
37 ((bits > 32) && !use_inet6) || (bits < 0) ||
38 ((bits > 128) && use_inet6))
40 if (*endptr != '\0' || bits > 32 || bits < 0)
45 fill6bits(bits, mskp);
48 if (bits
[all...]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiohd/
H A Daudiohd.conf34 # sample-bits can be set as 16/24
35 sample-bits=16;
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Denum-bitwise.c4 typedef long long __bitwise bits; typedef
7 RZ = (__force bits) 0,
8 RO = (__force bits) 1,
9 RM = (__force bits) -1,
12 _Static_assert([typeof(RZ)] == [bits], "RZ");
13 _Static_assert([typeof(RO)] == [bits], "RO");
14 _Static_assert([typeof(RM)] == [bits], "RM");
15 _Static_assert(sizeof(enum r) == sizeof(bits), "bits");
H A Denum-bitwise-mixed.c4 typedef long long __bitwise bits; typedef
7 AR = (__force bits) 0,
9 AS = (__force bits) 1,
16 BR = (__force bits) 0,
18 BS = (__force bits) 1,
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dfwide.c33 f->bits &= ~SF_MB;
34 f->bits |= SF_WC;
38 f->bits &= ~SF_WC;
39 f->bits |= SF_MB;
41 if (f->bits & SF_MB)
43 if (f->bits & SF_WC)
47 f->bits |= SF_MB;
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/bitfields/
H A Derr.D_DECL_BFTYPE.badtype.d40 struct bits {
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dffs.c32 ffs_impl(uint64_t bits) argument
37 if (bits == 0)
40 if ((bits32 = (uint32_t)bits) == 0) {
41 bits32 = (uint32_t)(bits >> 32);
68 ffs(int bits) argument
70 return (ffs_impl((uint64_t)(uint_t)bits));
74 ffsl(long bits) argument
76 return (ffs_impl((uint64_t)(ulong_t)bits));
80 ffsll(long long bits) argument
82 return (ffs_impl((uint64_t)(u_longlong_t)bits));
[all...]
H A Dfls.c32 fls_impl(uint64_t bits) argument
37 if (bits == 0)
40 if ((bits32 = (uint32_t)(bits >> 32)) != 0)
43 bits32 = (uint32_t)bits;
68 fls(int bits) argument
70 return (fls_impl((uint64_t)(uint_t)bits));
74 flsl(long bits) argument
76 return (fls_impl((uint64_t)(ulong_t)bits));
80 flsll(long long bits) argument
82 return (fls_impl((uint64_t)(u_longlong_t)bits));
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtip4.c28 * and optional prefix bits (if 0 <= bits <= 32)
32 fmtip4(register uint32_t addr, int bits) argument
40 if (bits >= 0 && bits <= 32)
41 sfsprintf(buf + i, z - i, "/%d", bits);
H A Dstrtoip4.c29 * with optional prefix bits
37 * valid bits/masks match the egrep RE:
41 * if pbits!=0 and no bits/mask specified then trailing 0's in addr
52 register unsigned char bits; local
63 bits = 0;
118 bits = z;
128 bits++;
133 bits = 8;
135 bits = 16;
137 bits
[all...]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhpi_vmac.c41 reset.bits.tx_reset = 1;
55 reset.bits.rx_reset = 1;
81 cfg.bits.tx_en = 1;
83 cfg.bits.crc_insert = 1;
85 cfg.bits.tx_pad = 1;
87 cfg.bits.tx_max_frame_length = max_frame_length;
91 cfg.bits.tx_en = 0;
93 cfg.bits.crc_insert = 0;
95 cfg.bits.tx_pad = 0;
99 cfg.bits
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_net_ntop.c42 static char * inet_net_ntop_ipv4 __P((const u_char *src, int bits,
44 static char * inet_net_ntop_ipv6 __P((const u_char *src, int bits,
49 * inet_net_ntop(af, src, bits, dst, size)
58 inet_net_ntop(af, src, bits, dst, size)
61 int bits;
67 return (inet_net_ntop_ipv4(src, bits, dst, size));
69 return (inet_net_ntop_ipv6(src, bits, dst, size));
78 * inet_net_ntop_ipv4(src, bits, dst, size)
90 inet_net_ntop_ipv4(src, bits, dst, size)
92 int bits;
169 inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) argument
[all...]
H A Dinet_net_pton.c52 * number of bits, either imputed classfully or specified with /CIDR,
65 int n, ch, tmp = 0, dirty, bits; local
125 bits = -1;
130 bits = 0;
134 bits *= 10;
135 bits += n;
136 if (bits > 32)
151 if (bits == -1) {
153 bits = 32;
155 bits
271 int bits; local
[all...]
H A Dinet_cidr_pton.c46 int *bits, int ipv6));
48 int *bits));
54 * inet_cidr_pton(af, src, dst, *bits)
57 * "dst" is assumed large enough for its "af". "bits" is set to the
70 inet_cidr_pton(int af, const char *src, void *dst, int *bits) { argument
73 return (inet_cidr_pton_ipv4(src, dst, bits, 0));
75 return (inet_cidr_pton_ipv6(src, dst, bits));
87 int n, ch, tmp, bits; local
111 bits = -1;
113 bits
159 int bits; local
256 int bits = 0; local
[all...]
H A Dinet_cidr_ntop.c44 inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size);
46 inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size);
50 * inet_cidr_ntop(af, src, bits, dst, size)
63 inet_cidr_ntop(int af, const void *src, int bits, char *dst, size_t size) { argument
66 return (inet_cidr_ntop_ipv4(src, bits, dst, size));
68 return (inet_cidr_ntop_ipv6(src, bits, dst, size));
97 * inet_cidr_ntop_ipv4(src, bits, dst, size)
109 inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) { argument
115 if ((bits < -1) || (bits > 3
153 inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) argument
[all...]
/illumos-gate/usr/src/uts/common/io/xge/hal/include/
H A Dxgehal-types.h37 * vBIT(val, loc, sz) - set bits at offset
43 * bVALx(bits, loc) - Get the value of x bits at location
45 #define bVAL1(bits, loc) ((((u64)bits) >> (64-(loc+1))) & 0x1)
46 #define bVAL2(bits, loc) ((((u64)bits) >> (64-(loc+2))) & 0x3)
47 #define bVAL3(bits, loc) ((((u64)bits) >> (64-(loc+3))) & 0x7)
48 #define bVAL4(bits, lo
[all...]
/illumos-gate/usr/src/contrib/zlib/
H A Dinffast.c29 state->bits < 8
39 - The maximum input bits used by a length/distance pair is 15 bits for the
40 length code, 5 bits for the length extra, 15 bits for the distance code,
41 and 13 bits for the distance extra. This totals 48 bits, or six bytes.
66 unsigned bits; /* local strm->bits */ local
72 unsigned op; /* code bits, operatio
[all...]
H A Dinftrees.h14 table that indexes more bits of the code. op indicates whether
17 pointer, the low four bits of op is the number of index bits of
18 that table. For a length or distance, the low four bits of op
19 is the number of extra bits to get after the code. bits is
20 the number of bits in this code or part of the code to drop off
25 unsigned char op; /* operation, extra bits, table bits */
26 unsigned char bits; /* bit member in struct:__anon7
[all...]
/illumos-gate/usr/src/cmd/eeprom/sparc/
H A Dloadlogo.c49 int icw = 64, ich = 64, bits = 16; local
77 c = fscanf(f, "alid_bits_per_item=%d", &bits);
95 bits != 16 && bits != 32) {
101 for (count = ((w + (bits - 1)) / bits) * h; count > 0; count--) {
106 switch (bits) {
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_shift_to_zero.c25 sval_t bits; local
30 if (!get_implied_value(expr->right, &bits))
36 if (type_bits(type) == -1 || type_bits(type) > bits.value)
40 sm_warning("right shifting more than type allows %d vs %lld", type_bits(type), bits.value);
73 sval_t bits; local
78 if (!get_implied_value(expr->right, &bits))
83 if (type_bits(type) > bits.value)
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/
H A Dutils.h52 #define GET_FLAGS(flags,bits) ((flags) & (bits))
53 #define GET_FLAGS_WITH_OFFSET(flags,bits,offset) (((flags) & (bits)) >> (offset))
55 #define SET_FLAGS(flags,bits) ((flags) |= (bits))
57 #define RESET_FLAGS(flags,bits) ((flags) &= ~(bits))
154 // Round up a divied operation more optimal way base on bits.
155 // It is the same opration as d == (1<<bits)
[all...]
/illumos-gate/usr/src/head/
H A Dnan.h61 unsigned bits :20; member in struct:__anon17::__anon18
69 unsigned bits :19; member in struct:__anon17::__anon19
82 unsigned bits :20; member in struct:__anon20::__anon21
88 unsigned bits :19; member in struct:__anon20::__anon22
107 #define IsINF(X) (((dnan *)&(X))->inf_parts.bits == 0 && \
118 * GETNaNPC gets the leftmost 32 bits of the fraction part
120 #define GETNaNPC(dval) (((dnan *)&(dval))->inf_parts.bits << 12 | \
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_rxdma.c242 page_vld.bits.ldw.page0 = 0;
245 page_vld.bits.ldw.page1 = 0;
286 page_vld.bits.ldw.page0 = 0;
289 page_vld.bits.ldw.page1 = 0;
298 page_vld.bits.ldw.page0 = 1;
305 page_vld.bits.ldw.page1 = 1;
309 page_vld.bits.ldw.func = pg_cfg->func_num;
316 page_mask.bits.ldw.mask = pg_cfg->mask >> LOG_PAGE_ADDR_SHIFT;
317 page_value.bits.ldw.value = pg_cfg->value >> LOG_PAGE_ADDR_SHIFT;
318 page_reloc.bits
[all...]

Completed in 91 milliseconds

1234567891011>>