/Linux-v4.19/drivers/acpi/pmic/ |
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 = TPS68470_VCMVAL_VCVOLT_MASK, [all …]
|
/Linux-v4.19/tools/power/cpupower/utils/helpers/ |
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); 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 …]
|
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() 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-v4.19/drivers/net/ethernet/brocade/bna/ |
D | bna.h | 122 #define is_xxx_enable(mode, bitmask, xxx) ((bitmask & xxx) && (mode & xxx)) argument 124 #define is_xxx_disable(mode, bitmask, xxx) ((bitmask & xxx) && !(mode & xxx)) argument 126 #define xxx_enable(mode, bitmask, xxx) \ argument 128 bitmask |= xxx; \ 132 #define xxx_disable(mode, bitmask, xxx) \ argument 134 bitmask |= xxx; \ 138 #define xxx_inactive(mode, bitmask, xxx) \ argument 140 bitmask &= ~xxx; \ 144 #define is_promisc_enable(mode, bitmask) \ argument 145 is_xxx_enable(mode, bitmask, BNA_RXMODE_PROMISC) [all …]
|
/Linux-v4.19/net/netfilter/ |
D | xt_physdev.c | 38 if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) && in physdev_mt() 41 if ((info->bitmask & XT_PHYSDEV_OP_ISIN) && in physdev_mt() 44 if ((info->bitmask & XT_PHYSDEV_OP_ISOUT) && in physdev_mt() 47 if ((info->bitmask & XT_PHYSDEV_OP_IN) && in physdev_mt() 50 if ((info->bitmask & XT_PHYSDEV_OP_OUT) && in physdev_mt() 60 if ((info->bitmask & XT_PHYSDEV_OP_BRIDGED) && in physdev_mt() 67 if ((info->bitmask & XT_PHYSDEV_OP_ISIN && in physdev_mt() 69 (info->bitmask & XT_PHYSDEV_OP_ISOUT && in physdev_mt() 73 if (!(info->bitmask & XT_PHYSDEV_OP_IN)) in physdev_mt() 85 if (!(info->bitmask & XT_PHYSDEV_OP_OUT)) in physdev_mt() [all …]
|
D | xt_ipvs.c | 59 if (data->bitmask == XT_IPVS_IPVS_PROPERTY) { in ipvs_mt() 73 if (data->bitmask & XT_IPVS_PROTO) in ipvs_mt() 100 if (data->bitmask & XT_IPVS_VPORT) in ipvs_mt() 107 if (data->bitmask & XT_IPVS_VPORTCTL) in ipvs_mt() 115 if (data->bitmask & XT_IPVS_DIR) { in ipvs_mt() 131 if (data->bitmask & XT_IPVS_METHOD) in ipvs_mt() 138 if (data->bitmask & XT_IPVS_VADDR) { in ipvs_mt()
|
/Linux-v4.19/net/bridge/netfilter/ |
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 & EBT_STP_HELLOTIME) { in ebt_filter_config() [all …]
|
D | ebt_ip.c | 48 if ((info->bitmask & EBT_IP_TOS) && in ebt_ip_mt() 51 if ((info->bitmask & EBT_IP_SOURCE) && in ebt_ip_mt() 55 if ((info->bitmask & EBT_IP_DEST) && in ebt_ip_mt() 59 if (info->bitmask & EBT_IP_PROTO) { in ebt_ip_mt() 62 if (!(info->bitmask & (EBT_IP_DPORT | EBT_IP_SPORT | in ebt_ip_mt() 73 if (info->bitmask & EBT_IP_DPORT) { in ebt_ip_mt() 80 if (info->bitmask & EBT_IP_SPORT) { in ebt_ip_mt() 87 if ((info->bitmask & EBT_IP_ICMP) && in ebt_ip_mt() 94 if ((info->bitmask & EBT_IP_IGMP) && in ebt_ip_mt() 111 if (info->bitmask & ~EBT_IP_MASK || info->invflags & ~EBT_IP_MASK) in ebt_ip_mt_check() [all …]
|
D | ebt_mark_m.c | 20 if (info->bitmask & EBT_MARK_OR) in ebt_mark_mt() 29 if (info->bitmask & ~EBT_MARK_MASK) in ebt_mark_mt_check() 31 if ((info->bitmask & EBT_MARK_OR) && (info->bitmask & EBT_MARK_AND)) in ebt_mark_mt_check() 33 if (!info->bitmask) in ebt_mark_mt_check() 42 uint8_t invert, bitmask; member 53 kern->bitmask = user->bitmask; in mark_mt_compat_from_user() 64 put_user(kern->bitmask, &user->bitmask)) in mark_mt_compat_to_user()
|
D | ebt_ip6.c | 48 if ((info->bitmask & EBT_IP6_TCLASS) && in ebt_ip6_mt() 52 if (((info->bitmask & EBT_IP6_SOURCE) && in ebt_ip6_mt() 56 ((info->bitmask & EBT_IP6_DEST) && in ebt_ip6_mt() 61 if (info->bitmask & EBT_IP6_PROTO) { in ebt_ip6_mt() 71 if (!(info->bitmask & (EBT_IP6_DPORT | in ebt_ip6_mt() 80 if (info->bitmask & EBT_IP6_DPORT) { in ebt_ip6_mt() 87 if (info->bitmask & EBT_IP6_SPORT) { in ebt_ip6_mt() 94 if ((info->bitmask & EBT_IP6_ICMP6) && in ebt_ip6_mt() 112 if (info->bitmask & ~EBT_IP6_MASK || info->invflags & ~EBT_IP6_MASK) in ebt_ip6_mt_check() 114 if (info->bitmask & (EBT_IP6_DPORT | EBT_IP6_SPORT)) { in ebt_ip6_mt_check() [all …]
|
D | ebt_arp.c | 28 if ((info->bitmask & EBT_ARP_OPCODE) && in ebt_arp_mt() 31 if ((info->bitmask & EBT_ARP_HTYPE) && in ebt_arp_mt() 34 if ((info->bitmask & EBT_ARP_PTYPE) && in ebt_arp_mt() 38 if (info->bitmask & (EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_GRAT)) { in ebt_arp_mt() 54 if ((info->bitmask & EBT_ARP_SRC_IP) && in ebt_arp_mt() 58 if ((info->bitmask & EBT_ARP_DST_IP) && in ebt_arp_mt() 62 if ((info->bitmask & EBT_ARP_GRAT) && in ebt_arp_mt() 67 if (info->bitmask & (EBT_ARP_SRC_MAC | EBT_ARP_DST_MAC)) { in ebt_arp_mt() 73 if (info->bitmask & EBT_ARP_SRC_MAC) { in ebt_arp_mt() 84 if (info->bitmask & EBT_ARP_DST_MAC) { in ebt_arp_mt() [all …]
|
D | ebt_log.c | 31 if (info->bitmask & ~EBT_LOG_MASK) in ebt_log_tg_check() 78 unsigned int bitmask; in ebt_log_packet() local 92 bitmask = loginfo->u.log.logflags; in ebt_log_packet() 94 bitmask = NF_LOG_DEFAULT_MASK; in ebt_log_packet() 96 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet() 113 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet() 137 if ((bitmask & EBT_LOG_ARP) && in ebt_log_packet() 186 li.u.log.logflags = info->bitmask; in ebt_log_tg() 192 if (info->bitmask & EBT_LOG_NFLOG) in ebt_log_tg()
|
/Linux-v4.19/arch/mips/emma/markeins/ |
D | irq.c | 183 u32 bitmask; in emma2rh_irq_dispatch() local 194 for (i = 0, bitmask = 1; i < 32; i++, bitmask <<= 1) { in emma2rh_irq_dispatch() 195 if (swIntStatus & bitmask) { in emma2rh_irq_dispatch() 205 for (i = 0, bitmask = 1; i < 32; i++, bitmask <<= 1) { in emma2rh_irq_dispatch() 206 if (intStatus & bitmask) { in emma2rh_irq_dispatch() 220 for (i = 0, bitmask = 1; i < 32; i++, bitmask <<= 1) { in emma2rh_irq_dispatch() 221 if (gpioIntStatus & bitmask) { in emma2rh_irq_dispatch() 231 for (i = 32, bitmask = 1; i < 64; i++, bitmask <<= 1) { in emma2rh_irq_dispatch() 232 if (intStatus & bitmask) { in emma2rh_irq_dispatch() 241 for (i = 64, bitmask = 1; i < 96; i++, bitmask <<= 1) { in emma2rh_irq_dispatch() [all …]
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | exception-64s.h | 303 #define MASKABLE_EXCEPTION_PROLOG_1(area, extra, vec, bitmask) \ argument 305 extra(vec, bitmask); \ 601 #define __SOFTEN_TEST(h, vec, bitmask) \ argument 603 andi. r10,r10,bitmask; \ 607 #define _SOFTEN_TEST(h, vec, bitmask) __SOFTEN_TEST(h, vec, bitmask) argument 609 #define SOFTEN_TEST_PR(vec, bitmask) \ argument 611 _SOFTEN_TEST(EXC_STD, vec, bitmask) 613 #define SOFTEN_TEST_HV(vec, bitmask) \ argument 615 _SOFTEN_TEST(EXC_HV, vec, bitmask) 623 #define SOFTEN_NOTEST_PR(vec, bitmask) _SOFTEN_TEST(EXC_STD, vec, bitmask) argument [all …]
|
D | head-64.h | 271 #define EXC_REAL_MASKABLE(name, start, size, bitmask) \ argument 273 MASKABLE_EXCEPTION(start, name##_common, bitmask); \ 276 #define EXC_VIRT_MASKABLE(name, start, size, realvec, bitmask) \ argument 278 MASKABLE_RELON_EXCEPTION(realvec, name##_common, bitmask); \ 307 #define __TRAMP_REAL_OOL_MASKABLE(name, vec, bitmask) \ argument 309 MASKABLE_EXCEPTION_OOL(vec, name##_common, bitmask); 311 #define EXC_REAL_OOL_MASKABLE(name, start, size, bitmask) \ argument 313 __TRAMP_REAL_OOL_MASKABLE(name, start, bitmask); 334 #define __TRAMP_REAL_OOL_MASKABLE_HV(name, vec, bitmask) \ argument 336 MASKABLE_EXCEPTION_HV_OOL(vec, name##_common, bitmask); \ [all …]
|
/Linux-v4.19/arch/sh/kernel/cpu/irq/ |
D | intc-sh5.c | 85 unsigned long bitmask; in enable_intc_irq() local 92 bitmask = 1 << irq; in enable_intc_irq() 95 bitmask = 1 << (irq - 32); in enable_intc_irq() 98 __raw_writel(bitmask, reg); in enable_intc_irq() 105 unsigned long bitmask; in disable_intc_irq() local 109 bitmask = 1 << irq; in disable_intc_irq() 112 bitmask = 1 << (irq - 32); in disable_intc_irq() 115 __raw_writel(bitmask, reg); in disable_intc_irq()
|
/Linux-v4.19/arch/openrisc/include/asm/ |
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-v4.19/drivers/hwmon/ |
D | asc7621.c | 849 PREAD(in0_alarm, 0, PRI_HIGH, 0x41, 0, 0x01, 0, bitmask), 850 PREAD(in1_alarm, 1, PRI_HIGH, 0x41, 0, 0x01, 1, bitmask), 851 PREAD(in2_alarm, 2, PRI_HIGH, 0x41, 0, 0x01, 2, bitmask), 852 PREAD(in3_alarm, 3, PRI_HIGH, 0x41, 0, 0x01, 3, bitmask), 853 PREAD(in4_alarm, 4, PRI_HIGH, 0x42, 0, 0x01, 0, bitmask), 865 PREAD(fan1_alarm, 0, PRI_HIGH, 0x42, 0, 0x01, 2, bitmask), 866 PREAD(fan2_alarm, 1, PRI_HIGH, 0x42, 0, 0x01, 3, bitmask), 867 PREAD(fan3_alarm, 2, PRI_HIGH, 0x42, 0, 0x01, 4, bitmask), 868 PREAD(fan4_alarm, 3, PRI_HIGH, 0x42, 0, 0x01, 5, bitmask), 889 PREAD(temp1_alarm, 0, PRI_HIGH, 0x41, 0, 0x01, 4, bitmask), [all …]
|
/Linux-v4.19/drivers/staging/rtlwifi/phydm/rtl8822b/ |
D | phydm_regconfig8822b.c | 99 void odm_config_bb_agc_8822b(struct phy_dm_struct *dm, u32 addr, u32 bitmask, in odm_config_bb_agc_8822b() argument 104 odm_set_bb_reg(dm, addr, bitmask, data); in odm_config_bb_agc_8822b() 115 u32 bitmask, u32 data) in odm_config_bb_phy_reg_pg_8822b() argument 121 addr, bitmask, data); in odm_config_bb_phy_reg_pg_8822b() 124 __func__, addr, bitmask, data); in odm_config_bb_phy_reg_pg_8822b() 127 void odm_config_bb_phy_8822b(struct phy_dm_struct *dm, u32 addr, u32 bitmask, in odm_config_bb_phy_8822b() argument 143 odm_set_bb_reg(dm, addr, bitmask, data); in odm_config_bb_phy_8822b()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | phy.h | 78 u32 rtl92c_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask); 79 void rtl92c_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, 82 u32 regaddr, u32 bitmask); 84 u32 regaddr, u32 bitmask, u32 data); 119 u32 _rtl92c_phy_calculate_bit_shift(u32 bitmask); 126 u32 regaddr, u32 bitmask, u32 data);
|
D | phy.c | 44 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92c_phy_query_rf_reg() argument 52 regaddr, rfpath, bitmask); in rtl92c_phy_query_rf_reg() 64 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92c_phy_query_rf_reg() 65 readback_value = (original_value & bitmask) >> bitshift; in rtl92c_phy_query_rf_reg() 71 regaddr, rfpath, bitmask, original_value); in rtl92c_phy_query_rf_reg() 118 u32 regaddr, u32 bitmask, u32 data) in rtl92ce_phy_set_rf_reg() argument 126 regaddr, bitmask, data, rfpath); in rtl92ce_phy_set_rf_reg() 131 if (bitmask != RFREG_OFFSET_MASK) { in rtl92ce_phy_set_rf_reg() 135 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92ce_phy_set_rf_reg() 137 ((original_value & (~bitmask)) | in rtl92ce_phy_set_rf_reg() [all …]
|
/Linux-v4.19/drivers/staging/rtl8192u/ |
D | r819xU_phy.c | 67 void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, u32 bitmask, in rtl8192_setBBreg() argument 73 if (bitmask != bMaskDWord) { in rtl8192_setBBreg() 75 bitshift = ffs(bitmask) - 1; in rtl8192_setBBreg() 76 reg &= ~bitmask; in rtl8192_setBBreg() 93 u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask) in rtl8192_QueryBBReg() argument 98 bitshift = ffs(bitmask) - 1; in rtl8192_QueryBBReg() 100 return (reg & bitmask) >> bitshift; in rtl8192_QueryBBReg() 279 u32 reg_addr, u32 bitmask, u32 data) in rtl8192_phy_SetRFReg() argument 288 if (bitmask != bMask12Bits) { in rtl8192_phy_SetRFReg() 291 bitshift = ffs(bitmask) - 1; in rtl8192_phy_SetRFReg() [all …]
|
/Linux-v4.19/drivers/media/radio/ |
D | radio-zoltrix.c | 110 unsigned long long bitmask, f, m; in zoltrix_s_frequency() local 122 bitmask = 0xc480402c10080000ull; in zoltrix_s_frequency() 132 bitmask = (bitmask ^ ((f & 0xff) << 47) ^ ((f & 0xff00) << 30) ^ (stereo << 31)); in zoltrix_s_frequency() 134 if ((bitmask & 0x8000000000000000ull) != 0) { in zoltrix_s_frequency() 149 bitmask *= 2; in zoltrix_s_frequency()
|
/Linux-v4.19/drivers/input/joystick/ |
D | twidjoy.c | 69 int bitmask; member 111 for (bp = twidjoy_buttons; bp->bitmask; bp++) { in twidjoy_process_packet() 112 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet() 115 for (i = 0; i < bp->bitmask; i++) in twidjoy_process_packet() 209 for (bp = twidjoy_buttons; bp->bitmask; bp++) in twidjoy_connect() 210 for (i = 0; i < bp->bitmask; i++) in twidjoy_connect()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | phy.c | 41 enum radio_path rfpath, u32 regaddr, u32 bitmask) in rtl92cu_phy_query_rf_reg() argument 49 regaddr, rfpath, bitmask); in rtl92cu_phy_query_rf_reg() 57 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_query_rf_reg() 58 readback_value = (original_value & bitmask) >> bitshift; in rtl92cu_phy_query_rf_reg() 61 regaddr, rfpath, bitmask, original_value); in rtl92cu_phy_query_rf_reg() 67 u32 regaddr, u32 bitmask, u32 data) in rtl92cu_phy_set_rf_reg() argument 75 regaddr, bitmask, data, rfpath); in rtl92cu_phy_set_rf_reg() 77 if (bitmask != RFREG_OFFSET_MASK) { in rtl92cu_phy_set_rf_reg() 81 bitshift = _rtl92c_phy_calculate_bit_shift(bitmask); in rtl92cu_phy_set_rf_reg() 83 ((original_value & (~bitmask)) | in rtl92cu_phy_set_rf_reg() [all …]
|