Home
last modified time | relevance | path

Searched refs:val_mask (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/arch/nds32/kernel/
Dmodule.c29 void do_reloc16(unsigned int val, unsigned int *loc, unsigned int val_mask, in do_reloc16() argument
45 tmp2 | ((tmp + ((val & val_mask) >> val_shift)) & val_mask); in do_reloc16()
47 tmp = tmp2 | ((val & val_mask) >> val_shift); in do_reloc16()
58 void do_reloc32(unsigned int val, unsigned int *loc, unsigned int val_mask, in do_reloc32() argument
75 tmp2 | ((tmp + ((val & val_mask) >> val_shift)) & val_mask); in do_reloc32()
77 tmp = tmp2 | ((val & val_mask) >> val_shift); in do_reloc32()
89 static inline int exceed_limit(int offset, unsigned int val_mask, in exceed_limit() argument
95 if (abs_off & (~val_mask)) { in exceed_limit()
/kernel/linux/linux-5.10/sound/soc/
Dsoc-ops.c314 unsigned int val, val_mask; in snd_soc_put_volsw() local
322 val_mask = mask << shift; in snd_soc_put_volsw()
329 val_mask |= mask << rshift; in snd_soc_put_volsw()
336 err = snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw()
341 err = snd_soc_component_update_bits(component, reg2, val_mask, in snd_soc_put_volsw()
410 unsigned int val, val_mask, val2 = 0; in snd_soc_put_volsw_sx() local
412 val_mask = mask << shift; in snd_soc_put_volsw_sx()
416 err = snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw_sx()
421 val_mask = mask << rshift; in snd_soc_put_volsw_sx()
425 err = snd_soc_component_update_bits(component, reg2, val_mask, in snd_soc_put_volsw_sx()
[all …]
/kernel/linux/linux-5.10/sound/soc/qcom/
Dlpass-platform.c456 unsigned int reg_irqen = 0, val_irqen = 0, val_mask = 0; in lpass_platform_pcmops_trigger() local
502 val_mask = (LPAIF_IRQ_ALL(ch) | in lpass_platform_pcmops_trigger()
521 val_mask = LPAIF_IRQ_ALL(ch); in lpass_platform_pcmops_trigger()
534 ret = regmap_update_bits(map, reg_irqen, val_mask, val_irqen); in lpass_platform_pcmops_trigger()
560 val_mask = (LPAIF_IRQ_ALL(ch) | in lpass_platform_pcmops_trigger()
572 val_mask = LPAIF_IRQ_ALL(ch); in lpass_platform_pcmops_trigger()
580 ret = regmap_update_bits(map, reg_irqen, val_mask, val_irqen); in lpass_platform_pcmops_trigger()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dtables_nphy.h31 u16 val_mask; member
43 u16 val_mask; member
Dphy_n.c185 b43_phy_mask(dev, val_addr, ~e->val_mask); in b43_nphy_rf_ctl_override_rev7()
190 b43_phy_maskset(dev, val_addr, ~e->val_mask, (value << e->val_shift)); in b43_nphy_rf_ctl_override_rev7()
268 ~(rf_ctrl->val_mask)); in b43_nphy_rf_ctl_override()
273 ~(rf_ctrl->val_mask), in b43_nphy_rf_ctl_override()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dtwl4030.c866 unsigned short val, val2, val_mask; in snd_soc_put_volsw_twl4030() local
870 val_mask = mask << shift; in snd_soc_put_volsw_twl4030()
876 val_mask |= mask << rshift; in snd_soc_put_volsw_twl4030()
881 return snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw_twl4030()
923 unsigned short val, val2, val_mask; in snd_soc_put_volsw_r2_twl4030() local
925 val_mask = mask << shift; in snd_soc_put_volsw_r2_twl4030()
937 err = snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw_r2_twl4030()
941 err = snd_soc_component_update_bits(component, reg2, val_mask, val2); in snd_soc_put_volsw_r2_twl4030()
D88pm860x-codec.c356 unsigned int val, val2, val_mask; in snd_soc_put_volsw_2r_out() local
358 val_mask = mask << shift; in snd_soc_put_volsw_2r_out()
365 err = snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw_2r_out()
369 err = snd_soc_component_update_bits(component, reg2, val_mask, val2); in snd_soc_put_volsw_2r_out()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dths8200.c98 uint8_t clr_mask, uint8_t val_mask) in ths8200_write_and_or() argument
100 ths8200_write(sd, reg, (ths8200_read(sd, reg) & clr_mask) | val_mask); in ths8200_write_and_or()
Dadv7511-v4l2.c212 static inline void adv7511_wr_and_or(struct v4l2_subdev *sd, u8 reg, u8 clr_mask, u8 val_mask) in adv7511_wr_and_or() argument
214 adv7511_wr(sd, reg, (adv7511_rd(sd, reg) & clr_mask) | val_mask); in adv7511_wr_and_or()
301 …atic inline void adv7511_pktmem_wr_and_or(struct v4l2_subdev *sd, u8 reg, u8 clr_mask, u8 val_mask) in adv7511_pktmem_wr_and_or() argument
303 adv7511_pktmem_wr(sd, reg, (adv7511_pktmem_rd(sd, reg) & clr_mask) | val_mask); in adv7511_pktmem_wr_and_or()
Dad9389b.c135 u8 clr_mask, u8 val_mask) in ad9389b_wr_and_or() argument
137 ad9389b_wr(sd, reg, (ad9389b_rd(sd, reg) & clr_mask) | val_mask); in ad9389b_wr_and_or()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_n.c14814 u16 addr = 0, en_addr = 0, val_addr = 0, en_mask = 0, val_mask = 0; in wlc_phy_rfctrl_override_nphy_rev7() local
14827 val_mask = (0x1 << 1); in wlc_phy_rfctrl_override_nphy_rev7()
14834 val_mask = (0x1 << 2); in wlc_phy_rfctrl_override_nphy_rev7()
14841 val_mask = (0x1 << 4); in wlc_phy_rfctrl_override_nphy_rev7()
14848 val_mask = (0x1 << 5); in wlc_phy_rfctrl_override_nphy_rev7()
14855 val_mask = (0x1 << 6); in wlc_phy_rfctrl_override_nphy_rev7()
14862 val_mask = (0x1 << 7); in wlc_phy_rfctrl_override_nphy_rev7()
14869 val_mask = (0x7 << 4); in wlc_phy_rfctrl_override_nphy_rev7()
14876 val_mask = (0xffff << 0); in wlc_phy_rfctrl_override_nphy_rev7()
14883 val_mask = (0xffff << 0); in wlc_phy_rfctrl_override_nphy_rev7()
[all …]
/kernel/linux/linux-5.10/sound/pci/ac97/
Dac97_codec.c568 unsigned short val, val2, val_mask; in snd_ac97_put_volsw() local
574 val_mask = mask << shift; in snd_ac97_put_volsw()
580 val_mask |= mask << rshift; in snd_ac97_put_volsw()
583 err = snd_ac97_update_bits(ac97, reg, val_mask, val); in snd_ac97_put_volsw()
587 if ((val_mask & AC97_PD_EAPD) && in snd_ac97_put_volsw()