Home
last modified time | relevance | path

Searched full:bitmask (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/freebsd/sys/dev/aq/
H A Daq_hw_llh_internal.h119 /* bitmask for bitfield itr_reg_res_dsbl */
129 /* bitmask for bitfield itr_reset */
135 /* bitmask for bitfield dca{d}_cpuid[7:0] */
181 /* bitmask for bitfield dca_en */
183 /* inverted bitmask for bitfield dca_en */
199 /*! \brief Bitmask for bitfield MPI register reset disable */
201 /*! \brief Inverted bitmask for bitfield MPI register reset disable */
219 /* bitmask for bitfield dca_mode[3:0] */
221 /* inverted bitmask for bitfield dca_mode[3:0] */
238 /* bitmask for bitfield desc{d}_data_size[4:0] */
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64SMEAttributes.h23 unsigned Bitmask = Normal; variable
66 bool hasStreamingBody() const { return Bitmask & SM_Body; } in hasStreamingBody()
67 bool hasStreamingInterface() const { return Bitmask & SM_Enabled; } in hasStreamingInterface()
72 return Bitmask & SM_Compatible; in hasStreamingCompatibleInterface()
82 static StateValue decodeZAState(unsigned Bitmask) { in decodeZAState() argument
83 return static_cast<StateValue>((Bitmask & ZA_Mask) >> ZA_Shift); in decodeZAState()
89 bool isNewZA() const { return decodeZAState(Bitmask) == StateValue::New; } in isNewZA()
90 bool isInZA() const { return decodeZAState(Bitmask) == StateValue::In; } in isInZA()
91 bool isOutZA() const { return decodeZAState(Bitmask) == StateValue::Out; } in isOutZA()
92 bool isInOutZA() const { return decodeZAState(Bitmask) == StateValue::InOut; } in isInOutZA()
[all …]
H A DAArch64SMEAttributes.cpp17 Bitmask |= M; in set()
19 Bitmask &= ~M; in set()
26 assert(!(isNewZA() && (Bitmask & SME_ABI_Routine)) && in set()
47 Bitmask = 0; in SMEAttrs()
49 Bitmask |= SM_Enabled; in SMEAttrs()
51 Bitmask |= SM_Compatible; in SMEAttrs()
53 Bitmask |= SM_Body; in SMEAttrs()
55 Bitmask |= ZA_State_Agnostic; in SMEAttrs()
57 Bitmask |= ZT0_Undef; in SMEAttrs()
59 Bitmask |= encodeZAState(StateValue::In); in SMEAttrs()
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/MAC/
H A Dtgec.h68 #define GET_EXCEPTION_FLAG(bitMask, exception) switch (exception){ \ argument
70 bitMask = TGEC_IMASK_MDIO_SCAN_EVENT ; break; \
72 bitMask = TGEC_IMASK_MDIO_CMD_CMPL ; break; \
74 bitMask = TGEC_IMASK_REM_FAULT ; break; \
76 bitMask = TGEC_IMASK_LOC_FAULT ; break; \
78 bitMask = TGEC_IMASK_TX_ECC_ER ; break; \
80 bitMask = TGEC_IMASK_TX_FIFO_UNFL ; break; \
82 bitMask = TGEC_IMASK_TX_FIFO_OVFL ; break; \
84 bitMask = TGEC_IMASK_TX_ER ; break; \
86 bitMask = TGEC_IMASK_RX_FIFO_OVFL ; break; \
[all …]
H A Ddtsec.h65 #define GET_EXCEPTION_FLAG(bitMask, exception) switch (exception){ \ argument
67 bitMask = DTSEC_IMASK_BREN; break; \
69 bitMask = DTSEC_IMASK_RXCEN; break; \
71 bitMask = DTSEC_IMASK_GTSCEN ; break; \
73 bitMask = DTSEC_IMASK_BTEN ; break; \
75 bitMask = DTSEC_IMASK_TXCEN ; break; \
77 bitMask = DTSEC_IMASK_TXEEN ; break; \
79 bitMask = DTSEC_IMASK_LCEN ; break; \
81 bitMask = DTSEC_IMASK_CRLEN ; break; \
83 bitMask = DTSEC_IMASK_XFUNEN ; break; \
[all …]
H A Dmemac.h54 #define GET_EXCEPTION_FLAG(bitMask, exception) switch (exception){ \ argument
56 bitMask = MEMAC_IMASK_TECC_ER; break; \
58 bitMask = MEMAC_IMASK_RECC_ER; break; \
60 bitMask = MEMAC_IMASK_TSECC_ER; break; \
62 bitMask = MEMAC_IMASK_MGI; break; \
63 default: bitMask = 0;break;}
/freebsd/contrib/llvm-project/libc/src/__support/HashTable/
H A Dbitmask.h21 // Implementations of the bitmask.
23 // For example, with X86 SSE2, the bitmask is just the 16bit unsigned integer
30 // | Slot Status | Bitmask |
36 // A stride in the bitmask may use multiple bits.
44 // Count trailing zeros with respect to stride. (Assume the bitmask is none
53 template <class BitMask> struct IteratableBitMaskAdaptor : public BitMask {
54 // Use the bitmask as an iterator. Update the state and return current lowest
55 // set bit. To make the bitmask iterable, each stride must contain 0 or exact
65 using iterator = BitMask;
66 using const_iterator = BitMask;
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/HashTable/sse2/
H A Dbitmask_impl.inc15 // With SSE2, every bitmask is iteratable as
18 using BitMask = BitMaskAdaptor<uint16_t, 0x1u>;
19 using IteratableBitMask = IteratableBitMaskAdaptor<BitMask>;
34 // Find out the lanes equal to the given byte and return the bitmask
38 auto bitmask = static_cast<uint16_t>(_mm_movemask_epi8(cmp));
39 return {{bitmask}};
42 LIBC_INLINE BitMask mask_available() const {
43 auto bitmask = static_cast<uint16_t>(_mm_movemask_epi8(data));
44 return {bitmask};
/freebsd/sys/contrib/ncsw/Peripherals/QM/
H A Dqm.h79 #define GET_EXCEPTION_FLAG(bitMask, exception) switch(exception){ \ argument
81 bitMask = QM_EX_CORENET_INITIATOR_DATA; break; \
83 bitMask = QM_EX_CORENET_TARGET_DATA; break; \
85 bitMask = QM_EX_CORENET_INVALID_TARGET_TRANSACTION; break; \
87 bitMask = QM_EX_PFDR_THRESHOLD; break; \
89 bitMask = QM_EX_PFDR_ENQUEUE_BLOCKED; break; \
91 bitMask = QM_EX_SINGLE_ECC; break; \
93 bitMask = QM_EX_MULTI_ECC; break; \
95 bitMask = QM_EX_INVALID_COMMAND; break; \
97 bitMask = QM_EX_DEQUEUE_DCP; break; \
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/HashTable/generic/
H A Dbitmask_impl.inc39 using BitMask = BitMaskAdaptor<bitmask_t, 0x8ul>;
40 using IteratableBitMask = IteratableBitMaskAdaptor<BitMask>;
60 // Find out the lanes equal to the given byte and return the bitmask
88 // To make the bitmask iteratable, only one bit can be set in each stride.
108 return {BitMask{result}};
112 // return the bitmask with corresponding bits set.
113 LIBC_INLINE BitMask mask_available() const {
120 return {BitMask{available ^ MASK}};
/freebsd/lib/libsys/
H A Dpoll.2114 bitmask.
120 bitmask.
127 bitmask at the same time.
135 bitmask to be reported.
143 bitmask.
224 bitmask to the
226 bitmask.
H A Dmembarrier.254 A bitmask of commands supported by the kernel is returned.
87 Return the bitmask of the currently registered receive barriers.
110 a bitmask of supported commands is returned.
113 command, a bitmask of the registrations for the current process
/freebsd/sys/contrib/ncsw/Peripherals/FM/
H A Dfm.h81 #define GET_EXCEPTION_FLAG(bitMask, exception) \ argument
84 bitMask = FM_EX_DMA_BUS_ERROR; break; \
86 bitMask = FM_EX_DMA_SINGLE_PORT_ECC; break; \
88 bitMask = FM_EX_DMA_READ_ECC; break; \
90 bitMask = FM_EX_DMA_SYSTEM_WRITE_ECC; break; \
92 bitMask = FM_EX_DMA_FM_WRITE_ECC; break; \
94 bitMask = FM_EX_FPM_STALL_ON_TASKS; break; \
96 bitMask = FM_EX_FPM_SINGLE_ECC; break; \
98 bitMask = FM_EX_FPM_DOUBLE_ECC; break; \
100 bitMask = FM_EX_QMI_SINGLE_ECC; break; \
[all …]
/freebsd/sys/contrib/ncsw/Peripherals/FM/MACSEC/
H A Dfm_macsec_master.c332 uint32_t bitMask = 0; in MacsecConfigException() local
337 GET_USER_EXCEPTION_FLAG(bitMask, exception); in MacsecConfigException()
338 if (bitMask) in MacsecConfigException()
341 p_FmMacsec->userExceptions |= bitMask; in MacsecConfigException()
343 p_FmMacsec->userExceptions &= ~bitMask; in MacsecConfigException()
396 uint32_t bitMask; in MacsecSetException() local
401 GET_USER_EXCEPTION_FLAG(bitMask, exception); in MacsecSetException()
402 if (bitMask) in MacsecSetException()
405 p_FmMacsec->userExceptions |= bitMask; in MacsecSetException()
407 p_FmMacsec->userExceptions &= ~bitMask; in MacsecSetException()
[all …]
H A Dfm_macsec_secy.h53 #define GET_EXCEPTION_FLAG(bitMask, exception) switch (exception){ \ argument
55 bitMask = FM_MACSEC_SECY_EX_FRAME_DISCARDED; break; \
56 default: bitMask = 0;break;}
64 #define GET_EVENT_FLAG(bitMask, event) switch (event){ \ argument
66 bitMask = FM_MACSEC_SECY_EV_NEXT_PN; break; \
67 default: bitMask = 0;break;}
H A Dfm_macsec_master.h60 #define GET_EXCEPTION_FLAG(bitMask, exception, id) switch (exception){ \ argument
62 bitMask = FM_MACSEC_EX_TX_SC(id); break; \
64 bitMask = FM_MACSEC_EX_ECC; break; \
65 default: bitMask = 0;break;}
70 #define GET_USER_EXCEPTION_FLAG(bitMask, exception) switch (exception){ \ argument
72 bitMask = FM_MACSEC_USER_EX_SINGLE_BIT_ECC; break; \
74 bitMask = FM_MACSEC_USER_EX_MULTI_BIT_ECC; break; \
75 default: bitMask = 0;break;}
84 #define GET_EVENT_FLAG(bitMask, event, id) switch (event){ \ argument
86 bitMask = FM_MACSEC_EV_TX_SC_NEXT_PN(id); break; \
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlgc.h80 #define bitmask(b) (1<<(b)) macro
81 #define bit2mask(b1,b2) (bitmask(b1) | bitmask(b2))
82 #define l_setbit(x,b) setbits(x, bitmask(b))
83 #define resetbit(x,b) resetbits(x, bitmask(b))
84 #define testbit(x,b) testbits(x, bitmask(b))
103 (!testbits((x)->gch.marked, WHITEBITS | bitmask(BLACKBIT)))
/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/share/man/man4/
H A Dgpio.4131 This is a bitmask of the pins on the
158 This is a bitmask of pins on the GPIO board that we would like to expose
160 To expose pin 0, 4 and 7, use the bitmask of
163 This is a bitmask of pins on the GPIO board that will be set to ON at host
165 To set pin 2, 5 and 13 to be set ON at boot, use the bitmask of
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchBaseInfo.h63 // Used to differentiate between target-specific "direct" flags and "bitmask"
65 // multiple "bitmask" flags.
71 // Given a MachineOperand that may carry out "bitmask" flags, such as MO_RELAX,
77 // Add MO_RELAX "bitmask" flag when FeatureRelax is enabled.
82 // \returns true if the given MachineOperand has MO_RELAX "bitmask" flag.
/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/sbin/ipfw/tests/
H A Dtest_add_rule.py224 … arg1=InsnLookup.compile_arg1(lookup_type=IpFwTableLookupType.LOOKUP_MARK, bitmask=True),
225 bitmask=0xf00baa1),
244 … arg1=InsnLookup.compile_arg1(lookup_type=IpFwTableLookupType.LOOKUP_SRC_MAC, bitmask=True),
245 bitmask="1a:2b:3c:4d:5e:6f"),
264 … arg1=InsnLookup.compile_arg1(lookup_type=IpFwTableLookupType.LOOKUP_DST_IP4, bitmask=True),
265 bitmask="60.43.26.0"),
284 … arg1=InsnLookup.compile_arg1(lookup_type=IpFwTableLookupType.LOOKUP_SRC_IP4, bitmask=True),
285 bitmask="0.0.0.255"),
304 … arg1=InsnLookup.compile_arg1(lookup_type=IpFwTableLookupType.LOOKUP_JAIL, bitmask=True),
305 bitmask=64640),
[all …]
/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...]
/freebsd/sys/dev/qat/qat_api/include/
H A Dcpa_types.h137 #define CPA_BITMAP_BIT_TEST(bitmask, bit) \ argument
138 ((bitmask[(bit)/32]) & (0x1 << ((bit)%32)))
145 #define CPA_BITMAP_BIT_SET(bitmask, bit) \ argument
146 (bitmask[(bit)/32] |= (0x1 << ((bit)%32)))
153 #define CPA_BITMAP_BIT_CLEAR(bitmask, bit) \ argument
154 (bitmask[(bit)/32] &= ~(0x1 << ((bit)%32)))
/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_pcd.h93 #define GET_FM_PCD_EXCEPTION_FLAG(bitMask, exception) \ argument
96 bitMask = FM_EX_KG_DOUBLE_ECC; break; \
98 bitMask = FM_PCD_EX_PLCR_DOUBLE_ECC; break; \
100 bitMask = FM_EX_KG_KEYSIZE_OVERFLOW; break; \
102 bitMask = FM_PCD_EX_PLCR_INIT_ENTRY_ERROR; break; \
104 bitMask = FM_PCD_EX_PLCR_PRAM_SELF_INIT_COMPLETE; break; \
106 bitMask = FM_PCD_EX_PLCR_ATOMIC_ACTION_COMPLETE; break; \
108 bitMask = FM_PCD_EX_PRS_DOUBLE_ECC; break; \
110 bitMask = FM_PCD_EX_PRS_SINGLE_ECC; break; \
111 default: bitMask = 0;break;}

12345678910>>...27