Home
last modified time | relevance | path

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

12345678910>>...44

/linux/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 = TPS68470_VCMVAL_VCVOLT_MASK,
[all …]
/linux/tools/power/cpupower/utils/helpers/
H A 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 …]
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 bmp to value v (0 or 1) */
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_llh_internal.h141 /* bitmask for bitfield itr_reg_res_dsbl */
151 /* bitmask for bitfield itr_reset */
161 /* bitmask for bitfield rsc_delay */
170 /* bitmask for bitfield dca{d}_cpuid[7:0] */
184 /* bitmask for bitfield dca_en */
186 /* inverted bitmask for bitfield dca_en */
202 /* bitmask for bitfield dca_mode[3:0] */
204 /* inverted bitmask for bitfield dca_mode[3:0] */
222 /* bitmask for bitfield desc{d}_data_size[4:0] */
224 /* inverted bitmask for bitfield desc{d}_data_size[4:0] */
[all …]
/linux/drivers/net/ethernet/brocade/bna/
H A 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/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A 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 …]
/linux/net/bridge/netfilter/
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 & EBT_STP_HELLOTIME) { in ebt_filter_config()
[all …]
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 & ~EBT_IP_MASK || info->invflags & ~EBT_IP_MASK) 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()
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 & (EBT_IP6_DPORT | EBT_IP6_SPORT)) { 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 & EBT_ARP_DST_MAC) { 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()
/linux/drivers/staging/rtl8723bs/include/
H A Dhal_intf.h230 u32 rtw_hal_read_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask);
231 void rtw_hal_write_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data);
232 u32 rtw_hal_read_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask);
233 void rtw_hal_write_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
235 #define PHY_QueryBBReg(Adapter, RegAddr, BitMask) rtw_hal_read_bbreg((Adapter), (RegAddr), (BitMask argument
236 #define PHY_SetBBReg(Adapter, RegAddr, BitMask, Data) rtw_hal_write_bbreg((Adapter), (RegAddr), (Bi… argument
237 …PHY_QueryRFReg(Adapter, eRFPath, RegAddr, BitMask) rtw_hal_read_rfreg((Adapter), (eRFPath), (RegAd… argument
238 …Y_SetRFReg(Adapter, eRFPath, RegAddr, BitMask, Data) rtw_hal_write_rfreg((Adapter), (eRFPath), (Re… argument
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_pool.c12 fs_bulk->bitmask = kvcalloc(BITS_TO_LONGS(bulk_len), sizeof(unsigned long), in mlx5_fs_bulk_init()
14 if (!fs_bulk->bitmask) in mlx5_fs_bulk_init()
19 set_bit(i, fs_bulk->bitmask); in mlx5_fs_bulk_init()
26 kvfree(fs_bulk->bitmask); in mlx5_fs_bulk_cleanup()
31 return bitmap_weight(bulk->bitmask, bulk->bulk_len); in mlx5_fs_bulk_get_free_amount()
37 int free_index = find_first_bit(fs_bulk->bitmask, fs_bulk->bulk_len); in mlx5_fs_bulk_acquire_index()
43 clear_bit(free_index, fs_bulk->bitmask); in mlx5_fs_bulk_acquire_index()
51 if (test_bit(index, fs_bulk->bitmask)) in mlx5_fs_bulk_release_index()
54 set_bit(index, fs_bulk->bitmask); in mlx5_fs_bulk_release_index()
/linux/drivers/hwmon/
H A 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/arch/arm/mach-omap2/
H A Dvp.h37 * @vpconfig_erroroffset_mask: ERROROFFSET bitmask in the PRM_VP*_CONFIG reg
38 * @vpconfig_errorgain_mask: ERRORGAIN bitmask in the PRM_VP*_CONFIG reg
39 * @vpconfig_initvoltage_mask: INITVOLTAGE bitmask in the PRM_VP*_CONFIG reg
40 * @vpconfig_timeouten: TIMEOUT bitmask in the PRM_VP*_CONFIG reg
41 * @vpconfig_initvdd: INITVDD bitmask in the PRM_VP*_CONFIG reg
42 * @vpconfig_forceupdate: FORCEUPDATE bitmask in the PRM_VP*_CONFIG reg
43 * @vpconfig_vpenable: VPENABLE bitmask in the PRM_VP*_CONFIG reg
H A Dvc.h23 * @cmd_on_mask: ON bitmask in PRM_VC_CMD_VAL* register
24 * @valid: VALID bitmask in PRM_VC_BYPASS_VAL register
72 * @smps_sa_mask: i2c slave address bitmask in the PRM_VC_SMPS_SA register
73 * @smps_volra_mask: VOLRA* bitmask in the PRM_VC_VOL_RA register
74 * @smps_cmdra_mask: CMDRA* bitmask in the PRM_VC_CMD_RA register
/linux/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()
/linux/net/netfilter/
H A 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/drivers/staging/rtl8723bs/hal/
H A Dodm_RegConfig8723B.c109 u32 Bitmask, in odm_ConfigBB_AGC_8723B() argument
113 PHY_SetBBReg(pDM_Odm->Adapter, Addr, Bitmask, Data); in odm_ConfigBB_AGC_8723B()
122 u32 Bitmask, in odm_ConfigBB_PHY_REG_PG_8723B() argument
129 PHY_StoreTxPowerByRate(pDM_Odm->Adapter, RfPath, Addr, Bitmask, Data); in odm_ConfigBB_PHY_REG_PG_8723B()
136 u32 Bitmask, in odm_ConfigBB_PHY_8723B() argument
153 PHY_SetBBReg(pDM_Odm->Adapter, Addr, Bitmask, Data); in odm_ConfigBB_PHY_8723B()
H A Dhal_intf.c237 u32 rtw_hal_read_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask) in rtw_hal_read_bbreg() argument
239 return PHY_QueryBBReg_8723B(padapter, RegAddr, BitMask); in rtw_hal_read_bbreg()
241 void rtw_hal_write_bbreg(struct adapter *padapter, u32 RegAddr, u32 BitMask, u32 Data) in rtw_hal_write_bbreg() argument
243 PHY_SetBBReg_8723B(padapter, RegAddr, BitMask, Data); in rtw_hal_write_bbreg()
246 u32 rtw_hal_read_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask) in rtw_hal_read_rfreg() argument
248 return PHY_QueryRFReg_8723B(padapter, eRFPath, RegAddr, BitMask); in rtw_hal_read_rfreg()
250 void rtw_hal_write_rfreg(struct adapter *padapter, u32 eRFPath, u32 RegAddr, u32 BitMask, u32 Data) in rtw_hal_write_rfreg() argument
252 PHY_SetRFReg_8723B(padapter, eRFPath, RegAddr, BitMask, Data); in rtw_hal_write_rfreg()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A 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);
H A Dphy.c17 u32 rtl92s_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl92s_phy_query_bb_reg() argument
22 rtl_dbg(rtlpriv, COMP_RF, DBG_TRACE, "regaddr(%#x), bitmask(%#x)\n", in rtl92s_phy_query_bb_reg()
23 regaddr, bitmask); in rtl92s_phy_query_bb_reg()
26 bitshift = calculate_bit_shift(bitmask); in rtl92s_phy_query_bb_reg()
27 returnvalue = (originalvalue & bitmask) >> bitshift; in rtl92s_phy_query_bb_reg()
30 bitmask, regaddr, originalvalue); in rtl92s_phy_query_bb_reg()
36 void rtl92s_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, in rtl92s_phy_set_bb_reg() argument
43 "regaddr(%#x), bitmask(%#x), data(%#x)\n", in rtl92s_phy_set_bb_reg()
44 regaddr, bitmask, data); in rtl92s_phy_set_bb_reg()
46 if (bitmask != MASKDWORD) { in rtl92s_phy_set_bb_reg()
[all …]
/linux/Documentation/ABI/stable/
H A Dsysfs-devices-system-cpu60 Values: hexadecimal bitmask.
71 Values: hexadecimal bitmask.
81 Values: hexadecimal bitmask.
90 Values: hexadecimal bitmask.
100 Values: hexadecimal bitmask.
111 Values: hexadecimal bitmask.
/linux/fs/bcachefs/
H A Dalloc_background_format.h81 BITMASK(BCH_ALLOC_V4_NEED_DISCARD, struct bch_alloc_v4, flags, 0, 1)
82 BITMASK(BCH_ALLOC_V4_NEED_INC_GEN, struct bch_alloc_v4, flags, 1, 2)
83 BITMASK(BCH_ALLOC_V4_BACKPOINTERS_START,struct bch_alloc_v4, flags, 2, 8)
84 BITMASK(BCH_ALLOC_V4_NR_BACKPOINTERS, struct bch_alloc_v4, flags, 8, 14)

12345678910>>...44