Home
last modified time | relevance | path

Searched refs:set_bits (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.1.9/tools/perf/bench/
Dfind-bit-bench.c63 unsigned int set_bits, skip; in do_for_each_set_bit() local
69 for (set_bits = 1; set_bits <= num_bits; set_bits <<= 1) { in do_for_each_set_bit()
71 skip = num_bits / set_bits; in do_for_each_set_bit()
83 assert(old + (inner_iterations * set_bits) == accumulator); in do_for_each_set_bit()
97 assert(old + (inner_iterations * set_bits) == accumulator); in do_for_each_set_bit()
104 inner_iterations, set_bits, num_bits); in do_for_each_set_bit()
/linux-6.1.9/drivers/media/platform/ti/omap3isp/
Disp.h322 u32 reg, u32 set_bits) in isp_reg_set() argument
326 isp_reg_writel(isp, v | set_bits, mmio_range, reg); in isp_reg_set()
341 u32 reg, u32 clr_bits, u32 set_bits) in isp_reg_clr_set() argument
345 isp_reg_writel(isp, (v & ~clr_bits) | set_bits, mmio_range, reg); in isp_reg_clr_set()
/linux-6.1.9/drivers/gpu/drm/sprd/
Dsprd_dpu.h75 dpu_reg_set(struct dpu_context *ctx, u32 offset, u32 set_bits) in dpu_reg_set() argument
79 writel(bits | set_bits, ctx->base + offset); in dpu_reg_set()
/linux-6.1.9/fs/fscache/
Dio.c206 bool set_bits; member
239 wreq->set_bits); in fscache_wreq_done()
271 wreq->set_bits = cond; in __fscache_write_to_cache()
/linux-6.1.9/drivers/tty/serial/
Dip22zilog.c547 unsigned char set_bits, clear_bits; in ip22zilog_set_mctrl() local
549 set_bits = clear_bits = 0; in ip22zilog_set_mctrl()
552 set_bits |= RTS; in ip22zilog_set_mctrl()
556 set_bits |= DTR; in ip22zilog_set_mctrl()
561 up->curregs[R5] |= set_bits; in ip22zilog_set_mctrl()
659 unsigned char set_bits, clear_bits, new_reg; in ip22zilog_break_ctl() local
662 set_bits = clear_bits = 0; in ip22zilog_break_ctl()
665 set_bits |= SND_BRK; in ip22zilog_break_ctl()
671 new_reg = (up->curregs[R5] | set_bits) & ~clear_bits; in ip22zilog_break_ctl()
Dpmac_zilog.c531 unsigned char set_bits, clear_bits; in pmz_set_mctrl() local
540 set_bits = clear_bits = 0; in pmz_set_mctrl()
544 set_bits |= RTS; in pmz_set_mctrl()
549 set_bits |= DTR; in pmz_set_mctrl()
554 uap->curregs[R5] |= set_bits; in pmz_set_mctrl()
559 set_bits, clear_bits, uap->curregs[R5]); in pmz_set_mctrl()
680 unsigned char set_bits, clear_bits, new_reg; in pmz_break_ctl() local
683 set_bits = clear_bits = 0; in pmz_break_ctl()
686 set_bits |= SND_BRK; in pmz_break_ctl()
692 new_reg = (uap->curregs[R5] | set_bits) & ~clear_bits; in pmz_break_ctl()
Dsunzilog.c647 unsigned char set_bits, clear_bits; in sunzilog_set_mctrl() local
649 set_bits = clear_bits = 0; in sunzilog_set_mctrl()
652 set_bits |= RTS; in sunzilog_set_mctrl()
656 set_bits |= DTR; in sunzilog_set_mctrl()
661 up->curregs[R5] |= set_bits; in sunzilog_set_mctrl()
759 unsigned char set_bits, clear_bits, new_reg; in sunzilog_break_ctl() local
762 set_bits = clear_bits = 0; in sunzilog_break_ctl()
765 set_bits |= SND_BRK; in sunzilog_break_ctl()
771 new_reg = (up->curregs[R5] | set_bits) & ~clear_bits; in sunzilog_break_ctl()
Drp2.c234 u32 clr_bits, u32 set_bits) in rp2_rmw() argument
238 tmp |= set_bits; in rp2_rmw()
/linux-6.1.9/arch/arm/mach-omap2/
Domap-secure.c195 u32 rx51_secure_update_aux_cr(u32 set_bits, u32 clear_bits) in rx51_secure_update_aux_cr() argument
202 acr |= set_bits; in rx51_secure_update_aux_cr()
Domap-secure.h80 extern u32 rx51_secure_update_aux_cr(u32 set_bits, u32 clear_bits);
/linux-6.1.9/arch/powerpc/include/asm/
Dbitops.h82 DEFINE_BITOP(set_bits, or, "")
131 set_bits(BIT_MASK(nr), addr + BIT_WORD(nr)); in DEFINE_CLROP()
/linux-6.1.9/drivers/hwmon/
Dgl518sm.c299 #define set_bits(type, suffix, value, reg, mask, shift) \ macro
322 set_bits(type, suffix, value, reg, 0x00ff, 0)
324 set_bits(type, suffix, value, reg, 0xff00, 8)
328 set_bits(BOOL, fan_auto1, fan_auto1, GL518_REG_MISC, 0x08, 3);
337 set_bits(BOOL, beep_enable, beep_enable, GL518_REG_CONF, 0x04, 2);
/linux-6.1.9/drivers/gpu/drm/i915/gvt/
Dinterrupt.c331 u32 set_bits = 0; in update_upstream_irq() local
355 set_bits |= (1 << bit); in update_upstream_irq()
367 vgpu_vreg(vgpu, isr) |= set_bits; in update_upstream_irq()
374 vgpu_vreg(vgpu, iir) |= (set_bits & ~vgpu_vreg(vgpu, imr)); in update_upstream_irq()
/linux-6.1.9/drivers/gpio/
Dgpio-thunderx.c276 u64 set_bits, clear_bits; in thunderx_gpio_set_multiple() local
280 set_bits = bits[bank] & mask[bank]; in thunderx_gpio_set_multiple()
282 writeq(set_bits, txgpio->register_base + (bank * GPIO_2ND_BANK) + GPIO_TX_SET); in thunderx_gpio_set_multiple()
/linux-6.1.9/include/trace/events/
Dbtrfs.h1981 u64 start, u64 len, unsigned set_bits),
1983 TP_ARGS(tree, start, len, set_bits),
1991 __field( unsigned, set_bits)
2008 __entry->set_bits = set_bits;
2015 __print_flags(__entry->set_bits, "|", EXTENT_FLAGS))
2059 u64 start, u64 len, unsigned set_bits, unsigned clear_bits),
2061 TP_ARGS(tree, start, len, set_bits, clear_bits),
2069 __field( unsigned, set_bits)
2087 __entry->set_bits = set_bits;
2095 __print_flags(__entry->set_bits , "|", EXTENT_FLAGS),
/linux-6.1.9/arch/powerpc/kernel/
Dsyscall.c88 set_bits(_TIF_RESTOREALL, &current_thread_info()->flags); in system_call_exception()
/linux-6.1.9/arch/arm/mach-ep93xx/
Dsoc.h200 void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits);
Dcore.c107 void ep93xx_devcfg_set_clear(unsigned int set_bits, unsigned int clear_bits) in ep93xx_devcfg_set_clear() argument
116 val |= set_bits; in ep93xx_devcfg_set_clear()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb3/
Dael1002.c81 unsigned short set_bits; member
91 rv->set_bits); in set_phy_regs()
95 rv->set_bits); in set_phy_regs()
/linux-6.1.9/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c262 #define set_bits(v, p) outw(inw(p)|(v), (p)) macro
702 set_bits(0x300, link->resource[0]->start + OSITECH_AUI_PWR); in osi_setup()
704 set_bits(0x300, link->resource[0]->start + OSITECH_RESET_ISR); in osi_setup()
736 set_bits(0x0300, dev->base_addr-0x10+OSITECH_AUI_PWR); in smc91c92_resume()
737 set_bits(0x0300, dev->base_addr-0x10+OSITECH_RESET_ISR); in smc91c92_resume()
1442 set_bits(0x0300, ioaddr-0x10+OSITECH_RESET_ISR); in smc_interrupt()
1627 set_bits(OSI_AUI_PWR, ioaddr - 0x10 + OSITECH_AUI_PWR); in smc_set_xcvr()
/linux-6.1.9/drivers/firewire/
Dcore.h65 int clear_bits, int set_bits);
/linux-6.1.9/drivers/media/radio/si4713/
Dsi4713.c76 #define set_bits(p, v, b, m) (((p) & ~(m)) | ((v) << (b))) macro
1203 val = set_bits(val, ctrl->val, bit, mask); in si4713_s_ctrl()
1330 p = set_bits(p, stereo, 1, 1 << 1); in si4713_s_modulator()
1331 p = set_bits(p, rds, 2, 1 << 2); in si4713_s_modulator()
/linux-6.1.9/drivers/media/platform/qcom/camss/
Dcamss-vfe-170.c194 static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) in vfe_reg_set() argument
198 writel_relaxed(bits | set_bits, vfe->base + reg); in vfe_reg_set()
Dcamss-vfe-4-1.c237 static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) in vfe_reg_set() argument
241 writel_relaxed(bits | set_bits, vfe->base + reg); in vfe_reg_set()
Dcamss-vfe-4-7.c283 static inline void vfe_reg_set(struct vfe_device *vfe, u32 reg, u32 set_bits) in vfe_reg_set() argument
287 writel_relaxed(bits | set_bits, vfe->base + reg); in vfe_reg_set()

12