/linux-6.3-rc2/drivers/net/ethernet/altera/ |
A D | altera_utils.c | 9 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_set_bit() argument 12 value |= bit_mask; in tse_set_bit() 16 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_clear_bit() argument 19 value &= ~bit_mask; in tse_clear_bit() 23 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_set() argument 26 return (value & bit_mask) ? 1 : 0; in tse_bit_is_set() 29 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask) in tse_bit_is_clear() argument 32 return (value & bit_mask) ? 0 : 1; in tse_bit_is_clear()
|
A D | altera_utils.h | 12 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask); 13 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask); 14 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask); 15 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask);
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_ste_v0.c | 705 bool inner, u8 *bit_mask) in dr_ste_v0_build_eth_l2_src_dst_bit_mask() argument 882 bool inner, u8 *bit_mask) in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask() argument 908 DR_STE_SET_TAG(eth_l2_src, bit_mask, in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask() 910 DR_STE_SET_TAG(eth_l2_src, bit_mask, in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask() 912 DR_STE_SET_TAG(eth_l2_src, bit_mask, in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask() 994 bool inner, u8 *bit_mask) in dr_ste_v0_build_eth_l2_src_bit_mask() argument 1030 u8 *bit_mask) in dr_ste_v0_build_eth_l2_dst_bit_mask() argument 1066 bool inner, u8 *bit_mask) in dr_ste_v0_build_eth_l2_tnl_bit_mask() argument 1081 MLX5_SET(ste_eth_l2_tnl, bit_mask, in dr_ste_v0_build_eth_l2_tnl_bit_mask() 1635 u8 *bit_mask) in dr_ste_v0_build_src_gvmi_qpn_bit_mask() argument [all …]
|
A D | dr_ste_v1.c | 1050 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_src_dst_bit_mask() argument 1204 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask() argument 1230 DR_STE_SET_TAG(eth_l2_src_v1, bit_mask, in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask() 1232 DR_STE_SET_TAG(eth_l2_src_v1, bit_mask, in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask() 1234 DR_STE_SET_TAG(eth_l2_src_v1, bit_mask, in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask() 1312 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_src_bit_mask() argument 1345 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_dst_bit_mask() argument 1378 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_tnl_bit_mask() argument 1393 MLX5_SET(ste_eth_l2_tnl_v1, bit_mask, in dr_ste_v1_build_eth_l2_tnl_bit_mask() 1916 u8 *bit_mask) in dr_ste_v1_build_src_gvmi_qpn_bit_mask() argument [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/core/ |
A D | sysimgblt.c | 191 u32 bit_mask, eorx, shift; in fast_imageblit() local 223 bit_mask = (1 << ppw) - 1; in fast_imageblit() 243 *dst++ = colortab[(*src >> 4) & bit_mask]; in fast_imageblit() 244 *dst++ = colortab[(*src >> 0) & bit_mask]; in fast_imageblit() 249 *dst++ = colortab[(*src >> 6) & bit_mask]; in fast_imageblit() 250 *dst++ = colortab[(*src >> 4) & bit_mask]; in fast_imageblit() 251 *dst++ = colortab[(*src >> 2) & bit_mask]; in fast_imageblit() 252 *dst++ = colortab[(*src >> 0) & bit_mask]; in fast_imageblit() 257 *dst++ = colortab[(*src >> 7) & bit_mask]; in fast_imageblit() 258 *dst++ = colortab[(*src >> 6) & bit_mask]; in fast_imageblit() [all …]
|
A D | cfbimgblt.c | 221 u32 bit_mask, eorx, shift; in fast_imageblit() local 253 bit_mask = (1 << ppw) - 1; in fast_imageblit() 273 FB_WRITEL(colortab[(*src >> 4) & bit_mask], dst++); in fast_imageblit() 274 FB_WRITEL(colortab[(*src >> 0) & bit_mask], dst++); in fast_imageblit() 279 FB_WRITEL(colortab[(*src >> 6) & bit_mask], dst++); in fast_imageblit() 280 FB_WRITEL(colortab[(*src >> 4) & bit_mask], dst++); in fast_imageblit() 281 FB_WRITEL(colortab[(*src >> 2) & bit_mask], dst++); in fast_imageblit() 282 FB_WRITEL(colortab[(*src >> 0) & bit_mask], dst++); in fast_imageblit() 287 FB_WRITEL(colortab[(*src >> 7) & bit_mask], dst++); in fast_imageblit() 288 FB_WRITEL(colortab[(*src >> 6) & bit_mask], dst++); in fast_imageblit() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/fman/ |
A D | fman_tgec.c | 261 u32 bit_mask; in get_exception_flag() local 271 bit_mask = TGEC_IMASK_REM_FAULT; in get_exception_flag() 274 bit_mask = TGEC_IMASK_LOC_FAULT; in get_exception_flag() 277 bit_mask = TGEC_IMASK_TX_ECC_ER; in get_exception_flag() 286 bit_mask = TGEC_IMASK_TX_ER; in get_exception_flag() 292 bit_mask = TGEC_IMASK_RX_ECC_ER; in get_exception_flag() 316 bit_mask = 0; in get_exception_flag() 320 return bit_mask; in get_exception_flag() 597 u32 bit_mask = 0; in tgec_set_exception() local 600 if (bit_mask) { in tgec_set_exception() [all …]
|
A D | fman_dtsec.c | 524 u32 bit_mask; in get_exception_flag() local 528 bit_mask = DTSEC_IMASK_BREN; in get_exception_flag() 531 bit_mask = DTSEC_IMASK_RXCEN; in get_exception_flag() 537 bit_mask = DTSEC_IMASK_BTEN; in get_exception_flag() 540 bit_mask = DTSEC_IMASK_TXCEN; in get_exception_flag() 543 bit_mask = DTSEC_IMASK_TXEEN; in get_exception_flag() 546 bit_mask = DTSEC_IMASK_LCEN; in get_exception_flag() 573 bit_mask = 0; in get_exception_flag() 577 return bit_mask; in get_exception_flag() 1212 u32 bit_mask = 0; in dtsec_set_exception() local [all …]
|
A D | fman_memac.c | 438 u32 bit_mask; in get_exception_flag() local 442 bit_mask = MEMAC_IMASK_TECC_ER; in get_exception_flag() 445 bit_mask = MEMAC_IMASK_RECC_ER; in get_exception_flag() 448 bit_mask = MEMAC_IMASK_TSECC_ER; in get_exception_flag() 451 bit_mask = MEMAC_IMASK_MGI; in get_exception_flag() 454 bit_mask = 0; in get_exception_flag() 458 return bit_mask; in get_exception_flag() 885 u32 bit_mask = 0; in memac_set_exception() local 888 if (bit_mask) { in memac_set_exception() 890 memac->exceptions |= bit_mask; in memac_set_exception() [all …]
|
A D | fman.c | 1436 u32 bit_mask; in get_exception_flag() local 1440 bit_mask = EX_DMA_BUS_ERROR; in get_exception_flag() 1446 bit_mask = EX_DMA_READ_ECC; in get_exception_flag() 1458 bit_mask = EX_FPM_SINGLE_ECC; in get_exception_flag() 1461 bit_mask = EX_FPM_DOUBLE_ECC; in get_exception_flag() 1464 bit_mask = EX_QMI_SINGLE_ECC; in get_exception_flag() 1485 bit_mask = EX_MURAM_ECC; in get_exception_flag() 1488 bit_mask = 0; in get_exception_flag() 1492 return bit_mask; in get_exception_flag() 2016 u32 bit_mask = 0; in fman_set_exception() local [all …]
|
/linux-6.3-rc2/arch/arm/mach-socfpga/ |
A D | ocram.c | 67 static inline void ecc_set_bits(u32 bit_mask, void __iomem *ioaddr) in ecc_set_bits() argument 71 value |= bit_mask; in ecc_set_bits() 75 static inline void ecc_clear_bits(u32 bit_mask, void __iomem *ioaddr) in ecc_clear_bits() argument 79 value &= ~bit_mask; in ecc_clear_bits() 83 static inline int ecc_test_bits(u32 bit_mask, void __iomem *ioaddr) in ecc_test_bits() argument 87 return (value & bit_mask) ? 1 : 0; in ecc_test_bits()
|
/linux-6.3-rc2/drivers/net/wireless/ralink/rt2x00/ |
A D | rt2x00reg.h | 149 u8 bit_mask; member 154 u16 bit_mask; member 159 u32 bit_mask; member 238 *(__reg) &= ~((__field).bit_mask); \ 241 ((__field).bit_mask); \ 247 ((__reg) & ((__field).bit_mask)) >> \
|
/linux-6.3-rc2/drivers/mfd/ |
A D | adp5520.c | 72 uint8_t bit_mask) in __adp5520_ack_bits() argument 83 reg_val |= bit_mask; in __adp5520_ack_bits() 103 int adp5520_set_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_set_bits() argument 113 if (!ret && ((reg_val & bit_mask) != bit_mask)) { in adp5520_set_bits() 114 reg_val |= bit_mask; in adp5520_set_bits() 123 int adp5520_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_clr_bits() argument 133 if (!ret && (reg_val & bit_mask)) { in adp5520_clr_bits() 134 reg_val &= ~bit_mask; in adp5520_clr_bits()
|
A D | da903x.c | 170 int da903x_set_bits(struct device *dev, int reg, uint8_t bit_mask) in da903x_set_bits() argument 182 if ((reg_val & bit_mask) != bit_mask) { in da903x_set_bits() 183 reg_val |= bit_mask; in da903x_set_bits() 192 int da903x_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in da903x_clr_bits() argument 204 if (reg_val & bit_mask) { in da903x_clr_bits() 205 reg_val &= ~bit_mask; in da903x_clr_bits()
|
/linux-6.3-rc2/drivers/staging/most/dim2/ |
A D | hal.c | 53 static inline u32 bit_mask(u8 position) in bit_mask() function 161 u32 const cmd = bit_mask(MADR_WNR_BIT) | bit_mask(MADR_TB_BIT); in dim2_clear_dbr() 306 bit_mask(ADT1_PS_BIT + shift) | in dim2_start_ctrl_async() 307 bit_mask(ADT1_RDY_BIT + shift) | in dim2_start_ctrl_async() 329 bit_mask(ADT1_RDY_BIT + shift) | in dim2_start_isoc_sync() 375 writel(bit_mask(ch_addr), &g.dim2->ACSR0); in dim2_clear_channel() 562 bit_mask(MLBC1_LOCKERR_BIT); in dim2_is_mlb_locked() 585 bit_mask(ADT1_DNE_BIT + shift) | in service_channel() 586 bit_mask(ADT1_ERR_BIT + shift) | in service_channel() 587 bit_mask(ADT1_RDY_BIT + shift); in service_channel() [all …]
|
/linux-6.3-rc2/drivers/hid/ |
A D | hid-prodikeys.c | 308 u32 bit_mask; in pcmidi_handle_report1() local 310 bit_mask = data[1]; in pcmidi_handle_report1() 311 bit_mask = (bit_mask << 8) | data[2]; in pcmidi_handle_report1() 312 bit_mask = (bit_mask << 8) | data[3]; in pcmidi_handle_report1() 317 if (pm->midi_mode && bit_mask == 0x004000) { in pcmidi_handle_report1() 384 u32 bit_mask; in pcmidi_handle_report4() local 387 bit_mask = data[1]; in pcmidi_handle_report4() 388 bit_mask = (bit_mask << 8) | data[2]; in pcmidi_handle_report4() 389 bit_mask = (bit_mask << 8) | data[3]; in pcmidi_handle_report4() 393 if (!((0x01 << bit_index) & bit_mask)) { in pcmidi_handle_report4() [all …]
|
/linux-6.3-rc2/drivers/clk/bcm/ |
A D | clk-iproc-pll.c | 257 bit_mask(dig_filter->kp_width) << dig_filter->kp_shift | in __pll_bring_out_reset() 258 bit_mask(dig_filter->ka_width) << dig_filter->ka_shift); in __pll_bring_out_reset() 291 bit_mask(ctrl->ndiv_int.width); in pll_fractional_change_only() 358 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate() 373 val &= ~(bit_mask(ctrl->macro_mode.width) << in pll_set_rate() 403 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate() 412 val &= ~(bit_mask(ctrl->pdiv.width) << ctrl->pdiv.shift); in pll_set_rate() 473 bit_mask(ctrl->ndiv_int.width); in iproc_pll_recalc_rate() 479 bit_mask(ctrl->ndiv_frac.width); in iproc_pll_recalc_rate() 679 val &= ~(bit_mask(ctrl->mdiv.width) << ctrl->mdiv.shift); in iproc_clk_set_rate() [all …]
|
A D | clk-iproc-asiu.c | 89 div_h = (val >> clk->div.high_shift) & bit_mask(clk->div.high_width); in iproc_asiu_clk_recalc_rate() 91 div_l = (val >> clk->div.low_shift) & bit_mask(clk->div.low_width); in iproc_asiu_clk_recalc_rate() 149 val &= ~(bit_mask(clk->div.high_width) in iproc_asiu_clk_set_rate() 153 val &= ~(bit_mask(clk->div.high_width) in iproc_asiu_clk_set_rate() 157 val &= ~(bit_mask(clk->div.low_width) << clk->div.low_shift); in iproc_asiu_clk_set_rate() 160 val &= ~(bit_mask(clk->div.low_width) << clk->div.low_shift); in iproc_asiu_clk_set_rate()
|
/linux-6.3-rc2/include/linux/mfd/ |
A D | rc5t583.h | 344 unsigned int bit_mask) in rc5t583_set_bits() argument 347 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, bit_mask); in rc5t583_set_bits() 351 unsigned int bit_mask) in rc5t583_clear_bits() argument 354 return regmap_update_bits(rc5t583->regmap, reg, bit_mask, 0); in rc5t583_clear_bits()
|
A D | tps6586x.h | 105 extern int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask); 106 extern int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask);
|
/linux-6.3-rc2/drivers/platform/x86/intel/pmc/ |
A D | core.c | 219 data & map->bit_mask ? "Yes" : "No"); in pmc_core_slps0_display() 223 data & map->bit_mask ? "Yes" : "No"); in pmc_core_slps0_display() 245 int index, idx, len = 32, bit_mask, arr_size; in pmc_core_lpm_display() local 266 bit_mask = maps[idx][index].bit_mask; in pmc_core_lpm_display() 270 lpm_regs[idx] & bit_mask ? 1 : 0); in pmc_core_lpm_display() 274 lpm_regs[idx] & bit_mask ? 1 : 0); in pmc_core_lpm_display() 429 map[index].bit_mask & val ? "Active" : "Idle"); in pmc_core_pll_show() 580 map[index].bit_mask); in pmc_core_ltr_show() 700 u32 bit_mask = map[i].bit_mask; in pmc_core_substate_req_regs_show() local 702 if (!(bit_mask & req_mask)) in pmc_core_substate_req_regs_show() [all …]
|
/linux-6.3-rc2/drivers/staging/vt6655/ |
A D | mac.c | 40 void vt6655_mac_reg_bits_on(void __iomem *iobase, const u8 reg_offset, const u8 bit_mask) in vt6655_mac_reg_bits_on() argument 45 iowrite8(reg_value | bit_mask, iobase + reg_offset); in vt6655_mac_reg_bits_on() 48 void vt6655_mac_word_reg_bits_on(void __iomem *iobase, const u8 reg_offset, const u16 bit_mask) in vt6655_mac_word_reg_bits_on() argument 53 iowrite16(reg_value | (bit_mask), iobase + reg_offset); in vt6655_mac_word_reg_bits_on() 56 void vt6655_mac_reg_bits_off(void __iomem *iobase, const u8 reg_offset, const u8 bit_mask) in vt6655_mac_reg_bits_off() argument 61 iowrite8(reg_value & ~(bit_mask), iobase + reg_offset); in vt6655_mac_reg_bits_off() 64 void vt6655_mac_word_reg_bits_off(void __iomem *iobase, const u8 reg_offset, const u16 bit_mask) in vt6655_mac_word_reg_bits_off() argument 69 iowrite16(reg_value & ~(bit_mask), iobase + reg_offset); in vt6655_mac_word_reg_bits_off()
|
A D | mac.h | 547 void vt6655_mac_reg_bits_on(void __iomem *iobase, const u8 reg_offset, const u8 bit_mask); 548 void vt6655_mac_word_reg_bits_on(void __iomem *iobase, const u8 reg_offset, const u16 bit_mask); 549 void vt6655_mac_reg_bits_off(void __iomem *iobase, const u8 reg_offset, const u8 bit_mask); 550 void vt6655_mac_word_reg_bits_off(void __iomem *iobase, const u8 reg_offset, const u16 bit_mask);
|
/linux-6.3-rc2/include/linux/mfd/da9055/ |
A D | core.h | 68 unsigned char bit_mask, in da9055_reg_update() argument 71 return regmap_update_bits(da9055->regmap, reg, bit_mask, reg_val); in da9055_reg_update()
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | hpet.h | 82 extern int hpet_mask_rtc_irq_bit(unsigned long bit_mask); 83 extern int hpet_set_rtc_irq_bit(unsigned long bit_mask);
|