/linux/drivers/acpi/pmic/ |
H A D | tps68470_pmic.c | 21 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 200 pmic_get_reg_bit(u64 address,const struct tps68470_pmic_table * table,const unsigned int table_size,int * reg,int * bitmask) pmic_get_reg_bit() argument 218 tps68470_pmic_get_power(struct regmap * regmap,int reg,int bitmask,u64 * value) tps68470_pmic_get_power() argument 230 tps68470_pmic_get_vr_val(struct regmap * regmap,int reg,int bitmask,u64 * value) tps68470_pmic_get_vr_val() argument 242 tps68470_pmic_get_clk(struct regmap * regmap,int reg,int bitmask,u64 * value) tps68470_pmic_get_clk() argument 254 tps68470_pmic_get_clk_freq(struct regmap * regmap,int reg,int bitmask,u64 * value) tps68470_pmic_get_clk_freq() argument 266 ti_tps68470_regmap_update_bits(struct regmap * regmap,int reg,int bitmask,u64 value) ti_tps68470_regmap_update_bits() argument 284 int reg, ret, bitmask; tps68470_pmic_common_handler() local [all...] |
/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 *bm [all...] |
H A D | bitmask.c | 6 #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 bm [all...] |
/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; \ 124 #define xxx_disable(mode, bitmask, xxx) \ argument 126 bitmask |= xxx; \ 130 #define xxx_inactive(mode, bitmask, xxx) \ argument 132 bitmask 136 is_promisc_enable(mode,bitmask) global() argument 139 is_promisc_disable(mode,bitmask) global() argument 142 promisc_enable(mode,bitmask) global() argument 145 promisc_disable(mode,bitmask) global() argument 148 promisc_inactive(mode,bitmask) global() argument 151 is_default_enable(mode,bitmask) global() argument 154 is_default_disable(mode,bitmask) global() argument 157 default_enable(mode,bitmask) global() argument 160 default_disable(mode,bitmask) global() argument 163 default_inactive(mode,bitmask) global() argument 166 is_allmulti_enable(mode,bitmask) global() argument 169 is_allmulti_disable(mode,bitmask) global() argument 172 allmulti_enable(mode,bitmask) global() argument 175 allmulti_disable(mode,bitmask) global() argument 178 allmulti_inactive(mode,bitmask) global() argument [all...] |
/linux/net/bridge/netfilter/ |
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() 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 in ebt_filter_config() [all...] |
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() 112 if (info->bitmask in ebt_ip_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() [all...] |
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 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 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()
|
H A D | ebt_vlan.c | 22 #define GET_BITMASK(_BIT_MASK_) info->bitmask & _BIT_MASK_ 89 /* Check for bitmask range in ebt_vlan_mt_check() 92 if (info->bitmask & ~EBT_VLAN_MASK) { in ebt_vlan_mt_check() 93 pr_debug("bitmask %2X is out of mask (%2X)\n", in ebt_vlan_mt_check() 94 info->bitmask, EBT_VLAN_MASK); in ebt_vlan_mt_check() 124 info->bitmask &= ~EBT_VLAN_PRIO; in ebt_vlan_mt_check()
|
/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), 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/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()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_pool.c | 12 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()
|
H A D | qos.c | 82 u32 bitmask = 0; in mlx5_qos_update_node() local 87 bitmask |= MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE; in mlx5_qos_update_node() 88 bitmask |= MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW; in mlx5_qos_update_node() 91 sched_ctx, id, bitmask); in mlx5_qos_update_node()
|
/linux/net/netfilter/ |
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()
|
/linux/fs/unicode/ |
H A D | mkutf8data.c | 422 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 in prune() 821 unsigned int bitmask; mark_nodes() local 947 unsigned int bitmask; index_nodes() local 1056 unsigned int bitmask; size_nodes() local 1190 unsigned int bitmask; emit() local [all...] |
/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()
|
/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()
|
/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);
|
/linux/arch/mips/pci/ |
H A D | msi-octeon.c | 199 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() 231 /* Checks are done, update the in use 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()
|
/linux/net/netlabel/ |
H A D | netlabel_kapi.c | 669 u64 bitmask; in netlbl_catmap_walkrng() local 683 bitmask = NETLBL_CATMAP_BIT << bit; in netlbl_catmap_walkrng() 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() 886 unsigned char bitmask; in netlbl_bitmap_walk() local 894 bitmask = 0x80 >> (offset % 8); in netlbl_bitmap_walk() 897 if ((state && (byte & bitmask) in netlbl_bitmap_walk() 927 u8 bitmask; netlbl_bitmap_setbit() local [all...] |
/linux/arch/sh/include/asm/ |
H A D | cmpxchg-xchg.h | 27 u32 bitmask = ((0x1 << size * BITS_PER_BYTE) - 1) << bitoff; in __xchg_cmpxchg() local 33 ret = (oldv & bitmask) >> bitoff; in __xchg_cmpxchg() 34 newv = (oldv & ~bitmask) | (x << bitoff); in __xchg_cmpxchg()
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | phy.h | 98 u32 regaddr, u32 bitmask); 100 u32 regaddr, u32 bitmask, u32 data); 103 u32 bitmask); 106 u32 bitmask, u32 data);
|
/linux/tools/testing/selftests/x86/ |
H A D | amx.c | 168 unsigned long bitmask, expected_bitmask; in validate_req_xcomp_perm() local 171 rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_PERM, &bitmask); in validate_req_xcomp_perm() 174 } else if (!(bitmask & XFEATURE_MASK_XTILECFG)) { in validate_req_xcomp_perm() 190 expected_bitmask = bitmask | XFEATURE_MASK_XTILEDATA; in validate_req_xcomp_perm() 192 rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_PERM, &bitmask); in validate_req_xcomp_perm() 195 } else if (bitmask != expected_bitmask) { in validate_req_xcomp_perm() 196 fatal_error("ARCH_REQ_XCOMP_PERM set a wrong bitmask: %lx, expected: %lx.\n", in validate_req_xcomp_perm() 197 bitmask, expected_bitmask); in validate_req_xcomp_perm()
|