/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 …]
|
/drivers/net/ethernet/brocade/bna/ |
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 &= ~xxx; \ 136 #define is_promisc_enable(mode, bitmask) \ argument 137 is_xxx_enable(mode, bitmask, BNA_RXMODE_PROMISC) [all …]
|
/drivers/hwmon/ |
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 …]
|
/drivers/staging/rtl8192u/ |
D | r819xU_phy.c | 67 void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, u32 bitmask, in rtl8192_setBBreg() argument 72 if (bitmask != bMaskDWord) { in rtl8192_setBBreg() 74 bitshift = ffs(bitmask) - 1; in rtl8192_setBBreg() 75 reg &= ~bitmask; in rtl8192_setBBreg() 92 u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask) in rtl8192_QueryBBReg() argument 97 bitshift = ffs(bitmask) - 1; in rtl8192_QueryBBReg() 99 return (reg & bitmask) >> bitshift; in rtl8192_QueryBBReg() 274 u32 reg_addr, u32 bitmask, u32 data) in rtl8192_phy_SetRFReg() argument 283 if (bitmask != bMask12Bits) { in rtl8192_phy_SetRFReg() 286 bitshift = ffs(bitmask) - 1; in rtl8192_phy_SetRFReg() [all …]
|
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);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
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 = calculate_bit_shift(bitmask); in rtl92c_phy_query_rf_reg() 43 readback_value = (original_value & bitmask) >> bitshift; 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() [all …]
|
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); 103 u32 regaddr, u32 bitmask, u32 data);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
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 = calculate_bit_shift(bitmask); in rtl92cu_phy_query_rf_reg() 36 readback_value = (original_value & bitmask) >> bitshift; 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() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
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 37 "regaddr(%#x), bitmask(%#x), data(%#x)\n", regaddr, bitmask, in rtl8723_phy_set_bb_reg() 40 if (bitmask != MASKDWORD) { in rtl8723_phy_set_bb_reg() 42 bitshift = rtl8723_phy_calculate_bit_shift(bitmask); in rtl8723_phy_set_bb_reg() 43 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl8723_phy_set_bb_reg() [all …]
|
D | phy_common.h | 27 u32 regaddr, u32 bitmask); 29 u32 bitmask, u32 data); 30 u32 rtl8723_phy_calculate_bit_shift(u32 bitmask);
|
/drivers/media/radio/ |
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()
|
/drivers/staging/r8188eu/include/ |
D | Hal8188EPhyCfg.h | 228 #define PHY_SetBBReg(adapt, regaddr, bitmask, data) \ argument 229 rtl8188e_PHY_SetBBReg((adapt), (regaddr), (bitmask), (data)) 230 #define PHY_QueryRFReg(adapt, rfpath, regaddr, bitmask) \ argument 231 rtl8188e_PHY_QueryRFReg((adapt), (rfpath), (regaddr), (bitmask)) 232 #define PHY_SetRFReg(adapt, rfpath, regaddr, bitmask, data) \ argument 233 rtl8188e_PHY_SetRFReg((adapt), (rfpath), (regaddr), (bitmask), (data))
|
/drivers/input/joystick/ |
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()
|
/drivers/clk/qcom/ |
D | reset.c | 34 mask = map->bitmask ? map->bitmask : BIT(map->bit); in qcom_reset_assert() 48 mask = map->bitmask ? map->bitmask : BIT(map->bit); in qcom_reset_deassert()
|
/drivers/staging/rtl8712/ |
D | rtl871x_mp.c | 194 static u32 bitshift(u32 bitmask) in bitshift() argument 199 if (((bitmask >> i) & 0x1) == 1) in bitshift() 204 static u32 get_bb_reg(struct _adapter *pAdapter, u16 offset, u32 bitmask) in get_bb_reg() argument 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() 223 new_value = (org_value & (~bitmask)) | (value << bit_shift); in set_bb_reg() 231 u32 bitmask) in get_rf_reg() argument [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
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);
|
D | phy.c | 17 u32 rtl92s_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl92s_phy_query_bb_reg() argument 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 44 regaddr, bitmask, data); in rtl92s_phy_set_bb_reg() 46 if (bitmask != MASKDWORD) { in rtl92s_phy_set_bb_reg() 48 bitshift = calculate_bit_shift(bitmask); in rtl92s_phy_set_bb_reg() 49 data = ((originalvalue & (~bitmask)) | (data << bitshift)); in rtl92s_phy_set_bb_reg() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | qos.c | 69 u32 bitmask = 0; in mlx5_qos_update_node() local 75 bitmask |= MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE; in mlx5_qos_update_node() 76 bitmask |= MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW; in mlx5_qos_update_node() 79 sched_ctx, id, bitmask); in mlx5_qos_update_node()
|
D | fs_counters.c | 472 unsigned long *bitmask; member 485 return bitmap_weight(bulk->bitmask, bulk->bulk_len); in mlx5_fc_bulk_get_free_fcs_amount() 505 bulk->bitmask = kvcalloc(BITS_TO_LONGS(bulk_len), sizeof(unsigned long), in mlx5_fc_bulk_create() 507 if (!bulk->bitmask) in mlx5_fc_bulk_create() 518 set_bit(i, bulk->bitmask); in mlx5_fc_bulk_create() 524 kvfree(bulk->bitmask); in mlx5_fc_bulk_create() 540 kvfree(bulk->bitmask); in mlx5_fc_bulk_destroy() 548 int free_fc_index = find_first_bit(bulk->bitmask, bulk->bulk_len); in mlx5_fc_bulk_acquire_fc() 553 clear_bit(free_fc_index, bulk->bitmask); in mlx5_fc_bulk_acquire_fc() 561 if (test_bit(fc_index, bulk->bitmask)) in mlx5_fc_bulk_release_fc() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | phy.h | 98 u32 regaddr, u32 bitmask); 100 u32 regaddr, u32 bitmask, u32 data); 103 u32 bitmask); 106 u32 bitmask, u32 data);
|
/drivers/clk/renesas/ |
D | renesas-cpg-mssr.c | 189 u32 bitmask = BIT(bit); in cpg_mstp_clock_endisable() local 201 value &= ~bitmask; in cpg_mstp_clock_endisable() 203 value |= bitmask; in cpg_mstp_clock_endisable() 212 value &= ~bitmask; in cpg_mstp_clock_endisable() 214 value |= bitmask; in cpg_mstp_clock_endisable() 224 if (!(readl(priv->base + priv->status_regs[reg]) & bitmask)) in cpg_mstp_clock_endisable() 594 u32 bitmask = BIT(bit); in cpg_mssr_reset() local 599 writel(bitmask, priv->base + priv->reset_regs[reg]); in cpg_mssr_reset() 605 writel(bitmask, priv->base + priv->reset_clear_regs[reg]); in cpg_mssr_reset() 615 u32 bitmask = BIT(bit); in cpg_mssr_assert() local [all …]
|
/drivers/staging/r8188eu/hal/ |
D | hal_intf.c | 285 u32 rtw_hal_read_bbreg(struct adapter *adapt, u32 regaddr, u32 bitmask) in rtw_hal_read_bbreg() argument 290 data = adapt->HalFunc.read_bbreg(adapt, regaddr, bitmask); in rtw_hal_read_bbreg() 294 void rtw_hal_write_bbreg(struct adapter *adapt, u32 regaddr, u32 bitmask, in rtw_hal_write_bbreg() argument 298 adapt->HalFunc.write_bbreg(adapt, regaddr, bitmask, data); in rtw_hal_write_bbreg() 302 u32 regaddr, u32 bitmask) in rtw_hal_read_rfreg() argument 308 bitmask); in rtw_hal_read_rfreg() 313 u32 regaddr, u32 bitmask, u32 data) in rtw_hal_write_rfreg() argument 317 bitmask, data); in rtw_hal_write_rfreg()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | phy.h | 103 u32 regaddr, u32 bitmask); 105 u32 regaddr, u32 bitmask, u32 data); 108 u32 bitmask); 111 u32 bitmask, u32 data);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | phy.h | 179 u32 regaddr, u32 bitmask); 181 u32 regaddr, u32 bitmask, u32 data); 184 u32 bitmask); 187 u32 bitmask, u32 data);
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.h | 187 u32 regaddr, u32 bitmask); 189 u32 regaddr, u32 bitmask, u32 data); 192 u32 bitmask); 195 u32 bitmask, u32 data);
|