/linux/drivers/acpi/pmic/ |
A D | tps68470_pmic.c | 46 .bitmask = BIT(0), 52 .bitmask = BIT(0), 58 .bitmask = BIT(0), 132 .bitmask = 0x1F, 138 .bitmask = 0x0F, 144 .bitmask = 0x13, 150 .bitmask = 0xFF, 156 .bitmask = 0xFF, 162 .bitmask = 0x83, 172 .bitmask = 0xF5, [all …]
|
/linux/tools/power/cpupower/utils/helpers/ |
A D | bitmask.h | 11 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); 25 unsigned int bitmask_last(const struct bitmask *bmp); 26 int bitmask_isallclear(const struct bitmask *bmp); 27 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i); [all …]
|
A D | bitmask.c | 24 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() 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() 156 unsigned int bitmask_first(const struct bitmask *bmp) in bitmask_first() 162 unsigned int bitmask_last(const struct bitmask *bmp) in bitmask_last() [all …]
|
/linux/drivers/net/ethernet/brocade/bna/ |
A D | bna.h | 114 #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; \ 126 bitmask |= xxx; \ 132 bitmask &= ~xxx; \ 142 #define promisc_enable(mode, bitmask) \ argument 145 #define promisc_disable(mode, bitmask) \ argument 157 #define default_enable(mode, bitmask) \ argument 160 #define default_disable(mode, bitmask) \ argument [all …]
|
/linux/net/netfilter/ |
A D | xt_physdev.c | 36 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() 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() 99 if (!(info->bitmask & XT_PHYSDEV_OP_MASK) || in physdev_mt_check() [all …]
|
A D | xt_ipvs.c | 60 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/net/bridge/netfilter/ |
A D | ebt_stp.c | 51 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() 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() 110 if (info->bitmask & EBT_STP_FWDD) { in ebt_filter_config() 135 if ((info->bitmask & EBT_STP_TYPE) && in ebt_stp_mt() 159 !(info->bitmask & EBT_STP_MASK)) in ebt_stp_mt_check() [all …]
|
A D | ebt_ip.c | 49 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() 128 if (info->bitmask & EBT_IP_ICMP) { in ebt_ip_mt_check() [all …]
|
A D | ebt_mark_m.c | 21 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()
|
A D | ebt_ip6.c | 49 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 …]
|
A D | ebt_arp.c | 29 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 …]
|
A D | ebt_log.c | 32 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/hwmon/ |
A D | asc7621.c | 836 PREAD(in0_alarm, 0, PRI_HIGH, 0x41, 0, 0x01, 0, bitmask), 837 PREAD(in1_alarm, 1, PRI_HIGH, 0x41, 0, 0x01, 1, bitmask), 897 bitmask), 899 bitmask), 901 bitmask), 903 bitmask), 906 bitmask), 908 bitmask), 910 bitmask), 912 bitmask), [all …]
|
/linux/arch/openrisc/include/asm/ |
A D | cmpxchg.h | 69 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/fs/unicode/ |
A D | mkutf8data.c | 422 unsigned int bitmask; in tree_walk() local 664 unsigned int bitmask; in prune() local 767 leftmask &= ~bitmask; in prune() 794 leftmask |= bitmask; in prune() 821 unsigned int bitmask; in mark_nodes() local 836 leftmask |= bitmask; in mark_nodes() 871 leftmask &= ~bitmask; in mark_nodes() 884 leftmask |= bitmask; in mark_nodes() 947 unsigned int bitmask; in index_nodes() local 1056 unsigned int bitmask; in size_nodes() local [all …]
|
/linux/drivers/staging/rtl8192u/ |
A D | r819xU_phy.c | 72 if (bitmask != bMaskDWord) { in rtl8192_setBBreg() 74 bitshift = ffs(bitmask) - 1; in rtl8192_setBBreg() 75 reg &= ~bitmask; in rtl8192_setBBreg() 97 bitshift = ffs(bitmask) - 1; in rtl8192_QueryBBReg() 287 reg &= ~bitmask; in rtl8192_phy_SetRFReg() 302 reg &= ~bitmask; in rtl8192_phy_SetRFReg() 336 bitshift = ffs(bitmask) - 1; in rtl8192_phy_QueryRFReg() 1646 u32 bitmask; in InitialGainOperateWorkItemCallBack() local 1656 bitmask = bMaskByte0; in InitialGainOperateWorkItemCallBack() 1668 bitmask = bMaskByte2; in InitialGainOperateWorkItemCallBack() [all …]
|
/linux/drivers/staging/r8188eu/include/ |
A D | Hal8188EPhyCfg.h | 151 #define PHY_SetBBReg(adapt, regaddr, bitmask, data) \ argument 152 rtl8188e_PHY_SetBBReg((adapt), (regaddr), (bitmask), (data)) 153 #define PHY_QueryRFReg(adapt, rfpath, regaddr, bitmask) \ argument 154 rtl8188e_PHY_QueryRFReg((adapt), (rfpath), (regaddr), (bitmask)) 155 #define PHY_SetRFReg(adapt, rfpath, regaddr, bitmask, data) \ argument 156 rtl8188e_PHY_SetRFReg((adapt), (rfpath), (regaddr), (bitmask), (data))
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
A D | phy.c | 22 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 = _rtl92c_phy_calculate_bit_shift(bitmask); 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() 115 ((original_value & (~bitmask)) | in rtl92ce_phy_set_rf_reg() 121 if (bitmask != RFREG_OFFSET_MASK) { in rtl92ce_phy_set_rf_reg() 127 ((original_value & (~bitmask)) | in rtl92ce_phy_set_rf_reg() [all …]
|
A D | phy.h | 56 u32 rtl92c_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask); 57 void rtl92c_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, 60 u32 regaddr, u32 bitmask); 62 u32 regaddr, u32 bitmask, u32 data); 97 u32 _rtl92c_phy_calculate_bit_shift(u32 bitmask); 104 u32 regaddr, u32 bitmask, u32 data);
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
A D | phy.c | 19 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 = _rtl92c_phy_calculate_bit_shift(bitmask); 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() 61 ((original_value & (~bitmask)) | in rtl92cu_phy_set_rf_reg() 66 if (bitmask != RFREG_OFFSET_MASK) { in rtl92cu_phy_set_rf_reg() 72 ((original_value & (~bitmask)) | in rtl92cu_phy_set_rf_reg() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
A D | phy_common.c | 12 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 40 if (bitmask != MASKDWORD) { in rtl8723_phy_set_bb_reg() 42 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_set_bb_reg() 50 regaddr, bitmask, data); in rtl8723_phy_set_bb_reg() 54 u32 rtl8723_phy_calculate_bit_shift(u32 bitmask) in rtl8723_phy_calculate_bit_shift() argument [all …]
|
/linux/drivers/input/joystick/ |
A D | twidjoy.c | 57 int bitmask; member 99 for (bp = twidjoy_buttons; bp->bitmask; bp++) { in twidjoy_process_packet() 100 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet() 103 for (i = 0; i < bp->bitmask; i++) in twidjoy_process_packet() 197 for (bp = twidjoy_buttons; bp->bitmask; bp++) in twidjoy_connect() 198 for (i = 0; i < bp->bitmask; i++) in twidjoy_connect()
|
/linux/drivers/media/radio/ |
A D | radio-zoltrix.c | 111 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/net/netlabel/ |
A D | netlabel_kapi.c | 687 while (bitmask != 0 && (bitmap & bitmask) != 0) { in netlbl_catmap_walkrng() 688 bitmask <<= 1; in netlbl_catmap_walkrng() 694 else if (bitmask != 0) in netlbl_catmap_walkrng() 704 bitmask = NETLBL_CATMAP_BIT; in netlbl_catmap_walkrng() 885 unsigned char bitmask; in netlbl_bitmap_walk() local 894 if ((state && (byte & bitmask) == bitmask) || in netlbl_bitmap_walk() 900 bitmask >>= 1; in netlbl_bitmap_walk() 901 if (bitmask == 0) { in netlbl_bitmap_walk() 903 bitmask = 0x80; in netlbl_bitmap_walk() 924 u8 bitmask; in netlbl_bitmap_setbit() local [all …]
|
/linux/drivers/staging/rtl8712/ |
A D | rtl871x_mp.c | 194 static u32 bitshift(u32 bitmask) in bitshift() argument 199 if (((bitmask >> i) & 0x1) == 1) in bitshift() 209 bit_shift = bitshift(bitmask); in get_bb_reg() 210 return (org_value & bitmask) >> bit_shift; in get_bb_reg() 215 u32 bitmask, in set_bb_reg() argument 220 if (bitmask != bMaskDWord) { in set_bb_reg() 222 bit_shift = bitshift(bitmask); in set_bb_reg() 231 u32 bitmask) in get_rf_reg() argument 236 bit_shift = bitshift(bitmask); in get_rf_reg() 245 if (bitmask != bMaskDWord) { in set_rf_reg() [all …]
|