Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.6.21/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 …]
/linux-6.6.21/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.c24 struct bitmask *bitmask_alloc(unsigned int n) in bitmask_alloc()
26 struct bitmask *bmp; in bitmask_alloc()
41 void bitmask_free(struct bitmask *bmp) in bitmask_free()
62 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n) in _getbit()
71 static void _setbit(struct bitmask *bmp, unsigned int n, unsigned int v) in _setbit()
115 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i) in bitmask_setbit()
122 struct bitmask *bitmask_setall(struct bitmask *bmp) in bitmask_setall()
131 struct bitmask *bitmask_clearall(struct bitmask *bmp) in bitmask_clearall()
140 int bitmask_isallclear(const struct bitmask *bmp) in bitmask_isallclear()
150 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i) in bitmask_isbitset()
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
Dxt_ipvs.c60 if (data->bitmask == XT_IPVS_IPVS_PROPERTY) { in ipvs_mt()
74 if (data->bitmask & XT_IPVS_PROTO) in ipvs_mt()
101 if (data->bitmask & XT_IPVS_VPORT) in ipvs_mt()
108 if (data->bitmask & XT_IPVS_VPORTCTL) in ipvs_mt()
116 if (data->bitmask & XT_IPVS_DIR) { in ipvs_mt()
132 if (data->bitmask & XT_IPVS_METHOD) in ipvs_mt()
139 if (data->bitmask & XT_IPVS_VADDR) { in ipvs_mt()
/linux-6.6.21/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 …]
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()
/linux-6.6.21/drivers/hwmon/
Dasc7621.c836 PREAD(in0_alarm, 0, PRI_HIGH, 0x41, 0, 0x01, 0, bitmask),
837 PREAD(in1_alarm, 1, PRI_HIGH, 0x41, 0, 0x01, 1, bitmask),
838 PREAD(in2_alarm, 2, PRI_HIGH, 0x41, 0, 0x01, 2, bitmask),
839 PREAD(in3_alarm, 3, PRI_HIGH, 0x41, 0, 0x01, 3, bitmask),
840 PREAD(in4_alarm, 4, PRI_HIGH, 0x42, 0, 0x01, 0, bitmask),
852 PREAD(fan1_alarm, 0, PRI_HIGH, 0x42, 0, 0x01, 2, bitmask),
853 PREAD(fan2_alarm, 1, PRI_HIGH, 0x42, 0, 0x01, 3, bitmask),
854 PREAD(fan3_alarm, 2, PRI_HIGH, 0x42, 0, 0x01, 4, bitmask),
855 PREAD(fan4_alarm, 3, PRI_HIGH, 0x42, 0, 0x01, 5, bitmask),
876 PREAD(temp1_alarm, 0, PRI_HIGH, 0x41, 0, 0x01, 4, bitmask),
[all …]
/linux-6.6.21/arch/openrisc/include/asm/
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()
/linux-6.6.21/fs/unicode/
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 = 1 << node->bitnum; in prune()
[all …]
/linux-6.6.21/drivers/staging/rtl8192u/
Dr819xU_phy.c67 void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, u32 bitmask, in rtl8192_setBBreg() argument
72 if (bitmask != bMaskDWord) { in rtl8192_setBBreg()
74 bitshift = ffs(bitmask) - 1; in rtl8192_setBBreg()
75 reg &= ~bitmask; in rtl8192_setBBreg()
92 u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask) in rtl8192_QueryBBReg() argument
97 bitshift = ffs(bitmask) - 1; in rtl8192_QueryBBReg()
99 return (reg & bitmask) >> bitshift; in rtl8192_QueryBBReg()
274 u32 reg_addr, u32 bitmask, u32 data) in rtl8192_phy_SetRFReg() argument
283 if (bitmask != bMask12Bits) { in rtl8192_phy_SetRFReg()
286 bitshift = ffs(bitmask) - 1; in rtl8192_phy_SetRFReg()
[all …]
Dr819xU_phy.h51 u32 bitmask, u32 data);
52 u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask);
55 u32 reg_addr, u32 bitmask, u32 data);
58 u32 reg_addr, u32 bitmask);
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dphy.c22 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92c_phy_query_rf_reg() argument
30 regaddr, rfpath, bitmask); in rtl92c_phy_query_rf_reg()
42 bitshift = calculate_bit_shift(bitmask); in rtl92c_phy_query_rf_reg()
43 readback_value = (original_value & bitmask) >> bitshift; in rtl92c_phy_query_rf_reg()
49 regaddr, rfpath, bitmask, original_value); in rtl92c_phy_query_rf_reg()
96 u32 regaddr, u32 bitmask, u32 data) in rtl92ce_phy_set_rf_reg() argument
104 regaddr, bitmask, data, rfpath); in rtl92ce_phy_set_rf_reg()
109 if (bitmask != RFREG_OFFSET_MASK) { in rtl92ce_phy_set_rf_reg()
113 bitshift = calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg()
115 ((original_value & (~bitmask)) | in rtl92ce_phy_set_rf_reg()
[all …]
/linux-6.6.21/drivers/clk/qcom/
Dreset.c34 mask = map->bitmask ? map->bitmask : BIT(map->bit); in qcom_reset_assert()
48 mask = map->bitmask ? map->bitmask : BIT(map->bit); in qcom_reset_deassert()
/linux-6.6.21/drivers/input/joystick/
Dtwidjoy.c54 int bitmask; member
96 for (bp = twidjoy_buttons; bp->bitmask; bp++) { in twidjoy_process_packet()
97 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
100 for (i = 0; i < bp->bitmask; i++) in twidjoy_process_packet()
194 for (bp = twidjoy_buttons; bp->bitmask; bp++) in twidjoy_connect()
195 for (i = 0; i < bp->bitmask; i++) in twidjoy_connect()
/linux-6.6.21/drivers/media/radio/
Dradio-zoltrix.c111 unsigned long long bitmask, f, m; in zoltrix_s_frequency() local
123 bitmask = 0xc480402c10080000ull; in zoltrix_s_frequency()
133 bitmask = (bitmask ^ ((f & 0xff) << 47) ^ ((f & 0xff00) << 30) ^ (stereo << 31)); in zoltrix_s_frequency()
135 if ((bitmask & 0x8000000000000000ull) != 0) { in zoltrix_s_frequency()
150 bitmask *= 2; in zoltrix_s_frequency()
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dphy.c19 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92cu_phy_query_rf_reg() argument
27 regaddr, rfpath, bitmask); in rtl92cu_phy_query_rf_reg()
35 bitshift = calculate_bit_shift(bitmask); in rtl92cu_phy_query_rf_reg()
36 readback_value = (original_value & bitmask) >> bitshift; in rtl92cu_phy_query_rf_reg()
39 regaddr, rfpath, bitmask, original_value); in rtl92cu_phy_query_rf_reg()
45 u32 regaddr, u32 bitmask, u32 data) in rtl92cu_phy_set_rf_reg() argument
53 regaddr, bitmask, data, rfpath); in rtl92cu_phy_set_rf_reg()
55 if (bitmask != RFREG_OFFSET_MASK) { in rtl92cu_phy_set_rf_reg()
59 bitshift = calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg()
61 ((original_value & (~bitmask)) | in rtl92cu_phy_set_rf_reg()
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
Dphy_common.c12 u32 regaddr, u32 bitmask) in rtl8723_phy_query_bb_reg() argument
18 "regaddr(%#x), bitmask(%#x)\n", regaddr, bitmask); in rtl8723_phy_query_bb_reg()
20 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_query_bb_reg()
21 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl8723_phy_query_bb_reg()
24 "BBR MASK=0x%x Addr[0x%x]=0x%x\n", bitmask, in rtl8723_phy_query_bb_reg()
31 u32 bitmask, u32 data) in rtl8723_phy_set_bb_reg() argument
37 "regaddr(%#x), bitmask(%#x), data(%#x)\n", regaddr, bitmask, in rtl8723_phy_set_bb_reg()
40 if (bitmask != MASKDWORD) { in rtl8723_phy_set_bb_reg()
42 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_set_bb_reg()
43 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl8723_phy_set_bb_reg()
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dphy.h52 u32 rtl92s_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask);
53 void rtl92s_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask,
57 u32 regaddr, u32 bitmask);
59 u32 regaddr, u32 bitmask, u32 data);
/linux-6.6.21/arch/mips/pci/
Dmsi-octeon.c199 u64 bitmask; in arch_teardown_msi_irq() local
224 bitmask = (1 << number_irqs) - 1; in arch_teardown_msi_irq()
226 bitmask <<= irq0; in arch_teardown_msi_irq()
227 if ((msi_free_irq_bitmask[index] & bitmask) != bitmask) in arch_teardown_msi_irq()
233 msi_free_irq_bitmask[index] &= ~bitmask; in arch_teardown_msi_irq()
234 msi_multiple_irq_bitmask[index] &= ~bitmask; in arch_teardown_msi_irq()

12345678910>>...12