Home
last modified time | relevance | path

Searched refs:bitmask (Results 1 – 25 of 111) sorted by relevance

12345

/drivers/acpi/pmic/
Dtps68470_pmic.c21 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/
Dbna.h114 #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/
Dasc7621.c836 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/
Dr819xU_phy.c67 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 …]
Dr819xU_phy.h51 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/
Dphy.c22 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 …]
Dphy.h56 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/
Dphy.c19 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/
Dphy_common.c12 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 …]
Dphy_common.h27 u32 regaddr, u32 bitmask);
29 u32 bitmask, u32 data);
30 u32 rtl8723_phy_calculate_bit_shift(u32 bitmask);
/drivers/input/joystick/
Dtwidjoy.c54 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()
/drivers/media/radio/
Dradio-zoltrix.c111 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/rtl8712/
Drtl871x_mp.c194 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 …]
Drtl871x_mp.h251 u32 r8712_get_bb_reg(struct _adapter *Adapter, u16 offset, u32 bitmask);
253 u32 bitmask, u32 value);
255 u32 bitmask);
257 u32 bitmask, u32 value);
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dphy.h52 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);
Dphy.c17 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/
Dqos.c69 u32 bitmask = 0; in mlx5_qos_update_node() local
74 bitmask |= MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_BW_SHARE; in mlx5_qos_update_node()
75 bitmask |= MODIFY_SCHEDULING_ELEMENT_IN_MODIFY_BITMASK_MAX_AVERAGE_BW; in mlx5_qos_update_node()
78 sched_ctx, id, bitmask); in mlx5_qos_update_node()
Dfs_counters.c541 unsigned long *bitmask; member
554 return bitmap_weight(bulk->bitmask, bulk->bulk_len); in mlx5_fc_bulk_get_free_fcs_amount()
573 bulk->bitmask = kvcalloc(BITS_TO_LONGS(bulk_len), sizeof(unsigned long), in mlx5_fc_bulk_create()
575 if (!bulk->bitmask) in mlx5_fc_bulk_create()
586 set_bit(i, bulk->bitmask); in mlx5_fc_bulk_create()
592 kvfree(bulk->bitmask); in mlx5_fc_bulk_create()
608 kvfree(bulk->bitmask); in mlx5_fc_bulk_destroy()
616 int free_fc_index = find_first_bit(bulk->bitmask, bulk->bulk_len); in mlx5_fc_bulk_acquire_fc()
621 clear_bit(free_fc_index, bulk->bitmask); in mlx5_fc_bulk_acquire_fc()
629 if (test_bit(fc_index, bulk->bitmask)) in mlx5_fc_bulk_release_fc()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dphy.h98 u32 regaddr, u32 bitmask);
100 u32 regaddr, u32 bitmask, u32 data);
103 u32 bitmask);
106 u32 bitmask, u32 data);
/drivers/clk/renesas/
Drenesas-cpg-mssr.c197 u32 bitmask = BIT(bit); in cpg_mstp_clock_endisable() local
209 value &= ~bitmask; in cpg_mstp_clock_endisable()
211 value |= bitmask; in cpg_mstp_clock_endisable()
220 value &= ~bitmask; in cpg_mstp_clock_endisable()
222 value |= bitmask; in cpg_mstp_clock_endisable()
232 value, !(value & bitmask), 0, 10); in cpg_mstp_clock_endisable()
608 u32 bitmask = BIT(bit); in cpg_mssr_reset() local
613 writel(bitmask, priv->base + priv->reset_regs[reg]); in cpg_mssr_reset()
619 writel(bitmask, priv->base + priv->reset_clear_regs[reg]); in cpg_mssr_reset()
629 u32 bitmask = BIT(bit); in cpg_mssr_assert() local
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dphy.h103 u32 regaddr, u32 bitmask);
105 u32 regaddr, u32 bitmask, u32 data);
108 u32 bitmask);
111 u32 bitmask, u32 data);
/drivers/net/wwan/t7xx/
Dt7xx_cldma.c148 void t7xx_cldma_hw_tx_done(struct t7xx_cldma_hw *hw_info, unsigned int bitmask) in t7xx_cldma_hw_tx_done() argument
153 ch_id &= bitmask; in t7xx_cldma_hw_tx_done()
159 void t7xx_cldma_hw_rx_done(struct t7xx_cldma_hw *hw_info, unsigned int bitmask) in t7xx_cldma_hw_rx_done() argument
164 ch_id &= bitmask; in t7xx_cldma_hw_rx_done()
170 unsigned int t7xx_cldma_hw_int_status(struct t7xx_cldma_hw *hw_info, unsigned int bitmask, in t7xx_cldma_hw_int_status() argument
179 return val & bitmask; in t7xx_cldma_hw_int_status()
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dphy.h179 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/
Dphy.h187 u32 regaddr, u32 bitmask);
189 u32 regaddr, u32 bitmask, u32 data);
192 u32 bitmask);
195 u32 bitmask, u32 data);
/drivers/tty/serial/
Dsccnxp.c372 u8 bitmask; in sccnxp_set_bit() local
376 bitmask = 1 << MCTRL_OBIT(s->pdata.mctrl_cfg[port->line], sig); in sccnxp_set_bit()
378 sccnxp_write(port, SCCNXP_SOP_REG, bitmask); in sccnxp_set_bit()
380 sccnxp_write(port, SCCNXP_ROP_REG, bitmask); in sccnxp_set_bit()
583 u8 bitmask, ipr; in sccnxp_get_mctrl() local
596 bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], in sccnxp_get_mctrl()
599 mctrl |= (ipr & bitmask) ? TIOCM_DSR : 0; in sccnxp_get_mctrl()
602 bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], in sccnxp_get_mctrl()
605 mctrl |= (ipr & bitmask) ? TIOCM_CTS : 0; in sccnxp_get_mctrl()
608 bitmask = 1 << MCTRL_IBIT(s->pdata.mctrl_cfg[port->line], in sccnxp_get_mctrl()
[all …]

12345