Home
last modified time | relevance | path

Searched refs:bit_mask (Results 1 – 25 of 76) sorted by relevance

1234

/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Ddr_ste_v0.c702 bool inner, u8 *bit_mask) in dr_ste_v0_build_eth_l2_src_dst_bit_mask() argument
879 bool inner, u8 *bit_mask) in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask() argument
905 DR_STE_SET_TAG(eth_l2_src, bit_mask, in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask()
907 DR_STE_SET_TAG(eth_l2_src, bit_mask, in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask()
909 DR_STE_SET_TAG(eth_l2_src, bit_mask, in dr_ste_v0_build_eth_l2_src_or_dst_bit_mask()
991 bool inner, u8 *bit_mask) in dr_ste_v0_build_eth_l2_src_bit_mask() argument
1027 u8 *bit_mask) in dr_ste_v0_build_eth_l2_dst_bit_mask() argument
1063 bool inner, u8 *bit_mask) in dr_ste_v0_build_eth_l2_tnl_bit_mask() argument
1078 MLX5_SET(ste_eth_l2_tnl, bit_mask, in dr_ste_v0_build_eth_l2_tnl_bit_mask()
1631 u8 *bit_mask) in dr_ste_v0_build_src_gvmi_qpn_bit_mask() argument
[all …]
A Ddr_ste_v1.c919 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_src_dst_bit_mask() argument
1073 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask() argument
1099 DR_STE_SET_TAG(eth_l2_src_v1, bit_mask, in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask()
1101 DR_STE_SET_TAG(eth_l2_src_v1, bit_mask, in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask()
1103 DR_STE_SET_TAG(eth_l2_src_v1, bit_mask, in dr_ste_v1_build_eth_l2_src_or_dst_bit_mask()
1181 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_src_bit_mask() argument
1214 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_dst_bit_mask() argument
1247 bool inner, u8 *bit_mask) in dr_ste_v1_build_eth_l2_tnl_bit_mask() argument
1262 MLX5_SET(ste_eth_l2_tnl_v1, bit_mask, in dr_ste_v1_build_eth_l2_tnl_bit_mask()
1765 u8 *bit_mask) in dr_ste_v1_build_src_gvmi_qpn_bit_mask() argument
[all …]
/linux/drivers/net/ethernet/altera/
A Daltera_utils.c9 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 Daltera_utils.h11 void tse_set_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
12 void tse_clear_bit(void __iomem *ioaddr, size_t offs, u32 bit_mask);
13 int tse_bit_is_set(void __iomem *ioaddr, size_t offs, u32 bit_mask);
14 int tse_bit_is_clear(void __iomem *ioaddr, size_t offs, u32 bit_mask);
/linux/drivers/net/ethernet/freescale/fman/
A Dfman_tgec.c290 u32 bit_mask; in get_exception_flag() local
300 bit_mask = TGEC_IMASK_REM_FAULT; in get_exception_flag()
303 bit_mask = TGEC_IMASK_LOC_FAULT; in get_exception_flag()
306 bit_mask = TGEC_IMASK_TX_ECC_ER; in get_exception_flag()
315 bit_mask = TGEC_IMASK_TX_ER; in get_exception_flag()
345 bit_mask = 0; in get_exception_flag()
349 return bit_mask; in get_exception_flag()
661 u32 bit_mask = 0; in tgec_set_exception() local
667 if (bit_mask) { in tgec_set_exception()
669 tgec->exceptions |= bit_mask; in tgec_set_exception()
[all …]
A Dfman_dtsec.c603 u32 bit_mask; in get_exception_flag() local
607 bit_mask = DTSEC_IMASK_BREN; in get_exception_flag()
610 bit_mask = DTSEC_IMASK_RXCEN; in get_exception_flag()
616 bit_mask = DTSEC_IMASK_BTEN; in get_exception_flag()
619 bit_mask = DTSEC_IMASK_TXCEN; in get_exception_flag()
622 bit_mask = DTSEC_IMASK_TXEEN; in get_exception_flag()
625 bit_mask = DTSEC_IMASK_LCEN; in get_exception_flag()
652 bit_mask = 0; in get_exception_flag()
656 return bit_mask; in get_exception_flag()
1335 u32 bit_mask = 0; in dtsec_set_exception() local
[all …]
A Dfman_memac.c617 u32 bit_mask; in get_exception_flag() local
621 bit_mask = MEMAC_IMASK_TECC_ER; in get_exception_flag()
624 bit_mask = MEMAC_IMASK_RECC_ER; in get_exception_flag()
627 bit_mask = MEMAC_IMASK_TSECC_ER; in get_exception_flag()
630 bit_mask = MEMAC_IMASK_MGI; in get_exception_flag()
633 bit_mask = 0; in get_exception_flag()
637 return bit_mask; in get_exception_flag()
1007 u32 bit_mask = 0; in memac_set_exception() local
1013 if (bit_mask) { in memac_set_exception()
1015 memac->exceptions |= bit_mask; in memac_set_exception()
[all …]
A Dfman.c1463 u32 bit_mask; in get_exception_flag() local
1467 bit_mask = EX_DMA_BUS_ERROR; in get_exception_flag()
1473 bit_mask = EX_DMA_READ_ECC; in get_exception_flag()
1485 bit_mask = EX_FPM_SINGLE_ECC; in get_exception_flag()
1488 bit_mask = EX_FPM_DOUBLE_ECC; in get_exception_flag()
1491 bit_mask = EX_QMI_SINGLE_ECC; in get_exception_flag()
1512 bit_mask = EX_MURAM_ECC; in get_exception_flag()
1515 bit_mask = 0; in get_exception_flag()
1519 return bit_mask; in get_exception_flag()
2043 u32 bit_mask = 0; in fman_set_exception() local
[all …]
/linux/arch/arm/mach-socfpga/
A Docram.c67 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/drivers/net/wireless/ralink/rt2x00/
A Drt2x00reg.h149 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/drivers/staging/most/dim2/
A Dhal.c53 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/drivers/hid/
A Dhid-prodikeys.c308 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/drivers/mfd/
A Dadp5520.c72 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 Dda903x.c170 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()
A Dtwl6030-irq.c231 int twl6030_interrupt_unmask(u8 bit_mask, u8 offset) in twl6030_interrupt_unmask() argument
238 unmask_value &= (~(bit_mask)); in twl6030_interrupt_unmask()
245 int twl6030_interrupt_mask(u8 bit_mask, u8 offset) in twl6030_interrupt_mask() argument
252 mask_value |= (bit_mask); in twl6030_interrupt_mask()
/linux/drivers/clk/bcm/
A Dclk-iproc-pll.c267 bit_mask(dig_filter->kp_width) << dig_filter->kp_shift | in __pll_bring_out_reset()
268 bit_mask(dig_filter->ka_width) << dig_filter->ka_shift); in __pll_bring_out_reset()
301 bit_mask(ctrl->ndiv_int.width); in pll_fractional_change_only()
368 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate()
383 val &= ~(bit_mask(ctrl->macro_mode.width) << in pll_set_rate()
413 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate()
422 val &= ~(bit_mask(ctrl->pdiv.width) << ctrl->pdiv.shift); in pll_set_rate()
483 bit_mask(ctrl->ndiv_int.width); in iproc_pll_recalc_rate()
489 bit_mask(ctrl->ndiv_frac.width); in iproc_pll_recalc_rate()
689 val &= ~(bit_mask(ctrl->mdiv.width) << ctrl->mdiv.shift); in iproc_clk_set_rate()
[all …]
A Dclk-iproc-asiu.c99 div_h = (val >> clk->div.high_shift) & bit_mask(clk->div.high_width); in iproc_asiu_clk_recalc_rate()
101 div_l = (val >> clk->div.low_shift) & bit_mask(clk->div.low_width); in iproc_asiu_clk_recalc_rate()
159 val &= ~(bit_mask(clk->div.high_width) in iproc_asiu_clk_set_rate()
163 val &= ~(bit_mask(clk->div.high_width) in iproc_asiu_clk_set_rate()
167 val &= ~(bit_mask(clk->div.low_width) << clk->div.low_shift); in iproc_asiu_clk_set_rate()
170 val &= ~(bit_mask(clk->div.low_width) << clk->div.low_shift); in iproc_asiu_clk_set_rate()
/linux/include/linux/mfd/
A Drc5t583.h344 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 Dtps6586x.h105 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/drivers/net/ethernet/microchip/
A Dlan743x_ptp.c47 u32 bit_mask) in lan743x_ptp_wait_till_cmd_done() argument
54 bit_mask))) { in lan743x_ptp_wait_till_cmd_done()
61 bit_mask); in lan743x_ptp_wait_till_cmd_done()
240 int bit_mask = BIT(pin); in lan743x_gpio_rsrv_ptp_out() local
246 gpio->used_bits |= bit_mask; in lan743x_gpio_rsrv_ptp_out()
247 gpio->output_bits |= bit_mask; in lan743x_gpio_rsrv_ptp_out()
248 gpio->ptp_bits |= bit_mask; in lan743x_gpio_rsrv_ptp_out()
287 int bit_mask = BIT(pin); in lan743x_gpio_release() local
290 if (gpio->used_bits & bit_mask) { in lan743x_gpio_release()
291 gpio->used_bits &= ~bit_mask; in lan743x_gpio_release()
[all …]
/linux/drivers/platform/x86/intel/pmc/
A Dcore.c1111 data & map->bit_mask ? "Yes" : "No"); in pmc_core_slps0_display()
1115 data & map->bit_mask ? "Yes" : "No"); in pmc_core_slps0_display()
1137 int index, idx, len = 32, bit_mask, arr_size; in pmc_core_lpm_display() local
1158 bit_mask = maps[idx][index].bit_mask; in pmc_core_lpm_display()
1162 lpm_regs[idx] & bit_mask ? 1 : 0); in pmc_core_lpm_display()
1166 lpm_regs[idx] & bit_mask ? 1 : 0); in pmc_core_lpm_display()
1321 map[index].bit_mask & val ? "Active" : "Idle"); in pmc_core_pll_show()
1472 map[index].bit_mask); in pmc_core_ltr_show()
1592 u32 bit_mask = map[i].bit_mask; in pmc_core_substate_req_regs_show() local
1594 if (!(bit_mask & req_mask)) in pmc_core_substate_req_regs_show()
[all …]
/linux/include/linux/mfd/da9055/
A Dcore.h68 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/arch/x86/include/asm/
A Dhpet.h82 extern int hpet_mask_rtc_irq_bit(unsigned long bit_mask);
83 extern int hpet_set_rtc_irq_bit(unsigned long bit_mask);
/linux/drivers/gpio/
A Dgpio-twl4030.c435 u8 bit_mask; in gpio_twl4030_pulls() local
438 for (bit_mask = 0, j = 0; j < 8; j += 2, gpio_bit <<= 1) { in gpio_twl4030_pulls()
440 bit_mask |= 1 << (j + 1); in gpio_twl4030_pulls()
442 bit_mask |= 1 << (j + 0); in gpio_twl4030_pulls()
444 message[i] = bit_mask; in gpio_twl4030_pulls()
/linux/drivers/video/backlight/
A Dadp8860_bl.c138 static int adp8860_set_bits(struct i2c_client *client, int reg, uint8_t bit_mask) in adp8860_set_bits() argument
148 if (!ret && ((reg_val & bit_mask) != bit_mask)) { in adp8860_set_bits()
149 reg_val |= bit_mask; in adp8860_set_bits()
157 static int adp8860_clr_bits(struct i2c_client *client, int reg, uint8_t bit_mask) in adp8860_clr_bits() argument
167 if (!ret && (reg_val & bit_mask)) { in adp8860_clr_bits()
168 reg_val &= ~bit_mask; in adp8860_clr_bits()

Completed in 94 milliseconds

1234