Home
last modified time | relevance | path

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

12345678910>>...89

/kernel/linux/linux-6.6/drivers/acpi/pmic/
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 = TPS68470_VCMVAL_VCVOLT_MASK,
[all …]
/kernel/linux/linux-5.10/drivers/acpi/pmic/
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 = TPS68470_VCMVAL_VCVOLT_MASK,
[all …]
/kernel/linux/linux-6.6/tools/power/cpupower/utils/helpers/
Dbitmask.h11 struct bitmask { struct
16 struct bitmask *bitmask_alloc(unsigned int n); argument
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 *bmp);
24 unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i);
25 unsigned int bitmask_last(const struct bitmask *bmp);
26 int bitmask_isallclear(const struct bitmask *bmp);
[all …]
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 bmp to value v (0 or 1) */
[all …]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/
Dbitmask.h11 struct bitmask { struct
16 struct bitmask *bitmask_alloc(unsigned int n); argument
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 *bmp);
24 unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i);
25 unsigned int bitmask_last(const struct bitmask *bmp);
26 int bitmask_isallclear(const struct bitmask *bmp);
[all …]
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 bmp to value v (0 or 1) */
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_llh_internal.h109 /* bitmask for bitfield itr_reg_res_dsbl */
119 /* bitmask for bitfield itr_reset */
129 /* bitmask for bitfield rsc_delay */
138 /* bitmask for bitfield dca{d}_cpuid[7:0] */
152 /* bitmask for bitfield dca_en */
154 /* inverted bitmask for bitfield dca_en */
170 /* bitmask for bitfield dca_mode[3:0] */
172 /* inverted bitmask for bitfield dca_mode[3:0] */
190 /* bitmask for bitfield desc{d}_data_size[4:0] */
192 /* inverted bitmask for bitfield desc{d}_data_size[4:0] */
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_llh_internal.h109 /* bitmask for bitfield itr_reg_res_dsbl */
119 /* bitmask for bitfield itr_reset */
129 /* bitmask for bitfield rsc_delay */
138 /* bitmask for bitfield dca{d}_cpuid[7:0] */
152 /* bitmask for bitfield dca_en */
154 /* inverted bitmask for bitfield dca_en */
170 /* bitmask for bitfield dca_mode[3:0] */
172 /* inverted bitmask for bitfield dca_mode[3:0] */
190 /* bitmask for bitfield desc{d}_data_size[4:0] */
192 /* inverted bitmask for bitfield desc{d}_data_size[4:0] */
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/brocade/bna/
Dbna.h114 #define is_xxx_enable(mode, bitmask, xxx) ((bitmask & xxx) && (mode & xxx)) argument
116 #define is_xxx_disable(mode, bitmask, xxx) ((bitmask & xxx) && !(mode & xxx)) argument
118 #define xxx_enable(mode, bitmask, xxx) \ argument
120 bitmask |= xxx; \
124 #define xxx_disable(mode, bitmask, xxx) \ argument
126 bitmask |= xxx; \
130 #define xxx_inactive(mode, bitmask, xxx) \ argument
132 bitmask &= ~xxx; \
136 #define is_promisc_enable(mode, bitmask) \ argument
137 is_xxx_enable(mode, bitmask, BNA_RXMODE_PROMISC)
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbna.h114 #define is_xxx_enable(mode, bitmask, xxx) ((bitmask & xxx) && (mode & xxx)) argument
116 #define is_xxx_disable(mode, bitmask, xxx) ((bitmask & xxx) && !(mode & xxx)) argument
118 #define xxx_enable(mode, bitmask, xxx) \ argument
120 bitmask |= xxx; \
124 #define xxx_disable(mode, bitmask, xxx) \ argument
126 bitmask |= xxx; \
130 #define xxx_inactive(mode, bitmask, xxx) \ argument
132 bitmask &= ~xxx; \
136 #define is_promisc_enable(mode, bitmask) \ argument
137 is_xxx_enable(mode, bitmask, BNA_RXMODE_PROMISC)
[all …]
/kernel/linux/linux-6.6/net/netfilter/
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 & XT_PHYSDEV_OP_OUT)) in physdev_mt()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
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 & XT_PHYSDEV_OP_OUT)) in physdev_mt()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2_llh_internal.h34 /* bitmask for bitfield rpf_new_rpf_en */
36 /* inverted bitmask for bitfield rpf_new_rpf_en */
53 /* bitmask for bitfield l2_uc_req_tag0{f}[2:0] */
55 /* inverted bitmask for bitfield l2_uc_req_tag0{f}[2:0] */
71 /* bitmask for bitfield rpf_l2_bc_req_tag */
73 /* inverted bitmask for bitfield rpf_l2_bc_req_tag */
90 /* bitmask for bitfield rpf_rss_red1_data[4:0] */
107 /* bitmask for bitfield vlan_req_tag0{f}[3:0] */
109 /* inverted bitmask for bitfield vlan_req_tag0{f}[3:0] */
142 /* bitmask for bitfield tx_tc_q_rand_map_en */
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2_llh_internal.h34 /* bitmask for bitfield rpf_new_rpf_en */
36 /* inverted bitmask for bitfield rpf_new_rpf_en */
53 /* bitmask for bitfield l2_uc_req_tag0{f}[2:0] */
55 /* inverted bitmask for bitfield l2_uc_req_tag0{f}[2:0] */
71 /* bitmask for bitfield rpf_l2_bc_req_tag */
73 /* inverted bitmask for bitfield rpf_l2_bc_req_tag */
90 /* bitmask for bitfield rpf_rss_red1_data[4:0] */
107 /* bitmask for bitfield vlan_req_tag0{f}[3:0] */
109 /* inverted bitmask for bitfield vlan_req_tag0{f}[3:0] */
142 /* bitmask for bitfield tx_tc_q_rand_map_en */
[all …]
/kernel/linux/linux-5.10/net/bridge/netfilter/
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 & EBT_STP_HELLOTIME) { in ebt_filter_config()
[all …]
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 & ~EBT_IP_MASK || info->invflags & ~EBT_IP_MASK) in ebt_ip_mt_check()
[all …]
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()
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 & (EBT_IP6_DPORT | EBT_IP6_SPORT)) { in ebt_ip6_mt_check()
[all …]
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 & EBT_ARP_DST_MAC) { in ebt_arp_mt()
[all …]
/kernel/linux/linux-6.6/net/bridge/netfilter/
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 & EBT_STP_HELLOTIME) { in ebt_filter_config()
[all …]
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 & ~EBT_IP_MASK || info->invflags & ~EBT_IP_MASK) in ebt_ip_mt_check()
[all …]
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()
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 & (EBT_IP6_DPORT | EBT_IP6_SPORT)) { in ebt_ip6_mt_check()
[all …]
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 & EBT_ARP_DST_MAC) { in ebt_arp_mt()
[all …]
/kernel/uniproton/src/arch/include/
Dprt_gic_external.h85 U32 bitMask; in OsGicRmwReg() local
89 bitMask = (1u << bitWidth) - 1u; // 每个硬中断对应的bit掩码 in OsGicRmwReg()
94 regVal &= ~(bitMask << offset); // 清除旧值 in OsGicRmwReg()
95 regVal |= ((val & bitMask) << offset); // 设置新值 in OsGicRmwReg()
108 U32 bitMask; in OsGicSetReg() local
112 bitMask = (1u << bitWidth) - 1u; // 每个硬中断对应的bit掩码 in OsGicSetReg()
116 regVal = ((val & bitMask) << offset); // 设置新值 in OsGicSetReg()
129 U32 bitMask; in OsGicGetReg() local
133 bitMask = (1u << bitWidth) - 1u; in OsGicGetReg()
139 return (regVal & (bitMask << offset)) >> offset; in OsGicGetReg()

12345678910>>...89