HomeSort by relevance Sort by last modified time
    Searched refs:bitmask (Results 1 - 25 of 210) sorted by null

1 2 3 4 5 6 7 8 9

  /external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
bitmask.h 2 * bitmask header file
30 * ==== Allocate and free `struct bitmask *`
32 * bitmask_alloc(n): Allocate a new struct bitmask with a size of n bits
33 * bitmask_free(bmp): Free struct bitmask
45 * bitmask_setall(bmp): Set all bits in bitmask: bmp = ~0
46 * bitmask_clearall(bmp): Clear all bits in bitmask: bmp = 0
55 * bitmask_nbits(bmp): Size in bits of entire bitmask
67 * bitmask_setbit(bmp, i): Set a single bit i in bitmask
68 * bitmask_clearbit(bmp, i): Clear a single bit i in bitmask
73 * bitmask_subset(bmp1, bmp2): True if first bitmask is subset of secon
    [all...]
meminfo.h 7 extern int online_memmask(struct bitmask *memmask);
8 extern int present_memmask(struct bitmask *memmask);
cpuinfo.h 9 struct bitmask *sched_domain;
15 extern struct bitmask **domains;
18 extern int online_cpumask(struct bitmask *cpumask);
19 extern int present_cpumask(struct bitmask *cpumask);
libbitmask.c 2 * bitmask user library implementation.
30 #include "bitmask.h"
33 struct bitmask { struct
58 /* Return the value (0 or 1) of bit n in bitmask bmp */
59 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n)
67 /* Set bit n in bitmask bmp to value v (0 or 1) */
68 static void _setbit(struct bitmask *bmp, unsigned int n, unsigned int v)
80 * Allocate and free `struct bitmask *`
83 /* Allocate a new `struct bitmask` with a size of n bits */
84 struct bitmask *bitmask_alloc(unsigned int n
    [all...]
  /external/libnetfilter_conntrack/src/conntrack/
grp.c 14 .bitmask[0] = (1 << ATTR_ORIG_IPV4_SRC) |
20 .bitmask[0] = (1 << ATTR_REPL_IPV4_SRC) |
26 .bitmask[0] = (1 << ATTR_ORIG_IPV6_SRC) |
32 .bitmask[0] = (1 << ATTR_REPL_IPV6_SRC) |
38 .bitmask[0] = (1 << ATTR_ORIG_PORT_SRC) |
44 .bitmask[0] = (1 << ATTR_REPL_PORT_SRC) |
50 .bitmask[0] = (1 << ATTR_ICMP_CODE) |
56 .bitmask[1] = (1 << (ATTR_MASTER_IPV4_SRC - 32)) |
62 .bitmask[1] = (1 << (ATTR_MASTER_IPV6_SRC - 32)) |
68 .bitmask[1] = (1 << (ATTR_MASTER_PORT_SRC - 32))
    [all...]
  /external/desugar/java/com/google/devtools/build/android/desugar/
BitFlags.java 22 * Returns {@code true} iff <b>all</b> bits in {@code bitmask} are set in {@code flags}. Trivially
23 * returns {@code true} if {@code bitmask} is 0.
25 public static boolean isSet(int flags, int bitmask) {
26 return (flags & bitmask) == bitmask;
30 * Returns {@code true} iff <b>none</b> of the bits in {@code bitmask} are set in {@code flags}.
31 * Trivially returns {@code true} if {@code bitmask} is 0.
33 public static boolean noneSet(int flags, int bitmask) {
34 return (flags & bitmask) == 0;
  /external/fio/lib/
ffz.h 40 static inline int ffz(unsigned long bitmask)
42 return ffs64(~bitmask);
46 #define ffz(bitmask) arch_ffz(bitmask)
49 static inline int ffz64(uint64_t bitmask)
51 return ffs64(~bitmask);
  /external/fio/arch/
arch-x86.h 23 static inline unsigned long arch_ffz(unsigned long bitmask)
25 __asm__("bsfl %1,%0" :"=r" (bitmask) :"r" (~bitmask));
26 return bitmask;
arch-ia64.h 17 static inline unsigned long arch_ffz(unsigned long bitmask)
19 return ia64_popcnt(bitmask & (~bitmask - 1));
arch-aarch64.h 15 static inline int arch_ffz(unsigned long bitmask)
18 if (~bitmask == 0) /* ffz() in lib/ffz.h does this. */
24 "r"(~bitmask));
arch-ppc.h 27 static inline int __ilog2(unsigned long bitmask)
31 asm (PPC_CNTLZL " %0,%1" : "=r" (lz) : "r" (bitmask));
35 static inline int arch_ffz(unsigned long bitmask)
37 if ((bitmask = ~bitmask) == 0)
39 return __ilog2(bitmask & -bitmask);
arch-x86_64.h 23 static inline unsigned long arch_ffz(unsigned long bitmask)
25 __asm__("bsf %1,%0" :"=r" (bitmask) :"r" (~bitmask));
26 return bitmask;
  /bionic/libc/kernel/uapi/linux/netfilter_bridge/
ebt_mark_m.h 28 __u8 bitmask; member in struct:ebt_mark_m_info
ebt_log.h 32 __u32 bitmask; member in struct:ebt_log_info
ebt_vlan.h 31 __u8 bitmask; member in struct:ebt_vlan_info
  /external/iptables/include/linux/netfilter_bridge/
ebt_mark_m.h 12 __u8 bitmask; member in struct:ebt_mark_m_info
  /external/kernel-headers/original/uapi/linux/netfilter_bridge/
ebt_mark_m.h 13 __u8 bitmask; member in struct:ebt_mark_m_info
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/netfilter_bridge/
ebt_mark_m.h 12 __u8 bitmask; member in struct:ebt_mark_m_info
  /external/iptables/extensions/
libxt_physdev.c 51 info->bitmask |= XT_PHYSDEV_OP_IN;
58 info->bitmask |= XT_PHYSDEV_OP_OUT;
61 info->bitmask |= XT_PHYSDEV_OP_ISIN;
66 info->bitmask |= XT_PHYSDEV_OP_ISOUT;
73 info->bitmask |= XT_PHYSDEV_OP_BRIDGED;
90 if (info->bitmask & XT_PHYSDEV_OP_ISIN)
93 if (info->bitmask & XT_PHYSDEV_OP_IN)
97 if (info->bitmask & XT_PHYSDEV_OP_ISOUT)
100 if (info->bitmask & XT_PHYSDEV_OP_OUT)
103 if (info->bitmask & XT_PHYSDEV_OP_BRIDGED
    [all...]
  /system/bt/stack/include/
a2dp_codec_api.h 719 // Use NOLINT to suppress missing parentheses warnings around bitmask.
720 #define DEFINE_ENUM_FLAG_OPERATORS(bitmask) \
722 inline constexpr bitmask operator&(bitmask X, bitmask Y) { /* NOLINT */
    [all...]
  /bionic/linker/
linker_debug.h 87 extern uint32_t bitmask[];
92 bitmask[((offset) >> 12) >> 5] |= (1 << (((offset) >> 12) & 31)); \
97 bitmask[((offset) >> 12) >> 3] |= (1 << (((offset) >> 12) & 7)); \
  /system/libfmq/
EventFlag.cpp 109 status_t EventFlag::wake(uint32_t bitmask) {
111 * Return early if there are no set bits in bitmask.
113 if (bitmask == 0) {
118 uint32_t old = std::atomic_fetch_or(mEfWordPtr, bitmask);
121 * already available for all set bits from bitmask.
123 if ((~old & bitmask) != 0) {
125 INT_MAX, NULL, NULL, bitmask);
135 * Wait for any of the bits in the bitmask to be set
138 status_t EventFlag::waitHelper(uint32_t bitmask, uint32_t* efState, int64_t timeoutNanoSeconds) {
140 * Return early if there are no set bits in bitmask
    [all...]
  /bionic/libc/kernel/uapi/linux/netfilter/
xt_physdev.h 35 __u8 bitmask; member in struct:xt_physdev_info
  /external/iptables/include/linux/netfilter/
xt_ipvs.h 26 __u8 bitmask; member in struct:xt_ipvs_mtinfo
xt_physdev.h 20 __u8 bitmask; member in struct:xt_physdev_info

Completed in 2709 milliseconds

1 2 3 4 5 6 7 8 9