Home
last modified time | relevance | path

Searched refs:bitmask (Results 1 – 25 of 99) sorted by relevance

1234

/freebsd/sys/dev/qat/qat_api/include/
H A Dcpa_types.h170 #define CPA_BITMAP_BIT_TEST(bitmask, bit) \ argument
171 ((bitmask[(bit)/32]) & (0x1 << ((bit)%32)))
178 #define CPA_BITMAP_BIT_SET(bitmask, bit) \ argument
179 (bitmask[(bit)/32] |= (0x1 << ((bit)%32)))
186 #define CPA_BITMAP_BIT_CLEAR(bitmask, bit) \ argument
187 (bitmask[(bit)/32] &= ~(0x1 << ((bit)%32)))
/freebsd/crypto/openssh/
H A Dxmss_hash.c96 unsigned char bitmask[2*n]; in hash_h() local
106 prf(bitmask, byte_addr, pub_seed, n); in hash_h()
109 prf(bitmask+n, byte_addr, pub_seed, n); in hash_h()
111 buf[i] = in[i] ^ bitmask[i]; in hash_h()
120 unsigned char bitmask[n]; in hash_f() local
130 prf(bitmask, byte_addr, pub_seed, n); in hash_f()
133 buf[i] = in[i] ^ bitmask[i]; in hash_f()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlgc.h79 #define bitmask(b) (1<<(b)) macro
80 #define bit2mask(b1,b2) (bitmask(b1) | bitmask(b2))
81 #define l_setbit(x,b) setbits(x, bitmask(b))
82 #define resetbit(x,b) resetbits(x, bitmask(b))
83 #define testbit(x,b) testbits(x, bitmask(b))
102 (!testbits((x)->gch.marked, WHITEBITS | bitmask(BLACKBIT)))
H A Dlgc.c724 toset = bitmask(OLDBIT); /* set the old bit of all surviving objects */ in sweeplist()
725 tostop = bitmask(OLDBIT); /* do not sweep old generation */ in sweeplist()
923 (bitmask(GCSsweepstring) | bitmask(GCSsweepudata) | bitmask(GCSsweep))
955 luaC_runtilstate(L, bitmask(GCSpropagate)); in luaC_changemode()
1124 luaC_runtilstate(L, bitmask(GCSpause)); /* run complete (minor) cycle */ in generationalcollection()
1203 luaC_runtilstate(L, bitmask(GCSpause)); in luaC_fullgc()
1204 luaC_runtilstate(L, ~bitmask(GCSpause)); /* start new collection */ in luaC_fullgc()
1205 luaC_runtilstate(L, bitmask(GCSpause)); /* run entire collection */ in luaC_fullgc()
1208 luaC_runtilstate(L, bitmask(GCSpropagate)); in luaC_fullgc()
/freebsd/contrib/lua/src/
H A Dlgc.h63 #define bitmask(b) (1<<(b)) macro
64 #define bit2mask(b1,b2) (bitmask(b1) | bitmask(b2))
65 #define l_setbit(x,b) setbits(x, bitmask(b))
66 #define resetbit(x,b) resetbits(x, bitmask(b))
67 #define testbit(x,b) testbits(x, bitmask(b))
90 (!testbits((x)->marked, WHITEBITS | bitmask(BLACKBIT)))
/freebsd/usr.sbin/ppp/
H A Dpred.c69 int i, bitmask; in compress() local
76 for (bitmask = 1, i = 0; i < 8 && len; i++, bitmask <<= 1) { in compress()
78 flags |= bitmask; /* Guess was right - don't output */ in compress()
103 int i, bitmask; in decompress() local
110 for (i = 0, bitmask = 1; i < 8; i++, bitmask <<= 1) { in decompress()
111 if (flags & bitmask) { in decompress()
/freebsd/sys/dev/clk/starfive/
H A Djh7110_clk.c61 uint32_t regvalue, offset, bitmask = 1UL << id % 32; in jh7110_reset_assert() local
71 regvalue |= bitmask; in jh7110_reset_assert()
73 regvalue &= ~bitmask; in jh7110_reset_assert()
85 uint32_t regvalue, offset, bitmask; in jh7110_reset_is_asserted() local
93 bitmask = 1UL << id % 32; in jh7110_reset_is_asserted()
97 *reset = (regvalue & bitmask) == 0; in jh7110_reset_is_asserted()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_fs_counters.c527 unsigned long *bitmask; member
540 return bitmap_weight(bulk->bitmask, bulk->bulk_len); in mlx5_fc_bulk_get_free_fcs_amount()
559 bulk->bitmask = kvcalloc(BITS_TO_LONGS(bulk_len), sizeof(unsigned long), in mlx5_fc_bulk_create()
561 if (!bulk->bitmask) in mlx5_fc_bulk_create()
572 set_bit(i, bulk->bitmask); in mlx5_fc_bulk_create()
578 kvfree(bulk->bitmask); in mlx5_fc_bulk_create()
594 kvfree(bulk->bitmask); in mlx5_fc_bulk_destroy()
602 int free_fc_index = find_first_bit(bulk->bitmask, bulk->bulk_len); in mlx5_fc_bulk_acquire_fc()
607 clear_bit(free_fc_index, bulk->bitmask); in mlx5_fc_bulk_acquire_fc()
615 if (test_bit(fc_index, bulk->bitmask)) in mlx5_fc_bulk_release_fc()
[all …]
H A Dmlx5_transobj.c269 void *bitmask; in mlx5_core_arm_rmp() local
277 bitmask = MLX5_ADDR_OF(modify_rmp_in, in, bitmask); in mlx5_core_arm_rmp()
283 MLX5_SET(rmp_bitmask, bitmask, lwm, 1); in mlx5_core_arm_rmp()
/freebsd/sys/powerpc/powerpc/
H A Dcpu.c448 const char *bitmask; in cpu_6xx_setup() local
521 bitmask = HID0_7450_BITMASK; in cpu_6xx_setup()
524 bitmask = HID0_BITMASK; in cpu_6xx_setup()
528 printf("cpu%d: HID0 %b\n", cpuid, (int)hid0, bitmask); in cpu_6xx_setup()
589 const char *bitmask; in cpu_booke_setup() local
595 bitmask = HID0_E500MC_BITMASK; in cpu_booke_setup()
600 bitmask = HID0_E5500_BITMASK; in cpu_booke_setup()
613 bitmask = HID0_E500_BITMASK; in cpu_booke_setup()
616 printf("cpu%d: HID0 %b\n", cpuid, (int)hid0, bitmask); in cpu_booke_setup()
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dcharconv.inc15 // chars_format is a bitmask type.
16 // [bitmask.types] specified operators
H A Dfuture.inc16 // launch is a bitmask type.
17 // [bitmask.types] specified operators
H A Dregex.inc18 // regex_constants is a bitmask type.
19 // [bitmask.types] specified operators
H A Dfilesystem.inc51 // several of these enums are a bitmask type.
52 // [bitmask.types] specified operators
/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_dtls.c23 #define RSMBLY_BITMASK_MARK(bitmask, start, end) { \ argument
26 … for (ii = (start); ii < (end); ii++) bitmask[((ii) >> 3)] |= (1 << ((ii) & 7)); \
29 bitmask[((start) >> 3)] |= bitmask_start_values[((start) & 7)]; \
30 … for (ii = (((start) >> 3) + 1); ii < ((((end) - 1)) >> 3); ii++) bitmask[ii] = 0xff; \
31 bitmask[(((end) - 1) >> 3)] |= bitmask_end_values[((end) & 7)]; \
34 #define RSMBLY_BITMASK_IS_COMPLETE(bitmask, msg_len, is_complete) { \ argument
39 if (bitmask[ii] != 0xff) { is_complete = 0; break; } }
60 unsigned char *bitmask = NULL; in dtls1_hm_fragment_new() local
80 bitmask = OPENSSL_zalloc(RSMBLY_BITMASK_SIZE(frag_len)); in dtls1_hm_fragment_new()
81 if (bitmask == NULL) { in dtls1_hm_fragment_new()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/display/tegra/
H A Dnvidia,tegra114-mipi.txt10 - #nvidia,mipi-calibrate-cells: Should be 1. The cell is a bitmask of the pads
14 phandle to refer to the calibration controller node and a bitmask of the pads
/freebsd/sys/arm/freescale/imx/
H A Dimx6_ahci.c70 imx6_ahci_phy_ctrl(struct ahci_controller* sc, uint32_t bitmask, bool on) in imx6_ahci_phy_ctrl() argument
78 v |= bitmask; in imx6_ahci_phy_ctrl()
80 v &= ~bitmask; in imx6_ahci_phy_ctrl()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSString.cpp348 uint8_t bitmask = 0; in NSTaggedString_SummaryProvider() local
352 bitmask = 0x03f; in NSTaggedString_SummaryProvider()
355 bitmask = 0x01f; in NSTaggedString_SummaryProvider()
362 uint8_t packed = data_bits & bitmask; in NSTaggedString_SummaryProvider()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dradix_ipf.c153 if (cur->bitmask & addr[cur->offset]) { in ipf_rx_find_addr()
364 nodes[1].bitmask = htonl(0x80000000 >> (nlen & 0x1f)); in ipf_rx_insert()
380 if (key[cur->offset] & cur->bitmask) { in ipf_rx_insert()
387 if ((key[prev->offset] & prev->bitmask) == 0) { in ipf_rx_insert()
394 if ((key[nodes[1].offset] & nodes[1].bitmask) == 0) { in ipf_rx_insert()
664 parent->bitmask = prev->bitmask; in ipf_rx_delete()
700 if (((cur - 1)->addrkey[found->offset] & found->bitmask) != in ipf_rx_delete()
811 node[1].bitmask = htonl(0x80000000); in ipf_rx_inithead()
/freebsd/sys/contrib/device-tree/Bindings/clock/
H A Dkeystone-pll.txt48 - bit-mask : arbitrary bitmask for programming the mux
70 - bit-mask : arbitrary bitmask for programming the divider
/freebsd/sys/contrib/device-tree/Bindings/gpio/
H A Dgpio-stmpe.txt8 - st,norequest-mask: bitmask specifying which GPIOs should _not_ be requestable
/freebsd/sys/contrib/device-tree/Bindings/timer/
H A Dti,c64x+timer64.txt16 - ti,core-mask: on multi-core SoCs, bitmask of cores allowed to use this timer.
/freebsd/sys/contrib/device-tree/Bindings/iio/adc/
H A Dstmpe-adc.txt10 - st,norequest-mask: bitmask specifying which ADC channels should _not_ be
/freebsd/sys/contrib/device-tree/Bindings/crypto/
H A Dfsl-sec2.txt15 - fsl,exec-units-mask : The bitmask representing what execution units
33 - fsl,descriptor-types-mask : The bitmask representing what descriptors
/freebsd/sys/dev/ath/ath_hal/
H A Dah_regdomain.c142 isChanBitMaskZero(const uint64_t *bitmask) in isChanBitMaskZero() argument
148 if (bitmask[1] != 0) in isChanBitMaskZero()
151 return (bitmask[0] == 0); in isChanBitMaskZero()
251 IS_BIT_SET(int bit, const uint64_t bitmask[]) in IS_BIT_SET() argument
259 return (bitmask[byteOffset] & val) != 0; in IS_BIT_SET()

1234