Home
last modified time | relevance | path

Searched refs:bitmask (Results 1 - 25 of 376) sorted by relevance

12345678910>>...16

/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/
H A Dbitmask.h11 struct bitmask { struct
16 struct bitmask *bitmask_alloc(unsigned int n);
17 void bitmask_free(struct bitmask *bmp);
19 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i);
20 struct bitmask *bitmask_setall(struct bitmask *bmp);
21 struct bitmask *bitmask_clearall(struct bitmask *bmp);
23 unsigned int bitmask_first(const struct bitmask *bm
[all...]
H A Dbitmask.c6 #include <helpers/bitmask.h>
20 * Allocate and free `struct bitmask *`
23 /* Allocate a new `struct bitmask` with a size of n bits */
24 struct bitmask *bitmask_alloc(unsigned int n) in bitmask_alloc()
26 struct bitmask *bmp; in bitmask_alloc()
40 /* Free `struct bitmask` */
41 void bitmask_free(struct bitmask *bmp) in bitmask_free()
61 /* Return the value (0 or 1) of bit n in bitmask bmp */
62 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n) in _getbit()
70 /* Set bit n in bitmask bm
[all...]
/kernel/linux/linux-6.6/tools/power/cpupower/utils/helpers/
H A Dbitmask.h11 struct bitmask { struct
16 struct bitmask *bitmask_alloc(unsigned int n);
17 void bitmask_free(struct bitmask *bmp);
19 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i);
20 struct bitmask *bitmask_setall(struct bitmask *bmp);
21 struct bitmask *bitmask_clearall(struct bitmask *bmp);
23 unsigned int bitmask_first(const struct bitmask *bm
[all...]
H A Dbitmask.c6 #include <helpers/bitmask.h>
20 * Allocate and free `struct bitmask *`
23 /* Allocate a new `struct bitmask` with a size of n bits */
24 struct bitmask *bitmask_alloc(unsigned int n) in bitmask_alloc()
26 struct bitmask *bmp; in bitmask_alloc()
40 /* Free `struct bitmask` */
41 void bitmask_free(struct bitmask *bmp) in bitmask_free()
61 /* Return the value (0 or 1) of bit n in bitmask bmp */
62 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n) in _getbit()
70 /* Set bit n in bitmask bm
[all...]
/kernel/linux/linux-5.10/drivers/acpi/pmic/
H A Dtps68470_pmic.c21 u32 bitmask; /* bit mask for power, clock */ member
40 .bitmask = S_IO_I2C_EN,
46 .bitmask = BIT(0),
52 .bitmask = BIT(0),
58 .bitmask = BIT(0),
64 .bitmask = BIT(0),
70 .bitmask = BIT(0),
80 .bitmask = TPS68470_VSIOVAL_IOVOLT_MASK,
86 .bitmask = TPS68470_VIOVAL_IOVOLT_MASK,
92 .bitmask
197 pmic_get_reg_bit(u64 address, const struct tps68470_pmic_table *table, const unsigned int table_size, int *reg, int *bitmask) pmic_get_reg_bit() argument
217 tps68470_pmic_get_power(struct regmap *regmap, int reg, int bitmask, u64 *value) tps68470_pmic_get_power() argument
229 tps68470_pmic_get_vr_val(struct regmap *regmap, int reg, int bitmask, u64 *value) tps68470_pmic_get_vr_val() argument
241 tps68470_pmic_get_clk(struct regmap *regmap, int reg, int bitmask, u64 *value) tps68470_pmic_get_clk() argument
253 tps68470_pmic_get_clk_freq(struct regmap *regmap, int reg, int bitmask, u64 *value) tps68470_pmic_get_clk_freq() argument
265 ti_tps68470_regmap_update_bits(struct regmap *regmap, int reg, int bitmask, u64 value) ti_tps68470_regmap_update_bits() argument
284 int reg, ret, bitmask; tps68470_pmic_common_handler() local
[all...]
/kernel/linux/linux-6.6/drivers/acpi/pmic/
H A Dtps68470_pmic.c21 u32 bitmask; /* bit mask for power, clock */ member
40 .bitmask = S_IO_I2C_EN,
46 .bitmask = BIT(0),
52 .bitmask = BIT(0),
58 .bitmask = BIT(0),
64 .bitmask = BIT(0),
70 .bitmask = BIT(0),
80 .bitmask = TPS68470_VSIOVAL_IOVOLT_MASK,
86 .bitmask = TPS68470_VIOVAL_IOVOLT_MASK,
92 .bitmask
197 pmic_get_reg_bit(u64 address, const struct tps68470_pmic_table *table, const unsigned int table_size, int *reg, int *bitmask) pmic_get_reg_bit() argument
217 tps68470_pmic_get_power(struct regmap *regmap, int reg, int bitmask, u64 *value) tps68470_pmic_get_power() argument
229 tps68470_pmic_get_vr_val(struct regmap *regmap, int reg, int bitmask, u64 *value) tps68470_pmic_get_vr_val() argument
241 tps68470_pmic_get_clk(struct regmap *regmap, int reg, int bitmask, u64 *value) tps68470_pmic_get_clk() argument
253 tps68470_pmic_get_clk_freq(struct regmap *regmap, int reg, int bitmask, u64 *value) tps68470_pmic_get_clk_freq() argument
265 ti_tps68470_regmap_update_bits(struct regmap *regmap, int reg, int bitmask, u64 value) ti_tps68470_regmap_update_bits() argument
284 int reg, ret, bitmask; tps68470_pmic_common_handler() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
H A Dbna.h114 #define is_xxx_enable(mode, bitmask, xxx) ((bitmask & xxx) && (mode & xxx))
116 #define is_xxx_disable(mode, bitmask, xxx) ((bitmask & xxx) && !(mode & xxx))
118 #define xxx_enable(mode, bitmask, xxx) \
120 bitmask |= xxx; \
124 #define xxx_disable(mode, bitmask, xxx) \
126 bitmask |= xxx; \
130 #define xxx_inactive(mode, bitmask, xxx) \
132 bitmask
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/brocade/bna/
H A Dbna.h114 #define is_xxx_enable(mode, bitmask, xxx) ((bitmask & xxx) && (mode & xxx))
116 #define is_xxx_disable(mode, bitmask, xxx) ((bitmask & xxx) && !(mode & xxx))
118 #define xxx_enable(mode, bitmask, xxx) \
120 bitmask |= xxx; \
124 #define xxx_disable(mode, bitmask, xxx) \
126 bitmask |= xxx; \
130 #define xxx_inactive(mode, bitmask, xxx) \
132 bitmask
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dxt_physdev.c36 if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) && in physdev_mt()
39 if ((info->bitmask & XT_PHYSDEV_OP_ISIN) && in physdev_mt()
42 if ((info->bitmask & XT_PHYSDEV_OP_ISOUT) && in physdev_mt()
45 if ((info->bitmask & XT_PHYSDEV_OP_IN) && in physdev_mt()
48 if ((info->bitmask & XT_PHYSDEV_OP_OUT) && in physdev_mt()
58 if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) && in physdev_mt()
65 if ((info->bitmask & XT_PHYSDEV_OP_ISIN && in physdev_mt()
67 (info->bitmask & XT_PHYSDEV_OP_ISOUT && in physdev_mt()
71 if (!(info->bitmask & XT_PHYSDEV_OP_IN)) in physdev_mt()
83 if (!(info->bitmask in physdev_mt()
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dxt_physdev.c36 if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) && in physdev_mt()
39 if ((info->bitmask & XT_PHYSDEV_OP_ISIN) && in physdev_mt()
42 if ((info->bitmask & XT_PHYSDEV_OP_ISOUT) && in physdev_mt()
45 if ((info->bitmask & XT_PHYSDEV_OP_IN) && in physdev_mt()
48 if ((info->bitmask & XT_PHYSDEV_OP_OUT) && in physdev_mt()
58 if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) && in physdev_mt()
65 if ((info->bitmask & XT_PHYSDEV_OP_ISIN && in physdev_mt()
67 (info->bitmask & XT_PHYSDEV_OP_ISOUT && in physdev_mt()
71 if (!(info->bitmask & XT_PHYSDEV_OP_IN)) in physdev_mt()
83 if (!(info->bitmask in physdev_mt()
[all...]
/kernel/linux/linux-5.10/net/bridge/netfilter/
H A Debt_ip.c49 if ((info->bitmask & EBT_IP_TOS) && in ebt_ip_mt()
52 if ((info->bitmask & EBT_IP_SOURCE) && in ebt_ip_mt()
56 if ((info->bitmask & EBT_IP_DEST) && in ebt_ip_mt()
60 if (info->bitmask & EBT_IP_PROTO) { in ebt_ip_mt()
63 if (!(info->bitmask & (EBT_IP_DPORT | EBT_IP_SPORT | in ebt_ip_mt()
74 if (info->bitmask & EBT_IP_DPORT) { in ebt_ip_mt()
81 if (info->bitmask & EBT_IP_SPORT) { in ebt_ip_mt()
88 if ((info->bitmask & EBT_IP_ICMP) && in ebt_ip_mt()
95 if ((info->bitmask & EBT_IP_IGMP) && in ebt_ip_mt()
112 if (info->bitmask in ebt_ip_mt_check()
[all...]
H A Debt_mark_m.c21 if (info->bitmask & EBT_MARK_OR) in ebt_mark_mt()
30 if (info->bitmask & ~EBT_MARK_MASK) in ebt_mark_mt_check()
32 if ((info->bitmask & EBT_MARK_OR) && (info->bitmask & EBT_MARK_AND)) in ebt_mark_mt_check()
34 if (!info->bitmask) in ebt_mark_mt_check()
43 uint8_t invert, bitmask; member
54 kern->bitmask = user->bitmask; in mark_mt_compat_from_user()
65 put_user(kern->bitmask, &user->bitmask)) in mark_mt_compat_to_user()
[all...]
H A Debt_stp.c51 if ((info->bitmask & EBT_STP_FLAGS) && in ebt_filter_config()
54 if (info->bitmask & EBT_STP_ROOTPRIO) { in ebt_filter_config()
60 if (info->bitmask & EBT_STP_ROOTADDR) { in ebt_filter_config()
67 if (info->bitmask & EBT_STP_ROOTCOST) { in ebt_filter_config()
73 if (info->bitmask & EBT_STP_SENDERPRIO) { in ebt_filter_config()
79 if (info->bitmask & EBT_STP_SENDERADDR) { in ebt_filter_config()
86 if (info->bitmask & EBT_STP_PORT) { in ebt_filter_config()
92 if (info->bitmask & EBT_STP_MSGAGE) { in ebt_filter_config()
98 if (info->bitmask & EBT_STP_MAXAGE) { in ebt_filter_config()
104 if (info->bitmask in ebt_filter_config()
[all...]
H A Debt_ip6.c49 if ((info->bitmask & EBT_IP6_TCLASS) && in ebt_ip6_mt()
53 if (((info->bitmask & EBT_IP6_SOURCE) && in ebt_ip6_mt()
57 ((info->bitmask & EBT_IP6_DEST) && in ebt_ip6_mt()
62 if (info->bitmask & EBT_IP6_PROTO) { in ebt_ip6_mt()
72 if (!(info->bitmask & (EBT_IP6_DPORT | in ebt_ip6_mt()
81 if (info->bitmask & EBT_IP6_DPORT) { in ebt_ip6_mt()
88 if (info->bitmask & EBT_IP6_SPORT) { in ebt_ip6_mt()
95 if ((info->bitmask & EBT_IP6_ICMP6) && in ebt_ip6_mt()
113 if (info->bitmask & ~EBT_IP6_MASK || info->invflags & ~EBT_IP6_MASK) in ebt_ip6_mt_check()
115 if (info->bitmask in ebt_ip6_mt_check()
[all...]
H A Debt_arp.c29 if ((info->bitmask & EBT_ARP_OPCODE) && in ebt_arp_mt()
32 if ((info->bitmask & EBT_ARP_HTYPE) && in ebt_arp_mt()
35 if ((info->bitmask & EBT_ARP_PTYPE) && in ebt_arp_mt()
39 if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_GRAT)) { in ebt_arp_mt()
55 if ((info->bitmask & EBT_ARP_SRC_IP) && in ebt_arp_mt()
59 if ((info->bitmask & EBT_ARP_DST_IP) && in ebt_arp_mt()
63 if ((info->bitmask & EBT_ARP_GRAT) && in ebt_arp_mt()
68 if (info->bitmask & (EBT_ARP_SRC_MAC | EBT_ARP_DST_MAC)) { in ebt_arp_mt()
74 if (info->bitmask & EBT_ARP_SRC_MAC) { in ebt_arp_mt()
85 if (info->bitmask in ebt_arp_mt()
[all...]
H A Debt_log.c32 if (info->bitmask & ~EBT_LOG_MASK) in ebt_log_tg_check()
79 unsigned int bitmask; in ebt_log_packet() local
93 bitmask = loginfo->u.log.logflags; in ebt_log_packet()
95 bitmask = NF_LOG_DEFAULT_MASK; in ebt_log_packet()
97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet()
114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet()
138 if ((bitmask & EBT_LOG_ARP) && in ebt_log_packet()
187 li.u.log.logflags = info->bitmask; in ebt_log_tg()
193 if (info->bitmask & EBT_LOG_NFLOG) in ebt_log_tg()
/kernel/linux/linux-6.6/net/bridge/netfilter/
H A Debt_ip.c49 if ((info->bitmask & EBT_IP_TOS) && in ebt_ip_mt()
52 if ((info->bitmask & EBT_IP_SOURCE) && in ebt_ip_mt()
56 if ((info->bitmask & EBT_IP_DEST) && in ebt_ip_mt()
60 if (info->bitmask & EBT_IP_PROTO) { in ebt_ip_mt()
63 if (!(info->bitmask & (EBT_IP_DPORT | EBT_IP_SPORT | in ebt_ip_mt()
74 if (info->bitmask & EBT_IP_DPORT) { in ebt_ip_mt()
81 if (info->bitmask & EBT_IP_SPORT) { in ebt_ip_mt()
88 if ((info->bitmask & EBT_IP_ICMP) && in ebt_ip_mt()
95 if ((info->bitmask & EBT_IP_IGMP) && in ebt_ip_mt()
112 if (info->bitmask in ebt_ip_mt_check()
[all...]
H A Debt_mark_m.c21 if (info->bitmask & EBT_MARK_OR) in ebt_mark_mt()
30 if (info->bitmask & ~EBT_MARK_MASK) in ebt_mark_mt_check()
32 if ((info->bitmask & EBT_MARK_OR) && (info->bitmask & EBT_MARK_AND)) in ebt_mark_mt_check()
34 if (!info->bitmask) in ebt_mark_mt_check()
43 uint8_t invert, bitmask; member
54 kern->bitmask = user->bitmask; in mark_mt_compat_from_user()
65 put_user(kern->bitmask, &user->bitmask)) in mark_mt_compat_to_user()
[all...]
H A Debt_stp.c51 if ((info->bitmask & EBT_STP_FLAGS) && in ebt_filter_config()
54 if (info->bitmask & EBT_STP_ROOTPRIO) { in ebt_filter_config()
60 if (info->bitmask & EBT_STP_ROOTADDR) { in ebt_filter_config()
67 if (info->bitmask & EBT_STP_ROOTCOST) { in ebt_filter_config()
73 if (info->bitmask & EBT_STP_SENDERPRIO) { in ebt_filter_config()
79 if (info->bitmask & EBT_STP_SENDERADDR) { in ebt_filter_config()
86 if (info->bitmask & EBT_STP_PORT) { in ebt_filter_config()
92 if (info->bitmask & EBT_STP_MSGAGE) { in ebt_filter_config()
98 if (info->bitmask & EBT_STP_MAXAGE) { in ebt_filter_config()
104 if (info->bitmask in ebt_filter_config()
[all...]
H A Debt_ip6.c49 if ((info->bitmask & EBT_IP6_TCLASS) && in ebt_ip6_mt()
53 if (((info->bitmask & EBT_IP6_SOURCE) && in ebt_ip6_mt()
57 ((info->bitmask & EBT_IP6_DEST) && in ebt_ip6_mt()
62 if (info->bitmask & EBT_IP6_PROTO) { in ebt_ip6_mt()
72 if (!(info->bitmask & (EBT_IP6_DPORT | in ebt_ip6_mt()
81 if (info->bitmask & EBT_IP6_DPORT) { in ebt_ip6_mt()
88 if (info->bitmask & EBT_IP6_SPORT) { in ebt_ip6_mt()
95 if ((info->bitmask & EBT_IP6_ICMP6) && in ebt_ip6_mt()
113 if (info->bitmask & ~EBT_IP6_MASK || info->invflags & ~EBT_IP6_MASK) in ebt_ip6_mt_check()
115 if (info->bitmask in ebt_ip6_mt_check()
[all...]
H A Debt_arp.c29 if ((info->bitmask & EBT_ARP_OPCODE) && in ebt_arp_mt()
32 if ((info->bitmask & EBT_ARP_HTYPE) && in ebt_arp_mt()
35 if ((info->bitmask & EBT_ARP_PTYPE) && in ebt_arp_mt()
39 if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_GRAT)) { in ebt_arp_mt()
55 if ((info->bitmask & EBT_ARP_SRC_IP) && in ebt_arp_mt()
59 if ((info->bitmask & EBT_ARP_DST_IP) && in ebt_arp_mt()
63 if ((info->bitmask & EBT_ARP_GRAT) && in ebt_arp_mt()
68 if (info->bitmask & (EBT_ARP_SRC_MAC | EBT_ARP_DST_MAC)) { in ebt_arp_mt()
74 if (info->bitmask & EBT_ARP_SRC_MAC) { in ebt_arp_mt()
85 if (info->bitmask in ebt_arp_mt()
[all...]
H A Debt_log.c32 if (info->bitmask & ~EBT_LOG_MASK) in ebt_log_tg_check()
79 unsigned int bitmask; in ebt_log_packet() local
93 bitmask = loginfo->u.log.logflags; in ebt_log_packet()
95 bitmask = NF_LOG_DEFAULT_MASK; in ebt_log_packet()
97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet()
114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet()
138 if ((bitmask & EBT_LOG_ARP) && in ebt_log_packet()
187 li.u.log.logflags = info->bitmask; in ebt_log_tg()
193 if (info->bitmask & EBT_LOG_NFLOG) in ebt_log_tg()
/kernel/linux/linux-5.10/arch/openrisc/include/asm/
H A Dcmpxchg.h69 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in cmpxchg_small() local
76 ret = (load32 & bitmask) >> bitoff; in cmpxchg_small()
80 old32 = (load32 & ~bitmask) | (old << bitoff); in cmpxchg_small()
81 new32 = (load32 & ~bitmask) | (new << bitoff); in cmpxchg_small()
101 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small() local
107 ret = (oldv & bitmask) >> bitoff; in xchg_small()
108 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small()
/kernel/linux/linux-6.6/arch/openrisc/include/asm/
H A Dcmpxchg.h69 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in cmpxchg_small() local
76 ret = (load32 & bitmask) >> bitoff; in cmpxchg_small()
80 old32 = (load32 & ~bitmask) | (old << bitoff); in cmpxchg_small()
81 new32 = (load32 & ~bitmask) | (new << bitoff); in cmpxchg_small()
101 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in xchg_small() local
107 ret = (oldv & bitmask) >> bitoff; in xchg_small()
108 newv = (oldv & ~bitmask) | (x << bitoff); in xchg_small()
/kernel/linux/linux-5.10/fs/unicode/
H A Dmkutf8data.c422 unsigned int bitmask; in tree_walk() local
449 bitmask = 1 << node->bitnum; in tree_walk()
450 if ((leftmask & bitmask) == 0) { in tree_walk()
451 leftmask |= bitmask; in tree_walk()
464 if ((rightmask & bitmask) == 0) { in tree_walk()
465 rightmask |= bitmask; in tree_walk()
478 leftmask &= ~bitmask; in tree_walk()
479 rightmask &= ~bitmask; in tree_walk()
664 unsigned int bitmask; in prune() local
746 bitmask in prune()
821 unsigned int bitmask; mark_nodes() local
947 unsigned int bitmask; index_nodes() local
1056 unsigned int bitmask; size_nodes() local
1190 unsigned int bitmask; emit() local
[all...]

Completed in 10 milliseconds

12345678910>>...16