/openbmc/linux/tools/power/cpupower/utils/helpers/ |
H 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 …]
|
H 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 …]
|
/openbmc/linux/drivers/acpi/pmic/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H 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 …]
|
/openbmc/linux/net/netfilter/ |
H 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 …]
|
H 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()
|
/openbmc/linux/net/bridge/netfilter/ |
H 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 …]
|
H 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 …]
|
H 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()
|
H 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 …]
|
H 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 …]
|
H 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()
|
/openbmc/linux/arch/openrisc/include/asm/ |
H 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()
|
/openbmc/linux/drivers/hwmon/ |
H 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 …]
|
/openbmc/qemu/hw/display/ |
H A D | cirrus_vga_rop2.h | 109 unsigned bitmask; in glue() local 128 bitmask = 0x80 >> srcskipleft; in glue() 132 if ((bitmask & 0xff) == 0) { in glue() 133 bitmask = 0x80; in glue() 136 index = (bits & bitmask); in glue() 141 bitmask >>= 1; in glue() 159 unsigned bitmask; in glue() local 166 bitmask = 0x80 >> srcskipleft; in glue() 170 if ((bitmask & 0xff) == 0) { in glue() 171 bitmask = 0x80; in glue() [all …]
|
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/ |
H A D | data_handler.hpp | 60 std::uint16_t bitmask; member 63 DataHandlerPack(std::uint16_t bitmask, in DataHandlerPack() 65 bitmask(bitmask), in DataHandlerPack()
|
/openbmc/u-boot/drivers/gpio/ |
H A D | kona_gpio.c | 84 int bitmask = GPIO_BITMASK(gpio); in gpio_direction_output() local 94 val |= bitmask; in gpio_direction_output() 103 int bitmask = GPIO_BITMASK(gpio); in gpio_get_value() local 116 return !!(val & bitmask); in gpio_get_value() 122 int bitmask = GPIO_BITMASK(gpio); in gpio_set_value() local 138 val |= bitmask; in gpio_set_value()
|
/openbmc/linux/drivers/staging/rtl8192u/ |
H 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() 1559 u32 bitmask; in InitialGainOperateWorkItemCallBack() local 1569 bitmask = bMaskByte0; in InitialGainOperateWorkItemCallBack() 1581 bitmask = bMaskByte2; in InitialGainOperateWorkItemCallBack() [all …]
|
H A D | r819xU_phy.h | 51 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);
|
/openbmc/linux/fs/unicode/ |
H 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 …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
H A D | phy.c | 30 regaddr, rfpath, bitmask); in rtl92c_phy_query_rf_reg() 42 bitshift = 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() 113 bitshift = calculate_bit_shift(bitmask); 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 …]
|
/openbmc/linux/drivers/media/radio/ |
H 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()
|
/openbmc/linux/drivers/input/joystick/ |
H A D | twidjoy.c | 54 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()
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
H A D | phy.h | 52 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);
|
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
H A D | phy.c | 27 regaddr, rfpath, bitmask); in rtl92cu_phy_query_rf_reg() 35 bitshift = 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() 59 bitshift = calculate_bit_shift(bitmask); 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 …]
|